diff --git a/CHANGELOG.md b/CHANGELOG.md index 8598f534bf..a5e5802a8d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +0.7.0 - 2019-02-01 +------------------ +Added support and examples for Google Ads API v0_7. + +- Added support for request level logging. +- Added GetHotelAdsPerformance example. +- Updated GetKeywordStats example with segments prefix. + 0.6.0 - 2018-12-03 ------------------ Added support and examples for Google Ads API v0_6. diff --git a/README.md b/README.md index 4892ecb8b7..0f06aa9113 100644 --- a/README.md +++ b/README.md @@ -260,6 +260,87 @@ try (CampaignServiceClient reportingServiceClient = googleAdsClient.getCampaignS } ``` +### Request/Response Logging + +Logging is configured with SLF4J a generic logging library for Java, which allows logs to be +directed to many different logging implementations. We provide configuration files for log4j 1.2/2.0 +and Java Util Logging (JUL). + +#### Logging layout and functionality + +Requests are logged with a one line summary and the full request/response body and +headers. + +| Log type | Log name | Success level | Failure level | +| -------- | -------------------------------------------- | ------------- | ------------- | +| SUMMARY | com.google.ads.googleads.lib.request.summary | INFO | WARN | +| DETAIL | com.google.ads.googleads.lib.request.detail | DEBUG | INFO | + +#### Detail Log Truncation + +The detailed logs are truncated by default to avoid creating large logs. To change the length at +which logs are truncated, set `-Dapi.googleads.maxLogMessageLength=`. Setting -1 disables +log truncation. + +#### Log4j 2.0 + +1. Add a dependency on the `log4j-slf4j-impl` library. + +``` + + org.apache.logging.log4j + log4j-slf4j-impl + 2.11.1 + +``` + +2. (Optional) Create a configuration file in your resources directory, e.g. in Maven +`src/main/resources`. Log4j 2.0 loads its configuration file from the classpath, not the working +directory, so ensure you create in a resources directory. + +3. Run your application, specifying `-Dlog4j.configurationFile=`. You can specify +`CONFIG_FILE_PATH=googleads-logging/log4j2.xml` to use the default configuration file included +with the client libraries. + +#### Log4j 1.2 (legacy) + +1. Add a dependency on the `slf4j-log4j12` library. + +``` + + org.slf4j + slf4j-log4j12 + 1.7.25 + +``` + +2. (Optional) Create a configuration file in your projects resources directory, e.g. in Maven +path is `src/main/resources`. Log4j 1.2 loads its configuration file from the classpath, not the +working directory, so ensure you copy to a resources directory. + +3. Run your application, specifying `-Dlog4j.configuration=`. You can specify +`CONFIG_FILE_PATH=googleads-logging/log4j.properties` to use the default configuration file included +with the client libraries. + +#### Java Util Logging + +1. Add a dependency on the `slf4j-jdk14` library. + +``` + + org.slf4j + slf4j-jdk14 + 1.7.25 + +``` + +2. Create a JUL configuration file on the file system in a path readable from your application. For +instance `./jdk-logger.properties`. A template is provided at +`google-ads/src/main/resources/googleads-logging/jdk-logger.properties`. JUL reads from the +filesystem only, so do not copy to the resources directory. + +3. Run your application specifying `-Djava.util.logging.config.file=./jdk-logger.properties`. + ## Miscellaneous ### Wiki diff --git a/google-ads-examples/pom.xml b/google-ads-examples/pom.xml index 01c0f1503c..bde9c7f340 100644 --- a/google-ads-examples/pom.xml +++ b/google-ads-examples/pom.xml @@ -16,8 +16,9 @@ * specific language governing permissions and limitations * under the License. --> - + com.google.api-ads @@ -67,6 +68,11 @@ joda-time 2.8.2 + + org.apache.logging.log4j + log4j-slf4j-impl + 2.11.1 + junit diff --git a/google-ads-examples/src/main/java/com/google/ads/googleads/examples/campaignmanagement/AddCampaignGroup.java b/google-ads-examples/src/main/java/com/google/ads/googleads/examples/campaignmanagement/AddCampaignGroup.java deleted file mode 100644 index e682777d15..0000000000 --- a/google-ads-examples/src/main/java/com/google/ads/googleads/examples/campaignmanagement/AddCampaignGroup.java +++ /dev/null @@ -1,180 +0,0 @@ -// Copyright 2018 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package com.google.ads.googleads.examples.campaignmanagement; - -import com.beust.jcommander.Parameter; -import com.google.ads.googleads.examples.utils.ArgumentNames; -import com.google.ads.googleads.examples.utils.CodeSampleParams; -import com.google.ads.googleads.lib.GoogleAdsClient; -import com.google.ads.googleads.lib.GoogleAdsException; -import com.google.ads.googleads.lib.utils.FieldMasks; -import com.google.ads.googleads.lib.utils.ResourceNames; -import com.google.ads.googleads.v0.errors.GoogleAdsError; -import com.google.ads.googleads.v0.resources.Campaign; -import com.google.ads.googleads.v0.resources.CampaignGroup; -import com.google.ads.googleads.v0.services.CampaignGroupOperation; -import com.google.ads.googleads.v0.services.CampaignGroupServiceClient; -import com.google.ads.googleads.v0.services.CampaignOperation; -import com.google.ads.googleads.v0.services.CampaignServiceClient; -import com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse; -import com.google.ads.googleads.v0.services.MutateCampaignResult; -import com.google.ads.googleads.v0.services.MutateCampaignsResponse; -import com.google.common.collect.ImmutableList; -import com.google.protobuf.StringValue; -import java.io.FileNotFoundException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -/** - * This example adds a campaign group and then adds campaigns to the group. To get campaigns, run - * GetCampaigns.java. - */ -public class AddCampaignGroup { - - private static class AddCampaignGroupParams extends CodeSampleParams { - @Parameter(names = ArgumentNames.CUSTOMER_ID, required = true) - private Long customerId; - - @Parameter(names = ArgumentNames.CAMPAIGN_ID, required = true) - private List campaignIds; - } - - public static void main(String[] args) { - AddCampaignGroupParams params = new AddCampaignGroupParams(); - if (!params.parseArguments(args)) { - - // Either pass the required parameters for this example on the command line, or insert them - // into the code here. See the parameter class definition above for descriptions. - params.customerId = Long.parseLong("INSERT_CUSTOMER_ID_HERE"); - params.campaignIds = - Arrays.asList( - Long.valueOf("INSERT_CAMPAIGN_ID_HERE"), Long.valueOf("INSERT_CAMPAIGN_ID_HERE")); - } - - GoogleAdsClient googleAdsClient; - try { - googleAdsClient = GoogleAdsClient.newBuilder().fromPropertiesFile().build(); - } catch (FileNotFoundException fnfe) { - System.err.printf( - "Failed to load GoogleAdsClient configuration from file. Exception: %s%n", fnfe); - return; - } catch (IOException ioe) { - System.err.printf("Failed to create GoogleAdsClient. Exception: %s%n", ioe); - return; - } - - try { - new AddCampaignGroup().runExample(googleAdsClient, params.customerId, params.campaignIds); - } catch (GoogleAdsException gae) { - // GoogleAdsException is the base class for most exceptions thrown by an API request. - // Instances of this exception have a message and a GoogleAdsFailure that contains a - // collection of GoogleAdsErrors that indicate the underlying causes of the - // GoogleAdsException. - System.err.printf( - "Request ID %s failed due to GoogleAdsException. Underlying errors:%n", - gae.getRequestId()); - int i = 0; - for (GoogleAdsError googleAdsError : gae.getGoogleAdsFailure().getErrorsList()) { - System.err.printf(" Error %d: %s%n", i++, googleAdsError); - } - } - } - - /** - * Creates a new CampaignGroup in the specified client account. - * - * @param googleAdsClient the Google Ads API client. - * @param customerId the client customer ID. - * @return resource name of the newly created campaign group. - * @throws GoogleAdsException if an API request failed with one or more service errors. - */ - private static String addCampaignGroup(GoogleAdsClient googleAdsClient, long customerId) { - CampaignGroup campaignGroup = - CampaignGroup.newBuilder() - .setName(StringValue.of("Mars campaign group #" + System.currentTimeMillis())) - .build(); - - CampaignGroupOperation op = - CampaignGroupOperation.newBuilder().setCreate(campaignGroup).build(); - - try (CampaignGroupServiceClient campaignGroupServiceClient = - googleAdsClient.getCampaignGroupServiceClient()) { - MutateCampaignGroupsResponse response = - campaignGroupServiceClient.mutateCampaignGroups( - Long.toString(customerId), ImmutableList.of(op)); - String groupResourceName = response.getResults(0).getResourceName(); - System.out.printf("Added campaign group with resource name: %s%n", groupResourceName); - return groupResourceName; - } - } - - /** - * Adds campaigns to a CampaignGroup in the specified client account. - * - * @param googleAdsClient the Google Ads API client. - * @param customerId the client customer ID. - * @param campaignGroupResourceName the resource name of the campaign group. - * @param campaignIds the IDs of the campaigns to add to the campaign group. - * @throws GoogleAdsException if an API request failed with one or more service errors. - */ - private static void addCampaignsToGroup( - GoogleAdsClient googleAdsClient, - long customerId, - String campaignGroupResourceName, - List campaignIds) { - List operations = new ArrayList<>(); - for (Long campaignId : campaignIds) { - Campaign campaign = - Campaign.newBuilder() - .setResourceName(ResourceNames.campaign(customerId, campaignId)) - .setCampaignGroup(StringValue.of(campaignGroupResourceName)) - .build(); - - CampaignOperation op = - CampaignOperation.newBuilder() - .setUpdate(campaign) - .setUpdateMask(FieldMasks.allSetFieldsOf(campaign)) - .build(); - operations.add(op); - } - - try (CampaignServiceClient campaignServiceClient = googleAdsClient.getCampaignServiceClient()) { - MutateCampaignsResponse response = - campaignServiceClient.mutateCampaigns(Long.toString(customerId), operations); - System.out.printf( - "Added %d campaigns to campaign group with resource name %s:%n", - response.getResultsCount(), campaignGroupResourceName); - for (MutateCampaignResult campaignResponse : response.getResultsList()) { - System.out.printf("\t%s%n", campaignResponse.getResourceName()); - } - } - } - - /** - * Runs the example. - * - * @param googleAdsClient the Google Ads API client. - * @param customerId the client customer ID. - * @param campaignIds the IDs of the campaigns to add to the campaign group. - * @throws GoogleAdsException if an API request failed with one or more service errors. - */ - private void runExample( - GoogleAdsClient googleAdsClient, long customerId, List campaignIds) { - String campaignGroupResourceName = addCampaignGroup(googleAdsClient, customerId); - addCampaignsToGroup(googleAdsClient, customerId, campaignGroupResourceName, campaignIds); - } -} diff --git a/google-ads-examples/src/main/java/com/google/ads/googleads/examples/recommendations/ApplyRecommendation.java b/google-ads-examples/src/main/java/com/google/ads/googleads/examples/recommendations/ApplyRecommendation.java index a0eea8a490..54f0fd4104 100644 --- a/google-ads-examples/src/main/java/com/google/ads/googleads/examples/recommendations/ApplyRecommendation.java +++ b/google-ads-examples/src/main/java/com/google/ads/googleads/examples/recommendations/ApplyRecommendation.java @@ -123,7 +123,7 @@ private void runExample( googleAdsClient.getRecommendationServiceClient()) { ApplyRecommendationResponse response = recommendationServiceClient.applyRecommendation( - Long.toString(customerId), false, operations); + Long.toString(customerId), operations); System.out.printf("Applied %d recommendation:%n", response.getResultsCount()); for (ApplyRecommendationResult result : response.getResultsList()) { System.out.println(result.getResourceName()); diff --git a/google-ads-examples/src/main/java/com/google/ads/googleads/examples/reporting/GetHotelAdsPerformance.java b/google-ads-examples/src/main/java/com/google/ads/googleads/examples/reporting/GetHotelAdsPerformance.java new file mode 100644 index 0000000000..f7d9940dc1 --- /dev/null +++ b/google-ads-examples/src/main/java/com/google/ads/googleads/examples/reporting/GetHotelAdsPerformance.java @@ -0,0 +1,126 @@ +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package com.google.ads.googleads.examples.reporting; + +import com.beust.jcommander.Parameter; +import com.google.ads.googleads.examples.utils.ArgumentNames; +import com.google.ads.googleads.examples.utils.CodeSampleParams; +import com.google.ads.googleads.lib.GoogleAdsClient; +import com.google.ads.googleads.lib.GoogleAdsException; +import com.google.ads.googleads.v0.errors.GoogleAdsError; +import com.google.ads.googleads.v0.services.GoogleAdsRow; +import com.google.ads.googleads.v0.services.GoogleAdsServiceClient; +import com.google.ads.googleads.v0.services.GoogleAdsServiceClient.SearchPagedResponse; +import com.google.ads.googleads.v0.services.SearchGoogleAdsRequest; +import java.io.FileNotFoundException; +import java.io.IOException; + +/** + * This example gets Hotel-ads performance statistics for the 50 Hotel ad groups with the most + * impressions over the last 7 days. + */ +public class GetHotelAdsPerformance { + + private static final int PAGE_SIZE = 1_000; + + private static class GetHotelAdsPerformanceParams extends CodeSampleParams { + + @Parameter(names = ArgumentNames.CUSTOMER_ID, required = true) + private Long customerId; + } + + public static void main(String[] args) { + GetHotelAdsPerformanceParams params = new GetHotelAdsPerformanceParams(); + if (!params.parseArguments(args)) { + + // Either pass the required parameters for this example on the command line, or insert them + // into the code here. See the parameter class definition above for descriptions. + params.customerId = Long.parseLong("INSERT_CUSTOMER_ID_HERE"); + } + + GoogleAdsClient googleAdsClient; + try { + googleAdsClient = GoogleAdsClient.newBuilder().fromPropertiesFile().build(); + } catch (FileNotFoundException fnfe) { + System.err.printf( + "Failed to load GoogleAdsClient configuration from file. Exception: %s%n", fnfe); + return; + } catch (IOException ioe) { + System.err.printf("Failed to create GoogleAdsClient. Exception: %s%n", ioe); + return; + } + + try { + new GetHotelAdsPerformance().runExample(googleAdsClient, params.customerId); + } catch (GoogleAdsException gae) { + // GoogleAdsException is the base class for most exceptions thrown by an API request. + // Instances of this exception have a message and a GoogleAdsFailure that contains a + // collection of GoogleAdsErrors that indicate the underlying causes of the + // GoogleAdsException. + System.err.printf( + "Request ID %s failed due to GoogleAdsException. Underlying errors:%n", + gae.getRequestId()); + int i = 0; + for (GoogleAdsError googleAdsError : gae.getGoogleAdsFailure().getErrorsList()) { + System.err.printf(" Error %d: %s%n", i++, googleAdsError); + } + } + } + + private void runExample(GoogleAdsClient googleAdsClient, Long customerId) { + // Creates a query that retrieves hotel-ads statistics for each campaign and ad group. + // Returned statistics will be segmented by the check-in day of week and length of stay. + String query = "SELECT " + + " campaign.id, " + + " campaign.advertising_channel_type, " + + " ad_group.id, " + + " ad_group.status, " + + " metrics.impressions, " + + " metrics.hotel_average_lead_value_micros, " + + " segments.hotel_check_in_day_of_week, " + + " segments.hotel_length_of_stay " + + "FROM hotel_performance_view " + + "WHERE segments.date DURING LAST_7_DAYS " + + " AND campaign.advertising_channel_type = 'HOTEL' " + + " AND ad_group.status = 'ENABLED' " + + "ORDER BY metrics.impressions DESC " + + "LIMIT 50"; + + // Constructs and issues a search request by specifying page size. + SearchGoogleAdsRequest request = SearchGoogleAdsRequest.newBuilder() + .setCustomerId(String.valueOf(customerId)) + .setPageSize(PAGE_SIZE) + .setQuery(query) + .build(); + + // Iterates over all rows in all pages and prints the requested field values for each row. + try (GoogleAdsServiceClient googleAdsService = googleAdsClient.getGoogleAdsServiceClient()) { + SearchPagedResponse response = googleAdsService.search(request); + + for (GoogleAdsRow row : response.iterateAll()) { + System.out.printf("Ad group ID %d in campaign ID %d " + + "with hotel check-in on %s and %d day(s) of stay " + + "had %d impression(s) and %.2f average lead value (in micros) " + + "during the last 7 days.%n", + row.getAdGroup().getId().getValue(), + row.getCampaign().getId().getValue(), + row.getSegments().getHotelCheckInDayOfWeek(), + row.getSegments().getHotelLengthOfStay().getValue(), + row.getMetrics().getImpressions().getValue(), + row.getMetrics().getHotelAverageLeadValueMicros().getValue()); + } + } + } +} diff --git a/google-ads-examples/src/main/java/com/google/ads/googleads/examples/reporting/GetKeywordStats.java b/google-ads-examples/src/main/java/com/google/ads/googleads/examples/reporting/GetKeywordStats.java index b867c763e6..5865365e4c 100644 --- a/google-ads-examples/src/main/java/com/google/ads/googleads/examples/reporting/GetKeywordStats.java +++ b/google-ads-examples/src/main/java/com/google/ads/googleads/examples/reporting/GetKeywordStats.java @@ -105,7 +105,7 @@ private void runExample(GoogleAdsClient googleAdsClient, long customerId) { + "metrics.clicks, " + "metrics.cost_micros " + "FROM keyword_view " - + "WHERE date DURING LAST_7_DAYS " + + "WHERE segments.date DURING LAST_7_DAYS " + "AND campaign.advertising_channel_type = 'SEARCH' " + "AND ad_group.status = 'ENABLED' " + "AND ad_group_criterion.status IN ('ENABLED', 'PAUSED') " diff --git a/google-ads-examples/src/main/resources/log4j2.xml b/google-ads-examples/src/main/resources/log4j2.xml new file mode 100644 index 0000000000..9eb71d6728 --- /dev/null +++ b/google-ads-examples/src/main/resources/log4j2.xml @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/google-ads/pom.xml b/google-ads/pom.xml index 04a97fe62d..61c2edfee7 100644 --- a/google-ads/pom.xml +++ b/google-ads/pom.xml @@ -16,7 +16,9 @@ * specific language governing permissions and limitations * under the License. --> - + com.google.api-ads @@ -82,6 +84,12 @@ --> 2.0.7.Final + + org.slf4j + slf4j-api + 1.7.25 + + junit diff --git a/google-ads/src/main/java/com/google/ads/googleads/lib/GoogleAdsClient.java b/google-ads/src/main/java/com/google/ads/googleads/lib/GoogleAdsClient.java index 3476396b7b..75b9dfaa61 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/lib/GoogleAdsClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/lib/GoogleAdsClient.java @@ -14,6 +14,8 @@ package com.google.ads.googleads.lib; +import com.google.ads.googleads.lib.logging.LoggingInterceptor; +import com.google.ads.googleads.lib.logging.RequestLogger; import com.google.ads.googleads.v0.services.AccountBudgetProposalServiceClient; import com.google.ads.googleads.v0.services.AccountBudgetServiceClient; import com.google.ads.googleads.v0.services.AdGroupAdServiceClient; @@ -22,6 +24,8 @@ import com.google.ads.googleads.v0.services.AdGroupCriterionServiceClient; import com.google.ads.googleads.v0.services.AdGroupFeedServiceClient; import com.google.ads.googleads.v0.services.AdGroupServiceClient; +import com.google.ads.googleads.v0.services.AdParameterServiceClient; +import com.google.ads.googleads.v0.services.AdScheduleViewServiceClient; import com.google.ads.googleads.v0.services.AgeRangeViewServiceClient; import com.google.ads.googleads.v0.services.BiddingStrategyServiceClient; import com.google.ads.googleads.v0.services.BillingSetupServiceClient; @@ -30,7 +34,6 @@ import com.google.ads.googleads.v0.services.CampaignBudgetServiceClient; import com.google.ads.googleads.v0.services.CampaignCriterionServiceClient; import com.google.ads.googleads.v0.services.CampaignFeedServiceClient; -import com.google.ads.googleads.v0.services.CampaignGroupServiceClient; import com.google.ads.googleads.v0.services.CampaignServiceClient; import com.google.ads.googleads.v0.services.CampaignSharedSetServiceClient; import com.google.ads.googleads.v0.services.CarrierConstantServiceClient; @@ -61,10 +64,14 @@ import com.google.ads.googleads.v0.services.LanguageConstantServiceClient; import com.google.ads.googleads.v0.services.ManagedPlacementViewServiceClient; import com.google.ads.googleads.v0.services.MediaFileServiceClient; +import com.google.ads.googleads.v0.services.MobileAppCategoryConstantServiceClient; +import com.google.ads.googleads.v0.services.MobileDeviceConstantServiceClient; +import com.google.ads.googleads.v0.services.OperatingSystemVersionConstantServiceClient; import com.google.ads.googleads.v0.services.ParentalStatusViewServiceClient; import com.google.ads.googleads.v0.services.PaymentsAccountServiceClient; import com.google.ads.googleads.v0.services.ProductGroupViewServiceClient; import com.google.ads.googleads.v0.services.RecommendationServiceClient; +import com.google.ads.googleads.v0.services.RemarketingActionServiceClient; import com.google.ads.googleads.v0.services.SearchTermViewServiceClient; import com.google.ads.googleads.v0.services.SharedCriterionServiceClient; import com.google.ads.googleads.v0.services.SharedSetServiceClient; @@ -74,16 +81,15 @@ import com.google.ads.googleads.v0.services.UserListServiceClient; import com.google.ads.googleads.v0.services.VideoServiceClient; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.rpc.FixedHeaderProvider; import com.google.api.gax.rpc.TransportChannel; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.auth.Credentials; import com.google.auth.oauth2.UserCredentials; import com.google.auto.value.AutoValue; -import com.google.auto.value.extension.memoized.Memoized; import com.google.common.annotations.VisibleForTesting; import com.google.common.base.MoreObjects; import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import java.io.File; import java.io.FileInputStream; @@ -92,8 +98,8 @@ import java.util.Map; import java.util.Properties; import java.util.concurrent.ScheduledExecutorService; -import javax.annotation.Nullable; import java.util.function.Supplier; +import javax.annotation.Nullable; import javax.annotation.concurrent.Immutable; import javax.annotation.concurrent.ThreadSafe; @@ -115,8 +121,8 @@ * * * - *

If further customization of service clients or service settings is required, this class can be - * used as a {@link TransportChannelProvider} to simplify the instantiation of subclasses of + *

If further customization of service clients or service settings is required, this class can + * be used as a {@link TransportChannelProvider} to simplify the instantiation of subclasses of * com.google.api.gax.grpc.ClientSettings, as shown in the following example. * *

@@ -144,7 +150,18 @@ public abstract class GoogleAdsClient implements ServiceClientFactory, Transport
 
   /** Returns a new builder for {@link GoogleAdsClient} with only default values set. */
   public static Builder newBuilder() {
-    return new AutoValue_GoogleAdsClient.Builder().setEndpoint(DEFAULT_ENDPOINT);
+    AutoValue_GoogleAdsClient.Builder clientBuilder = new AutoValue_GoogleAdsClient.Builder();
+    InstantiatingGrpcChannelProvider transportChannelProvider = InstantiatingGrpcChannelProvider
+        .newBuilder()
+        .setInterceptorProvider(
+            () -> ImmutableList.of(new LoggingInterceptor(new RequestLogger(),
+                clientBuilder.getHeaders(),
+                clientBuilder.getEndpoint())))
+        .build();
+    clientBuilder
+        .setEndpoint(DEFAULT_ENDPOINT)
+        .setTransportChannelProvider(transportChannelProvider);
+    return clientBuilder;
   }
 
   /** Returns the credentials for this client. */
@@ -163,85 +180,62 @@ public static Builder newBuilder() {
   /** Returns a new {@link GoogleAdsClient.Builder} with the properties as this instance. */
   public abstract Builder toBuilder();
 
-  /**
-   * Lazily instantiates the underlying {@link TransportChannelProvider} via AutoValue memoization.
-   *
-   * @return this object's {@link TransportChannelProvider}.
-   */
-  @Memoized
-  TransportChannelProvider getWrappedProvider() {
-    InstantiatingGrpcChannelProvider.Builder channelProviderBuilder =
-        InstantiatingGrpcChannelProvider.newBuilder();
-
-    channelProviderBuilder
-        .setHeaderProvider(FixedHeaderProvider.create(getHeaders()))
-        .setEndpoint(getEndpoint());
-    return channelProviderBuilder.build();
-  }
-
-  @VisibleForTesting
-  Map getHeaders() {
-    ImmutableMap.Builder headersBuilder = ImmutableMap.builder();
-    headersBuilder.put("developer-token", getDeveloperToken());
-    if (getLoginCustomerId() != null) {
-      headersBuilder.put("login-customer-id", String.valueOf(getLoginCustomerId()));
-    }
-    return headersBuilder.build();
-  }
+  public abstract TransportChannelProvider getTransportChannelProvider();
+
 
   @Override
   public boolean shouldAutoClose() {
-    return getWrappedProvider().shouldAutoClose();
+    return getTransportChannelProvider().shouldAutoClose();
   }
 
   @Override
   public boolean needsExecutor() {
-    return getWrappedProvider().needsExecutor();
+    return getTransportChannelProvider().needsExecutor();
   }
 
   @Override
   public TransportChannelProvider withExecutor(ScheduledExecutorService scheduledExecutorService) {
-    return getWrappedProvider().withExecutor(scheduledExecutorService);
+    return getTransportChannelProvider().withExecutor(scheduledExecutorService);
   }
 
   @Override
   public boolean needsHeaders() {
-    return getWrappedProvider().needsHeaders();
+    return getTransportChannelProvider().needsHeaders();
   }
 
   @Override
   public TransportChannelProvider withHeaders(Map headers) {
-    return getWrappedProvider().withHeaders(headers);
+    return getTransportChannelProvider().withHeaders(headers);
   }
 
   @Override
   public String getTransportName() {
-    return getWrappedProvider().getTransportName();
+    return getTransportChannelProvider().getTransportName();
   }
 
   @Override
   public boolean needsEndpoint() {
-    return getWrappedProvider().needsEndpoint();
+    return getTransportChannelProvider().needsEndpoint();
   }
 
   @Override
   public TransportChannel getTransportChannel() throws IOException {
-    return getWrappedProvider().getTransportChannel();
+    return getTransportChannelProvider().getTransportChannel();
   }
 
   @Override
   public TransportChannelProvider withEndpoint(String endpoint) {
-    return getWrappedProvider().withEndpoint(endpoint);
+    return getTransportChannelProvider().withEndpoint(endpoint);
   }
 
   @Override
   public boolean acceptsPoolSize() {
-    return getWrappedProvider().acceptsPoolSize();
+    return getTransportChannelProvider().acceptsPoolSize();
   }
 
   @Override
   public TransportChannelProvider withPoolSize(int i) {
-    return getWrappedProvider().withPoolSize(i);
+    return getTransportChannelProvider().withPoolSize(i);
   }
 
   @Override
@@ -285,6 +279,16 @@ public AdGroupServiceClient getAdGroupServiceClient() {
     return GrpcServiceDescriptor.get(AdGroupServiceClient.class).newServiceClient(this);
   }
 
+  @Override
+  public AdParameterServiceClient getAdParameterServiceClient() {
+    return GrpcServiceDescriptor.get(AdParameterServiceClient.class).newServiceClient(this);
+  }
+
+  @Override
+  public AdScheduleViewServiceClient getAdScheduleViewServiceClient() {
+    return GrpcServiceDescriptor.get(AdScheduleViewServiceClient.class).newServiceClient(this);
+  }
+
   @Override
   public AgeRangeViewServiceClient getAgeRangeViewServiceClient() {
     return GrpcServiceDescriptor.get(AgeRangeViewServiceClient.class).newServiceClient(this);
@@ -326,11 +330,6 @@ public CampaignFeedServiceClient getCampaignFeedServiceClient() {
     return GrpcServiceDescriptor.get(CampaignFeedServiceClient.class).newServiceClient(this);
   }
 
-  @Override
-  public CampaignGroupServiceClient getCampaignGroupServiceClient() {
-    return GrpcServiceDescriptor.get(CampaignGroupServiceClient.class).newServiceClient(this);
-  }
-
   @Override
   public CampaignServiceClient getCampaignServiceClient() {
     return GrpcServiceDescriptor.get(CampaignServiceClient.class).newServiceClient(this);
@@ -484,6 +483,25 @@ public MediaFileServiceClient getMediaFileServiceClient() {
     return GrpcServiceDescriptor.get(MediaFileServiceClient.class).newServiceClient(this);
   }
 
+  @Override
+  public MobileAppCategoryConstantServiceClient getMobileAppCategoryConstantServiceClient() {
+    return GrpcServiceDescriptor.get(MobileAppCategoryConstantServiceClient.class)
+        .newServiceClient(this);
+  }
+
+  @Override
+  public MobileDeviceConstantServiceClient getMobileDeviceConstantServiceClient() {
+    return GrpcServiceDescriptor.get(MobileDeviceConstantServiceClient.class)
+        .newServiceClient(this);
+  }
+
+  @Override
+  public OperatingSystemVersionConstantServiceClient
+      getOperatingSystemVersionConstantServiceClient() {
+    return GrpcServiceDescriptor.get(OperatingSystemVersionConstantServiceClient.class)
+        .newServiceClient(this);
+  }
+
   @Override
   public ParentalStatusViewServiceClient getParentalStatusViewServiceClient() {
     return GrpcServiceDescriptor.get(ParentalStatusViewServiceClient.class).newServiceClient(this);
@@ -504,6 +522,11 @@ public RecommendationServiceClient getRecommendationServiceClient() {
     return GrpcServiceDescriptor.get(RecommendationServiceClient.class).newServiceClient(this);
   }
 
+  @Override
+  public RemarketingActionServiceClient getRemarketingActionServiceClient() {
+    return GrpcServiceDescriptor.get(RemarketingActionServiceClient.class).newServiceClient(this);
+  }
+
   @Override
   public SearchTermViewServiceClient getSearchTermViewServiceClient() {
     return GrpcServiceDescriptor.get(SearchTermViewServiceClient.class).newServiceClient(this);
@@ -563,6 +586,9 @@ public abstract static class Builder {
     /**
      * Specifies the OAuth client ID, secret and refresh token. Use {@code
      * UserCredentials.newBuilder()} to build this object.
+     *
+     * 

This field is marked nullable to facilitate testing of the client library. In practice, + * all requests to Google Ads API must be authenticated. */ public abstract Builder setCredentials(Credentials credentials); @@ -578,12 +604,57 @@ public abstract static class Builder { * Required for manager accounts only. When authenticating as a Google Ads manager account, * specifies the customer ID of the authenticating manager account. * - *

If your OAuth credentials are for a user with access to multiple manager accounts you must - * create a separate GoogleAdsClient instance for each manager account. Use {@code + *

If your OAuth credentials are for a user with access to multiple manager accounts you + * must create a separate GoogleAdsClient instance for each manager account. Use {@code * toBuilder().setLoginCustomerId(...).build()} to change the loginCustomerId. */ public abstract Builder setLoginCustomerId(Long customerId); + /** Returns the TransportChannelProvider currently configured. */ + @VisibleForTesting + abstract TransportChannelProvider getTransportChannelProvider(); + + /** Sets the TransportChannelProvider to use. */ + @VisibleForTesting + abstract Builder setTransportChannelProvider(TransportChannelProvider transportChannelProvider); + + /** Returns the developer token currently configured. */ + public abstract String getDeveloperToken(); + + private void setDeveloperToken(Properties properties) { + setDeveloperToken(properties.getProperty(ConfigPropertyKey.DEVELOPER_TOKEN.getPropertyKey())); + } + + /** Returns the login customer ID currently configured. */ + public abstract Long getLoginCustomerId(); + + private void setLoginCustomerId(Properties properties) { + String configuredLoginCustomer = + properties.getProperty(ConfigPropertyKey.LOGIN_CUSTOMER_ID.getPropertyKey()); + if (configuredLoginCustomer != null) { + try { + setLoginCustomerId(Long.parseLong(configuredLoginCustomer)); + } catch (NumberFormatException ex) { + throw new IllegalArgumentException( + "Invalid loginCustomerId, must be a number, provided: " + configuredLoginCustomer, + ex); + } + } + } + + /** Returns the endpoint currently configured. */ + public abstract String getEndpoint(); + + private void setEndpoint(Properties properties) { + String endpoint = + MoreObjects.firstNonNull( + properties.getProperty(ConfigPropertyKey.ENDPOINT.getPropertyKey()), + MoreObjects.firstNonNull( + System.getProperty(ConfigPropertyKey.ENDPOINT.getPropertyKey()), + DEFAULT_ENDPOINT)); + setEndpoint(endpoint); + } + abstract GoogleAdsClient autoBuild(); /** @@ -591,8 +662,8 @@ public abstract static class Builder { * #DEFAULT_PROPERTIES_CONFIG_FILE_NAME}. * * @throws FileNotFoundException if the file does not exist. - * @throws IOException if the file exists, but a failure occurs when trying to load properties - * from the file. + * @throws IOException if the file exists, but a failure occurs when trying to load + * properties from the file. */ public Builder fromPropertiesFile() throws IOException { return fromPropertiesFile(configurationFileSupplier.get()); @@ -606,8 +677,8 @@ public Builder fromPropertiesFile() throws IOException { * expected keys. * * @throws FileNotFoundException if the specified file does not exist. - * @throws IOException if the file exists, but a failure occurs when trying to load properties - * from the file. + * @throws IOException if the file exists, but a failure occurs when trying to load + * properties from the file. */ public Builder fromPropertiesFile(File propertiesFile) throws IOException { Preconditions.checkNotNull(propertiesFile, "Null properties file"); @@ -625,8 +696,8 @@ public Builder fromPropertiesFile(File propertiesFile) throws IOException { * Java, except the property keys have changed. See {@link ConfigPropertyKey} for the list of * expected keys. * - * @throws IllegalArgumentException if a failure occurs when trying to load properties from the - * file. + * @throws IllegalArgumentException if a failure occurs when trying to load properties from + * the file. */ public Builder fromProperties(Properties properties) { setCredentials(properties); @@ -636,10 +707,30 @@ public Builder fromProperties(Properties properties) { return this; } + /** + * Retrieves the headers to be provided in requests, generated from properties set on the + * builder, e.g. endpoint and developer token. + */ + ImmutableMap getHeaders() { + return GoogleAdsHeaderProvider.newBuilder() + .setDeveloperToken(getDeveloperToken()) + .setLoginCustomerId(getLoginCustomerId()) + .build() + .getHeaders(); + } + /** * Returns a new instance of {@link GoogleAdsClient} based on the attributes of this builder. */ public GoogleAdsClient build() { + TransportChannelProvider transportChannelProvider = getTransportChannelProvider(); + if (transportChannelProvider.needsHeaders()) { + transportChannelProvider = transportChannelProvider.withHeaders(getHeaders()); + } + if (transportChannelProvider.needsEndpoint()) { + transportChannelProvider = transportChannelProvider.withEndpoint(getEndpoint()); + } + setTransportChannelProvider(transportChannelProvider); GoogleAdsClient provider = autoBuild(); Long loginCustomerId = provider.getLoginCustomerId(); Preconditions.checkArgument( @@ -668,34 +759,6 @@ private void setCredentials(Properties properties) { setCredentials(credentials); } - private void setDeveloperToken(Properties properties) { - setDeveloperToken(properties.getProperty(ConfigPropertyKey.DEVELOPER_TOKEN.getPropertyKey())); - } - - private void setEndpoint(Properties properties) { - String endpoint = - MoreObjects.firstNonNull( - properties.getProperty(ConfigPropertyKey.ENDPOINT.getPropertyKey()), - MoreObjects.firstNonNull( - System.getProperty(ConfigPropertyKey.ENDPOINT.getPropertyKey()), - DEFAULT_ENDPOINT)); - setEndpoint(endpoint); - } - - private void setLoginCustomerId(Properties properties) { - String configuredLoginCustomer = - properties.getProperty(ConfigPropertyKey.LOGIN_CUSTOMER_ID.getPropertyKey()); - if (configuredLoginCustomer != null) { - try { - setLoginCustomerId(Long.parseLong(configuredLoginCustomer)); - } catch (NumberFormatException ex) { - throw new IllegalArgumentException( - "Invalid loginCustomerId, must be a number, provided: " + configuredLoginCustomer, - ex); - } - } - } - /** Enum of keys expected in the {@value DEFAULT_PROPERTIES_CONFIG_FILE_NAME}. */ public enum ConfigPropertyKey { CLIENT_ID("api.googleads.clientId"), diff --git a/google-ads/src/main/java/com/google/ads/googleads/lib/GoogleAdsHeaderProvider.java b/google-ads/src/main/java/com/google/ads/googleads/lib/GoogleAdsHeaderProvider.java new file mode 100644 index 0000000000..4a61893a0b --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/lib/GoogleAdsHeaderProvider.java @@ -0,0 +1,84 @@ +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package com.google.ads.googleads.lib; + +import com.google.ads.googleads.v0.services.stub.GoogleAdsServiceStubSettings; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.HeaderProvider; +import com.google.auto.value.AutoValue; +import com.google.auto.value.extension.memoized.Memoized; +import com.google.common.collect.ImmutableMap; +import java.util.Map; +import javax.annotation.Nullable; + +/** + * A provider for setting the Google Ads API specific headers. Currently this is the developer token + * and the login customer ID. + * + *

Credentials are not provided by this header set, rather these are handled by gRPC. + */ +@AutoValue +public abstract class GoogleAdsHeaderProvider implements HeaderProvider { + + /** Returns a new builder for {@link GoogleAdsHeaderProvider} with only default values set. */ + public static Builder newBuilder() { + return new AutoValue_GoogleAdsHeaderProvider.Builder(); + } + + /** Returns the configured developer token. */ + public abstract String getDeveloperToken(); + + /** Returns the configured login customer ID. */ + @Nullable + public abstract Long getLoginCustomerId(); + + @Override + @Memoized + public ImmutableMap getHeaders() { + ImmutableMap.Builder builder = ImmutableMap.builder(); + builder.put("developer-token", getDeveloperToken()); + if (getLoginCustomerId() != null) { + builder.put("login-customer-id", String.valueOf(getLoginCustomerId())); + } + // Add the x-goog-api-client header which is usually added by the stub settings. However, + // this doesn't happen. Once we add headers, needsHeaders() is false, so GAX's + // ClientContext.java doesn't add the additional headers. + ApiClientHeaderProvider apiClient = ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", + GaxProperties.getLibraryVersion(GoogleAdsServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), + GaxGrpcProperties.getGrpcVersion()) + .build(); + builder.putAll(apiClient.getHeaders()); + return builder.build(); + } + + @AutoValue.Builder + public abstract static class Builder { + + /** Sets the developer token. */ + public abstract Builder setDeveloperToken(String developerToken); + + /** Sets the login customer ID. */ + public abstract Builder setLoginCustomerId(Long loginCustomerId); + + /** Constructs a provider from the currently configured values. */ + public abstract GoogleAdsHeaderProvider build(); + } +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/lib/GrpcServiceDescriptor.java b/google-ads/src/main/java/com/google/ads/googleads/lib/GrpcServiceDescriptor.java index 590ada806a..6a3d894345 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/lib/GrpcServiceDescriptor.java +++ b/google-ads/src/main/java/com/google/ads/googleads/lib/GrpcServiceDescriptor.java @@ -30,6 +30,10 @@ import com.google.ads.googleads.v0.services.AdGroupFeedServiceSettings; import com.google.ads.googleads.v0.services.AdGroupServiceClient; import com.google.ads.googleads.v0.services.AdGroupServiceSettings; +import com.google.ads.googleads.v0.services.AdParameterServiceClient; +import com.google.ads.googleads.v0.services.AdParameterServiceSettings; +import com.google.ads.googleads.v0.services.AdScheduleViewServiceClient; +import com.google.ads.googleads.v0.services.AdScheduleViewServiceSettings; import com.google.ads.googleads.v0.services.AgeRangeViewServiceClient; import com.google.ads.googleads.v0.services.AgeRangeViewServiceSettings; import com.google.ads.googleads.v0.services.BiddingStrategyServiceClient; @@ -46,8 +50,6 @@ import com.google.ads.googleads.v0.services.CampaignCriterionServiceSettings; import com.google.ads.googleads.v0.services.CampaignFeedServiceClient; import com.google.ads.googleads.v0.services.CampaignFeedServiceSettings; -import com.google.ads.googleads.v0.services.CampaignGroupServiceClient; -import com.google.ads.googleads.v0.services.CampaignGroupServiceSettings; import com.google.ads.googleads.v0.services.CampaignServiceClient; import com.google.ads.googleads.v0.services.CampaignServiceSettings; import com.google.ads.googleads.v0.services.CampaignSharedSetServiceClient; @@ -108,6 +110,12 @@ import com.google.ads.googleads.v0.services.ManagedPlacementViewServiceSettings; import com.google.ads.googleads.v0.services.MediaFileServiceClient; import com.google.ads.googleads.v0.services.MediaFileServiceSettings; +import com.google.ads.googleads.v0.services.MobileAppCategoryConstantServiceClient; +import com.google.ads.googleads.v0.services.MobileAppCategoryConstantServiceSettings; +import com.google.ads.googleads.v0.services.MobileDeviceConstantServiceClient; +import com.google.ads.googleads.v0.services.MobileDeviceConstantServiceSettings; +import com.google.ads.googleads.v0.services.OperatingSystemVersionConstantServiceClient; +import com.google.ads.googleads.v0.services.OperatingSystemVersionConstantServiceSettings; import com.google.ads.googleads.v0.services.ParentalStatusViewServiceClient; import com.google.ads.googleads.v0.services.ParentalStatusViewServiceSettings; import com.google.ads.googleads.v0.services.PaymentsAccountServiceClient; @@ -116,6 +124,8 @@ import com.google.ads.googleads.v0.services.ProductGroupViewServiceSettings; import com.google.ads.googleads.v0.services.RecommendationServiceClient; import com.google.ads.googleads.v0.services.RecommendationServiceSettings; +import com.google.ads.googleads.v0.services.RemarketingActionServiceClient; +import com.google.ads.googleads.v0.services.RemarketingActionServiceSettings; import com.google.ads.googleads.v0.services.SearchTermViewServiceClient; import com.google.ads.googleads.v0.services.SearchTermViewServiceSettings; import com.google.ads.googleads.v0.services.SharedCriterionServiceClient; @@ -161,6 +171,8 @@ abstract class GrpcServiceDescriptor { + + @Override + public AdParameterServiceClient newServiceClient(GoogleAdsClient googleAdsClient) + throws ServiceClientCreationException { + try { + return AdParameterServiceClient.create( + AdParameterServiceSettings.newBuilder() + .setTransportChannelProvider(googleAdsClient) + .setCredentialsProvider( + FixedCredentialsProvider.create(googleAdsClient.getCredentials())) + .build()); + } catch (IOException ioe) { + throw new ServiceClientCreationException(this, ioe); + } + } + } + + private static final class AdScheduleViewServiceDescriptor + extends GrpcServiceDescriptor< + AdScheduleViewServiceClient, AdScheduleViewServiceSettings.Builder> { + + @Override + public AdScheduleViewServiceClient newServiceClient(GoogleAdsClient googleAdsClient) + throws ServiceClientCreationException { + try { + return AdScheduleViewServiceClient.create( + AdScheduleViewServiceSettings.newBuilder() + .setTransportChannelProvider(googleAdsClient) + .setCredentialsProvider( + FixedCredentialsProvider.create(googleAdsClient.getCredentials())) + .build()); + } catch (IOException ioe) { + throw new ServiceClientCreationException(this, ioe); + } + } + } + private static final class AgeRangeViewServiceDescriptor extends GrpcServiceDescriptor< AgeRangeViewServiceClient, AgeRangeViewServiceSettings.Builder> { @@ -584,26 +644,6 @@ public CampaignFeedServiceClient newServiceClient(GoogleAdsClient googleAdsClien } } - private static final class CampaignGroupServiceDescriptor - extends GrpcServiceDescriptor< - CampaignGroupServiceClient, CampaignGroupServiceSettings.Builder> { - - @Override - public CampaignGroupServiceClient newServiceClient(GoogleAdsClient googleAdsClient) - throws ServiceClientCreationException { - try { - return CampaignGroupServiceClient.create( - CampaignGroupServiceSettings.newBuilder() - .setTransportChannelProvider(googleAdsClient) - .setCredentialsProvider( - FixedCredentialsProvider.create(googleAdsClient.getCredentials())) - .build()); - } catch (IOException ioe) { - throw new ServiceClientCreationException(this, ioe); - } - } - } - private static final class CampaignServiceDescriptor extends GrpcServiceDescriptor { @@ -1195,6 +1235,68 @@ public MediaFileServiceClient newServiceClient(GoogleAdsClient googleAdsClient) } } + private static final class MobileAppCategoryConstantServiceDescriptor + extends GrpcServiceDescriptor< + MobileAppCategoryConstantServiceClient, + MobileAppCategoryConstantServiceSettings.Builder> { + + @Override + public MobileAppCategoryConstantServiceClient newServiceClient(GoogleAdsClient googleAdsClient) + throws ServiceClientCreationException { + try { + return MobileAppCategoryConstantServiceClient.create( + MobileAppCategoryConstantServiceSettings.newBuilder() + .setTransportChannelProvider(googleAdsClient) + .setCredentialsProvider( + FixedCredentialsProvider.create(googleAdsClient.getCredentials())) + .build()); + } catch (IOException ioe) { + throw new ServiceClientCreationException(this, ioe); + } + } + } + + private static final class MobileDeviceConstantServiceDescriptor + extends GrpcServiceDescriptor< + MobileDeviceConstantServiceClient, MobileDeviceConstantServiceSettings.Builder> { + + @Override + public MobileDeviceConstantServiceClient newServiceClient(GoogleAdsClient googleAdsClient) + throws ServiceClientCreationException { + try { + return MobileDeviceConstantServiceClient.create( + MobileDeviceConstantServiceSettings.newBuilder() + .setTransportChannelProvider(googleAdsClient) + .setCredentialsProvider( + FixedCredentialsProvider.create(googleAdsClient.getCredentials())) + .build()); + } catch (IOException ioe) { + throw new ServiceClientCreationException(this, ioe); + } + } + } + + private static final class OperatingSystemVersionConstantServiceDescriptor + extends GrpcServiceDescriptor< + OperatingSystemVersionConstantServiceClient, + OperatingSystemVersionConstantServiceSettings.Builder> { + + @Override + public OperatingSystemVersionConstantServiceClient newServiceClient( + GoogleAdsClient googleAdsClient) throws ServiceClientCreationException { + try { + return OperatingSystemVersionConstantServiceClient.create( + OperatingSystemVersionConstantServiceSettings.newBuilder() + .setTransportChannelProvider(googleAdsClient) + .setCredentialsProvider( + FixedCredentialsProvider.create(googleAdsClient.getCredentials())) + .build()); + } catch (IOException ioe) { + throw new ServiceClientCreationException(this, ioe); + } + } + } + private static final class ParentalStatusViewServiceDescriptor extends GrpcServiceDescriptor< ParentalStatusViewServiceClient, ParentalStatusViewServiceSettings.Builder> { @@ -1275,6 +1377,26 @@ public RecommendationServiceClient newServiceClient(GoogleAdsClient googleAdsCli } } + private static final class RemarketingActionServiceDescriptor + extends GrpcServiceDescriptor< + RemarketingActionServiceClient, RemarketingActionServiceSettings.Builder> { + + @Override + public RemarketingActionServiceClient newServiceClient(GoogleAdsClient googleAdsClient) + throws ServiceClientCreationException { + try { + return RemarketingActionServiceClient.create( + RemarketingActionServiceSettings.newBuilder() + .setTransportChannelProvider(googleAdsClient) + .setCredentialsProvider( + FixedCredentialsProvider.create(googleAdsClient.getCredentials())) + .build()); + } catch (IOException ioe) { + throw new ServiceClientCreationException(this, ioe); + } + } + } + private static final class SearchTermViewServiceDescriptor extends GrpcServiceDescriptor< SearchTermViewServiceClient, SearchTermViewServiceSettings.Builder> { diff --git a/google-ads/src/main/java/com/google/ads/googleads/lib/ServiceClientFactory.java b/google-ads/src/main/java/com/google/ads/googleads/lib/ServiceClientFactory.java index c8ae481d3b..cdcf2d0d2f 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/lib/ServiceClientFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/lib/ServiceClientFactory.java @@ -22,6 +22,8 @@ import com.google.ads.googleads.v0.services.AdGroupCriterionServiceClient; import com.google.ads.googleads.v0.services.AdGroupFeedServiceClient; import com.google.ads.googleads.v0.services.AdGroupServiceClient; +import com.google.ads.googleads.v0.services.AdParameterServiceClient; +import com.google.ads.googleads.v0.services.AdScheduleViewServiceClient; import com.google.ads.googleads.v0.services.AgeRangeViewServiceClient; import com.google.ads.googleads.v0.services.BiddingStrategyServiceClient; import com.google.ads.googleads.v0.services.BillingSetupServiceClient; @@ -30,7 +32,6 @@ import com.google.ads.googleads.v0.services.CampaignBudgetServiceClient; import com.google.ads.googleads.v0.services.CampaignCriterionServiceClient; import com.google.ads.googleads.v0.services.CampaignFeedServiceClient; -import com.google.ads.googleads.v0.services.CampaignGroupServiceClient; import com.google.ads.googleads.v0.services.CampaignServiceClient; import com.google.ads.googleads.v0.services.CampaignSharedSetServiceClient; import com.google.ads.googleads.v0.services.CarrierConstantServiceClient; @@ -61,10 +62,14 @@ import com.google.ads.googleads.v0.services.LanguageConstantServiceClient; import com.google.ads.googleads.v0.services.ManagedPlacementViewServiceClient; import com.google.ads.googleads.v0.services.MediaFileServiceClient; +import com.google.ads.googleads.v0.services.MobileAppCategoryConstantServiceClient; +import com.google.ads.googleads.v0.services.MobileDeviceConstantServiceClient; +import com.google.ads.googleads.v0.services.OperatingSystemVersionConstantServiceClient; import com.google.ads.googleads.v0.services.ParentalStatusViewServiceClient; import com.google.ads.googleads.v0.services.PaymentsAccountServiceClient; import com.google.ads.googleads.v0.services.ProductGroupViewServiceClient; import com.google.ads.googleads.v0.services.RecommendationServiceClient; +import com.google.ads.googleads.v0.services.RemarketingActionServiceClient; import com.google.ads.googleads.v0.services.SearchTermViewServiceClient; import com.google.ads.googleads.v0.services.SharedCriterionServiceClient; import com.google.ads.googleads.v0.services.SharedSetServiceClient; @@ -76,62 +81,130 @@ public interface ServiceClientFactory { AccountBudgetProposalServiceClient getAccountBudgetProposalServiceClient(); + AccountBudgetServiceClient getAccountBudgetServiceClient(); + AdGroupAdServiceClient getAdGroupAdServiceClient(); + AdGroupAudienceViewServiceClient getAdGroupAudienceViewServiceClient(); + AdGroupBidModifierServiceClient getAdGroupBidModifierServiceClient(); + AdGroupCriterionServiceClient getAdGroupCriterionServiceClient(); + AdGroupFeedServiceClient getAdGroupFeedServiceClient(); + AdGroupServiceClient getAdGroupServiceClient(); + + AdParameterServiceClient getAdParameterServiceClient(); + + AdScheduleViewServiceClient getAdScheduleViewServiceClient(); + AgeRangeViewServiceClient getAgeRangeViewServiceClient(); + BiddingStrategyServiceClient getBiddingStrategyServiceClient(); + BillingSetupServiceClient getBillingSetupServiceClient(); + CampaignAudienceViewServiceClient getCampaignAudienceViewServiceClient(); + CampaignBidModifierServiceClient getCampaignBidModifierServiceClient(); + CampaignBudgetServiceClient getCampaignBudgetServiceClient(); + CampaignCriterionServiceClient getCampaignCriterionServiceClient(); + CampaignFeedServiceClient getCampaignFeedServiceClient(); - CampaignGroupServiceClient getCampaignGroupServiceClient(); + CampaignServiceClient getCampaignServiceClient(); + CampaignSharedSetServiceClient getCampaignSharedSetServiceClient(); + CarrierConstantServiceClient getCarrierConstantServiceClient(); + ChangeStatusServiceClient getChangeStatusServiceClient(); + ConversionActionServiceClient getConversionActionServiceClient(); + CustomerClientLinkServiceClient getCustomerClientLinkServiceClient(); + CustomerClientServiceClient getCustomerClientServiceClient(); + CustomerFeedServiceClient getCustomerFeedServiceClient(); + CustomerManagerLinkServiceClient getCustomerManagerLinkServiceClient(); + CustomerServiceClient getCustomerServiceClient(); + DisplayKeywordViewServiceClient getDisplayKeywordViewServiceClient(); + FeedItemServiceClient getFeedItemServiceClient(); + FeedMappingServiceClient getFeedMappingServiceClient(); + FeedServiceClient getFeedServiceClient(); + GenderViewServiceClient getGenderViewServiceClient(); + GeoTargetConstantServiceClient getGeoTargetConstantServiceClient(); + GoogleAdsFieldServiceClient getGoogleAdsFieldServiceClient(); + GoogleAdsServiceClient getGoogleAdsServiceClient(); + HotelGroupViewServiceClient getHotelGroupViewServiceClient(); + HotelPerformanceViewServiceClient getHotelPerformanceViewServiceClient(); + KeywordPlanAdGroupServiceClient getKeywordPlanAdGroupServiceClient(); + KeywordPlanCampaignServiceClient getKeywordPlanCampaignServiceClient(); + KeywordPlanIdeaServiceClient getKeywordPlanIdeaServiceClient(); + KeywordPlanKeywordServiceClient getKeywordPlanKeywordServiceClient(); + KeywordPlanNegativeKeywordServiceClient getKeywordPlanNegativeKeywordServiceClient(); + KeywordPlanServiceClient getKeywordPlanServiceClient(); + KeywordViewServiceClient getKeywordViewServiceClient(); + LanguageConstantServiceClient getLanguageConstantServiceClient(); + ManagedPlacementViewServiceClient getManagedPlacementViewServiceClient(); + MediaFileServiceClient getMediaFileServiceClient(); + + MobileAppCategoryConstantServiceClient getMobileAppCategoryConstantServiceClient(); + + MobileDeviceConstantServiceClient getMobileDeviceConstantServiceClient(); + + OperatingSystemVersionConstantServiceClient getOperatingSystemVersionConstantServiceClient(); + ParentalStatusViewServiceClient getParentalStatusViewServiceClient(); + PaymentsAccountServiceClient getPaymentsAccountServiceClient(); + ProductGroupViewServiceClient getProductGroupViewServiceClient(); + RecommendationServiceClient getRecommendationServiceClient(); + + RemarketingActionServiceClient getRemarketingActionServiceClient(); + SearchTermViewServiceClient getSearchTermViewServiceClient(); + SharedCriterionServiceClient getSharedCriterionServiceClient(); + SharedSetServiceClient getSharedSetServiceClient(); + TopicConstantServiceClient getTopicConstantServiceClient(); + TopicViewServiceClient getTopicViewServiceClient(); + UserInterestServiceClient getUserInterestServiceClient(); + UserListServiceClient getUserListServiceClient(); + VideoServiceClient getVideoServiceClient(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/lib/logging/Event.java b/google-ads/src/main/java/com/google/ads/googleads/lib/logging/Event.java new file mode 100644 index 0000000000..8096b78d2b --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/lib/logging/Event.java @@ -0,0 +1,156 @@ +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package com.google.ads.googleads.lib.logging; + +import com.google.auto.value.AutoValue; +import com.google.common.collect.ImmutableMap; +import io.grpc.Metadata; +import io.grpc.Status; +import io.grpc.Status.Code; +import java.util.Map; +import javax.annotation.Nullable; + +/** Base class with common fields logged in all event cases. */ +abstract class Event { + + /** The gRPC response status. */ + @Nullable + public abstract Status getResponseStatus(); + + /** True if the request succeeded, false otherwise. */ + public abstract boolean isSuccess(); + + /** The RPC method invoked in the request. */ + @Nullable + public abstract String getMethodName(); + + /** The endpoint requests where requests were sent. */ + @Nullable + public abstract String getEndpoint(); + + /** The code associated with the response status, or null if not present. */ + public Code getResponseCode() { + return getResponseStatus() == null ? null : getResponseStatus().getCode(); + } + + /** The description associates with the response status, or null if not present. */ + public String getResponseDescription() { + return getResponseStatus() == null ? null : getResponseStatus().getDescription(); + } + + /** A summary of the RPC, specifying only customer ID and request ID. */ + @AutoValue + abstract static class Summary extends Event { + + /** Create a new summary event builder. */ + public static Builder builder() { + return new AutoValue_Event_Summary.Builder(); + } + + /** Customer ID if specified in the request object, otherwise null. */ + @Nullable + public abstract String getCustomerId(); + + /** Request ID if returned by the server, null otherwise. */ + @Nullable + public abstract String getRequestId(); + + @AutoValue.Builder + abstract static class Builder { + + public abstract Summary build(); + + public abstract Builder setResponseStatus(Status responseStatus); + + public abstract Builder setSuccess(boolean isSuccess); + + public abstract Builder setMethodName(String methodName); + + public abstract Builder setCustomerId(String customerId); + + public abstract Builder setEndpoint(String endpoint); + + public abstract Builder setRequestId(String requestId); + } + } + + /** + * A detailed event description, including the request/response headers and the messages + * exchanged. + */ + @AutoValue + abstract static class Detail extends Event { + + /** Create a new Detail event builder. */ + public static Detail.Builder builder() { + return new AutoValue_Event_Detail.Builder(); + } + + /** The raw request headers. */ + @Nullable + public abstract ImmutableMap getRawRequestHeaders(); + + /** + * A scrubbed version of the headers, sanitized to remove developer token, authorization etc. + */ + public abstract ImmutableMap getScrubbedRequestHeaders(); + + /** Any response headers that were received. */ + @Nullable + public abstract Metadata getResponseHeaderMetadata(); + + /** Any response trailers that were received. */ + @Nullable + public abstract Metadata getResponseTrailerMetadata(); + + /** A response object, if one was received. */ + @Nullable + public abstract Object getResponse(); + + /** A request object, if one was sent. */ + @Nullable + public abstract Object getRequest(); + + /** The response message as a string, or null if not present. */ + public String getResponseAsText() { + return getResponse() == null ? null : getResponse().toString(); + } + + @AutoValue.Builder + abstract static class Builder { + public abstract Detail build(); + + public abstract Builder setResponseStatus(Status responseStatus); + + public abstract Builder setSuccess(boolean isSuccess); + + public abstract Builder setMethodName(String methodName); + + public abstract Builder setRawRequestHeaders(Map rawRequestHeaders); + + public abstract Builder setScrubbedRequestHeaders(Map scrubbedRequestHeaders); + + public abstract Builder setEndpoint(String endpoint); + + public abstract Builder setRequest(Object request); + + public abstract Builder setResponseHeaderMetadata(Metadata responseHeaders); + + public abstract Builder setResponseTrailerMetadata(Metadata responseTrailers); + + public abstract Builder setResponse(Object response); + } + } +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/lib/logging/LoggingInterceptor.java b/google-ads/src/main/java/com/google/ads/googleads/lib/logging/LoggingInterceptor.java new file mode 100644 index 0000000000..66e4a76950 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/lib/logging/LoggingInterceptor.java @@ -0,0 +1,239 @@ +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package com.google.ads.googleads.lib.logging; + +import com.google.ads.googleads.lib.logging.Event.Summary; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import io.grpc.CallOptions; +import io.grpc.Channel; +import io.grpc.ClientCall; +import io.grpc.ClientInterceptor; +import io.grpc.ForwardingClientCall.SimpleForwardingClientCall; +import io.grpc.ForwardingClientCallListener.SimpleForwardingClientCallListener; +import io.grpc.Metadata; +import io.grpc.Metadata.Key; +import io.grpc.MethodDescriptor; +import io.grpc.Status; +import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Method; +import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Optional; +import java.util.stream.Stream; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.slf4j.event.Level; + +/** An interceptor which logs all RPCs made on a Channel. */ +public class LoggingInterceptor implements ClientInterceptor { + + public static final Key REQUEST_ID_HEADER_KEY = + Key.of("request-id", Metadata.ASCII_STRING_MARSHALLER); + private static final ImmutableSet HEADERS_TO_SCRUB = + ImmutableSet.of("developer-token", "authorization"); + private static final Logger thisClassLogger = LoggerFactory.getLogger(LoggingInterceptor.class); + private final RequestLogger requestLogger; + private final ImmutableMap requestHeaders; + private final ImmutableMap scrubbedRequestHeaders; + private final String endpoint; + + /** Creates with the RequestLogger sink, the constant header data, and the API endpoint. */ + public LoggingInterceptor( + RequestLogger requestLogger, ImmutableMap headers, String endpoint) { + this.requestLogger = requestLogger; + this.requestHeaders = headers; + this.scrubbedRequestHeaders = scrubHeaders(requestHeaders); + this.endpoint = endpoint; + } + + /** + * Logs the Google Ads API fields required for debugging. + * + * {@inheritDoc} + */ + @Override + public ClientCall interceptCall( + final MethodDescriptor method, CallOptions callOptions, Channel next) { + ClientCall wrappedCall = next.newCall(method, callOptions); + return new SimpleForwardingClientCall(wrappedCall) { + private volatile ReqT request; + private volatile RespT response; + private volatile Metadata responseHeaders; + + @Override + public void start(Listener responseListener, Metadata headers) { + super.start( + new SimpleForwardingClientCallListener(responseListener) { + @Override + public void onMessage(RespT message) { + response = message; + super.onMessage(message); + } + + @Override + public void onHeaders(Metadata headers) { + responseHeaders = headers; + super.onHeaders(headers); + } + + @Override + public void onClose(Status status, Metadata trailers) { + try { + logSummary(status, request, method, responseHeaders, trailers); + logDetail( + status, + method, + requestHeaders, + endpoint, + request, + responseHeaders, + trailers, + response); + } catch (Exception ex) { + thisClassLogger.warn("Failed to log request.", ex); + } + request = null; + response = null; + responseHeaders = null; + super.onClose(status, trailers); + } + }, + headers); + } + + @Override + public void sendMessage(ReqT message) { + request = message; + super.sendMessage(message); + } + }; + } + + private static ImmutableMap scrubHeaders(ImmutableMap headers) { + Map scrubbed = new LinkedHashMap(); + if (headers != null) { + scrubbed.putAll(headers); + scrubbed.replaceAll((key, value) -> HEADERS_TO_SCRUB.contains(key) ? "REDACTED" : value); + } + return ImmutableMap.copyOf(scrubbed); + } + + private static Level getDetailLevel(Status status) { + return isSuccess(status) ? Level.DEBUG : Level.INFO; + } + + private static Level getSummaryLevel(Status status) { + return isSuccess(status) ? Level.INFO : Level.WARN; + } + + private static String getRequestId(Metadata responseHeaders, Metadata responseTrailers) { + if (responseHeaders != null && responseHeaders.containsKey(REQUEST_ID_HEADER_KEY)) { + return responseHeaders.get(REQUEST_ID_HEADER_KEY); + } else if (responseTrailers != null && responseTrailers.containsKey(REQUEST_ID_HEADER_KEY)) { + return responseTrailers.get(REQUEST_ID_HEADER_KEY); + } else { + return null; + } + } + + private static String getCustomerId(Object request) { + Optional getter = + Stream.of(request.getClass().getMethods()) + .filter(method -> method.getName().equals("getCustomerId")) + .findFirst(); + if (getter.isPresent()) { + try { + return (String) getter.get().invoke(request); + } catch (IllegalAccessException | InvocationTargetException e) { + thisClassLogger.error("Unable to retrieve customer ID from " + request); + } + } + return null; + } + + private static String getMethodName(MethodDescriptor method) { + return method == null ? null : method.getFullMethodName(); + } + + private static boolean isSuccess(Status status) { + return status != null && status.isOk(); + } + + /** + * Logs an RPC call detailed message containing full request/response + headers. The level chosen + * will depend on the response status (OK=DEBUG, FAILURE=INFO). Also checks if the logger is + * enabled for the RPC status and logger configuration before computing message params. + */ + private void logDetail( + Status responseStatus, + MethodDescriptor method, + ImmutableMap requestHeaders, + String endpoint, + Object request, + Metadata responseHeaders, + Metadata responseTrailers, + Object response) { + Level level = getDetailLevel(responseStatus); + if (requestLogger.isDetailEnabled(level)) { + String methodName = getMethodName(method); + boolean isSuccess = isSuccess(responseStatus); + Event.Detail event = + Event.Detail.builder() + .setResponseStatus(responseStatus) + .setSuccess(isSuccess) + .setMethodName(methodName) + .setRawRequestHeaders(requestHeaders) + .setScrubbedRequestHeaders(scrubbedRequestHeaders) + .setEndpoint(endpoint) + .setRequest(request) + .setResponseHeaderMetadata(responseHeaders) + .setResponseTrailerMetadata(responseTrailers) + .setResponse(response) + .build(); + requestLogger.logDetail(level, event); + } + } + + /** + * Logs an RPC call summary, containing method name, endpoint, customerId and requestId. The level + * chosen will depend on the response status (OK=INFO, FAILURE=WARN). This will check if the + * logger is enabled for the RPC status and logger configuration before computing message params. + */ + private void logSummary( + Status responseStatus, + Object request, + MethodDescriptor method, + Metadata responseHeaders, + Metadata responseTrailers) { + Level level = getSummaryLevel(responseStatus); + if (requestLogger.isSummaryEnabled(level)) { + String customerId = getCustomerId(request); + String requestId = getRequestId(responseHeaders, responseTrailers); + String methodName = getMethodName(method); + boolean isSuccess = isSuccess(responseStatus); + Summary event = + Summary.builder() + .setResponseStatus(responseStatus) + .setSuccess(isSuccess) + .setMethodName(methodName) + .setCustomerId(customerId) + .setEndpoint(endpoint) + .setRequestId(requestId) + .build(); + requestLogger.logSummary(level, event); + } + } +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/lib/logging/RequestLogger.java b/google-ads/src/main/java/com/google/ads/googleads/lib/logging/RequestLogger.java new file mode 100644 index 0000000000..f7dca919bf --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/lib/logging/RequestLogger.java @@ -0,0 +1,166 @@ +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package com.google.ads.googleads.lib.logging; + +import com.google.common.annotations.VisibleForTesting; +import com.google.common.base.Preconditions; +import java.util.function.Supplier; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.slf4j.event.Level; + +/** + * Dispatches logging requests to the logging library, decoupling logging from the RPC interceptor. + */ +public class RequestLogger { + + @VisibleForTesting + static final String TRUNCATE_MESSAGE = + "\n... TRUNCATED. See README.md to configure/disable log truncation."; + + private static final String LOG_LENGTH_LIMIT_KEY = "api.googleads.maxLogMessageLength"; + private static final int DEFAULT_LOG_LENGTH_LIMIT = 1000; + private final Logger detailLogger; + private final Logger summaryLogger; + private final int logLengthLimit; + + public RequestLogger() { + // These loggers are explicitly configured with constants to ensure consistency of logging + // configuration across refactorings. + this( + LoggerFactory.getLogger("com.google.ads.googleads.lib.request.summary"), + LoggerFactory.getLogger("com.google.ads.googleads.lib.request.detail"), + () -> + System.getProperties().containsKey(LOG_LENGTH_LIMIT_KEY) + ? parseLogLengthLimit(System.getProperty(LOG_LENGTH_LIMIT_KEY)) + : DEFAULT_LOG_LENGTH_LIMIT); + } + + @VisibleForTesting + RequestLogger( + Logger summaryLogger, Logger detailLogger, Supplier logLengthLimitSupplier) { + this.summaryLogger = summaryLogger; + this.detailLogger = detailLogger; + this.logLengthLimit = logLengthLimitSupplier.get(); + Preconditions.checkArgument(logLengthLimit >= -1, LOG_LENGTH_LIMIT_KEY + " must be >= -1"); + } + + /** + * Checks if the detailed (request) logger is enabled. This operation will complete quickly and + * can be used to guard expensive logger statements. + */ + public boolean isDetailEnabled(Level level) { + return isLevelEnabled(level, detailLogger); + } + + /** + * Checks if the summary (headers/trailers) logger is enabled. This operation will complete + * quickly and can be used to guard expensive logger statements. + */ + public boolean isSummaryEnabled(Level level) { + return isLevelEnabled(level, summaryLogger); + } + + /** + * Logs a summary of an RPC call. Has no effect if the logger is not enabled at the level + * requested. + */ + public void logSummary(Level level, Event.Summary event) { + logAtLevel( + summaryLogger, + level, + "{} REQUEST SUMMARY. " + + "Method: {}, " + + "Endpoint: {}, " + + "CustomerID: {}, " + + "RequestID: {}, " + + "ResponseCode: {}, " + + "Fault: {}.", + event.isSuccess() ? "SUCCESS" : "FAILURE", + event.getMethodName(), + event.getEndpoint(), + event.getCustomerId(), + event.getRequestId(), + event.getResponseCode(), + event.getResponseDescription()); + } + + /** + * Logs the request/response of an RPC call. Has no effect if the logger is not enabled at the + * level requested. + */ + public void logDetail(Level level, Event.Detail event) { + logAtLevel( + detailLogger, + level, + "{} REQUEST DETAIL.\n" + + "Request\n" + + "-------\n" + + "MethodName: {}\n" + + "Endpoint: {}\n" + + "Headers: {}\n" + + "Body: {}\n\n" + + "Response\n" + + "--------\n" + + "Headers: {}\n" + + "Body: {}\n" + + "Status: {}.", + event.isSuccess() ? "SUCCESS" : "FAILURE", + event.getMethodName(), + event.getEndpoint(), + event.getScrubbedRequestHeaders(), + event.getRequest(), + event.getResponseHeaderMetadata(), + truncate(event.getResponseAsText()), + event.getResponseStatus()); + } + + private String truncate(String responseMsg) { + if (responseMsg == null) { + return null; + } + if (logLengthLimit > -1 && responseMsg.length() > logLengthLimit) { + responseMsg = responseMsg.substring(0, logLengthLimit) + TRUNCATE_MESSAGE; + } + return responseMsg; + } + + private static Integer parseLogLengthLimit(String propertyValue) { + try { + return Integer.parseInt(propertyValue); + } catch (NumberFormatException ex) { + throw new IllegalArgumentException( + "Invalid " + LOG_LENGTH_LIMIT_KEY + " supplied, must be a number: " + propertyValue); + } + } + + private static void logAtLevel(Logger logger, Level level, String format, Object... argList) { + if (level == Level.INFO) { + logger.info(format, argList); + } else if (level == Level.WARN) { + logger.warn(format, argList); + } else if (level == Level.DEBUG) { + logger.debug(format, argList); + } else { + throw new IllegalStateException("Unexpected log level: " + level); + } + } + + private static boolean isLevelEnabled(Level logLevel, Logger logger) { + return (logLevel == Level.INFO && logger.isInfoEnabled()) + || (logLevel == Level.WARN && logger.isWarnEnabled()) + || (logLevel == Level.DEBUG && logger.isDebugEnabled()); + } +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/lib/utils/ResourceNames.java b/google-ads/src/main/java/com/google/ads/googleads/lib/utils/ResourceNames.java index f3db5c0763..e7c31e9172 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/lib/utils/ResourceNames.java +++ b/google-ads/src/main/java/com/google/ads/googleads/lib/utils/ResourceNames.java @@ -21,6 +21,8 @@ import com.google.ads.googleads.v0.resources.AdGroupCriteriaName; import com.google.ads.googleads.v0.resources.AdGroupFeedName; import com.google.ads.googleads.v0.resources.AdGroupName; +import com.google.ads.googleads.v0.resources.AdParameterName; +import com.google.ads.googleads.v0.resources.AdScheduleViewName; import com.google.ads.googleads.v0.resources.AgeRangeViewName; import com.google.ads.googleads.v0.resources.BiddingStrategyName; import com.google.ads.googleads.v0.resources.BillingSetupName; @@ -29,7 +31,6 @@ import com.google.ads.googleads.v0.resources.CampaignBudgetName; import com.google.ads.googleads.v0.resources.CampaignCriteriaName; import com.google.ads.googleads.v0.resources.CampaignFeedName; -import com.google.ads.googleads.v0.resources.CampaignGroupName; import com.google.ads.googleads.v0.resources.CampaignName; import com.google.ads.googleads.v0.resources.CampaignSharedSetName; import com.google.ads.googleads.v0.resources.CarrierConstantName; @@ -58,9 +59,13 @@ import com.google.ads.googleads.v0.resources.LanguageConstantName; import com.google.ads.googleads.v0.resources.ManagedPlacementViewName; import com.google.ads.googleads.v0.resources.MediaFileName; +import com.google.ads.googleads.v0.resources.MobileAppCategoryConstantName; +import com.google.ads.googleads.v0.resources.MobileDeviceConstantName; +import com.google.ads.googleads.v0.resources.OperatingSystemVersionConstantName; import com.google.ads.googleads.v0.resources.ParentalStatusViewName; import com.google.ads.googleads.v0.resources.ProductGroupViewName; import com.google.ads.googleads.v0.resources.RecommendationName; +import com.google.ads.googleads.v0.resources.RemarketingActionName; import com.google.ads.googleads.v0.resources.SearchTermViewName; import com.google.ads.googleads.v0.resources.SharedCriteriaName; import com.google.ads.googleads.v0.resources.SharedSetName; @@ -132,6 +137,19 @@ public static String adGroupFeed(long customerId, long adGroupId, long feedId) { return AdGroupFeedName.format(String.valueOf(customerId), concatIdentifiers(adGroupId, feedId)); } + /** Returns the ad parameter resource name for the specified components. */ + public static String adParameter( + long customerId, long adGroupId, long criterionId, long parameterIndex) { + return AdParameterName.format( + String.valueOf(customerId), concatIdentifiers(adGroupId, criterionId, parameterIndex)); + } + + /** Returns the ad schedule view resource name for the specified components. */ + public static String adScheduleView(long customerId, long campaignId, long criterionId) { + return AdScheduleViewName.format( + String.valueOf(customerId), concatIdentifiers(campaignId, criterionId)); + } + /** Returns the age range view resource name for the specified components. */ public static String ageRangeView(long customerId, long adGroupId, long criterionId) { return AgeRangeViewName.format( @@ -183,11 +201,6 @@ public static String campaignFeed(long customerId, long campaignId, long feedId) String.valueOf(customerId), concatIdentifiers(campaignId, feedId)); } - /** Returns the campaign group resource name for the specified components. */ - public static String campaignGroup(long customerId, long campaignGroupId) { - return CampaignGroupName.format(String.valueOf(customerId), String.valueOf(campaignGroupId)); - } - /** Returns the campaign shared set resource name for the specified components. */ public static String campaignSharedSet(long customerId, long campaignId, long sharedSetId) { return CampaignSharedSetName.format( @@ -337,6 +350,21 @@ public static String mediaFile(long customerId, long mediaId) { return MediaFileName.format(String.valueOf(customerId), String.valueOf(mediaId)); } + /** Returns the mobile app category constant resource name for the specified components. */ + public static String mobileAppCategoryConstant(long mobileAppCategoryId) { + return MobileAppCategoryConstantName.format(String.valueOf(mobileAppCategoryId)); + } + + /** Returns the mobile device constant resource name for the specified components. */ + public static String mobileDeviceConstant(long criterionId) { + return MobileDeviceConstantName.format(String.valueOf(criterionId)); + } + + /** Returns the operation system version constant resource name for the specified components. */ + public static String operatingSystemVersionConstant(long criterionId) { + return OperatingSystemVersionConstantName.format(String.valueOf(criterionId)); + } + /** Returns the parental status view resource name for the specified components. */ public static String parentalStatusView(long customerId, long adGroupId, long criterionId) { return ParentalStatusViewName.format( @@ -362,6 +390,12 @@ public static String recommendation(long customerId, String recommendationId) { return RecommendationName.format(String.valueOf(customerId), recommendationId); } + /** Returns the remarketing action resource name for the specified components. */ + public static String remarketingAction(long customerId, long remarketingActionId) { + return RemarketingActionName.format( + String.valueOf(customerId), String.valueOf(remarketingActionId)); + } + /** Returns the search term view resource name for the specified components. */ public static String searchTermView( long customerId, long campaignId, long adGroupId, String query) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/AdTypeInfosProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/AdTypeInfosProto.java index e8176eeb35..cf6dede8c3 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/common/AdTypeInfosProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/AdTypeInfosProto.java @@ -79,6 +79,16 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_googleads_v0_common_ImageAdInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_common_VideoTrueViewInStreamAdInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_common_VideoTrueViewInStreamAdInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_common_VideoAdInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_common_VideoAdInfo_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -187,12 +197,20 @@ public static void registerAllExtensions( "otobuf.StringValue\0222\n\nmedia_file\030\001 \001(\0132\034" + ".google.protobuf.StringValueH\000\022+\n\004data\030\002" + " \001(\0132\033.google.protobuf.BytesValueH\000B\007\n\005i" + - "mageB\306\001\n\"com.google.ads.googleads.v0.com" + - "monB\020AdTypeInfosProtoP\001ZDgoogle.golang.o" + - "rg/genproto/googleapis/ads/googleads/v0/" + - "common;common\242\002\003GAA\252\002\036Google.Ads.GoogleA" + - "ds.V0.Common\312\002\036Google\\Ads\\GoogleAds\\V0\\C" + - "ommonb\006proto3" + "mage\"\217\001\n\033VideoTrueViewInStreamAdInfo\0229\n\023" + + "action_button_label\030\001 \001(\0132\034.google.proto" + + "buf.StringValue\0225\n\017action_headline\030\002 \001(\013" + + "2\034.google.protobuf.StringValue\"\233\001\n\013Video" + + "AdInfo\0220\n\nmedia_file\030\001 \001(\0132\034.google.prot" + + "obuf.StringValue\022P\n\tin_stream\030\002 \001(\0132;.go" + + "ogle.ads.googleads.v0.common.VideoTrueVi" + + "ewInStreamAdInfoH\000B\010\n\006formatB\353\001\n\"com.goo" + + "gle.ads.googleads.v0.commonB\020AdTypeInfos" + + "ProtoP\001ZDgoogle.golang.org/genproto/goog" + + "leapis/ads/googleads/v0/common;common\242\002\003" + + "GAA\252\002\036Google.Ads.GoogleAds.V0.Common\312\002\036G" + + "oogle\\Ads\\GoogleAds\\V0\\Common\352\002\"Google::" + + "Ads::GoogleAds::V0::Commonb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -288,6 +306,18 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_ImageAdInfo_descriptor, new java.lang.String[] { "PixelWidth", "PixelHeight", "ImageUrl", "PreviewPixelWidth", "PreviewPixelHeight", "PreviewImageUrl", "MimeType", "Name", "MediaFile", "Data", "Image", }); + internal_static_google_ads_googleads_v0_common_VideoTrueViewInStreamAdInfo_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_ads_googleads_v0_common_VideoTrueViewInStreamAdInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_common_VideoTrueViewInStreamAdInfo_descriptor, + new java.lang.String[] { "ActionButtonLabel", "ActionHeadline", }); + internal_static_google_ads_googleads_v0_common_VideoAdInfo_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_ads_googleads_v0_common_VideoAdInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_common_VideoAdInfo_descriptor, + new java.lang.String[] { "MediaFile", "InStream", "Format", }); com.google.ads.googleads.v0.enums.CallConversionReportingStateProto.getDescriptor(); com.google.ads.googleads.v0.enums.DisplayAdFormatSettingProto.getDescriptor(); com.google.ads.googleads.v0.enums.MimeTypeProto.getDescriptor(); diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/AppPaymentModelInfo.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/AppPaymentModelInfo.java new file mode 100644 index 0000000000..fb882539ad --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/AppPaymentModelInfo.java @@ -0,0 +1,535 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/criteria.proto + +package com.google.ads.googleads.v0.common; + +/** + *

+ * An app payment model criterion.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.AppPaymentModelInfo} + */ +public final class AppPaymentModelInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.common.AppPaymentModelInfo) + AppPaymentModelInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use AppPaymentModelInfo.newBuilder() to construct. + private AppPaymentModelInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AppPaymentModelInfo() { + type_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AppPaymentModelInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.CriteriaProto.internal_static_google_ads_googleads_v0_common_AppPaymentModelInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.CriteriaProto.internal_static_google_ads_googleads_v0_common_AppPaymentModelInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.AppPaymentModelInfo.class, com.google.ads.googleads.v0.common.AppPaymentModelInfo.Builder.class); + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + *
+   * Type of the app payment model.
+   * 
+ * + * .google.ads.googleads.v0.enums.AppPaymentModelTypeEnum.AppPaymentModelType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + *
+   * Type of the app payment model.
+   * 
+ * + * .google.ads.googleads.v0.enums.AppPaymentModelTypeEnum.AppPaymentModelType type = 1; + */ + public com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum.AppPaymentModelType getType() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum.AppPaymentModelType result = com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum.AppPaymentModelType.valueOf(type_); + return result == null ? com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum.AppPaymentModelType.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (type_ != com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum.AppPaymentModelType.UNSPECIFIED.getNumber()) { + output.writeEnum(1, type_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ != com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum.AppPaymentModelType.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); + } + size += unknownFields.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.ads.googleads.v0.common.AppPaymentModelInfo)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.common.AppPaymentModelInfo other = (com.google.ads.googleads.v0.common.AppPaymentModelInfo) obj; + + boolean result = true; + result = result && type_ == other.type_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.common.AppPaymentModelInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.AppPaymentModelInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.AppPaymentModelInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.AppPaymentModelInfo 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.ads.googleads.v0.common.AppPaymentModelInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.AppPaymentModelInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.AppPaymentModelInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.AppPaymentModelInfo 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.ads.googleads.v0.common.AppPaymentModelInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.AppPaymentModelInfo 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.ads.googleads.v0.common.AppPaymentModelInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.AppPaymentModelInfo 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.ads.googleads.v0.common.AppPaymentModelInfo 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; + } + /** + *
+   * An app payment model criterion.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.AppPaymentModelInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.common.AppPaymentModelInfo) + com.google.ads.googleads.v0.common.AppPaymentModelInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.CriteriaProto.internal_static_google_ads_googleads_v0_common_AppPaymentModelInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.CriteriaProto.internal_static_google_ads_googleads_v0_common_AppPaymentModelInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.AppPaymentModelInfo.class, com.google.ads.googleads.v0.common.AppPaymentModelInfo.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.common.AppPaymentModelInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.common.CriteriaProto.internal_static_google_ads_googleads_v0_common_AppPaymentModelInfo_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.AppPaymentModelInfo getDefaultInstanceForType() { + return com.google.ads.googleads.v0.common.AppPaymentModelInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.AppPaymentModelInfo build() { + com.google.ads.googleads.v0.common.AppPaymentModelInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.AppPaymentModelInfo buildPartial() { + com.google.ads.googleads.v0.common.AppPaymentModelInfo result = new com.google.ads.googleads.v0.common.AppPaymentModelInfo(this); + result.type_ = type_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.common.AppPaymentModelInfo) { + return mergeFrom((com.google.ads.googleads.v0.common.AppPaymentModelInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.common.AppPaymentModelInfo other) { + if (other == com.google.ads.googleads.v0.common.AppPaymentModelInfo.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.common.AppPaymentModelInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.common.AppPaymentModelInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int type_ = 0; + /** + *
+     * Type of the app payment model.
+     * 
+ * + * .google.ads.googleads.v0.enums.AppPaymentModelTypeEnum.AppPaymentModelType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + *
+     * Type of the app payment model.
+     * 
+ * + * .google.ads.googleads.v0.enums.AppPaymentModelTypeEnum.AppPaymentModelType type = 1; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + *
+     * Type of the app payment model.
+     * 
+ * + * .google.ads.googleads.v0.enums.AppPaymentModelTypeEnum.AppPaymentModelType type = 1; + */ + public com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum.AppPaymentModelType getType() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum.AppPaymentModelType result = com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum.AppPaymentModelType.valueOf(type_); + return result == null ? com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum.AppPaymentModelType.UNRECOGNIZED : result; + } + /** + *
+     * Type of the app payment model.
+     * 
+ * + * .google.ads.googleads.v0.enums.AppPaymentModelTypeEnum.AppPaymentModelType type = 1; + */ + public Builder setType(com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum.AppPaymentModelType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Type of the app payment model.
+     * 
+ * + * .google.ads.googleads.v0.enums.AppPaymentModelTypeEnum.AppPaymentModelType type = 1; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.common.AppPaymentModelInfo) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.common.AppPaymentModelInfo) + private static final com.google.ads.googleads.v0.common.AppPaymentModelInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.common.AppPaymentModelInfo(); + } + + public static com.google.ads.googleads.v0.common.AppPaymentModelInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AppPaymentModelInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AppPaymentModelInfo(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.common.AppPaymentModelInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/AppPaymentModelInfoOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/AppPaymentModelInfoOrBuilder.java new file mode 100644 index 0000000000..fdad47dd9c --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/AppPaymentModelInfoOrBuilder.java @@ -0,0 +1,26 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/criteria.proto + +package com.google.ads.googleads.v0.common; + +public interface AppPaymentModelInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.common.AppPaymentModelInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Type of the app payment model.
+   * 
+ * + * .google.ads.googleads.v0.enums.AppPaymentModelTypeEnum.AppPaymentModelType type = 1; + */ + int getTypeValue(); + /** + *
+   * Type of the app payment model.
+   * 
+ * + * .google.ads.googleads.v0.enums.AppPaymentModelTypeEnum.AppPaymentModelType type = 1; + */ + com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum.AppPaymentModelType getType(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/BasicUserListInfo.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/BasicUserListInfo.java new file mode 100644 index 0000000000..04cc440bb0 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/BasicUserListInfo.java @@ -0,0 +1,859 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/user_lists.proto + +package com.google.ads.googleads.v0.common; + +/** + *
+ * User list targeting as a collection of conversions or remarketing actions.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.BasicUserListInfo} + */ +public final class BasicUserListInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.common.BasicUserListInfo) + BasicUserListInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use BasicUserListInfo.newBuilder() to construct. + private BasicUserListInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BasicUserListInfo() { + actions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BasicUserListInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + actions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + actions_.add( + input.readMessage(com.google.ads.googleads.v0.common.UserListActionInfo.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + actions_ = java.util.Collections.unmodifiableList(actions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_BasicUserListInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_BasicUserListInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.BasicUserListInfo.class, com.google.ads.googleads.v0.common.BasicUserListInfo.Builder.class); + } + + public static final int ACTIONS_FIELD_NUMBER = 1; + private java.util.List actions_; + /** + *
+   * Actions associated with this user list.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListActionInfo actions = 1; + */ + public java.util.List getActionsList() { + return actions_; + } + /** + *
+   * Actions associated with this user list.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListActionInfo actions = 1; + */ + public java.util.List + getActionsOrBuilderList() { + return actions_; + } + /** + *
+   * Actions associated with this user list.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListActionInfo actions = 1; + */ + public int getActionsCount() { + return actions_.size(); + } + /** + *
+   * Actions associated with this user list.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListActionInfo actions = 1; + */ + public com.google.ads.googleads.v0.common.UserListActionInfo getActions(int index) { + return actions_.get(index); + } + /** + *
+   * Actions associated with this user list.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListActionInfo actions = 1; + */ + public com.google.ads.googleads.v0.common.UserListActionInfoOrBuilder getActionsOrBuilder( + int index) { + return actions_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < actions_.size(); i++) { + output.writeMessage(1, actions_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < actions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, actions_.get(i)); + } + size += unknownFields.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.ads.googleads.v0.common.BasicUserListInfo)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.common.BasicUserListInfo other = (com.google.ads.googleads.v0.common.BasicUserListInfo) obj; + + boolean result = true; + result = result && getActionsList() + .equals(other.getActionsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getActionsCount() > 0) { + hash = (37 * hash) + ACTIONS_FIELD_NUMBER; + hash = (53 * hash) + getActionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.common.BasicUserListInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.BasicUserListInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.BasicUserListInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.BasicUserListInfo 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.ads.googleads.v0.common.BasicUserListInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.BasicUserListInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.BasicUserListInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.BasicUserListInfo 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.ads.googleads.v0.common.BasicUserListInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.BasicUserListInfo 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.ads.googleads.v0.common.BasicUserListInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.BasicUserListInfo 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.ads.googleads.v0.common.BasicUserListInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * User list targeting as a collection of conversions or remarketing actions.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.BasicUserListInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.common.BasicUserListInfo) + com.google.ads.googleads.v0.common.BasicUserListInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_BasicUserListInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_BasicUserListInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.BasicUserListInfo.class, com.google.ads.googleads.v0.common.BasicUserListInfo.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.common.BasicUserListInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getActionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (actionsBuilder_ == null) { + actions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + actionsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_BasicUserListInfo_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.BasicUserListInfo getDefaultInstanceForType() { + return com.google.ads.googleads.v0.common.BasicUserListInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.BasicUserListInfo build() { + com.google.ads.googleads.v0.common.BasicUserListInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.BasicUserListInfo buildPartial() { + com.google.ads.googleads.v0.common.BasicUserListInfo result = new com.google.ads.googleads.v0.common.BasicUserListInfo(this); + int from_bitField0_ = bitField0_; + if (actionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + actions_ = java.util.Collections.unmodifiableList(actions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.actions_ = actions_; + } else { + result.actions_ = actionsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.common.BasicUserListInfo) { + return mergeFrom((com.google.ads.googleads.v0.common.BasicUserListInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.common.BasicUserListInfo other) { + if (other == com.google.ads.googleads.v0.common.BasicUserListInfo.getDefaultInstance()) return this; + if (actionsBuilder_ == null) { + if (!other.actions_.isEmpty()) { + if (actions_.isEmpty()) { + actions_ = other.actions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureActionsIsMutable(); + actions_.addAll(other.actions_); + } + onChanged(); + } + } else { + if (!other.actions_.isEmpty()) { + if (actionsBuilder_.isEmpty()) { + actionsBuilder_.dispose(); + actionsBuilder_ = null; + actions_ = other.actions_; + bitField0_ = (bitField0_ & ~0x00000001); + actionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getActionsFieldBuilder() : null; + } else { + actionsBuilder_.addAllMessages(other.actions_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.common.BasicUserListInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.common.BasicUserListInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List actions_ = + java.util.Collections.emptyList(); + private void ensureActionsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + actions_ = new java.util.ArrayList(actions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.common.UserListActionInfo, com.google.ads.googleads.v0.common.UserListActionInfo.Builder, com.google.ads.googleads.v0.common.UserListActionInfoOrBuilder> actionsBuilder_; + + /** + *
+     * Actions associated with this user list.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListActionInfo actions = 1; + */ + public java.util.List getActionsList() { + if (actionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(actions_); + } else { + return actionsBuilder_.getMessageList(); + } + } + /** + *
+     * Actions associated with this user list.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListActionInfo actions = 1; + */ + public int getActionsCount() { + if (actionsBuilder_ == null) { + return actions_.size(); + } else { + return actionsBuilder_.getCount(); + } + } + /** + *
+     * Actions associated with this user list.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListActionInfo actions = 1; + */ + public com.google.ads.googleads.v0.common.UserListActionInfo getActions(int index) { + if (actionsBuilder_ == null) { + return actions_.get(index); + } else { + return actionsBuilder_.getMessage(index); + } + } + /** + *
+     * Actions associated with this user list.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListActionInfo actions = 1; + */ + public Builder setActions( + int index, com.google.ads.googleads.v0.common.UserListActionInfo value) { + if (actionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionsIsMutable(); + actions_.set(index, value); + onChanged(); + } else { + actionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Actions associated with this user list.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListActionInfo actions = 1; + */ + public Builder setActions( + int index, com.google.ads.googleads.v0.common.UserListActionInfo.Builder builderForValue) { + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.set(index, builderForValue.build()); + onChanged(); + } else { + actionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Actions associated with this user list.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListActionInfo actions = 1; + */ + public Builder addActions(com.google.ads.googleads.v0.common.UserListActionInfo value) { + if (actionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionsIsMutable(); + actions_.add(value); + onChanged(); + } else { + actionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Actions associated with this user list.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListActionInfo actions = 1; + */ + public Builder addActions( + int index, com.google.ads.googleads.v0.common.UserListActionInfo value) { + if (actionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionsIsMutable(); + actions_.add(index, value); + onChanged(); + } else { + actionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Actions associated with this user list.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListActionInfo actions = 1; + */ + public Builder addActions( + com.google.ads.googleads.v0.common.UserListActionInfo.Builder builderForValue) { + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.add(builderForValue.build()); + onChanged(); + } else { + actionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Actions associated with this user list.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListActionInfo actions = 1; + */ + public Builder addActions( + int index, com.google.ads.googleads.v0.common.UserListActionInfo.Builder builderForValue) { + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.add(index, builderForValue.build()); + onChanged(); + } else { + actionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Actions associated with this user list.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListActionInfo actions = 1; + */ + public Builder addAllActions( + java.lang.Iterable values) { + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, actions_); + onChanged(); + } else { + actionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Actions associated with this user list.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListActionInfo actions = 1; + */ + public Builder clearActions() { + if (actionsBuilder_ == null) { + actions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + actionsBuilder_.clear(); + } + return this; + } + /** + *
+     * Actions associated with this user list.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListActionInfo actions = 1; + */ + public Builder removeActions(int index) { + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.remove(index); + onChanged(); + } else { + actionsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Actions associated with this user list.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListActionInfo actions = 1; + */ + public com.google.ads.googleads.v0.common.UserListActionInfo.Builder getActionsBuilder( + int index) { + return getActionsFieldBuilder().getBuilder(index); + } + /** + *
+     * Actions associated with this user list.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListActionInfo actions = 1; + */ + public com.google.ads.googleads.v0.common.UserListActionInfoOrBuilder getActionsOrBuilder( + int index) { + if (actionsBuilder_ == null) { + return actions_.get(index); } else { + return actionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Actions associated with this user list.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListActionInfo actions = 1; + */ + public java.util.List + getActionsOrBuilderList() { + if (actionsBuilder_ != null) { + return actionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(actions_); + } + } + /** + *
+     * Actions associated with this user list.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListActionInfo actions = 1; + */ + public com.google.ads.googleads.v0.common.UserListActionInfo.Builder addActionsBuilder() { + return getActionsFieldBuilder().addBuilder( + com.google.ads.googleads.v0.common.UserListActionInfo.getDefaultInstance()); + } + /** + *
+     * Actions associated with this user list.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListActionInfo actions = 1; + */ + public com.google.ads.googleads.v0.common.UserListActionInfo.Builder addActionsBuilder( + int index) { + return getActionsFieldBuilder().addBuilder( + index, com.google.ads.googleads.v0.common.UserListActionInfo.getDefaultInstance()); + } + /** + *
+     * Actions associated with this user list.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListActionInfo actions = 1; + */ + public java.util.List + getActionsBuilderList() { + return getActionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.common.UserListActionInfo, com.google.ads.googleads.v0.common.UserListActionInfo.Builder, com.google.ads.googleads.v0.common.UserListActionInfoOrBuilder> + getActionsFieldBuilder() { + if (actionsBuilder_ == null) { + actionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.common.UserListActionInfo, com.google.ads.googleads.v0.common.UserListActionInfo.Builder, com.google.ads.googleads.v0.common.UserListActionInfoOrBuilder>( + actions_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + actions_ = null; + } + return actionsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.common.BasicUserListInfo) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.common.BasicUserListInfo) + private static final com.google.ads.googleads.v0.common.BasicUserListInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.common.BasicUserListInfo(); + } + + public static com.google.ads.googleads.v0.common.BasicUserListInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BasicUserListInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BasicUserListInfo(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.common.BasicUserListInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/BasicUserListInfoOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/BasicUserListInfoOrBuilder.java new file mode 100644 index 0000000000..d803d1934d --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/BasicUserListInfoOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/user_lists.proto + +package com.google.ads.googleads.v0.common; + +public interface BasicUserListInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.common.BasicUserListInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Actions associated with this user list.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListActionInfo actions = 1; + */ + java.util.List + getActionsList(); + /** + *
+   * Actions associated with this user list.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListActionInfo actions = 1; + */ + com.google.ads.googleads.v0.common.UserListActionInfo getActions(int index); + /** + *
+   * Actions associated with this user list.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListActionInfo actions = 1; + */ + int getActionsCount(); + /** + *
+   * Actions associated with this user list.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListActionInfo actions = 1; + */ + java.util.List + getActionsOrBuilderList(); + /** + *
+   * Actions associated with this user list.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListActionInfo actions = 1; + */ + com.google.ads.googleads.v0.common.UserListActionInfoOrBuilder getActionsOrBuilder( + int index); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/BiddingProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/BiddingProto.java index aae03d7bbc..1ff01b1f80 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/common/BiddingProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/BiddingProto.java @@ -54,6 +54,11 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_googleads_v0_common_TargetCpa_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_common_TargetCpm_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_common_TargetCpm_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_ads_googleads_v0_common_TargetOutrankShare_descriptor; static final @@ -109,31 +114,33 @@ public static void registerAllExtensions( ";\n\026cpc_bid_ceiling_micros\030\002 \001(\0132\033.google" + ".protobuf.Int64Value\0229\n\024cpc_bid_floor_mi" + "cros\030\003 \001(\0132\033.google.protobuf.Int64Value\"" + - "\322\002\n\022TargetOutrankShare\022@\n\033target_outrank" + - "_share_micros\030\001 \001(\0132\033.google.protobuf.In" + - "t32Value\0227\n\021competitor_domain\030\002 \001(\0132\034.go" + - "ogle.protobuf.StringValue\022;\n\026cpc_bid_cei" + - "ling_micros\030\003 \001(\0132\033.google.protobuf.Int6" + - "4Value\0227\n\023only_raise_cpc_bids\030\004 \001(\0132\032.go" + - "ogle.protobuf.BoolValue\022K\n\'raise_cpc_bid" + - "_when_quality_score_is_low\030\005 \001(\0132\032.googl" + - "e.protobuf.BoolValue\"\267\001\n\nTargetRoas\0221\n\013t" + - "arget_roas\030\001 \001(\0132\034.google.protobuf.Doubl" + - "eValue\022;\n\026cpc_bid_ceiling_micros\030\002 \001(\0132\033" + - ".google.protobuf.Int64Value\0229\n\024cpc_bid_f" + - "loor_micros\030\003 \001(\0132\033.google.protobuf.Int6" + - "4Value\"\204\001\n\013TargetSpend\0228\n\023target_spend_m" + - "icros\030\001 \001(\0132\033.google.protobuf.Int64Value" + - "\022;\n\026cpc_bid_ceiling_micros\030\002 \001(\0132\033.googl" + - "e.protobuf.Int64Value\"\203\001\n\nPercentCpc\022;\n\026" + - "cpc_bid_ceiling_micros\030\001 \001(\0132\033.google.pr" + - "otobuf.Int64Value\0228\n\024enhanced_cpc_enable" + - "d\030\002 \001(\0132\032.google.protobuf.BoolValueB\302\001\n\"" + - "com.google.ads.googleads.v0.commonB\014Bidd" + - "ingProtoP\001ZDgoogle.golang.org/genproto/g" + - "oogleapis/ads/googleads/v0/common;common" + - "\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V0.Common\312" + - "\002\036Google\\Ads\\GoogleAds\\V0\\Commonb\006proto3" + "\013\n\tTargetCpm\"\322\002\n\022TargetOutrankShare\022@\n\033t" + + "arget_outrank_share_micros\030\001 \001(\0132\033.googl" + + "e.protobuf.Int32Value\0227\n\021competitor_doma" + + "in\030\002 \001(\0132\034.google.protobuf.StringValue\022;" + + "\n\026cpc_bid_ceiling_micros\030\003 \001(\0132\033.google." + + "protobuf.Int64Value\0227\n\023only_raise_cpc_bi" + + "ds\030\004 \001(\0132\032.google.protobuf.BoolValue\022K\n\'" + + "raise_cpc_bid_when_quality_score_is_low\030" + + "\005 \001(\0132\032.google.protobuf.BoolValue\"\267\001\n\nTa" + + "rgetRoas\0221\n\013target_roas\030\001 \001(\0132\034.google.p" + + "rotobuf.DoubleValue\022;\n\026cpc_bid_ceiling_m" + + "icros\030\002 \001(\0132\033.google.protobuf.Int64Value" + + "\0229\n\024cpc_bid_floor_micros\030\003 \001(\0132\033.google." + + "protobuf.Int64Value\"\204\001\n\013TargetSpend\0228\n\023t" + + "arget_spend_micros\030\001 \001(\0132\033.google.protob" + + "uf.Int64Value\022;\n\026cpc_bid_ceiling_micros\030" + + "\002 \001(\0132\033.google.protobuf.Int64Value\"\203\001\n\nP" + + "ercentCpc\022;\n\026cpc_bid_ceiling_micros\030\001 \001(" + + "\0132\033.google.protobuf.Int64Value\0228\n\024enhanc" + + "ed_cpc_enabled\030\002 \001(\0132\032.google.protobuf.B" + + "oolValueB\347\001\n\"com.google.ads.googleads.v0" + + ".commonB\014BiddingProtoP\001ZDgoogle.golang.o" + + "rg/genproto/googleapis/ads/googleads/v0/" + + "common;common\242\002\003GAA\252\002\036Google.Ads.GoogleA" + + "ds.V0.Common\312\002\036Google\\Ads\\GoogleAds\\V0\\C" + + "ommon\352\002\"Google::Ads::GoogleAds::V0::Comm" + + "onb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -197,26 +204,32 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_TargetCpa_descriptor, new java.lang.String[] { "TargetCpaMicros", "CpcBidCeilingMicros", "CpcBidFloorMicros", }); - internal_static_google_ads_googleads_v0_common_TargetOutrankShare_descriptor = + internal_static_google_ads_googleads_v0_common_TargetCpm_descriptor = getDescriptor().getMessageTypes().get(8); + internal_static_google_ads_googleads_v0_common_TargetCpm_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_common_TargetCpm_descriptor, + new java.lang.String[] { }); + internal_static_google_ads_googleads_v0_common_TargetOutrankShare_descriptor = + getDescriptor().getMessageTypes().get(9); internal_static_google_ads_googleads_v0_common_TargetOutrankShare_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_TargetOutrankShare_descriptor, new java.lang.String[] { "TargetOutrankShareMicros", "CompetitorDomain", "CpcBidCeilingMicros", "OnlyRaiseCpcBids", "RaiseCpcBidWhenQualityScoreIsLow", }); internal_static_google_ads_googleads_v0_common_TargetRoas_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_google_ads_googleads_v0_common_TargetRoas_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_TargetRoas_descriptor, new java.lang.String[] { "TargetRoas", "CpcBidCeilingMicros", "CpcBidFloorMicros", }); internal_static_google_ads_googleads_v0_common_TargetSpend_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_google_ads_googleads_v0_common_TargetSpend_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_TargetSpend_descriptor, new java.lang.String[] { "TargetSpendMicros", "CpcBidCeilingMicros", }); internal_static_google_ads_googleads_v0_common_PercentCpc_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_google_ads_googleads_v0_common_PercentCpc_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_PercentCpc_descriptor, diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/CombinedRuleUserListInfo.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/CombinedRuleUserListInfo.java new file mode 100644 index 0000000000..c8467303c8 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/CombinedRuleUserListInfo.java @@ -0,0 +1,1052 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/user_lists.proto + +package com.google.ads.googleads.v0.common; + +/** + *
+ * User lists defined by combining two rules, left operand and right operand.
+ * There are two operators: AND where left operand and right operand have to be
+ * true; AND_NOT where left operand is true but right operand is false.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.CombinedRuleUserListInfo} + */ +public final class CombinedRuleUserListInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.common.CombinedRuleUserListInfo) + CombinedRuleUserListInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use CombinedRuleUserListInfo.newBuilder() to construct. + private CombinedRuleUserListInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CombinedRuleUserListInfo() { + ruleOperator_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CombinedRuleUserListInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.ads.googleads.v0.common.UserListRuleInfo.Builder subBuilder = null; + if (leftOperand_ != null) { + subBuilder = leftOperand_.toBuilder(); + } + leftOperand_ = input.readMessage(com.google.ads.googleads.v0.common.UserListRuleInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(leftOperand_); + leftOperand_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.ads.googleads.v0.common.UserListRuleInfo.Builder subBuilder = null; + if (rightOperand_ != null) { + subBuilder = rightOperand_.toBuilder(); + } + rightOperand_ = input.readMessage(com.google.ads.googleads.v0.common.UserListRuleInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(rightOperand_); + rightOperand_ = subBuilder.buildPartial(); + } + + break; + } + case 24: { + int rawValue = input.readEnum(); + + ruleOperator_ = rawValue; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_CombinedRuleUserListInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_CombinedRuleUserListInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.CombinedRuleUserListInfo.class, com.google.ads.googleads.v0.common.CombinedRuleUserListInfo.Builder.class); + } + + public static final int LEFT_OPERAND_FIELD_NUMBER = 1; + private com.google.ads.googleads.v0.common.UserListRuleInfo leftOperand_; + /** + *
+   * Left operand of the combined rule.
+   * This field is required and must be populated when creating new combined
+   * rule based user list.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo left_operand = 1; + */ + public boolean hasLeftOperand() { + return leftOperand_ != null; + } + /** + *
+   * Left operand of the combined rule.
+   * This field is required and must be populated when creating new combined
+   * rule based user list.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo left_operand = 1; + */ + public com.google.ads.googleads.v0.common.UserListRuleInfo getLeftOperand() { + return leftOperand_ == null ? com.google.ads.googleads.v0.common.UserListRuleInfo.getDefaultInstance() : leftOperand_; + } + /** + *
+   * Left operand of the combined rule.
+   * This field is required and must be populated when creating new combined
+   * rule based user list.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo left_operand = 1; + */ + public com.google.ads.googleads.v0.common.UserListRuleInfoOrBuilder getLeftOperandOrBuilder() { + return getLeftOperand(); + } + + public static final int RIGHT_OPERAND_FIELD_NUMBER = 2; + private com.google.ads.googleads.v0.common.UserListRuleInfo rightOperand_; + /** + *
+   * Right operand of the combined rule.
+   * This field is required and must be populated when creating new combined
+   * rule based user list.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo right_operand = 2; + */ + public boolean hasRightOperand() { + return rightOperand_ != null; + } + /** + *
+   * Right operand of the combined rule.
+   * This field is required and must be populated when creating new combined
+   * rule based user list.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo right_operand = 2; + */ + public com.google.ads.googleads.v0.common.UserListRuleInfo getRightOperand() { + return rightOperand_ == null ? com.google.ads.googleads.v0.common.UserListRuleInfo.getDefaultInstance() : rightOperand_; + } + /** + *
+   * Right operand of the combined rule.
+   * This field is required and must be populated when creating new combined
+   * rule based user list.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo right_operand = 2; + */ + public com.google.ads.googleads.v0.common.UserListRuleInfoOrBuilder getRightOperandOrBuilder() { + return getRightOperand(); + } + + public static final int RULE_OPERATOR_FIELD_NUMBER = 3; + private int ruleOperator_; + /** + *
+   * Operator to connect the two operands.
+   * Required for creating a combined rule user list.
+   * 
+ * + * .google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator rule_operator = 3; + */ + public int getRuleOperatorValue() { + return ruleOperator_; + } + /** + *
+   * Operator to connect the two operands.
+   * Required for creating a combined rule user list.
+   * 
+ * + * .google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator rule_operator = 3; + */ + public com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator getRuleOperator() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator result = com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator.valueOf(ruleOperator_); + return result == null ? com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (leftOperand_ != null) { + output.writeMessage(1, getLeftOperand()); + } + if (rightOperand_ != null) { + output.writeMessage(2, getRightOperand()); + } + if (ruleOperator_ != com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator.UNSPECIFIED.getNumber()) { + output.writeEnum(3, ruleOperator_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (leftOperand_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getLeftOperand()); + } + if (rightOperand_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getRightOperand()); + } + if (ruleOperator_ != com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, ruleOperator_); + } + size += unknownFields.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.ads.googleads.v0.common.CombinedRuleUserListInfo)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.common.CombinedRuleUserListInfo other = (com.google.ads.googleads.v0.common.CombinedRuleUserListInfo) obj; + + boolean result = true; + result = result && (hasLeftOperand() == other.hasLeftOperand()); + if (hasLeftOperand()) { + result = result && getLeftOperand() + .equals(other.getLeftOperand()); + } + result = result && (hasRightOperand() == other.hasRightOperand()); + if (hasRightOperand()) { + result = result && getRightOperand() + .equals(other.getRightOperand()); + } + result = result && ruleOperator_ == other.ruleOperator_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasLeftOperand()) { + hash = (37 * hash) + LEFT_OPERAND_FIELD_NUMBER; + hash = (53 * hash) + getLeftOperand().hashCode(); + } + if (hasRightOperand()) { + hash = (37 * hash) + RIGHT_OPERAND_FIELD_NUMBER; + hash = (53 * hash) + getRightOperand().hashCode(); + } + hash = (37 * hash) + RULE_OPERATOR_FIELD_NUMBER; + hash = (53 * hash) + ruleOperator_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.common.CombinedRuleUserListInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.CombinedRuleUserListInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.CombinedRuleUserListInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.CombinedRuleUserListInfo 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.ads.googleads.v0.common.CombinedRuleUserListInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.CombinedRuleUserListInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.CombinedRuleUserListInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.CombinedRuleUserListInfo 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.ads.googleads.v0.common.CombinedRuleUserListInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.CombinedRuleUserListInfo 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.ads.googleads.v0.common.CombinedRuleUserListInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.CombinedRuleUserListInfo 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.ads.googleads.v0.common.CombinedRuleUserListInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * User lists defined by combining two rules, left operand and right operand.
+   * There are two operators: AND where left operand and right operand have to be
+   * true; AND_NOT where left operand is true but right operand is false.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.CombinedRuleUserListInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.common.CombinedRuleUserListInfo) + com.google.ads.googleads.v0.common.CombinedRuleUserListInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_CombinedRuleUserListInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_CombinedRuleUserListInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.CombinedRuleUserListInfo.class, com.google.ads.googleads.v0.common.CombinedRuleUserListInfo.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.common.CombinedRuleUserListInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (leftOperandBuilder_ == null) { + leftOperand_ = null; + } else { + leftOperand_ = null; + leftOperandBuilder_ = null; + } + if (rightOperandBuilder_ == null) { + rightOperand_ = null; + } else { + rightOperand_ = null; + rightOperandBuilder_ = null; + } + ruleOperator_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_CombinedRuleUserListInfo_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.CombinedRuleUserListInfo getDefaultInstanceForType() { + return com.google.ads.googleads.v0.common.CombinedRuleUserListInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.CombinedRuleUserListInfo build() { + com.google.ads.googleads.v0.common.CombinedRuleUserListInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.CombinedRuleUserListInfo buildPartial() { + com.google.ads.googleads.v0.common.CombinedRuleUserListInfo result = new com.google.ads.googleads.v0.common.CombinedRuleUserListInfo(this); + if (leftOperandBuilder_ == null) { + result.leftOperand_ = leftOperand_; + } else { + result.leftOperand_ = leftOperandBuilder_.build(); + } + if (rightOperandBuilder_ == null) { + result.rightOperand_ = rightOperand_; + } else { + result.rightOperand_ = rightOperandBuilder_.build(); + } + result.ruleOperator_ = ruleOperator_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.common.CombinedRuleUserListInfo) { + return mergeFrom((com.google.ads.googleads.v0.common.CombinedRuleUserListInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.common.CombinedRuleUserListInfo other) { + if (other == com.google.ads.googleads.v0.common.CombinedRuleUserListInfo.getDefaultInstance()) return this; + if (other.hasLeftOperand()) { + mergeLeftOperand(other.getLeftOperand()); + } + if (other.hasRightOperand()) { + mergeRightOperand(other.getRightOperand()); + } + if (other.ruleOperator_ != 0) { + setRuleOperatorValue(other.getRuleOperatorValue()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.common.CombinedRuleUserListInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.common.CombinedRuleUserListInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.ads.googleads.v0.common.UserListRuleInfo leftOperand_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.UserListRuleInfo, com.google.ads.googleads.v0.common.UserListRuleInfo.Builder, com.google.ads.googleads.v0.common.UserListRuleInfoOrBuilder> leftOperandBuilder_; + /** + *
+     * Left operand of the combined rule.
+     * This field is required and must be populated when creating new combined
+     * rule based user list.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo left_operand = 1; + */ + public boolean hasLeftOperand() { + return leftOperandBuilder_ != null || leftOperand_ != null; + } + /** + *
+     * Left operand of the combined rule.
+     * This field is required and must be populated when creating new combined
+     * rule based user list.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo left_operand = 1; + */ + public com.google.ads.googleads.v0.common.UserListRuleInfo getLeftOperand() { + if (leftOperandBuilder_ == null) { + return leftOperand_ == null ? com.google.ads.googleads.v0.common.UserListRuleInfo.getDefaultInstance() : leftOperand_; + } else { + return leftOperandBuilder_.getMessage(); + } + } + /** + *
+     * Left operand of the combined rule.
+     * This field is required and must be populated when creating new combined
+     * rule based user list.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo left_operand = 1; + */ + public Builder setLeftOperand(com.google.ads.googleads.v0.common.UserListRuleInfo value) { + if (leftOperandBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + leftOperand_ = value; + onChanged(); + } else { + leftOperandBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Left operand of the combined rule.
+     * This field is required and must be populated when creating new combined
+     * rule based user list.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo left_operand = 1; + */ + public Builder setLeftOperand( + com.google.ads.googleads.v0.common.UserListRuleInfo.Builder builderForValue) { + if (leftOperandBuilder_ == null) { + leftOperand_ = builderForValue.build(); + onChanged(); + } else { + leftOperandBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Left operand of the combined rule.
+     * This field is required and must be populated when creating new combined
+     * rule based user list.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo left_operand = 1; + */ + public Builder mergeLeftOperand(com.google.ads.googleads.v0.common.UserListRuleInfo value) { + if (leftOperandBuilder_ == null) { + if (leftOperand_ != null) { + leftOperand_ = + com.google.ads.googleads.v0.common.UserListRuleInfo.newBuilder(leftOperand_).mergeFrom(value).buildPartial(); + } else { + leftOperand_ = value; + } + onChanged(); + } else { + leftOperandBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Left operand of the combined rule.
+     * This field is required and must be populated when creating new combined
+     * rule based user list.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo left_operand = 1; + */ + public Builder clearLeftOperand() { + if (leftOperandBuilder_ == null) { + leftOperand_ = null; + onChanged(); + } else { + leftOperand_ = null; + leftOperandBuilder_ = null; + } + + return this; + } + /** + *
+     * Left operand of the combined rule.
+     * This field is required and must be populated when creating new combined
+     * rule based user list.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo left_operand = 1; + */ + public com.google.ads.googleads.v0.common.UserListRuleInfo.Builder getLeftOperandBuilder() { + + onChanged(); + return getLeftOperandFieldBuilder().getBuilder(); + } + /** + *
+     * Left operand of the combined rule.
+     * This field is required and must be populated when creating new combined
+     * rule based user list.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo left_operand = 1; + */ + public com.google.ads.googleads.v0.common.UserListRuleInfoOrBuilder getLeftOperandOrBuilder() { + if (leftOperandBuilder_ != null) { + return leftOperandBuilder_.getMessageOrBuilder(); + } else { + return leftOperand_ == null ? + com.google.ads.googleads.v0.common.UserListRuleInfo.getDefaultInstance() : leftOperand_; + } + } + /** + *
+     * Left operand of the combined rule.
+     * This field is required and must be populated when creating new combined
+     * rule based user list.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo left_operand = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.UserListRuleInfo, com.google.ads.googleads.v0.common.UserListRuleInfo.Builder, com.google.ads.googleads.v0.common.UserListRuleInfoOrBuilder> + getLeftOperandFieldBuilder() { + if (leftOperandBuilder_ == null) { + leftOperandBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.UserListRuleInfo, com.google.ads.googleads.v0.common.UserListRuleInfo.Builder, com.google.ads.googleads.v0.common.UserListRuleInfoOrBuilder>( + getLeftOperand(), + getParentForChildren(), + isClean()); + leftOperand_ = null; + } + return leftOperandBuilder_; + } + + private com.google.ads.googleads.v0.common.UserListRuleInfo rightOperand_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.UserListRuleInfo, com.google.ads.googleads.v0.common.UserListRuleInfo.Builder, com.google.ads.googleads.v0.common.UserListRuleInfoOrBuilder> rightOperandBuilder_; + /** + *
+     * Right operand of the combined rule.
+     * This field is required and must be populated when creating new combined
+     * rule based user list.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo right_operand = 2; + */ + public boolean hasRightOperand() { + return rightOperandBuilder_ != null || rightOperand_ != null; + } + /** + *
+     * Right operand of the combined rule.
+     * This field is required and must be populated when creating new combined
+     * rule based user list.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo right_operand = 2; + */ + public com.google.ads.googleads.v0.common.UserListRuleInfo getRightOperand() { + if (rightOperandBuilder_ == null) { + return rightOperand_ == null ? com.google.ads.googleads.v0.common.UserListRuleInfo.getDefaultInstance() : rightOperand_; + } else { + return rightOperandBuilder_.getMessage(); + } + } + /** + *
+     * Right operand of the combined rule.
+     * This field is required and must be populated when creating new combined
+     * rule based user list.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo right_operand = 2; + */ + public Builder setRightOperand(com.google.ads.googleads.v0.common.UserListRuleInfo value) { + if (rightOperandBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rightOperand_ = value; + onChanged(); + } else { + rightOperandBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Right operand of the combined rule.
+     * This field is required and must be populated when creating new combined
+     * rule based user list.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo right_operand = 2; + */ + public Builder setRightOperand( + com.google.ads.googleads.v0.common.UserListRuleInfo.Builder builderForValue) { + if (rightOperandBuilder_ == null) { + rightOperand_ = builderForValue.build(); + onChanged(); + } else { + rightOperandBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Right operand of the combined rule.
+     * This field is required and must be populated when creating new combined
+     * rule based user list.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo right_operand = 2; + */ + public Builder mergeRightOperand(com.google.ads.googleads.v0.common.UserListRuleInfo value) { + if (rightOperandBuilder_ == null) { + if (rightOperand_ != null) { + rightOperand_ = + com.google.ads.googleads.v0.common.UserListRuleInfo.newBuilder(rightOperand_).mergeFrom(value).buildPartial(); + } else { + rightOperand_ = value; + } + onChanged(); + } else { + rightOperandBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Right operand of the combined rule.
+     * This field is required and must be populated when creating new combined
+     * rule based user list.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo right_operand = 2; + */ + public Builder clearRightOperand() { + if (rightOperandBuilder_ == null) { + rightOperand_ = null; + onChanged(); + } else { + rightOperand_ = null; + rightOperandBuilder_ = null; + } + + return this; + } + /** + *
+     * Right operand of the combined rule.
+     * This field is required and must be populated when creating new combined
+     * rule based user list.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo right_operand = 2; + */ + public com.google.ads.googleads.v0.common.UserListRuleInfo.Builder getRightOperandBuilder() { + + onChanged(); + return getRightOperandFieldBuilder().getBuilder(); + } + /** + *
+     * Right operand of the combined rule.
+     * This field is required and must be populated when creating new combined
+     * rule based user list.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo right_operand = 2; + */ + public com.google.ads.googleads.v0.common.UserListRuleInfoOrBuilder getRightOperandOrBuilder() { + if (rightOperandBuilder_ != null) { + return rightOperandBuilder_.getMessageOrBuilder(); + } else { + return rightOperand_ == null ? + com.google.ads.googleads.v0.common.UserListRuleInfo.getDefaultInstance() : rightOperand_; + } + } + /** + *
+     * Right operand of the combined rule.
+     * This field is required and must be populated when creating new combined
+     * rule based user list.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo right_operand = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.UserListRuleInfo, com.google.ads.googleads.v0.common.UserListRuleInfo.Builder, com.google.ads.googleads.v0.common.UserListRuleInfoOrBuilder> + getRightOperandFieldBuilder() { + if (rightOperandBuilder_ == null) { + rightOperandBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.UserListRuleInfo, com.google.ads.googleads.v0.common.UserListRuleInfo.Builder, com.google.ads.googleads.v0.common.UserListRuleInfoOrBuilder>( + getRightOperand(), + getParentForChildren(), + isClean()); + rightOperand_ = null; + } + return rightOperandBuilder_; + } + + private int ruleOperator_ = 0; + /** + *
+     * Operator to connect the two operands.
+     * Required for creating a combined rule user list.
+     * 
+ * + * .google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator rule_operator = 3; + */ + public int getRuleOperatorValue() { + return ruleOperator_; + } + /** + *
+     * Operator to connect the two operands.
+     * Required for creating a combined rule user list.
+     * 
+ * + * .google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator rule_operator = 3; + */ + public Builder setRuleOperatorValue(int value) { + ruleOperator_ = value; + onChanged(); + return this; + } + /** + *
+     * Operator to connect the two operands.
+     * Required for creating a combined rule user list.
+     * 
+ * + * .google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator rule_operator = 3; + */ + public com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator getRuleOperator() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator result = com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator.valueOf(ruleOperator_); + return result == null ? com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator.UNRECOGNIZED : result; + } + /** + *
+     * Operator to connect the two operands.
+     * Required for creating a combined rule user list.
+     * 
+ * + * .google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator rule_operator = 3; + */ + public Builder setRuleOperator(com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator value) { + if (value == null) { + throw new NullPointerException(); + } + + ruleOperator_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Operator to connect the two operands.
+     * Required for creating a combined rule user list.
+     * 
+ * + * .google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator rule_operator = 3; + */ + public Builder clearRuleOperator() { + + ruleOperator_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.common.CombinedRuleUserListInfo) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.common.CombinedRuleUserListInfo) + private static final com.google.ads.googleads.v0.common.CombinedRuleUserListInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.common.CombinedRuleUserListInfo(); + } + + public static com.google.ads.googleads.v0.common.CombinedRuleUserListInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CombinedRuleUserListInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CombinedRuleUserListInfo(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.common.CombinedRuleUserListInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/CombinedRuleUserListInfoOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/CombinedRuleUserListInfoOrBuilder.java new file mode 100644 index 0000000000..84d1fbf1e2 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/CombinedRuleUserListInfoOrBuilder.java @@ -0,0 +1,90 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/user_lists.proto + +package com.google.ads.googleads.v0.common; + +public interface CombinedRuleUserListInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.common.CombinedRuleUserListInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Left operand of the combined rule.
+   * This field is required and must be populated when creating new combined
+   * rule based user list.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo left_operand = 1; + */ + boolean hasLeftOperand(); + /** + *
+   * Left operand of the combined rule.
+   * This field is required and must be populated when creating new combined
+   * rule based user list.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo left_operand = 1; + */ + com.google.ads.googleads.v0.common.UserListRuleInfo getLeftOperand(); + /** + *
+   * Left operand of the combined rule.
+   * This field is required and must be populated when creating new combined
+   * rule based user list.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo left_operand = 1; + */ + com.google.ads.googleads.v0.common.UserListRuleInfoOrBuilder getLeftOperandOrBuilder(); + + /** + *
+   * Right operand of the combined rule.
+   * This field is required and must be populated when creating new combined
+   * rule based user list.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo right_operand = 2; + */ + boolean hasRightOperand(); + /** + *
+   * Right operand of the combined rule.
+   * This field is required and must be populated when creating new combined
+   * rule based user list.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo right_operand = 2; + */ + com.google.ads.googleads.v0.common.UserListRuleInfo getRightOperand(); + /** + *
+   * Right operand of the combined rule.
+   * This field is required and must be populated when creating new combined
+   * rule based user list.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo right_operand = 2; + */ + com.google.ads.googleads.v0.common.UserListRuleInfoOrBuilder getRightOperandOrBuilder(); + + /** + *
+   * Operator to connect the two operands.
+   * Required for creating a combined rule user list.
+   * 
+ * + * .google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator rule_operator = 3; + */ + int getRuleOperatorValue(); + /** + *
+   * Operator to connect the two operands.
+   * Required for creating a combined rule user list.
+   * 
+ * + * .google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator rule_operator = 3; + */ + com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator getRuleOperator(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/CriteriaProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/CriteriaProto.java index 3b629d597b..d9f9fbb220 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/common/CriteriaProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/CriteriaProto.java @@ -24,6 +24,11 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_googleads_v0_common_PlacementInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_common_MobileAppCategoryInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_common_MobileAppCategoryInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_ads_googleads_v0_common_LocationInfo_descriptor; static final @@ -224,6 +229,26 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_googleads_v0_common_UserInterestInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_common_WebpageInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_common_WebpageInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_common_WebpageConditionInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_common_WebpageConditionInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_common_OperatingSystemVersionInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_common_OperatingSystemVersionInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_common_AppPaymentModelInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_common_AppPaymentModelInfo_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -236,37 +261,44 @@ public static void registerAllExtensions( "\n-google/ads/googleads/v0/common/criteri" + "a.proto\022\036google.ads.googleads.v0.common\032" + "2google/ads/googleads/v0/enums/age_range" + - "_type.proto\0326google/ads/googleads/v0/enu" + - "ms/content_label_type.proto\032/google/ads/" + - "googleads/v0/enums/day_of_week.proto\032*go" + - "ogle/ads/googleads/v0/enums/device.proto" + - "\032/google/ads/googleads/v0/enums/gender_t" + - "ype.proto\032=google/ads/googleads/v0/enums" + - "/hotel_date_selection_type.proto\0325google" + - "/ads/googleads/v0/enums/income_range_typ" + - "e.proto\0324google/ads/googleads/v0/enums/i" + - "nteraction_type.proto\0326google/ads/google" + - "ads/v0/enums/keyword_match_type.proto\032Bg" + - "oogle/ads/googleads/v0/enums/listing_cus" + - "tom_attribute_index.proto\0326google/ads/go" + - "ogleads/v0/enums/listing_group_type.prot" + - "o\0322google/ads/googleads/v0/enums/minute_" + - "of_hour.proto\0328google/ads/googleads/v0/e" + - "nums/parental_status_type.proto\032:google/" + - "ads/googleads/v0/enums/preferred_content" + - "_type.proto\0323google/ads/googleads/v0/enu" + - "ms/product_channel.proto\032?google/ads/goo" + - "gleads/v0/enums/product_channel_exclusiv" + - "ity.proto\0325google/ads/googleads/v0/enums" + - "/product_condition.proto\0326google/ads/goo" + - "gleads/v0/enums/product_type_level.proto" + - "\032:google/ads/googleads/v0/enums/proximit" + - "y_radius_units.proto\032\036google/protobuf/wr" + - "appers.proto\"\223\001\n\013KeywordInfo\022*\n\004text\030\001 \001" + - "(\0132\034.google.protobuf.StringValue\022X\n\nmatc" + - "h_type\030\002 \001(\0162D.google.ads.googleads.v0.e" + - "nums.KeywordMatchTypeEnum.KeywordMatchTy" + - "pe\":\n\rPlacementInfo\022)\n\003url\030\001 \001(\0132\034.googl" + + "_type.proto\032:google/ads/googleads/v0/enu" + + "ms/app_payment_model_type.proto\0326google/" + + "ads/googleads/v0/enums/content_label_typ" + + "e.proto\032/google/ads/googleads/v0/enums/d" + + "ay_of_week.proto\032*google/ads/googleads/v" + + "0/enums/device.proto\032/google/ads/googlea" + + "ds/v0/enums/gender_type.proto\032=google/ad" + + "s/googleads/v0/enums/hotel_date_selectio" + + "n_type.proto\0325google/ads/googleads/v0/en" + + "ums/income_range_type.proto\0324google/ads/" + + "googleads/v0/enums/interaction_type.prot" + + "o\0326google/ads/googleads/v0/enums/keyword" + + "_match_type.proto\032Bgoogle/ads/googleads/" + + "v0/enums/listing_custom_attribute_index." + + "proto\0326google/ads/googleads/v0/enums/lis" + + "ting_group_type.proto\0322google/ads/google" + + "ads/v0/enums/minute_of_hour.proto\0328googl" + + "e/ads/googleads/v0/enums/parental_status" + + "_type.proto\032:google/ads/googleads/v0/enu" + + "ms/preferred_content_type.proto\0323google/" + + "ads/googleads/v0/enums/product_channel.p" + + "roto\032?google/ads/googleads/v0/enums/prod" + + "uct_channel_exclusivity.proto\0325google/ad" + + "s/googleads/v0/enums/product_condition.p" + + "roto\0326google/ads/googleads/v0/enums/prod" + + "uct_type_level.proto\032:google/ads/googlea" + + "ds/v0/enums/proximity_radius_units.proto" + + "\032=google/ads/googleads/v0/enums/webpage_" + + "condition_operand.proto\032>google/ads/goog" + + "leads/v0/enums/webpage_condition_operato" + + "r.proto\032\036google/protobuf/wrappers.proto\"" + + "\223\001\n\013KeywordInfo\022*\n\004text\030\001 \001(\0132\034.google.p" + + "rotobuf.StringValue\022X\n\nmatch_type\030\002 \001(\0162" + + "D.google.ads.googleads.v0.enums.KeywordM" + + "atchTypeEnum.KeywordMatchType\":\n\rPlaceme" + + "ntInfo\022)\n\003url\030\001 \001(\0132\034.google.protobuf.St" + + "ringValue\"[\n\025MobileAppCategoryInfo\022B\n\034mo" + + "bile_app_category_constant\030\001 \001(\0132\034.googl" + "e.protobuf.StringValue\"I\n\014LocationInfo\0229" + "\n\023geo_target_constant\030\001 \001(\0132\034.google.pro" + "tobuf.StringValue\"L\n\nDeviceInfo\022>\n\004type\030" + @@ -408,12 +440,29 @@ public static void registerAllExtensions( "arrierInfo\0226\n\020carrier_constant\030\001 \001(\0132\034.g" + "oogle.protobuf.StringValue\"P\n\020UserIntere" + "stInfo\022<\n\026user_interest_category\030\001 \001(\0132\034" + - ".google.protobuf.StringValueB\303\001\n\"com.goo" + - "gle.ads.googleads.v0.commonB\rCriteriaPro" + - "toP\001ZDgoogle.golang.org/genproto/googlea" + - "pis/ads/googleads/v0/common;common\242\002\003GAA" + - "\252\002\036Google.Ads.GoogleAds.V0.Common\312\002\036Goog" + - "le\\Ads\\GoogleAds\\V0\\Commonb\006proto3" + ".google.protobuf.StringValue\"\215\001\n\013Webpage" + + "Info\0224\n\016criterion_name\030\001 \001(\0132\034.google.pr" + + "otobuf.StringValue\022H\n\nconditions\030\002 \003(\01324" + + ".google.ads.googleads.v0.common.WebpageC" + + "onditionInfo\"\223\002\n\024WebpageConditionInfo\022c\n" + + "\007operand\030\001 \001(\0162R.google.ads.googleads.v0" + + ".enums.WebpageConditionOperandEnum.Webpa" + + "geConditionOperand\022f\n\010operator\030\002 \001(\0162T.g" + + "oogle.ads.googleads.v0.enums.WebpageCond" + + "itionOperatorEnum.WebpageConditionOperat" + + "or\022.\n\010argument\030\003 \001(\0132\034.google.protobuf.S" + + "tringValue\"e\n\032OperatingSystemVersionInfo" + + "\022G\n!operating_system_version_constant\030\001 " + + "\001(\0132\034.google.protobuf.StringValue\"o\n\023App" + + "PaymentModelInfo\022X\n\004type\030\001 \001(\0162J.google." + + "ads.googleads.v0.enums.AppPaymentModelTy" + + "peEnum.AppPaymentModelTypeB\350\001\n\"com.googl" + + "e.ads.googleads.v0.commonB\rCriteriaProto" + + "P\001ZDgoogle.golang.org/genproto/googleapi" + + "s/ads/googleads/v0/common;common\242\002\003GAA\252\002" + + "\036Google.Ads.GoogleAds.V0.Common\312\002\036Google" + + "\\Ads\\GoogleAds\\V0\\Common\352\002\"Google::Ads::" + + "GoogleAds::V0::Commonb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -427,6 +476,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.ads.googleads.v0.enums.AgeRangeTypeProto.getDescriptor(), + com.google.ads.googleads.v0.enums.AppPaymentModelTypeProto.getDescriptor(), com.google.ads.googleads.v0.enums.ContentLabelTypeProto.getDescriptor(), com.google.ads.googleads.v0.enums.DayOfWeekProto.getDescriptor(), com.google.ads.googleads.v0.enums.DeviceProto.getDescriptor(), @@ -445,6 +495,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.enums.ProductConditionProto.getDescriptor(), com.google.ads.googleads.v0.enums.ProductTypeLevelProto.getDescriptor(), com.google.ads.googleads.v0.enums.ProximityRadiusUnitsProto.getDescriptor(), + com.google.ads.googleads.v0.enums.WebpageConditionOperandProto.getDescriptor(), + com.google.ads.googleads.v0.enums.WebpageConditionOperatorProto.getDescriptor(), com.google.protobuf.WrappersProto.getDescriptor(), }, assigner); internal_static_google_ads_googleads_v0_common_KeywordInfo_descriptor = @@ -459,247 +511,278 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_PlacementInfo_descriptor, new java.lang.String[] { "Url", }); - internal_static_google_ads_googleads_v0_common_LocationInfo_descriptor = + internal_static_google_ads_googleads_v0_common_MobileAppCategoryInfo_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_googleads_v0_common_MobileAppCategoryInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_common_MobileAppCategoryInfo_descriptor, + new java.lang.String[] { "MobileAppCategoryConstant", }); + internal_static_google_ads_googleads_v0_common_LocationInfo_descriptor = + getDescriptor().getMessageTypes().get(3); internal_static_google_ads_googleads_v0_common_LocationInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_LocationInfo_descriptor, new java.lang.String[] { "GeoTargetConstant", }); internal_static_google_ads_googleads_v0_common_DeviceInfo_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(4); internal_static_google_ads_googleads_v0_common_DeviceInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_DeviceInfo_descriptor, new java.lang.String[] { "Type", }); internal_static_google_ads_googleads_v0_common_PreferredContentInfo_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(5); internal_static_google_ads_googleads_v0_common_PreferredContentInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_PreferredContentInfo_descriptor, new java.lang.String[] { "Type", }); internal_static_google_ads_googleads_v0_common_ListingGroupInfo_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); internal_static_google_ads_googleads_v0_common_ListingGroupInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_ListingGroupInfo_descriptor, new java.lang.String[] { "Type", "CaseValue", "ParentAdGroupCriterion", }); internal_static_google_ads_googleads_v0_common_ListingScopeInfo_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(7); internal_static_google_ads_googleads_v0_common_ListingScopeInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_ListingScopeInfo_descriptor, new java.lang.String[] { "Dimensions", }); internal_static_google_ads_googleads_v0_common_ListingDimensionInfo_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(8); internal_static_google_ads_googleads_v0_common_ListingDimensionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_ListingDimensionInfo_descriptor, new java.lang.String[] { "ListingBrand", "HotelId", "HotelClass", "HotelCountryRegion", "HotelState", "HotelCity", "ListingCustomAttribute", "ProductChannel", "ProductChannelExclusivity", "ProductCondition", "ProductOfferId", "ProductType", "Dimension", }); internal_static_google_ads_googleads_v0_common_ListingBrandInfo_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); internal_static_google_ads_googleads_v0_common_ListingBrandInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_ListingBrandInfo_descriptor, new java.lang.String[] { "Value", }); internal_static_google_ads_googleads_v0_common_HotelIdInfo_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_google_ads_googleads_v0_common_HotelIdInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_HotelIdInfo_descriptor, new java.lang.String[] { "Value", }); internal_static_google_ads_googleads_v0_common_HotelClassInfo_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_google_ads_googleads_v0_common_HotelClassInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_HotelClassInfo_descriptor, new java.lang.String[] { "Value", }); internal_static_google_ads_googleads_v0_common_HotelCountryRegionInfo_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_google_ads_googleads_v0_common_HotelCountryRegionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_HotelCountryRegionInfo_descriptor, new java.lang.String[] { "CountryRegionCriterion", }); internal_static_google_ads_googleads_v0_common_HotelStateInfo_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_google_ads_googleads_v0_common_HotelStateInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_HotelStateInfo_descriptor, new java.lang.String[] { "StateCriterion", }); internal_static_google_ads_googleads_v0_common_HotelCityInfo_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_google_ads_googleads_v0_common_HotelCityInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_HotelCityInfo_descriptor, new java.lang.String[] { "CityCriterion", }); internal_static_google_ads_googleads_v0_common_ListingCustomAttributeInfo_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_google_ads_googleads_v0_common_ListingCustomAttributeInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_ListingCustomAttributeInfo_descriptor, new java.lang.String[] { "Value", "Index", }); internal_static_google_ads_googleads_v0_common_ProductChannelInfo_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_google_ads_googleads_v0_common_ProductChannelInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_ProductChannelInfo_descriptor, new java.lang.String[] { "Channel", }); internal_static_google_ads_googleads_v0_common_ProductChannelExclusivityInfo_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_google_ads_googleads_v0_common_ProductChannelExclusivityInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_ProductChannelExclusivityInfo_descriptor, new java.lang.String[] { "ChannelExclusivity", }); internal_static_google_ads_googleads_v0_common_ProductConditionInfo_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(18); internal_static_google_ads_googleads_v0_common_ProductConditionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_ProductConditionInfo_descriptor, new java.lang.String[] { "Condition", }); internal_static_google_ads_googleads_v0_common_ProductOfferIdInfo_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(19); internal_static_google_ads_googleads_v0_common_ProductOfferIdInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_ProductOfferIdInfo_descriptor, new java.lang.String[] { "Value", }); internal_static_google_ads_googleads_v0_common_ProductTypeInfo_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(20); internal_static_google_ads_googleads_v0_common_ProductTypeInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_ProductTypeInfo_descriptor, new java.lang.String[] { "Value", "Level", }); internal_static_google_ads_googleads_v0_common_HotelDateSelectionTypeInfo_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_google_ads_googleads_v0_common_HotelDateSelectionTypeInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_HotelDateSelectionTypeInfo_descriptor, new java.lang.String[] { "Type", }); internal_static_google_ads_googleads_v0_common_HotelAdvanceBookingWindowInfo_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(22); internal_static_google_ads_googleads_v0_common_HotelAdvanceBookingWindowInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_HotelAdvanceBookingWindowInfo_descriptor, new java.lang.String[] { "MinDays", "MaxDays", }); internal_static_google_ads_googleads_v0_common_HotelLengthOfStayInfo_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(23); internal_static_google_ads_googleads_v0_common_HotelLengthOfStayInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_HotelLengthOfStayInfo_descriptor, new java.lang.String[] { "MinNights", "MaxNights", }); internal_static_google_ads_googleads_v0_common_HotelCheckInDayInfo_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(24); internal_static_google_ads_googleads_v0_common_HotelCheckInDayInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_HotelCheckInDayInfo_descriptor, new java.lang.String[] { "DayOfWeek", }); internal_static_google_ads_googleads_v0_common_InteractionTypeInfo_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(25); internal_static_google_ads_googleads_v0_common_InteractionTypeInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_InteractionTypeInfo_descriptor, new java.lang.String[] { "Type", }); internal_static_google_ads_googleads_v0_common_AdScheduleInfo_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(26); internal_static_google_ads_googleads_v0_common_AdScheduleInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_AdScheduleInfo_descriptor, new java.lang.String[] { "StartMinute", "EndMinute", "StartHour", "EndHour", "DayOfWeek", }); internal_static_google_ads_googleads_v0_common_AgeRangeInfo_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(27); internal_static_google_ads_googleads_v0_common_AgeRangeInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_AgeRangeInfo_descriptor, new java.lang.String[] { "Type", }); internal_static_google_ads_googleads_v0_common_GenderInfo_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(28); internal_static_google_ads_googleads_v0_common_GenderInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_GenderInfo_descriptor, new java.lang.String[] { "Type", }); internal_static_google_ads_googleads_v0_common_IncomeRangeInfo_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(29); internal_static_google_ads_googleads_v0_common_IncomeRangeInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_IncomeRangeInfo_descriptor, new java.lang.String[] { "Type", }); internal_static_google_ads_googleads_v0_common_ParentalStatusInfo_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(30); internal_static_google_ads_googleads_v0_common_ParentalStatusInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_ParentalStatusInfo_descriptor, new java.lang.String[] { "Type", }); internal_static_google_ads_googleads_v0_common_YouTubeVideoInfo_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(31); internal_static_google_ads_googleads_v0_common_YouTubeVideoInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_YouTubeVideoInfo_descriptor, new java.lang.String[] { "VideoId", }); internal_static_google_ads_googleads_v0_common_YouTubeChannelInfo_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(32); internal_static_google_ads_googleads_v0_common_YouTubeChannelInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_YouTubeChannelInfo_descriptor, new java.lang.String[] { "ChannelId", }); internal_static_google_ads_googleads_v0_common_UserListInfo_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(33); internal_static_google_ads_googleads_v0_common_UserListInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_UserListInfo_descriptor, new java.lang.String[] { "UserList", }); internal_static_google_ads_googleads_v0_common_ProximityInfo_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(34); internal_static_google_ads_googleads_v0_common_ProximityInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_ProximityInfo_descriptor, new java.lang.String[] { "GeoPoint", "Radius", "RadiusUnits", "Address", }); internal_static_google_ads_googleads_v0_common_GeoPointInfo_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(35); internal_static_google_ads_googleads_v0_common_GeoPointInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_GeoPointInfo_descriptor, new java.lang.String[] { "LongitudeInMicroDegrees", "LatitudeInMicroDegrees", }); internal_static_google_ads_googleads_v0_common_AddressInfo_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(36); internal_static_google_ads_googleads_v0_common_AddressInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_AddressInfo_descriptor, new java.lang.String[] { "PostalCode", "ProvinceCode", "CountryCode", "ProvinceName", "StreetAddress", "StreetAddress2", "CityName", }); internal_static_google_ads_googleads_v0_common_TopicInfo_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(37); internal_static_google_ads_googleads_v0_common_TopicInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_TopicInfo_descriptor, new java.lang.String[] { "TopicConstant", "Path", }); internal_static_google_ads_googleads_v0_common_LanguageInfo_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(38); internal_static_google_ads_googleads_v0_common_LanguageInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_LanguageInfo_descriptor, new java.lang.String[] { "LanguageConstant", }); internal_static_google_ads_googleads_v0_common_IpBlockInfo_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(39); internal_static_google_ads_googleads_v0_common_IpBlockInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_IpBlockInfo_descriptor, new java.lang.String[] { "IpAddress", }); internal_static_google_ads_googleads_v0_common_ContentLabelInfo_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(40); internal_static_google_ads_googleads_v0_common_ContentLabelInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_ContentLabelInfo_descriptor, new java.lang.String[] { "Type", }); internal_static_google_ads_googleads_v0_common_CarrierInfo_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(41); internal_static_google_ads_googleads_v0_common_CarrierInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_CarrierInfo_descriptor, new java.lang.String[] { "CarrierConstant", }); internal_static_google_ads_googleads_v0_common_UserInterestInfo_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(42); internal_static_google_ads_googleads_v0_common_UserInterestInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_UserInterestInfo_descriptor, new java.lang.String[] { "UserInterestCategory", }); + internal_static_google_ads_googleads_v0_common_WebpageInfo_descriptor = + getDescriptor().getMessageTypes().get(43); + internal_static_google_ads_googleads_v0_common_WebpageInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_common_WebpageInfo_descriptor, + new java.lang.String[] { "CriterionName", "Conditions", }); + internal_static_google_ads_googleads_v0_common_WebpageConditionInfo_descriptor = + getDescriptor().getMessageTypes().get(44); + internal_static_google_ads_googleads_v0_common_WebpageConditionInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_common_WebpageConditionInfo_descriptor, + new java.lang.String[] { "Operand", "Operator", "Argument", }); + internal_static_google_ads_googleads_v0_common_OperatingSystemVersionInfo_descriptor = + getDescriptor().getMessageTypes().get(45); + internal_static_google_ads_googleads_v0_common_OperatingSystemVersionInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_common_OperatingSystemVersionInfo_descriptor, + new java.lang.String[] { "OperatingSystemVersionConstant", }); + internal_static_google_ads_googleads_v0_common_AppPaymentModelInfo_descriptor = + getDescriptor().getMessageTypes().get(46); + internal_static_google_ads_googleads_v0_common_AppPaymentModelInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_common_AppPaymentModelInfo_descriptor, + new java.lang.String[] { "Type", }); com.google.ads.googleads.v0.enums.AgeRangeTypeProto.getDescriptor(); + com.google.ads.googleads.v0.enums.AppPaymentModelTypeProto.getDescriptor(); com.google.ads.googleads.v0.enums.ContentLabelTypeProto.getDescriptor(); com.google.ads.googleads.v0.enums.DayOfWeekProto.getDescriptor(); com.google.ads.googleads.v0.enums.DeviceProto.getDescriptor(); @@ -718,6 +801,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.enums.ProductConditionProto.getDescriptor(); com.google.ads.googleads.v0.enums.ProductTypeLevelProto.getDescriptor(); com.google.ads.googleads.v0.enums.ProximityRadiusUnitsProto.getDescriptor(); + com.google.ads.googleads.v0.enums.WebpageConditionOperandProto.getDescriptor(); + com.google.ads.googleads.v0.enums.WebpageConditionOperatorProto.getDescriptor(); com.google.protobuf.WrappersProto.getDescriptor(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/CriterionCategoryAvailabilityProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/CriterionCategoryAvailabilityProto.java index feb5846d83..651661d222 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/common/CriterionCategoryAvailabilityProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/CriterionCategoryAvailabilityProto.java @@ -73,13 +73,14 @@ public static void registerAllExtensions( "rionCategoryLocaleAvailabilityMode\0222\n\014co" + "untry_code\030\002 \001(\0132\034.google.protobuf.Strin" + "gValue\0223\n\rlanguage_code\030\003 \001(\0132\034.google.p" + - "rotobuf.StringValueB\330\001\n\"com.google.ads.g" + + "rotobuf.StringValueB\375\001\n\"com.google.ads.g" + "oogleads.v0.commonB\"CriterionCategoryAva" + "ilabilityProtoP\001ZDgoogle.golang.org/genp" + "roto/googleapis/ads/googleads/v0/common;" + "common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V0.C" + - "ommon\312\002\036Google\\Ads\\GoogleAds\\V0\\Commonb\006" + - "proto3" + "ommon\312\002\036Google\\Ads\\GoogleAds\\V0\\Common\352\002" + + "\"Google::Ads::GoogleAds::V0::Commonb\006pro" + + "to3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/CustomParameterProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/CustomParameterProto.java index e424a970f3..8dd3ae6f72 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/common/CustomParameterProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/CustomParameterProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( ".common\032\036google/protobuf/wrappers.proto\"" + "i\n\017CustomParameter\022)\n\003key\030\001 \001(\0132\034.google" + ".protobuf.StringValue\022+\n\005value\030\002 \001(\0132\034.g" + - "oogle.protobuf.StringValueB\312\001\n\"com.googl" + + "oogle.protobuf.StringValueB\357\001\n\"com.googl" + "e.ads.googleads.v0.commonB\024CustomParamet" + "erProtoP\001ZDgoogle.golang.org/genproto/go" + "ogleapis/ads/googleads/v0/common;common\242" + "\002\003GAA\252\002\036Google.Ads.GoogleAds.V0.Common\312\002" + - "\036Google\\Ads\\GoogleAds\\V0\\Commonb\006proto3" + "\036Google\\Ads\\GoogleAds\\V0\\Common\352\002\"Google" + + "::Ads::GoogleAds::V0::Commonb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/DateSpecificRuleUserListInfo.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/DateSpecificRuleUserListInfo.java new file mode 100644 index 0000000000..9f2eafe16c --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/DateSpecificRuleUserListInfo.java @@ -0,0 +1,1169 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/user_lists.proto + +package com.google.ads.googleads.v0.common; + +/** + *
+ * Visitors of a page during specific dates.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.DateSpecificRuleUserListInfo} + */ +public final class DateSpecificRuleUserListInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.common.DateSpecificRuleUserListInfo) + DateSpecificRuleUserListInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use DateSpecificRuleUserListInfo.newBuilder() to construct. + private DateSpecificRuleUserListInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DateSpecificRuleUserListInfo() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DateSpecificRuleUserListInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.ads.googleads.v0.common.UserListRuleInfo.Builder subBuilder = null; + if (rule_ != null) { + subBuilder = rule_.toBuilder(); + } + rule_ = input.readMessage(com.google.ads.googleads.v0.common.UserListRuleInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(rule_); + rule_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (startDate_ != null) { + subBuilder = startDate_.toBuilder(); + } + startDate_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startDate_); + startDate_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (endDate_ != null) { + subBuilder = endDate_.toBuilder(); + } + endDate_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endDate_); + endDate_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_DateSpecificRuleUserListInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_DateSpecificRuleUserListInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo.class, com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo.Builder.class); + } + + public static final int RULE_FIELD_NUMBER = 1; + private com.google.ads.googleads.v0.common.UserListRuleInfo rule_; + /** + *
+   * Boolean rule that defines visitor of a page.
+   * Required for creating a date specific rule user list.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo rule = 1; + */ + public boolean hasRule() { + return rule_ != null; + } + /** + *
+   * Boolean rule that defines visitor of a page.
+   * Required for creating a date specific rule user list.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo rule = 1; + */ + public com.google.ads.googleads.v0.common.UserListRuleInfo getRule() { + return rule_ == null ? com.google.ads.googleads.v0.common.UserListRuleInfo.getDefaultInstance() : rule_; + } + /** + *
+   * Boolean rule that defines visitor of a page.
+   * Required for creating a date specific rule user list.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo rule = 1; + */ + public com.google.ads.googleads.v0.common.UserListRuleInfoOrBuilder getRuleOrBuilder() { + return getRule(); + } + + public static final int START_DATE_FIELD_NUMBER = 2; + private com.google.protobuf.StringValue startDate_; + /** + *
+   * Start date of users visit. If set to 2000-01-01, then the list includes all
+   * users before end_date. The date's format should be YYYY-MM-DD.
+   * Required for creating a data specific rule user list.
+   * 
+ * + * .google.protobuf.StringValue start_date = 2; + */ + public boolean hasStartDate() { + return startDate_ != null; + } + /** + *
+   * Start date of users visit. If set to 2000-01-01, then the list includes all
+   * users before end_date. The date's format should be YYYY-MM-DD.
+   * Required for creating a data specific rule user list.
+   * 
+ * + * .google.protobuf.StringValue start_date = 2; + */ + public com.google.protobuf.StringValue getStartDate() { + return startDate_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : startDate_; + } + /** + *
+   * Start date of users visit. If set to 2000-01-01, then the list includes all
+   * users before end_date. The date's format should be YYYY-MM-DD.
+   * Required for creating a data specific rule user list.
+   * 
+ * + * .google.protobuf.StringValue start_date = 2; + */ + public com.google.protobuf.StringValueOrBuilder getStartDateOrBuilder() { + return getStartDate(); + } + + public static final int END_DATE_FIELD_NUMBER = 3; + private com.google.protobuf.StringValue endDate_; + /** + *
+   * End date of users visit. If set to 2037-12-30, then the list includes all
+   * users after start_date. The date's format should be YYYY-MM-DD.
+   * Required for creating a data specific rule user list.
+   * 
+ * + * .google.protobuf.StringValue end_date = 3; + */ + public boolean hasEndDate() { + return endDate_ != null; + } + /** + *
+   * End date of users visit. If set to 2037-12-30, then the list includes all
+   * users after start_date. The date's format should be YYYY-MM-DD.
+   * Required for creating a data specific rule user list.
+   * 
+ * + * .google.protobuf.StringValue end_date = 3; + */ + public com.google.protobuf.StringValue getEndDate() { + return endDate_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : endDate_; + } + /** + *
+   * End date of users visit. If set to 2037-12-30, then the list includes all
+   * users after start_date. The date's format should be YYYY-MM-DD.
+   * Required for creating a data specific rule user list.
+   * 
+ * + * .google.protobuf.StringValue end_date = 3; + */ + public com.google.protobuf.StringValueOrBuilder getEndDateOrBuilder() { + return getEndDate(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (rule_ != null) { + output.writeMessage(1, getRule()); + } + if (startDate_ != null) { + output.writeMessage(2, getStartDate()); + } + if (endDate_ != null) { + output.writeMessage(3, getEndDate()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (rule_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRule()); + } + if (startDate_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getStartDate()); + } + if (endDate_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getEndDate()); + } + size += unknownFields.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.ads.googleads.v0.common.DateSpecificRuleUserListInfo)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo other = (com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo) obj; + + boolean result = true; + result = result && (hasRule() == other.hasRule()); + if (hasRule()) { + result = result && getRule() + .equals(other.getRule()); + } + result = result && (hasStartDate() == other.hasStartDate()); + if (hasStartDate()) { + result = result && getStartDate() + .equals(other.getStartDate()); + } + result = result && (hasEndDate() == other.hasEndDate()); + if (hasEndDate()) { + result = result && getEndDate() + .equals(other.getEndDate()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRule()) { + hash = (37 * hash) + RULE_FIELD_NUMBER; + hash = (53 * hash) + getRule().hashCode(); + } + if (hasStartDate()) { + hash = (37 * hash) + START_DATE_FIELD_NUMBER; + hash = (53 * hash) + getStartDate().hashCode(); + } + if (hasEndDate()) { + hash = (37 * hash) + END_DATE_FIELD_NUMBER; + hash = (53 * hash) + getEndDate().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo 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.ads.googleads.v0.common.DateSpecificRuleUserListInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo 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.ads.googleads.v0.common.DateSpecificRuleUserListInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo 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.ads.googleads.v0.common.DateSpecificRuleUserListInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo 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.ads.googleads.v0.common.DateSpecificRuleUserListInfo 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; + } + /** + *
+   * Visitors of a page during specific dates.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.DateSpecificRuleUserListInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.common.DateSpecificRuleUserListInfo) + com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_DateSpecificRuleUserListInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_DateSpecificRuleUserListInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo.class, com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (ruleBuilder_ == null) { + rule_ = null; + } else { + rule_ = null; + ruleBuilder_ = null; + } + if (startDateBuilder_ == null) { + startDate_ = null; + } else { + startDate_ = null; + startDateBuilder_ = null; + } + if (endDateBuilder_ == null) { + endDate_ = null; + } else { + endDate_ = null; + endDateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_DateSpecificRuleUserListInfo_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo getDefaultInstanceForType() { + return com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo build() { + com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo buildPartial() { + com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo result = new com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo(this); + if (ruleBuilder_ == null) { + result.rule_ = rule_; + } else { + result.rule_ = ruleBuilder_.build(); + } + if (startDateBuilder_ == null) { + result.startDate_ = startDate_; + } else { + result.startDate_ = startDateBuilder_.build(); + } + if (endDateBuilder_ == null) { + result.endDate_ = endDate_; + } else { + result.endDate_ = endDateBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo) { + return mergeFrom((com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo other) { + if (other == com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo.getDefaultInstance()) return this; + if (other.hasRule()) { + mergeRule(other.getRule()); + } + if (other.hasStartDate()) { + mergeStartDate(other.getStartDate()); + } + if (other.hasEndDate()) { + mergeEndDate(other.getEndDate()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.ads.googleads.v0.common.UserListRuleInfo rule_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.UserListRuleInfo, com.google.ads.googleads.v0.common.UserListRuleInfo.Builder, com.google.ads.googleads.v0.common.UserListRuleInfoOrBuilder> ruleBuilder_; + /** + *
+     * Boolean rule that defines visitor of a page.
+     * Required for creating a date specific rule user list.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo rule = 1; + */ + public boolean hasRule() { + return ruleBuilder_ != null || rule_ != null; + } + /** + *
+     * Boolean rule that defines visitor of a page.
+     * Required for creating a date specific rule user list.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo rule = 1; + */ + public com.google.ads.googleads.v0.common.UserListRuleInfo getRule() { + if (ruleBuilder_ == null) { + return rule_ == null ? com.google.ads.googleads.v0.common.UserListRuleInfo.getDefaultInstance() : rule_; + } else { + return ruleBuilder_.getMessage(); + } + } + /** + *
+     * Boolean rule that defines visitor of a page.
+     * Required for creating a date specific rule user list.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo rule = 1; + */ + public Builder setRule(com.google.ads.googleads.v0.common.UserListRuleInfo value) { + if (ruleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rule_ = value; + onChanged(); + } else { + ruleBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Boolean rule that defines visitor of a page.
+     * Required for creating a date specific rule user list.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo rule = 1; + */ + public Builder setRule( + com.google.ads.googleads.v0.common.UserListRuleInfo.Builder builderForValue) { + if (ruleBuilder_ == null) { + rule_ = builderForValue.build(); + onChanged(); + } else { + ruleBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Boolean rule that defines visitor of a page.
+     * Required for creating a date specific rule user list.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo rule = 1; + */ + public Builder mergeRule(com.google.ads.googleads.v0.common.UserListRuleInfo value) { + if (ruleBuilder_ == null) { + if (rule_ != null) { + rule_ = + com.google.ads.googleads.v0.common.UserListRuleInfo.newBuilder(rule_).mergeFrom(value).buildPartial(); + } else { + rule_ = value; + } + onChanged(); + } else { + ruleBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Boolean rule that defines visitor of a page.
+     * Required for creating a date specific rule user list.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo rule = 1; + */ + public Builder clearRule() { + if (ruleBuilder_ == null) { + rule_ = null; + onChanged(); + } else { + rule_ = null; + ruleBuilder_ = null; + } + + return this; + } + /** + *
+     * Boolean rule that defines visitor of a page.
+     * Required for creating a date specific rule user list.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo rule = 1; + */ + public com.google.ads.googleads.v0.common.UserListRuleInfo.Builder getRuleBuilder() { + + onChanged(); + return getRuleFieldBuilder().getBuilder(); + } + /** + *
+     * Boolean rule that defines visitor of a page.
+     * Required for creating a date specific rule user list.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo rule = 1; + */ + public com.google.ads.googleads.v0.common.UserListRuleInfoOrBuilder getRuleOrBuilder() { + if (ruleBuilder_ != null) { + return ruleBuilder_.getMessageOrBuilder(); + } else { + return rule_ == null ? + com.google.ads.googleads.v0.common.UserListRuleInfo.getDefaultInstance() : rule_; + } + } + /** + *
+     * Boolean rule that defines visitor of a page.
+     * Required for creating a date specific rule user list.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo rule = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.UserListRuleInfo, com.google.ads.googleads.v0.common.UserListRuleInfo.Builder, com.google.ads.googleads.v0.common.UserListRuleInfoOrBuilder> + getRuleFieldBuilder() { + if (ruleBuilder_ == null) { + ruleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.UserListRuleInfo, com.google.ads.googleads.v0.common.UserListRuleInfo.Builder, com.google.ads.googleads.v0.common.UserListRuleInfoOrBuilder>( + getRule(), + getParentForChildren(), + isClean()); + rule_ = null; + } + return ruleBuilder_; + } + + private com.google.protobuf.StringValue startDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> startDateBuilder_; + /** + *
+     * Start date of users visit. If set to 2000-01-01, then the list includes all
+     * users before end_date. The date's format should be YYYY-MM-DD.
+     * Required for creating a data specific rule user list.
+     * 
+ * + * .google.protobuf.StringValue start_date = 2; + */ + public boolean hasStartDate() { + return startDateBuilder_ != null || startDate_ != null; + } + /** + *
+     * Start date of users visit. If set to 2000-01-01, then the list includes all
+     * users before end_date. The date's format should be YYYY-MM-DD.
+     * Required for creating a data specific rule user list.
+     * 
+ * + * .google.protobuf.StringValue start_date = 2; + */ + public com.google.protobuf.StringValue getStartDate() { + if (startDateBuilder_ == null) { + return startDate_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : startDate_; + } else { + return startDateBuilder_.getMessage(); + } + } + /** + *
+     * Start date of users visit. If set to 2000-01-01, then the list includes all
+     * users before end_date. The date's format should be YYYY-MM-DD.
+     * Required for creating a data specific rule user list.
+     * 
+ * + * .google.protobuf.StringValue start_date = 2; + */ + public Builder setStartDate(com.google.protobuf.StringValue value) { + if (startDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startDate_ = value; + onChanged(); + } else { + startDateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Start date of users visit. If set to 2000-01-01, then the list includes all
+     * users before end_date. The date's format should be YYYY-MM-DD.
+     * Required for creating a data specific rule user list.
+     * 
+ * + * .google.protobuf.StringValue start_date = 2; + */ + public Builder setStartDate( + com.google.protobuf.StringValue.Builder builderForValue) { + if (startDateBuilder_ == null) { + startDate_ = builderForValue.build(); + onChanged(); + } else { + startDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Start date of users visit. If set to 2000-01-01, then the list includes all
+     * users before end_date. The date's format should be YYYY-MM-DD.
+     * Required for creating a data specific rule user list.
+     * 
+ * + * .google.protobuf.StringValue start_date = 2; + */ + public Builder mergeStartDate(com.google.protobuf.StringValue value) { + if (startDateBuilder_ == null) { + if (startDate_ != null) { + startDate_ = + com.google.protobuf.StringValue.newBuilder(startDate_).mergeFrom(value).buildPartial(); + } else { + startDate_ = value; + } + onChanged(); + } else { + startDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Start date of users visit. If set to 2000-01-01, then the list includes all
+     * users before end_date. The date's format should be YYYY-MM-DD.
+     * Required for creating a data specific rule user list.
+     * 
+ * + * .google.protobuf.StringValue start_date = 2; + */ + public Builder clearStartDate() { + if (startDateBuilder_ == null) { + startDate_ = null; + onChanged(); + } else { + startDate_ = null; + startDateBuilder_ = null; + } + + return this; + } + /** + *
+     * Start date of users visit. If set to 2000-01-01, then the list includes all
+     * users before end_date. The date's format should be YYYY-MM-DD.
+     * Required for creating a data specific rule user list.
+     * 
+ * + * .google.protobuf.StringValue start_date = 2; + */ + public com.google.protobuf.StringValue.Builder getStartDateBuilder() { + + onChanged(); + return getStartDateFieldBuilder().getBuilder(); + } + /** + *
+     * Start date of users visit. If set to 2000-01-01, then the list includes all
+     * users before end_date. The date's format should be YYYY-MM-DD.
+     * Required for creating a data specific rule user list.
+     * 
+ * + * .google.protobuf.StringValue start_date = 2; + */ + public com.google.protobuf.StringValueOrBuilder getStartDateOrBuilder() { + if (startDateBuilder_ != null) { + return startDateBuilder_.getMessageOrBuilder(); + } else { + return startDate_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : startDate_; + } + } + /** + *
+     * Start date of users visit. If set to 2000-01-01, then the list includes all
+     * users before end_date. The date's format should be YYYY-MM-DD.
+     * Required for creating a data specific rule user list.
+     * 
+ * + * .google.protobuf.StringValue start_date = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getStartDateFieldBuilder() { + if (startDateBuilder_ == null) { + startDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getStartDate(), + getParentForChildren(), + isClean()); + startDate_ = null; + } + return startDateBuilder_; + } + + private com.google.protobuf.StringValue endDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> endDateBuilder_; + /** + *
+     * End date of users visit. If set to 2037-12-30, then the list includes all
+     * users after start_date. The date's format should be YYYY-MM-DD.
+     * Required for creating a data specific rule user list.
+     * 
+ * + * .google.protobuf.StringValue end_date = 3; + */ + public boolean hasEndDate() { + return endDateBuilder_ != null || endDate_ != null; + } + /** + *
+     * End date of users visit. If set to 2037-12-30, then the list includes all
+     * users after start_date. The date's format should be YYYY-MM-DD.
+     * Required for creating a data specific rule user list.
+     * 
+ * + * .google.protobuf.StringValue end_date = 3; + */ + public com.google.protobuf.StringValue getEndDate() { + if (endDateBuilder_ == null) { + return endDate_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : endDate_; + } else { + return endDateBuilder_.getMessage(); + } + } + /** + *
+     * End date of users visit. If set to 2037-12-30, then the list includes all
+     * users after start_date. The date's format should be YYYY-MM-DD.
+     * Required for creating a data specific rule user list.
+     * 
+ * + * .google.protobuf.StringValue end_date = 3; + */ + public Builder setEndDate(com.google.protobuf.StringValue value) { + if (endDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endDate_ = value; + onChanged(); + } else { + endDateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * End date of users visit. If set to 2037-12-30, then the list includes all
+     * users after start_date. The date's format should be YYYY-MM-DD.
+     * Required for creating a data specific rule user list.
+     * 
+ * + * .google.protobuf.StringValue end_date = 3; + */ + public Builder setEndDate( + com.google.protobuf.StringValue.Builder builderForValue) { + if (endDateBuilder_ == null) { + endDate_ = builderForValue.build(); + onChanged(); + } else { + endDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * End date of users visit. If set to 2037-12-30, then the list includes all
+     * users after start_date. The date's format should be YYYY-MM-DD.
+     * Required for creating a data specific rule user list.
+     * 
+ * + * .google.protobuf.StringValue end_date = 3; + */ + public Builder mergeEndDate(com.google.protobuf.StringValue value) { + if (endDateBuilder_ == null) { + if (endDate_ != null) { + endDate_ = + com.google.protobuf.StringValue.newBuilder(endDate_).mergeFrom(value).buildPartial(); + } else { + endDate_ = value; + } + onChanged(); + } else { + endDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * End date of users visit. If set to 2037-12-30, then the list includes all
+     * users after start_date. The date's format should be YYYY-MM-DD.
+     * Required for creating a data specific rule user list.
+     * 
+ * + * .google.protobuf.StringValue end_date = 3; + */ + public Builder clearEndDate() { + if (endDateBuilder_ == null) { + endDate_ = null; + onChanged(); + } else { + endDate_ = null; + endDateBuilder_ = null; + } + + return this; + } + /** + *
+     * End date of users visit. If set to 2037-12-30, then the list includes all
+     * users after start_date. The date's format should be YYYY-MM-DD.
+     * Required for creating a data specific rule user list.
+     * 
+ * + * .google.protobuf.StringValue end_date = 3; + */ + public com.google.protobuf.StringValue.Builder getEndDateBuilder() { + + onChanged(); + return getEndDateFieldBuilder().getBuilder(); + } + /** + *
+     * End date of users visit. If set to 2037-12-30, then the list includes all
+     * users after start_date. The date's format should be YYYY-MM-DD.
+     * Required for creating a data specific rule user list.
+     * 
+ * + * .google.protobuf.StringValue end_date = 3; + */ + public com.google.protobuf.StringValueOrBuilder getEndDateOrBuilder() { + if (endDateBuilder_ != null) { + return endDateBuilder_.getMessageOrBuilder(); + } else { + return endDate_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : endDate_; + } + } + /** + *
+     * End date of users visit. If set to 2037-12-30, then the list includes all
+     * users after start_date. The date's format should be YYYY-MM-DD.
+     * Required for creating a data specific rule user list.
+     * 
+ * + * .google.protobuf.StringValue end_date = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getEndDateFieldBuilder() { + if (endDateBuilder_ == null) { + endDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getEndDate(), + getParentForChildren(), + isClean()); + endDate_ = null; + } + return endDateBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.common.DateSpecificRuleUserListInfo) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.common.DateSpecificRuleUserListInfo) + private static final com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo(); + } + + public static com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DateSpecificRuleUserListInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DateSpecificRuleUserListInfo(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.common.DateSpecificRuleUserListInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/DateSpecificRuleUserListInfoOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/DateSpecificRuleUserListInfoOrBuilder.java new file mode 100644 index 0000000000..c875b551a4 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/DateSpecificRuleUserListInfoOrBuilder.java @@ -0,0 +1,99 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/user_lists.proto + +package com.google.ads.googleads.v0.common; + +public interface DateSpecificRuleUserListInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.common.DateSpecificRuleUserListInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Boolean rule that defines visitor of a page.
+   * Required for creating a date specific rule user list.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo rule = 1; + */ + boolean hasRule(); + /** + *
+   * Boolean rule that defines visitor of a page.
+   * Required for creating a date specific rule user list.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo rule = 1; + */ + com.google.ads.googleads.v0.common.UserListRuleInfo getRule(); + /** + *
+   * Boolean rule that defines visitor of a page.
+   * Required for creating a date specific rule user list.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo rule = 1; + */ + com.google.ads.googleads.v0.common.UserListRuleInfoOrBuilder getRuleOrBuilder(); + + /** + *
+   * Start date of users visit. If set to 2000-01-01, then the list includes all
+   * users before end_date. The date's format should be YYYY-MM-DD.
+   * Required for creating a data specific rule user list.
+   * 
+ * + * .google.protobuf.StringValue start_date = 2; + */ + boolean hasStartDate(); + /** + *
+   * Start date of users visit. If set to 2000-01-01, then the list includes all
+   * users before end_date. The date's format should be YYYY-MM-DD.
+   * Required for creating a data specific rule user list.
+   * 
+ * + * .google.protobuf.StringValue start_date = 2; + */ + com.google.protobuf.StringValue getStartDate(); + /** + *
+   * Start date of users visit. If set to 2000-01-01, then the list includes all
+   * users before end_date. The date's format should be YYYY-MM-DD.
+   * Required for creating a data specific rule user list.
+   * 
+ * + * .google.protobuf.StringValue start_date = 2; + */ + com.google.protobuf.StringValueOrBuilder getStartDateOrBuilder(); + + /** + *
+   * End date of users visit. If set to 2037-12-30, then the list includes all
+   * users after start_date. The date's format should be YYYY-MM-DD.
+   * Required for creating a data specific rule user list.
+   * 
+ * + * .google.protobuf.StringValue end_date = 3; + */ + boolean hasEndDate(); + /** + *
+   * End date of users visit. If set to 2037-12-30, then the list includes all
+   * users after start_date. The date's format should be YYYY-MM-DD.
+   * Required for creating a data specific rule user list.
+   * 
+ * + * .google.protobuf.StringValue end_date = 3; + */ + com.google.protobuf.StringValue getEndDate(); + /** + *
+   * End date of users visit. If set to 2037-12-30, then the list includes all
+   * users after start_date. The date's format should be YYYY-MM-DD.
+   * Required for creating a data specific rule user list.
+   * 
+ * + * .google.protobuf.StringValue end_date = 3; + */ + com.google.protobuf.StringValueOrBuilder getEndDateOrBuilder(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/DatesProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/DatesProto.java index ee04c4ffaf..92a3bdb4b6 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/common/DatesProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/DatesProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "ogle/protobuf/wrappers.proto\"m\n\tDateRang" + "e\0220\n\nstart_date\030\001 \001(\0132\034.google.protobuf." + "StringValue\022.\n\010end_date\030\002 \001(\0132\034.google.p" + - "rotobuf.StringValueB\300\001\n\"com.google.ads.g" + + "rotobuf.StringValueB\345\001\n\"com.google.ads.g" + "oogleads.v0.commonB\nDatesProtoP\001ZDgoogle" + ".golang.org/genproto/googleapis/ads/goog" + "leads/v0/common;common\242\002\003GAA\252\002\036Google.Ad" + "s.GoogleAds.V0.Common\312\002\036Google\\Ads\\Googl" + - "eAds\\V0\\Commonb\006proto3" + "eAds\\V0\\Common\352\002\"Google::Ads::GoogleAds:" + + ":V0::Commonb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/ExplorerAutoOptimizerSettingProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/ExplorerAutoOptimizerSettingProto.java index c660a10e20..f1da1931c0 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/common/ExplorerAutoOptimizerSettingProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/ExplorerAutoOptimizerSettingProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "ds.googleads.v0.common\032\036google/protobuf/" + "wrappers.proto\"J\n\034ExplorerAutoOptimizerS" + "etting\022*\n\006opt_in\030\001 \001(\0132\032.google.protobuf" + - ".BoolValueB\327\001\n\"com.google.ads.googleads." + + ".BoolValueB\374\001\n\"com.google.ads.googleads." + "v0.commonB!ExplorerAutoOptimizerSettingP" + "rotoP\001ZDgoogle.golang.org/genproto/googl" + "eapis/ads/googleads/v0/common;common\242\002\003G" + "AA\252\002\036Google.Ads.GoogleAds.V0.Common\312\002\036Go" + - "ogle\\Ads\\GoogleAds\\V0\\Commonb\006proto3" + "ogle\\Ads\\GoogleAds\\V0\\Common\352\002\"Google::A" + + "ds::GoogleAds::V0::Commonb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/ExpressionRuleUserListInfo.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/ExpressionRuleUserListInfo.java new file mode 100644 index 0000000000..6387658214 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/ExpressionRuleUserListInfo.java @@ -0,0 +1,699 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/user_lists.proto + +package com.google.ads.googleads.v0.common; + +/** + *
+ * Visitors of a page. The page visit is defined by one boolean rule expression.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.ExpressionRuleUserListInfo} + */ +public final class ExpressionRuleUserListInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.common.ExpressionRuleUserListInfo) + ExpressionRuleUserListInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use ExpressionRuleUserListInfo.newBuilder() to construct. + private ExpressionRuleUserListInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExpressionRuleUserListInfo() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExpressionRuleUserListInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.ads.googleads.v0.common.UserListRuleInfo.Builder subBuilder = null; + if (rule_ != null) { + subBuilder = rule_.toBuilder(); + } + rule_ = input.readMessage(com.google.ads.googleads.v0.common.UserListRuleInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(rule_); + rule_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_ExpressionRuleUserListInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_ExpressionRuleUserListInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo.class, com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo.Builder.class); + } + + public static final int RULE_FIELD_NUMBER = 1; + private com.google.ads.googleads.v0.common.UserListRuleInfo rule_; + /** + *
+   * Boolean rule that defines this user list. The rule consists of a list of
+   * rule item groups and each rule item group consists of a list of rule items.
+   * All the rule item groups are ORed or ANDed together for evaluation based on
+   * rule.rule_type.
+   * Required for creating an expression rule user list.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo rule = 1; + */ + public boolean hasRule() { + return rule_ != null; + } + /** + *
+   * Boolean rule that defines this user list. The rule consists of a list of
+   * rule item groups and each rule item group consists of a list of rule items.
+   * All the rule item groups are ORed or ANDed together for evaluation based on
+   * rule.rule_type.
+   * Required for creating an expression rule user list.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo rule = 1; + */ + public com.google.ads.googleads.v0.common.UserListRuleInfo getRule() { + return rule_ == null ? com.google.ads.googleads.v0.common.UserListRuleInfo.getDefaultInstance() : rule_; + } + /** + *
+   * Boolean rule that defines this user list. The rule consists of a list of
+   * rule item groups and each rule item group consists of a list of rule items.
+   * All the rule item groups are ORed or ANDed together for evaluation based on
+   * rule.rule_type.
+   * Required for creating an expression rule user list.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo rule = 1; + */ + public com.google.ads.googleads.v0.common.UserListRuleInfoOrBuilder getRuleOrBuilder() { + return getRule(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (rule_ != null) { + output.writeMessage(1, getRule()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (rule_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRule()); + } + size += unknownFields.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.ads.googleads.v0.common.ExpressionRuleUserListInfo)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo other = (com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo) obj; + + boolean result = true; + result = result && (hasRule() == other.hasRule()); + if (hasRule()) { + result = result && getRule() + .equals(other.getRule()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRule()) { + hash = (37 * hash) + RULE_FIELD_NUMBER; + hash = (53 * hash) + getRule().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo 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.ads.googleads.v0.common.ExpressionRuleUserListInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo 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.ads.googleads.v0.common.ExpressionRuleUserListInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo 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.ads.googleads.v0.common.ExpressionRuleUserListInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo 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.ads.googleads.v0.common.ExpressionRuleUserListInfo 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; + } + /** + *
+   * Visitors of a page. The page visit is defined by one boolean rule expression.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.ExpressionRuleUserListInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.common.ExpressionRuleUserListInfo) + com.google.ads.googleads.v0.common.ExpressionRuleUserListInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_ExpressionRuleUserListInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_ExpressionRuleUserListInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo.class, com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (ruleBuilder_ == null) { + rule_ = null; + } else { + rule_ = null; + ruleBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_ExpressionRuleUserListInfo_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo getDefaultInstanceForType() { + return com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo build() { + com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo buildPartial() { + com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo result = new com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo(this); + if (ruleBuilder_ == null) { + result.rule_ = rule_; + } else { + result.rule_ = ruleBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo) { + return mergeFrom((com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo other) { + if (other == com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo.getDefaultInstance()) return this; + if (other.hasRule()) { + mergeRule(other.getRule()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.ads.googleads.v0.common.UserListRuleInfo rule_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.UserListRuleInfo, com.google.ads.googleads.v0.common.UserListRuleInfo.Builder, com.google.ads.googleads.v0.common.UserListRuleInfoOrBuilder> ruleBuilder_; + /** + *
+     * Boolean rule that defines this user list. The rule consists of a list of
+     * rule item groups and each rule item group consists of a list of rule items.
+     * All the rule item groups are ORed or ANDed together for evaluation based on
+     * rule.rule_type.
+     * Required for creating an expression rule user list.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo rule = 1; + */ + public boolean hasRule() { + return ruleBuilder_ != null || rule_ != null; + } + /** + *
+     * Boolean rule that defines this user list. The rule consists of a list of
+     * rule item groups and each rule item group consists of a list of rule items.
+     * All the rule item groups are ORed or ANDed together for evaluation based on
+     * rule.rule_type.
+     * Required for creating an expression rule user list.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo rule = 1; + */ + public com.google.ads.googleads.v0.common.UserListRuleInfo getRule() { + if (ruleBuilder_ == null) { + return rule_ == null ? com.google.ads.googleads.v0.common.UserListRuleInfo.getDefaultInstance() : rule_; + } else { + return ruleBuilder_.getMessage(); + } + } + /** + *
+     * Boolean rule that defines this user list. The rule consists of a list of
+     * rule item groups and each rule item group consists of a list of rule items.
+     * All the rule item groups are ORed or ANDed together for evaluation based on
+     * rule.rule_type.
+     * Required for creating an expression rule user list.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo rule = 1; + */ + public Builder setRule(com.google.ads.googleads.v0.common.UserListRuleInfo value) { + if (ruleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rule_ = value; + onChanged(); + } else { + ruleBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Boolean rule that defines this user list. The rule consists of a list of
+     * rule item groups and each rule item group consists of a list of rule items.
+     * All the rule item groups are ORed or ANDed together for evaluation based on
+     * rule.rule_type.
+     * Required for creating an expression rule user list.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo rule = 1; + */ + public Builder setRule( + com.google.ads.googleads.v0.common.UserListRuleInfo.Builder builderForValue) { + if (ruleBuilder_ == null) { + rule_ = builderForValue.build(); + onChanged(); + } else { + ruleBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Boolean rule that defines this user list. The rule consists of a list of
+     * rule item groups and each rule item group consists of a list of rule items.
+     * All the rule item groups are ORed or ANDed together for evaluation based on
+     * rule.rule_type.
+     * Required for creating an expression rule user list.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo rule = 1; + */ + public Builder mergeRule(com.google.ads.googleads.v0.common.UserListRuleInfo value) { + if (ruleBuilder_ == null) { + if (rule_ != null) { + rule_ = + com.google.ads.googleads.v0.common.UserListRuleInfo.newBuilder(rule_).mergeFrom(value).buildPartial(); + } else { + rule_ = value; + } + onChanged(); + } else { + ruleBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Boolean rule that defines this user list. The rule consists of a list of
+     * rule item groups and each rule item group consists of a list of rule items.
+     * All the rule item groups are ORed or ANDed together for evaluation based on
+     * rule.rule_type.
+     * Required for creating an expression rule user list.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo rule = 1; + */ + public Builder clearRule() { + if (ruleBuilder_ == null) { + rule_ = null; + onChanged(); + } else { + rule_ = null; + ruleBuilder_ = null; + } + + return this; + } + /** + *
+     * Boolean rule that defines this user list. The rule consists of a list of
+     * rule item groups and each rule item group consists of a list of rule items.
+     * All the rule item groups are ORed or ANDed together for evaluation based on
+     * rule.rule_type.
+     * Required for creating an expression rule user list.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo rule = 1; + */ + public com.google.ads.googleads.v0.common.UserListRuleInfo.Builder getRuleBuilder() { + + onChanged(); + return getRuleFieldBuilder().getBuilder(); + } + /** + *
+     * Boolean rule that defines this user list. The rule consists of a list of
+     * rule item groups and each rule item group consists of a list of rule items.
+     * All the rule item groups are ORed or ANDed together for evaluation based on
+     * rule.rule_type.
+     * Required for creating an expression rule user list.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo rule = 1; + */ + public com.google.ads.googleads.v0.common.UserListRuleInfoOrBuilder getRuleOrBuilder() { + if (ruleBuilder_ != null) { + return ruleBuilder_.getMessageOrBuilder(); + } else { + return rule_ == null ? + com.google.ads.googleads.v0.common.UserListRuleInfo.getDefaultInstance() : rule_; + } + } + /** + *
+     * Boolean rule that defines this user list. The rule consists of a list of
+     * rule item groups and each rule item group consists of a list of rule items.
+     * All the rule item groups are ORed or ANDed together for evaluation based on
+     * rule.rule_type.
+     * Required for creating an expression rule user list.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo rule = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.UserListRuleInfo, com.google.ads.googleads.v0.common.UserListRuleInfo.Builder, com.google.ads.googleads.v0.common.UserListRuleInfoOrBuilder> + getRuleFieldBuilder() { + if (ruleBuilder_ == null) { + ruleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.UserListRuleInfo, com.google.ads.googleads.v0.common.UserListRuleInfo.Builder, com.google.ads.googleads.v0.common.UserListRuleInfoOrBuilder>( + getRule(), + getParentForChildren(), + isClean()); + rule_ = null; + } + return ruleBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.common.ExpressionRuleUserListInfo) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.common.ExpressionRuleUserListInfo) + private static final com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo(); + } + + public static com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExpressionRuleUserListInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExpressionRuleUserListInfo(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.common.ExpressionRuleUserListInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/ExpressionRuleUserListInfoOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/ExpressionRuleUserListInfoOrBuilder.java new file mode 100644 index 0000000000..8c0fb9b0dc --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/ExpressionRuleUserListInfoOrBuilder.java @@ -0,0 +1,46 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/user_lists.proto + +package com.google.ads.googleads.v0.common; + +public interface ExpressionRuleUserListInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.common.ExpressionRuleUserListInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Boolean rule that defines this user list. The rule consists of a list of
+   * rule item groups and each rule item group consists of a list of rule items.
+   * All the rule item groups are ORed or ANDed together for evaluation based on
+   * rule.rule_type.
+   * Required for creating an expression rule user list.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo rule = 1; + */ + boolean hasRule(); + /** + *
+   * Boolean rule that defines this user list. The rule consists of a list of
+   * rule item groups and each rule item group consists of a list of rule items.
+   * All the rule item groups are ORed or ANDed together for evaluation based on
+   * rule.rule_type.
+   * Required for creating an expression rule user list.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo rule = 1; + */ + com.google.ads.googleads.v0.common.UserListRuleInfo getRule(); + /** + *
+   * Boolean rule that defines this user list. The rule consists of a list of
+   * rule item groups and each rule item group consists of a list of rule items.
+   * All the rule item groups are ORed or ANDed together for evaluation based on
+   * rule.rule_type.
+   * Required for creating an expression rule user list.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListRuleInfo rule = 1; + */ + com.google.ads.googleads.v0.common.UserListRuleInfoOrBuilder getRuleOrBuilder(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/FeedCommonProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/FeedCommonProto.java index 749689ade9..bfe81513dc 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/common/FeedCommonProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/FeedCommonProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "on\032\036google/protobuf/wrappers.proto\"p\n\005Pr" + "ice\0223\n\rcurrency_code\030\001 \001(\0132\034.google.prot" + "obuf.StringValue\0222\n\ramount_micros\030\002 \001(\0132" + - "\033.google.protobuf.Int64ValueB\305\001\n\"com.goo" + + "\033.google.protobuf.Int64ValueB\352\001\n\"com.goo" + "gle.ads.googleads.v0.commonB\017FeedCommonP" + "rotoP\001ZDgoogle.golang.org/genproto/googl" + "eapis/ads/googleads/v0/common;common\242\002\003G" + "AA\252\002\036Google.Ads.GoogleAds.V0.Common\312\002\036Go" + - "ogle\\Ads\\GoogleAds\\V0\\Commonb\006proto3" + "ogle\\Ads\\GoogleAds\\V0\\Common\352\002\"Google::A" + + "ds::GoogleAds::V0::Commonb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/FrequencyCapProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/FrequencyCapProto.java index 0b829ee72c..770e0de488 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/common/FrequencyCapProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/FrequencyCapProto.java @@ -52,12 +52,13 @@ public static void registerAllExtensions( "t\030\002 \001(\0162L.google.ads.googleads.v0.enums." + "FrequencyCapTimeUnitEnum.FrequencyCapTim" + "eUnit\0220\n\013time_length\030\004 \001(\0132\033.google.prot" + - "obuf.Int32ValueB\307\001\n\"com.google.ads.googl" + + "obuf.Int32ValueB\354\001\n\"com.google.ads.googl" + "eads.v0.commonB\021FrequencyCapProtoP\001ZDgoo" + "gle.golang.org/genproto/googleapis/ads/g" + "oogleads/v0/common;common\242\002\003GAA\252\002\036Google" + ".Ads.GoogleAds.V0.Common\312\002\036Google\\Ads\\Go" + - "ogleAds\\V0\\Commonb\006proto3" + "ogleAds\\V0\\Common\352\002\"Google::Ads::GoogleA" + + "ds::V0::Commonb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/KeywordPlanCommonProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/KeywordPlanCommonProto.java index 8d830ab06b..55b5219e33 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/common/KeywordPlanCommonProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/KeywordPlanCommonProto.java @@ -37,13 +37,14 @@ public static void registerAllExtensions( "earches\030\001 \001(\0132\033.google.protobuf.Int64Val" + "ue\022o\n\013competition\030\002 \001(\0162Z.google.ads.goo" + "gleads.v0.enums.KeywordPlanCompetitionLe" + - "velEnum.KeywordPlanCompetitionLevelB\314\001\n\"" + + "velEnum.KeywordPlanCompetitionLevelB\361\001\n\"" + "com.google.ads.googleads.v0.commonB\026Keyw" + "ordPlanCommonProtoP\001ZDgoogle.golang.org/" + "genproto/googleapis/ads/googleads/v0/com" + "mon;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds." + "V0.Common\312\002\036Google\\Ads\\GoogleAds\\V0\\Comm" + - "onb\006proto3" + "on\352\002\"Google::Ads::GoogleAds::V0::Commonb" + + "\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/LogicalUserListInfo.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/LogicalUserListInfo.java new file mode 100644 index 0000000000..793f5d4252 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/LogicalUserListInfo.java @@ -0,0 +1,928 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/user_lists.proto + +package com.google.ads.googleads.v0.common; + +/** + *
+ * Represents a user list that is a custom combination of user lists.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.LogicalUserListInfo} + */ +public final class LogicalUserListInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.common.LogicalUserListInfo) + LogicalUserListInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use LogicalUserListInfo.newBuilder() to construct. + private LogicalUserListInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LogicalUserListInfo() { + rules_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LogicalUserListInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + rules_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + rules_.add( + input.readMessage(com.google.ads.googleads.v0.common.UserListLogicalRuleInfo.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + rules_ = java.util.Collections.unmodifiableList(rules_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_LogicalUserListInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_LogicalUserListInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.LogicalUserListInfo.class, com.google.ads.googleads.v0.common.LogicalUserListInfo.Builder.class); + } + + public static final int RULES_FIELD_NUMBER = 1; + private java.util.List rules_; + /** + *
+   * Logical list rules that define this user list. The rules are defined as a
+   * logical operator (ALL/ANY/NONE) and a list of user lists. All the rules are
+   * ANDed when they are evaluated.
+   * Required for creating a logical user list.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListLogicalRuleInfo rules = 1; + */ + public java.util.List getRulesList() { + return rules_; + } + /** + *
+   * Logical list rules that define this user list. The rules are defined as a
+   * logical operator (ALL/ANY/NONE) and a list of user lists. All the rules are
+   * ANDed when they are evaluated.
+   * Required for creating a logical user list.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListLogicalRuleInfo rules = 1; + */ + public java.util.List + getRulesOrBuilderList() { + return rules_; + } + /** + *
+   * Logical list rules that define this user list. The rules are defined as a
+   * logical operator (ALL/ANY/NONE) and a list of user lists. All the rules are
+   * ANDed when they are evaluated.
+   * Required for creating a logical user list.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListLogicalRuleInfo rules = 1; + */ + public int getRulesCount() { + return rules_.size(); + } + /** + *
+   * Logical list rules that define this user list. The rules are defined as a
+   * logical operator (ALL/ANY/NONE) and a list of user lists. All the rules are
+   * ANDed when they are evaluated.
+   * Required for creating a logical user list.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListLogicalRuleInfo rules = 1; + */ + public com.google.ads.googleads.v0.common.UserListLogicalRuleInfo getRules(int index) { + return rules_.get(index); + } + /** + *
+   * Logical list rules that define this user list. The rules are defined as a
+   * logical operator (ALL/ANY/NONE) and a list of user lists. All the rules are
+   * ANDed when they are evaluated.
+   * Required for creating a logical user list.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListLogicalRuleInfo rules = 1; + */ + public com.google.ads.googleads.v0.common.UserListLogicalRuleInfoOrBuilder getRulesOrBuilder( + int index) { + return rules_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < rules_.size(); i++) { + output.writeMessage(1, rules_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < rules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, rules_.get(i)); + } + size += unknownFields.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.ads.googleads.v0.common.LogicalUserListInfo)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.common.LogicalUserListInfo other = (com.google.ads.googleads.v0.common.LogicalUserListInfo) obj; + + boolean result = true; + result = result && getRulesList() + .equals(other.getRulesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getRulesCount() > 0) { + hash = (37 * hash) + RULES_FIELD_NUMBER; + hash = (53 * hash) + getRulesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.common.LogicalUserListInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.LogicalUserListInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.LogicalUserListInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.LogicalUserListInfo 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.ads.googleads.v0.common.LogicalUserListInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.LogicalUserListInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.LogicalUserListInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.LogicalUserListInfo 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.ads.googleads.v0.common.LogicalUserListInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.LogicalUserListInfo 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.ads.googleads.v0.common.LogicalUserListInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.LogicalUserListInfo 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.ads.googleads.v0.common.LogicalUserListInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Represents a user list that is a custom combination of user lists.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.LogicalUserListInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.common.LogicalUserListInfo) + com.google.ads.googleads.v0.common.LogicalUserListInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_LogicalUserListInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_LogicalUserListInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.LogicalUserListInfo.class, com.google.ads.googleads.v0.common.LogicalUserListInfo.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.common.LogicalUserListInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getRulesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + rulesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_LogicalUserListInfo_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.LogicalUserListInfo getDefaultInstanceForType() { + return com.google.ads.googleads.v0.common.LogicalUserListInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.LogicalUserListInfo build() { + com.google.ads.googleads.v0.common.LogicalUserListInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.LogicalUserListInfo buildPartial() { + com.google.ads.googleads.v0.common.LogicalUserListInfo result = new com.google.ads.googleads.v0.common.LogicalUserListInfo(this); + int from_bitField0_ = bitField0_; + if (rulesBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + rules_ = java.util.Collections.unmodifiableList(rules_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.rules_ = rules_; + } else { + result.rules_ = rulesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.common.LogicalUserListInfo) { + return mergeFrom((com.google.ads.googleads.v0.common.LogicalUserListInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.common.LogicalUserListInfo other) { + if (other == com.google.ads.googleads.v0.common.LogicalUserListInfo.getDefaultInstance()) return this; + if (rulesBuilder_ == null) { + if (!other.rules_.isEmpty()) { + if (rules_.isEmpty()) { + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRulesIsMutable(); + rules_.addAll(other.rules_); + } + onChanged(); + } + } else { + if (!other.rules_.isEmpty()) { + if (rulesBuilder_.isEmpty()) { + rulesBuilder_.dispose(); + rulesBuilder_ = null; + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000001); + rulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRulesFieldBuilder() : null; + } else { + rulesBuilder_.addAllMessages(other.rules_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.common.LogicalUserListInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.common.LogicalUserListInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List rules_ = + java.util.Collections.emptyList(); + private void ensureRulesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + rules_ = new java.util.ArrayList(rules_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.common.UserListLogicalRuleInfo, com.google.ads.googleads.v0.common.UserListLogicalRuleInfo.Builder, com.google.ads.googleads.v0.common.UserListLogicalRuleInfoOrBuilder> rulesBuilder_; + + /** + *
+     * Logical list rules that define this user list. The rules are defined as a
+     * logical operator (ALL/ANY/NONE) and a list of user lists. All the rules are
+     * ANDed when they are evaluated.
+     * Required for creating a logical user list.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListLogicalRuleInfo rules = 1; + */ + public java.util.List getRulesList() { + if (rulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(rules_); + } else { + return rulesBuilder_.getMessageList(); + } + } + /** + *
+     * Logical list rules that define this user list. The rules are defined as a
+     * logical operator (ALL/ANY/NONE) and a list of user lists. All the rules are
+     * ANDed when they are evaluated.
+     * Required for creating a logical user list.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListLogicalRuleInfo rules = 1; + */ + public int getRulesCount() { + if (rulesBuilder_ == null) { + return rules_.size(); + } else { + return rulesBuilder_.getCount(); + } + } + /** + *
+     * Logical list rules that define this user list. The rules are defined as a
+     * logical operator (ALL/ANY/NONE) and a list of user lists. All the rules are
+     * ANDed when they are evaluated.
+     * Required for creating a logical user list.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListLogicalRuleInfo rules = 1; + */ + public com.google.ads.googleads.v0.common.UserListLogicalRuleInfo getRules(int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); + } else { + return rulesBuilder_.getMessage(index); + } + } + /** + *
+     * Logical list rules that define this user list. The rules are defined as a
+     * logical operator (ALL/ANY/NONE) and a list of user lists. All the rules are
+     * ANDed when they are evaluated.
+     * Required for creating a logical user list.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListLogicalRuleInfo rules = 1; + */ + public Builder setRules( + int index, com.google.ads.googleads.v0.common.UserListLogicalRuleInfo value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.set(index, value); + onChanged(); + } else { + rulesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Logical list rules that define this user list. The rules are defined as a
+     * logical operator (ALL/ANY/NONE) and a list of user lists. All the rules are
+     * ANDed when they are evaluated.
+     * Required for creating a logical user list.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListLogicalRuleInfo rules = 1; + */ + public Builder setRules( + int index, com.google.ads.googleads.v0.common.UserListLogicalRuleInfo.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.set(index, builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Logical list rules that define this user list. The rules are defined as a
+     * logical operator (ALL/ANY/NONE) and a list of user lists. All the rules are
+     * ANDed when they are evaluated.
+     * Required for creating a logical user list.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListLogicalRuleInfo rules = 1; + */ + public Builder addRules(com.google.ads.googleads.v0.common.UserListLogicalRuleInfo value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(value); + onChanged(); + } else { + rulesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Logical list rules that define this user list. The rules are defined as a
+     * logical operator (ALL/ANY/NONE) and a list of user lists. All the rules are
+     * ANDed when they are evaluated.
+     * Required for creating a logical user list.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListLogicalRuleInfo rules = 1; + */ + public Builder addRules( + int index, com.google.ads.googleads.v0.common.UserListLogicalRuleInfo value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(index, value); + onChanged(); + } else { + rulesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Logical list rules that define this user list. The rules are defined as a
+     * logical operator (ALL/ANY/NONE) and a list of user lists. All the rules are
+     * ANDed when they are evaluated.
+     * Required for creating a logical user list.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListLogicalRuleInfo rules = 1; + */ + public Builder addRules( + com.google.ads.googleads.v0.common.UserListLogicalRuleInfo.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Logical list rules that define this user list. The rules are defined as a
+     * logical operator (ALL/ANY/NONE) and a list of user lists. All the rules are
+     * ANDed when they are evaluated.
+     * Required for creating a logical user list.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListLogicalRuleInfo rules = 1; + */ + public Builder addRules( + int index, com.google.ads.googleads.v0.common.UserListLogicalRuleInfo.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(index, builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Logical list rules that define this user list. The rules are defined as a
+     * logical operator (ALL/ANY/NONE) and a list of user lists. All the rules are
+     * ANDed when they are evaluated.
+     * Required for creating a logical user list.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListLogicalRuleInfo rules = 1; + */ + public Builder addAllRules( + java.lang.Iterable values) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, rules_); + onChanged(); + } else { + rulesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Logical list rules that define this user list. The rules are defined as a
+     * logical operator (ALL/ANY/NONE) and a list of user lists. All the rules are
+     * ANDed when they are evaluated.
+     * Required for creating a logical user list.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListLogicalRuleInfo rules = 1; + */ + public Builder clearRules() { + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + rulesBuilder_.clear(); + } + return this; + } + /** + *
+     * Logical list rules that define this user list. The rules are defined as a
+     * logical operator (ALL/ANY/NONE) and a list of user lists. All the rules are
+     * ANDed when they are evaluated.
+     * Required for creating a logical user list.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListLogicalRuleInfo rules = 1; + */ + public Builder removeRules(int index) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.remove(index); + onChanged(); + } else { + rulesBuilder_.remove(index); + } + return this; + } + /** + *
+     * Logical list rules that define this user list. The rules are defined as a
+     * logical operator (ALL/ANY/NONE) and a list of user lists. All the rules are
+     * ANDed when they are evaluated.
+     * Required for creating a logical user list.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListLogicalRuleInfo rules = 1; + */ + public com.google.ads.googleads.v0.common.UserListLogicalRuleInfo.Builder getRulesBuilder( + int index) { + return getRulesFieldBuilder().getBuilder(index); + } + /** + *
+     * Logical list rules that define this user list. The rules are defined as a
+     * logical operator (ALL/ANY/NONE) and a list of user lists. All the rules are
+     * ANDed when they are evaluated.
+     * Required for creating a logical user list.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListLogicalRuleInfo rules = 1; + */ + public com.google.ads.googleads.v0.common.UserListLogicalRuleInfoOrBuilder getRulesOrBuilder( + int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); } else { + return rulesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Logical list rules that define this user list. The rules are defined as a
+     * logical operator (ALL/ANY/NONE) and a list of user lists. All the rules are
+     * ANDed when they are evaluated.
+     * Required for creating a logical user list.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListLogicalRuleInfo rules = 1; + */ + public java.util.List + getRulesOrBuilderList() { + if (rulesBuilder_ != null) { + return rulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rules_); + } + } + /** + *
+     * Logical list rules that define this user list. The rules are defined as a
+     * logical operator (ALL/ANY/NONE) and a list of user lists. All the rules are
+     * ANDed when they are evaluated.
+     * Required for creating a logical user list.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListLogicalRuleInfo rules = 1; + */ + public com.google.ads.googleads.v0.common.UserListLogicalRuleInfo.Builder addRulesBuilder() { + return getRulesFieldBuilder().addBuilder( + com.google.ads.googleads.v0.common.UserListLogicalRuleInfo.getDefaultInstance()); + } + /** + *
+     * Logical list rules that define this user list. The rules are defined as a
+     * logical operator (ALL/ANY/NONE) and a list of user lists. All the rules are
+     * ANDed when they are evaluated.
+     * Required for creating a logical user list.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListLogicalRuleInfo rules = 1; + */ + public com.google.ads.googleads.v0.common.UserListLogicalRuleInfo.Builder addRulesBuilder( + int index) { + return getRulesFieldBuilder().addBuilder( + index, com.google.ads.googleads.v0.common.UserListLogicalRuleInfo.getDefaultInstance()); + } + /** + *
+     * Logical list rules that define this user list. The rules are defined as a
+     * logical operator (ALL/ANY/NONE) and a list of user lists. All the rules are
+     * ANDed when they are evaluated.
+     * Required for creating a logical user list.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListLogicalRuleInfo rules = 1; + */ + public java.util.List + getRulesBuilderList() { + return getRulesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.common.UserListLogicalRuleInfo, com.google.ads.googleads.v0.common.UserListLogicalRuleInfo.Builder, com.google.ads.googleads.v0.common.UserListLogicalRuleInfoOrBuilder> + getRulesFieldBuilder() { + if (rulesBuilder_ == null) { + rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.common.UserListLogicalRuleInfo, com.google.ads.googleads.v0.common.UserListLogicalRuleInfo.Builder, com.google.ads.googleads.v0.common.UserListLogicalRuleInfoOrBuilder>( + rules_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + rules_ = null; + } + return rulesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.common.LogicalUserListInfo) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.common.LogicalUserListInfo) + private static final com.google.ads.googleads.v0.common.LogicalUserListInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.common.LogicalUserListInfo(); + } + + public static com.google.ads.googleads.v0.common.LogicalUserListInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogicalUserListInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LogicalUserListInfo(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.common.LogicalUserListInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/LogicalUserListInfoOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/LogicalUserListInfoOrBuilder.java new file mode 100644 index 0000000000..7fc15d8bdd --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/LogicalUserListInfoOrBuilder.java @@ -0,0 +1,68 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/user_lists.proto + +package com.google.ads.googleads.v0.common; + +public interface LogicalUserListInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.common.LogicalUserListInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Logical list rules that define this user list. The rules are defined as a
+   * logical operator (ALL/ANY/NONE) and a list of user lists. All the rules are
+   * ANDed when they are evaluated.
+   * Required for creating a logical user list.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListLogicalRuleInfo rules = 1; + */ + java.util.List + getRulesList(); + /** + *
+   * Logical list rules that define this user list. The rules are defined as a
+   * logical operator (ALL/ANY/NONE) and a list of user lists. All the rules are
+   * ANDed when they are evaluated.
+   * Required for creating a logical user list.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListLogicalRuleInfo rules = 1; + */ + com.google.ads.googleads.v0.common.UserListLogicalRuleInfo getRules(int index); + /** + *
+   * Logical list rules that define this user list. The rules are defined as a
+   * logical operator (ALL/ANY/NONE) and a list of user lists. All the rules are
+   * ANDed when they are evaluated.
+   * Required for creating a logical user list.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListLogicalRuleInfo rules = 1; + */ + int getRulesCount(); + /** + *
+   * Logical list rules that define this user list. The rules are defined as a
+   * logical operator (ALL/ANY/NONE) and a list of user lists. All the rules are
+   * ANDed when they are evaluated.
+   * Required for creating a logical user list.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListLogicalRuleInfo rules = 1; + */ + java.util.List + getRulesOrBuilderList(); + /** + *
+   * Logical list rules that define this user list. The rules are defined as a
+   * logical operator (ALL/ANY/NONE) and a list of user lists. All the rules are
+   * ANDed when they are evaluated.
+   * Required for creating a logical user list.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListLogicalRuleInfo rules = 1; + */ + com.google.ads.googleads.v0.common.UserListLogicalRuleInfoOrBuilder getRulesOrBuilder( + int index); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/LogicalUserListOperandInfo.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/LogicalUserListOperandInfo.java new file mode 100644 index 0000000000..c675a91ba0 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/LogicalUserListOperandInfo.java @@ -0,0 +1,651 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/user_lists.proto + +package com.google.ads.googleads.v0.common; + +/** + *
+ * Operand of logical user list that consists of a user list.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.LogicalUserListOperandInfo} + */ +public final class LogicalUserListOperandInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.common.LogicalUserListOperandInfo) + LogicalUserListOperandInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use LogicalUserListOperandInfo.newBuilder() to construct. + private LogicalUserListOperandInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LogicalUserListOperandInfo() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LogicalUserListOperandInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (userList_ != null) { + subBuilder = userList_.toBuilder(); + } + userList_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(userList_); + userList_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_LogicalUserListOperandInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_LogicalUserListOperandInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.LogicalUserListOperandInfo.class, com.google.ads.googleads.v0.common.LogicalUserListOperandInfo.Builder.class); + } + + public static final int USER_LIST_FIELD_NUMBER = 1; + private com.google.protobuf.StringValue userList_; + /** + *
+   * Resource name of a user list as an operand.
+   * 
+ * + * .google.protobuf.StringValue user_list = 1; + */ + public boolean hasUserList() { + return userList_ != null; + } + /** + *
+   * Resource name of a user list as an operand.
+   * 
+ * + * .google.protobuf.StringValue user_list = 1; + */ + public com.google.protobuf.StringValue getUserList() { + return userList_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : userList_; + } + /** + *
+   * Resource name of a user list as an operand.
+   * 
+ * + * .google.protobuf.StringValue user_list = 1; + */ + public com.google.protobuf.StringValueOrBuilder getUserListOrBuilder() { + return getUserList(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (userList_ != null) { + output.writeMessage(1, getUserList()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (userList_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUserList()); + } + size += unknownFields.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.ads.googleads.v0.common.LogicalUserListOperandInfo)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.common.LogicalUserListOperandInfo other = (com.google.ads.googleads.v0.common.LogicalUserListOperandInfo) obj; + + boolean result = true; + result = result && (hasUserList() == other.hasUserList()); + if (hasUserList()) { + result = result && getUserList() + .equals(other.getUserList()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUserList()) { + hash = (37 * hash) + USER_LIST_FIELD_NUMBER; + hash = (53 * hash) + getUserList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.common.LogicalUserListOperandInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.LogicalUserListOperandInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.LogicalUserListOperandInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.LogicalUserListOperandInfo 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.ads.googleads.v0.common.LogicalUserListOperandInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.LogicalUserListOperandInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.LogicalUserListOperandInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.LogicalUserListOperandInfo 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.ads.googleads.v0.common.LogicalUserListOperandInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.LogicalUserListOperandInfo 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.ads.googleads.v0.common.LogicalUserListOperandInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.LogicalUserListOperandInfo 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.ads.googleads.v0.common.LogicalUserListOperandInfo 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; + } + /** + *
+   * Operand of logical user list that consists of a user list.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.LogicalUserListOperandInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.common.LogicalUserListOperandInfo) + com.google.ads.googleads.v0.common.LogicalUserListOperandInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_LogicalUserListOperandInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_LogicalUserListOperandInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.LogicalUserListOperandInfo.class, com.google.ads.googleads.v0.common.LogicalUserListOperandInfo.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.common.LogicalUserListOperandInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (userListBuilder_ == null) { + userList_ = null; + } else { + userList_ = null; + userListBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_LogicalUserListOperandInfo_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.LogicalUserListOperandInfo getDefaultInstanceForType() { + return com.google.ads.googleads.v0.common.LogicalUserListOperandInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.LogicalUserListOperandInfo build() { + com.google.ads.googleads.v0.common.LogicalUserListOperandInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.LogicalUserListOperandInfo buildPartial() { + com.google.ads.googleads.v0.common.LogicalUserListOperandInfo result = new com.google.ads.googleads.v0.common.LogicalUserListOperandInfo(this); + if (userListBuilder_ == null) { + result.userList_ = userList_; + } else { + result.userList_ = userListBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.common.LogicalUserListOperandInfo) { + return mergeFrom((com.google.ads.googleads.v0.common.LogicalUserListOperandInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.common.LogicalUserListOperandInfo other) { + if (other == com.google.ads.googleads.v0.common.LogicalUserListOperandInfo.getDefaultInstance()) return this; + if (other.hasUserList()) { + mergeUserList(other.getUserList()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.common.LogicalUserListOperandInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.common.LogicalUserListOperandInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.StringValue userList_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> userListBuilder_; + /** + *
+     * Resource name of a user list as an operand.
+     * 
+ * + * .google.protobuf.StringValue user_list = 1; + */ + public boolean hasUserList() { + return userListBuilder_ != null || userList_ != null; + } + /** + *
+     * Resource name of a user list as an operand.
+     * 
+ * + * .google.protobuf.StringValue user_list = 1; + */ + public com.google.protobuf.StringValue getUserList() { + if (userListBuilder_ == null) { + return userList_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : userList_; + } else { + return userListBuilder_.getMessage(); + } + } + /** + *
+     * Resource name of a user list as an operand.
+     * 
+ * + * .google.protobuf.StringValue user_list = 1; + */ + public Builder setUserList(com.google.protobuf.StringValue value) { + if (userListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userList_ = value; + onChanged(); + } else { + userListBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Resource name of a user list as an operand.
+     * 
+ * + * .google.protobuf.StringValue user_list = 1; + */ + public Builder setUserList( + com.google.protobuf.StringValue.Builder builderForValue) { + if (userListBuilder_ == null) { + userList_ = builderForValue.build(); + onChanged(); + } else { + userListBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Resource name of a user list as an operand.
+     * 
+ * + * .google.protobuf.StringValue user_list = 1; + */ + public Builder mergeUserList(com.google.protobuf.StringValue value) { + if (userListBuilder_ == null) { + if (userList_ != null) { + userList_ = + com.google.protobuf.StringValue.newBuilder(userList_).mergeFrom(value).buildPartial(); + } else { + userList_ = value; + } + onChanged(); + } else { + userListBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Resource name of a user list as an operand.
+     * 
+ * + * .google.protobuf.StringValue user_list = 1; + */ + public Builder clearUserList() { + if (userListBuilder_ == null) { + userList_ = null; + onChanged(); + } else { + userList_ = null; + userListBuilder_ = null; + } + + return this; + } + /** + *
+     * Resource name of a user list as an operand.
+     * 
+ * + * .google.protobuf.StringValue user_list = 1; + */ + public com.google.protobuf.StringValue.Builder getUserListBuilder() { + + onChanged(); + return getUserListFieldBuilder().getBuilder(); + } + /** + *
+     * Resource name of a user list as an operand.
+     * 
+ * + * .google.protobuf.StringValue user_list = 1; + */ + public com.google.protobuf.StringValueOrBuilder getUserListOrBuilder() { + if (userListBuilder_ != null) { + return userListBuilder_.getMessageOrBuilder(); + } else { + return userList_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : userList_; + } + } + /** + *
+     * Resource name of a user list as an operand.
+     * 
+ * + * .google.protobuf.StringValue user_list = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getUserListFieldBuilder() { + if (userListBuilder_ == null) { + userListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getUserList(), + getParentForChildren(), + isClean()); + userList_ = null; + } + return userListBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.common.LogicalUserListOperandInfo) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.common.LogicalUserListOperandInfo) + private static final com.google.ads.googleads.v0.common.LogicalUserListOperandInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.common.LogicalUserListOperandInfo(); + } + + public static com.google.ads.googleads.v0.common.LogicalUserListOperandInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogicalUserListOperandInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LogicalUserListOperandInfo(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.common.LogicalUserListOperandInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/LogicalUserListOperandInfoOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/LogicalUserListOperandInfoOrBuilder.java new file mode 100644 index 0000000000..df3369e2d0 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/LogicalUserListOperandInfoOrBuilder.java @@ -0,0 +1,34 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/user_lists.proto + +package com.google.ads.googleads.v0.common; + +public interface LogicalUserListOperandInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.common.LogicalUserListOperandInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Resource name of a user list as an operand.
+   * 
+ * + * .google.protobuf.StringValue user_list = 1; + */ + boolean hasUserList(); + /** + *
+   * Resource name of a user list as an operand.
+   * 
+ * + * .google.protobuf.StringValue user_list = 1; + */ + com.google.protobuf.StringValue getUserList(); + /** + *
+   * Resource name of a user list as an operand.
+   * 
+ * + * .google.protobuf.StringValue user_list = 1; + */ + com.google.protobuf.StringValueOrBuilder getUserListOrBuilder(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/MatchingFunctionProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/MatchingFunctionProto.java index bd2e0705ba..6d3df20d19 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/common/MatchingFunctionProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/MatchingFunctionProto.java @@ -32,13 +32,14 @@ public static void registerAllExtensions( "g_function.proto\022\036google.ads.googleads.v" + "0.common\032\036google/protobuf/wrappers.proto" + "\"I\n\020MatchingFunction\0225\n\017function_string\030" + - "\001 \001(\0132\034.google.protobuf.StringValueB\313\001\n\"" + + "\001 \001(\0132\034.google.protobuf.StringValueB\360\001\n\"" + "com.google.ads.googleads.v0.commonB\025Matc" + "hingFunctionProtoP\001ZDgoogle.golang.org/g" + "enproto/googleapis/ads/googleads/v0/comm" + "on;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V" + "0.Common\312\002\036Google\\Ads\\GoogleAds\\V0\\Commo" + - "nb\006proto3" + "n\352\002\"Google::Ads::GoogleAds::V0::Commonb\006" + + "proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/Metrics.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/Metrics.java index 5f7a0e75d1..6c0607cff7 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/common/Metrics.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/Metrics.java @@ -20,6 +20,10 @@ private Metrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Metrics() { + historicalCreativeQualityScore_ = 0; + historicalLandingPageQualityScore_ = 0; + historicalSearchPredictedCtr_ = 0; + interactionEventTypes_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -37,6 +41,7 @@ private Metrics( } int mutable_bitField0_ = 0; int mutable_bitField1_ = 0; + int mutable_bitField2_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -47,6 +52,58 @@ private Metrics( case 0: done = true; break; + case 10: { + com.google.protobuf.DoubleValue.Builder subBuilder = null; + if (activeViewCpm_ != null) { + subBuilder = activeViewCpm_.toBuilder(); + } + activeViewCpm_ = input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(activeViewCpm_); + activeViewCpm_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.protobuf.Int64Value.Builder subBuilder = null; + if (activeViewImpressions_ != null) { + subBuilder = activeViewImpressions_.toBuilder(); + } + activeViewImpressions_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(activeViewImpressions_); + activeViewImpressions_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + com.google.protobuf.Int64Value.Builder subBuilder = null; + if (activeViewMeasurableCostMicros_ != null) { + subBuilder = activeViewMeasurableCostMicros_.toBuilder(); + } + activeViewMeasurableCostMicros_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(activeViewMeasurableCostMicros_); + activeViewMeasurableCostMicros_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + com.google.protobuf.Int64Value.Builder subBuilder = null; + if (activeViewMeasurableImpressions_ != null) { + subBuilder = activeViewMeasurableImpressions_.toBuilder(); + } + activeViewMeasurableImpressions_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(activeViewMeasurableImpressions_); + activeViewMeasurableImpressions_ = subBuilder.buildPartial(); + } + + break; + } case 58: { com.google.protobuf.DoubleValue.Builder subBuilder = null; if (allConversions_ != null) { @@ -112,6 +169,19 @@ private Metrics( break; } + case 98: { + com.google.protobuf.DoubleValue.Builder subBuilder = null; + if (averageFrequency_ != null) { + subBuilder = averageFrequency_.toBuilder(); + } + averageFrequency_ = input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(averageFrequency_); + averageFrequency_ = subBuilder.buildPartial(); + } + + break; + } case 106: { com.google.protobuf.DoubleValue.Builder subBuilder = null; if (averagePosition_ != null) { @@ -125,6 +195,19 @@ private Metrics( break; } + case 114: { + com.google.protobuf.DoubleValue.Builder subBuilder = null; + if (benchmarkAverageMaxCpc_ != null) { + subBuilder = benchmarkAverageMaxCpc_.toBuilder(); + } + benchmarkAverageMaxCpc_ = input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(benchmarkAverageMaxCpc_); + benchmarkAverageMaxCpc_ = subBuilder.buildPartial(); + } + + break; + } case 122: { com.google.protobuf.DoubleValue.Builder subBuilder = null; if (bounceRate_ != null) { @@ -281,6 +364,19 @@ private Metrics( break; } + case 290: { + com.google.protobuf.Int64Value.Builder subBuilder = null; + if (impressionReach_ != null) { + subBuilder = impressionReach_.toBuilder(); + } + impressionReach_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(impressionReach_); + impressionReach_ = subBuilder.buildPartial(); + } + + break; + } case 298: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (impressions_ != null) { @@ -424,6 +520,19 @@ private Metrics( break; } + case 386: { + com.google.protobuf.DoubleValue.Builder subBuilder = null; + if (searchClickShare_ != null) { + subBuilder = searchClickShare_.toBuilder(); + } + searchClickShare_ = input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(searchClickShare_); + searchClickShare_ = subBuilder.buildPartial(); + } + + break; + } case 394: { com.google.protobuf.DoubleValue.Builder subBuilder = null; if (searchExactMatchImpressionShare_ != null) { @@ -762,6 +871,359 @@ private Metrics( break; } + case 634: { + com.google.protobuf.DoubleValue.Builder subBuilder = null; + if (activeViewCtr_ != null) { + subBuilder = activeViewCtr_.toBuilder(); + } + activeViewCtr_ = input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(activeViewCtr_); + activeViewCtr_ = subBuilder.buildPartial(); + } + + break; + } + case 640: { + int rawValue = input.readEnum(); + + historicalCreativeQualityScore_ = rawValue; + break; + } + case 648: { + int rawValue = input.readEnum(); + + historicalLandingPageQualityScore_ = rawValue; + break; + } + case 658: { + com.google.protobuf.Int64Value.Builder subBuilder = null; + if (historicalQualityScore_ != null) { + subBuilder = historicalQualityScore_.toBuilder(); + } + historicalQualityScore_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(historicalQualityScore_); + historicalQualityScore_ = subBuilder.buildPartial(); + } + + break; + } + case 664: { + int rawValue = input.readEnum(); + + historicalSearchPredictedCtr_ = rawValue; + break; + } + case 674: { + com.google.protobuf.DoubleValue.Builder subBuilder = null; + if (averageTimeOnSite_ != null) { + subBuilder = averageTimeOnSite_.toBuilder(); + } + averageTimeOnSite_ = input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(averageTimeOnSite_); + averageTimeOnSite_ = subBuilder.buildPartial(); + } + + break; + } + case 682: { + com.google.protobuf.Int64Value.Builder subBuilder = null; + if (gmailForwards_ != null) { + subBuilder = gmailForwards_.toBuilder(); + } + gmailForwards_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gmailForwards_); + gmailForwards_ = subBuilder.buildPartial(); + } + + break; + } + case 690: { + com.google.protobuf.Int64Value.Builder subBuilder = null; + if (gmailSaves_ != null) { + subBuilder = gmailSaves_.toBuilder(); + } + gmailSaves_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gmailSaves_); + gmailSaves_ = subBuilder.buildPartial(); + } + + break; + } + case 698: { + com.google.protobuf.Int64Value.Builder subBuilder = null; + if (gmailSecondaryClicks_ != null) { + subBuilder = gmailSecondaryClicks_.toBuilder(); + } + gmailSecondaryClicks_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gmailSecondaryClicks_); + gmailSecondaryClicks_ = subBuilder.buildPartial(); + } + + break; + } + case 706: { + com.google.protobuf.DoubleValue.Builder subBuilder = null; + if (searchBudgetLostAbsoluteTopImpressionShare_ != null) { + subBuilder = searchBudgetLostAbsoluteTopImpressionShare_.toBuilder(); + } + searchBudgetLostAbsoluteTopImpressionShare_ = input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(searchBudgetLostAbsoluteTopImpressionShare_); + searchBudgetLostAbsoluteTopImpressionShare_ = subBuilder.buildPartial(); + } + + break; + } + case 714: { + com.google.protobuf.DoubleValue.Builder subBuilder = null; + if (searchBudgetLostTopImpressionShare_ != null) { + subBuilder = searchBudgetLostTopImpressionShare_.toBuilder(); + } + searchBudgetLostTopImpressionShare_ = input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(searchBudgetLostTopImpressionShare_); + searchBudgetLostTopImpressionShare_ = subBuilder.buildPartial(); + } + + break; + } + case 722: { + com.google.protobuf.DoubleValue.Builder subBuilder = null; + if (searchRankLostAbsoluteTopImpressionShare_ != null) { + subBuilder = searchRankLostAbsoluteTopImpressionShare_.toBuilder(); + } + searchRankLostAbsoluteTopImpressionShare_ = input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(searchRankLostAbsoluteTopImpressionShare_); + searchRankLostAbsoluteTopImpressionShare_ = subBuilder.buildPartial(); + } + + break; + } + case 730: { + com.google.protobuf.DoubleValue.Builder subBuilder = null; + if (searchRankLostTopImpressionShare_ != null) { + subBuilder = searchRankLostTopImpressionShare_.toBuilder(); + } + searchRankLostTopImpressionShare_ = input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(searchRankLostTopImpressionShare_); + searchRankLostTopImpressionShare_ = subBuilder.buildPartial(); + } + + break; + } + case 738: { + com.google.protobuf.DoubleValue.Builder subBuilder = null; + if (searchTopImpressionShare_ != null) { + subBuilder = searchTopImpressionShare_.toBuilder(); + } + searchTopImpressionShare_ = input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(searchTopImpressionShare_); + searchTopImpressionShare_ = subBuilder.buildPartial(); + } + + break; + } + case 746: { + com.google.protobuf.DoubleValue.Builder subBuilder = null; + if (topImpressionPercentage_ != null) { + subBuilder = topImpressionPercentage_.toBuilder(); + } + topImpressionPercentage_ = input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(topImpressionPercentage_); + topImpressionPercentage_ = subBuilder.buildPartial(); + } + + break; + } + case 754: { + com.google.protobuf.DoubleValue.Builder subBuilder = null; + if (valuePerCurrentModelAttributedConversion_ != null) { + subBuilder = valuePerCurrentModelAttributedConversion_.toBuilder(); + } + valuePerCurrentModelAttributedConversion_ = input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(valuePerCurrentModelAttributedConversion_); + valuePerCurrentModelAttributedConversion_ = subBuilder.buildPartial(); + } + + break; + } + case 762: { + com.google.protobuf.DoubleValue.Builder subBuilder = null; + if (absoluteTopImpressionPercentage_ != null) { + subBuilder = absoluteTopImpressionPercentage_.toBuilder(); + } + absoluteTopImpressionPercentage_ = input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(absoluteTopImpressionPercentage_); + absoluteTopImpressionPercentage_ = subBuilder.buildPartial(); + } + + break; + } + case 770: { + com.google.protobuf.DoubleValue.Builder subBuilder = null; + if (activeViewMeasurability_ != null) { + subBuilder = activeViewMeasurability_.toBuilder(); + } + activeViewMeasurability_ = input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(activeViewMeasurability_); + activeViewMeasurability_ = subBuilder.buildPartial(); + } + + break; + } + case 778: { + com.google.protobuf.DoubleValue.Builder subBuilder = null; + if (activeViewViewability_ != null) { + subBuilder = activeViewViewability_.toBuilder(); + } + activeViewViewability_ = input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(activeViewViewability_); + activeViewViewability_ = subBuilder.buildPartial(); + } + + break; + } + case 786: { + com.google.protobuf.DoubleValue.Builder subBuilder = null; + if (averageCpe_ != null) { + subBuilder = averageCpe_.toBuilder(); + } + averageCpe_ = input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(averageCpe_); + averageCpe_ = subBuilder.buildPartial(); + } + + break; + } + case 794: { + com.google.protobuf.DoubleValue.Builder subBuilder = null; + if (averagePageViews_ != null) { + subBuilder = averagePageViews_.toBuilder(); + } + averagePageViews_ = input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(averagePageViews_); + averagePageViews_ = subBuilder.buildPartial(); + } + + break; + } + case 800: { + int rawValue = input.readEnum(); + if (!((mutable_bitField1_ & 0x20000000) == 0x20000000)) { + interactionEventTypes_ = new java.util.ArrayList(); + mutable_bitField1_ |= 0x20000000; + } + interactionEventTypes_.add(rawValue); + break; + } + case 802: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField1_ & 0x20000000) == 0x20000000)) { + interactionEventTypes_ = new java.util.ArrayList(); + mutable_bitField1_ |= 0x20000000; + } + interactionEventTypes_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + case 810: { + com.google.protobuf.DoubleValue.Builder subBuilder = null; + if (currentModelAttributedConversions_ != null) { + subBuilder = currentModelAttributedConversions_.toBuilder(); + } + currentModelAttributedConversions_ = input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(currentModelAttributedConversions_); + currentModelAttributedConversions_ = subBuilder.buildPartial(); + } + + break; + } + case 818: { + com.google.protobuf.DoubleValue.Builder subBuilder = null; + if (currentModelAttributedConversionsFromInteractionsRate_ != null) { + subBuilder = currentModelAttributedConversionsFromInteractionsRate_.toBuilder(); + } + currentModelAttributedConversionsFromInteractionsRate_ = input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(currentModelAttributedConversionsFromInteractionsRate_); + currentModelAttributedConversionsFromInteractionsRate_ = subBuilder.buildPartial(); + } + + break; + } + case 826: { + com.google.protobuf.DoubleValue.Builder subBuilder = null; + if (currentModelAttributedConversionsFromInteractionsValuePerInteraction_ != null) { + subBuilder = currentModelAttributedConversionsFromInteractionsValuePerInteraction_.toBuilder(); + } + currentModelAttributedConversionsFromInteractionsValuePerInteraction_ = input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(currentModelAttributedConversionsFromInteractionsValuePerInteraction_); + currentModelAttributedConversionsFromInteractionsValuePerInteraction_ = subBuilder.buildPartial(); + } + + break; + } + case 834: { + com.google.protobuf.DoubleValue.Builder subBuilder = null; + if (currentModelAttributedConversionsValue_ != null) { + subBuilder = currentModelAttributedConversionsValue_.toBuilder(); + } + currentModelAttributedConversionsValue_ = input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(currentModelAttributedConversionsValue_); + currentModelAttributedConversionsValue_ = subBuilder.buildPartial(); + } + + break; + } + case 842: { + com.google.protobuf.DoubleValue.Builder subBuilder = null; + if (currentModelAttributedConversionsValuePerCost_ != null) { + subBuilder = currentModelAttributedConversionsValuePerCost_.toBuilder(); + } + currentModelAttributedConversionsValuePerCost_ = input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(currentModelAttributedConversionsValuePerCost_); + currentModelAttributedConversionsValuePerCost_ = subBuilder.buildPartial(); + } + + break; + } + case 850: { + com.google.protobuf.DoubleValue.Builder subBuilder = null; + if (costPerCurrentModelAttributedConversion_ != null) { + subBuilder = costPerCurrentModelAttributedConversion_.toBuilder(); + } + costPerCurrentModelAttributedConversion_ = input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(costPerCurrentModelAttributedConversion_); + costPerCurrentModelAttributedConversion_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -777,6 +1239,9 @@ private Metrics( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField1_ & 0x20000000) == 0x20000000)) { + interactionEventTypes_ = java.util.Collections.unmodifiableList(interactionEventTypes_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -794,39 +1259,327 @@ private Metrics( com.google.ads.googleads.v0.common.Metrics.class, com.google.ads.googleads.v0.common.Metrics.Builder.class); } - public static final int ALL_CONVERSIONS_FROM_INTERACTIONS_RATE_FIELD_NUMBER = 65; - private com.google.protobuf.DoubleValue allConversionsFromInteractionsRate_; + private int bitField0_; + private int bitField1_; + private int bitField2_; + public static final int ABSOLUTE_TOP_IMPRESSION_PERCENTAGE_FIELD_NUMBER = 95; + private com.google.protobuf.DoubleValue absoluteTopImpressionPercentage_; /** *
-   * All conversions from interactions (as oppose to view through conversions)
-   * divided by the number of ad interactions.
+   * The percent of your ad impressions that are shown as the very first ad
+   * above the organic search results.
    * 
* - * .google.protobuf.DoubleValue all_conversions_from_interactions_rate = 65; + * .google.protobuf.DoubleValue absolute_top_impression_percentage = 95; */ - public boolean hasAllConversionsFromInteractionsRate() { - return allConversionsFromInteractionsRate_ != null; + public boolean hasAbsoluteTopImpressionPercentage() { + return absoluteTopImpressionPercentage_ != null; } /** *
-   * All conversions from interactions (as oppose to view through conversions)
-   * divided by the number of ad interactions.
+   * The percent of your ad impressions that are shown as the very first ad
+   * above the organic search results.
    * 
* - * .google.protobuf.DoubleValue all_conversions_from_interactions_rate = 65; + * .google.protobuf.DoubleValue absolute_top_impression_percentage = 95; */ - public com.google.protobuf.DoubleValue getAllConversionsFromInteractionsRate() { - return allConversionsFromInteractionsRate_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : allConversionsFromInteractionsRate_; + public com.google.protobuf.DoubleValue getAbsoluteTopImpressionPercentage() { + return absoluteTopImpressionPercentage_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : absoluteTopImpressionPercentage_; } /** *
-   * All conversions from interactions (as oppose to view through conversions)
-   * divided by the number of ad interactions.
+   * The percent of your ad impressions that are shown as the very first ad
+   * above the organic search results.
    * 
* - * .google.protobuf.DoubleValue all_conversions_from_interactions_rate = 65; + * .google.protobuf.DoubleValue absolute_top_impression_percentage = 95; */ - public com.google.protobuf.DoubleValueOrBuilder getAllConversionsFromInteractionsRateOrBuilder() { + public com.google.protobuf.DoubleValueOrBuilder getAbsoluteTopImpressionPercentageOrBuilder() { + return getAbsoluteTopImpressionPercentage(); + } + + public static final int ACTIVE_VIEW_CPM_FIELD_NUMBER = 1; + private com.google.protobuf.DoubleValue activeViewCpm_; + /** + *
+   * Average cost of viewable impressions (`active_view_impressions`).
+   * 
+ * + * .google.protobuf.DoubleValue active_view_cpm = 1; + */ + public boolean hasActiveViewCpm() { + return activeViewCpm_ != null; + } + /** + *
+   * Average cost of viewable impressions (`active_view_impressions`).
+   * 
+ * + * .google.protobuf.DoubleValue active_view_cpm = 1; + */ + public com.google.protobuf.DoubleValue getActiveViewCpm() { + return activeViewCpm_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : activeViewCpm_; + } + /** + *
+   * Average cost of viewable impressions (`active_view_impressions`).
+   * 
+ * + * .google.protobuf.DoubleValue active_view_cpm = 1; + */ + public com.google.protobuf.DoubleValueOrBuilder getActiveViewCpmOrBuilder() { + return getActiveViewCpm(); + } + + public static final int ACTIVE_VIEW_CTR_FIELD_NUMBER = 79; + private com.google.protobuf.DoubleValue activeViewCtr_; + /** + *
+   * Active view measurable clicks divided by active view viewable impressions.
+   * This metric is reported only for display network.
+   * 
+ * + * .google.protobuf.DoubleValue active_view_ctr = 79; + */ + public boolean hasActiveViewCtr() { + return activeViewCtr_ != null; + } + /** + *
+   * Active view measurable clicks divided by active view viewable impressions.
+   * This metric is reported only for display network.
+   * 
+ * + * .google.protobuf.DoubleValue active_view_ctr = 79; + */ + public com.google.protobuf.DoubleValue getActiveViewCtr() { + return activeViewCtr_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : activeViewCtr_; + } + /** + *
+   * Active view measurable clicks divided by active view viewable impressions.
+   * This metric is reported only for display network.
+   * 
+ * + * .google.protobuf.DoubleValue active_view_ctr = 79; + */ + public com.google.protobuf.DoubleValueOrBuilder getActiveViewCtrOrBuilder() { + return getActiveViewCtr(); + } + + public static final int ACTIVE_VIEW_IMPRESSIONS_FIELD_NUMBER = 2; + private com.google.protobuf.Int64Value activeViewImpressions_; + /** + *
+   * A measurement of how often your ad has become viewable on a Display
+   * Network site.
+   * 
+ * + * .google.protobuf.Int64Value active_view_impressions = 2; + */ + public boolean hasActiveViewImpressions() { + return activeViewImpressions_ != null; + } + /** + *
+   * A measurement of how often your ad has become viewable on a Display
+   * Network site.
+   * 
+ * + * .google.protobuf.Int64Value active_view_impressions = 2; + */ + public com.google.protobuf.Int64Value getActiveViewImpressions() { + return activeViewImpressions_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : activeViewImpressions_; + } + /** + *
+   * A measurement of how often your ad has become viewable on a Display
+   * Network site.
+   * 
+ * + * .google.protobuf.Int64Value active_view_impressions = 2; + */ + public com.google.protobuf.Int64ValueOrBuilder getActiveViewImpressionsOrBuilder() { + return getActiveViewImpressions(); + } + + public static final int ACTIVE_VIEW_MEASURABILITY_FIELD_NUMBER = 96; + private com.google.protobuf.DoubleValue activeViewMeasurability_; + /** + *
+   * The ratio of impressions that could be measured by Active View over the
+   * number of served impressions.
+   * 
+ * + * .google.protobuf.DoubleValue active_view_measurability = 96; + */ + public boolean hasActiveViewMeasurability() { + return activeViewMeasurability_ != null; + } + /** + *
+   * The ratio of impressions that could be measured by Active View over the
+   * number of served impressions.
+   * 
+ * + * .google.protobuf.DoubleValue active_view_measurability = 96; + */ + public com.google.protobuf.DoubleValue getActiveViewMeasurability() { + return activeViewMeasurability_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : activeViewMeasurability_; + } + /** + *
+   * The ratio of impressions that could be measured by Active View over the
+   * number of served impressions.
+   * 
+ * + * .google.protobuf.DoubleValue active_view_measurability = 96; + */ + public com.google.protobuf.DoubleValueOrBuilder getActiveViewMeasurabilityOrBuilder() { + return getActiveViewMeasurability(); + } + + public static final int ACTIVE_VIEW_MEASURABLE_COST_MICROS_FIELD_NUMBER = 3; + private com.google.protobuf.Int64Value activeViewMeasurableCostMicros_; + /** + *
+   * The cost of the impressions you received that were measurable by Active
+   * View.
+   * 
+ * + * .google.protobuf.Int64Value active_view_measurable_cost_micros = 3; + */ + public boolean hasActiveViewMeasurableCostMicros() { + return activeViewMeasurableCostMicros_ != null; + } + /** + *
+   * The cost of the impressions you received that were measurable by Active
+   * View.
+   * 
+ * + * .google.protobuf.Int64Value active_view_measurable_cost_micros = 3; + */ + public com.google.protobuf.Int64Value getActiveViewMeasurableCostMicros() { + return activeViewMeasurableCostMicros_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : activeViewMeasurableCostMicros_; + } + /** + *
+   * The cost of the impressions you received that were measurable by Active
+   * View.
+   * 
+ * + * .google.protobuf.Int64Value active_view_measurable_cost_micros = 3; + */ + public com.google.protobuf.Int64ValueOrBuilder getActiveViewMeasurableCostMicrosOrBuilder() { + return getActiveViewMeasurableCostMicros(); + } + + public static final int ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_FIELD_NUMBER = 4; + private com.google.protobuf.Int64Value activeViewMeasurableImpressions_; + /** + *
+   * The number of times your ads are appearing on placements in positions
+   * where they can be seen.
+   * 
+ * + * .google.protobuf.Int64Value active_view_measurable_impressions = 4; + */ + public boolean hasActiveViewMeasurableImpressions() { + return activeViewMeasurableImpressions_ != null; + } + /** + *
+   * The number of times your ads are appearing on placements in positions
+   * where they can be seen.
+   * 
+ * + * .google.protobuf.Int64Value active_view_measurable_impressions = 4; + */ + public com.google.protobuf.Int64Value getActiveViewMeasurableImpressions() { + return activeViewMeasurableImpressions_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : activeViewMeasurableImpressions_; + } + /** + *
+   * The number of times your ads are appearing on placements in positions
+   * where they can be seen.
+   * 
+ * + * .google.protobuf.Int64Value active_view_measurable_impressions = 4; + */ + public com.google.protobuf.Int64ValueOrBuilder getActiveViewMeasurableImpressionsOrBuilder() { + return getActiveViewMeasurableImpressions(); + } + + public static final int ACTIVE_VIEW_VIEWABILITY_FIELD_NUMBER = 97; + private com.google.protobuf.DoubleValue activeViewViewability_; + /** + *
+   * The percentage of time when your ad appeared on an Active View enabled site
+   * (measurable impressions) and was viewable (viewable impressions).
+   * 
+ * + * .google.protobuf.DoubleValue active_view_viewability = 97; + */ + public boolean hasActiveViewViewability() { + return activeViewViewability_ != null; + } + /** + *
+   * The percentage of time when your ad appeared on an Active View enabled site
+   * (measurable impressions) and was viewable (viewable impressions).
+   * 
+ * + * .google.protobuf.DoubleValue active_view_viewability = 97; + */ + public com.google.protobuf.DoubleValue getActiveViewViewability() { + return activeViewViewability_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : activeViewViewability_; + } + /** + *
+   * The percentage of time when your ad appeared on an Active View enabled site
+   * (measurable impressions) and was viewable (viewable impressions).
+   * 
+ * + * .google.protobuf.DoubleValue active_view_viewability = 97; + */ + public com.google.protobuf.DoubleValueOrBuilder getActiveViewViewabilityOrBuilder() { + return getActiveViewViewability(); + } + + public static final int ALL_CONVERSIONS_FROM_INTERACTIONS_RATE_FIELD_NUMBER = 65; + private com.google.protobuf.DoubleValue allConversionsFromInteractionsRate_; + /** + *
+   * All conversions from interactions (as oppose to view through conversions)
+   * divided by the number of ad interactions.
+   * 
+ * + * .google.protobuf.DoubleValue all_conversions_from_interactions_rate = 65; + */ + public boolean hasAllConversionsFromInteractionsRate() { + return allConversionsFromInteractionsRate_ != null; + } + /** + *
+   * All conversions from interactions (as oppose to view through conversions)
+   * divided by the number of ad interactions.
+   * 
+ * + * .google.protobuf.DoubleValue all_conversions_from_interactions_rate = 65; + */ + public com.google.protobuf.DoubleValue getAllConversionsFromInteractionsRate() { + return allConversionsFromInteractionsRate_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : allConversionsFromInteractionsRate_; + } + /** + *
+   * All conversions from interactions (as oppose to view through conversions)
+   * divided by the number of ad interactions.
+   * 
+ * + * .google.protobuf.DoubleValue all_conversions_from_interactions_rate = 65; + */ + public com.google.protobuf.DoubleValueOrBuilder getAllConversionsFromInteractionsRateOrBuilder() { return getAllConversionsFromInteractionsRate(); } @@ -867,8 +1620,8 @@ public com.google.protobuf.DoubleValueOrBuilder getAllConversionsValueOrBuilder( private com.google.protobuf.DoubleValue allConversions_; /** *
-   * The total number of conversions. This includes "Conversions" plus
-   * conversions that have their "Include in Conversions" setting unchecked.
+   * The total number of conversions. This only includes conversion actions
+   * which include_in_conversions_metric attribute is set to true.
    * 
* * .google.protobuf.DoubleValue all_conversions = 7; @@ -878,8 +1631,8 @@ public boolean hasAllConversions() { } /** *
-   * The total number of conversions. This includes "Conversions" plus
-   * conversions that have their "Include in Conversions" setting unchecked.
+   * The total number of conversions. This only includes conversion actions
+   * which include_in_conversions_metric attribute is set to true.
    * 
* * .google.protobuf.DoubleValue all_conversions = 7; @@ -889,8 +1642,8 @@ public com.google.protobuf.DoubleValue getAllConversions() { } /** *
-   * The total number of conversions. This includes "Conversions" plus
-   * conversions that have their "Include in Conversions" setting unchecked.
+   * The total number of conversions. This only includes conversion actions
+   * which include_in_conversions_metric attribute is set to true.
    * 
* * .google.protobuf.DoubleValue all_conversions = 7; @@ -1043,6 +1796,45 @@ public com.google.protobuf.DoubleValueOrBuilder getAverageCpcOrBuilder() { return getAverageCpc(); } + public static final int AVERAGE_CPE_FIELD_NUMBER = 98; + private com.google.protobuf.DoubleValue averageCpe_; + /** + *
+   * The average amount that you've been charged for an ad engagement. This
+   * amount is the total cost of all ad engagements divided by the total number
+   * of ad engagements.
+   * 
+ * + * .google.protobuf.DoubleValue average_cpe = 98; + */ + public boolean hasAverageCpe() { + return averageCpe_ != null; + } + /** + *
+   * The average amount that you've been charged for an ad engagement. This
+   * amount is the total cost of all ad engagements divided by the total number
+   * of ad engagements.
+   * 
+ * + * .google.protobuf.DoubleValue average_cpe = 98; + */ + public com.google.protobuf.DoubleValue getAverageCpe() { + return averageCpe_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : averageCpe_; + } + /** + *
+   * The average amount that you've been charged for an ad engagement. This
+   * amount is the total cost of all ad engagements divided by the total number
+   * of ad engagements.
+   * 
+ * + * .google.protobuf.DoubleValue average_cpe = 98; + */ + public com.google.protobuf.DoubleValueOrBuilder getAverageCpeOrBuilder() { + return getAverageCpe(); + } + public static final int AVERAGE_CPM_FIELD_NUMBER = 10; private com.google.protobuf.DoubleValue averageCpm_; /** @@ -1115,6 +1907,75 @@ public com.google.protobuf.DoubleValueOrBuilder getAverageCpvOrBuilder() { return getAverageCpv(); } + public static final int AVERAGE_FREQUENCY_FIELD_NUMBER = 12; + private com.google.protobuf.DoubleValue averageFrequency_; + /** + *
+   * Average number of times a unique cookie was exposed to your ad
+   * over a given time period. Imported from Google Analytics.
+   * 
+ * + * .google.protobuf.DoubleValue average_frequency = 12; + */ + public boolean hasAverageFrequency() { + return averageFrequency_ != null; + } + /** + *
+   * Average number of times a unique cookie was exposed to your ad
+   * over a given time period. Imported from Google Analytics.
+   * 
+ * + * .google.protobuf.DoubleValue average_frequency = 12; + */ + public com.google.protobuf.DoubleValue getAverageFrequency() { + return averageFrequency_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : averageFrequency_; + } + /** + *
+   * Average number of times a unique cookie was exposed to your ad
+   * over a given time period. Imported from Google Analytics.
+   * 
+ * + * .google.protobuf.DoubleValue average_frequency = 12; + */ + public com.google.protobuf.DoubleValueOrBuilder getAverageFrequencyOrBuilder() { + return getAverageFrequency(); + } + + public static final int AVERAGE_PAGE_VIEWS_FIELD_NUMBER = 99; + private com.google.protobuf.DoubleValue averagePageViews_; + /** + *
+   * Average number of pages viewed per session.
+   * 
+ * + * .google.protobuf.DoubleValue average_page_views = 99; + */ + public boolean hasAveragePageViews() { + return averagePageViews_ != null; + } + /** + *
+   * Average number of pages viewed per session.
+   * 
+ * + * .google.protobuf.DoubleValue average_page_views = 99; + */ + public com.google.protobuf.DoubleValue getAveragePageViews() { + return averagePageViews_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : averagePageViews_; + } + /** + *
+   * Average number of pages viewed per session.
+   * 
+ * + * .google.protobuf.DoubleValue average_page_views = 99; + */ + public com.google.protobuf.DoubleValueOrBuilder getAveragePageViewsOrBuilder() { + return getAveragePageViews(); + } + public static final int AVERAGE_POSITION_FIELD_NUMBER = 13; private com.google.protobuf.DoubleValue averagePosition_; /** @@ -1148,70 +2009,139 @@ public com.google.protobuf.DoubleValueOrBuilder getAveragePositionOrBuilder() { return getAveragePosition(); } - public static final int BENCHMARK_CTR_FIELD_NUMBER = 77; - private com.google.protobuf.DoubleValue benchmarkCtr_; + public static final int AVERAGE_TIME_ON_SITE_FIELD_NUMBER = 84; + private com.google.protobuf.DoubleValue averageTimeOnSite_; /** *
-   * An indication on how other advertisers' Shopping ads for similar products
-   * are performing based on how often people who see their ad click on it.
+   * Total duration of all sessions (in seconds) / number of sessions. Imported
+   * from Google Analytics.
    * 
* - * .google.protobuf.DoubleValue benchmark_ctr = 77; + * .google.protobuf.DoubleValue average_time_on_site = 84; */ - public boolean hasBenchmarkCtr() { - return benchmarkCtr_ != null; + public boolean hasAverageTimeOnSite() { + return averageTimeOnSite_ != null; } /** *
-   * An indication on how other advertisers' Shopping ads for similar products
-   * are performing based on how often people who see their ad click on it.
+   * Total duration of all sessions (in seconds) / number of sessions. Imported
+   * from Google Analytics.
    * 
* - * .google.protobuf.DoubleValue benchmark_ctr = 77; + * .google.protobuf.DoubleValue average_time_on_site = 84; */ - public com.google.protobuf.DoubleValue getBenchmarkCtr() { - return benchmarkCtr_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : benchmarkCtr_; + public com.google.protobuf.DoubleValue getAverageTimeOnSite() { + return averageTimeOnSite_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : averageTimeOnSite_; } /** *
-   * An indication on how other advertisers' Shopping ads for similar products
-   * are performing based on how often people who see their ad click on it.
+   * Total duration of all sessions (in seconds) / number of sessions. Imported
+   * from Google Analytics.
    * 
* - * .google.protobuf.DoubleValue benchmark_ctr = 77; + * .google.protobuf.DoubleValue average_time_on_site = 84; */ - public com.google.protobuf.DoubleValueOrBuilder getBenchmarkCtrOrBuilder() { - return getBenchmarkCtr(); + public com.google.protobuf.DoubleValueOrBuilder getAverageTimeOnSiteOrBuilder() { + return getAverageTimeOnSite(); } - public static final int BOUNCE_RATE_FIELD_NUMBER = 15; - private com.google.protobuf.DoubleValue bounceRate_; + public static final int BENCHMARK_AVERAGE_MAX_CPC_FIELD_NUMBER = 14; + private com.google.protobuf.DoubleValue benchmarkAverageMaxCpc_; /** *
-   * Percentage of clicks where the user only visited a single page on your
-   * site. Imported from Google Analytics.
+   * An indication of how other advertisers are bidding on similar products.
    * 
* - * .google.protobuf.DoubleValue bounce_rate = 15; + * .google.protobuf.DoubleValue benchmark_average_max_cpc = 14; */ - public boolean hasBounceRate() { - return bounceRate_ != null; + public boolean hasBenchmarkAverageMaxCpc() { + return benchmarkAverageMaxCpc_ != null; } /** *
-   * Percentage of clicks where the user only visited a single page on your
-   * site. Imported from Google Analytics.
+   * An indication of how other advertisers are bidding on similar products.
    * 
* - * .google.protobuf.DoubleValue bounce_rate = 15; + * .google.protobuf.DoubleValue benchmark_average_max_cpc = 14; */ - public com.google.protobuf.DoubleValue getBounceRate() { - return bounceRate_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : bounceRate_; + public com.google.protobuf.DoubleValue getBenchmarkAverageMaxCpc() { + return benchmarkAverageMaxCpc_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : benchmarkAverageMaxCpc_; } /** *
-   * Percentage of clicks where the user only visited a single page on your
-   * site. Imported from Google Analytics.
+   * An indication of how other advertisers are bidding on similar products.
+   * 
+ * + * .google.protobuf.DoubleValue benchmark_average_max_cpc = 14; + */ + public com.google.protobuf.DoubleValueOrBuilder getBenchmarkAverageMaxCpcOrBuilder() { + return getBenchmarkAverageMaxCpc(); + } + + public static final int BENCHMARK_CTR_FIELD_NUMBER = 77; + private com.google.protobuf.DoubleValue benchmarkCtr_; + /** + *
+   * An indication on how other advertisers' Shopping ads for similar products
+   * are performing based on how often people who see their ad click on it.
+   * 
+ * + * .google.protobuf.DoubleValue benchmark_ctr = 77; + */ + public boolean hasBenchmarkCtr() { + return benchmarkCtr_ != null; + } + /** + *
+   * An indication on how other advertisers' Shopping ads for similar products
+   * are performing based on how often people who see their ad click on it.
+   * 
+ * + * .google.protobuf.DoubleValue benchmark_ctr = 77; + */ + public com.google.protobuf.DoubleValue getBenchmarkCtr() { + return benchmarkCtr_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : benchmarkCtr_; + } + /** + *
+   * An indication on how other advertisers' Shopping ads for similar products
+   * are performing based on how often people who see their ad click on it.
+   * 
+ * + * .google.protobuf.DoubleValue benchmark_ctr = 77; + */ + public com.google.protobuf.DoubleValueOrBuilder getBenchmarkCtrOrBuilder() { + return getBenchmarkCtr(); + } + + public static final int BOUNCE_RATE_FIELD_NUMBER = 15; + private com.google.protobuf.DoubleValue bounceRate_; + /** + *
+   * Percentage of clicks where the user only visited a single page on your
+   * site. Imported from Google Analytics.
+   * 
+ * + * .google.protobuf.DoubleValue bounce_rate = 15; + */ + public boolean hasBounceRate() { + return bounceRate_ != null; + } + /** + *
+   * Percentage of clicks where the user only visited a single page on your
+   * site. Imported from Google Analytics.
+   * 
+ * + * .google.protobuf.DoubleValue bounce_rate = 15; + */ + public com.google.protobuf.DoubleValue getBounceRate() { + return bounceRate_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : bounceRate_; + } + /** + *
+   * Percentage of clicks where the user only visited a single page on your
+   * site. Imported from Google Analytics.
    * 
* * .google.protobuf.DoubleValue bounce_rate = 15; @@ -1465,7 +2395,9 @@ public com.google.protobuf.DoubleValueOrBuilder getContentRankLostImpressionShar /** *
    * Conversions from interactions divided by the number of ad interactions
-   * (such as clicks for text ads or views for video ads).
+   * (such as clicks for text ads or views for video ads). This only includes
+   * conversion actions which include_in_conversions_metric attribute is set to
+   * true.
    * 
* * .google.protobuf.DoubleValue conversions_from_interactions_rate = 69; @@ -1476,7 +2408,9 @@ public boolean hasConversionsFromInteractionsRate() { /** *
    * Conversions from interactions divided by the number of ad interactions
-   * (such as clicks for text ads or views for video ads).
+   * (such as clicks for text ads or views for video ads). This only includes
+   * conversion actions which include_in_conversions_metric attribute is set to
+   * true.
    * 
* * .google.protobuf.DoubleValue conversions_from_interactions_rate = 69; @@ -1487,7 +2421,9 @@ public com.google.protobuf.DoubleValue getConversionsFromInteractionsRate() { /** *
    * Conversions from interactions divided by the number of ad interactions
-   * (such as clicks for text ads or views for video ads).
+   * (such as clicks for text ads or views for video ads). This only includes
+   * conversion actions which include_in_conversions_metric attribute is set to
+   * true.
    * 
* * .google.protobuf.DoubleValue conversions_from_interactions_rate = 69; @@ -1500,7 +2436,8 @@ public com.google.protobuf.DoubleValueOrBuilder getConversionsFromInteractionsRa private com.google.protobuf.DoubleValue conversionsValue_; /** *
-   * The total value of conversions.
+   * The total value of conversions. This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
    * 
* * .google.protobuf.DoubleValue conversions_value = 70; @@ -1510,7 +2447,8 @@ public boolean hasConversionsValue() { } /** *
-   * The total value of conversions.
+   * The total value of conversions. This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
    * 
* * .google.protobuf.DoubleValue conversions_value = 70; @@ -1520,7 +2458,8 @@ public com.google.protobuf.DoubleValue getConversionsValue() { } /** *
-   * The total value of conversions.
+   * The total value of conversions. This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
    * 
* * .google.protobuf.DoubleValue conversions_value = 70; @@ -1533,7 +2472,9 @@ public com.google.protobuf.DoubleValueOrBuilder getConversionsValueOrBuilder() { private com.google.protobuf.DoubleValue conversionsValuePerCost_; /** *
-   * The value of conversions divided by the cost of ad interactions.
+   * The value of conversions divided by the cost of ad interactions. This only
+   * includes conversion actions which include_in_conversions_metric attribute
+   * is set to true.
    * 
* * .google.protobuf.DoubleValue conversions_value_per_cost = 71; @@ -1543,7 +2484,9 @@ public boolean hasConversionsValuePerCost() { } /** *
-   * The value of conversions divided by the cost of ad interactions.
+   * The value of conversions divided by the cost of ad interactions. This only
+   * includes conversion actions which include_in_conversions_metric attribute
+   * is set to true.
    * 
* * .google.protobuf.DoubleValue conversions_value_per_cost = 71; @@ -1553,7 +2496,9 @@ public com.google.protobuf.DoubleValue getConversionsValuePerCost() { } /** *
-   * The value of conversions divided by the cost of ad interactions.
+   * The value of conversions divided by the cost of ad interactions. This only
+   * includes conversion actions which include_in_conversions_metric attribute
+   * is set to true.
    * 
* * .google.protobuf.DoubleValue conversions_value_per_cost = 71; @@ -1567,7 +2512,8 @@ public com.google.protobuf.DoubleValueOrBuilder getConversionsValuePerCostOrBuil /** *
    * The value of conversions from interactions divided by the number of ad
-   * interactions.
+   * interactions. This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
    * 
* * .google.protobuf.DoubleValue conversions_from_interactions_value_per_interaction = 72; @@ -1578,7 +2524,8 @@ public boolean hasConversionsFromInteractionsValuePerInteraction() { /** *
    * The value of conversions from interactions divided by the number of ad
-   * interactions.
+   * interactions. This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
    * 
* * .google.protobuf.DoubleValue conversions_from_interactions_value_per_interaction = 72; @@ -1589,7 +2536,8 @@ public com.google.protobuf.DoubleValue getConversionsFromInteractionsValuePerInt /** *
    * The value of conversions from interactions divided by the number of ad
-   * interactions.
+   * interactions. This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
    * 
* * .google.protobuf.DoubleValue conversions_from_interactions_value_per_interaction = 72; @@ -1602,8 +2550,8 @@ public com.google.protobuf.DoubleValueOrBuilder getConversionsFromInteractionsVa private com.google.protobuf.DoubleValue conversions_; /** *
-   * The number of conversions. This only includes conversion actions which have
-   * "Include in Conversions" checked.
+   * The number of conversions. This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
    * 
* * .google.protobuf.DoubleValue conversions = 25; @@ -1613,8 +2561,8 @@ public boolean hasConversions() { } /** *
-   * The number of conversions. This only includes conversion actions which have
-   * "Include in Conversions" checked.
+   * The number of conversions. This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
    * 
* * .google.protobuf.DoubleValue conversions = 25; @@ -1624,8 +2572,8 @@ public com.google.protobuf.DoubleValue getConversions() { } /** *
-   * The number of conversions. This only includes conversion actions which have
-   * "Include in Conversions" checked.
+   * The number of conversions. This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
    * 
* * .google.protobuf.DoubleValue conversions = 25; @@ -1707,7 +2655,9 @@ public com.google.protobuf.DoubleValueOrBuilder getCostPerAllConversionsOrBuilde private com.google.protobuf.DoubleValue costPerConversion_; /** *
-   * The cost of ad interactions divided by conversions.
+   * The cost of ad interactions divided by conversions. This only includes
+   * conversion actions which include_in_conversions_metric attribute is set to
+   * true.
    * 
* * .google.protobuf.DoubleValue cost_per_conversion = 28; @@ -1717,7 +2667,9 @@ public boolean hasCostPerConversion() { } /** *
-   * The cost of ad interactions divided by conversions.
+   * The cost of ad interactions divided by conversions. This only includes
+   * conversion actions which include_in_conversions_metric attribute is set to
+   * true.
    * 
* * .google.protobuf.DoubleValue cost_per_conversion = 28; @@ -1727,7 +2679,9 @@ public com.google.protobuf.DoubleValue getCostPerConversion() { } /** *
-   * The cost of ad interactions divided by conversions.
+   * The cost of ad interactions divided by conversions. This only includes
+   * conversion actions which include_in_conversions_metric attribute is set to
+   * true.
    * 
* * .google.protobuf.DoubleValue cost_per_conversion = 28; @@ -1736,6 +2690,45 @@ public com.google.protobuf.DoubleValueOrBuilder getCostPerConversionOrBuilder() return getCostPerConversion(); } + public static final int COST_PER_CURRENT_MODEL_ATTRIBUTED_CONVERSION_FIELD_NUMBER = 106; + private com.google.protobuf.DoubleValue costPerCurrentModelAttributedConversion_; + /** + *
+   * The cost of ad interactions divided by current model attributed
+   * conversions. This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
+   * 
+ * + * .google.protobuf.DoubleValue cost_per_current_model_attributed_conversion = 106; + */ + public boolean hasCostPerCurrentModelAttributedConversion() { + return costPerCurrentModelAttributedConversion_ != null; + } + /** + *
+   * The cost of ad interactions divided by current model attributed
+   * conversions. This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
+   * 
+ * + * .google.protobuf.DoubleValue cost_per_current_model_attributed_conversion = 106; + */ + public com.google.protobuf.DoubleValue getCostPerCurrentModelAttributedConversion() { + return costPerCurrentModelAttributedConversion_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : costPerCurrentModelAttributedConversion_; + } + /** + *
+   * The cost of ad interactions divided by current model attributed
+   * conversions. This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
+   * 
+ * + * .google.protobuf.DoubleValue cost_per_current_model_attributed_conversion = 106; + */ + public com.google.protobuf.DoubleValueOrBuilder getCostPerCurrentModelAttributedConversionOrBuilder() { + return getCostPerCurrentModelAttributedConversion(); + } + public static final int CROSS_DEVICE_CONVERSIONS_FIELD_NUMBER = 29; private com.google.protobuf.DoubleValue crossDeviceConversions_; /** @@ -1811,6 +2804,204 @@ public com.google.protobuf.DoubleValueOrBuilder getCtrOrBuilder() { return getCtr(); } + public static final int CURRENT_MODEL_ATTRIBUTED_CONVERSIONS_FIELD_NUMBER = 101; + private com.google.protobuf.DoubleValue currentModelAttributedConversions_; + /** + *
+   * Shows how your historic conversions data would look under the attribution
+   * model you've currently selected. This only includes conversion actions
+   * which include_in_conversions_metric attribute is set to true.
+   * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions = 101; + */ + public boolean hasCurrentModelAttributedConversions() { + return currentModelAttributedConversions_ != null; + } + /** + *
+   * Shows how your historic conversions data would look under the attribution
+   * model you've currently selected. This only includes conversion actions
+   * which include_in_conversions_metric attribute is set to true.
+   * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions = 101; + */ + public com.google.protobuf.DoubleValue getCurrentModelAttributedConversions() { + return currentModelAttributedConversions_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : currentModelAttributedConversions_; + } + /** + *
+   * Shows how your historic conversions data would look under the attribution
+   * model you've currently selected. This only includes conversion actions
+   * which include_in_conversions_metric attribute is set to true.
+   * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions = 101; + */ + public com.google.protobuf.DoubleValueOrBuilder getCurrentModelAttributedConversionsOrBuilder() { + return getCurrentModelAttributedConversions(); + } + + public static final int CURRENT_MODEL_ATTRIBUTED_CONVERSIONS_FROM_INTERACTIONS_RATE_FIELD_NUMBER = 102; + private com.google.protobuf.DoubleValue currentModelAttributedConversionsFromInteractionsRate_; + /** + *
+   * Current model attributed conversions from interactions divided by the
+   * number of ad interactions (such as clicks for text ads or views for video
+   * ads). This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
+   * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_from_interactions_rate = 102; + */ + public boolean hasCurrentModelAttributedConversionsFromInteractionsRate() { + return currentModelAttributedConversionsFromInteractionsRate_ != null; + } + /** + *
+   * Current model attributed conversions from interactions divided by the
+   * number of ad interactions (such as clicks for text ads or views for video
+   * ads). This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
+   * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_from_interactions_rate = 102; + */ + public com.google.protobuf.DoubleValue getCurrentModelAttributedConversionsFromInteractionsRate() { + return currentModelAttributedConversionsFromInteractionsRate_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : currentModelAttributedConversionsFromInteractionsRate_; + } + /** + *
+   * Current model attributed conversions from interactions divided by the
+   * number of ad interactions (such as clicks for text ads or views for video
+   * ads). This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
+   * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_from_interactions_rate = 102; + */ + public com.google.protobuf.DoubleValueOrBuilder getCurrentModelAttributedConversionsFromInteractionsRateOrBuilder() { + return getCurrentModelAttributedConversionsFromInteractionsRate(); + } + + public static final int CURRENT_MODEL_ATTRIBUTED_CONVERSIONS_FROM_INTERACTIONS_VALUE_PER_INTERACTION_FIELD_NUMBER = 103; + private com.google.protobuf.DoubleValue currentModelAttributedConversionsFromInteractionsValuePerInteraction_; + /** + *
+   * The value of current model attributed conversions from interactions divided
+   * by the number of ad interactions. This only includes conversion actions
+   * which include_in_conversions_metric attribute is set to true.
+   * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_from_interactions_value_per_interaction = 103; + */ + public boolean hasCurrentModelAttributedConversionsFromInteractionsValuePerInteraction() { + return currentModelAttributedConversionsFromInteractionsValuePerInteraction_ != null; + } + /** + *
+   * The value of current model attributed conversions from interactions divided
+   * by the number of ad interactions. This only includes conversion actions
+   * which include_in_conversions_metric attribute is set to true.
+   * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_from_interactions_value_per_interaction = 103; + */ + public com.google.protobuf.DoubleValue getCurrentModelAttributedConversionsFromInteractionsValuePerInteraction() { + return currentModelAttributedConversionsFromInteractionsValuePerInteraction_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : currentModelAttributedConversionsFromInteractionsValuePerInteraction_; + } + /** + *
+   * The value of current model attributed conversions from interactions divided
+   * by the number of ad interactions. This only includes conversion actions
+   * which include_in_conversions_metric attribute is set to true.
+   * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_from_interactions_value_per_interaction = 103; + */ + public com.google.protobuf.DoubleValueOrBuilder getCurrentModelAttributedConversionsFromInteractionsValuePerInteractionOrBuilder() { + return getCurrentModelAttributedConversionsFromInteractionsValuePerInteraction(); + } + + public static final int CURRENT_MODEL_ATTRIBUTED_CONVERSIONS_VALUE_FIELD_NUMBER = 104; + private com.google.protobuf.DoubleValue currentModelAttributedConversionsValue_; + /** + *
+   * The total value of current model attributed conversions. This only includes
+   * conversion actions which include_in_conversions_metric attribute is set to
+   * true.
+   * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_value = 104; + */ + public boolean hasCurrentModelAttributedConversionsValue() { + return currentModelAttributedConversionsValue_ != null; + } + /** + *
+   * The total value of current model attributed conversions. This only includes
+   * conversion actions which include_in_conversions_metric attribute is set to
+   * true.
+   * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_value = 104; + */ + public com.google.protobuf.DoubleValue getCurrentModelAttributedConversionsValue() { + return currentModelAttributedConversionsValue_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : currentModelAttributedConversionsValue_; + } + /** + *
+   * The total value of current model attributed conversions. This only includes
+   * conversion actions which include_in_conversions_metric attribute is set to
+   * true.
+   * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_value = 104; + */ + public com.google.protobuf.DoubleValueOrBuilder getCurrentModelAttributedConversionsValueOrBuilder() { + return getCurrentModelAttributedConversionsValue(); + } + + public static final int CURRENT_MODEL_ATTRIBUTED_CONVERSIONS_VALUE_PER_COST_FIELD_NUMBER = 105; + private com.google.protobuf.DoubleValue currentModelAttributedConversionsValuePerCost_; + /** + *
+   * The value of current model attributed conversions divided by the cost of ad
+   * interactions. This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
+   * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_value_per_cost = 105; + */ + public boolean hasCurrentModelAttributedConversionsValuePerCost() { + return currentModelAttributedConversionsValuePerCost_ != null; + } + /** + *
+   * The value of current model attributed conversions divided by the cost of ad
+   * interactions. This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
+   * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_value_per_cost = 105; + */ + public com.google.protobuf.DoubleValue getCurrentModelAttributedConversionsValuePerCost() { + return currentModelAttributedConversionsValuePerCost_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : currentModelAttributedConversionsValuePerCost_; + } + /** + *
+   * The value of current model attributed conversions divided by the cost of ad
+   * interactions. This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
+   * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_value_per_cost = 105; + */ + public com.google.protobuf.DoubleValueOrBuilder getCurrentModelAttributedConversionsValuePerCostOrBuilder() { + return getCurrentModelAttributedConversionsValuePerCost(); + } + public static final int ENGAGEMENT_RATE_FIELD_NUMBER = 31; private com.google.protobuf.DoubleValue engagementRate_; /** @@ -1919,136 +3110,451 @@ public com.google.protobuf.DoubleValueOrBuilder getHotelAverageLeadValueMicrosOr return getHotelAverageLeadValueMicros(); } - public static final int IMPRESSIONS_FIELD_NUMBER = 37; - private com.google.protobuf.Int64Value impressions_; + public static final int HISTORICAL_CREATIVE_QUALITY_SCORE_FIELD_NUMBER = 80; + private int historicalCreativeQualityScore_; /** *
-   * Count of how often your ad has appeared on a search results page or
-   * website on the Google Network.
+   * The creative historical quality score.
    * 
* - * .google.protobuf.Int64Value impressions = 37; + * .google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket historical_creative_quality_score = 80; */ - public boolean hasImpressions() { - return impressions_ != null; + public int getHistoricalCreativeQualityScoreValue() { + return historicalCreativeQualityScore_; } /** *
-   * Count of how often your ad has appeared on a search results page or
-   * website on the Google Network.
+   * The creative historical quality score.
    * 
* - * .google.protobuf.Int64Value impressions = 37; + * .google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket historical_creative_quality_score = 80; */ - public com.google.protobuf.Int64Value getImpressions() { - return impressions_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : impressions_; + public com.google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket getHistoricalCreativeQualityScore() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket result = com.google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket.valueOf(historicalCreativeQualityScore_); + return result == null ? com.google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket.UNRECOGNIZED : result; } + + public static final int HISTORICAL_LANDING_PAGE_QUALITY_SCORE_FIELD_NUMBER = 81; + private int historicalLandingPageQualityScore_; /** *
-   * Count of how often your ad has appeared on a search results page or
-   * website on the Google Network.
+   * The quality of historical landing page experience.
    * 
* - * .google.protobuf.Int64Value impressions = 37; + * .google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket historical_landing_page_quality_score = 81; */ - public com.google.protobuf.Int64ValueOrBuilder getImpressionsOrBuilder() { - return getImpressions(); + public int getHistoricalLandingPageQualityScoreValue() { + return historicalLandingPageQualityScore_; } - - public static final int INTERACTION_RATE_FIELD_NUMBER = 38; - private com.google.protobuf.DoubleValue interactionRate_; /** *
-   * How often people interact with your ad after it is shown to them.
-   * This is the number of interactions divided by the number of times your ad
-   * is shown.
+   * The quality of historical landing page experience.
    * 
* - * .google.protobuf.DoubleValue interaction_rate = 38; + * .google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket historical_landing_page_quality_score = 81; */ - public boolean hasInteractionRate() { - return interactionRate_ != null; + public com.google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket getHistoricalLandingPageQualityScore() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket result = com.google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket.valueOf(historicalLandingPageQualityScore_); + return result == null ? com.google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket.UNRECOGNIZED : result; } + + public static final int HISTORICAL_QUALITY_SCORE_FIELD_NUMBER = 82; + private com.google.protobuf.Int64Value historicalQualityScore_; /** *
-   * How often people interact with your ad after it is shown to them.
-   * This is the number of interactions divided by the number of times your ad
-   * is shown.
+   * The historical quality score.
    * 
* - * .google.protobuf.DoubleValue interaction_rate = 38; + * .google.protobuf.Int64Value historical_quality_score = 82; */ - public com.google.protobuf.DoubleValue getInteractionRate() { - return interactionRate_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : interactionRate_; + public boolean hasHistoricalQualityScore() { + return historicalQualityScore_ != null; } /** *
-   * How often people interact with your ad after it is shown to them.
-   * This is the number of interactions divided by the number of times your ad
-   * is shown.
+   * The historical quality score.
    * 
* - * .google.protobuf.DoubleValue interaction_rate = 38; + * .google.protobuf.Int64Value historical_quality_score = 82; */ - public com.google.protobuf.DoubleValueOrBuilder getInteractionRateOrBuilder() { - return getInteractionRate(); + public com.google.protobuf.Int64Value getHistoricalQualityScore() { + return historicalQualityScore_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : historicalQualityScore_; } - - public static final int INTERACTIONS_FIELD_NUMBER = 39; - private com.google.protobuf.Int64Value interactions_; /** *
-   * The number of interactions.
-   * An interaction is the main user action associated with an ad format-clicks
-   * for text and shopping ads, views for video ads, and so on.
+   * The historical quality score.
    * 
* - * .google.protobuf.Int64Value interactions = 39; + * .google.protobuf.Int64Value historical_quality_score = 82; */ - public boolean hasInteractions() { - return interactions_ != null; + public com.google.protobuf.Int64ValueOrBuilder getHistoricalQualityScoreOrBuilder() { + return getHistoricalQualityScore(); } + + public static final int HISTORICAL_SEARCH_PREDICTED_CTR_FIELD_NUMBER = 83; + private int historicalSearchPredictedCtr_; /** *
-   * The number of interactions.
-   * An interaction is the main user action associated with an ad format-clicks
-   * for text and shopping ads, views for video ads, and so on.
+   * The historical search predicted click through rate (CTR).
    * 
* - * .google.protobuf.Int64Value interactions = 39; + * .google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket historical_search_predicted_ctr = 83; */ - public com.google.protobuf.Int64Value getInteractions() { - return interactions_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : interactions_; + public int getHistoricalSearchPredictedCtrValue() { + return historicalSearchPredictedCtr_; } /** *
-   * The number of interactions.
-   * An interaction is the main user action associated with an ad format-clicks
-   * for text and shopping ads, views for video ads, and so on.
+   * The historical search predicted click through rate (CTR).
    * 
* - * .google.protobuf.Int64Value interactions = 39; + * .google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket historical_search_predicted_ctr = 83; */ - public com.google.protobuf.Int64ValueOrBuilder getInteractionsOrBuilder() { - return getInteractions(); + public com.google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket getHistoricalSearchPredictedCtr() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket result = com.google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket.valueOf(historicalSearchPredictedCtr_); + return result == null ? com.google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket.UNRECOGNIZED : result; } - public static final int INVALID_CLICK_RATE_FIELD_NUMBER = 40; - private com.google.protobuf.DoubleValue invalidClickRate_; + public static final int GMAIL_FORWARDS_FIELD_NUMBER = 85; + private com.google.protobuf.Int64Value gmailForwards_; /** *
-   * The percentage of clicks filtered out of your total number of clicks
-   * (filtered + non-filtered clicks) during the reporting period.
+   * The number of times the ad was forwarded to someone else as a message.
    * 
* - * .google.protobuf.DoubleValue invalid_click_rate = 40; + * .google.protobuf.Int64Value gmail_forwards = 85; */ - public boolean hasInvalidClickRate() { - return invalidClickRate_ != null; + public boolean hasGmailForwards() { + return gmailForwards_ != null; } /** *
-   * The percentage of clicks filtered out of your total number of clicks
+   * The number of times the ad was forwarded to someone else as a message.
+   * 
+ * + * .google.protobuf.Int64Value gmail_forwards = 85; + */ + public com.google.protobuf.Int64Value getGmailForwards() { + return gmailForwards_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : gmailForwards_; + } + /** + *
+   * The number of times the ad was forwarded to someone else as a message.
+   * 
+ * + * .google.protobuf.Int64Value gmail_forwards = 85; + */ + public com.google.protobuf.Int64ValueOrBuilder getGmailForwardsOrBuilder() { + return getGmailForwards(); + } + + public static final int GMAIL_SAVES_FIELD_NUMBER = 86; + private com.google.protobuf.Int64Value gmailSaves_; + /** + *
+   * The number of times someone has saved your Gmail ad to their inbox as a
+   * message.
+   * 
+ * + * .google.protobuf.Int64Value gmail_saves = 86; + */ + public boolean hasGmailSaves() { + return gmailSaves_ != null; + } + /** + *
+   * The number of times someone has saved your Gmail ad to their inbox as a
+   * message.
+   * 
+ * + * .google.protobuf.Int64Value gmail_saves = 86; + */ + public com.google.protobuf.Int64Value getGmailSaves() { + return gmailSaves_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : gmailSaves_; + } + /** + *
+   * The number of times someone has saved your Gmail ad to their inbox as a
+   * message.
+   * 
+ * + * .google.protobuf.Int64Value gmail_saves = 86; + */ + public com.google.protobuf.Int64ValueOrBuilder getGmailSavesOrBuilder() { + return getGmailSaves(); + } + + public static final int GMAIL_SECONDARY_CLICKS_FIELD_NUMBER = 87; + private com.google.protobuf.Int64Value gmailSecondaryClicks_; + /** + *
+   * The number of clicks to the landing page on the expanded state of Gmail
+   * ads.
+   * 
+ * + * .google.protobuf.Int64Value gmail_secondary_clicks = 87; + */ + public boolean hasGmailSecondaryClicks() { + return gmailSecondaryClicks_ != null; + } + /** + *
+   * The number of clicks to the landing page on the expanded state of Gmail
+   * ads.
+   * 
+ * + * .google.protobuf.Int64Value gmail_secondary_clicks = 87; + */ + public com.google.protobuf.Int64Value getGmailSecondaryClicks() { + return gmailSecondaryClicks_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : gmailSecondaryClicks_; + } + /** + *
+   * The number of clicks to the landing page on the expanded state of Gmail
+   * ads.
+   * 
+ * + * .google.protobuf.Int64Value gmail_secondary_clicks = 87; + */ + public com.google.protobuf.Int64ValueOrBuilder getGmailSecondaryClicksOrBuilder() { + return getGmailSecondaryClicks(); + } + + public static final int IMPRESSION_REACH_FIELD_NUMBER = 36; + private com.google.protobuf.Int64Value impressionReach_; + /** + *
+   * Number of unique cookies that were exposed to your ad over a given time
+   * period.
+   * 
+ * + * .google.protobuf.Int64Value impression_reach = 36; + */ + public boolean hasImpressionReach() { + return impressionReach_ != null; + } + /** + *
+   * Number of unique cookies that were exposed to your ad over a given time
+   * period.
+   * 
+ * + * .google.protobuf.Int64Value impression_reach = 36; + */ + public com.google.protobuf.Int64Value getImpressionReach() { + return impressionReach_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : impressionReach_; + } + /** + *
+   * Number of unique cookies that were exposed to your ad over a given time
+   * period.
+   * 
+ * + * .google.protobuf.Int64Value impression_reach = 36; + */ + public com.google.protobuf.Int64ValueOrBuilder getImpressionReachOrBuilder() { + return getImpressionReach(); + } + + public static final int IMPRESSIONS_FIELD_NUMBER = 37; + private com.google.protobuf.Int64Value impressions_; + /** + *
+   * Count of how often your ad has appeared on a search results page or
+   * website on the Google Network.
+   * 
+ * + * .google.protobuf.Int64Value impressions = 37; + */ + public boolean hasImpressions() { + return impressions_ != null; + } + /** + *
+   * Count of how often your ad has appeared on a search results page or
+   * website on the Google Network.
+   * 
+ * + * .google.protobuf.Int64Value impressions = 37; + */ + public com.google.protobuf.Int64Value getImpressions() { + return impressions_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : impressions_; + } + /** + *
+   * Count of how often your ad has appeared on a search results page or
+   * website on the Google Network.
+   * 
+ * + * .google.protobuf.Int64Value impressions = 37; + */ + public com.google.protobuf.Int64ValueOrBuilder getImpressionsOrBuilder() { + return getImpressions(); + } + + public static final int INTERACTION_RATE_FIELD_NUMBER = 38; + private com.google.protobuf.DoubleValue interactionRate_; + /** + *
+   * How often people interact with your ad after it is shown to them.
+   * This is the number of interactions divided by the number of times your ad
+   * is shown.
+   * 
+ * + * .google.protobuf.DoubleValue interaction_rate = 38; + */ + public boolean hasInteractionRate() { + return interactionRate_ != null; + } + /** + *
+   * How often people interact with your ad after it is shown to them.
+   * This is the number of interactions divided by the number of times your ad
+   * is shown.
+   * 
+ * + * .google.protobuf.DoubleValue interaction_rate = 38; + */ + public com.google.protobuf.DoubleValue getInteractionRate() { + return interactionRate_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : interactionRate_; + } + /** + *
+   * How often people interact with your ad after it is shown to them.
+   * This is the number of interactions divided by the number of times your ad
+   * is shown.
+   * 
+ * + * .google.protobuf.DoubleValue interaction_rate = 38; + */ + public com.google.protobuf.DoubleValueOrBuilder getInteractionRateOrBuilder() { + return getInteractionRate(); + } + + public static final int INTERACTIONS_FIELD_NUMBER = 39; + private com.google.protobuf.Int64Value interactions_; + /** + *
+   * The number of interactions.
+   * An interaction is the main user action associated with an ad format-clicks
+   * for text and shopping ads, views for video ads, and so on.
+   * 
+ * + * .google.protobuf.Int64Value interactions = 39; + */ + public boolean hasInteractions() { + return interactions_ != null; + } + /** + *
+   * The number of interactions.
+   * An interaction is the main user action associated with an ad format-clicks
+   * for text and shopping ads, views for video ads, and so on.
+   * 
+ * + * .google.protobuf.Int64Value interactions = 39; + */ + public com.google.protobuf.Int64Value getInteractions() { + return interactions_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : interactions_; + } + /** + *
+   * The number of interactions.
+   * An interaction is the main user action associated with an ad format-clicks
+   * for text and shopping ads, views for video ads, and so on.
+   * 
+ * + * .google.protobuf.Int64Value interactions = 39; + */ + public com.google.protobuf.Int64ValueOrBuilder getInteractionsOrBuilder() { + return getInteractions(); + } + + public static final int INTERACTION_EVENT_TYPES_FIELD_NUMBER = 100; + private java.util.List interactionEventTypes_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType> interactionEventTypes_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType>() { + public com.google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType convert(java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType result = com.google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType.valueOf(from); + return result == null ? com.google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType.UNRECOGNIZED : result; + } + }; + /** + *
+   * The types of payable and free interactions.
+   * 
+ * + * repeated .google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType interaction_event_types = 100; + */ + public java.util.List getInteractionEventTypesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType>(interactionEventTypes_, interactionEventTypes_converter_); + } + /** + *
+   * The types of payable and free interactions.
+   * 
+ * + * repeated .google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType interaction_event_types = 100; + */ + public int getInteractionEventTypesCount() { + return interactionEventTypes_.size(); + } + /** + *
+   * The types of payable and free interactions.
+   * 
+ * + * repeated .google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType interaction_event_types = 100; + */ + public com.google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType getInteractionEventTypes(int index) { + return interactionEventTypes_converter_.convert(interactionEventTypes_.get(index)); + } + /** + *
+   * The types of payable and free interactions.
+   * 
+ * + * repeated .google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType interaction_event_types = 100; + */ + public java.util.List + getInteractionEventTypesValueList() { + return interactionEventTypes_; + } + /** + *
+   * The types of payable and free interactions.
+   * 
+ * + * repeated .google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType interaction_event_types = 100; + */ + public int getInteractionEventTypesValue(int index) { + return interactionEventTypes_.get(index); + } + private int interactionEventTypesMemoizedSerializedSize; + + public static final int INVALID_CLICK_RATE_FIELD_NUMBER = 40; + private com.google.protobuf.DoubleValue invalidClickRate_; + /** + *
+   * The percentage of clicks filtered out of your total number of clicks
+   * (filtered + non-filtered clicks) during the reporting period.
+   * 
+ * + * .google.protobuf.DoubleValue invalid_click_rate = 40; + */ + public boolean hasInvalidClickRate() { + return invalidClickRate_ != null; + } + /** + *
+   * The percentage of clicks filtered out of your total number of clicks
    * (filtered + non-filtered clicks) during the reporting period.
    * 
* @@ -2283,8 +3789,8 @@ public com.google.protobuf.DoubleValueOrBuilder getRelativeCtrOrBuilder() { private com.google.protobuf.DoubleValue searchAbsoluteTopImpressionShare_; /** *
-   * The percentage of the customer's Shopping ad impressions that are shown in
-   * the most prominent Shopping position. See
+   * The percentage of the customer's Shopping or Search ad impressions that are
+   * shown in the most prominent Shopping position. See
    * <a href="https://support.google.com/adwords/answer/7501826">this Merchant
    * Center article</a> for details. Any value below 0.1 is reported as 0.0999.
    * 
@@ -2296,8 +3802,8 @@ public boolean hasSearchAbsoluteTopImpressionShare() { } /** *
-   * The percentage of the customer's Shopping ad impressions that are shown in
-   * the most prominent Shopping position. See
+   * The percentage of the customer's Shopping or Search ad impressions that are
+   * shown in the most prominent Shopping position. See
    * <a href="https://support.google.com/adwords/answer/7501826">this Merchant
    * Center article</a> for details. Any value below 0.1 is reported as 0.0999.
    * 
@@ -2309,8 +3815,8 @@ public com.google.protobuf.DoubleValue getSearchAbsoluteTopImpressionShare() { } /** *
-   * The percentage of the customer's Shopping ad impressions that are shown in
-   * the most prominent Shopping position. See
+   * The percentage of the customer's Shopping or Search ad impressions that are
+   * shown in the most prominent Shopping position. See
    * <a href="https://support.google.com/adwords/answer/7501826">this Merchant
    * Center article</a> for details. Any value below 0.1 is reported as 0.0999.
    * 
@@ -2321,6 +3827,48 @@ public com.google.protobuf.DoubleValueOrBuilder getSearchAbsoluteTopImpressionSh return getSearchAbsoluteTopImpressionShare(); } + public static final int SEARCH_BUDGET_LOST_ABSOLUTE_TOP_IMPRESSION_SHARE_FIELD_NUMBER = 88; + private com.google.protobuf.DoubleValue searchBudgetLostAbsoluteTopImpressionShare_; + /** + *
+   * The number estimating how often your ad wasn't the very first ad above the
+   * organic search results due to a low budget. Note: Search
+   * budget lost absolute top impression share is reported in the range of 0 to
+   * 0.9. Any value above 0.9 is reported as 0.9001.
+   * 
+ * + * .google.protobuf.DoubleValue search_budget_lost_absolute_top_impression_share = 88; + */ + public boolean hasSearchBudgetLostAbsoluteTopImpressionShare() { + return searchBudgetLostAbsoluteTopImpressionShare_ != null; + } + /** + *
+   * The number estimating how often your ad wasn't the very first ad above the
+   * organic search results due to a low budget. Note: Search
+   * budget lost absolute top impression share is reported in the range of 0 to
+   * 0.9. Any value above 0.9 is reported as 0.9001.
+   * 
+ * + * .google.protobuf.DoubleValue search_budget_lost_absolute_top_impression_share = 88; + */ + public com.google.protobuf.DoubleValue getSearchBudgetLostAbsoluteTopImpressionShare() { + return searchBudgetLostAbsoluteTopImpressionShare_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : searchBudgetLostAbsoluteTopImpressionShare_; + } + /** + *
+   * The number estimating how often your ad wasn't the very first ad above the
+   * organic search results due to a low budget. Note: Search
+   * budget lost absolute top impression share is reported in the range of 0 to
+   * 0.9. Any value above 0.9 is reported as 0.9001.
+   * 
+ * + * .google.protobuf.DoubleValue search_budget_lost_absolute_top_impression_share = 88; + */ + public com.google.protobuf.DoubleValueOrBuilder getSearchBudgetLostAbsoluteTopImpressionShareOrBuilder() { + return getSearchBudgetLostAbsoluteTopImpressionShare(); + } + public static final int SEARCH_BUDGET_LOST_IMPRESSION_SHARE_FIELD_NUMBER = 47; private com.google.protobuf.DoubleValue searchBudgetLostImpressionShare_; /** @@ -2363,7 +3911,91 @@ public com.google.protobuf.DoubleValueOrBuilder getSearchBudgetLostImpressionSha return getSearchBudgetLostImpressionShare(); } - public static final int SEARCH_EXACT_MATCH_IMPRESSION_SHARE_FIELD_NUMBER = 49; + public static final int SEARCH_BUDGET_LOST_TOP_IMPRESSION_SHARE_FIELD_NUMBER = 89; + private com.google.protobuf.DoubleValue searchBudgetLostTopImpressionShare_; + /** + *
+   * The number estimating how often your ad didn't show anywhere above the
+   * organic search results due to a low budget. Note: Search
+   * budget lost top impression share is reported in the range of 0 to 0.9. Any
+   * value above 0.9 is reported as 0.9001.
+   * 
+ * + * .google.protobuf.DoubleValue search_budget_lost_top_impression_share = 89; + */ + public boolean hasSearchBudgetLostTopImpressionShare() { + return searchBudgetLostTopImpressionShare_ != null; + } + /** + *
+   * The number estimating how often your ad didn't show anywhere above the
+   * organic search results due to a low budget. Note: Search
+   * budget lost top impression share is reported in the range of 0 to 0.9. Any
+   * value above 0.9 is reported as 0.9001.
+   * 
+ * + * .google.protobuf.DoubleValue search_budget_lost_top_impression_share = 89; + */ + public com.google.protobuf.DoubleValue getSearchBudgetLostTopImpressionShare() { + return searchBudgetLostTopImpressionShare_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : searchBudgetLostTopImpressionShare_; + } + /** + *
+   * The number estimating how often your ad didn't show anywhere above the
+   * organic search results due to a low budget. Note: Search
+   * budget lost top impression share is reported in the range of 0 to 0.9. Any
+   * value above 0.9 is reported as 0.9001.
+   * 
+ * + * .google.protobuf.DoubleValue search_budget_lost_top_impression_share = 89; + */ + public com.google.protobuf.DoubleValueOrBuilder getSearchBudgetLostTopImpressionShareOrBuilder() { + return getSearchBudgetLostTopImpressionShare(); + } + + public static final int SEARCH_CLICK_SHARE_FIELD_NUMBER = 48; + private com.google.protobuf.DoubleValue searchClickShare_; + /** + *
+   * The number of clicks you've received on the Search Network
+   * divided by the estimated number of clicks you were eligible to receive.
+   * Note: Search click share is reported in the range of 0.1 to 1. Any value
+   * below 0.1 is reported as 0.0999.
+   * 
+ * + * .google.protobuf.DoubleValue search_click_share = 48; + */ + public boolean hasSearchClickShare() { + return searchClickShare_ != null; + } + /** + *
+   * The number of clicks you've received on the Search Network
+   * divided by the estimated number of clicks you were eligible to receive.
+   * Note: Search click share is reported in the range of 0.1 to 1. Any value
+   * below 0.1 is reported as 0.0999.
+   * 
+ * + * .google.protobuf.DoubleValue search_click_share = 48; + */ + public com.google.protobuf.DoubleValue getSearchClickShare() { + return searchClickShare_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : searchClickShare_; + } + /** + *
+   * The number of clicks you've received on the Search Network
+   * divided by the estimated number of clicks you were eligible to receive.
+   * Note: Search click share is reported in the range of 0.1 to 1. Any value
+   * below 0.1 is reported as 0.0999.
+   * 
+ * + * .google.protobuf.DoubleValue search_click_share = 48; + */ + public com.google.protobuf.DoubleValueOrBuilder getSearchClickShareOrBuilder() { + return getSearchClickShare(); + } + + public static final int SEARCH_EXACT_MATCH_IMPRESSION_SHARE_FIELD_NUMBER = 49; private com.google.protobuf.DoubleValue searchExactMatchImpressionShare_; /** *
@@ -2453,6 +4085,48 @@ public com.google.protobuf.DoubleValueOrBuilder getSearchImpressionShareOrBuilde
     return getSearchImpressionShare();
   }
 
+  public static final int SEARCH_RANK_LOST_ABSOLUTE_TOP_IMPRESSION_SHARE_FIELD_NUMBER = 90;
+  private com.google.protobuf.DoubleValue searchRankLostAbsoluteTopImpressionShare_;
+  /**
+   * 
+   * The number estimating how often your ad wasn't the very first ad above the
+   * organic search results due to poor Ad Rank.
+   * Note: Search rank lost absolute top impression share is reported in the
+   * range of 0 to 0.9. Any value above 0.9 is reported as 0.9001.
+   * 
+ * + * .google.protobuf.DoubleValue search_rank_lost_absolute_top_impression_share = 90; + */ + public boolean hasSearchRankLostAbsoluteTopImpressionShare() { + return searchRankLostAbsoluteTopImpressionShare_ != null; + } + /** + *
+   * The number estimating how often your ad wasn't the very first ad above the
+   * organic search results due to poor Ad Rank.
+   * Note: Search rank lost absolute top impression share is reported in the
+   * range of 0 to 0.9. Any value above 0.9 is reported as 0.9001.
+   * 
+ * + * .google.protobuf.DoubleValue search_rank_lost_absolute_top_impression_share = 90; + */ + public com.google.protobuf.DoubleValue getSearchRankLostAbsoluteTopImpressionShare() { + return searchRankLostAbsoluteTopImpressionShare_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : searchRankLostAbsoluteTopImpressionShare_; + } + /** + *
+   * The number estimating how often your ad wasn't the very first ad above the
+   * organic search results due to poor Ad Rank.
+   * Note: Search rank lost absolute top impression share is reported in the
+   * range of 0 to 0.9. Any value above 0.9 is reported as 0.9001.
+   * 
+ * + * .google.protobuf.DoubleValue search_rank_lost_absolute_top_impression_share = 90; + */ + public com.google.protobuf.DoubleValueOrBuilder getSearchRankLostAbsoluteTopImpressionShareOrBuilder() { + return getSearchRankLostAbsoluteTopImpressionShare(); + } + public static final int SEARCH_RANK_LOST_IMPRESSION_SHARE_FIELD_NUMBER = 51; private com.google.protobuf.DoubleValue searchRankLostImpressionShare_; /** @@ -2495,6 +4169,129 @@ public com.google.protobuf.DoubleValueOrBuilder getSearchRankLostImpressionShare return getSearchRankLostImpressionShare(); } + public static final int SEARCH_RANK_LOST_TOP_IMPRESSION_SHARE_FIELD_NUMBER = 91; + private com.google.protobuf.DoubleValue searchRankLostTopImpressionShare_; + /** + *
+   * The number estimating how often your ad didn't show anywhere above the
+   * organic search results due to poor Ad Rank.
+   * Note: Search rank lost top impression share is reported in the range of 0
+   * to 0.9. Any value above 0.9 is reported as 0.9001.
+   * 
+ * + * .google.protobuf.DoubleValue search_rank_lost_top_impression_share = 91; + */ + public boolean hasSearchRankLostTopImpressionShare() { + return searchRankLostTopImpressionShare_ != null; + } + /** + *
+   * The number estimating how often your ad didn't show anywhere above the
+   * organic search results due to poor Ad Rank.
+   * Note: Search rank lost top impression share is reported in the range of 0
+   * to 0.9. Any value above 0.9 is reported as 0.9001.
+   * 
+ * + * .google.protobuf.DoubleValue search_rank_lost_top_impression_share = 91; + */ + public com.google.protobuf.DoubleValue getSearchRankLostTopImpressionShare() { + return searchRankLostTopImpressionShare_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : searchRankLostTopImpressionShare_; + } + /** + *
+   * The number estimating how often your ad didn't show anywhere above the
+   * organic search results due to poor Ad Rank.
+   * Note: Search rank lost top impression share is reported in the range of 0
+   * to 0.9. Any value above 0.9 is reported as 0.9001.
+   * 
+ * + * .google.protobuf.DoubleValue search_rank_lost_top_impression_share = 91; + */ + public com.google.protobuf.DoubleValueOrBuilder getSearchRankLostTopImpressionShareOrBuilder() { + return getSearchRankLostTopImpressionShare(); + } + + public static final int SEARCH_TOP_IMPRESSION_SHARE_FIELD_NUMBER = 92; + private com.google.protobuf.DoubleValue searchTopImpressionShare_; + /** + *
+   * The impressions you've received in the top location (anywhere above the
+   * organic search results) compared to the estimated number of impressions you
+   * were eligible to receive in the top location.
+   * Note: Search top impression share is reported in the range of 0.1 to 1. Any
+   * value below 0.1 is reported as 0.0999.
+   * 
+ * + * .google.protobuf.DoubleValue search_top_impression_share = 92; + */ + public boolean hasSearchTopImpressionShare() { + return searchTopImpressionShare_ != null; + } + /** + *
+   * The impressions you've received in the top location (anywhere above the
+   * organic search results) compared to the estimated number of impressions you
+   * were eligible to receive in the top location.
+   * Note: Search top impression share is reported in the range of 0.1 to 1. Any
+   * value below 0.1 is reported as 0.0999.
+   * 
+ * + * .google.protobuf.DoubleValue search_top_impression_share = 92; + */ + public com.google.protobuf.DoubleValue getSearchTopImpressionShare() { + return searchTopImpressionShare_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : searchTopImpressionShare_; + } + /** + *
+   * The impressions you've received in the top location (anywhere above the
+   * organic search results) compared to the estimated number of impressions you
+   * were eligible to receive in the top location.
+   * Note: Search top impression share is reported in the range of 0.1 to 1. Any
+   * value below 0.1 is reported as 0.0999.
+   * 
+ * + * .google.protobuf.DoubleValue search_top_impression_share = 92; + */ + public com.google.protobuf.DoubleValueOrBuilder getSearchTopImpressionShareOrBuilder() { + return getSearchTopImpressionShare(); + } + + public static final int TOP_IMPRESSION_PERCENTAGE_FIELD_NUMBER = 93; + private com.google.protobuf.DoubleValue topImpressionPercentage_; + /** + *
+   * The percent of your ad impressions that are shown anywhere above the
+   * organic search results.
+   * 
+ * + * .google.protobuf.DoubleValue top_impression_percentage = 93; + */ + public boolean hasTopImpressionPercentage() { + return topImpressionPercentage_ != null; + } + /** + *
+   * The percent of your ad impressions that are shown anywhere above the
+   * organic search results.
+   * 
+ * + * .google.protobuf.DoubleValue top_impression_percentage = 93; + */ + public com.google.protobuf.DoubleValue getTopImpressionPercentage() { + return topImpressionPercentage_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : topImpressionPercentage_; + } + /** + *
+   * The percent of your ad impressions that are shown anywhere above the
+   * organic search results.
+   * 
+ * + * .google.protobuf.DoubleValue top_impression_percentage = 93; + */ + public com.google.protobuf.DoubleValueOrBuilder getTopImpressionPercentageOrBuilder() { + return getTopImpressionPercentage(); + } + public static final int VALUE_PER_ALL_CONVERSIONS_FIELD_NUMBER = 52; private com.google.protobuf.DoubleValue valuePerAllConversions_; /** @@ -2532,7 +4329,9 @@ public com.google.protobuf.DoubleValueOrBuilder getValuePerAllConversionsOrBuild private com.google.protobuf.DoubleValue valuePerConversion_; /** *
-   * The value of conversions divided by the number of conversions.
+   * The value of conversions divided by the number of conversions. This only
+   * includes conversion actions which include_in_conversions_metric attribute
+   * is set to true.
    * 
* * .google.protobuf.DoubleValue value_per_conversion = 53; @@ -2542,7 +4341,9 @@ public boolean hasValuePerConversion() { } /** *
-   * The value of conversions divided by the number of conversions.
+   * The value of conversions divided by the number of conversions. This only
+   * includes conversion actions which include_in_conversions_metric attribute
+   * is set to true.
    * 
* * .google.protobuf.DoubleValue value_per_conversion = 53; @@ -2552,7 +4353,9 @@ public com.google.protobuf.DoubleValue getValuePerConversion() { } /** *
-   * The value of conversions divided by the number of conversions.
+   * The value of conversions divided by the number of conversions. This only
+   * includes conversion actions which include_in_conversions_metric attribute
+   * is set to true.
    * 
* * .google.protobuf.DoubleValue value_per_conversion = 53; @@ -2561,6 +4364,45 @@ public com.google.protobuf.DoubleValueOrBuilder getValuePerConversionOrBuilder() return getValuePerConversion(); } + public static final int VALUE_PER_CURRENT_MODEL_ATTRIBUTED_CONVERSION_FIELD_NUMBER = 94; + private com.google.protobuf.DoubleValue valuePerCurrentModelAttributedConversion_; + /** + *
+   * The value of current model attributed conversions divided by the number of
+   * the conversions. This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
+   * 
+ * + * .google.protobuf.DoubleValue value_per_current_model_attributed_conversion = 94; + */ + public boolean hasValuePerCurrentModelAttributedConversion() { + return valuePerCurrentModelAttributedConversion_ != null; + } + /** + *
+   * The value of current model attributed conversions divided by the number of
+   * the conversions. This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
+   * 
+ * + * .google.protobuf.DoubleValue value_per_current_model_attributed_conversion = 94; + */ + public com.google.protobuf.DoubleValue getValuePerCurrentModelAttributedConversion() { + return valuePerCurrentModelAttributedConversion_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : valuePerCurrentModelAttributedConversion_; + } + /** + *
+   * The value of current model attributed conversions divided by the number of
+   * the conversions. This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
+   * 
+ * + * .google.protobuf.DoubleValue value_per_current_model_attributed_conversion = 94; + */ + public com.google.protobuf.DoubleValueOrBuilder getValuePerCurrentModelAttributedConversionOrBuilder() { + return getValuePerCurrentModelAttributedConversion(); + } + public static final int VIDEO_QUARTILE_100_RATE_FIELD_NUMBER = 54; private com.google.protobuf.DoubleValue videoQuartile100Rate_; /** @@ -2821,6 +4663,19 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (activeViewCpm_ != null) { + output.writeMessage(1, getActiveViewCpm()); + } + if (activeViewImpressions_ != null) { + output.writeMessage(2, getActiveViewImpressions()); + } + if (activeViewMeasurableCostMicros_ != null) { + output.writeMessage(3, getActiveViewMeasurableCostMicros()); + } + if (activeViewMeasurableImpressions_ != null) { + output.writeMessage(4, getActiveViewMeasurableImpressions()); + } if (allConversions_ != null) { output.writeMessage(7, getAllConversions()); } @@ -2836,9 +4691,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (averageCpv_ != null) { output.writeMessage(11, getAverageCpv()); } + if (averageFrequency_ != null) { + output.writeMessage(12, getAverageFrequency()); + } if (averagePosition_ != null) { output.writeMessage(13, getAveragePosition()); } + if (benchmarkAverageMaxCpc_ != null) { + output.writeMessage(14, getBenchmarkAverageMaxCpc()); + } if (bounceRate_ != null) { output.writeMessage(15, getBounceRate()); } @@ -2875,6 +4736,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (engagements_ != null) { output.writeMessage(32, getEngagements()); } + if (impressionReach_ != null) { + output.writeMessage(36, getImpressionReach()); + } if (impressions_ != null) { output.writeMessage(37, getImpressions()); } @@ -2908,6 +4772,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (searchBudgetLostImpressionShare_ != null) { output.writeMessage(47, getSearchBudgetLostImpressionShare()); } + if (searchClickShare_ != null) { + output.writeMessage(48, getSearchClickShare()); + } if (searchExactMatchImpressionShare_ != null) { output.writeMessage(49, getSearchExactMatchImpressionShare()); } @@ -2986,6 +4853,94 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (searchAbsoluteTopImpressionShare_ != null) { output.writeMessage(78, getSearchAbsoluteTopImpressionShare()); } + if (activeViewCtr_ != null) { + output.writeMessage(79, getActiveViewCtr()); + } + if (historicalCreativeQualityScore_ != com.google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket.UNSPECIFIED.getNumber()) { + output.writeEnum(80, historicalCreativeQualityScore_); + } + if (historicalLandingPageQualityScore_ != com.google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket.UNSPECIFIED.getNumber()) { + output.writeEnum(81, historicalLandingPageQualityScore_); + } + if (historicalQualityScore_ != null) { + output.writeMessage(82, getHistoricalQualityScore()); + } + if (historicalSearchPredictedCtr_ != com.google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket.UNSPECIFIED.getNumber()) { + output.writeEnum(83, historicalSearchPredictedCtr_); + } + if (averageTimeOnSite_ != null) { + output.writeMessage(84, getAverageTimeOnSite()); + } + if (gmailForwards_ != null) { + output.writeMessage(85, getGmailForwards()); + } + if (gmailSaves_ != null) { + output.writeMessage(86, getGmailSaves()); + } + if (gmailSecondaryClicks_ != null) { + output.writeMessage(87, getGmailSecondaryClicks()); + } + if (searchBudgetLostAbsoluteTopImpressionShare_ != null) { + output.writeMessage(88, getSearchBudgetLostAbsoluteTopImpressionShare()); + } + if (searchBudgetLostTopImpressionShare_ != null) { + output.writeMessage(89, getSearchBudgetLostTopImpressionShare()); + } + if (searchRankLostAbsoluteTopImpressionShare_ != null) { + output.writeMessage(90, getSearchRankLostAbsoluteTopImpressionShare()); + } + if (searchRankLostTopImpressionShare_ != null) { + output.writeMessage(91, getSearchRankLostTopImpressionShare()); + } + if (searchTopImpressionShare_ != null) { + output.writeMessage(92, getSearchTopImpressionShare()); + } + if (topImpressionPercentage_ != null) { + output.writeMessage(93, getTopImpressionPercentage()); + } + if (valuePerCurrentModelAttributedConversion_ != null) { + output.writeMessage(94, getValuePerCurrentModelAttributedConversion()); + } + if (absoluteTopImpressionPercentage_ != null) { + output.writeMessage(95, getAbsoluteTopImpressionPercentage()); + } + if (activeViewMeasurability_ != null) { + output.writeMessage(96, getActiveViewMeasurability()); + } + if (activeViewViewability_ != null) { + output.writeMessage(97, getActiveViewViewability()); + } + if (averageCpe_ != null) { + output.writeMessage(98, getAverageCpe()); + } + if (averagePageViews_ != null) { + output.writeMessage(99, getAveragePageViews()); + } + if (getInteractionEventTypesList().size() > 0) { + output.writeUInt32NoTag(802); + output.writeUInt32NoTag(interactionEventTypesMemoizedSerializedSize); + } + for (int i = 0; i < interactionEventTypes_.size(); i++) { + output.writeEnumNoTag(interactionEventTypes_.get(i)); + } + if (currentModelAttributedConversions_ != null) { + output.writeMessage(101, getCurrentModelAttributedConversions()); + } + if (currentModelAttributedConversionsFromInteractionsRate_ != null) { + output.writeMessage(102, getCurrentModelAttributedConversionsFromInteractionsRate()); + } + if (currentModelAttributedConversionsFromInteractionsValuePerInteraction_ != null) { + output.writeMessage(103, getCurrentModelAttributedConversionsFromInteractionsValuePerInteraction()); + } + if (currentModelAttributedConversionsValue_ != null) { + output.writeMessage(104, getCurrentModelAttributedConversionsValue()); + } + if (currentModelAttributedConversionsValuePerCost_ != null) { + output.writeMessage(105, getCurrentModelAttributedConversionsValuePerCost()); + } + if (costPerCurrentModelAttributedConversion_ != null) { + output.writeMessage(106, getCostPerCurrentModelAttributedConversion()); + } unknownFields.writeTo(output); } @@ -2995,6 +4950,22 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; + if (activeViewCpm_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getActiveViewCpm()); + } + if (activeViewImpressions_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getActiveViewImpressions()); + } + if (activeViewMeasurableCostMicros_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getActiveViewMeasurableCostMicros()); + } + if (activeViewMeasurableImpressions_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getActiveViewMeasurableImpressions()); + } if (allConversions_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getAllConversions()); @@ -3015,10 +4986,18 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getAverageCpv()); } + if (averageFrequency_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getAverageFrequency()); + } if (averagePosition_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getAveragePosition()); } + if (benchmarkAverageMaxCpc_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getBenchmarkAverageMaxCpc()); + } if (bounceRate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, getBounceRate()); @@ -3067,6 +5046,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(32, getEngagements()); } + if (impressionReach_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(36, getImpressionReach()); + } if (impressions_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(37, getImpressions()); @@ -3111,6 +5094,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(47, getSearchBudgetLostImpressionShare()); } + if (searchClickShare_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(48, getSearchClickShare()); + } if (searchExactMatchImpressionShare_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(49, getSearchExactMatchImpressionShare()); @@ -3215,6 +5202,126 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(78, getSearchAbsoluteTopImpressionShare()); } + if (activeViewCtr_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(79, getActiveViewCtr()); + } + if (historicalCreativeQualityScore_ != com.google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(80, historicalCreativeQualityScore_); + } + if (historicalLandingPageQualityScore_ != com.google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(81, historicalLandingPageQualityScore_); + } + if (historicalQualityScore_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(82, getHistoricalQualityScore()); + } + if (historicalSearchPredictedCtr_ != com.google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(83, historicalSearchPredictedCtr_); + } + if (averageTimeOnSite_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(84, getAverageTimeOnSite()); + } + if (gmailForwards_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(85, getGmailForwards()); + } + if (gmailSaves_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(86, getGmailSaves()); + } + if (gmailSecondaryClicks_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(87, getGmailSecondaryClicks()); + } + if (searchBudgetLostAbsoluteTopImpressionShare_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(88, getSearchBudgetLostAbsoluteTopImpressionShare()); + } + if (searchBudgetLostTopImpressionShare_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(89, getSearchBudgetLostTopImpressionShare()); + } + if (searchRankLostAbsoluteTopImpressionShare_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(90, getSearchRankLostAbsoluteTopImpressionShare()); + } + if (searchRankLostTopImpressionShare_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(91, getSearchRankLostTopImpressionShare()); + } + if (searchTopImpressionShare_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(92, getSearchTopImpressionShare()); + } + if (topImpressionPercentage_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(93, getTopImpressionPercentage()); + } + if (valuePerCurrentModelAttributedConversion_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(94, getValuePerCurrentModelAttributedConversion()); + } + if (absoluteTopImpressionPercentage_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(95, getAbsoluteTopImpressionPercentage()); + } + if (activeViewMeasurability_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(96, getActiveViewMeasurability()); + } + if (activeViewViewability_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(97, getActiveViewViewability()); + } + if (averageCpe_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(98, getAverageCpe()); + } + if (averagePageViews_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(99, getAveragePageViews()); + } + { + int dataSize = 0; + for (int i = 0; i < interactionEventTypes_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(interactionEventTypes_.get(i)); + } + size += dataSize; + if (!getInteractionEventTypesList().isEmpty()) { size += 2; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }interactionEventTypesMemoizedSerializedSize = dataSize; + } + if (currentModelAttributedConversions_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(101, getCurrentModelAttributedConversions()); + } + if (currentModelAttributedConversionsFromInteractionsRate_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(102, getCurrentModelAttributedConversionsFromInteractionsRate()); + } + if (currentModelAttributedConversionsFromInteractionsValuePerInteraction_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(103, getCurrentModelAttributedConversionsFromInteractionsValuePerInteraction()); + } + if (currentModelAttributedConversionsValue_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(104, getCurrentModelAttributedConversionsValue()); + } + if (currentModelAttributedConversionsValuePerCost_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(105, getCurrentModelAttributedConversionsValuePerCost()); + } + if (costPerCurrentModelAttributedConversion_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(106, getCostPerCurrentModelAttributedConversion()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -3231,6 +5338,46 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.googleads.v0.common.Metrics other = (com.google.ads.googleads.v0.common.Metrics) obj; boolean result = true; + result = result && (hasAbsoluteTopImpressionPercentage() == other.hasAbsoluteTopImpressionPercentage()); + if (hasAbsoluteTopImpressionPercentage()) { + result = result && getAbsoluteTopImpressionPercentage() + .equals(other.getAbsoluteTopImpressionPercentage()); + } + result = result && (hasActiveViewCpm() == other.hasActiveViewCpm()); + if (hasActiveViewCpm()) { + result = result && getActiveViewCpm() + .equals(other.getActiveViewCpm()); + } + result = result && (hasActiveViewCtr() == other.hasActiveViewCtr()); + if (hasActiveViewCtr()) { + result = result && getActiveViewCtr() + .equals(other.getActiveViewCtr()); + } + result = result && (hasActiveViewImpressions() == other.hasActiveViewImpressions()); + if (hasActiveViewImpressions()) { + result = result && getActiveViewImpressions() + .equals(other.getActiveViewImpressions()); + } + result = result && (hasActiveViewMeasurability() == other.hasActiveViewMeasurability()); + if (hasActiveViewMeasurability()) { + result = result && getActiveViewMeasurability() + .equals(other.getActiveViewMeasurability()); + } + result = result && (hasActiveViewMeasurableCostMicros() == other.hasActiveViewMeasurableCostMicros()); + if (hasActiveViewMeasurableCostMicros()) { + result = result && getActiveViewMeasurableCostMicros() + .equals(other.getActiveViewMeasurableCostMicros()); + } + result = result && (hasActiveViewMeasurableImpressions() == other.hasActiveViewMeasurableImpressions()); + if (hasActiveViewMeasurableImpressions()) { + result = result && getActiveViewMeasurableImpressions() + .equals(other.getActiveViewMeasurableImpressions()); + } + result = result && (hasActiveViewViewability() == other.hasActiveViewViewability()); + if (hasActiveViewViewability()) { + result = result && getActiveViewViewability() + .equals(other.getActiveViewViewability()); + } result = result && (hasAllConversionsFromInteractionsRate() == other.hasAllConversionsFromInteractionsRate()); if (hasAllConversionsFromInteractionsRate()) { result = result && getAllConversionsFromInteractionsRate() @@ -3266,6 +5413,11 @@ public boolean equals(final java.lang.Object obj) { result = result && getAverageCpc() .equals(other.getAverageCpc()); } + result = result && (hasAverageCpe() == other.hasAverageCpe()); + if (hasAverageCpe()) { + result = result && getAverageCpe() + .equals(other.getAverageCpe()); + } result = result && (hasAverageCpm() == other.hasAverageCpm()); if (hasAverageCpm()) { result = result && getAverageCpm() @@ -3276,11 +5428,31 @@ public boolean equals(final java.lang.Object obj) { result = result && getAverageCpv() .equals(other.getAverageCpv()); } + result = result && (hasAverageFrequency() == other.hasAverageFrequency()); + if (hasAverageFrequency()) { + result = result && getAverageFrequency() + .equals(other.getAverageFrequency()); + } + result = result && (hasAveragePageViews() == other.hasAveragePageViews()); + if (hasAveragePageViews()) { + result = result && getAveragePageViews() + .equals(other.getAveragePageViews()); + } result = result && (hasAveragePosition() == other.hasAveragePosition()); if (hasAveragePosition()) { result = result && getAveragePosition() .equals(other.getAveragePosition()); } + result = result && (hasAverageTimeOnSite() == other.hasAverageTimeOnSite()); + if (hasAverageTimeOnSite()) { + result = result && getAverageTimeOnSite() + .equals(other.getAverageTimeOnSite()); + } + result = result && (hasBenchmarkAverageMaxCpc() == other.hasBenchmarkAverageMaxCpc()); + if (hasBenchmarkAverageMaxCpc()) { + result = result && getBenchmarkAverageMaxCpc() + .equals(other.getBenchmarkAverageMaxCpc()); + } result = result && (hasBenchmarkCtr() == other.hasBenchmarkCtr()); if (hasBenchmarkCtr()) { result = result && getBenchmarkCtr() @@ -3361,6 +5533,11 @@ public boolean equals(final java.lang.Object obj) { result = result && getCostPerConversion() .equals(other.getCostPerConversion()); } + result = result && (hasCostPerCurrentModelAttributedConversion() == other.hasCostPerCurrentModelAttributedConversion()); + if (hasCostPerCurrentModelAttributedConversion()) { + result = result && getCostPerCurrentModelAttributedConversion() + .equals(other.getCostPerCurrentModelAttributedConversion()); + } result = result && (hasCrossDeviceConversions() == other.hasCrossDeviceConversions()); if (hasCrossDeviceConversions()) { result = result && getCrossDeviceConversions() @@ -3371,6 +5548,31 @@ public boolean equals(final java.lang.Object obj) { result = result && getCtr() .equals(other.getCtr()); } + result = result && (hasCurrentModelAttributedConversions() == other.hasCurrentModelAttributedConversions()); + if (hasCurrentModelAttributedConversions()) { + result = result && getCurrentModelAttributedConversions() + .equals(other.getCurrentModelAttributedConversions()); + } + result = result && (hasCurrentModelAttributedConversionsFromInteractionsRate() == other.hasCurrentModelAttributedConversionsFromInteractionsRate()); + if (hasCurrentModelAttributedConversionsFromInteractionsRate()) { + result = result && getCurrentModelAttributedConversionsFromInteractionsRate() + .equals(other.getCurrentModelAttributedConversionsFromInteractionsRate()); + } + result = result && (hasCurrentModelAttributedConversionsFromInteractionsValuePerInteraction() == other.hasCurrentModelAttributedConversionsFromInteractionsValuePerInteraction()); + if (hasCurrentModelAttributedConversionsFromInteractionsValuePerInteraction()) { + result = result && getCurrentModelAttributedConversionsFromInteractionsValuePerInteraction() + .equals(other.getCurrentModelAttributedConversionsFromInteractionsValuePerInteraction()); + } + result = result && (hasCurrentModelAttributedConversionsValue() == other.hasCurrentModelAttributedConversionsValue()); + if (hasCurrentModelAttributedConversionsValue()) { + result = result && getCurrentModelAttributedConversionsValue() + .equals(other.getCurrentModelAttributedConversionsValue()); + } + result = result && (hasCurrentModelAttributedConversionsValuePerCost() == other.hasCurrentModelAttributedConversionsValuePerCost()); + if (hasCurrentModelAttributedConversionsValuePerCost()) { + result = result && getCurrentModelAttributedConversionsValuePerCost() + .equals(other.getCurrentModelAttributedConversionsValuePerCost()); + } result = result && (hasEngagementRate() == other.hasEngagementRate()); if (hasEngagementRate()) { result = result && getEngagementRate() @@ -3386,6 +5588,34 @@ public boolean equals(final java.lang.Object obj) { result = result && getHotelAverageLeadValueMicros() .equals(other.getHotelAverageLeadValueMicros()); } + result = result && historicalCreativeQualityScore_ == other.historicalCreativeQualityScore_; + result = result && historicalLandingPageQualityScore_ == other.historicalLandingPageQualityScore_; + result = result && (hasHistoricalQualityScore() == other.hasHistoricalQualityScore()); + if (hasHistoricalQualityScore()) { + result = result && getHistoricalQualityScore() + .equals(other.getHistoricalQualityScore()); + } + result = result && historicalSearchPredictedCtr_ == other.historicalSearchPredictedCtr_; + result = result && (hasGmailForwards() == other.hasGmailForwards()); + if (hasGmailForwards()) { + result = result && getGmailForwards() + .equals(other.getGmailForwards()); + } + result = result && (hasGmailSaves() == other.hasGmailSaves()); + if (hasGmailSaves()) { + result = result && getGmailSaves() + .equals(other.getGmailSaves()); + } + result = result && (hasGmailSecondaryClicks() == other.hasGmailSecondaryClicks()); + if (hasGmailSecondaryClicks()) { + result = result && getGmailSecondaryClicks() + .equals(other.getGmailSecondaryClicks()); + } + result = result && (hasImpressionReach() == other.hasImpressionReach()); + if (hasImpressionReach()) { + result = result && getImpressionReach() + .equals(other.getImpressionReach()); + } result = result && (hasImpressions() == other.hasImpressions()); if (hasImpressions()) { result = result && getImpressions() @@ -3401,6 +5631,7 @@ public boolean equals(final java.lang.Object obj) { result = result && getInteractions() .equals(other.getInteractions()); } + result = result && interactionEventTypes_.equals(other.interactionEventTypes_); result = result && (hasInvalidClickRate() == other.hasInvalidClickRate()); if (hasInvalidClickRate()) { result = result && getInvalidClickRate() @@ -3441,11 +5672,26 @@ public boolean equals(final java.lang.Object obj) { result = result && getSearchAbsoluteTopImpressionShare() .equals(other.getSearchAbsoluteTopImpressionShare()); } + result = result && (hasSearchBudgetLostAbsoluteTopImpressionShare() == other.hasSearchBudgetLostAbsoluteTopImpressionShare()); + if (hasSearchBudgetLostAbsoluteTopImpressionShare()) { + result = result && getSearchBudgetLostAbsoluteTopImpressionShare() + .equals(other.getSearchBudgetLostAbsoluteTopImpressionShare()); + } result = result && (hasSearchBudgetLostImpressionShare() == other.hasSearchBudgetLostImpressionShare()); if (hasSearchBudgetLostImpressionShare()) { result = result && getSearchBudgetLostImpressionShare() .equals(other.getSearchBudgetLostImpressionShare()); } + result = result && (hasSearchBudgetLostTopImpressionShare() == other.hasSearchBudgetLostTopImpressionShare()); + if (hasSearchBudgetLostTopImpressionShare()) { + result = result && getSearchBudgetLostTopImpressionShare() + .equals(other.getSearchBudgetLostTopImpressionShare()); + } + result = result && (hasSearchClickShare() == other.hasSearchClickShare()); + if (hasSearchClickShare()) { + result = result && getSearchClickShare() + .equals(other.getSearchClickShare()); + } result = result && (hasSearchExactMatchImpressionShare() == other.hasSearchExactMatchImpressionShare()); if (hasSearchExactMatchImpressionShare()) { result = result && getSearchExactMatchImpressionShare() @@ -3456,11 +5702,31 @@ public boolean equals(final java.lang.Object obj) { result = result && getSearchImpressionShare() .equals(other.getSearchImpressionShare()); } + result = result && (hasSearchRankLostAbsoluteTopImpressionShare() == other.hasSearchRankLostAbsoluteTopImpressionShare()); + if (hasSearchRankLostAbsoluteTopImpressionShare()) { + result = result && getSearchRankLostAbsoluteTopImpressionShare() + .equals(other.getSearchRankLostAbsoluteTopImpressionShare()); + } result = result && (hasSearchRankLostImpressionShare() == other.hasSearchRankLostImpressionShare()); if (hasSearchRankLostImpressionShare()) { result = result && getSearchRankLostImpressionShare() .equals(other.getSearchRankLostImpressionShare()); } + result = result && (hasSearchRankLostTopImpressionShare() == other.hasSearchRankLostTopImpressionShare()); + if (hasSearchRankLostTopImpressionShare()) { + result = result && getSearchRankLostTopImpressionShare() + .equals(other.getSearchRankLostTopImpressionShare()); + } + result = result && (hasSearchTopImpressionShare() == other.hasSearchTopImpressionShare()); + if (hasSearchTopImpressionShare()) { + result = result && getSearchTopImpressionShare() + .equals(other.getSearchTopImpressionShare()); + } + result = result && (hasTopImpressionPercentage() == other.hasTopImpressionPercentage()); + if (hasTopImpressionPercentage()) { + result = result && getTopImpressionPercentage() + .equals(other.getTopImpressionPercentage()); + } result = result && (hasValuePerAllConversions() == other.hasValuePerAllConversions()); if (hasValuePerAllConversions()) { result = result && getValuePerAllConversions() @@ -3471,6 +5737,11 @@ public boolean equals(final java.lang.Object obj) { result = result && getValuePerConversion() .equals(other.getValuePerConversion()); } + result = result && (hasValuePerCurrentModelAttributedConversion() == other.hasValuePerCurrentModelAttributedConversion()); + if (hasValuePerCurrentModelAttributedConversion()) { + result = result && getValuePerCurrentModelAttributedConversion() + .equals(other.getValuePerCurrentModelAttributedConversion()); + } result = result && (hasVideoQuartile100Rate() == other.hasVideoQuartile100Rate()); if (hasVideoQuartile100Rate()) { result = result && getVideoQuartile100Rate() @@ -3517,6 +5788,38 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAbsoluteTopImpressionPercentage()) { + hash = (37 * hash) + ABSOLUTE_TOP_IMPRESSION_PERCENTAGE_FIELD_NUMBER; + hash = (53 * hash) + getAbsoluteTopImpressionPercentage().hashCode(); + } + if (hasActiveViewCpm()) { + hash = (37 * hash) + ACTIVE_VIEW_CPM_FIELD_NUMBER; + hash = (53 * hash) + getActiveViewCpm().hashCode(); + } + if (hasActiveViewCtr()) { + hash = (37 * hash) + ACTIVE_VIEW_CTR_FIELD_NUMBER; + hash = (53 * hash) + getActiveViewCtr().hashCode(); + } + if (hasActiveViewImpressions()) { + hash = (37 * hash) + ACTIVE_VIEW_IMPRESSIONS_FIELD_NUMBER; + hash = (53 * hash) + getActiveViewImpressions().hashCode(); + } + if (hasActiveViewMeasurability()) { + hash = (37 * hash) + ACTIVE_VIEW_MEASURABILITY_FIELD_NUMBER; + hash = (53 * hash) + getActiveViewMeasurability().hashCode(); + } + if (hasActiveViewMeasurableCostMicros()) { + hash = (37 * hash) + ACTIVE_VIEW_MEASURABLE_COST_MICROS_FIELD_NUMBER; + hash = (53 * hash) + getActiveViewMeasurableCostMicros().hashCode(); + } + if (hasActiveViewMeasurableImpressions()) { + hash = (37 * hash) + ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_FIELD_NUMBER; + hash = (53 * hash) + getActiveViewMeasurableImpressions().hashCode(); + } + if (hasActiveViewViewability()) { + hash = (37 * hash) + ACTIVE_VIEW_VIEWABILITY_FIELD_NUMBER; + hash = (53 * hash) + getActiveViewViewability().hashCode(); + } if (hasAllConversionsFromInteractionsRate()) { hash = (37 * hash) + ALL_CONVERSIONS_FROM_INTERACTIONS_RATE_FIELD_NUMBER; hash = (53 * hash) + getAllConversionsFromInteractionsRate().hashCode(); @@ -3545,6 +5848,10 @@ public int hashCode() { hash = (37 * hash) + AVERAGE_CPC_FIELD_NUMBER; hash = (53 * hash) + getAverageCpc().hashCode(); } + if (hasAverageCpe()) { + hash = (37 * hash) + AVERAGE_CPE_FIELD_NUMBER; + hash = (53 * hash) + getAverageCpe().hashCode(); + } if (hasAverageCpm()) { hash = (37 * hash) + AVERAGE_CPM_FIELD_NUMBER; hash = (53 * hash) + getAverageCpm().hashCode(); @@ -3553,10 +5860,26 @@ public int hashCode() { hash = (37 * hash) + AVERAGE_CPV_FIELD_NUMBER; hash = (53 * hash) + getAverageCpv().hashCode(); } + if (hasAverageFrequency()) { + hash = (37 * hash) + AVERAGE_FREQUENCY_FIELD_NUMBER; + hash = (53 * hash) + getAverageFrequency().hashCode(); + } + if (hasAveragePageViews()) { + hash = (37 * hash) + AVERAGE_PAGE_VIEWS_FIELD_NUMBER; + hash = (53 * hash) + getAveragePageViews().hashCode(); + } if (hasAveragePosition()) { hash = (37 * hash) + AVERAGE_POSITION_FIELD_NUMBER; hash = (53 * hash) + getAveragePosition().hashCode(); } + if (hasAverageTimeOnSite()) { + hash = (37 * hash) + AVERAGE_TIME_ON_SITE_FIELD_NUMBER; + hash = (53 * hash) + getAverageTimeOnSite().hashCode(); + } + if (hasBenchmarkAverageMaxCpc()) { + hash = (37 * hash) + BENCHMARK_AVERAGE_MAX_CPC_FIELD_NUMBER; + hash = (53 * hash) + getBenchmarkAverageMaxCpc().hashCode(); + } if (hasBenchmarkCtr()) { hash = (37 * hash) + BENCHMARK_CTR_FIELD_NUMBER; hash = (53 * hash) + getBenchmarkCtr().hashCode(); @@ -3621,6 +5944,10 @@ public int hashCode() { hash = (37 * hash) + COST_PER_CONVERSION_FIELD_NUMBER; hash = (53 * hash) + getCostPerConversion().hashCode(); } + if (hasCostPerCurrentModelAttributedConversion()) { + hash = (37 * hash) + COST_PER_CURRENT_MODEL_ATTRIBUTED_CONVERSION_FIELD_NUMBER; + hash = (53 * hash) + getCostPerCurrentModelAttributedConversion().hashCode(); + } if (hasCrossDeviceConversions()) { hash = (37 * hash) + CROSS_DEVICE_CONVERSIONS_FIELD_NUMBER; hash = (53 * hash) + getCrossDeviceConversions().hashCode(); @@ -3629,6 +5956,26 @@ public int hashCode() { hash = (37 * hash) + CTR_FIELD_NUMBER; hash = (53 * hash) + getCtr().hashCode(); } + if (hasCurrentModelAttributedConversions()) { + hash = (37 * hash) + CURRENT_MODEL_ATTRIBUTED_CONVERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getCurrentModelAttributedConversions().hashCode(); + } + if (hasCurrentModelAttributedConversionsFromInteractionsRate()) { + hash = (37 * hash) + CURRENT_MODEL_ATTRIBUTED_CONVERSIONS_FROM_INTERACTIONS_RATE_FIELD_NUMBER; + hash = (53 * hash) + getCurrentModelAttributedConversionsFromInteractionsRate().hashCode(); + } + if (hasCurrentModelAttributedConversionsFromInteractionsValuePerInteraction()) { + hash = (37 * hash) + CURRENT_MODEL_ATTRIBUTED_CONVERSIONS_FROM_INTERACTIONS_VALUE_PER_INTERACTION_FIELD_NUMBER; + hash = (53 * hash) + getCurrentModelAttributedConversionsFromInteractionsValuePerInteraction().hashCode(); + } + if (hasCurrentModelAttributedConversionsValue()) { + hash = (37 * hash) + CURRENT_MODEL_ATTRIBUTED_CONVERSIONS_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getCurrentModelAttributedConversionsValue().hashCode(); + } + if (hasCurrentModelAttributedConversionsValuePerCost()) { + hash = (37 * hash) + CURRENT_MODEL_ATTRIBUTED_CONVERSIONS_VALUE_PER_COST_FIELD_NUMBER; + hash = (53 * hash) + getCurrentModelAttributedConversionsValuePerCost().hashCode(); + } if (hasEngagementRate()) { hash = (37 * hash) + ENGAGEMENT_RATE_FIELD_NUMBER; hash = (53 * hash) + getEngagementRate().hashCode(); @@ -3641,6 +5988,32 @@ public int hashCode() { hash = (37 * hash) + HOTEL_AVERAGE_LEAD_VALUE_MICROS_FIELD_NUMBER; hash = (53 * hash) + getHotelAverageLeadValueMicros().hashCode(); } + hash = (37 * hash) + HISTORICAL_CREATIVE_QUALITY_SCORE_FIELD_NUMBER; + hash = (53 * hash) + historicalCreativeQualityScore_; + hash = (37 * hash) + HISTORICAL_LANDING_PAGE_QUALITY_SCORE_FIELD_NUMBER; + hash = (53 * hash) + historicalLandingPageQualityScore_; + if (hasHistoricalQualityScore()) { + hash = (37 * hash) + HISTORICAL_QUALITY_SCORE_FIELD_NUMBER; + hash = (53 * hash) + getHistoricalQualityScore().hashCode(); + } + hash = (37 * hash) + HISTORICAL_SEARCH_PREDICTED_CTR_FIELD_NUMBER; + hash = (53 * hash) + historicalSearchPredictedCtr_; + if (hasGmailForwards()) { + hash = (37 * hash) + GMAIL_FORWARDS_FIELD_NUMBER; + hash = (53 * hash) + getGmailForwards().hashCode(); + } + if (hasGmailSaves()) { + hash = (37 * hash) + GMAIL_SAVES_FIELD_NUMBER; + hash = (53 * hash) + getGmailSaves().hashCode(); + } + if (hasGmailSecondaryClicks()) { + hash = (37 * hash) + GMAIL_SECONDARY_CLICKS_FIELD_NUMBER; + hash = (53 * hash) + getGmailSecondaryClicks().hashCode(); + } + if (hasImpressionReach()) { + hash = (37 * hash) + IMPRESSION_REACH_FIELD_NUMBER; + hash = (53 * hash) + getImpressionReach().hashCode(); + } if (hasImpressions()) { hash = (37 * hash) + IMPRESSIONS_FIELD_NUMBER; hash = (53 * hash) + getImpressions().hashCode(); @@ -3653,6 +6026,10 @@ public int hashCode() { hash = (37 * hash) + INTERACTIONS_FIELD_NUMBER; hash = (53 * hash) + getInteractions().hashCode(); } + if (getInteractionEventTypesCount() > 0) { + hash = (37 * hash) + INTERACTION_EVENT_TYPES_FIELD_NUMBER; + hash = (53 * hash) + interactionEventTypes_.hashCode(); + } if (hasInvalidClickRate()) { hash = (37 * hash) + INVALID_CLICK_RATE_FIELD_NUMBER; hash = (53 * hash) + getInvalidClickRate().hashCode(); @@ -3685,10 +6062,22 @@ public int hashCode() { hash = (37 * hash) + SEARCH_ABSOLUTE_TOP_IMPRESSION_SHARE_FIELD_NUMBER; hash = (53 * hash) + getSearchAbsoluteTopImpressionShare().hashCode(); } + if (hasSearchBudgetLostAbsoluteTopImpressionShare()) { + hash = (37 * hash) + SEARCH_BUDGET_LOST_ABSOLUTE_TOP_IMPRESSION_SHARE_FIELD_NUMBER; + hash = (53 * hash) + getSearchBudgetLostAbsoluteTopImpressionShare().hashCode(); + } if (hasSearchBudgetLostImpressionShare()) { hash = (37 * hash) + SEARCH_BUDGET_LOST_IMPRESSION_SHARE_FIELD_NUMBER; hash = (53 * hash) + getSearchBudgetLostImpressionShare().hashCode(); } + if (hasSearchBudgetLostTopImpressionShare()) { + hash = (37 * hash) + SEARCH_BUDGET_LOST_TOP_IMPRESSION_SHARE_FIELD_NUMBER; + hash = (53 * hash) + getSearchBudgetLostTopImpressionShare().hashCode(); + } + if (hasSearchClickShare()) { + hash = (37 * hash) + SEARCH_CLICK_SHARE_FIELD_NUMBER; + hash = (53 * hash) + getSearchClickShare().hashCode(); + } if (hasSearchExactMatchImpressionShare()) { hash = (37 * hash) + SEARCH_EXACT_MATCH_IMPRESSION_SHARE_FIELD_NUMBER; hash = (53 * hash) + getSearchExactMatchImpressionShare().hashCode(); @@ -3697,10 +6086,26 @@ public int hashCode() { hash = (37 * hash) + SEARCH_IMPRESSION_SHARE_FIELD_NUMBER; hash = (53 * hash) + getSearchImpressionShare().hashCode(); } + if (hasSearchRankLostAbsoluteTopImpressionShare()) { + hash = (37 * hash) + SEARCH_RANK_LOST_ABSOLUTE_TOP_IMPRESSION_SHARE_FIELD_NUMBER; + hash = (53 * hash) + getSearchRankLostAbsoluteTopImpressionShare().hashCode(); + } if (hasSearchRankLostImpressionShare()) { hash = (37 * hash) + SEARCH_RANK_LOST_IMPRESSION_SHARE_FIELD_NUMBER; hash = (53 * hash) + getSearchRankLostImpressionShare().hashCode(); } + if (hasSearchRankLostTopImpressionShare()) { + hash = (37 * hash) + SEARCH_RANK_LOST_TOP_IMPRESSION_SHARE_FIELD_NUMBER; + hash = (53 * hash) + getSearchRankLostTopImpressionShare().hashCode(); + } + if (hasSearchTopImpressionShare()) { + hash = (37 * hash) + SEARCH_TOP_IMPRESSION_SHARE_FIELD_NUMBER; + hash = (53 * hash) + getSearchTopImpressionShare().hashCode(); + } + if (hasTopImpressionPercentage()) { + hash = (37 * hash) + TOP_IMPRESSION_PERCENTAGE_FIELD_NUMBER; + hash = (53 * hash) + getTopImpressionPercentage().hashCode(); + } if (hasValuePerAllConversions()) { hash = (37 * hash) + VALUE_PER_ALL_CONVERSIONS_FIELD_NUMBER; hash = (53 * hash) + getValuePerAllConversions().hashCode(); @@ -3709,6 +6114,10 @@ public int hashCode() { hash = (37 * hash) + VALUE_PER_CONVERSION_FIELD_NUMBER; hash = (53 * hash) + getValuePerConversion().hashCode(); } + if (hasValuePerCurrentModelAttributedConversion()) { + hash = (37 * hash) + VALUE_PER_CURRENT_MODEL_ATTRIBUTED_CONVERSION_FIELD_NUMBER; + hash = (53 * hash) + getValuePerCurrentModelAttributedConversion().hashCode(); + } if (hasVideoQuartile100Rate()) { hash = (37 * hash) + VIDEO_QUARTILE_100_RATE_FIELD_NUMBER; hash = (53 * hash) + getVideoQuartile100Rate().hashCode(); @@ -3874,6 +6283,54 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + if (absoluteTopImpressionPercentageBuilder_ == null) { + absoluteTopImpressionPercentage_ = null; + } else { + absoluteTopImpressionPercentage_ = null; + absoluteTopImpressionPercentageBuilder_ = null; + } + if (activeViewCpmBuilder_ == null) { + activeViewCpm_ = null; + } else { + activeViewCpm_ = null; + activeViewCpmBuilder_ = null; + } + if (activeViewCtrBuilder_ == null) { + activeViewCtr_ = null; + } else { + activeViewCtr_ = null; + activeViewCtrBuilder_ = null; + } + if (activeViewImpressionsBuilder_ == null) { + activeViewImpressions_ = null; + } else { + activeViewImpressions_ = null; + activeViewImpressionsBuilder_ = null; + } + if (activeViewMeasurabilityBuilder_ == null) { + activeViewMeasurability_ = null; + } else { + activeViewMeasurability_ = null; + activeViewMeasurabilityBuilder_ = null; + } + if (activeViewMeasurableCostMicrosBuilder_ == null) { + activeViewMeasurableCostMicros_ = null; + } else { + activeViewMeasurableCostMicros_ = null; + activeViewMeasurableCostMicrosBuilder_ = null; + } + if (activeViewMeasurableImpressionsBuilder_ == null) { + activeViewMeasurableImpressions_ = null; + } else { + activeViewMeasurableImpressions_ = null; + activeViewMeasurableImpressionsBuilder_ = null; + } + if (activeViewViewabilityBuilder_ == null) { + activeViewViewability_ = null; + } else { + activeViewViewability_ = null; + activeViewViewabilityBuilder_ = null; + } if (allConversionsFromInteractionsRateBuilder_ == null) { allConversionsFromInteractionsRate_ = null; } else { @@ -3916,6 +6373,12 @@ public Builder clear() { averageCpc_ = null; averageCpcBuilder_ = null; } + if (averageCpeBuilder_ == null) { + averageCpe_ = null; + } else { + averageCpe_ = null; + averageCpeBuilder_ = null; + } if (averageCpmBuilder_ == null) { averageCpm_ = null; } else { @@ -3928,12 +6391,36 @@ public Builder clear() { averageCpv_ = null; averageCpvBuilder_ = null; } + if (averageFrequencyBuilder_ == null) { + averageFrequency_ = null; + } else { + averageFrequency_ = null; + averageFrequencyBuilder_ = null; + } + if (averagePageViewsBuilder_ == null) { + averagePageViews_ = null; + } else { + averagePageViews_ = null; + averagePageViewsBuilder_ = null; + } if (averagePositionBuilder_ == null) { averagePosition_ = null; } else { averagePosition_ = null; averagePositionBuilder_ = null; } + if (averageTimeOnSiteBuilder_ == null) { + averageTimeOnSite_ = null; + } else { + averageTimeOnSite_ = null; + averageTimeOnSiteBuilder_ = null; + } + if (benchmarkAverageMaxCpcBuilder_ == null) { + benchmarkAverageMaxCpc_ = null; + } else { + benchmarkAverageMaxCpc_ = null; + benchmarkAverageMaxCpcBuilder_ = null; + } if (benchmarkCtrBuilder_ == null) { benchmarkCtr_ = null; } else { @@ -4030,6 +6517,12 @@ public Builder clear() { costPerConversion_ = null; costPerConversionBuilder_ = null; } + if (costPerCurrentModelAttributedConversionBuilder_ == null) { + costPerCurrentModelAttributedConversion_ = null; + } else { + costPerCurrentModelAttributedConversion_ = null; + costPerCurrentModelAttributedConversionBuilder_ = null; + } if (crossDeviceConversionsBuilder_ == null) { crossDeviceConversions_ = null; } else { @@ -4042,6 +6535,36 @@ public Builder clear() { ctr_ = null; ctrBuilder_ = null; } + if (currentModelAttributedConversionsBuilder_ == null) { + currentModelAttributedConversions_ = null; + } else { + currentModelAttributedConversions_ = null; + currentModelAttributedConversionsBuilder_ = null; + } + if (currentModelAttributedConversionsFromInteractionsRateBuilder_ == null) { + currentModelAttributedConversionsFromInteractionsRate_ = null; + } else { + currentModelAttributedConversionsFromInteractionsRate_ = null; + currentModelAttributedConversionsFromInteractionsRateBuilder_ = null; + } + if (currentModelAttributedConversionsFromInteractionsValuePerInteractionBuilder_ == null) { + currentModelAttributedConversionsFromInteractionsValuePerInteraction_ = null; + } else { + currentModelAttributedConversionsFromInteractionsValuePerInteraction_ = null; + currentModelAttributedConversionsFromInteractionsValuePerInteractionBuilder_ = null; + } + if (currentModelAttributedConversionsValueBuilder_ == null) { + currentModelAttributedConversionsValue_ = null; + } else { + currentModelAttributedConversionsValue_ = null; + currentModelAttributedConversionsValueBuilder_ = null; + } + if (currentModelAttributedConversionsValuePerCostBuilder_ == null) { + currentModelAttributedConversionsValuePerCost_ = null; + } else { + currentModelAttributedConversionsValuePerCost_ = null; + currentModelAttributedConversionsValuePerCostBuilder_ = null; + } if (engagementRateBuilder_ == null) { engagementRate_ = null; } else { @@ -4060,6 +6583,42 @@ public Builder clear() { hotelAverageLeadValueMicros_ = null; hotelAverageLeadValueMicrosBuilder_ = null; } + historicalCreativeQualityScore_ = 0; + + historicalLandingPageQualityScore_ = 0; + + if (historicalQualityScoreBuilder_ == null) { + historicalQualityScore_ = null; + } else { + historicalQualityScore_ = null; + historicalQualityScoreBuilder_ = null; + } + historicalSearchPredictedCtr_ = 0; + + if (gmailForwardsBuilder_ == null) { + gmailForwards_ = null; + } else { + gmailForwards_ = null; + gmailForwardsBuilder_ = null; + } + if (gmailSavesBuilder_ == null) { + gmailSaves_ = null; + } else { + gmailSaves_ = null; + gmailSavesBuilder_ = null; + } + if (gmailSecondaryClicksBuilder_ == null) { + gmailSecondaryClicks_ = null; + } else { + gmailSecondaryClicks_ = null; + gmailSecondaryClicksBuilder_ = null; + } + if (impressionReachBuilder_ == null) { + impressionReach_ = null; + } else { + impressionReach_ = null; + impressionReachBuilder_ = null; + } if (impressionsBuilder_ == null) { impressions_ = null; } else { @@ -4078,6 +6637,8 @@ public Builder clear() { interactions_ = null; interactionsBuilder_ = null; } + interactionEventTypes_ = java.util.Collections.emptyList(); + bitField1_ = (bitField1_ & ~0x20000000); if (invalidClickRateBuilder_ == null) { invalidClickRate_ = null; } else { @@ -4126,12 +6687,30 @@ public Builder clear() { searchAbsoluteTopImpressionShare_ = null; searchAbsoluteTopImpressionShareBuilder_ = null; } + if (searchBudgetLostAbsoluteTopImpressionShareBuilder_ == null) { + searchBudgetLostAbsoluteTopImpressionShare_ = null; + } else { + searchBudgetLostAbsoluteTopImpressionShare_ = null; + searchBudgetLostAbsoluteTopImpressionShareBuilder_ = null; + } if (searchBudgetLostImpressionShareBuilder_ == null) { searchBudgetLostImpressionShare_ = null; } else { searchBudgetLostImpressionShare_ = null; searchBudgetLostImpressionShareBuilder_ = null; } + if (searchBudgetLostTopImpressionShareBuilder_ == null) { + searchBudgetLostTopImpressionShare_ = null; + } else { + searchBudgetLostTopImpressionShare_ = null; + searchBudgetLostTopImpressionShareBuilder_ = null; + } + if (searchClickShareBuilder_ == null) { + searchClickShare_ = null; + } else { + searchClickShare_ = null; + searchClickShareBuilder_ = null; + } if (searchExactMatchImpressionShareBuilder_ == null) { searchExactMatchImpressionShare_ = null; } else { @@ -4144,12 +6723,36 @@ public Builder clear() { searchImpressionShare_ = null; searchImpressionShareBuilder_ = null; } + if (searchRankLostAbsoluteTopImpressionShareBuilder_ == null) { + searchRankLostAbsoluteTopImpressionShare_ = null; + } else { + searchRankLostAbsoluteTopImpressionShare_ = null; + searchRankLostAbsoluteTopImpressionShareBuilder_ = null; + } if (searchRankLostImpressionShareBuilder_ == null) { searchRankLostImpressionShare_ = null; } else { searchRankLostImpressionShare_ = null; searchRankLostImpressionShareBuilder_ = null; } + if (searchRankLostTopImpressionShareBuilder_ == null) { + searchRankLostTopImpressionShare_ = null; + } else { + searchRankLostTopImpressionShare_ = null; + searchRankLostTopImpressionShareBuilder_ = null; + } + if (searchTopImpressionShareBuilder_ == null) { + searchTopImpressionShare_ = null; + } else { + searchTopImpressionShare_ = null; + searchTopImpressionShareBuilder_ = null; + } + if (topImpressionPercentageBuilder_ == null) { + topImpressionPercentage_ = null; + } else { + topImpressionPercentage_ = null; + topImpressionPercentageBuilder_ = null; + } if (valuePerAllConversionsBuilder_ == null) { valuePerAllConversions_ = null; } else { @@ -4162,6 +6765,12 @@ public Builder clear() { valuePerConversion_ = null; valuePerConversionBuilder_ = null; } + if (valuePerCurrentModelAttributedConversionBuilder_ == null) { + valuePerCurrentModelAttributedConversion_ = null; + } else { + valuePerCurrentModelAttributedConversion_ = null; + valuePerCurrentModelAttributedConversionBuilder_ = null; + } if (videoQuartile100RateBuilder_ == null) { videoQuartile100Rate_ = null; } else { @@ -4230,6 +6839,52 @@ public com.google.ads.googleads.v0.common.Metrics build() { @java.lang.Override public com.google.ads.googleads.v0.common.Metrics buildPartial() { com.google.ads.googleads.v0.common.Metrics result = new com.google.ads.googleads.v0.common.Metrics(this); + int from_bitField0_ = bitField0_; + int from_bitField1_ = bitField1_; + int from_bitField2_ = bitField2_; + int to_bitField0_ = 0; + int to_bitField1_ = 0; + int to_bitField2_ = 0; + if (absoluteTopImpressionPercentageBuilder_ == null) { + result.absoluteTopImpressionPercentage_ = absoluteTopImpressionPercentage_; + } else { + result.absoluteTopImpressionPercentage_ = absoluteTopImpressionPercentageBuilder_.build(); + } + if (activeViewCpmBuilder_ == null) { + result.activeViewCpm_ = activeViewCpm_; + } else { + result.activeViewCpm_ = activeViewCpmBuilder_.build(); + } + if (activeViewCtrBuilder_ == null) { + result.activeViewCtr_ = activeViewCtr_; + } else { + result.activeViewCtr_ = activeViewCtrBuilder_.build(); + } + if (activeViewImpressionsBuilder_ == null) { + result.activeViewImpressions_ = activeViewImpressions_; + } else { + result.activeViewImpressions_ = activeViewImpressionsBuilder_.build(); + } + if (activeViewMeasurabilityBuilder_ == null) { + result.activeViewMeasurability_ = activeViewMeasurability_; + } else { + result.activeViewMeasurability_ = activeViewMeasurabilityBuilder_.build(); + } + if (activeViewMeasurableCostMicrosBuilder_ == null) { + result.activeViewMeasurableCostMicros_ = activeViewMeasurableCostMicros_; + } else { + result.activeViewMeasurableCostMicros_ = activeViewMeasurableCostMicrosBuilder_.build(); + } + if (activeViewMeasurableImpressionsBuilder_ == null) { + result.activeViewMeasurableImpressions_ = activeViewMeasurableImpressions_; + } else { + result.activeViewMeasurableImpressions_ = activeViewMeasurableImpressionsBuilder_.build(); + } + if (activeViewViewabilityBuilder_ == null) { + result.activeViewViewability_ = activeViewViewability_; + } else { + result.activeViewViewability_ = activeViewViewabilityBuilder_.build(); + } if (allConversionsFromInteractionsRateBuilder_ == null) { result.allConversionsFromInteractionsRate_ = allConversionsFromInteractionsRate_; } else { @@ -4265,6 +6920,11 @@ public com.google.ads.googleads.v0.common.Metrics buildPartial() { } else { result.averageCpc_ = averageCpcBuilder_.build(); } + if (averageCpeBuilder_ == null) { + result.averageCpe_ = averageCpe_; + } else { + result.averageCpe_ = averageCpeBuilder_.build(); + } if (averageCpmBuilder_ == null) { result.averageCpm_ = averageCpm_; } else { @@ -4275,11 +6935,31 @@ public com.google.ads.googleads.v0.common.Metrics buildPartial() { } else { result.averageCpv_ = averageCpvBuilder_.build(); } + if (averageFrequencyBuilder_ == null) { + result.averageFrequency_ = averageFrequency_; + } else { + result.averageFrequency_ = averageFrequencyBuilder_.build(); + } + if (averagePageViewsBuilder_ == null) { + result.averagePageViews_ = averagePageViews_; + } else { + result.averagePageViews_ = averagePageViewsBuilder_.build(); + } if (averagePositionBuilder_ == null) { result.averagePosition_ = averagePosition_; } else { result.averagePosition_ = averagePositionBuilder_.build(); } + if (averageTimeOnSiteBuilder_ == null) { + result.averageTimeOnSite_ = averageTimeOnSite_; + } else { + result.averageTimeOnSite_ = averageTimeOnSiteBuilder_.build(); + } + if (benchmarkAverageMaxCpcBuilder_ == null) { + result.benchmarkAverageMaxCpc_ = benchmarkAverageMaxCpc_; + } else { + result.benchmarkAverageMaxCpc_ = benchmarkAverageMaxCpcBuilder_.build(); + } if (benchmarkCtrBuilder_ == null) { result.benchmarkCtr_ = benchmarkCtr_; } else { @@ -4360,6 +7040,11 @@ public com.google.ads.googleads.v0.common.Metrics buildPartial() { } else { result.costPerConversion_ = costPerConversionBuilder_.build(); } + if (costPerCurrentModelAttributedConversionBuilder_ == null) { + result.costPerCurrentModelAttributedConversion_ = costPerCurrentModelAttributedConversion_; + } else { + result.costPerCurrentModelAttributedConversion_ = costPerCurrentModelAttributedConversionBuilder_.build(); + } if (crossDeviceConversionsBuilder_ == null) { result.crossDeviceConversions_ = crossDeviceConversions_; } else { @@ -4370,6 +7055,31 @@ public com.google.ads.googleads.v0.common.Metrics buildPartial() { } else { result.ctr_ = ctrBuilder_.build(); } + if (currentModelAttributedConversionsBuilder_ == null) { + result.currentModelAttributedConversions_ = currentModelAttributedConversions_; + } else { + result.currentModelAttributedConversions_ = currentModelAttributedConversionsBuilder_.build(); + } + if (currentModelAttributedConversionsFromInteractionsRateBuilder_ == null) { + result.currentModelAttributedConversionsFromInteractionsRate_ = currentModelAttributedConversionsFromInteractionsRate_; + } else { + result.currentModelAttributedConversionsFromInteractionsRate_ = currentModelAttributedConversionsFromInteractionsRateBuilder_.build(); + } + if (currentModelAttributedConversionsFromInteractionsValuePerInteractionBuilder_ == null) { + result.currentModelAttributedConversionsFromInteractionsValuePerInteraction_ = currentModelAttributedConversionsFromInteractionsValuePerInteraction_; + } else { + result.currentModelAttributedConversionsFromInteractionsValuePerInteraction_ = currentModelAttributedConversionsFromInteractionsValuePerInteractionBuilder_.build(); + } + if (currentModelAttributedConversionsValueBuilder_ == null) { + result.currentModelAttributedConversionsValue_ = currentModelAttributedConversionsValue_; + } else { + result.currentModelAttributedConversionsValue_ = currentModelAttributedConversionsValueBuilder_.build(); + } + if (currentModelAttributedConversionsValuePerCostBuilder_ == null) { + result.currentModelAttributedConversionsValuePerCost_ = currentModelAttributedConversionsValuePerCost_; + } else { + result.currentModelAttributedConversionsValuePerCost_ = currentModelAttributedConversionsValuePerCostBuilder_.build(); + } if (engagementRateBuilder_ == null) { result.engagementRate_ = engagementRate_; } else { @@ -4385,6 +7095,34 @@ public com.google.ads.googleads.v0.common.Metrics buildPartial() { } else { result.hotelAverageLeadValueMicros_ = hotelAverageLeadValueMicrosBuilder_.build(); } + result.historicalCreativeQualityScore_ = historicalCreativeQualityScore_; + result.historicalLandingPageQualityScore_ = historicalLandingPageQualityScore_; + if (historicalQualityScoreBuilder_ == null) { + result.historicalQualityScore_ = historicalQualityScore_; + } else { + result.historicalQualityScore_ = historicalQualityScoreBuilder_.build(); + } + result.historicalSearchPredictedCtr_ = historicalSearchPredictedCtr_; + if (gmailForwardsBuilder_ == null) { + result.gmailForwards_ = gmailForwards_; + } else { + result.gmailForwards_ = gmailForwardsBuilder_.build(); + } + if (gmailSavesBuilder_ == null) { + result.gmailSaves_ = gmailSaves_; + } else { + result.gmailSaves_ = gmailSavesBuilder_.build(); + } + if (gmailSecondaryClicksBuilder_ == null) { + result.gmailSecondaryClicks_ = gmailSecondaryClicks_; + } else { + result.gmailSecondaryClicks_ = gmailSecondaryClicksBuilder_.build(); + } + if (impressionReachBuilder_ == null) { + result.impressionReach_ = impressionReach_; + } else { + result.impressionReach_ = impressionReachBuilder_.build(); + } if (impressionsBuilder_ == null) { result.impressions_ = impressions_; } else { @@ -4400,6 +7138,11 @@ public com.google.ads.googleads.v0.common.Metrics buildPartial() { } else { result.interactions_ = interactionsBuilder_.build(); } + if (((bitField1_ & 0x20000000) == 0x20000000)) { + interactionEventTypes_ = java.util.Collections.unmodifiableList(interactionEventTypes_); + bitField1_ = (bitField1_ & ~0x20000000); + } + result.interactionEventTypes_ = interactionEventTypes_; if (invalidClickRateBuilder_ == null) { result.invalidClickRate_ = invalidClickRate_; } else { @@ -4440,11 +7183,26 @@ public com.google.ads.googleads.v0.common.Metrics buildPartial() { } else { result.searchAbsoluteTopImpressionShare_ = searchAbsoluteTopImpressionShareBuilder_.build(); } + if (searchBudgetLostAbsoluteTopImpressionShareBuilder_ == null) { + result.searchBudgetLostAbsoluteTopImpressionShare_ = searchBudgetLostAbsoluteTopImpressionShare_; + } else { + result.searchBudgetLostAbsoluteTopImpressionShare_ = searchBudgetLostAbsoluteTopImpressionShareBuilder_.build(); + } if (searchBudgetLostImpressionShareBuilder_ == null) { result.searchBudgetLostImpressionShare_ = searchBudgetLostImpressionShare_; } else { result.searchBudgetLostImpressionShare_ = searchBudgetLostImpressionShareBuilder_.build(); } + if (searchBudgetLostTopImpressionShareBuilder_ == null) { + result.searchBudgetLostTopImpressionShare_ = searchBudgetLostTopImpressionShare_; + } else { + result.searchBudgetLostTopImpressionShare_ = searchBudgetLostTopImpressionShareBuilder_.build(); + } + if (searchClickShareBuilder_ == null) { + result.searchClickShare_ = searchClickShare_; + } else { + result.searchClickShare_ = searchClickShareBuilder_.build(); + } if (searchExactMatchImpressionShareBuilder_ == null) { result.searchExactMatchImpressionShare_ = searchExactMatchImpressionShare_; } else { @@ -4455,11 +7213,31 @@ public com.google.ads.googleads.v0.common.Metrics buildPartial() { } else { result.searchImpressionShare_ = searchImpressionShareBuilder_.build(); } + if (searchRankLostAbsoluteTopImpressionShareBuilder_ == null) { + result.searchRankLostAbsoluteTopImpressionShare_ = searchRankLostAbsoluteTopImpressionShare_; + } else { + result.searchRankLostAbsoluteTopImpressionShare_ = searchRankLostAbsoluteTopImpressionShareBuilder_.build(); + } if (searchRankLostImpressionShareBuilder_ == null) { result.searchRankLostImpressionShare_ = searchRankLostImpressionShare_; } else { result.searchRankLostImpressionShare_ = searchRankLostImpressionShareBuilder_.build(); } + if (searchRankLostTopImpressionShareBuilder_ == null) { + result.searchRankLostTopImpressionShare_ = searchRankLostTopImpressionShare_; + } else { + result.searchRankLostTopImpressionShare_ = searchRankLostTopImpressionShareBuilder_.build(); + } + if (searchTopImpressionShareBuilder_ == null) { + result.searchTopImpressionShare_ = searchTopImpressionShare_; + } else { + result.searchTopImpressionShare_ = searchTopImpressionShareBuilder_.build(); + } + if (topImpressionPercentageBuilder_ == null) { + result.topImpressionPercentage_ = topImpressionPercentage_; + } else { + result.topImpressionPercentage_ = topImpressionPercentageBuilder_.build(); + } if (valuePerAllConversionsBuilder_ == null) { result.valuePerAllConversions_ = valuePerAllConversions_; } else { @@ -4470,6 +7248,11 @@ public com.google.ads.googleads.v0.common.Metrics buildPartial() { } else { result.valuePerConversion_ = valuePerConversionBuilder_.build(); } + if (valuePerCurrentModelAttributedConversionBuilder_ == null) { + result.valuePerCurrentModelAttributedConversion_ = valuePerCurrentModelAttributedConversion_; + } else { + result.valuePerCurrentModelAttributedConversion_ = valuePerCurrentModelAttributedConversionBuilder_.build(); + } if (videoQuartile100RateBuilder_ == null) { result.videoQuartile100Rate_ = videoQuartile100Rate_; } else { @@ -4505,6 +7288,9 @@ public com.google.ads.googleads.v0.common.Metrics buildPartial() { } else { result.viewThroughConversions_ = viewThroughConversionsBuilder_.build(); } + result.bitField0_ = to_bitField0_; + result.bitField1_ = to_bitField1_; + result.bitField2_ = to_bitField2_; onBuilt(); return result; } @@ -4553,6 +7339,30 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.ads.googleads.v0.common.Metrics other) { if (other == com.google.ads.googleads.v0.common.Metrics.getDefaultInstance()) return this; + if (other.hasAbsoluteTopImpressionPercentage()) { + mergeAbsoluteTopImpressionPercentage(other.getAbsoluteTopImpressionPercentage()); + } + if (other.hasActiveViewCpm()) { + mergeActiveViewCpm(other.getActiveViewCpm()); + } + if (other.hasActiveViewCtr()) { + mergeActiveViewCtr(other.getActiveViewCtr()); + } + if (other.hasActiveViewImpressions()) { + mergeActiveViewImpressions(other.getActiveViewImpressions()); + } + if (other.hasActiveViewMeasurability()) { + mergeActiveViewMeasurability(other.getActiveViewMeasurability()); + } + if (other.hasActiveViewMeasurableCostMicros()) { + mergeActiveViewMeasurableCostMicros(other.getActiveViewMeasurableCostMicros()); + } + if (other.hasActiveViewMeasurableImpressions()) { + mergeActiveViewMeasurableImpressions(other.getActiveViewMeasurableImpressions()); + } + if (other.hasActiveViewViewability()) { + mergeActiveViewViewability(other.getActiveViewViewability()); + } if (other.hasAllConversionsFromInteractionsRate()) { mergeAllConversionsFromInteractionsRate(other.getAllConversionsFromInteractionsRate()); } @@ -4574,15 +7384,30 @@ public Builder mergeFrom(com.google.ads.googleads.v0.common.Metrics other) { if (other.hasAverageCpc()) { mergeAverageCpc(other.getAverageCpc()); } + if (other.hasAverageCpe()) { + mergeAverageCpe(other.getAverageCpe()); + } if (other.hasAverageCpm()) { mergeAverageCpm(other.getAverageCpm()); } if (other.hasAverageCpv()) { mergeAverageCpv(other.getAverageCpv()); } + if (other.hasAverageFrequency()) { + mergeAverageFrequency(other.getAverageFrequency()); + } + if (other.hasAveragePageViews()) { + mergeAveragePageViews(other.getAveragePageViews()); + } if (other.hasAveragePosition()) { mergeAveragePosition(other.getAveragePosition()); } + if (other.hasAverageTimeOnSite()) { + mergeAverageTimeOnSite(other.getAverageTimeOnSite()); + } + if (other.hasBenchmarkAverageMaxCpc()) { + mergeBenchmarkAverageMaxCpc(other.getBenchmarkAverageMaxCpc()); + } if (other.hasBenchmarkCtr()) { mergeBenchmarkCtr(other.getBenchmarkCtr()); } @@ -4631,12 +7456,30 @@ public Builder mergeFrom(com.google.ads.googleads.v0.common.Metrics other) { if (other.hasCostPerConversion()) { mergeCostPerConversion(other.getCostPerConversion()); } + if (other.hasCostPerCurrentModelAttributedConversion()) { + mergeCostPerCurrentModelAttributedConversion(other.getCostPerCurrentModelAttributedConversion()); + } if (other.hasCrossDeviceConversions()) { mergeCrossDeviceConversions(other.getCrossDeviceConversions()); } if (other.hasCtr()) { mergeCtr(other.getCtr()); } + if (other.hasCurrentModelAttributedConversions()) { + mergeCurrentModelAttributedConversions(other.getCurrentModelAttributedConversions()); + } + if (other.hasCurrentModelAttributedConversionsFromInteractionsRate()) { + mergeCurrentModelAttributedConversionsFromInteractionsRate(other.getCurrentModelAttributedConversionsFromInteractionsRate()); + } + if (other.hasCurrentModelAttributedConversionsFromInteractionsValuePerInteraction()) { + mergeCurrentModelAttributedConversionsFromInteractionsValuePerInteraction(other.getCurrentModelAttributedConversionsFromInteractionsValuePerInteraction()); + } + if (other.hasCurrentModelAttributedConversionsValue()) { + mergeCurrentModelAttributedConversionsValue(other.getCurrentModelAttributedConversionsValue()); + } + if (other.hasCurrentModelAttributedConversionsValuePerCost()) { + mergeCurrentModelAttributedConversionsValuePerCost(other.getCurrentModelAttributedConversionsValuePerCost()); + } if (other.hasEngagementRate()) { mergeEngagementRate(other.getEngagementRate()); } @@ -4646,6 +7489,30 @@ public Builder mergeFrom(com.google.ads.googleads.v0.common.Metrics other) { if (other.hasHotelAverageLeadValueMicros()) { mergeHotelAverageLeadValueMicros(other.getHotelAverageLeadValueMicros()); } + if (other.historicalCreativeQualityScore_ != 0) { + setHistoricalCreativeQualityScoreValue(other.getHistoricalCreativeQualityScoreValue()); + } + if (other.historicalLandingPageQualityScore_ != 0) { + setHistoricalLandingPageQualityScoreValue(other.getHistoricalLandingPageQualityScoreValue()); + } + if (other.hasHistoricalQualityScore()) { + mergeHistoricalQualityScore(other.getHistoricalQualityScore()); + } + if (other.historicalSearchPredictedCtr_ != 0) { + setHistoricalSearchPredictedCtrValue(other.getHistoricalSearchPredictedCtrValue()); + } + if (other.hasGmailForwards()) { + mergeGmailForwards(other.getGmailForwards()); + } + if (other.hasGmailSaves()) { + mergeGmailSaves(other.getGmailSaves()); + } + if (other.hasGmailSecondaryClicks()) { + mergeGmailSecondaryClicks(other.getGmailSecondaryClicks()); + } + if (other.hasImpressionReach()) { + mergeImpressionReach(other.getImpressionReach()); + } if (other.hasImpressions()) { mergeImpressions(other.getImpressions()); } @@ -4655,6 +7522,16 @@ public Builder mergeFrom(com.google.ads.googleads.v0.common.Metrics other) { if (other.hasInteractions()) { mergeInteractions(other.getInteractions()); } + if (!other.interactionEventTypes_.isEmpty()) { + if (interactionEventTypes_.isEmpty()) { + interactionEventTypes_ = other.interactionEventTypes_; + bitField1_ = (bitField1_ & ~0x20000000); + } else { + ensureInteractionEventTypesIsMutable(); + interactionEventTypes_.addAll(other.interactionEventTypes_); + } + onChanged(); + } if (other.hasInvalidClickRate()) { mergeInvalidClickRate(other.getInvalidClickRate()); } @@ -4679,24 +7556,48 @@ public Builder mergeFrom(com.google.ads.googleads.v0.common.Metrics other) { if (other.hasSearchAbsoluteTopImpressionShare()) { mergeSearchAbsoluteTopImpressionShare(other.getSearchAbsoluteTopImpressionShare()); } + if (other.hasSearchBudgetLostAbsoluteTopImpressionShare()) { + mergeSearchBudgetLostAbsoluteTopImpressionShare(other.getSearchBudgetLostAbsoluteTopImpressionShare()); + } if (other.hasSearchBudgetLostImpressionShare()) { mergeSearchBudgetLostImpressionShare(other.getSearchBudgetLostImpressionShare()); } + if (other.hasSearchBudgetLostTopImpressionShare()) { + mergeSearchBudgetLostTopImpressionShare(other.getSearchBudgetLostTopImpressionShare()); + } + if (other.hasSearchClickShare()) { + mergeSearchClickShare(other.getSearchClickShare()); + } if (other.hasSearchExactMatchImpressionShare()) { mergeSearchExactMatchImpressionShare(other.getSearchExactMatchImpressionShare()); } if (other.hasSearchImpressionShare()) { mergeSearchImpressionShare(other.getSearchImpressionShare()); } + if (other.hasSearchRankLostAbsoluteTopImpressionShare()) { + mergeSearchRankLostAbsoluteTopImpressionShare(other.getSearchRankLostAbsoluteTopImpressionShare()); + } if (other.hasSearchRankLostImpressionShare()) { mergeSearchRankLostImpressionShare(other.getSearchRankLostImpressionShare()); } + if (other.hasSearchRankLostTopImpressionShare()) { + mergeSearchRankLostTopImpressionShare(other.getSearchRankLostTopImpressionShare()); + } + if (other.hasSearchTopImpressionShare()) { + mergeSearchTopImpressionShare(other.getSearchTopImpressionShare()); + } + if (other.hasTopImpressionPercentage()) { + mergeTopImpressionPercentage(other.getTopImpressionPercentage()); + } if (other.hasValuePerAllConversions()) { mergeValuePerAllConversions(other.getValuePerAllConversions()); } if (other.hasValuePerConversion()) { mergeValuePerConversion(other.getValuePerConversion()); } + if (other.hasValuePerCurrentModelAttributedConversion()) { + mergeValuePerCurrentModelAttributedConversion(other.getValuePerCurrentModelAttributedConversion()); + } if (other.hasVideoQuartile100Rate()) { mergeVideoQuartile100Rate(other.getVideoQuartile100Rate()); } @@ -4746,7592 +7647,13194 @@ public Builder mergeFrom( } return this; } + private int bitField0_; + private int bitField1_; + private int bitField2_; - private com.google.protobuf.DoubleValue allConversionsFromInteractionsRate_ = null; + private com.google.protobuf.DoubleValue absoluteTopImpressionPercentage_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> allConversionsFromInteractionsRateBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> absoluteTopImpressionPercentageBuilder_; /** *
-     * All conversions from interactions (as oppose to view through conversions)
-     * divided by the number of ad interactions.
+     * The percent of your ad impressions that are shown as the very first ad
+     * above the organic search results.
      * 
* - * .google.protobuf.DoubleValue all_conversions_from_interactions_rate = 65; + * .google.protobuf.DoubleValue absolute_top_impression_percentage = 95; */ - public boolean hasAllConversionsFromInteractionsRate() { - return allConversionsFromInteractionsRateBuilder_ != null || allConversionsFromInteractionsRate_ != null; + public boolean hasAbsoluteTopImpressionPercentage() { + return absoluteTopImpressionPercentageBuilder_ != null || absoluteTopImpressionPercentage_ != null; } /** *
-     * All conversions from interactions (as oppose to view through conversions)
-     * divided by the number of ad interactions.
+     * The percent of your ad impressions that are shown as the very first ad
+     * above the organic search results.
      * 
* - * .google.protobuf.DoubleValue all_conversions_from_interactions_rate = 65; + * .google.protobuf.DoubleValue absolute_top_impression_percentage = 95; */ - public com.google.protobuf.DoubleValue getAllConversionsFromInteractionsRate() { - if (allConversionsFromInteractionsRateBuilder_ == null) { - return allConversionsFromInteractionsRate_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : allConversionsFromInteractionsRate_; + public com.google.protobuf.DoubleValue getAbsoluteTopImpressionPercentage() { + if (absoluteTopImpressionPercentageBuilder_ == null) { + return absoluteTopImpressionPercentage_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : absoluteTopImpressionPercentage_; } else { - return allConversionsFromInteractionsRateBuilder_.getMessage(); + return absoluteTopImpressionPercentageBuilder_.getMessage(); } } /** *
-     * All conversions from interactions (as oppose to view through conversions)
-     * divided by the number of ad interactions.
+     * The percent of your ad impressions that are shown as the very first ad
+     * above the organic search results.
      * 
* - * .google.protobuf.DoubleValue all_conversions_from_interactions_rate = 65; + * .google.protobuf.DoubleValue absolute_top_impression_percentage = 95; */ - public Builder setAllConversionsFromInteractionsRate(com.google.protobuf.DoubleValue value) { - if (allConversionsFromInteractionsRateBuilder_ == null) { + public Builder setAbsoluteTopImpressionPercentage(com.google.protobuf.DoubleValue value) { + if (absoluteTopImpressionPercentageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - allConversionsFromInteractionsRate_ = value; + absoluteTopImpressionPercentage_ = value; onChanged(); } else { - allConversionsFromInteractionsRateBuilder_.setMessage(value); + absoluteTopImpressionPercentageBuilder_.setMessage(value); } return this; } /** *
-     * All conversions from interactions (as oppose to view through conversions)
-     * divided by the number of ad interactions.
+     * The percent of your ad impressions that are shown as the very first ad
+     * above the organic search results.
      * 
* - * .google.protobuf.DoubleValue all_conversions_from_interactions_rate = 65; + * .google.protobuf.DoubleValue absolute_top_impression_percentage = 95; */ - public Builder setAllConversionsFromInteractionsRate( + public Builder setAbsoluteTopImpressionPercentage( com.google.protobuf.DoubleValue.Builder builderForValue) { - if (allConversionsFromInteractionsRateBuilder_ == null) { - allConversionsFromInteractionsRate_ = builderForValue.build(); + if (absoluteTopImpressionPercentageBuilder_ == null) { + absoluteTopImpressionPercentage_ = builderForValue.build(); onChanged(); } else { - allConversionsFromInteractionsRateBuilder_.setMessage(builderForValue.build()); + absoluteTopImpressionPercentageBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * All conversions from interactions (as oppose to view through conversions)
-     * divided by the number of ad interactions.
+     * The percent of your ad impressions that are shown as the very first ad
+     * above the organic search results.
      * 
* - * .google.protobuf.DoubleValue all_conversions_from_interactions_rate = 65; + * .google.protobuf.DoubleValue absolute_top_impression_percentage = 95; */ - public Builder mergeAllConversionsFromInteractionsRate(com.google.protobuf.DoubleValue value) { - if (allConversionsFromInteractionsRateBuilder_ == null) { - if (allConversionsFromInteractionsRate_ != null) { - allConversionsFromInteractionsRate_ = - com.google.protobuf.DoubleValue.newBuilder(allConversionsFromInteractionsRate_).mergeFrom(value).buildPartial(); + public Builder mergeAbsoluteTopImpressionPercentage(com.google.protobuf.DoubleValue value) { + if (absoluteTopImpressionPercentageBuilder_ == null) { + if (absoluteTopImpressionPercentage_ != null) { + absoluteTopImpressionPercentage_ = + com.google.protobuf.DoubleValue.newBuilder(absoluteTopImpressionPercentage_).mergeFrom(value).buildPartial(); } else { - allConversionsFromInteractionsRate_ = value; + absoluteTopImpressionPercentage_ = value; } onChanged(); } else { - allConversionsFromInteractionsRateBuilder_.mergeFrom(value); + absoluteTopImpressionPercentageBuilder_.mergeFrom(value); } return this; } /** *
-     * All conversions from interactions (as oppose to view through conversions)
-     * divided by the number of ad interactions.
+     * The percent of your ad impressions that are shown as the very first ad
+     * above the organic search results.
      * 
* - * .google.protobuf.DoubleValue all_conversions_from_interactions_rate = 65; + * .google.protobuf.DoubleValue absolute_top_impression_percentage = 95; */ - public Builder clearAllConversionsFromInteractionsRate() { - if (allConversionsFromInteractionsRateBuilder_ == null) { - allConversionsFromInteractionsRate_ = null; + public Builder clearAbsoluteTopImpressionPercentage() { + if (absoluteTopImpressionPercentageBuilder_ == null) { + absoluteTopImpressionPercentage_ = null; onChanged(); } else { - allConversionsFromInteractionsRate_ = null; - allConversionsFromInteractionsRateBuilder_ = null; + absoluteTopImpressionPercentage_ = null; + absoluteTopImpressionPercentageBuilder_ = null; } return this; } /** *
-     * All conversions from interactions (as oppose to view through conversions)
-     * divided by the number of ad interactions.
+     * The percent of your ad impressions that are shown as the very first ad
+     * above the organic search results.
      * 
* - * .google.protobuf.DoubleValue all_conversions_from_interactions_rate = 65; + * .google.protobuf.DoubleValue absolute_top_impression_percentage = 95; */ - public com.google.protobuf.DoubleValue.Builder getAllConversionsFromInteractionsRateBuilder() { + public com.google.protobuf.DoubleValue.Builder getAbsoluteTopImpressionPercentageBuilder() { onChanged(); - return getAllConversionsFromInteractionsRateFieldBuilder().getBuilder(); + return getAbsoluteTopImpressionPercentageFieldBuilder().getBuilder(); } /** *
-     * All conversions from interactions (as oppose to view through conversions)
-     * divided by the number of ad interactions.
+     * The percent of your ad impressions that are shown as the very first ad
+     * above the organic search results.
      * 
* - * .google.protobuf.DoubleValue all_conversions_from_interactions_rate = 65; + * .google.protobuf.DoubleValue absolute_top_impression_percentage = 95; */ - public com.google.protobuf.DoubleValueOrBuilder getAllConversionsFromInteractionsRateOrBuilder() { - if (allConversionsFromInteractionsRateBuilder_ != null) { - return allConversionsFromInteractionsRateBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getAbsoluteTopImpressionPercentageOrBuilder() { + if (absoluteTopImpressionPercentageBuilder_ != null) { + return absoluteTopImpressionPercentageBuilder_.getMessageOrBuilder(); } else { - return allConversionsFromInteractionsRate_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : allConversionsFromInteractionsRate_; + return absoluteTopImpressionPercentage_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : absoluteTopImpressionPercentage_; } } /** *
-     * All conversions from interactions (as oppose to view through conversions)
-     * divided by the number of ad interactions.
+     * The percent of your ad impressions that are shown as the very first ad
+     * above the organic search results.
      * 
* - * .google.protobuf.DoubleValue all_conversions_from_interactions_rate = 65; + * .google.protobuf.DoubleValue absolute_top_impression_percentage = 95; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - getAllConversionsFromInteractionsRateFieldBuilder() { - if (allConversionsFromInteractionsRateBuilder_ == null) { - allConversionsFromInteractionsRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getAbsoluteTopImpressionPercentageFieldBuilder() { + if (absoluteTopImpressionPercentageBuilder_ == null) { + absoluteTopImpressionPercentageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getAllConversionsFromInteractionsRate(), + getAbsoluteTopImpressionPercentage(), getParentForChildren(), isClean()); - allConversionsFromInteractionsRate_ = null; + absoluteTopImpressionPercentage_ = null; } - return allConversionsFromInteractionsRateBuilder_; + return absoluteTopImpressionPercentageBuilder_; } - private com.google.protobuf.DoubleValue allConversionsValue_ = null; + private com.google.protobuf.DoubleValue activeViewCpm_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> allConversionsValueBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> activeViewCpmBuilder_; /** *
-     * The total value of all conversions.
+     * Average cost of viewable impressions (`active_view_impressions`).
      * 
* - * .google.protobuf.DoubleValue all_conversions_value = 66; + * .google.protobuf.DoubleValue active_view_cpm = 1; */ - public boolean hasAllConversionsValue() { - return allConversionsValueBuilder_ != null || allConversionsValue_ != null; + public boolean hasActiveViewCpm() { + return activeViewCpmBuilder_ != null || activeViewCpm_ != null; } /** *
-     * The total value of all conversions.
+     * Average cost of viewable impressions (`active_view_impressions`).
      * 
* - * .google.protobuf.DoubleValue all_conversions_value = 66; + * .google.protobuf.DoubleValue active_view_cpm = 1; */ - public com.google.protobuf.DoubleValue getAllConversionsValue() { - if (allConversionsValueBuilder_ == null) { - return allConversionsValue_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : allConversionsValue_; + public com.google.protobuf.DoubleValue getActiveViewCpm() { + if (activeViewCpmBuilder_ == null) { + return activeViewCpm_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : activeViewCpm_; } else { - return allConversionsValueBuilder_.getMessage(); + return activeViewCpmBuilder_.getMessage(); } } /** *
-     * The total value of all conversions.
+     * Average cost of viewable impressions (`active_view_impressions`).
      * 
* - * .google.protobuf.DoubleValue all_conversions_value = 66; + * .google.protobuf.DoubleValue active_view_cpm = 1; */ - public Builder setAllConversionsValue(com.google.protobuf.DoubleValue value) { - if (allConversionsValueBuilder_ == null) { + public Builder setActiveViewCpm(com.google.protobuf.DoubleValue value) { + if (activeViewCpmBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - allConversionsValue_ = value; + activeViewCpm_ = value; onChanged(); } else { - allConversionsValueBuilder_.setMessage(value); + activeViewCpmBuilder_.setMessage(value); } return this; } /** *
-     * The total value of all conversions.
+     * Average cost of viewable impressions (`active_view_impressions`).
      * 
* - * .google.protobuf.DoubleValue all_conversions_value = 66; + * .google.protobuf.DoubleValue active_view_cpm = 1; */ - public Builder setAllConversionsValue( + public Builder setActiveViewCpm( com.google.protobuf.DoubleValue.Builder builderForValue) { - if (allConversionsValueBuilder_ == null) { - allConversionsValue_ = builderForValue.build(); + if (activeViewCpmBuilder_ == null) { + activeViewCpm_ = builderForValue.build(); onChanged(); } else { - allConversionsValueBuilder_.setMessage(builderForValue.build()); + activeViewCpmBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The total value of all conversions.
+     * Average cost of viewable impressions (`active_view_impressions`).
      * 
* - * .google.protobuf.DoubleValue all_conversions_value = 66; + * .google.protobuf.DoubleValue active_view_cpm = 1; */ - public Builder mergeAllConversionsValue(com.google.protobuf.DoubleValue value) { - if (allConversionsValueBuilder_ == null) { - if (allConversionsValue_ != null) { - allConversionsValue_ = - com.google.protobuf.DoubleValue.newBuilder(allConversionsValue_).mergeFrom(value).buildPartial(); + public Builder mergeActiveViewCpm(com.google.protobuf.DoubleValue value) { + if (activeViewCpmBuilder_ == null) { + if (activeViewCpm_ != null) { + activeViewCpm_ = + com.google.protobuf.DoubleValue.newBuilder(activeViewCpm_).mergeFrom(value).buildPartial(); } else { - allConversionsValue_ = value; + activeViewCpm_ = value; } onChanged(); } else { - allConversionsValueBuilder_.mergeFrom(value); + activeViewCpmBuilder_.mergeFrom(value); } return this; } /** *
-     * The total value of all conversions.
+     * Average cost of viewable impressions (`active_view_impressions`).
      * 
* - * .google.protobuf.DoubleValue all_conversions_value = 66; + * .google.protobuf.DoubleValue active_view_cpm = 1; */ - public Builder clearAllConversionsValue() { - if (allConversionsValueBuilder_ == null) { - allConversionsValue_ = null; + public Builder clearActiveViewCpm() { + if (activeViewCpmBuilder_ == null) { + activeViewCpm_ = null; onChanged(); } else { - allConversionsValue_ = null; - allConversionsValueBuilder_ = null; + activeViewCpm_ = null; + activeViewCpmBuilder_ = null; } return this; } /** *
-     * The total value of all conversions.
+     * Average cost of viewable impressions (`active_view_impressions`).
      * 
* - * .google.protobuf.DoubleValue all_conversions_value = 66; + * .google.protobuf.DoubleValue active_view_cpm = 1; */ - public com.google.protobuf.DoubleValue.Builder getAllConversionsValueBuilder() { + public com.google.protobuf.DoubleValue.Builder getActiveViewCpmBuilder() { onChanged(); - return getAllConversionsValueFieldBuilder().getBuilder(); + return getActiveViewCpmFieldBuilder().getBuilder(); } /** *
-     * The total value of all conversions.
+     * Average cost of viewable impressions (`active_view_impressions`).
      * 
* - * .google.protobuf.DoubleValue all_conversions_value = 66; + * .google.protobuf.DoubleValue active_view_cpm = 1; */ - public com.google.protobuf.DoubleValueOrBuilder getAllConversionsValueOrBuilder() { - if (allConversionsValueBuilder_ != null) { - return allConversionsValueBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getActiveViewCpmOrBuilder() { + if (activeViewCpmBuilder_ != null) { + return activeViewCpmBuilder_.getMessageOrBuilder(); } else { - return allConversionsValue_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : allConversionsValue_; + return activeViewCpm_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : activeViewCpm_; } } /** *
-     * The total value of all conversions.
+     * Average cost of viewable impressions (`active_view_impressions`).
      * 
* - * .google.protobuf.DoubleValue all_conversions_value = 66; + * .google.protobuf.DoubleValue active_view_cpm = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - getAllConversionsValueFieldBuilder() { - if (allConversionsValueBuilder_ == null) { - allConversionsValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getActiveViewCpmFieldBuilder() { + if (activeViewCpmBuilder_ == null) { + activeViewCpmBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getAllConversionsValue(), + getActiveViewCpm(), getParentForChildren(), isClean()); - allConversionsValue_ = null; + activeViewCpm_ = null; } - return allConversionsValueBuilder_; + return activeViewCpmBuilder_; } - private com.google.protobuf.DoubleValue allConversions_ = null; + private com.google.protobuf.DoubleValue activeViewCtr_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> allConversionsBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> activeViewCtrBuilder_; /** *
-     * The total number of conversions. This includes "Conversions" plus
-     * conversions that have their "Include in Conversions" setting unchecked.
+     * Active view measurable clicks divided by active view viewable impressions.
+     * This metric is reported only for display network.
      * 
* - * .google.protobuf.DoubleValue all_conversions = 7; + * .google.protobuf.DoubleValue active_view_ctr = 79; */ - public boolean hasAllConversions() { - return allConversionsBuilder_ != null || allConversions_ != null; + public boolean hasActiveViewCtr() { + return activeViewCtrBuilder_ != null || activeViewCtr_ != null; } /** *
-     * The total number of conversions. This includes "Conversions" plus
-     * conversions that have their "Include in Conversions" setting unchecked.
+     * Active view measurable clicks divided by active view viewable impressions.
+     * This metric is reported only for display network.
      * 
* - * .google.protobuf.DoubleValue all_conversions = 7; + * .google.protobuf.DoubleValue active_view_ctr = 79; */ - public com.google.protobuf.DoubleValue getAllConversions() { - if (allConversionsBuilder_ == null) { - return allConversions_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : allConversions_; + public com.google.protobuf.DoubleValue getActiveViewCtr() { + if (activeViewCtrBuilder_ == null) { + return activeViewCtr_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : activeViewCtr_; } else { - return allConversionsBuilder_.getMessage(); + return activeViewCtrBuilder_.getMessage(); } } /** *
-     * The total number of conversions. This includes "Conversions" plus
-     * conversions that have their "Include in Conversions" setting unchecked.
+     * Active view measurable clicks divided by active view viewable impressions.
+     * This metric is reported only for display network.
      * 
* - * .google.protobuf.DoubleValue all_conversions = 7; + * .google.protobuf.DoubleValue active_view_ctr = 79; */ - public Builder setAllConversions(com.google.protobuf.DoubleValue value) { - if (allConversionsBuilder_ == null) { + public Builder setActiveViewCtr(com.google.protobuf.DoubleValue value) { + if (activeViewCtrBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - allConversions_ = value; + activeViewCtr_ = value; onChanged(); } else { - allConversionsBuilder_.setMessage(value); + activeViewCtrBuilder_.setMessage(value); } return this; } /** *
-     * The total number of conversions. This includes "Conversions" plus
-     * conversions that have their "Include in Conversions" setting unchecked.
+     * Active view measurable clicks divided by active view viewable impressions.
+     * This metric is reported only for display network.
      * 
* - * .google.protobuf.DoubleValue all_conversions = 7; + * .google.protobuf.DoubleValue active_view_ctr = 79; */ - public Builder setAllConversions( + public Builder setActiveViewCtr( com.google.protobuf.DoubleValue.Builder builderForValue) { - if (allConversionsBuilder_ == null) { - allConversions_ = builderForValue.build(); + if (activeViewCtrBuilder_ == null) { + activeViewCtr_ = builderForValue.build(); onChanged(); } else { - allConversionsBuilder_.setMessage(builderForValue.build()); + activeViewCtrBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The total number of conversions. This includes "Conversions" plus
-     * conversions that have their "Include in Conversions" setting unchecked.
+     * Active view measurable clicks divided by active view viewable impressions.
+     * This metric is reported only for display network.
      * 
* - * .google.protobuf.DoubleValue all_conversions = 7; + * .google.protobuf.DoubleValue active_view_ctr = 79; */ - public Builder mergeAllConversions(com.google.protobuf.DoubleValue value) { - if (allConversionsBuilder_ == null) { - if (allConversions_ != null) { - allConversions_ = - com.google.protobuf.DoubleValue.newBuilder(allConversions_).mergeFrom(value).buildPartial(); + public Builder mergeActiveViewCtr(com.google.protobuf.DoubleValue value) { + if (activeViewCtrBuilder_ == null) { + if (activeViewCtr_ != null) { + activeViewCtr_ = + com.google.protobuf.DoubleValue.newBuilder(activeViewCtr_).mergeFrom(value).buildPartial(); } else { - allConversions_ = value; + activeViewCtr_ = value; } onChanged(); } else { - allConversionsBuilder_.mergeFrom(value); + activeViewCtrBuilder_.mergeFrom(value); } return this; } /** *
-     * The total number of conversions. This includes "Conversions" plus
-     * conversions that have their "Include in Conversions" setting unchecked.
+     * Active view measurable clicks divided by active view viewable impressions.
+     * This metric is reported only for display network.
      * 
* - * .google.protobuf.DoubleValue all_conversions = 7; + * .google.protobuf.DoubleValue active_view_ctr = 79; */ - public Builder clearAllConversions() { - if (allConversionsBuilder_ == null) { - allConversions_ = null; + public Builder clearActiveViewCtr() { + if (activeViewCtrBuilder_ == null) { + activeViewCtr_ = null; onChanged(); } else { - allConversions_ = null; - allConversionsBuilder_ = null; + activeViewCtr_ = null; + activeViewCtrBuilder_ = null; } return this; } /** *
-     * The total number of conversions. This includes "Conversions" plus
-     * conversions that have their "Include in Conversions" setting unchecked.
+     * Active view measurable clicks divided by active view viewable impressions.
+     * This metric is reported only for display network.
      * 
* - * .google.protobuf.DoubleValue all_conversions = 7; + * .google.protobuf.DoubleValue active_view_ctr = 79; */ - public com.google.protobuf.DoubleValue.Builder getAllConversionsBuilder() { + public com.google.protobuf.DoubleValue.Builder getActiveViewCtrBuilder() { onChanged(); - return getAllConversionsFieldBuilder().getBuilder(); + return getActiveViewCtrFieldBuilder().getBuilder(); } /** *
-     * The total number of conversions. This includes "Conversions" plus
-     * conversions that have their "Include in Conversions" setting unchecked.
+     * Active view measurable clicks divided by active view viewable impressions.
+     * This metric is reported only for display network.
      * 
* - * .google.protobuf.DoubleValue all_conversions = 7; + * .google.protobuf.DoubleValue active_view_ctr = 79; */ - public com.google.protobuf.DoubleValueOrBuilder getAllConversionsOrBuilder() { - if (allConversionsBuilder_ != null) { - return allConversionsBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getActiveViewCtrOrBuilder() { + if (activeViewCtrBuilder_ != null) { + return activeViewCtrBuilder_.getMessageOrBuilder(); } else { - return allConversions_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : allConversions_; + return activeViewCtr_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : activeViewCtr_; } } /** *
-     * The total number of conversions. This includes "Conversions" plus
-     * conversions that have their "Include in Conversions" setting unchecked.
+     * Active view measurable clicks divided by active view viewable impressions.
+     * This metric is reported only for display network.
      * 
* - * .google.protobuf.DoubleValue all_conversions = 7; + * .google.protobuf.DoubleValue active_view_ctr = 79; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - getAllConversionsFieldBuilder() { - if (allConversionsBuilder_ == null) { - allConversionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getActiveViewCtrFieldBuilder() { + if (activeViewCtrBuilder_ == null) { + activeViewCtrBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getAllConversions(), + getActiveViewCtr(), getParentForChildren(), isClean()); - allConversions_ = null; + activeViewCtr_ = null; } - return allConversionsBuilder_; + return activeViewCtrBuilder_; } - private com.google.protobuf.DoubleValue allConversionsValuePerCost_ = null; + private com.google.protobuf.Int64Value activeViewImpressions_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> allConversionsValuePerCostBuilder_; + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> activeViewImpressionsBuilder_; /** *
-     * The value of all conversions divided by the total cost of ad interactions
-     * (such as clicks for text ads or views for video ads).
+     * A measurement of how often your ad has become viewable on a Display
+     * Network site.
      * 
* - * .google.protobuf.DoubleValue all_conversions_value_per_cost = 62; + * .google.protobuf.Int64Value active_view_impressions = 2; */ - public boolean hasAllConversionsValuePerCost() { - return allConversionsValuePerCostBuilder_ != null || allConversionsValuePerCost_ != null; + public boolean hasActiveViewImpressions() { + return activeViewImpressionsBuilder_ != null || activeViewImpressions_ != null; } /** *
-     * The value of all conversions divided by the total cost of ad interactions
-     * (such as clicks for text ads or views for video ads).
+     * A measurement of how often your ad has become viewable on a Display
+     * Network site.
      * 
* - * .google.protobuf.DoubleValue all_conversions_value_per_cost = 62; + * .google.protobuf.Int64Value active_view_impressions = 2; */ - public com.google.protobuf.DoubleValue getAllConversionsValuePerCost() { - if (allConversionsValuePerCostBuilder_ == null) { - return allConversionsValuePerCost_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : allConversionsValuePerCost_; + public com.google.protobuf.Int64Value getActiveViewImpressions() { + if (activeViewImpressionsBuilder_ == null) { + return activeViewImpressions_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : activeViewImpressions_; } else { - return allConversionsValuePerCostBuilder_.getMessage(); + return activeViewImpressionsBuilder_.getMessage(); } } /** *
-     * The value of all conversions divided by the total cost of ad interactions
-     * (such as clicks for text ads or views for video ads).
+     * A measurement of how often your ad has become viewable on a Display
+     * Network site.
      * 
* - * .google.protobuf.DoubleValue all_conversions_value_per_cost = 62; + * .google.protobuf.Int64Value active_view_impressions = 2; */ - public Builder setAllConversionsValuePerCost(com.google.protobuf.DoubleValue value) { - if (allConversionsValuePerCostBuilder_ == null) { + public Builder setActiveViewImpressions(com.google.protobuf.Int64Value value) { + if (activeViewImpressionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - allConversionsValuePerCost_ = value; + activeViewImpressions_ = value; onChanged(); } else { - allConversionsValuePerCostBuilder_.setMessage(value); + activeViewImpressionsBuilder_.setMessage(value); } return this; } /** *
-     * The value of all conversions divided by the total cost of ad interactions
-     * (such as clicks for text ads or views for video ads).
+     * A measurement of how often your ad has become viewable on a Display
+     * Network site.
      * 
* - * .google.protobuf.DoubleValue all_conversions_value_per_cost = 62; + * .google.protobuf.Int64Value active_view_impressions = 2; */ - public Builder setAllConversionsValuePerCost( - com.google.protobuf.DoubleValue.Builder builderForValue) { - if (allConversionsValuePerCostBuilder_ == null) { - allConversionsValuePerCost_ = builderForValue.build(); + public Builder setActiveViewImpressions( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (activeViewImpressionsBuilder_ == null) { + activeViewImpressions_ = builderForValue.build(); onChanged(); } else { - allConversionsValuePerCostBuilder_.setMessage(builderForValue.build()); + activeViewImpressionsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The value of all conversions divided by the total cost of ad interactions
-     * (such as clicks for text ads or views for video ads).
+     * A measurement of how often your ad has become viewable on a Display
+     * Network site.
      * 
* - * .google.protobuf.DoubleValue all_conversions_value_per_cost = 62; + * .google.protobuf.Int64Value active_view_impressions = 2; */ - public Builder mergeAllConversionsValuePerCost(com.google.protobuf.DoubleValue value) { - if (allConversionsValuePerCostBuilder_ == null) { - if (allConversionsValuePerCost_ != null) { - allConversionsValuePerCost_ = - com.google.protobuf.DoubleValue.newBuilder(allConversionsValuePerCost_).mergeFrom(value).buildPartial(); + public Builder mergeActiveViewImpressions(com.google.protobuf.Int64Value value) { + if (activeViewImpressionsBuilder_ == null) { + if (activeViewImpressions_ != null) { + activeViewImpressions_ = + com.google.protobuf.Int64Value.newBuilder(activeViewImpressions_).mergeFrom(value).buildPartial(); } else { - allConversionsValuePerCost_ = value; + activeViewImpressions_ = value; } onChanged(); } else { - allConversionsValuePerCostBuilder_.mergeFrom(value); + activeViewImpressionsBuilder_.mergeFrom(value); } return this; } /** *
-     * The value of all conversions divided by the total cost of ad interactions
-     * (such as clicks for text ads or views for video ads).
+     * A measurement of how often your ad has become viewable on a Display
+     * Network site.
      * 
* - * .google.protobuf.DoubleValue all_conversions_value_per_cost = 62; + * .google.protobuf.Int64Value active_view_impressions = 2; */ - public Builder clearAllConversionsValuePerCost() { - if (allConversionsValuePerCostBuilder_ == null) { - allConversionsValuePerCost_ = null; + public Builder clearActiveViewImpressions() { + if (activeViewImpressionsBuilder_ == null) { + activeViewImpressions_ = null; onChanged(); } else { - allConversionsValuePerCost_ = null; - allConversionsValuePerCostBuilder_ = null; + activeViewImpressions_ = null; + activeViewImpressionsBuilder_ = null; } return this; } /** *
-     * The value of all conversions divided by the total cost of ad interactions
-     * (such as clicks for text ads or views for video ads).
+     * A measurement of how often your ad has become viewable on a Display
+     * Network site.
      * 
* - * .google.protobuf.DoubleValue all_conversions_value_per_cost = 62; + * .google.protobuf.Int64Value active_view_impressions = 2; */ - public com.google.protobuf.DoubleValue.Builder getAllConversionsValuePerCostBuilder() { + public com.google.protobuf.Int64Value.Builder getActiveViewImpressionsBuilder() { onChanged(); - return getAllConversionsValuePerCostFieldBuilder().getBuilder(); + return getActiveViewImpressionsFieldBuilder().getBuilder(); } /** *
-     * The value of all conversions divided by the total cost of ad interactions
-     * (such as clicks for text ads or views for video ads).
+     * A measurement of how often your ad has become viewable on a Display
+     * Network site.
      * 
* - * .google.protobuf.DoubleValue all_conversions_value_per_cost = 62; + * .google.protobuf.Int64Value active_view_impressions = 2; */ - public com.google.protobuf.DoubleValueOrBuilder getAllConversionsValuePerCostOrBuilder() { - if (allConversionsValuePerCostBuilder_ != null) { - return allConversionsValuePerCostBuilder_.getMessageOrBuilder(); + public com.google.protobuf.Int64ValueOrBuilder getActiveViewImpressionsOrBuilder() { + if (activeViewImpressionsBuilder_ != null) { + return activeViewImpressionsBuilder_.getMessageOrBuilder(); } else { - return allConversionsValuePerCost_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : allConversionsValuePerCost_; + return activeViewImpressions_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : activeViewImpressions_; } } /** *
-     * The value of all conversions divided by the total cost of ad interactions
-     * (such as clicks for text ads or views for video ads).
+     * A measurement of how often your ad has become viewable on a Display
+     * Network site.
      * 
* - * .google.protobuf.DoubleValue all_conversions_value_per_cost = 62; + * .google.protobuf.Int64Value active_view_impressions = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - getAllConversionsValuePerCostFieldBuilder() { - if (allConversionsValuePerCostBuilder_ == null) { - allConversionsValuePerCostBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getAllConversionsValuePerCost(), + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + getActiveViewImpressionsFieldBuilder() { + if (activeViewImpressionsBuilder_ == null) { + activeViewImpressionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getActiveViewImpressions(), getParentForChildren(), isClean()); - allConversionsValuePerCost_ = null; + activeViewImpressions_ = null; } - return allConversionsValuePerCostBuilder_; + return activeViewImpressionsBuilder_; } - private com.google.protobuf.DoubleValue allConversionsFromInteractionsValuePerInteraction_ = null; + private com.google.protobuf.DoubleValue activeViewMeasurability_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> allConversionsFromInteractionsValuePerInteractionBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> activeViewMeasurabilityBuilder_; /** *
-     * The value of all conversions from interactions divided by the total number
-     * of interactions.
+     * The ratio of impressions that could be measured by Active View over the
+     * number of served impressions.
      * 
* - * .google.protobuf.DoubleValue all_conversions_from_interactions_value_per_interaction = 67; + * .google.protobuf.DoubleValue active_view_measurability = 96; */ - public boolean hasAllConversionsFromInteractionsValuePerInteraction() { - return allConversionsFromInteractionsValuePerInteractionBuilder_ != null || allConversionsFromInteractionsValuePerInteraction_ != null; + public boolean hasActiveViewMeasurability() { + return activeViewMeasurabilityBuilder_ != null || activeViewMeasurability_ != null; } /** *
-     * The value of all conversions from interactions divided by the total number
-     * of interactions.
+     * The ratio of impressions that could be measured by Active View over the
+     * number of served impressions.
      * 
* - * .google.protobuf.DoubleValue all_conversions_from_interactions_value_per_interaction = 67; + * .google.protobuf.DoubleValue active_view_measurability = 96; */ - public com.google.protobuf.DoubleValue getAllConversionsFromInteractionsValuePerInteraction() { - if (allConversionsFromInteractionsValuePerInteractionBuilder_ == null) { - return allConversionsFromInteractionsValuePerInteraction_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : allConversionsFromInteractionsValuePerInteraction_; + public com.google.protobuf.DoubleValue getActiveViewMeasurability() { + if (activeViewMeasurabilityBuilder_ == null) { + return activeViewMeasurability_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : activeViewMeasurability_; } else { - return allConversionsFromInteractionsValuePerInteractionBuilder_.getMessage(); + return activeViewMeasurabilityBuilder_.getMessage(); } } /** *
-     * The value of all conversions from interactions divided by the total number
-     * of interactions.
+     * The ratio of impressions that could be measured by Active View over the
+     * number of served impressions.
      * 
* - * .google.protobuf.DoubleValue all_conversions_from_interactions_value_per_interaction = 67; + * .google.protobuf.DoubleValue active_view_measurability = 96; */ - public Builder setAllConversionsFromInteractionsValuePerInteraction(com.google.protobuf.DoubleValue value) { - if (allConversionsFromInteractionsValuePerInteractionBuilder_ == null) { + public Builder setActiveViewMeasurability(com.google.protobuf.DoubleValue value) { + if (activeViewMeasurabilityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - allConversionsFromInteractionsValuePerInteraction_ = value; + activeViewMeasurability_ = value; onChanged(); } else { - allConversionsFromInteractionsValuePerInteractionBuilder_.setMessage(value); + activeViewMeasurabilityBuilder_.setMessage(value); } return this; } /** *
-     * The value of all conversions from interactions divided by the total number
-     * of interactions.
+     * The ratio of impressions that could be measured by Active View over the
+     * number of served impressions.
      * 
* - * .google.protobuf.DoubleValue all_conversions_from_interactions_value_per_interaction = 67; + * .google.protobuf.DoubleValue active_view_measurability = 96; */ - public Builder setAllConversionsFromInteractionsValuePerInteraction( + public Builder setActiveViewMeasurability( com.google.protobuf.DoubleValue.Builder builderForValue) { - if (allConversionsFromInteractionsValuePerInteractionBuilder_ == null) { - allConversionsFromInteractionsValuePerInteraction_ = builderForValue.build(); + if (activeViewMeasurabilityBuilder_ == null) { + activeViewMeasurability_ = builderForValue.build(); onChanged(); } else { - allConversionsFromInteractionsValuePerInteractionBuilder_.setMessage(builderForValue.build()); + activeViewMeasurabilityBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The value of all conversions from interactions divided by the total number
-     * of interactions.
+     * The ratio of impressions that could be measured by Active View over the
+     * number of served impressions.
      * 
* - * .google.protobuf.DoubleValue all_conversions_from_interactions_value_per_interaction = 67; + * .google.protobuf.DoubleValue active_view_measurability = 96; */ - public Builder mergeAllConversionsFromInteractionsValuePerInteraction(com.google.protobuf.DoubleValue value) { - if (allConversionsFromInteractionsValuePerInteractionBuilder_ == null) { - if (allConversionsFromInteractionsValuePerInteraction_ != null) { - allConversionsFromInteractionsValuePerInteraction_ = - com.google.protobuf.DoubleValue.newBuilder(allConversionsFromInteractionsValuePerInteraction_).mergeFrom(value).buildPartial(); + public Builder mergeActiveViewMeasurability(com.google.protobuf.DoubleValue value) { + if (activeViewMeasurabilityBuilder_ == null) { + if (activeViewMeasurability_ != null) { + activeViewMeasurability_ = + com.google.protobuf.DoubleValue.newBuilder(activeViewMeasurability_).mergeFrom(value).buildPartial(); } else { - allConversionsFromInteractionsValuePerInteraction_ = value; + activeViewMeasurability_ = value; } onChanged(); } else { - allConversionsFromInteractionsValuePerInteractionBuilder_.mergeFrom(value); + activeViewMeasurabilityBuilder_.mergeFrom(value); } return this; } /** *
-     * The value of all conversions from interactions divided by the total number
-     * of interactions.
+     * The ratio of impressions that could be measured by Active View over the
+     * number of served impressions.
      * 
* - * .google.protobuf.DoubleValue all_conversions_from_interactions_value_per_interaction = 67; + * .google.protobuf.DoubleValue active_view_measurability = 96; */ - public Builder clearAllConversionsFromInteractionsValuePerInteraction() { - if (allConversionsFromInteractionsValuePerInteractionBuilder_ == null) { - allConversionsFromInteractionsValuePerInteraction_ = null; + public Builder clearActiveViewMeasurability() { + if (activeViewMeasurabilityBuilder_ == null) { + activeViewMeasurability_ = null; onChanged(); } else { - allConversionsFromInteractionsValuePerInteraction_ = null; - allConversionsFromInteractionsValuePerInteractionBuilder_ = null; + activeViewMeasurability_ = null; + activeViewMeasurabilityBuilder_ = null; } return this; } /** *
-     * The value of all conversions from interactions divided by the total number
-     * of interactions.
+     * The ratio of impressions that could be measured by Active View over the
+     * number of served impressions.
      * 
* - * .google.protobuf.DoubleValue all_conversions_from_interactions_value_per_interaction = 67; + * .google.protobuf.DoubleValue active_view_measurability = 96; */ - public com.google.protobuf.DoubleValue.Builder getAllConversionsFromInteractionsValuePerInteractionBuilder() { + public com.google.protobuf.DoubleValue.Builder getActiveViewMeasurabilityBuilder() { onChanged(); - return getAllConversionsFromInteractionsValuePerInteractionFieldBuilder().getBuilder(); + return getActiveViewMeasurabilityFieldBuilder().getBuilder(); } /** *
-     * The value of all conversions from interactions divided by the total number
-     * of interactions.
+     * The ratio of impressions that could be measured by Active View over the
+     * number of served impressions.
      * 
* - * .google.protobuf.DoubleValue all_conversions_from_interactions_value_per_interaction = 67; + * .google.protobuf.DoubleValue active_view_measurability = 96; */ - public com.google.protobuf.DoubleValueOrBuilder getAllConversionsFromInteractionsValuePerInteractionOrBuilder() { - if (allConversionsFromInteractionsValuePerInteractionBuilder_ != null) { - return allConversionsFromInteractionsValuePerInteractionBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getActiveViewMeasurabilityOrBuilder() { + if (activeViewMeasurabilityBuilder_ != null) { + return activeViewMeasurabilityBuilder_.getMessageOrBuilder(); } else { - return allConversionsFromInteractionsValuePerInteraction_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : allConversionsFromInteractionsValuePerInteraction_; + return activeViewMeasurability_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : activeViewMeasurability_; } } /** *
-     * The value of all conversions from interactions divided by the total number
-     * of interactions.
+     * The ratio of impressions that could be measured by Active View over the
+     * number of served impressions.
      * 
* - * .google.protobuf.DoubleValue all_conversions_from_interactions_value_per_interaction = 67; + * .google.protobuf.DoubleValue active_view_measurability = 96; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - getAllConversionsFromInteractionsValuePerInteractionFieldBuilder() { - if (allConversionsFromInteractionsValuePerInteractionBuilder_ == null) { - allConversionsFromInteractionsValuePerInteractionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getActiveViewMeasurabilityFieldBuilder() { + if (activeViewMeasurabilityBuilder_ == null) { + activeViewMeasurabilityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getAllConversionsFromInteractionsValuePerInteraction(), + getActiveViewMeasurability(), getParentForChildren(), isClean()); - allConversionsFromInteractionsValuePerInteraction_ = null; + activeViewMeasurability_ = null; } - return allConversionsFromInteractionsValuePerInteractionBuilder_; + return activeViewMeasurabilityBuilder_; } - private com.google.protobuf.DoubleValue averageCost_ = null; + private com.google.protobuf.Int64Value activeViewMeasurableCostMicros_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> averageCostBuilder_; + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> activeViewMeasurableCostMicrosBuilder_; /** *
-     * The average amount you pay per interaction. This amount is the total cost
-     * of your ads divided by the total number of interactions.
+     * The cost of the impressions you received that were measurable by Active
+     * View.
      * 
* - * .google.protobuf.DoubleValue average_cost = 8; + * .google.protobuf.Int64Value active_view_measurable_cost_micros = 3; */ - public boolean hasAverageCost() { - return averageCostBuilder_ != null || averageCost_ != null; + public boolean hasActiveViewMeasurableCostMicros() { + return activeViewMeasurableCostMicrosBuilder_ != null || activeViewMeasurableCostMicros_ != null; } /** *
-     * The average amount you pay per interaction. This amount is the total cost
-     * of your ads divided by the total number of interactions.
+     * The cost of the impressions you received that were measurable by Active
+     * View.
      * 
* - * .google.protobuf.DoubleValue average_cost = 8; + * .google.protobuf.Int64Value active_view_measurable_cost_micros = 3; */ - public com.google.protobuf.DoubleValue getAverageCost() { - if (averageCostBuilder_ == null) { - return averageCost_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : averageCost_; + public com.google.protobuf.Int64Value getActiveViewMeasurableCostMicros() { + if (activeViewMeasurableCostMicrosBuilder_ == null) { + return activeViewMeasurableCostMicros_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : activeViewMeasurableCostMicros_; } else { - return averageCostBuilder_.getMessage(); + return activeViewMeasurableCostMicrosBuilder_.getMessage(); } } /** *
-     * The average amount you pay per interaction. This amount is the total cost
-     * of your ads divided by the total number of interactions.
+     * The cost of the impressions you received that were measurable by Active
+     * View.
      * 
* - * .google.protobuf.DoubleValue average_cost = 8; + * .google.protobuf.Int64Value active_view_measurable_cost_micros = 3; */ - public Builder setAverageCost(com.google.protobuf.DoubleValue value) { - if (averageCostBuilder_ == null) { + public Builder setActiveViewMeasurableCostMicros(com.google.protobuf.Int64Value value) { + if (activeViewMeasurableCostMicrosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - averageCost_ = value; + activeViewMeasurableCostMicros_ = value; onChanged(); } else { - averageCostBuilder_.setMessage(value); + activeViewMeasurableCostMicrosBuilder_.setMessage(value); } return this; } /** *
-     * The average amount you pay per interaction. This amount is the total cost
-     * of your ads divided by the total number of interactions.
+     * The cost of the impressions you received that were measurable by Active
+     * View.
      * 
* - * .google.protobuf.DoubleValue average_cost = 8; + * .google.protobuf.Int64Value active_view_measurable_cost_micros = 3; */ - public Builder setAverageCost( - com.google.protobuf.DoubleValue.Builder builderForValue) { - if (averageCostBuilder_ == null) { - averageCost_ = builderForValue.build(); + public Builder setActiveViewMeasurableCostMicros( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (activeViewMeasurableCostMicrosBuilder_ == null) { + activeViewMeasurableCostMicros_ = builderForValue.build(); onChanged(); } else { - averageCostBuilder_.setMessage(builderForValue.build()); + activeViewMeasurableCostMicrosBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The average amount you pay per interaction. This amount is the total cost
-     * of your ads divided by the total number of interactions.
+     * The cost of the impressions you received that were measurable by Active
+     * View.
      * 
* - * .google.protobuf.DoubleValue average_cost = 8; + * .google.protobuf.Int64Value active_view_measurable_cost_micros = 3; */ - public Builder mergeAverageCost(com.google.protobuf.DoubleValue value) { - if (averageCostBuilder_ == null) { - if (averageCost_ != null) { - averageCost_ = - com.google.protobuf.DoubleValue.newBuilder(averageCost_).mergeFrom(value).buildPartial(); + public Builder mergeActiveViewMeasurableCostMicros(com.google.protobuf.Int64Value value) { + if (activeViewMeasurableCostMicrosBuilder_ == null) { + if (activeViewMeasurableCostMicros_ != null) { + activeViewMeasurableCostMicros_ = + com.google.protobuf.Int64Value.newBuilder(activeViewMeasurableCostMicros_).mergeFrom(value).buildPartial(); } else { - averageCost_ = value; + activeViewMeasurableCostMicros_ = value; } onChanged(); } else { - averageCostBuilder_.mergeFrom(value); + activeViewMeasurableCostMicrosBuilder_.mergeFrom(value); } return this; } /** *
-     * The average amount you pay per interaction. This amount is the total cost
-     * of your ads divided by the total number of interactions.
+     * The cost of the impressions you received that were measurable by Active
+     * View.
      * 
* - * .google.protobuf.DoubleValue average_cost = 8; + * .google.protobuf.Int64Value active_view_measurable_cost_micros = 3; */ - public Builder clearAverageCost() { - if (averageCostBuilder_ == null) { - averageCost_ = null; + public Builder clearActiveViewMeasurableCostMicros() { + if (activeViewMeasurableCostMicrosBuilder_ == null) { + activeViewMeasurableCostMicros_ = null; onChanged(); } else { - averageCost_ = null; - averageCostBuilder_ = null; + activeViewMeasurableCostMicros_ = null; + activeViewMeasurableCostMicrosBuilder_ = null; } return this; } /** *
-     * The average amount you pay per interaction. This amount is the total cost
-     * of your ads divided by the total number of interactions.
+     * The cost of the impressions you received that were measurable by Active
+     * View.
      * 
* - * .google.protobuf.DoubleValue average_cost = 8; + * .google.protobuf.Int64Value active_view_measurable_cost_micros = 3; */ - public com.google.protobuf.DoubleValue.Builder getAverageCostBuilder() { + public com.google.protobuf.Int64Value.Builder getActiveViewMeasurableCostMicrosBuilder() { onChanged(); - return getAverageCostFieldBuilder().getBuilder(); + return getActiveViewMeasurableCostMicrosFieldBuilder().getBuilder(); } /** *
-     * The average amount you pay per interaction. This amount is the total cost
-     * of your ads divided by the total number of interactions.
+     * The cost of the impressions you received that were measurable by Active
+     * View.
      * 
* - * .google.protobuf.DoubleValue average_cost = 8; + * .google.protobuf.Int64Value active_view_measurable_cost_micros = 3; */ - public com.google.protobuf.DoubleValueOrBuilder getAverageCostOrBuilder() { - if (averageCostBuilder_ != null) { - return averageCostBuilder_.getMessageOrBuilder(); + public com.google.protobuf.Int64ValueOrBuilder getActiveViewMeasurableCostMicrosOrBuilder() { + if (activeViewMeasurableCostMicrosBuilder_ != null) { + return activeViewMeasurableCostMicrosBuilder_.getMessageOrBuilder(); } else { - return averageCost_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : averageCost_; + return activeViewMeasurableCostMicros_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : activeViewMeasurableCostMicros_; } } /** *
-     * The average amount you pay per interaction. This amount is the total cost
-     * of your ads divided by the total number of interactions.
+     * The cost of the impressions you received that were measurable by Active
+     * View.
      * 
* - * .google.protobuf.DoubleValue average_cost = 8; + * .google.protobuf.Int64Value active_view_measurable_cost_micros = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - getAverageCostFieldBuilder() { - if (averageCostBuilder_ == null) { - averageCostBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getAverageCost(), + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + getActiveViewMeasurableCostMicrosFieldBuilder() { + if (activeViewMeasurableCostMicrosBuilder_ == null) { + activeViewMeasurableCostMicrosBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getActiveViewMeasurableCostMicros(), getParentForChildren(), isClean()); - averageCost_ = null; + activeViewMeasurableCostMicros_ = null; } - return averageCostBuilder_; + return activeViewMeasurableCostMicrosBuilder_; } - private com.google.protobuf.DoubleValue averageCpc_ = null; + private com.google.protobuf.Int64Value activeViewMeasurableImpressions_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> averageCpcBuilder_; + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> activeViewMeasurableImpressionsBuilder_; /** *
-     * The total cost of all clicks divided by the total number of clicks
-     * received.
+     * The number of times your ads are appearing on placements in positions
+     * where they can be seen.
      * 
* - * .google.protobuf.DoubleValue average_cpc = 9; + * .google.protobuf.Int64Value active_view_measurable_impressions = 4; */ - public boolean hasAverageCpc() { - return averageCpcBuilder_ != null || averageCpc_ != null; + public boolean hasActiveViewMeasurableImpressions() { + return activeViewMeasurableImpressionsBuilder_ != null || activeViewMeasurableImpressions_ != null; } /** *
-     * The total cost of all clicks divided by the total number of clicks
-     * received.
+     * The number of times your ads are appearing on placements in positions
+     * where they can be seen.
      * 
* - * .google.protobuf.DoubleValue average_cpc = 9; + * .google.protobuf.Int64Value active_view_measurable_impressions = 4; */ - public com.google.protobuf.DoubleValue getAverageCpc() { - if (averageCpcBuilder_ == null) { - return averageCpc_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : averageCpc_; + public com.google.protobuf.Int64Value getActiveViewMeasurableImpressions() { + if (activeViewMeasurableImpressionsBuilder_ == null) { + return activeViewMeasurableImpressions_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : activeViewMeasurableImpressions_; } else { - return averageCpcBuilder_.getMessage(); + return activeViewMeasurableImpressionsBuilder_.getMessage(); } } /** *
-     * The total cost of all clicks divided by the total number of clicks
-     * received.
+     * The number of times your ads are appearing on placements in positions
+     * where they can be seen.
      * 
* - * .google.protobuf.DoubleValue average_cpc = 9; + * .google.protobuf.Int64Value active_view_measurable_impressions = 4; */ - public Builder setAverageCpc(com.google.protobuf.DoubleValue value) { - if (averageCpcBuilder_ == null) { + public Builder setActiveViewMeasurableImpressions(com.google.protobuf.Int64Value value) { + if (activeViewMeasurableImpressionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - averageCpc_ = value; + activeViewMeasurableImpressions_ = value; onChanged(); } else { - averageCpcBuilder_.setMessage(value); + activeViewMeasurableImpressionsBuilder_.setMessage(value); } return this; } /** *
-     * The total cost of all clicks divided by the total number of clicks
-     * received.
+     * The number of times your ads are appearing on placements in positions
+     * where they can be seen.
      * 
* - * .google.protobuf.DoubleValue average_cpc = 9; + * .google.protobuf.Int64Value active_view_measurable_impressions = 4; */ - public Builder setAverageCpc( - com.google.protobuf.DoubleValue.Builder builderForValue) { - if (averageCpcBuilder_ == null) { - averageCpc_ = builderForValue.build(); + public Builder setActiveViewMeasurableImpressions( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (activeViewMeasurableImpressionsBuilder_ == null) { + activeViewMeasurableImpressions_ = builderForValue.build(); onChanged(); } else { - averageCpcBuilder_.setMessage(builderForValue.build()); + activeViewMeasurableImpressionsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The total cost of all clicks divided by the total number of clicks
-     * received.
+     * The number of times your ads are appearing on placements in positions
+     * where they can be seen.
      * 
* - * .google.protobuf.DoubleValue average_cpc = 9; + * .google.protobuf.Int64Value active_view_measurable_impressions = 4; */ - public Builder mergeAverageCpc(com.google.protobuf.DoubleValue value) { - if (averageCpcBuilder_ == null) { - if (averageCpc_ != null) { - averageCpc_ = - com.google.protobuf.DoubleValue.newBuilder(averageCpc_).mergeFrom(value).buildPartial(); + public Builder mergeActiveViewMeasurableImpressions(com.google.protobuf.Int64Value value) { + if (activeViewMeasurableImpressionsBuilder_ == null) { + if (activeViewMeasurableImpressions_ != null) { + activeViewMeasurableImpressions_ = + com.google.protobuf.Int64Value.newBuilder(activeViewMeasurableImpressions_).mergeFrom(value).buildPartial(); } else { - averageCpc_ = value; + activeViewMeasurableImpressions_ = value; } onChanged(); } else { - averageCpcBuilder_.mergeFrom(value); + activeViewMeasurableImpressionsBuilder_.mergeFrom(value); } return this; } /** *
-     * The total cost of all clicks divided by the total number of clicks
-     * received.
+     * The number of times your ads are appearing on placements in positions
+     * where they can be seen.
      * 
* - * .google.protobuf.DoubleValue average_cpc = 9; + * .google.protobuf.Int64Value active_view_measurable_impressions = 4; */ - public Builder clearAverageCpc() { - if (averageCpcBuilder_ == null) { - averageCpc_ = null; + public Builder clearActiveViewMeasurableImpressions() { + if (activeViewMeasurableImpressionsBuilder_ == null) { + activeViewMeasurableImpressions_ = null; onChanged(); } else { - averageCpc_ = null; - averageCpcBuilder_ = null; + activeViewMeasurableImpressions_ = null; + activeViewMeasurableImpressionsBuilder_ = null; } return this; } /** *
-     * The total cost of all clicks divided by the total number of clicks
-     * received.
+     * The number of times your ads are appearing on placements in positions
+     * where they can be seen.
      * 
* - * .google.protobuf.DoubleValue average_cpc = 9; + * .google.protobuf.Int64Value active_view_measurable_impressions = 4; */ - public com.google.protobuf.DoubleValue.Builder getAverageCpcBuilder() { + public com.google.protobuf.Int64Value.Builder getActiveViewMeasurableImpressionsBuilder() { onChanged(); - return getAverageCpcFieldBuilder().getBuilder(); + return getActiveViewMeasurableImpressionsFieldBuilder().getBuilder(); } /** *
-     * The total cost of all clicks divided by the total number of clicks
-     * received.
+     * The number of times your ads are appearing on placements in positions
+     * where they can be seen.
      * 
* - * .google.protobuf.DoubleValue average_cpc = 9; + * .google.protobuf.Int64Value active_view_measurable_impressions = 4; */ - public com.google.protobuf.DoubleValueOrBuilder getAverageCpcOrBuilder() { - if (averageCpcBuilder_ != null) { - return averageCpcBuilder_.getMessageOrBuilder(); + public com.google.protobuf.Int64ValueOrBuilder getActiveViewMeasurableImpressionsOrBuilder() { + if (activeViewMeasurableImpressionsBuilder_ != null) { + return activeViewMeasurableImpressionsBuilder_.getMessageOrBuilder(); } else { - return averageCpc_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : averageCpc_; + return activeViewMeasurableImpressions_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : activeViewMeasurableImpressions_; } } /** *
-     * The total cost of all clicks divided by the total number of clicks
-     * received.
+     * The number of times your ads are appearing on placements in positions
+     * where they can be seen.
      * 
* - * .google.protobuf.DoubleValue average_cpc = 9; + * .google.protobuf.Int64Value active_view_measurable_impressions = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - getAverageCpcFieldBuilder() { - if (averageCpcBuilder_ == null) { - averageCpcBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getAverageCpc(), + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + getActiveViewMeasurableImpressionsFieldBuilder() { + if (activeViewMeasurableImpressionsBuilder_ == null) { + activeViewMeasurableImpressionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getActiveViewMeasurableImpressions(), getParentForChildren(), isClean()); - averageCpc_ = null; + activeViewMeasurableImpressions_ = null; } - return averageCpcBuilder_; + return activeViewMeasurableImpressionsBuilder_; } - private com.google.protobuf.DoubleValue averageCpm_ = null; + private com.google.protobuf.DoubleValue activeViewViewability_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> averageCpmBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> activeViewViewabilityBuilder_; /** *
-     * Average cost-per-thousand impressions (CPM).
+     * The percentage of time when your ad appeared on an Active View enabled site
+     * (measurable impressions) and was viewable (viewable impressions).
      * 
* - * .google.protobuf.DoubleValue average_cpm = 10; + * .google.protobuf.DoubleValue active_view_viewability = 97; */ - public boolean hasAverageCpm() { - return averageCpmBuilder_ != null || averageCpm_ != null; + public boolean hasActiveViewViewability() { + return activeViewViewabilityBuilder_ != null || activeViewViewability_ != null; } /** *
-     * Average cost-per-thousand impressions (CPM).
+     * The percentage of time when your ad appeared on an Active View enabled site
+     * (measurable impressions) and was viewable (viewable impressions).
      * 
* - * .google.protobuf.DoubleValue average_cpm = 10; + * .google.protobuf.DoubleValue active_view_viewability = 97; */ - public com.google.protobuf.DoubleValue getAverageCpm() { - if (averageCpmBuilder_ == null) { - return averageCpm_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : averageCpm_; + public com.google.protobuf.DoubleValue getActiveViewViewability() { + if (activeViewViewabilityBuilder_ == null) { + return activeViewViewability_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : activeViewViewability_; } else { - return averageCpmBuilder_.getMessage(); + return activeViewViewabilityBuilder_.getMessage(); } } /** *
-     * Average cost-per-thousand impressions (CPM).
+     * The percentage of time when your ad appeared on an Active View enabled site
+     * (measurable impressions) and was viewable (viewable impressions).
      * 
* - * .google.protobuf.DoubleValue average_cpm = 10; + * .google.protobuf.DoubleValue active_view_viewability = 97; */ - public Builder setAverageCpm(com.google.protobuf.DoubleValue value) { - if (averageCpmBuilder_ == null) { + public Builder setActiveViewViewability(com.google.protobuf.DoubleValue value) { + if (activeViewViewabilityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - averageCpm_ = value; + activeViewViewability_ = value; onChanged(); } else { - averageCpmBuilder_.setMessage(value); + activeViewViewabilityBuilder_.setMessage(value); } return this; } /** *
-     * Average cost-per-thousand impressions (CPM).
+     * The percentage of time when your ad appeared on an Active View enabled site
+     * (measurable impressions) and was viewable (viewable impressions).
      * 
* - * .google.protobuf.DoubleValue average_cpm = 10; + * .google.protobuf.DoubleValue active_view_viewability = 97; */ - public Builder setAverageCpm( + public Builder setActiveViewViewability( com.google.protobuf.DoubleValue.Builder builderForValue) { - if (averageCpmBuilder_ == null) { - averageCpm_ = builderForValue.build(); + if (activeViewViewabilityBuilder_ == null) { + activeViewViewability_ = builderForValue.build(); onChanged(); } else { - averageCpmBuilder_.setMessage(builderForValue.build()); + activeViewViewabilityBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * Average cost-per-thousand impressions (CPM).
+     * The percentage of time when your ad appeared on an Active View enabled site
+     * (measurable impressions) and was viewable (viewable impressions).
      * 
* - * .google.protobuf.DoubleValue average_cpm = 10; + * .google.protobuf.DoubleValue active_view_viewability = 97; */ - public Builder mergeAverageCpm(com.google.protobuf.DoubleValue value) { - if (averageCpmBuilder_ == null) { - if (averageCpm_ != null) { - averageCpm_ = - com.google.protobuf.DoubleValue.newBuilder(averageCpm_).mergeFrom(value).buildPartial(); + public Builder mergeActiveViewViewability(com.google.protobuf.DoubleValue value) { + if (activeViewViewabilityBuilder_ == null) { + if (activeViewViewability_ != null) { + activeViewViewability_ = + com.google.protobuf.DoubleValue.newBuilder(activeViewViewability_).mergeFrom(value).buildPartial(); } else { - averageCpm_ = value; + activeViewViewability_ = value; } onChanged(); } else { - averageCpmBuilder_.mergeFrom(value); + activeViewViewabilityBuilder_.mergeFrom(value); } return this; } /** *
-     * Average cost-per-thousand impressions (CPM).
+     * The percentage of time when your ad appeared on an Active View enabled site
+     * (measurable impressions) and was viewable (viewable impressions).
      * 
* - * .google.protobuf.DoubleValue average_cpm = 10; + * .google.protobuf.DoubleValue active_view_viewability = 97; */ - public Builder clearAverageCpm() { - if (averageCpmBuilder_ == null) { - averageCpm_ = null; + public Builder clearActiveViewViewability() { + if (activeViewViewabilityBuilder_ == null) { + activeViewViewability_ = null; onChanged(); } else { - averageCpm_ = null; - averageCpmBuilder_ = null; + activeViewViewability_ = null; + activeViewViewabilityBuilder_ = null; } return this; } /** *
-     * Average cost-per-thousand impressions (CPM).
+     * The percentage of time when your ad appeared on an Active View enabled site
+     * (measurable impressions) and was viewable (viewable impressions).
      * 
* - * .google.protobuf.DoubleValue average_cpm = 10; + * .google.protobuf.DoubleValue active_view_viewability = 97; */ - public com.google.protobuf.DoubleValue.Builder getAverageCpmBuilder() { + public com.google.protobuf.DoubleValue.Builder getActiveViewViewabilityBuilder() { onChanged(); - return getAverageCpmFieldBuilder().getBuilder(); + return getActiveViewViewabilityFieldBuilder().getBuilder(); } /** *
-     * Average cost-per-thousand impressions (CPM).
+     * The percentage of time when your ad appeared on an Active View enabled site
+     * (measurable impressions) and was viewable (viewable impressions).
      * 
* - * .google.protobuf.DoubleValue average_cpm = 10; + * .google.protobuf.DoubleValue active_view_viewability = 97; */ - public com.google.protobuf.DoubleValueOrBuilder getAverageCpmOrBuilder() { - if (averageCpmBuilder_ != null) { - return averageCpmBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getActiveViewViewabilityOrBuilder() { + if (activeViewViewabilityBuilder_ != null) { + return activeViewViewabilityBuilder_.getMessageOrBuilder(); } else { - return averageCpm_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : averageCpm_; + return activeViewViewability_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : activeViewViewability_; } } /** *
-     * Average cost-per-thousand impressions (CPM).
+     * The percentage of time when your ad appeared on an Active View enabled site
+     * (measurable impressions) and was viewable (viewable impressions).
      * 
* - * .google.protobuf.DoubleValue average_cpm = 10; + * .google.protobuf.DoubleValue active_view_viewability = 97; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - getAverageCpmFieldBuilder() { - if (averageCpmBuilder_ == null) { - averageCpmBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getActiveViewViewabilityFieldBuilder() { + if (activeViewViewabilityBuilder_ == null) { + activeViewViewabilityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getAverageCpm(), + getActiveViewViewability(), getParentForChildren(), isClean()); - averageCpm_ = null; + activeViewViewability_ = null; } - return averageCpmBuilder_; + return activeViewViewabilityBuilder_; } - private com.google.protobuf.DoubleValue averageCpv_ = null; + private com.google.protobuf.DoubleValue allConversionsFromInteractionsRate_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> averageCpvBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> allConversionsFromInteractionsRateBuilder_; /** *
-     * The average amount you pay each time someone views your ad.
-     * The average CPV is defined by the total cost of all ad views divided by
-     * the number of views.
+     * All conversions from interactions (as oppose to view through conversions)
+     * divided by the number of ad interactions.
      * 
* - * .google.protobuf.DoubleValue average_cpv = 11; + * .google.protobuf.DoubleValue all_conversions_from_interactions_rate = 65; */ - public boolean hasAverageCpv() { - return averageCpvBuilder_ != null || averageCpv_ != null; + public boolean hasAllConversionsFromInteractionsRate() { + return allConversionsFromInteractionsRateBuilder_ != null || allConversionsFromInteractionsRate_ != null; } /** *
-     * The average amount you pay each time someone views your ad.
-     * The average CPV is defined by the total cost of all ad views divided by
-     * the number of views.
+     * All conversions from interactions (as oppose to view through conversions)
+     * divided by the number of ad interactions.
      * 
* - * .google.protobuf.DoubleValue average_cpv = 11; + * .google.protobuf.DoubleValue all_conversions_from_interactions_rate = 65; */ - public com.google.protobuf.DoubleValue getAverageCpv() { - if (averageCpvBuilder_ == null) { - return averageCpv_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : averageCpv_; + public com.google.protobuf.DoubleValue getAllConversionsFromInteractionsRate() { + if (allConversionsFromInteractionsRateBuilder_ == null) { + return allConversionsFromInteractionsRate_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : allConversionsFromInteractionsRate_; } else { - return averageCpvBuilder_.getMessage(); + return allConversionsFromInteractionsRateBuilder_.getMessage(); } } /** *
-     * The average amount you pay each time someone views your ad.
-     * The average CPV is defined by the total cost of all ad views divided by
-     * the number of views.
+     * All conversions from interactions (as oppose to view through conversions)
+     * divided by the number of ad interactions.
      * 
* - * .google.protobuf.DoubleValue average_cpv = 11; + * .google.protobuf.DoubleValue all_conversions_from_interactions_rate = 65; */ - public Builder setAverageCpv(com.google.protobuf.DoubleValue value) { - if (averageCpvBuilder_ == null) { + public Builder setAllConversionsFromInteractionsRate(com.google.protobuf.DoubleValue value) { + if (allConversionsFromInteractionsRateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - averageCpv_ = value; + allConversionsFromInteractionsRate_ = value; onChanged(); } else { - averageCpvBuilder_.setMessage(value); + allConversionsFromInteractionsRateBuilder_.setMessage(value); } return this; } /** *
-     * The average amount you pay each time someone views your ad.
-     * The average CPV is defined by the total cost of all ad views divided by
-     * the number of views.
+     * All conversions from interactions (as oppose to view through conversions)
+     * divided by the number of ad interactions.
      * 
* - * .google.protobuf.DoubleValue average_cpv = 11; + * .google.protobuf.DoubleValue all_conversions_from_interactions_rate = 65; */ - public Builder setAverageCpv( + public Builder setAllConversionsFromInteractionsRate( com.google.protobuf.DoubleValue.Builder builderForValue) { - if (averageCpvBuilder_ == null) { - averageCpv_ = builderForValue.build(); + if (allConversionsFromInteractionsRateBuilder_ == null) { + allConversionsFromInteractionsRate_ = builderForValue.build(); onChanged(); } else { - averageCpvBuilder_.setMessage(builderForValue.build()); + allConversionsFromInteractionsRateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The average amount you pay each time someone views your ad.
-     * The average CPV is defined by the total cost of all ad views divided by
-     * the number of views.
+     * All conversions from interactions (as oppose to view through conversions)
+     * divided by the number of ad interactions.
      * 
* - * .google.protobuf.DoubleValue average_cpv = 11; + * .google.protobuf.DoubleValue all_conversions_from_interactions_rate = 65; */ - public Builder mergeAverageCpv(com.google.protobuf.DoubleValue value) { - if (averageCpvBuilder_ == null) { - if (averageCpv_ != null) { - averageCpv_ = - com.google.protobuf.DoubleValue.newBuilder(averageCpv_).mergeFrom(value).buildPartial(); + public Builder mergeAllConversionsFromInteractionsRate(com.google.protobuf.DoubleValue value) { + if (allConversionsFromInteractionsRateBuilder_ == null) { + if (allConversionsFromInteractionsRate_ != null) { + allConversionsFromInteractionsRate_ = + com.google.protobuf.DoubleValue.newBuilder(allConversionsFromInteractionsRate_).mergeFrom(value).buildPartial(); } else { - averageCpv_ = value; + allConversionsFromInteractionsRate_ = value; } onChanged(); } else { - averageCpvBuilder_.mergeFrom(value); + allConversionsFromInteractionsRateBuilder_.mergeFrom(value); } return this; } /** *
-     * The average amount you pay each time someone views your ad.
-     * The average CPV is defined by the total cost of all ad views divided by
-     * the number of views.
+     * All conversions from interactions (as oppose to view through conversions)
+     * divided by the number of ad interactions.
      * 
* - * .google.protobuf.DoubleValue average_cpv = 11; + * .google.protobuf.DoubleValue all_conversions_from_interactions_rate = 65; */ - public Builder clearAverageCpv() { - if (averageCpvBuilder_ == null) { - averageCpv_ = null; + public Builder clearAllConversionsFromInteractionsRate() { + if (allConversionsFromInteractionsRateBuilder_ == null) { + allConversionsFromInteractionsRate_ = null; onChanged(); } else { - averageCpv_ = null; - averageCpvBuilder_ = null; + allConversionsFromInteractionsRate_ = null; + allConversionsFromInteractionsRateBuilder_ = null; } return this; } /** *
-     * The average amount you pay each time someone views your ad.
-     * The average CPV is defined by the total cost of all ad views divided by
-     * the number of views.
+     * All conversions from interactions (as oppose to view through conversions)
+     * divided by the number of ad interactions.
      * 
* - * .google.protobuf.DoubleValue average_cpv = 11; + * .google.protobuf.DoubleValue all_conversions_from_interactions_rate = 65; */ - public com.google.protobuf.DoubleValue.Builder getAverageCpvBuilder() { + public com.google.protobuf.DoubleValue.Builder getAllConversionsFromInteractionsRateBuilder() { onChanged(); - return getAverageCpvFieldBuilder().getBuilder(); + return getAllConversionsFromInteractionsRateFieldBuilder().getBuilder(); } /** *
-     * The average amount you pay each time someone views your ad.
-     * The average CPV is defined by the total cost of all ad views divided by
-     * the number of views.
+     * All conversions from interactions (as oppose to view through conversions)
+     * divided by the number of ad interactions.
      * 
* - * .google.protobuf.DoubleValue average_cpv = 11; + * .google.protobuf.DoubleValue all_conversions_from_interactions_rate = 65; */ - public com.google.protobuf.DoubleValueOrBuilder getAverageCpvOrBuilder() { - if (averageCpvBuilder_ != null) { - return averageCpvBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getAllConversionsFromInteractionsRateOrBuilder() { + if (allConversionsFromInteractionsRateBuilder_ != null) { + return allConversionsFromInteractionsRateBuilder_.getMessageOrBuilder(); } else { - return averageCpv_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : averageCpv_; + return allConversionsFromInteractionsRate_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : allConversionsFromInteractionsRate_; } } /** *
-     * The average amount you pay each time someone views your ad.
-     * The average CPV is defined by the total cost of all ad views divided by
-     * the number of views.
+     * All conversions from interactions (as oppose to view through conversions)
+     * divided by the number of ad interactions.
      * 
* - * .google.protobuf.DoubleValue average_cpv = 11; + * .google.protobuf.DoubleValue all_conversions_from_interactions_rate = 65; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - getAverageCpvFieldBuilder() { - if (averageCpvBuilder_ == null) { - averageCpvBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getAllConversionsFromInteractionsRateFieldBuilder() { + if (allConversionsFromInteractionsRateBuilder_ == null) { + allConversionsFromInteractionsRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getAverageCpv(), + getAllConversionsFromInteractionsRate(), getParentForChildren(), isClean()); - averageCpv_ = null; + allConversionsFromInteractionsRate_ = null; } - return averageCpvBuilder_; + return allConversionsFromInteractionsRateBuilder_; } - private com.google.protobuf.DoubleValue averagePosition_ = null; + private com.google.protobuf.DoubleValue allConversionsValue_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> averagePositionBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> allConversionsValueBuilder_; /** *
-     * Your ad's position relative to those of other advertisers.
+     * The total value of all conversions.
      * 
* - * .google.protobuf.DoubleValue average_position = 13; + * .google.protobuf.DoubleValue all_conversions_value = 66; */ - public boolean hasAveragePosition() { - return averagePositionBuilder_ != null || averagePosition_ != null; + public boolean hasAllConversionsValue() { + return allConversionsValueBuilder_ != null || allConversionsValue_ != null; } /** *
-     * Your ad's position relative to those of other advertisers.
+     * The total value of all conversions.
      * 
* - * .google.protobuf.DoubleValue average_position = 13; + * .google.protobuf.DoubleValue all_conversions_value = 66; */ - public com.google.protobuf.DoubleValue getAveragePosition() { - if (averagePositionBuilder_ == null) { - return averagePosition_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : averagePosition_; + public com.google.protobuf.DoubleValue getAllConversionsValue() { + if (allConversionsValueBuilder_ == null) { + return allConversionsValue_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : allConversionsValue_; } else { - return averagePositionBuilder_.getMessage(); + return allConversionsValueBuilder_.getMessage(); } } /** *
-     * Your ad's position relative to those of other advertisers.
+     * The total value of all conversions.
      * 
* - * .google.protobuf.DoubleValue average_position = 13; + * .google.protobuf.DoubleValue all_conversions_value = 66; */ - public Builder setAveragePosition(com.google.protobuf.DoubleValue value) { - if (averagePositionBuilder_ == null) { + public Builder setAllConversionsValue(com.google.protobuf.DoubleValue value) { + if (allConversionsValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - averagePosition_ = value; + allConversionsValue_ = value; onChanged(); } else { - averagePositionBuilder_.setMessage(value); + allConversionsValueBuilder_.setMessage(value); } return this; } /** *
-     * Your ad's position relative to those of other advertisers.
+     * The total value of all conversions.
      * 
* - * .google.protobuf.DoubleValue average_position = 13; + * .google.protobuf.DoubleValue all_conversions_value = 66; */ - public Builder setAveragePosition( + public Builder setAllConversionsValue( com.google.protobuf.DoubleValue.Builder builderForValue) { - if (averagePositionBuilder_ == null) { - averagePosition_ = builderForValue.build(); + if (allConversionsValueBuilder_ == null) { + allConversionsValue_ = builderForValue.build(); onChanged(); } else { - averagePositionBuilder_.setMessage(builderForValue.build()); + allConversionsValueBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * Your ad's position relative to those of other advertisers.
+     * The total value of all conversions.
      * 
* - * .google.protobuf.DoubleValue average_position = 13; + * .google.protobuf.DoubleValue all_conversions_value = 66; */ - public Builder mergeAveragePosition(com.google.protobuf.DoubleValue value) { - if (averagePositionBuilder_ == null) { - if (averagePosition_ != null) { - averagePosition_ = - com.google.protobuf.DoubleValue.newBuilder(averagePosition_).mergeFrom(value).buildPartial(); + public Builder mergeAllConversionsValue(com.google.protobuf.DoubleValue value) { + if (allConversionsValueBuilder_ == null) { + if (allConversionsValue_ != null) { + allConversionsValue_ = + com.google.protobuf.DoubleValue.newBuilder(allConversionsValue_).mergeFrom(value).buildPartial(); } else { - averagePosition_ = value; + allConversionsValue_ = value; } onChanged(); } else { - averagePositionBuilder_.mergeFrom(value); + allConversionsValueBuilder_.mergeFrom(value); } return this; } /** *
-     * Your ad's position relative to those of other advertisers.
+     * The total value of all conversions.
      * 
* - * .google.protobuf.DoubleValue average_position = 13; + * .google.protobuf.DoubleValue all_conversions_value = 66; */ - public Builder clearAveragePosition() { - if (averagePositionBuilder_ == null) { - averagePosition_ = null; + public Builder clearAllConversionsValue() { + if (allConversionsValueBuilder_ == null) { + allConversionsValue_ = null; onChanged(); } else { - averagePosition_ = null; - averagePositionBuilder_ = null; + allConversionsValue_ = null; + allConversionsValueBuilder_ = null; } return this; } /** *
-     * Your ad's position relative to those of other advertisers.
+     * The total value of all conversions.
      * 
* - * .google.protobuf.DoubleValue average_position = 13; + * .google.protobuf.DoubleValue all_conversions_value = 66; */ - public com.google.protobuf.DoubleValue.Builder getAveragePositionBuilder() { + public com.google.protobuf.DoubleValue.Builder getAllConversionsValueBuilder() { onChanged(); - return getAveragePositionFieldBuilder().getBuilder(); + return getAllConversionsValueFieldBuilder().getBuilder(); } /** *
-     * Your ad's position relative to those of other advertisers.
+     * The total value of all conversions.
      * 
* - * .google.protobuf.DoubleValue average_position = 13; + * .google.protobuf.DoubleValue all_conversions_value = 66; */ - public com.google.protobuf.DoubleValueOrBuilder getAveragePositionOrBuilder() { - if (averagePositionBuilder_ != null) { - return averagePositionBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getAllConversionsValueOrBuilder() { + if (allConversionsValueBuilder_ != null) { + return allConversionsValueBuilder_.getMessageOrBuilder(); } else { - return averagePosition_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : averagePosition_; + return allConversionsValue_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : allConversionsValue_; } } /** *
-     * Your ad's position relative to those of other advertisers.
+     * The total value of all conversions.
      * 
* - * .google.protobuf.DoubleValue average_position = 13; + * .google.protobuf.DoubleValue all_conversions_value = 66; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - getAveragePositionFieldBuilder() { - if (averagePositionBuilder_ == null) { - averagePositionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getAllConversionsValueFieldBuilder() { + if (allConversionsValueBuilder_ == null) { + allConversionsValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getAveragePosition(), + getAllConversionsValue(), getParentForChildren(), isClean()); - averagePosition_ = null; + allConversionsValue_ = null; } - return averagePositionBuilder_; + return allConversionsValueBuilder_; } - private com.google.protobuf.DoubleValue benchmarkCtr_ = null; + private com.google.protobuf.DoubleValue allConversions_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> benchmarkCtrBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> allConversionsBuilder_; /** *
-     * An indication on how other advertisers' Shopping ads for similar products
-     * are performing based on how often people who see their ad click on it.
+     * The total number of conversions. This only includes conversion actions
+     * which include_in_conversions_metric attribute is set to true.
      * 
* - * .google.protobuf.DoubleValue benchmark_ctr = 77; + * .google.protobuf.DoubleValue all_conversions = 7; */ - public boolean hasBenchmarkCtr() { - return benchmarkCtrBuilder_ != null || benchmarkCtr_ != null; + public boolean hasAllConversions() { + return allConversionsBuilder_ != null || allConversions_ != null; } /** *
-     * An indication on how other advertisers' Shopping ads for similar products
-     * are performing based on how often people who see their ad click on it.
+     * The total number of conversions. This only includes conversion actions
+     * which include_in_conversions_metric attribute is set to true.
      * 
* - * .google.protobuf.DoubleValue benchmark_ctr = 77; + * .google.protobuf.DoubleValue all_conversions = 7; */ - public com.google.protobuf.DoubleValue getBenchmarkCtr() { - if (benchmarkCtrBuilder_ == null) { - return benchmarkCtr_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : benchmarkCtr_; + public com.google.protobuf.DoubleValue getAllConversions() { + if (allConversionsBuilder_ == null) { + return allConversions_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : allConversions_; } else { - return benchmarkCtrBuilder_.getMessage(); + return allConversionsBuilder_.getMessage(); } } /** *
-     * An indication on how other advertisers' Shopping ads for similar products
-     * are performing based on how often people who see their ad click on it.
+     * The total number of conversions. This only includes conversion actions
+     * which include_in_conversions_metric attribute is set to true.
      * 
* - * .google.protobuf.DoubleValue benchmark_ctr = 77; + * .google.protobuf.DoubleValue all_conversions = 7; */ - public Builder setBenchmarkCtr(com.google.protobuf.DoubleValue value) { - if (benchmarkCtrBuilder_ == null) { + public Builder setAllConversions(com.google.protobuf.DoubleValue value) { + if (allConversionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - benchmarkCtr_ = value; + allConversions_ = value; onChanged(); } else { - benchmarkCtrBuilder_.setMessage(value); + allConversionsBuilder_.setMessage(value); } return this; } /** *
-     * An indication on how other advertisers' Shopping ads for similar products
-     * are performing based on how often people who see their ad click on it.
+     * The total number of conversions. This only includes conversion actions
+     * which include_in_conversions_metric attribute is set to true.
      * 
* - * .google.protobuf.DoubleValue benchmark_ctr = 77; + * .google.protobuf.DoubleValue all_conversions = 7; */ - public Builder setBenchmarkCtr( + public Builder setAllConversions( com.google.protobuf.DoubleValue.Builder builderForValue) { - if (benchmarkCtrBuilder_ == null) { - benchmarkCtr_ = builderForValue.build(); + if (allConversionsBuilder_ == null) { + allConversions_ = builderForValue.build(); onChanged(); } else { - benchmarkCtrBuilder_.setMessage(builderForValue.build()); + allConversionsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * An indication on how other advertisers' Shopping ads for similar products
-     * are performing based on how often people who see their ad click on it.
+     * The total number of conversions. This only includes conversion actions
+     * which include_in_conversions_metric attribute is set to true.
      * 
* - * .google.protobuf.DoubleValue benchmark_ctr = 77; + * .google.protobuf.DoubleValue all_conversions = 7; */ - public Builder mergeBenchmarkCtr(com.google.protobuf.DoubleValue value) { - if (benchmarkCtrBuilder_ == null) { - if (benchmarkCtr_ != null) { - benchmarkCtr_ = - com.google.protobuf.DoubleValue.newBuilder(benchmarkCtr_).mergeFrom(value).buildPartial(); + public Builder mergeAllConversions(com.google.protobuf.DoubleValue value) { + if (allConversionsBuilder_ == null) { + if (allConversions_ != null) { + allConversions_ = + com.google.protobuf.DoubleValue.newBuilder(allConversions_).mergeFrom(value).buildPartial(); } else { - benchmarkCtr_ = value; + allConversions_ = value; } onChanged(); } else { - benchmarkCtrBuilder_.mergeFrom(value); + allConversionsBuilder_.mergeFrom(value); } return this; } /** *
-     * An indication on how other advertisers' Shopping ads for similar products
-     * are performing based on how often people who see their ad click on it.
+     * The total number of conversions. This only includes conversion actions
+     * which include_in_conversions_metric attribute is set to true.
      * 
* - * .google.protobuf.DoubleValue benchmark_ctr = 77; + * .google.protobuf.DoubleValue all_conversions = 7; */ - public Builder clearBenchmarkCtr() { - if (benchmarkCtrBuilder_ == null) { - benchmarkCtr_ = null; + public Builder clearAllConversions() { + if (allConversionsBuilder_ == null) { + allConversions_ = null; onChanged(); } else { - benchmarkCtr_ = null; - benchmarkCtrBuilder_ = null; + allConversions_ = null; + allConversionsBuilder_ = null; } return this; } /** *
-     * An indication on how other advertisers' Shopping ads for similar products
-     * are performing based on how often people who see their ad click on it.
+     * The total number of conversions. This only includes conversion actions
+     * which include_in_conversions_metric attribute is set to true.
      * 
* - * .google.protobuf.DoubleValue benchmark_ctr = 77; + * .google.protobuf.DoubleValue all_conversions = 7; */ - public com.google.protobuf.DoubleValue.Builder getBenchmarkCtrBuilder() { + public com.google.protobuf.DoubleValue.Builder getAllConversionsBuilder() { onChanged(); - return getBenchmarkCtrFieldBuilder().getBuilder(); + return getAllConversionsFieldBuilder().getBuilder(); } /** *
-     * An indication on how other advertisers' Shopping ads for similar products
-     * are performing based on how often people who see their ad click on it.
+     * The total number of conversions. This only includes conversion actions
+     * which include_in_conversions_metric attribute is set to true.
      * 
* - * .google.protobuf.DoubleValue benchmark_ctr = 77; + * .google.protobuf.DoubleValue all_conversions = 7; */ - public com.google.protobuf.DoubleValueOrBuilder getBenchmarkCtrOrBuilder() { - if (benchmarkCtrBuilder_ != null) { - return benchmarkCtrBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getAllConversionsOrBuilder() { + if (allConversionsBuilder_ != null) { + return allConversionsBuilder_.getMessageOrBuilder(); } else { - return benchmarkCtr_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : benchmarkCtr_; + return allConversions_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : allConversions_; } } /** *
-     * An indication on how other advertisers' Shopping ads for similar products
-     * are performing based on how often people who see their ad click on it.
+     * The total number of conversions. This only includes conversion actions
+     * which include_in_conversions_metric attribute is set to true.
      * 
* - * .google.protobuf.DoubleValue benchmark_ctr = 77; + * .google.protobuf.DoubleValue all_conversions = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - getBenchmarkCtrFieldBuilder() { - if (benchmarkCtrBuilder_ == null) { - benchmarkCtrBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getAllConversionsFieldBuilder() { + if (allConversionsBuilder_ == null) { + allConversionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getBenchmarkCtr(), + getAllConversions(), getParentForChildren(), isClean()); - benchmarkCtr_ = null; + allConversions_ = null; } - return benchmarkCtrBuilder_; + return allConversionsBuilder_; } - private com.google.protobuf.DoubleValue bounceRate_ = null; + private com.google.protobuf.DoubleValue allConversionsValuePerCost_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> bounceRateBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> allConversionsValuePerCostBuilder_; /** *
-     * Percentage of clicks where the user only visited a single page on your
-     * site. Imported from Google Analytics.
+     * The value of all conversions divided by the total cost of ad interactions
+     * (such as clicks for text ads or views for video ads).
      * 
* - * .google.protobuf.DoubleValue bounce_rate = 15; + * .google.protobuf.DoubleValue all_conversions_value_per_cost = 62; */ - public boolean hasBounceRate() { - return bounceRateBuilder_ != null || bounceRate_ != null; + public boolean hasAllConversionsValuePerCost() { + return allConversionsValuePerCostBuilder_ != null || allConversionsValuePerCost_ != null; } /** *
-     * Percentage of clicks where the user only visited a single page on your
-     * site. Imported from Google Analytics.
+     * The value of all conversions divided by the total cost of ad interactions
+     * (such as clicks for text ads or views for video ads).
      * 
* - * .google.protobuf.DoubleValue bounce_rate = 15; + * .google.protobuf.DoubleValue all_conversions_value_per_cost = 62; */ - public com.google.protobuf.DoubleValue getBounceRate() { - if (bounceRateBuilder_ == null) { - return bounceRate_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : bounceRate_; + public com.google.protobuf.DoubleValue getAllConversionsValuePerCost() { + if (allConversionsValuePerCostBuilder_ == null) { + return allConversionsValuePerCost_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : allConversionsValuePerCost_; } else { - return bounceRateBuilder_.getMessage(); + return allConversionsValuePerCostBuilder_.getMessage(); } } /** *
-     * Percentage of clicks where the user only visited a single page on your
-     * site. Imported from Google Analytics.
+     * The value of all conversions divided by the total cost of ad interactions
+     * (such as clicks for text ads or views for video ads).
      * 
* - * .google.protobuf.DoubleValue bounce_rate = 15; + * .google.protobuf.DoubleValue all_conversions_value_per_cost = 62; */ - public Builder setBounceRate(com.google.protobuf.DoubleValue value) { - if (bounceRateBuilder_ == null) { + public Builder setAllConversionsValuePerCost(com.google.protobuf.DoubleValue value) { + if (allConversionsValuePerCostBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - bounceRate_ = value; + allConversionsValuePerCost_ = value; onChanged(); } else { - bounceRateBuilder_.setMessage(value); + allConversionsValuePerCostBuilder_.setMessage(value); } return this; } /** *
-     * Percentage of clicks where the user only visited a single page on your
-     * site. Imported from Google Analytics.
+     * The value of all conversions divided by the total cost of ad interactions
+     * (such as clicks for text ads or views for video ads).
      * 
* - * .google.protobuf.DoubleValue bounce_rate = 15; + * .google.protobuf.DoubleValue all_conversions_value_per_cost = 62; */ - public Builder setBounceRate( + public Builder setAllConversionsValuePerCost( com.google.protobuf.DoubleValue.Builder builderForValue) { - if (bounceRateBuilder_ == null) { - bounceRate_ = builderForValue.build(); + if (allConversionsValuePerCostBuilder_ == null) { + allConversionsValuePerCost_ = builderForValue.build(); onChanged(); } else { - bounceRateBuilder_.setMessage(builderForValue.build()); + allConversionsValuePerCostBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * Percentage of clicks where the user only visited a single page on your
-     * site. Imported from Google Analytics.
+     * The value of all conversions divided by the total cost of ad interactions
+     * (such as clicks for text ads or views for video ads).
      * 
* - * .google.protobuf.DoubleValue bounce_rate = 15; + * .google.protobuf.DoubleValue all_conversions_value_per_cost = 62; */ - public Builder mergeBounceRate(com.google.protobuf.DoubleValue value) { - if (bounceRateBuilder_ == null) { - if (bounceRate_ != null) { - bounceRate_ = - com.google.protobuf.DoubleValue.newBuilder(bounceRate_).mergeFrom(value).buildPartial(); + public Builder mergeAllConversionsValuePerCost(com.google.protobuf.DoubleValue value) { + if (allConversionsValuePerCostBuilder_ == null) { + if (allConversionsValuePerCost_ != null) { + allConversionsValuePerCost_ = + com.google.protobuf.DoubleValue.newBuilder(allConversionsValuePerCost_).mergeFrom(value).buildPartial(); } else { - bounceRate_ = value; + allConversionsValuePerCost_ = value; } onChanged(); } else { - bounceRateBuilder_.mergeFrom(value); + allConversionsValuePerCostBuilder_.mergeFrom(value); } return this; } /** *
-     * Percentage of clicks where the user only visited a single page on your
-     * site. Imported from Google Analytics.
+     * The value of all conversions divided by the total cost of ad interactions
+     * (such as clicks for text ads or views for video ads).
      * 
* - * .google.protobuf.DoubleValue bounce_rate = 15; + * .google.protobuf.DoubleValue all_conversions_value_per_cost = 62; */ - public Builder clearBounceRate() { - if (bounceRateBuilder_ == null) { - bounceRate_ = null; + public Builder clearAllConversionsValuePerCost() { + if (allConversionsValuePerCostBuilder_ == null) { + allConversionsValuePerCost_ = null; onChanged(); } else { - bounceRate_ = null; - bounceRateBuilder_ = null; + allConversionsValuePerCost_ = null; + allConversionsValuePerCostBuilder_ = null; } return this; } /** *
-     * Percentage of clicks where the user only visited a single page on your
-     * site. Imported from Google Analytics.
+     * The value of all conversions divided by the total cost of ad interactions
+     * (such as clicks for text ads or views for video ads).
      * 
* - * .google.protobuf.DoubleValue bounce_rate = 15; + * .google.protobuf.DoubleValue all_conversions_value_per_cost = 62; */ - public com.google.protobuf.DoubleValue.Builder getBounceRateBuilder() { + public com.google.protobuf.DoubleValue.Builder getAllConversionsValuePerCostBuilder() { onChanged(); - return getBounceRateFieldBuilder().getBuilder(); + return getAllConversionsValuePerCostFieldBuilder().getBuilder(); } /** *
-     * Percentage of clicks where the user only visited a single page on your
-     * site. Imported from Google Analytics.
+     * The value of all conversions divided by the total cost of ad interactions
+     * (such as clicks for text ads or views for video ads).
      * 
* - * .google.protobuf.DoubleValue bounce_rate = 15; + * .google.protobuf.DoubleValue all_conversions_value_per_cost = 62; */ - public com.google.protobuf.DoubleValueOrBuilder getBounceRateOrBuilder() { - if (bounceRateBuilder_ != null) { - return bounceRateBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getAllConversionsValuePerCostOrBuilder() { + if (allConversionsValuePerCostBuilder_ != null) { + return allConversionsValuePerCostBuilder_.getMessageOrBuilder(); } else { - return bounceRate_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : bounceRate_; + return allConversionsValuePerCost_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : allConversionsValuePerCost_; } } /** *
-     * Percentage of clicks where the user only visited a single page on your
-     * site. Imported from Google Analytics.
+     * The value of all conversions divided by the total cost of ad interactions
+     * (such as clicks for text ads or views for video ads).
      * 
* - * .google.protobuf.DoubleValue bounce_rate = 15; + * .google.protobuf.DoubleValue all_conversions_value_per_cost = 62; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - getBounceRateFieldBuilder() { - if (bounceRateBuilder_ == null) { - bounceRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getAllConversionsValuePerCostFieldBuilder() { + if (allConversionsValuePerCostBuilder_ == null) { + allConversionsValuePerCostBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getBounceRate(), + getAllConversionsValuePerCost(), getParentForChildren(), isClean()); - bounceRate_ = null; + allConversionsValuePerCost_ = null; } - return bounceRateBuilder_; + return allConversionsValuePerCostBuilder_; } - private com.google.protobuf.Int64Value clicks_ = null; + private com.google.protobuf.DoubleValue allConversionsFromInteractionsValuePerInteraction_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> clicksBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> allConversionsFromInteractionsValuePerInteractionBuilder_; /** *
-     * The number of clicks.
+     * The value of all conversions from interactions divided by the total number
+     * of interactions.
      * 
* - * .google.protobuf.Int64Value clicks = 19; + * .google.protobuf.DoubleValue all_conversions_from_interactions_value_per_interaction = 67; */ - public boolean hasClicks() { - return clicksBuilder_ != null || clicks_ != null; + public boolean hasAllConversionsFromInteractionsValuePerInteraction() { + return allConversionsFromInteractionsValuePerInteractionBuilder_ != null || allConversionsFromInteractionsValuePerInteraction_ != null; } /** *
-     * The number of clicks.
+     * The value of all conversions from interactions divided by the total number
+     * of interactions.
      * 
* - * .google.protobuf.Int64Value clicks = 19; + * .google.protobuf.DoubleValue all_conversions_from_interactions_value_per_interaction = 67; */ - public com.google.protobuf.Int64Value getClicks() { - if (clicksBuilder_ == null) { - return clicks_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : clicks_; + public com.google.protobuf.DoubleValue getAllConversionsFromInteractionsValuePerInteraction() { + if (allConversionsFromInteractionsValuePerInteractionBuilder_ == null) { + return allConversionsFromInteractionsValuePerInteraction_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : allConversionsFromInteractionsValuePerInteraction_; } else { - return clicksBuilder_.getMessage(); + return allConversionsFromInteractionsValuePerInteractionBuilder_.getMessage(); } } /** *
-     * The number of clicks.
+     * The value of all conversions from interactions divided by the total number
+     * of interactions.
      * 
* - * .google.protobuf.Int64Value clicks = 19; + * .google.protobuf.DoubleValue all_conversions_from_interactions_value_per_interaction = 67; */ - public Builder setClicks(com.google.protobuf.Int64Value value) { - if (clicksBuilder_ == null) { + public Builder setAllConversionsFromInteractionsValuePerInteraction(com.google.protobuf.DoubleValue value) { + if (allConversionsFromInteractionsValuePerInteractionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - clicks_ = value; + allConversionsFromInteractionsValuePerInteraction_ = value; onChanged(); } else { - clicksBuilder_.setMessage(value); + allConversionsFromInteractionsValuePerInteractionBuilder_.setMessage(value); } return this; } /** *
-     * The number of clicks.
+     * The value of all conversions from interactions divided by the total number
+     * of interactions.
      * 
* - * .google.protobuf.Int64Value clicks = 19; + * .google.protobuf.DoubleValue all_conversions_from_interactions_value_per_interaction = 67; */ - public Builder setClicks( - com.google.protobuf.Int64Value.Builder builderForValue) { - if (clicksBuilder_ == null) { - clicks_ = builderForValue.build(); + public Builder setAllConversionsFromInteractionsValuePerInteraction( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (allConversionsFromInteractionsValuePerInteractionBuilder_ == null) { + allConversionsFromInteractionsValuePerInteraction_ = builderForValue.build(); onChanged(); } else { - clicksBuilder_.setMessage(builderForValue.build()); + allConversionsFromInteractionsValuePerInteractionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The number of clicks.
+     * The value of all conversions from interactions divided by the total number
+     * of interactions.
      * 
* - * .google.protobuf.Int64Value clicks = 19; + * .google.protobuf.DoubleValue all_conversions_from_interactions_value_per_interaction = 67; */ - public Builder mergeClicks(com.google.protobuf.Int64Value value) { - if (clicksBuilder_ == null) { - if (clicks_ != null) { - clicks_ = - com.google.protobuf.Int64Value.newBuilder(clicks_).mergeFrom(value).buildPartial(); + public Builder mergeAllConversionsFromInteractionsValuePerInteraction(com.google.protobuf.DoubleValue value) { + if (allConversionsFromInteractionsValuePerInteractionBuilder_ == null) { + if (allConversionsFromInteractionsValuePerInteraction_ != null) { + allConversionsFromInteractionsValuePerInteraction_ = + com.google.protobuf.DoubleValue.newBuilder(allConversionsFromInteractionsValuePerInteraction_).mergeFrom(value).buildPartial(); } else { - clicks_ = value; + allConversionsFromInteractionsValuePerInteraction_ = value; } onChanged(); } else { - clicksBuilder_.mergeFrom(value); + allConversionsFromInteractionsValuePerInteractionBuilder_.mergeFrom(value); } return this; } /** *
-     * The number of clicks.
+     * The value of all conversions from interactions divided by the total number
+     * of interactions.
      * 
* - * .google.protobuf.Int64Value clicks = 19; + * .google.protobuf.DoubleValue all_conversions_from_interactions_value_per_interaction = 67; */ - public Builder clearClicks() { - if (clicksBuilder_ == null) { - clicks_ = null; + public Builder clearAllConversionsFromInteractionsValuePerInteraction() { + if (allConversionsFromInteractionsValuePerInteractionBuilder_ == null) { + allConversionsFromInteractionsValuePerInteraction_ = null; onChanged(); } else { - clicks_ = null; - clicksBuilder_ = null; + allConversionsFromInteractionsValuePerInteraction_ = null; + allConversionsFromInteractionsValuePerInteractionBuilder_ = null; } return this; } /** *
-     * The number of clicks.
+     * The value of all conversions from interactions divided by the total number
+     * of interactions.
      * 
* - * .google.protobuf.Int64Value clicks = 19; + * .google.protobuf.DoubleValue all_conversions_from_interactions_value_per_interaction = 67; */ - public com.google.protobuf.Int64Value.Builder getClicksBuilder() { + public com.google.protobuf.DoubleValue.Builder getAllConversionsFromInteractionsValuePerInteractionBuilder() { onChanged(); - return getClicksFieldBuilder().getBuilder(); + return getAllConversionsFromInteractionsValuePerInteractionFieldBuilder().getBuilder(); } /** *
-     * The number of clicks.
+     * The value of all conversions from interactions divided by the total number
+     * of interactions.
      * 
* - * .google.protobuf.Int64Value clicks = 19; + * .google.protobuf.DoubleValue all_conversions_from_interactions_value_per_interaction = 67; */ - public com.google.protobuf.Int64ValueOrBuilder getClicksOrBuilder() { - if (clicksBuilder_ != null) { - return clicksBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getAllConversionsFromInteractionsValuePerInteractionOrBuilder() { + if (allConversionsFromInteractionsValuePerInteractionBuilder_ != null) { + return allConversionsFromInteractionsValuePerInteractionBuilder_.getMessageOrBuilder(); } else { - return clicks_ == null ? - com.google.protobuf.Int64Value.getDefaultInstance() : clicks_; + return allConversionsFromInteractionsValuePerInteraction_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : allConversionsFromInteractionsValuePerInteraction_; } } /** *
-     * The number of clicks.
+     * The value of all conversions from interactions divided by the total number
+     * of interactions.
      * 
* - * .google.protobuf.Int64Value clicks = 19; + * .google.protobuf.DoubleValue all_conversions_from_interactions_value_per_interaction = 67; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> - getClicksFieldBuilder() { - if (clicksBuilder_ == null) { - clicksBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( - getClicks(), + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> + getAllConversionsFromInteractionsValuePerInteractionFieldBuilder() { + if (allConversionsFromInteractionsValuePerInteractionBuilder_ == null) { + allConversionsFromInteractionsValuePerInteractionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( + getAllConversionsFromInteractionsValuePerInteraction(), getParentForChildren(), isClean()); - clicks_ = null; + allConversionsFromInteractionsValuePerInteraction_ = null; } - return clicksBuilder_; + return allConversionsFromInteractionsValuePerInteractionBuilder_; } - private com.google.protobuf.DoubleValue contentBudgetLostImpressionShare_ = null; + private com.google.protobuf.DoubleValue averageCost_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> contentBudgetLostImpressionShareBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> averageCostBuilder_; /** *
-     * The estimated percent of times that your ad was eligible to show
-     * on the Display Network but didn't because your budget was too low.
-     * Note: Content budget lost impression share is reported in the range of 0
-     * to 0.9. Any value above 0.9 is reported as 0.9001.
+     * The average amount you pay per interaction. This amount is the total cost
+     * of your ads divided by the total number of interactions.
      * 
* - * .google.protobuf.DoubleValue content_budget_lost_impression_share = 20; + * .google.protobuf.DoubleValue average_cost = 8; */ - public boolean hasContentBudgetLostImpressionShare() { - return contentBudgetLostImpressionShareBuilder_ != null || contentBudgetLostImpressionShare_ != null; + public boolean hasAverageCost() { + return averageCostBuilder_ != null || averageCost_ != null; } /** *
-     * The estimated percent of times that your ad was eligible to show
-     * on the Display Network but didn't because your budget was too low.
-     * Note: Content budget lost impression share is reported in the range of 0
-     * to 0.9. Any value above 0.9 is reported as 0.9001.
+     * The average amount you pay per interaction. This amount is the total cost
+     * of your ads divided by the total number of interactions.
      * 
* - * .google.protobuf.DoubleValue content_budget_lost_impression_share = 20; + * .google.protobuf.DoubleValue average_cost = 8; */ - public com.google.protobuf.DoubleValue getContentBudgetLostImpressionShare() { - if (contentBudgetLostImpressionShareBuilder_ == null) { - return contentBudgetLostImpressionShare_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : contentBudgetLostImpressionShare_; + public com.google.protobuf.DoubleValue getAverageCost() { + if (averageCostBuilder_ == null) { + return averageCost_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : averageCost_; } else { - return contentBudgetLostImpressionShareBuilder_.getMessage(); + return averageCostBuilder_.getMessage(); } } /** *
-     * The estimated percent of times that your ad was eligible to show
-     * on the Display Network but didn't because your budget was too low.
-     * Note: Content budget lost impression share is reported in the range of 0
-     * to 0.9. Any value above 0.9 is reported as 0.9001.
+     * The average amount you pay per interaction. This amount is the total cost
+     * of your ads divided by the total number of interactions.
      * 
* - * .google.protobuf.DoubleValue content_budget_lost_impression_share = 20; + * .google.protobuf.DoubleValue average_cost = 8; */ - public Builder setContentBudgetLostImpressionShare(com.google.protobuf.DoubleValue value) { - if (contentBudgetLostImpressionShareBuilder_ == null) { + public Builder setAverageCost(com.google.protobuf.DoubleValue value) { + if (averageCostBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - contentBudgetLostImpressionShare_ = value; + averageCost_ = value; onChanged(); } else { - contentBudgetLostImpressionShareBuilder_.setMessage(value); + averageCostBuilder_.setMessage(value); } return this; } /** *
-     * The estimated percent of times that your ad was eligible to show
-     * on the Display Network but didn't because your budget was too low.
-     * Note: Content budget lost impression share is reported in the range of 0
-     * to 0.9. Any value above 0.9 is reported as 0.9001.
+     * The average amount you pay per interaction. This amount is the total cost
+     * of your ads divided by the total number of interactions.
      * 
* - * .google.protobuf.DoubleValue content_budget_lost_impression_share = 20; + * .google.protobuf.DoubleValue average_cost = 8; */ - public Builder setContentBudgetLostImpressionShare( + public Builder setAverageCost( com.google.protobuf.DoubleValue.Builder builderForValue) { - if (contentBudgetLostImpressionShareBuilder_ == null) { - contentBudgetLostImpressionShare_ = builderForValue.build(); + if (averageCostBuilder_ == null) { + averageCost_ = builderForValue.build(); onChanged(); } else { - contentBudgetLostImpressionShareBuilder_.setMessage(builderForValue.build()); + averageCostBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The estimated percent of times that your ad was eligible to show
-     * on the Display Network but didn't because your budget was too low.
-     * Note: Content budget lost impression share is reported in the range of 0
-     * to 0.9. Any value above 0.9 is reported as 0.9001.
+     * The average amount you pay per interaction. This amount is the total cost
+     * of your ads divided by the total number of interactions.
      * 
* - * .google.protobuf.DoubleValue content_budget_lost_impression_share = 20; + * .google.protobuf.DoubleValue average_cost = 8; */ - public Builder mergeContentBudgetLostImpressionShare(com.google.protobuf.DoubleValue value) { - if (contentBudgetLostImpressionShareBuilder_ == null) { - if (contentBudgetLostImpressionShare_ != null) { - contentBudgetLostImpressionShare_ = - com.google.protobuf.DoubleValue.newBuilder(contentBudgetLostImpressionShare_).mergeFrom(value).buildPartial(); + public Builder mergeAverageCost(com.google.protobuf.DoubleValue value) { + if (averageCostBuilder_ == null) { + if (averageCost_ != null) { + averageCost_ = + com.google.protobuf.DoubleValue.newBuilder(averageCost_).mergeFrom(value).buildPartial(); } else { - contentBudgetLostImpressionShare_ = value; + averageCost_ = value; } onChanged(); } else { - contentBudgetLostImpressionShareBuilder_.mergeFrom(value); + averageCostBuilder_.mergeFrom(value); } return this; } /** *
-     * The estimated percent of times that your ad was eligible to show
-     * on the Display Network but didn't because your budget was too low.
-     * Note: Content budget lost impression share is reported in the range of 0
-     * to 0.9. Any value above 0.9 is reported as 0.9001.
+     * The average amount you pay per interaction. This amount is the total cost
+     * of your ads divided by the total number of interactions.
      * 
* - * .google.protobuf.DoubleValue content_budget_lost_impression_share = 20; + * .google.protobuf.DoubleValue average_cost = 8; */ - public Builder clearContentBudgetLostImpressionShare() { - if (contentBudgetLostImpressionShareBuilder_ == null) { - contentBudgetLostImpressionShare_ = null; + public Builder clearAverageCost() { + if (averageCostBuilder_ == null) { + averageCost_ = null; onChanged(); } else { - contentBudgetLostImpressionShare_ = null; - contentBudgetLostImpressionShareBuilder_ = null; + averageCost_ = null; + averageCostBuilder_ = null; } return this; } /** *
-     * The estimated percent of times that your ad was eligible to show
-     * on the Display Network but didn't because your budget was too low.
-     * Note: Content budget lost impression share is reported in the range of 0
-     * to 0.9. Any value above 0.9 is reported as 0.9001.
+     * The average amount you pay per interaction. This amount is the total cost
+     * of your ads divided by the total number of interactions.
      * 
* - * .google.protobuf.DoubleValue content_budget_lost_impression_share = 20; + * .google.protobuf.DoubleValue average_cost = 8; */ - public com.google.protobuf.DoubleValue.Builder getContentBudgetLostImpressionShareBuilder() { + public com.google.protobuf.DoubleValue.Builder getAverageCostBuilder() { onChanged(); - return getContentBudgetLostImpressionShareFieldBuilder().getBuilder(); + return getAverageCostFieldBuilder().getBuilder(); } /** *
-     * The estimated percent of times that your ad was eligible to show
-     * on the Display Network but didn't because your budget was too low.
-     * Note: Content budget lost impression share is reported in the range of 0
-     * to 0.9. Any value above 0.9 is reported as 0.9001.
+     * The average amount you pay per interaction. This amount is the total cost
+     * of your ads divided by the total number of interactions.
      * 
* - * .google.protobuf.DoubleValue content_budget_lost_impression_share = 20; + * .google.protobuf.DoubleValue average_cost = 8; */ - public com.google.protobuf.DoubleValueOrBuilder getContentBudgetLostImpressionShareOrBuilder() { - if (contentBudgetLostImpressionShareBuilder_ != null) { - return contentBudgetLostImpressionShareBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getAverageCostOrBuilder() { + if (averageCostBuilder_ != null) { + return averageCostBuilder_.getMessageOrBuilder(); } else { - return contentBudgetLostImpressionShare_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : contentBudgetLostImpressionShare_; + return averageCost_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : averageCost_; } } /** *
-     * The estimated percent of times that your ad was eligible to show
-     * on the Display Network but didn't because your budget was too low.
-     * Note: Content budget lost impression share is reported in the range of 0
-     * to 0.9. Any value above 0.9 is reported as 0.9001.
-     * 
+ * The average amount you pay per interaction. This amount is the total cost + * of your ads divided by the total number of interactions. + *
* - * .google.protobuf.DoubleValue content_budget_lost_impression_share = 20; + * .google.protobuf.DoubleValue average_cost = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - getContentBudgetLostImpressionShareFieldBuilder() { - if (contentBudgetLostImpressionShareBuilder_ == null) { - contentBudgetLostImpressionShareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getAverageCostFieldBuilder() { + if (averageCostBuilder_ == null) { + averageCostBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getContentBudgetLostImpressionShare(), + getAverageCost(), getParentForChildren(), isClean()); - contentBudgetLostImpressionShare_ = null; + averageCost_ = null; } - return contentBudgetLostImpressionShareBuilder_; + return averageCostBuilder_; } - private com.google.protobuf.DoubleValue contentImpressionShare_ = null; + private com.google.protobuf.DoubleValue averageCpc_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> contentImpressionShareBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> averageCpcBuilder_; /** *
-     * The impressions you've received on the Display Network divided
-     * by the estimated number of impressions you were eligible to receive.
-     * Note: Content impression share is reported in the range of 0.1 to 1. Any
-     * value below 0.1 is reported as 0.0999.
+     * The total cost of all clicks divided by the total number of clicks
+     * received.
      * 
* - * .google.protobuf.DoubleValue content_impression_share = 21; + * .google.protobuf.DoubleValue average_cpc = 9; */ - public boolean hasContentImpressionShare() { - return contentImpressionShareBuilder_ != null || contentImpressionShare_ != null; + public boolean hasAverageCpc() { + return averageCpcBuilder_ != null || averageCpc_ != null; } /** *
-     * The impressions you've received on the Display Network divided
-     * by the estimated number of impressions you were eligible to receive.
-     * Note: Content impression share is reported in the range of 0.1 to 1. Any
-     * value below 0.1 is reported as 0.0999.
+     * The total cost of all clicks divided by the total number of clicks
+     * received.
      * 
* - * .google.protobuf.DoubleValue content_impression_share = 21; + * .google.protobuf.DoubleValue average_cpc = 9; */ - public com.google.protobuf.DoubleValue getContentImpressionShare() { - if (contentImpressionShareBuilder_ == null) { - return contentImpressionShare_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : contentImpressionShare_; + public com.google.protobuf.DoubleValue getAverageCpc() { + if (averageCpcBuilder_ == null) { + return averageCpc_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : averageCpc_; } else { - return contentImpressionShareBuilder_.getMessage(); + return averageCpcBuilder_.getMessage(); } } /** *
-     * The impressions you've received on the Display Network divided
-     * by the estimated number of impressions you were eligible to receive.
-     * Note: Content impression share is reported in the range of 0.1 to 1. Any
-     * value below 0.1 is reported as 0.0999.
+     * The total cost of all clicks divided by the total number of clicks
+     * received.
      * 
* - * .google.protobuf.DoubleValue content_impression_share = 21; + * .google.protobuf.DoubleValue average_cpc = 9; */ - public Builder setContentImpressionShare(com.google.protobuf.DoubleValue value) { - if (contentImpressionShareBuilder_ == null) { + public Builder setAverageCpc(com.google.protobuf.DoubleValue value) { + if (averageCpcBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - contentImpressionShare_ = value; + averageCpc_ = value; onChanged(); } else { - contentImpressionShareBuilder_.setMessage(value); + averageCpcBuilder_.setMessage(value); } return this; } /** *
-     * The impressions you've received on the Display Network divided
-     * by the estimated number of impressions you were eligible to receive.
-     * Note: Content impression share is reported in the range of 0.1 to 1. Any
-     * value below 0.1 is reported as 0.0999.
+     * The total cost of all clicks divided by the total number of clicks
+     * received.
      * 
* - * .google.protobuf.DoubleValue content_impression_share = 21; + * .google.protobuf.DoubleValue average_cpc = 9; */ - public Builder setContentImpressionShare( + public Builder setAverageCpc( com.google.protobuf.DoubleValue.Builder builderForValue) { - if (contentImpressionShareBuilder_ == null) { - contentImpressionShare_ = builderForValue.build(); + if (averageCpcBuilder_ == null) { + averageCpc_ = builderForValue.build(); onChanged(); } else { - contentImpressionShareBuilder_.setMessage(builderForValue.build()); + averageCpcBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The impressions you've received on the Display Network divided
-     * by the estimated number of impressions you were eligible to receive.
-     * Note: Content impression share is reported in the range of 0.1 to 1. Any
-     * value below 0.1 is reported as 0.0999.
+     * The total cost of all clicks divided by the total number of clicks
+     * received.
      * 
* - * .google.protobuf.DoubleValue content_impression_share = 21; + * .google.protobuf.DoubleValue average_cpc = 9; */ - public Builder mergeContentImpressionShare(com.google.protobuf.DoubleValue value) { - if (contentImpressionShareBuilder_ == null) { - if (contentImpressionShare_ != null) { - contentImpressionShare_ = - com.google.protobuf.DoubleValue.newBuilder(contentImpressionShare_).mergeFrom(value).buildPartial(); + public Builder mergeAverageCpc(com.google.protobuf.DoubleValue value) { + if (averageCpcBuilder_ == null) { + if (averageCpc_ != null) { + averageCpc_ = + com.google.protobuf.DoubleValue.newBuilder(averageCpc_).mergeFrom(value).buildPartial(); } else { - contentImpressionShare_ = value; + averageCpc_ = value; } onChanged(); } else { - contentImpressionShareBuilder_.mergeFrom(value); + averageCpcBuilder_.mergeFrom(value); } return this; } /** *
-     * The impressions you've received on the Display Network divided
-     * by the estimated number of impressions you were eligible to receive.
-     * Note: Content impression share is reported in the range of 0.1 to 1. Any
-     * value below 0.1 is reported as 0.0999.
+     * The total cost of all clicks divided by the total number of clicks
+     * received.
      * 
* - * .google.protobuf.DoubleValue content_impression_share = 21; + * .google.protobuf.DoubleValue average_cpc = 9; */ - public Builder clearContentImpressionShare() { - if (contentImpressionShareBuilder_ == null) { - contentImpressionShare_ = null; + public Builder clearAverageCpc() { + if (averageCpcBuilder_ == null) { + averageCpc_ = null; onChanged(); } else { - contentImpressionShare_ = null; - contentImpressionShareBuilder_ = null; + averageCpc_ = null; + averageCpcBuilder_ = null; } return this; } /** *
-     * The impressions you've received on the Display Network divided
-     * by the estimated number of impressions you were eligible to receive.
-     * Note: Content impression share is reported in the range of 0.1 to 1. Any
-     * value below 0.1 is reported as 0.0999.
+     * The total cost of all clicks divided by the total number of clicks
+     * received.
      * 
* - * .google.protobuf.DoubleValue content_impression_share = 21; + * .google.protobuf.DoubleValue average_cpc = 9; */ - public com.google.protobuf.DoubleValue.Builder getContentImpressionShareBuilder() { + public com.google.protobuf.DoubleValue.Builder getAverageCpcBuilder() { onChanged(); - return getContentImpressionShareFieldBuilder().getBuilder(); + return getAverageCpcFieldBuilder().getBuilder(); } /** *
-     * The impressions you've received on the Display Network divided
-     * by the estimated number of impressions you were eligible to receive.
-     * Note: Content impression share is reported in the range of 0.1 to 1. Any
-     * value below 0.1 is reported as 0.0999.
+     * The total cost of all clicks divided by the total number of clicks
+     * received.
      * 
* - * .google.protobuf.DoubleValue content_impression_share = 21; + * .google.protobuf.DoubleValue average_cpc = 9; */ - public com.google.protobuf.DoubleValueOrBuilder getContentImpressionShareOrBuilder() { - if (contentImpressionShareBuilder_ != null) { - return contentImpressionShareBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getAverageCpcOrBuilder() { + if (averageCpcBuilder_ != null) { + return averageCpcBuilder_.getMessageOrBuilder(); } else { - return contentImpressionShare_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : contentImpressionShare_; + return averageCpc_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : averageCpc_; } } /** *
-     * The impressions you've received on the Display Network divided
-     * by the estimated number of impressions you were eligible to receive.
-     * Note: Content impression share is reported in the range of 0.1 to 1. Any
-     * value below 0.1 is reported as 0.0999.
+     * The total cost of all clicks divided by the total number of clicks
+     * received.
      * 
* - * .google.protobuf.DoubleValue content_impression_share = 21; + * .google.protobuf.DoubleValue average_cpc = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - getContentImpressionShareFieldBuilder() { - if (contentImpressionShareBuilder_ == null) { - contentImpressionShareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getAverageCpcFieldBuilder() { + if (averageCpcBuilder_ == null) { + averageCpcBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getContentImpressionShare(), + getAverageCpc(), getParentForChildren(), isClean()); - contentImpressionShare_ = null; + averageCpc_ = null; } - return contentImpressionShareBuilder_; + return averageCpcBuilder_; } - private com.google.protobuf.StringValue conversionLastReceivedRequestDateTime_ = null; + private com.google.protobuf.DoubleValue averageCpe_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> conversionLastReceivedRequestDateTimeBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> averageCpeBuilder_; /** *
-     * The last date/time a conversion tag for this conversion action successfully
-     * fired and was seen by Google Ads. This firing event may not have been the
-     * result of an attributable conversion (e.g. because the tag was fired from a
-     * browser that did not previously click an ad from an appropriate
-     * advertiser). The date/time is in the customer's time zone.
+     * The average amount that you've been charged for an ad engagement. This
+     * amount is the total cost of all ad engagements divided by the total number
+     * of ad engagements.
      * 
* - * .google.protobuf.StringValue conversion_last_received_request_date_time = 73; + * .google.protobuf.DoubleValue average_cpe = 98; */ - public boolean hasConversionLastReceivedRequestDateTime() { - return conversionLastReceivedRequestDateTimeBuilder_ != null || conversionLastReceivedRequestDateTime_ != null; + public boolean hasAverageCpe() { + return averageCpeBuilder_ != null || averageCpe_ != null; } /** *
-     * The last date/time a conversion tag for this conversion action successfully
-     * fired and was seen by Google Ads. This firing event may not have been the
-     * result of an attributable conversion (e.g. because the tag was fired from a
-     * browser that did not previously click an ad from an appropriate
-     * advertiser). The date/time is in the customer's time zone.
+     * The average amount that you've been charged for an ad engagement. This
+     * amount is the total cost of all ad engagements divided by the total number
+     * of ad engagements.
      * 
* - * .google.protobuf.StringValue conversion_last_received_request_date_time = 73; + * .google.protobuf.DoubleValue average_cpe = 98; */ - public com.google.protobuf.StringValue getConversionLastReceivedRequestDateTime() { - if (conversionLastReceivedRequestDateTimeBuilder_ == null) { - return conversionLastReceivedRequestDateTime_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : conversionLastReceivedRequestDateTime_; + public com.google.protobuf.DoubleValue getAverageCpe() { + if (averageCpeBuilder_ == null) { + return averageCpe_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : averageCpe_; } else { - return conversionLastReceivedRequestDateTimeBuilder_.getMessage(); + return averageCpeBuilder_.getMessage(); } } /** *
-     * The last date/time a conversion tag for this conversion action successfully
-     * fired and was seen by Google Ads. This firing event may not have been the
-     * result of an attributable conversion (e.g. because the tag was fired from a
-     * browser that did not previously click an ad from an appropriate
-     * advertiser). The date/time is in the customer's time zone.
+     * The average amount that you've been charged for an ad engagement. This
+     * amount is the total cost of all ad engagements divided by the total number
+     * of ad engagements.
      * 
* - * .google.protobuf.StringValue conversion_last_received_request_date_time = 73; + * .google.protobuf.DoubleValue average_cpe = 98; */ - public Builder setConversionLastReceivedRequestDateTime(com.google.protobuf.StringValue value) { - if (conversionLastReceivedRequestDateTimeBuilder_ == null) { + public Builder setAverageCpe(com.google.protobuf.DoubleValue value) { + if (averageCpeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - conversionLastReceivedRequestDateTime_ = value; + averageCpe_ = value; onChanged(); } else { - conversionLastReceivedRequestDateTimeBuilder_.setMessage(value); + averageCpeBuilder_.setMessage(value); } return this; } /** *
-     * The last date/time a conversion tag for this conversion action successfully
-     * fired and was seen by Google Ads. This firing event may not have been the
-     * result of an attributable conversion (e.g. because the tag was fired from a
-     * browser that did not previously click an ad from an appropriate
-     * advertiser). The date/time is in the customer's time zone.
+     * The average amount that you've been charged for an ad engagement. This
+     * amount is the total cost of all ad engagements divided by the total number
+     * of ad engagements.
      * 
* - * .google.protobuf.StringValue conversion_last_received_request_date_time = 73; + * .google.protobuf.DoubleValue average_cpe = 98; */ - public Builder setConversionLastReceivedRequestDateTime( - com.google.protobuf.StringValue.Builder builderForValue) { - if (conversionLastReceivedRequestDateTimeBuilder_ == null) { - conversionLastReceivedRequestDateTime_ = builderForValue.build(); + public Builder setAverageCpe( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (averageCpeBuilder_ == null) { + averageCpe_ = builderForValue.build(); onChanged(); } else { - conversionLastReceivedRequestDateTimeBuilder_.setMessage(builderForValue.build()); + averageCpeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The last date/time a conversion tag for this conversion action successfully
-     * fired and was seen by Google Ads. This firing event may not have been the
-     * result of an attributable conversion (e.g. because the tag was fired from a
-     * browser that did not previously click an ad from an appropriate
-     * advertiser). The date/time is in the customer's time zone.
+     * The average amount that you've been charged for an ad engagement. This
+     * amount is the total cost of all ad engagements divided by the total number
+     * of ad engagements.
      * 
* - * .google.protobuf.StringValue conversion_last_received_request_date_time = 73; + * .google.protobuf.DoubleValue average_cpe = 98; */ - public Builder mergeConversionLastReceivedRequestDateTime(com.google.protobuf.StringValue value) { - if (conversionLastReceivedRequestDateTimeBuilder_ == null) { - if (conversionLastReceivedRequestDateTime_ != null) { - conversionLastReceivedRequestDateTime_ = - com.google.protobuf.StringValue.newBuilder(conversionLastReceivedRequestDateTime_).mergeFrom(value).buildPartial(); + public Builder mergeAverageCpe(com.google.protobuf.DoubleValue value) { + if (averageCpeBuilder_ == null) { + if (averageCpe_ != null) { + averageCpe_ = + com.google.protobuf.DoubleValue.newBuilder(averageCpe_).mergeFrom(value).buildPartial(); } else { - conversionLastReceivedRequestDateTime_ = value; + averageCpe_ = value; } onChanged(); } else { - conversionLastReceivedRequestDateTimeBuilder_.mergeFrom(value); + averageCpeBuilder_.mergeFrom(value); } return this; } /** *
-     * The last date/time a conversion tag for this conversion action successfully
-     * fired and was seen by Google Ads. This firing event may not have been the
-     * result of an attributable conversion (e.g. because the tag was fired from a
-     * browser that did not previously click an ad from an appropriate
-     * advertiser). The date/time is in the customer's time zone.
+     * The average amount that you've been charged for an ad engagement. This
+     * amount is the total cost of all ad engagements divided by the total number
+     * of ad engagements.
      * 
* - * .google.protobuf.StringValue conversion_last_received_request_date_time = 73; + * .google.protobuf.DoubleValue average_cpe = 98; */ - public Builder clearConversionLastReceivedRequestDateTime() { - if (conversionLastReceivedRequestDateTimeBuilder_ == null) { - conversionLastReceivedRequestDateTime_ = null; + public Builder clearAverageCpe() { + if (averageCpeBuilder_ == null) { + averageCpe_ = null; onChanged(); } else { - conversionLastReceivedRequestDateTime_ = null; - conversionLastReceivedRequestDateTimeBuilder_ = null; + averageCpe_ = null; + averageCpeBuilder_ = null; } return this; } /** *
-     * The last date/time a conversion tag for this conversion action successfully
-     * fired and was seen by Google Ads. This firing event may not have been the
-     * result of an attributable conversion (e.g. because the tag was fired from a
-     * browser that did not previously click an ad from an appropriate
-     * advertiser). The date/time is in the customer's time zone.
+     * The average amount that you've been charged for an ad engagement. This
+     * amount is the total cost of all ad engagements divided by the total number
+     * of ad engagements.
      * 
* - * .google.protobuf.StringValue conversion_last_received_request_date_time = 73; + * .google.protobuf.DoubleValue average_cpe = 98; */ - public com.google.protobuf.StringValue.Builder getConversionLastReceivedRequestDateTimeBuilder() { + public com.google.protobuf.DoubleValue.Builder getAverageCpeBuilder() { onChanged(); - return getConversionLastReceivedRequestDateTimeFieldBuilder().getBuilder(); + return getAverageCpeFieldBuilder().getBuilder(); } /** *
-     * The last date/time a conversion tag for this conversion action successfully
-     * fired and was seen by Google Ads. This firing event may not have been the
-     * result of an attributable conversion (e.g. because the tag was fired from a
-     * browser that did not previously click an ad from an appropriate
-     * advertiser). The date/time is in the customer's time zone.
+     * The average amount that you've been charged for an ad engagement. This
+     * amount is the total cost of all ad engagements divided by the total number
+     * of ad engagements.
      * 
* - * .google.protobuf.StringValue conversion_last_received_request_date_time = 73; + * .google.protobuf.DoubleValue average_cpe = 98; */ - public com.google.protobuf.StringValueOrBuilder getConversionLastReceivedRequestDateTimeOrBuilder() { - if (conversionLastReceivedRequestDateTimeBuilder_ != null) { - return conversionLastReceivedRequestDateTimeBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getAverageCpeOrBuilder() { + if (averageCpeBuilder_ != null) { + return averageCpeBuilder_.getMessageOrBuilder(); } else { - return conversionLastReceivedRequestDateTime_ == null ? - com.google.protobuf.StringValue.getDefaultInstance() : conversionLastReceivedRequestDateTime_; + return averageCpe_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : averageCpe_; } } /** *
-     * The last date/time a conversion tag for this conversion action successfully
-     * fired and was seen by Google Ads. This firing event may not have been the
-     * result of an attributable conversion (e.g. because the tag was fired from a
-     * browser that did not previously click an ad from an appropriate
-     * advertiser). The date/time is in the customer's time zone.
+     * The average amount that you've been charged for an ad engagement. This
+     * amount is the total cost of all ad engagements divided by the total number
+     * of ad engagements.
      * 
* - * .google.protobuf.StringValue conversion_last_received_request_date_time = 73; + * .google.protobuf.DoubleValue average_cpe = 98; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> - getConversionLastReceivedRequestDateTimeFieldBuilder() { - if (conversionLastReceivedRequestDateTimeBuilder_ == null) { - conversionLastReceivedRequestDateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( - getConversionLastReceivedRequestDateTime(), + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> + getAverageCpeFieldBuilder() { + if (averageCpeBuilder_ == null) { + averageCpeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( + getAverageCpe(), getParentForChildren(), isClean()); - conversionLastReceivedRequestDateTime_ = null; + averageCpe_ = null; } - return conversionLastReceivedRequestDateTimeBuilder_; + return averageCpeBuilder_; } - private com.google.protobuf.StringValue conversionLastConversionDate_ = null; + private com.google.protobuf.DoubleValue averageCpm_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> conversionLastConversionDateBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> averageCpmBuilder_; /** *
-     * The date of the most recent conversion for this conversion action. The date
-     * is in the customer's time zone.
+     * Average cost-per-thousand impressions (CPM).
      * 
* - * .google.protobuf.StringValue conversion_last_conversion_date = 74; + * .google.protobuf.DoubleValue average_cpm = 10; */ - public boolean hasConversionLastConversionDate() { - return conversionLastConversionDateBuilder_ != null || conversionLastConversionDate_ != null; + public boolean hasAverageCpm() { + return averageCpmBuilder_ != null || averageCpm_ != null; } /** *
-     * The date of the most recent conversion for this conversion action. The date
-     * is in the customer's time zone.
+     * Average cost-per-thousand impressions (CPM).
      * 
* - * .google.protobuf.StringValue conversion_last_conversion_date = 74; + * .google.protobuf.DoubleValue average_cpm = 10; */ - public com.google.protobuf.StringValue getConversionLastConversionDate() { - if (conversionLastConversionDateBuilder_ == null) { - return conversionLastConversionDate_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : conversionLastConversionDate_; + public com.google.protobuf.DoubleValue getAverageCpm() { + if (averageCpmBuilder_ == null) { + return averageCpm_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : averageCpm_; } else { - return conversionLastConversionDateBuilder_.getMessage(); + return averageCpmBuilder_.getMessage(); } } /** *
-     * The date of the most recent conversion for this conversion action. The date
-     * is in the customer's time zone.
+     * Average cost-per-thousand impressions (CPM).
      * 
* - * .google.protobuf.StringValue conversion_last_conversion_date = 74; + * .google.protobuf.DoubleValue average_cpm = 10; */ - public Builder setConversionLastConversionDate(com.google.protobuf.StringValue value) { - if (conversionLastConversionDateBuilder_ == null) { + public Builder setAverageCpm(com.google.protobuf.DoubleValue value) { + if (averageCpmBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - conversionLastConversionDate_ = value; + averageCpm_ = value; onChanged(); } else { - conversionLastConversionDateBuilder_.setMessage(value); + averageCpmBuilder_.setMessage(value); } return this; } /** *
-     * The date of the most recent conversion for this conversion action. The date
-     * is in the customer's time zone.
+     * Average cost-per-thousand impressions (CPM).
      * 
* - * .google.protobuf.StringValue conversion_last_conversion_date = 74; + * .google.protobuf.DoubleValue average_cpm = 10; */ - public Builder setConversionLastConversionDate( - com.google.protobuf.StringValue.Builder builderForValue) { - if (conversionLastConversionDateBuilder_ == null) { - conversionLastConversionDate_ = builderForValue.build(); + public Builder setAverageCpm( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (averageCpmBuilder_ == null) { + averageCpm_ = builderForValue.build(); onChanged(); } else { - conversionLastConversionDateBuilder_.setMessage(builderForValue.build()); + averageCpmBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The date of the most recent conversion for this conversion action. The date
-     * is in the customer's time zone.
+     * Average cost-per-thousand impressions (CPM).
      * 
* - * .google.protobuf.StringValue conversion_last_conversion_date = 74; + * .google.protobuf.DoubleValue average_cpm = 10; */ - public Builder mergeConversionLastConversionDate(com.google.protobuf.StringValue value) { - if (conversionLastConversionDateBuilder_ == null) { - if (conversionLastConversionDate_ != null) { - conversionLastConversionDate_ = - com.google.protobuf.StringValue.newBuilder(conversionLastConversionDate_).mergeFrom(value).buildPartial(); + public Builder mergeAverageCpm(com.google.protobuf.DoubleValue value) { + if (averageCpmBuilder_ == null) { + if (averageCpm_ != null) { + averageCpm_ = + com.google.protobuf.DoubleValue.newBuilder(averageCpm_).mergeFrom(value).buildPartial(); } else { - conversionLastConversionDate_ = value; + averageCpm_ = value; } onChanged(); } else { - conversionLastConversionDateBuilder_.mergeFrom(value); + averageCpmBuilder_.mergeFrom(value); } return this; } /** *
-     * The date of the most recent conversion for this conversion action. The date
-     * is in the customer's time zone.
+     * Average cost-per-thousand impressions (CPM).
      * 
* - * .google.protobuf.StringValue conversion_last_conversion_date = 74; + * .google.protobuf.DoubleValue average_cpm = 10; */ - public Builder clearConversionLastConversionDate() { - if (conversionLastConversionDateBuilder_ == null) { - conversionLastConversionDate_ = null; + public Builder clearAverageCpm() { + if (averageCpmBuilder_ == null) { + averageCpm_ = null; onChanged(); } else { - conversionLastConversionDate_ = null; - conversionLastConversionDateBuilder_ = null; + averageCpm_ = null; + averageCpmBuilder_ = null; } return this; } /** *
-     * The date of the most recent conversion for this conversion action. The date
-     * is in the customer's time zone.
+     * Average cost-per-thousand impressions (CPM).
      * 
* - * .google.protobuf.StringValue conversion_last_conversion_date = 74; + * .google.protobuf.DoubleValue average_cpm = 10; */ - public com.google.protobuf.StringValue.Builder getConversionLastConversionDateBuilder() { + public com.google.protobuf.DoubleValue.Builder getAverageCpmBuilder() { onChanged(); - return getConversionLastConversionDateFieldBuilder().getBuilder(); + return getAverageCpmFieldBuilder().getBuilder(); } /** *
-     * The date of the most recent conversion for this conversion action. The date
-     * is in the customer's time zone.
+     * Average cost-per-thousand impressions (CPM).
      * 
* - * .google.protobuf.StringValue conversion_last_conversion_date = 74; + * .google.protobuf.DoubleValue average_cpm = 10; */ - public com.google.protobuf.StringValueOrBuilder getConversionLastConversionDateOrBuilder() { - if (conversionLastConversionDateBuilder_ != null) { - return conversionLastConversionDateBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getAverageCpmOrBuilder() { + if (averageCpmBuilder_ != null) { + return averageCpmBuilder_.getMessageOrBuilder(); } else { - return conversionLastConversionDate_ == null ? - com.google.protobuf.StringValue.getDefaultInstance() : conversionLastConversionDate_; + return averageCpm_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : averageCpm_; } } /** *
-     * The date of the most recent conversion for this conversion action. The date
-     * is in the customer's time zone.
+     * Average cost-per-thousand impressions (CPM).
      * 
* - * .google.protobuf.StringValue conversion_last_conversion_date = 74; + * .google.protobuf.DoubleValue average_cpm = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> - getConversionLastConversionDateFieldBuilder() { - if (conversionLastConversionDateBuilder_ == null) { - conversionLastConversionDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( - getConversionLastConversionDate(), + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> + getAverageCpmFieldBuilder() { + if (averageCpmBuilder_ == null) { + averageCpmBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( + getAverageCpm(), getParentForChildren(), isClean()); - conversionLastConversionDate_ = null; + averageCpm_ = null; } - return conversionLastConversionDateBuilder_; + return averageCpmBuilder_; } - private com.google.protobuf.DoubleValue contentRankLostImpressionShare_ = null; + private com.google.protobuf.DoubleValue averageCpv_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> contentRankLostImpressionShareBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> averageCpvBuilder_; /** *
-     * The estimated percentage of impressions on the Display Network
-     * that your ads didn't receive due to poor Ad Rank.
-     * Note: Content rank lost impression share is reported in the range of 0
-     * to 0.9. Any value above 0.9 is reported as 0.9001.
+     * The average amount you pay each time someone views your ad.
+     * The average CPV is defined by the total cost of all ad views divided by
+     * the number of views.
      * 
* - * .google.protobuf.DoubleValue content_rank_lost_impression_share = 22; + * .google.protobuf.DoubleValue average_cpv = 11; */ - public boolean hasContentRankLostImpressionShare() { - return contentRankLostImpressionShareBuilder_ != null || contentRankLostImpressionShare_ != null; + public boolean hasAverageCpv() { + return averageCpvBuilder_ != null || averageCpv_ != null; } /** *
-     * The estimated percentage of impressions on the Display Network
-     * that your ads didn't receive due to poor Ad Rank.
-     * Note: Content rank lost impression share is reported in the range of 0
-     * to 0.9. Any value above 0.9 is reported as 0.9001.
+     * The average amount you pay each time someone views your ad.
+     * The average CPV is defined by the total cost of all ad views divided by
+     * the number of views.
      * 
* - * .google.protobuf.DoubleValue content_rank_lost_impression_share = 22; + * .google.protobuf.DoubleValue average_cpv = 11; */ - public com.google.protobuf.DoubleValue getContentRankLostImpressionShare() { - if (contentRankLostImpressionShareBuilder_ == null) { - return contentRankLostImpressionShare_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : contentRankLostImpressionShare_; + public com.google.protobuf.DoubleValue getAverageCpv() { + if (averageCpvBuilder_ == null) { + return averageCpv_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : averageCpv_; } else { - return contentRankLostImpressionShareBuilder_.getMessage(); + return averageCpvBuilder_.getMessage(); } } /** *
-     * The estimated percentage of impressions on the Display Network
-     * that your ads didn't receive due to poor Ad Rank.
-     * Note: Content rank lost impression share is reported in the range of 0
-     * to 0.9. Any value above 0.9 is reported as 0.9001.
+     * The average amount you pay each time someone views your ad.
+     * The average CPV is defined by the total cost of all ad views divided by
+     * the number of views.
      * 
* - * .google.protobuf.DoubleValue content_rank_lost_impression_share = 22; + * .google.protobuf.DoubleValue average_cpv = 11; */ - public Builder setContentRankLostImpressionShare(com.google.protobuf.DoubleValue value) { - if (contentRankLostImpressionShareBuilder_ == null) { + public Builder setAverageCpv(com.google.protobuf.DoubleValue value) { + if (averageCpvBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - contentRankLostImpressionShare_ = value; + averageCpv_ = value; onChanged(); } else { - contentRankLostImpressionShareBuilder_.setMessage(value); + averageCpvBuilder_.setMessage(value); } return this; } /** *
-     * The estimated percentage of impressions on the Display Network
-     * that your ads didn't receive due to poor Ad Rank.
-     * Note: Content rank lost impression share is reported in the range of 0
-     * to 0.9. Any value above 0.9 is reported as 0.9001.
+     * The average amount you pay each time someone views your ad.
+     * The average CPV is defined by the total cost of all ad views divided by
+     * the number of views.
      * 
* - * .google.protobuf.DoubleValue content_rank_lost_impression_share = 22; + * .google.protobuf.DoubleValue average_cpv = 11; */ - public Builder setContentRankLostImpressionShare( + public Builder setAverageCpv( com.google.protobuf.DoubleValue.Builder builderForValue) { - if (contentRankLostImpressionShareBuilder_ == null) { - contentRankLostImpressionShare_ = builderForValue.build(); + if (averageCpvBuilder_ == null) { + averageCpv_ = builderForValue.build(); onChanged(); } else { - contentRankLostImpressionShareBuilder_.setMessage(builderForValue.build()); + averageCpvBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The estimated percentage of impressions on the Display Network
-     * that your ads didn't receive due to poor Ad Rank.
-     * Note: Content rank lost impression share is reported in the range of 0
-     * to 0.9. Any value above 0.9 is reported as 0.9001.
+     * The average amount you pay each time someone views your ad.
+     * The average CPV is defined by the total cost of all ad views divided by
+     * the number of views.
      * 
* - * .google.protobuf.DoubleValue content_rank_lost_impression_share = 22; + * .google.protobuf.DoubleValue average_cpv = 11; */ - public Builder mergeContentRankLostImpressionShare(com.google.protobuf.DoubleValue value) { - if (contentRankLostImpressionShareBuilder_ == null) { - if (contentRankLostImpressionShare_ != null) { - contentRankLostImpressionShare_ = - com.google.protobuf.DoubleValue.newBuilder(contentRankLostImpressionShare_).mergeFrom(value).buildPartial(); + public Builder mergeAverageCpv(com.google.protobuf.DoubleValue value) { + if (averageCpvBuilder_ == null) { + if (averageCpv_ != null) { + averageCpv_ = + com.google.protobuf.DoubleValue.newBuilder(averageCpv_).mergeFrom(value).buildPartial(); } else { - contentRankLostImpressionShare_ = value; + averageCpv_ = value; } onChanged(); } else { - contentRankLostImpressionShareBuilder_.mergeFrom(value); + averageCpvBuilder_.mergeFrom(value); } return this; } /** *
-     * The estimated percentage of impressions on the Display Network
-     * that your ads didn't receive due to poor Ad Rank.
-     * Note: Content rank lost impression share is reported in the range of 0
-     * to 0.9. Any value above 0.9 is reported as 0.9001.
+     * The average amount you pay each time someone views your ad.
+     * The average CPV is defined by the total cost of all ad views divided by
+     * the number of views.
      * 
* - * .google.protobuf.DoubleValue content_rank_lost_impression_share = 22; + * .google.protobuf.DoubleValue average_cpv = 11; */ - public Builder clearContentRankLostImpressionShare() { - if (contentRankLostImpressionShareBuilder_ == null) { - contentRankLostImpressionShare_ = null; + public Builder clearAverageCpv() { + if (averageCpvBuilder_ == null) { + averageCpv_ = null; onChanged(); } else { - contentRankLostImpressionShare_ = null; - contentRankLostImpressionShareBuilder_ = null; + averageCpv_ = null; + averageCpvBuilder_ = null; } return this; } /** *
-     * The estimated percentage of impressions on the Display Network
-     * that your ads didn't receive due to poor Ad Rank.
-     * Note: Content rank lost impression share is reported in the range of 0
-     * to 0.9. Any value above 0.9 is reported as 0.9001.
+     * The average amount you pay each time someone views your ad.
+     * The average CPV is defined by the total cost of all ad views divided by
+     * the number of views.
      * 
* - * .google.protobuf.DoubleValue content_rank_lost_impression_share = 22; + * .google.protobuf.DoubleValue average_cpv = 11; */ - public com.google.protobuf.DoubleValue.Builder getContentRankLostImpressionShareBuilder() { + public com.google.protobuf.DoubleValue.Builder getAverageCpvBuilder() { onChanged(); - return getContentRankLostImpressionShareFieldBuilder().getBuilder(); + return getAverageCpvFieldBuilder().getBuilder(); } /** *
-     * The estimated percentage of impressions on the Display Network
-     * that your ads didn't receive due to poor Ad Rank.
-     * Note: Content rank lost impression share is reported in the range of 0
-     * to 0.9. Any value above 0.9 is reported as 0.9001.
+     * The average amount you pay each time someone views your ad.
+     * The average CPV is defined by the total cost of all ad views divided by
+     * the number of views.
      * 
* - * .google.protobuf.DoubleValue content_rank_lost_impression_share = 22; + * .google.protobuf.DoubleValue average_cpv = 11; */ - public com.google.protobuf.DoubleValueOrBuilder getContentRankLostImpressionShareOrBuilder() { - if (contentRankLostImpressionShareBuilder_ != null) { - return contentRankLostImpressionShareBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getAverageCpvOrBuilder() { + if (averageCpvBuilder_ != null) { + return averageCpvBuilder_.getMessageOrBuilder(); } else { - return contentRankLostImpressionShare_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : contentRankLostImpressionShare_; + return averageCpv_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : averageCpv_; } } /** *
-     * The estimated percentage of impressions on the Display Network
-     * that your ads didn't receive due to poor Ad Rank.
-     * Note: Content rank lost impression share is reported in the range of 0
-     * to 0.9. Any value above 0.9 is reported as 0.9001.
+     * The average amount you pay each time someone views your ad.
+     * The average CPV is defined by the total cost of all ad views divided by
+     * the number of views.
      * 
* - * .google.protobuf.DoubleValue content_rank_lost_impression_share = 22; + * .google.protobuf.DoubleValue average_cpv = 11; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - getContentRankLostImpressionShareFieldBuilder() { - if (contentRankLostImpressionShareBuilder_ == null) { - contentRankLostImpressionShareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getAverageCpvFieldBuilder() { + if (averageCpvBuilder_ == null) { + averageCpvBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getContentRankLostImpressionShare(), + getAverageCpv(), getParentForChildren(), isClean()); - contentRankLostImpressionShare_ = null; + averageCpv_ = null; } - return contentRankLostImpressionShareBuilder_; + return averageCpvBuilder_; } - private com.google.protobuf.DoubleValue conversionsFromInteractionsRate_ = null; + private com.google.protobuf.DoubleValue averageFrequency_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> conversionsFromInteractionsRateBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> averageFrequencyBuilder_; /** *
-     * Conversions from interactions divided by the number of ad interactions
-     * (such as clicks for text ads or views for video ads).
+     * Average number of times a unique cookie was exposed to your ad
+     * over a given time period. Imported from Google Analytics.
      * 
* - * .google.protobuf.DoubleValue conversions_from_interactions_rate = 69; + * .google.protobuf.DoubleValue average_frequency = 12; */ - public boolean hasConversionsFromInteractionsRate() { - return conversionsFromInteractionsRateBuilder_ != null || conversionsFromInteractionsRate_ != null; + public boolean hasAverageFrequency() { + return averageFrequencyBuilder_ != null || averageFrequency_ != null; } /** *
-     * Conversions from interactions divided by the number of ad interactions
-     * (such as clicks for text ads or views for video ads).
+     * Average number of times a unique cookie was exposed to your ad
+     * over a given time period. Imported from Google Analytics.
      * 
* - * .google.protobuf.DoubleValue conversions_from_interactions_rate = 69; + * .google.protobuf.DoubleValue average_frequency = 12; */ - public com.google.protobuf.DoubleValue getConversionsFromInteractionsRate() { - if (conversionsFromInteractionsRateBuilder_ == null) { - return conversionsFromInteractionsRate_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : conversionsFromInteractionsRate_; + public com.google.protobuf.DoubleValue getAverageFrequency() { + if (averageFrequencyBuilder_ == null) { + return averageFrequency_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : averageFrequency_; } else { - return conversionsFromInteractionsRateBuilder_.getMessage(); + return averageFrequencyBuilder_.getMessage(); } } /** *
-     * Conversions from interactions divided by the number of ad interactions
-     * (such as clicks for text ads or views for video ads).
+     * Average number of times a unique cookie was exposed to your ad
+     * over a given time period. Imported from Google Analytics.
      * 
* - * .google.protobuf.DoubleValue conversions_from_interactions_rate = 69; + * .google.protobuf.DoubleValue average_frequency = 12; */ - public Builder setConversionsFromInteractionsRate(com.google.protobuf.DoubleValue value) { - if (conversionsFromInteractionsRateBuilder_ == null) { + public Builder setAverageFrequency(com.google.protobuf.DoubleValue value) { + if (averageFrequencyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - conversionsFromInteractionsRate_ = value; + averageFrequency_ = value; onChanged(); } else { - conversionsFromInteractionsRateBuilder_.setMessage(value); + averageFrequencyBuilder_.setMessage(value); } return this; } /** *
-     * Conversions from interactions divided by the number of ad interactions
-     * (such as clicks for text ads or views for video ads).
+     * Average number of times a unique cookie was exposed to your ad
+     * over a given time period. Imported from Google Analytics.
      * 
* - * .google.protobuf.DoubleValue conversions_from_interactions_rate = 69; + * .google.protobuf.DoubleValue average_frequency = 12; */ - public Builder setConversionsFromInteractionsRate( + public Builder setAverageFrequency( com.google.protobuf.DoubleValue.Builder builderForValue) { - if (conversionsFromInteractionsRateBuilder_ == null) { - conversionsFromInteractionsRate_ = builderForValue.build(); + if (averageFrequencyBuilder_ == null) { + averageFrequency_ = builderForValue.build(); onChanged(); } else { - conversionsFromInteractionsRateBuilder_.setMessage(builderForValue.build()); + averageFrequencyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * Conversions from interactions divided by the number of ad interactions
-     * (such as clicks for text ads or views for video ads).
+     * Average number of times a unique cookie was exposed to your ad
+     * over a given time period. Imported from Google Analytics.
      * 
* - * .google.protobuf.DoubleValue conversions_from_interactions_rate = 69; + * .google.protobuf.DoubleValue average_frequency = 12; */ - public Builder mergeConversionsFromInteractionsRate(com.google.protobuf.DoubleValue value) { - if (conversionsFromInteractionsRateBuilder_ == null) { - if (conversionsFromInteractionsRate_ != null) { - conversionsFromInteractionsRate_ = - com.google.protobuf.DoubleValue.newBuilder(conversionsFromInteractionsRate_).mergeFrom(value).buildPartial(); + public Builder mergeAverageFrequency(com.google.protobuf.DoubleValue value) { + if (averageFrequencyBuilder_ == null) { + if (averageFrequency_ != null) { + averageFrequency_ = + com.google.protobuf.DoubleValue.newBuilder(averageFrequency_).mergeFrom(value).buildPartial(); } else { - conversionsFromInteractionsRate_ = value; + averageFrequency_ = value; } onChanged(); } else { - conversionsFromInteractionsRateBuilder_.mergeFrom(value); + averageFrequencyBuilder_.mergeFrom(value); } return this; } /** *
-     * Conversions from interactions divided by the number of ad interactions
-     * (such as clicks for text ads or views for video ads).
+     * Average number of times a unique cookie was exposed to your ad
+     * over a given time period. Imported from Google Analytics.
      * 
* - * .google.protobuf.DoubleValue conversions_from_interactions_rate = 69; + * .google.protobuf.DoubleValue average_frequency = 12; */ - public Builder clearConversionsFromInteractionsRate() { - if (conversionsFromInteractionsRateBuilder_ == null) { - conversionsFromInteractionsRate_ = null; + public Builder clearAverageFrequency() { + if (averageFrequencyBuilder_ == null) { + averageFrequency_ = null; onChanged(); } else { - conversionsFromInteractionsRate_ = null; - conversionsFromInteractionsRateBuilder_ = null; + averageFrequency_ = null; + averageFrequencyBuilder_ = null; } return this; } /** *
-     * Conversions from interactions divided by the number of ad interactions
-     * (such as clicks for text ads or views for video ads).
+     * Average number of times a unique cookie was exposed to your ad
+     * over a given time period. Imported from Google Analytics.
      * 
* - * .google.protobuf.DoubleValue conversions_from_interactions_rate = 69; + * .google.protobuf.DoubleValue average_frequency = 12; */ - public com.google.protobuf.DoubleValue.Builder getConversionsFromInteractionsRateBuilder() { + public com.google.protobuf.DoubleValue.Builder getAverageFrequencyBuilder() { onChanged(); - return getConversionsFromInteractionsRateFieldBuilder().getBuilder(); + return getAverageFrequencyFieldBuilder().getBuilder(); } /** *
-     * Conversions from interactions divided by the number of ad interactions
-     * (such as clicks for text ads or views for video ads).
+     * Average number of times a unique cookie was exposed to your ad
+     * over a given time period. Imported from Google Analytics.
      * 
* - * .google.protobuf.DoubleValue conversions_from_interactions_rate = 69; + * .google.protobuf.DoubleValue average_frequency = 12; */ - public com.google.protobuf.DoubleValueOrBuilder getConversionsFromInteractionsRateOrBuilder() { - if (conversionsFromInteractionsRateBuilder_ != null) { - return conversionsFromInteractionsRateBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getAverageFrequencyOrBuilder() { + if (averageFrequencyBuilder_ != null) { + return averageFrequencyBuilder_.getMessageOrBuilder(); } else { - return conversionsFromInteractionsRate_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : conversionsFromInteractionsRate_; + return averageFrequency_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : averageFrequency_; } } /** *
-     * Conversions from interactions divided by the number of ad interactions
-     * (such as clicks for text ads or views for video ads).
+     * Average number of times a unique cookie was exposed to your ad
+     * over a given time period. Imported from Google Analytics.
      * 
* - * .google.protobuf.DoubleValue conversions_from_interactions_rate = 69; + * .google.protobuf.DoubleValue average_frequency = 12; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - getConversionsFromInteractionsRateFieldBuilder() { - if (conversionsFromInteractionsRateBuilder_ == null) { - conversionsFromInteractionsRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getAverageFrequencyFieldBuilder() { + if (averageFrequencyBuilder_ == null) { + averageFrequencyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getConversionsFromInteractionsRate(), + getAverageFrequency(), getParentForChildren(), isClean()); - conversionsFromInteractionsRate_ = null; + averageFrequency_ = null; } - return conversionsFromInteractionsRateBuilder_; + return averageFrequencyBuilder_; } - private com.google.protobuf.DoubleValue conversionsValue_ = null; + private com.google.protobuf.DoubleValue averagePageViews_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> conversionsValueBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> averagePageViewsBuilder_; /** *
-     * The total value of conversions.
+     * Average number of pages viewed per session.
      * 
* - * .google.protobuf.DoubleValue conversions_value = 70; + * .google.protobuf.DoubleValue average_page_views = 99; */ - public boolean hasConversionsValue() { - return conversionsValueBuilder_ != null || conversionsValue_ != null; + public boolean hasAveragePageViews() { + return averagePageViewsBuilder_ != null || averagePageViews_ != null; } /** *
-     * The total value of conversions.
+     * Average number of pages viewed per session.
      * 
* - * .google.protobuf.DoubleValue conversions_value = 70; + * .google.protobuf.DoubleValue average_page_views = 99; */ - public com.google.protobuf.DoubleValue getConversionsValue() { - if (conversionsValueBuilder_ == null) { - return conversionsValue_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : conversionsValue_; + public com.google.protobuf.DoubleValue getAveragePageViews() { + if (averagePageViewsBuilder_ == null) { + return averagePageViews_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : averagePageViews_; } else { - return conversionsValueBuilder_.getMessage(); + return averagePageViewsBuilder_.getMessage(); } } /** *
-     * The total value of conversions.
+     * Average number of pages viewed per session.
      * 
* - * .google.protobuf.DoubleValue conversions_value = 70; + * .google.protobuf.DoubleValue average_page_views = 99; */ - public Builder setConversionsValue(com.google.protobuf.DoubleValue value) { - if (conversionsValueBuilder_ == null) { + public Builder setAveragePageViews(com.google.protobuf.DoubleValue value) { + if (averagePageViewsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - conversionsValue_ = value; + averagePageViews_ = value; onChanged(); } else { - conversionsValueBuilder_.setMessage(value); + averagePageViewsBuilder_.setMessage(value); } return this; } /** *
-     * The total value of conversions.
+     * Average number of pages viewed per session.
      * 
* - * .google.protobuf.DoubleValue conversions_value = 70; + * .google.protobuf.DoubleValue average_page_views = 99; */ - public Builder setConversionsValue( + public Builder setAveragePageViews( com.google.protobuf.DoubleValue.Builder builderForValue) { - if (conversionsValueBuilder_ == null) { - conversionsValue_ = builderForValue.build(); + if (averagePageViewsBuilder_ == null) { + averagePageViews_ = builderForValue.build(); onChanged(); } else { - conversionsValueBuilder_.setMessage(builderForValue.build()); + averagePageViewsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The total value of conversions.
+     * Average number of pages viewed per session.
      * 
* - * .google.protobuf.DoubleValue conversions_value = 70; + * .google.protobuf.DoubleValue average_page_views = 99; */ - public Builder mergeConversionsValue(com.google.protobuf.DoubleValue value) { - if (conversionsValueBuilder_ == null) { - if (conversionsValue_ != null) { - conversionsValue_ = - com.google.protobuf.DoubleValue.newBuilder(conversionsValue_).mergeFrom(value).buildPartial(); + public Builder mergeAveragePageViews(com.google.protobuf.DoubleValue value) { + if (averagePageViewsBuilder_ == null) { + if (averagePageViews_ != null) { + averagePageViews_ = + com.google.protobuf.DoubleValue.newBuilder(averagePageViews_).mergeFrom(value).buildPartial(); } else { - conversionsValue_ = value; + averagePageViews_ = value; } onChanged(); } else { - conversionsValueBuilder_.mergeFrom(value); + averagePageViewsBuilder_.mergeFrom(value); } return this; } /** *
-     * The total value of conversions.
+     * Average number of pages viewed per session.
      * 
* - * .google.protobuf.DoubleValue conversions_value = 70; + * .google.protobuf.DoubleValue average_page_views = 99; */ - public Builder clearConversionsValue() { - if (conversionsValueBuilder_ == null) { - conversionsValue_ = null; + public Builder clearAveragePageViews() { + if (averagePageViewsBuilder_ == null) { + averagePageViews_ = null; onChanged(); } else { - conversionsValue_ = null; - conversionsValueBuilder_ = null; + averagePageViews_ = null; + averagePageViewsBuilder_ = null; } return this; } /** *
-     * The total value of conversions.
+     * Average number of pages viewed per session.
      * 
* - * .google.protobuf.DoubleValue conversions_value = 70; + * .google.protobuf.DoubleValue average_page_views = 99; */ - public com.google.protobuf.DoubleValue.Builder getConversionsValueBuilder() { + public com.google.protobuf.DoubleValue.Builder getAveragePageViewsBuilder() { onChanged(); - return getConversionsValueFieldBuilder().getBuilder(); + return getAveragePageViewsFieldBuilder().getBuilder(); } /** *
-     * The total value of conversions.
+     * Average number of pages viewed per session.
      * 
* - * .google.protobuf.DoubleValue conversions_value = 70; + * .google.protobuf.DoubleValue average_page_views = 99; */ - public com.google.protobuf.DoubleValueOrBuilder getConversionsValueOrBuilder() { - if (conversionsValueBuilder_ != null) { - return conversionsValueBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getAveragePageViewsOrBuilder() { + if (averagePageViewsBuilder_ != null) { + return averagePageViewsBuilder_.getMessageOrBuilder(); } else { - return conversionsValue_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : conversionsValue_; + return averagePageViews_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : averagePageViews_; } } /** *
-     * The total value of conversions.
+     * Average number of pages viewed per session.
      * 
* - * .google.protobuf.DoubleValue conversions_value = 70; + * .google.protobuf.DoubleValue average_page_views = 99; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - getConversionsValueFieldBuilder() { - if (conversionsValueBuilder_ == null) { - conversionsValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getAveragePageViewsFieldBuilder() { + if (averagePageViewsBuilder_ == null) { + averagePageViewsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getConversionsValue(), + getAveragePageViews(), getParentForChildren(), isClean()); - conversionsValue_ = null; + averagePageViews_ = null; } - return conversionsValueBuilder_; + return averagePageViewsBuilder_; } - private com.google.protobuf.DoubleValue conversionsValuePerCost_ = null; + private com.google.protobuf.DoubleValue averagePosition_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> conversionsValuePerCostBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> averagePositionBuilder_; /** *
-     * The value of conversions divided by the cost of ad interactions.
+     * Your ad's position relative to those of other advertisers.
      * 
* - * .google.protobuf.DoubleValue conversions_value_per_cost = 71; + * .google.protobuf.DoubleValue average_position = 13; */ - public boolean hasConversionsValuePerCost() { - return conversionsValuePerCostBuilder_ != null || conversionsValuePerCost_ != null; + public boolean hasAveragePosition() { + return averagePositionBuilder_ != null || averagePosition_ != null; } /** *
-     * The value of conversions divided by the cost of ad interactions.
+     * Your ad's position relative to those of other advertisers.
      * 
* - * .google.protobuf.DoubleValue conversions_value_per_cost = 71; + * .google.protobuf.DoubleValue average_position = 13; */ - public com.google.protobuf.DoubleValue getConversionsValuePerCost() { - if (conversionsValuePerCostBuilder_ == null) { - return conversionsValuePerCost_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : conversionsValuePerCost_; + public com.google.protobuf.DoubleValue getAveragePosition() { + if (averagePositionBuilder_ == null) { + return averagePosition_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : averagePosition_; } else { - return conversionsValuePerCostBuilder_.getMessage(); + return averagePositionBuilder_.getMessage(); } } /** *
-     * The value of conversions divided by the cost of ad interactions.
+     * Your ad's position relative to those of other advertisers.
      * 
* - * .google.protobuf.DoubleValue conversions_value_per_cost = 71; + * .google.protobuf.DoubleValue average_position = 13; */ - public Builder setConversionsValuePerCost(com.google.protobuf.DoubleValue value) { - if (conversionsValuePerCostBuilder_ == null) { + public Builder setAveragePosition(com.google.protobuf.DoubleValue value) { + if (averagePositionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - conversionsValuePerCost_ = value; + averagePosition_ = value; onChanged(); } else { - conversionsValuePerCostBuilder_.setMessage(value); + averagePositionBuilder_.setMessage(value); } return this; } /** *
-     * The value of conversions divided by the cost of ad interactions.
+     * Your ad's position relative to those of other advertisers.
      * 
* - * .google.protobuf.DoubleValue conversions_value_per_cost = 71; + * .google.protobuf.DoubleValue average_position = 13; */ - public Builder setConversionsValuePerCost( + public Builder setAveragePosition( com.google.protobuf.DoubleValue.Builder builderForValue) { - if (conversionsValuePerCostBuilder_ == null) { - conversionsValuePerCost_ = builderForValue.build(); + if (averagePositionBuilder_ == null) { + averagePosition_ = builderForValue.build(); onChanged(); } else { - conversionsValuePerCostBuilder_.setMessage(builderForValue.build()); + averagePositionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The value of conversions divided by the cost of ad interactions.
+     * Your ad's position relative to those of other advertisers.
      * 
* - * .google.protobuf.DoubleValue conversions_value_per_cost = 71; + * .google.protobuf.DoubleValue average_position = 13; */ - public Builder mergeConversionsValuePerCost(com.google.protobuf.DoubleValue value) { - if (conversionsValuePerCostBuilder_ == null) { - if (conversionsValuePerCost_ != null) { - conversionsValuePerCost_ = - com.google.protobuf.DoubleValue.newBuilder(conversionsValuePerCost_).mergeFrom(value).buildPartial(); + public Builder mergeAveragePosition(com.google.protobuf.DoubleValue value) { + if (averagePositionBuilder_ == null) { + if (averagePosition_ != null) { + averagePosition_ = + com.google.protobuf.DoubleValue.newBuilder(averagePosition_).mergeFrom(value).buildPartial(); } else { - conversionsValuePerCost_ = value; + averagePosition_ = value; } onChanged(); } else { - conversionsValuePerCostBuilder_.mergeFrom(value); + averagePositionBuilder_.mergeFrom(value); } return this; } /** *
-     * The value of conversions divided by the cost of ad interactions.
+     * Your ad's position relative to those of other advertisers.
      * 
* - * .google.protobuf.DoubleValue conversions_value_per_cost = 71; + * .google.protobuf.DoubleValue average_position = 13; */ - public Builder clearConversionsValuePerCost() { - if (conversionsValuePerCostBuilder_ == null) { - conversionsValuePerCost_ = null; + public Builder clearAveragePosition() { + if (averagePositionBuilder_ == null) { + averagePosition_ = null; onChanged(); } else { - conversionsValuePerCost_ = null; - conversionsValuePerCostBuilder_ = null; + averagePosition_ = null; + averagePositionBuilder_ = null; } return this; } /** *
-     * The value of conversions divided by the cost of ad interactions.
+     * Your ad's position relative to those of other advertisers.
      * 
* - * .google.protobuf.DoubleValue conversions_value_per_cost = 71; + * .google.protobuf.DoubleValue average_position = 13; */ - public com.google.protobuf.DoubleValue.Builder getConversionsValuePerCostBuilder() { + public com.google.protobuf.DoubleValue.Builder getAveragePositionBuilder() { onChanged(); - return getConversionsValuePerCostFieldBuilder().getBuilder(); + return getAveragePositionFieldBuilder().getBuilder(); } /** *
-     * The value of conversions divided by the cost of ad interactions.
+     * Your ad's position relative to those of other advertisers.
      * 
* - * .google.protobuf.DoubleValue conversions_value_per_cost = 71; + * .google.protobuf.DoubleValue average_position = 13; */ - public com.google.protobuf.DoubleValueOrBuilder getConversionsValuePerCostOrBuilder() { - if (conversionsValuePerCostBuilder_ != null) { - return conversionsValuePerCostBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getAveragePositionOrBuilder() { + if (averagePositionBuilder_ != null) { + return averagePositionBuilder_.getMessageOrBuilder(); } else { - return conversionsValuePerCost_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : conversionsValuePerCost_; + return averagePosition_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : averagePosition_; } } /** *
-     * The value of conversions divided by the cost of ad interactions.
+     * Your ad's position relative to those of other advertisers.
      * 
* - * .google.protobuf.DoubleValue conversions_value_per_cost = 71; + * .google.protobuf.DoubleValue average_position = 13; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - getConversionsValuePerCostFieldBuilder() { - if (conversionsValuePerCostBuilder_ == null) { - conversionsValuePerCostBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getAveragePositionFieldBuilder() { + if (averagePositionBuilder_ == null) { + averagePositionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getConversionsValuePerCost(), + getAveragePosition(), getParentForChildren(), isClean()); - conversionsValuePerCost_ = null; + averagePosition_ = null; } - return conversionsValuePerCostBuilder_; + return averagePositionBuilder_; } - private com.google.protobuf.DoubleValue conversionsFromInteractionsValuePerInteraction_ = null; + private com.google.protobuf.DoubleValue averageTimeOnSite_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> conversionsFromInteractionsValuePerInteractionBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> averageTimeOnSiteBuilder_; /** *
-     * The value of conversions from interactions divided by the number of ad
-     * interactions.
+     * Total duration of all sessions (in seconds) / number of sessions. Imported
+     * from Google Analytics.
      * 
* - * .google.protobuf.DoubleValue conversions_from_interactions_value_per_interaction = 72; + * .google.protobuf.DoubleValue average_time_on_site = 84; */ - public boolean hasConversionsFromInteractionsValuePerInteraction() { - return conversionsFromInteractionsValuePerInteractionBuilder_ != null || conversionsFromInteractionsValuePerInteraction_ != null; + public boolean hasAverageTimeOnSite() { + return averageTimeOnSiteBuilder_ != null || averageTimeOnSite_ != null; } /** *
-     * The value of conversions from interactions divided by the number of ad
-     * interactions.
+     * Total duration of all sessions (in seconds) / number of sessions. Imported
+     * from Google Analytics.
      * 
* - * .google.protobuf.DoubleValue conversions_from_interactions_value_per_interaction = 72; + * .google.protobuf.DoubleValue average_time_on_site = 84; */ - public com.google.protobuf.DoubleValue getConversionsFromInteractionsValuePerInteraction() { - if (conversionsFromInteractionsValuePerInteractionBuilder_ == null) { - return conversionsFromInteractionsValuePerInteraction_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : conversionsFromInteractionsValuePerInteraction_; + public com.google.protobuf.DoubleValue getAverageTimeOnSite() { + if (averageTimeOnSiteBuilder_ == null) { + return averageTimeOnSite_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : averageTimeOnSite_; } else { - return conversionsFromInteractionsValuePerInteractionBuilder_.getMessage(); + return averageTimeOnSiteBuilder_.getMessage(); } } /** *
-     * The value of conversions from interactions divided by the number of ad
-     * interactions.
+     * Total duration of all sessions (in seconds) / number of sessions. Imported
+     * from Google Analytics.
      * 
* - * .google.protobuf.DoubleValue conversions_from_interactions_value_per_interaction = 72; + * .google.protobuf.DoubleValue average_time_on_site = 84; */ - public Builder setConversionsFromInteractionsValuePerInteraction(com.google.protobuf.DoubleValue value) { - if (conversionsFromInteractionsValuePerInteractionBuilder_ == null) { + public Builder setAverageTimeOnSite(com.google.protobuf.DoubleValue value) { + if (averageTimeOnSiteBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - conversionsFromInteractionsValuePerInteraction_ = value; + averageTimeOnSite_ = value; onChanged(); } else { - conversionsFromInteractionsValuePerInteractionBuilder_.setMessage(value); + averageTimeOnSiteBuilder_.setMessage(value); } return this; } /** *
-     * The value of conversions from interactions divided by the number of ad
-     * interactions.
+     * Total duration of all sessions (in seconds) / number of sessions. Imported
+     * from Google Analytics.
      * 
* - * .google.protobuf.DoubleValue conversions_from_interactions_value_per_interaction = 72; + * .google.protobuf.DoubleValue average_time_on_site = 84; */ - public Builder setConversionsFromInteractionsValuePerInteraction( + public Builder setAverageTimeOnSite( com.google.protobuf.DoubleValue.Builder builderForValue) { - if (conversionsFromInteractionsValuePerInteractionBuilder_ == null) { - conversionsFromInteractionsValuePerInteraction_ = builderForValue.build(); + if (averageTimeOnSiteBuilder_ == null) { + averageTimeOnSite_ = builderForValue.build(); onChanged(); } else { - conversionsFromInteractionsValuePerInteractionBuilder_.setMessage(builderForValue.build()); + averageTimeOnSiteBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The value of conversions from interactions divided by the number of ad
-     * interactions.
+     * Total duration of all sessions (in seconds) / number of sessions. Imported
+     * from Google Analytics.
      * 
* - * .google.protobuf.DoubleValue conversions_from_interactions_value_per_interaction = 72; + * .google.protobuf.DoubleValue average_time_on_site = 84; */ - public Builder mergeConversionsFromInteractionsValuePerInteraction(com.google.protobuf.DoubleValue value) { - if (conversionsFromInteractionsValuePerInteractionBuilder_ == null) { - if (conversionsFromInteractionsValuePerInteraction_ != null) { - conversionsFromInteractionsValuePerInteraction_ = - com.google.protobuf.DoubleValue.newBuilder(conversionsFromInteractionsValuePerInteraction_).mergeFrom(value).buildPartial(); + public Builder mergeAverageTimeOnSite(com.google.protobuf.DoubleValue value) { + if (averageTimeOnSiteBuilder_ == null) { + if (averageTimeOnSite_ != null) { + averageTimeOnSite_ = + com.google.protobuf.DoubleValue.newBuilder(averageTimeOnSite_).mergeFrom(value).buildPartial(); } else { - conversionsFromInteractionsValuePerInteraction_ = value; + averageTimeOnSite_ = value; } onChanged(); } else { - conversionsFromInteractionsValuePerInteractionBuilder_.mergeFrom(value); + averageTimeOnSiteBuilder_.mergeFrom(value); } return this; } /** *
-     * The value of conversions from interactions divided by the number of ad
-     * interactions.
+     * Total duration of all sessions (in seconds) / number of sessions. Imported
+     * from Google Analytics.
      * 
* - * .google.protobuf.DoubleValue conversions_from_interactions_value_per_interaction = 72; + * .google.protobuf.DoubleValue average_time_on_site = 84; */ - public Builder clearConversionsFromInteractionsValuePerInteraction() { - if (conversionsFromInteractionsValuePerInteractionBuilder_ == null) { - conversionsFromInteractionsValuePerInteraction_ = null; + public Builder clearAverageTimeOnSite() { + if (averageTimeOnSiteBuilder_ == null) { + averageTimeOnSite_ = null; onChanged(); } else { - conversionsFromInteractionsValuePerInteraction_ = null; - conversionsFromInteractionsValuePerInteractionBuilder_ = null; + averageTimeOnSite_ = null; + averageTimeOnSiteBuilder_ = null; } return this; } /** *
-     * The value of conversions from interactions divided by the number of ad
-     * interactions.
+     * Total duration of all sessions (in seconds) / number of sessions. Imported
+     * from Google Analytics.
      * 
* - * .google.protobuf.DoubleValue conversions_from_interactions_value_per_interaction = 72; + * .google.protobuf.DoubleValue average_time_on_site = 84; */ - public com.google.protobuf.DoubleValue.Builder getConversionsFromInteractionsValuePerInteractionBuilder() { + public com.google.protobuf.DoubleValue.Builder getAverageTimeOnSiteBuilder() { onChanged(); - return getConversionsFromInteractionsValuePerInteractionFieldBuilder().getBuilder(); + return getAverageTimeOnSiteFieldBuilder().getBuilder(); } /** *
-     * The value of conversions from interactions divided by the number of ad
-     * interactions.
+     * Total duration of all sessions (in seconds) / number of sessions. Imported
+     * from Google Analytics.
      * 
* - * .google.protobuf.DoubleValue conversions_from_interactions_value_per_interaction = 72; + * .google.protobuf.DoubleValue average_time_on_site = 84; */ - public com.google.protobuf.DoubleValueOrBuilder getConversionsFromInteractionsValuePerInteractionOrBuilder() { - if (conversionsFromInteractionsValuePerInteractionBuilder_ != null) { - return conversionsFromInteractionsValuePerInteractionBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getAverageTimeOnSiteOrBuilder() { + if (averageTimeOnSiteBuilder_ != null) { + return averageTimeOnSiteBuilder_.getMessageOrBuilder(); } else { - return conversionsFromInteractionsValuePerInteraction_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : conversionsFromInteractionsValuePerInteraction_; + return averageTimeOnSite_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : averageTimeOnSite_; } } /** *
-     * The value of conversions from interactions divided by the number of ad
-     * interactions.
+     * Total duration of all sessions (in seconds) / number of sessions. Imported
+     * from Google Analytics.
      * 
* - * .google.protobuf.DoubleValue conversions_from_interactions_value_per_interaction = 72; + * .google.protobuf.DoubleValue average_time_on_site = 84; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - getConversionsFromInteractionsValuePerInteractionFieldBuilder() { - if (conversionsFromInteractionsValuePerInteractionBuilder_ == null) { - conversionsFromInteractionsValuePerInteractionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getAverageTimeOnSiteFieldBuilder() { + if (averageTimeOnSiteBuilder_ == null) { + averageTimeOnSiteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getConversionsFromInteractionsValuePerInteraction(), + getAverageTimeOnSite(), getParentForChildren(), isClean()); - conversionsFromInteractionsValuePerInteraction_ = null; + averageTimeOnSite_ = null; } - return conversionsFromInteractionsValuePerInteractionBuilder_; + return averageTimeOnSiteBuilder_; } - private com.google.protobuf.DoubleValue conversions_ = null; + private com.google.protobuf.DoubleValue benchmarkAverageMaxCpc_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> conversionsBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> benchmarkAverageMaxCpcBuilder_; /** *
-     * The number of conversions. This only includes conversion actions which have
-     * "Include in Conversions" checked.
+     * An indication of how other advertisers are bidding on similar products.
      * 
* - * .google.protobuf.DoubleValue conversions = 25; + * .google.protobuf.DoubleValue benchmark_average_max_cpc = 14; */ - public boolean hasConversions() { - return conversionsBuilder_ != null || conversions_ != null; + public boolean hasBenchmarkAverageMaxCpc() { + return benchmarkAverageMaxCpcBuilder_ != null || benchmarkAverageMaxCpc_ != null; } /** *
-     * The number of conversions. This only includes conversion actions which have
-     * "Include in Conversions" checked.
+     * An indication of how other advertisers are bidding on similar products.
      * 
* - * .google.protobuf.DoubleValue conversions = 25; + * .google.protobuf.DoubleValue benchmark_average_max_cpc = 14; */ - public com.google.protobuf.DoubleValue getConversions() { - if (conversionsBuilder_ == null) { - return conversions_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : conversions_; + public com.google.protobuf.DoubleValue getBenchmarkAverageMaxCpc() { + if (benchmarkAverageMaxCpcBuilder_ == null) { + return benchmarkAverageMaxCpc_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : benchmarkAverageMaxCpc_; } else { - return conversionsBuilder_.getMessage(); + return benchmarkAverageMaxCpcBuilder_.getMessage(); } } /** *
-     * The number of conversions. This only includes conversion actions which have
-     * "Include in Conversions" checked.
+     * An indication of how other advertisers are bidding on similar products.
      * 
* - * .google.protobuf.DoubleValue conversions = 25; + * .google.protobuf.DoubleValue benchmark_average_max_cpc = 14; */ - public Builder setConversions(com.google.protobuf.DoubleValue value) { - if (conversionsBuilder_ == null) { + public Builder setBenchmarkAverageMaxCpc(com.google.protobuf.DoubleValue value) { + if (benchmarkAverageMaxCpcBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - conversions_ = value; + benchmarkAverageMaxCpc_ = value; onChanged(); } else { - conversionsBuilder_.setMessage(value); + benchmarkAverageMaxCpcBuilder_.setMessage(value); } return this; } /** *
-     * The number of conversions. This only includes conversion actions which have
-     * "Include in Conversions" checked.
+     * An indication of how other advertisers are bidding on similar products.
      * 
* - * .google.protobuf.DoubleValue conversions = 25; + * .google.protobuf.DoubleValue benchmark_average_max_cpc = 14; */ - public Builder setConversions( + public Builder setBenchmarkAverageMaxCpc( com.google.protobuf.DoubleValue.Builder builderForValue) { - if (conversionsBuilder_ == null) { - conversions_ = builderForValue.build(); + if (benchmarkAverageMaxCpcBuilder_ == null) { + benchmarkAverageMaxCpc_ = builderForValue.build(); onChanged(); } else { - conversionsBuilder_.setMessage(builderForValue.build()); + benchmarkAverageMaxCpcBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The number of conversions. This only includes conversion actions which have
-     * "Include in Conversions" checked.
+     * An indication of how other advertisers are bidding on similar products.
      * 
* - * .google.protobuf.DoubleValue conversions = 25; + * .google.protobuf.DoubleValue benchmark_average_max_cpc = 14; */ - public Builder mergeConversions(com.google.protobuf.DoubleValue value) { - if (conversionsBuilder_ == null) { - if (conversions_ != null) { - conversions_ = - com.google.protobuf.DoubleValue.newBuilder(conversions_).mergeFrom(value).buildPartial(); + public Builder mergeBenchmarkAverageMaxCpc(com.google.protobuf.DoubleValue value) { + if (benchmarkAverageMaxCpcBuilder_ == null) { + if (benchmarkAverageMaxCpc_ != null) { + benchmarkAverageMaxCpc_ = + com.google.protobuf.DoubleValue.newBuilder(benchmarkAverageMaxCpc_).mergeFrom(value).buildPartial(); } else { - conversions_ = value; + benchmarkAverageMaxCpc_ = value; } onChanged(); } else { - conversionsBuilder_.mergeFrom(value); + benchmarkAverageMaxCpcBuilder_.mergeFrom(value); } return this; } /** *
-     * The number of conversions. This only includes conversion actions which have
-     * "Include in Conversions" checked.
+     * An indication of how other advertisers are bidding on similar products.
      * 
* - * .google.protobuf.DoubleValue conversions = 25; + * .google.protobuf.DoubleValue benchmark_average_max_cpc = 14; */ - public Builder clearConversions() { - if (conversionsBuilder_ == null) { - conversions_ = null; + public Builder clearBenchmarkAverageMaxCpc() { + if (benchmarkAverageMaxCpcBuilder_ == null) { + benchmarkAverageMaxCpc_ = null; onChanged(); } else { - conversions_ = null; - conversionsBuilder_ = null; + benchmarkAverageMaxCpc_ = null; + benchmarkAverageMaxCpcBuilder_ = null; } return this; } /** *
-     * The number of conversions. This only includes conversion actions which have
-     * "Include in Conversions" checked.
+     * An indication of how other advertisers are bidding on similar products.
      * 
* - * .google.protobuf.DoubleValue conversions = 25; + * .google.protobuf.DoubleValue benchmark_average_max_cpc = 14; */ - public com.google.protobuf.DoubleValue.Builder getConversionsBuilder() { + public com.google.protobuf.DoubleValue.Builder getBenchmarkAverageMaxCpcBuilder() { onChanged(); - return getConversionsFieldBuilder().getBuilder(); + return getBenchmarkAverageMaxCpcFieldBuilder().getBuilder(); } /** *
-     * The number of conversions. This only includes conversion actions which have
-     * "Include in Conversions" checked.
+     * An indication of how other advertisers are bidding on similar products.
      * 
* - * .google.protobuf.DoubleValue conversions = 25; + * .google.protobuf.DoubleValue benchmark_average_max_cpc = 14; */ - public com.google.protobuf.DoubleValueOrBuilder getConversionsOrBuilder() { - if (conversionsBuilder_ != null) { - return conversionsBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getBenchmarkAverageMaxCpcOrBuilder() { + if (benchmarkAverageMaxCpcBuilder_ != null) { + return benchmarkAverageMaxCpcBuilder_.getMessageOrBuilder(); } else { - return conversions_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : conversions_; + return benchmarkAverageMaxCpc_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : benchmarkAverageMaxCpc_; } } /** *
-     * The number of conversions. This only includes conversion actions which have
-     * "Include in Conversions" checked.
+     * An indication of how other advertisers are bidding on similar products.
      * 
* - * .google.protobuf.DoubleValue conversions = 25; + * .google.protobuf.DoubleValue benchmark_average_max_cpc = 14; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - getConversionsFieldBuilder() { - if (conversionsBuilder_ == null) { - conversionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getBenchmarkAverageMaxCpcFieldBuilder() { + if (benchmarkAverageMaxCpcBuilder_ == null) { + benchmarkAverageMaxCpcBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getConversions(), + getBenchmarkAverageMaxCpc(), getParentForChildren(), isClean()); - conversions_ = null; + benchmarkAverageMaxCpc_ = null; } - return conversionsBuilder_; + return benchmarkAverageMaxCpcBuilder_; } - private com.google.protobuf.Int64Value costMicros_ = null; + private com.google.protobuf.DoubleValue benchmarkCtr_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> costMicrosBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> benchmarkCtrBuilder_; /** *
-     * The sum of your cost-per-click (CPC) and cost-per-thousand impressions
-     * (CPM) costs during this period.
+     * An indication on how other advertisers' Shopping ads for similar products
+     * are performing based on how often people who see their ad click on it.
      * 
* - * .google.protobuf.Int64Value cost_micros = 26; + * .google.protobuf.DoubleValue benchmark_ctr = 77; */ - public boolean hasCostMicros() { - return costMicrosBuilder_ != null || costMicros_ != null; + public boolean hasBenchmarkCtr() { + return benchmarkCtrBuilder_ != null || benchmarkCtr_ != null; } /** *
-     * The sum of your cost-per-click (CPC) and cost-per-thousand impressions
-     * (CPM) costs during this period.
+     * An indication on how other advertisers' Shopping ads for similar products
+     * are performing based on how often people who see their ad click on it.
      * 
* - * .google.protobuf.Int64Value cost_micros = 26; + * .google.protobuf.DoubleValue benchmark_ctr = 77; */ - public com.google.protobuf.Int64Value getCostMicros() { - if (costMicrosBuilder_ == null) { - return costMicros_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : costMicros_; + public com.google.protobuf.DoubleValue getBenchmarkCtr() { + if (benchmarkCtrBuilder_ == null) { + return benchmarkCtr_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : benchmarkCtr_; } else { - return costMicrosBuilder_.getMessage(); + return benchmarkCtrBuilder_.getMessage(); } } /** *
-     * The sum of your cost-per-click (CPC) and cost-per-thousand impressions
-     * (CPM) costs during this period.
+     * An indication on how other advertisers' Shopping ads for similar products
+     * are performing based on how often people who see their ad click on it.
      * 
* - * .google.protobuf.Int64Value cost_micros = 26; + * .google.protobuf.DoubleValue benchmark_ctr = 77; */ - public Builder setCostMicros(com.google.protobuf.Int64Value value) { - if (costMicrosBuilder_ == null) { + public Builder setBenchmarkCtr(com.google.protobuf.DoubleValue value) { + if (benchmarkCtrBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - costMicros_ = value; + benchmarkCtr_ = value; onChanged(); } else { - costMicrosBuilder_.setMessage(value); + benchmarkCtrBuilder_.setMessage(value); } return this; } /** *
-     * The sum of your cost-per-click (CPC) and cost-per-thousand impressions
-     * (CPM) costs during this period.
+     * An indication on how other advertisers' Shopping ads for similar products
+     * are performing based on how often people who see their ad click on it.
      * 
* - * .google.protobuf.Int64Value cost_micros = 26; + * .google.protobuf.DoubleValue benchmark_ctr = 77; */ - public Builder setCostMicros( - com.google.protobuf.Int64Value.Builder builderForValue) { - if (costMicrosBuilder_ == null) { - costMicros_ = builderForValue.build(); + public Builder setBenchmarkCtr( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (benchmarkCtrBuilder_ == null) { + benchmarkCtr_ = builderForValue.build(); onChanged(); } else { - costMicrosBuilder_.setMessage(builderForValue.build()); + benchmarkCtrBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The sum of your cost-per-click (CPC) and cost-per-thousand impressions
-     * (CPM) costs during this period.
+     * An indication on how other advertisers' Shopping ads for similar products
+     * are performing based on how often people who see their ad click on it.
      * 
* - * .google.protobuf.Int64Value cost_micros = 26; + * .google.protobuf.DoubleValue benchmark_ctr = 77; */ - public Builder mergeCostMicros(com.google.protobuf.Int64Value value) { - if (costMicrosBuilder_ == null) { - if (costMicros_ != null) { - costMicros_ = - com.google.protobuf.Int64Value.newBuilder(costMicros_).mergeFrom(value).buildPartial(); + public Builder mergeBenchmarkCtr(com.google.protobuf.DoubleValue value) { + if (benchmarkCtrBuilder_ == null) { + if (benchmarkCtr_ != null) { + benchmarkCtr_ = + com.google.protobuf.DoubleValue.newBuilder(benchmarkCtr_).mergeFrom(value).buildPartial(); } else { - costMicros_ = value; + benchmarkCtr_ = value; } onChanged(); } else { - costMicrosBuilder_.mergeFrom(value); + benchmarkCtrBuilder_.mergeFrom(value); } return this; } /** *
-     * The sum of your cost-per-click (CPC) and cost-per-thousand impressions
-     * (CPM) costs during this period.
+     * An indication on how other advertisers' Shopping ads for similar products
+     * are performing based on how often people who see their ad click on it.
      * 
* - * .google.protobuf.Int64Value cost_micros = 26; + * .google.protobuf.DoubleValue benchmark_ctr = 77; */ - public Builder clearCostMicros() { - if (costMicrosBuilder_ == null) { - costMicros_ = null; + public Builder clearBenchmarkCtr() { + if (benchmarkCtrBuilder_ == null) { + benchmarkCtr_ = null; onChanged(); } else { - costMicros_ = null; - costMicrosBuilder_ = null; + benchmarkCtr_ = null; + benchmarkCtrBuilder_ = null; } return this; } /** *
-     * The sum of your cost-per-click (CPC) and cost-per-thousand impressions
-     * (CPM) costs during this period.
+     * An indication on how other advertisers' Shopping ads for similar products
+     * are performing based on how often people who see their ad click on it.
      * 
* - * .google.protobuf.Int64Value cost_micros = 26; + * .google.protobuf.DoubleValue benchmark_ctr = 77; */ - public com.google.protobuf.Int64Value.Builder getCostMicrosBuilder() { + public com.google.protobuf.DoubleValue.Builder getBenchmarkCtrBuilder() { onChanged(); - return getCostMicrosFieldBuilder().getBuilder(); + return getBenchmarkCtrFieldBuilder().getBuilder(); } /** *
-     * The sum of your cost-per-click (CPC) and cost-per-thousand impressions
-     * (CPM) costs during this period.
+     * An indication on how other advertisers' Shopping ads for similar products
+     * are performing based on how often people who see their ad click on it.
      * 
* - * .google.protobuf.Int64Value cost_micros = 26; + * .google.protobuf.DoubleValue benchmark_ctr = 77; */ - public com.google.protobuf.Int64ValueOrBuilder getCostMicrosOrBuilder() { - if (costMicrosBuilder_ != null) { - return costMicrosBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getBenchmarkCtrOrBuilder() { + if (benchmarkCtrBuilder_ != null) { + return benchmarkCtrBuilder_.getMessageOrBuilder(); } else { - return costMicros_ == null ? - com.google.protobuf.Int64Value.getDefaultInstance() : costMicros_; + return benchmarkCtr_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : benchmarkCtr_; } } /** *
-     * The sum of your cost-per-click (CPC) and cost-per-thousand impressions
-     * (CPM) costs during this period.
+     * An indication on how other advertisers' Shopping ads for similar products
+     * are performing based on how often people who see their ad click on it.
      * 
* - * .google.protobuf.Int64Value cost_micros = 26; + * .google.protobuf.DoubleValue benchmark_ctr = 77; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> - getCostMicrosFieldBuilder() { - if (costMicrosBuilder_ == null) { - costMicrosBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( - getCostMicros(), + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> + getBenchmarkCtrFieldBuilder() { + if (benchmarkCtrBuilder_ == null) { + benchmarkCtrBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( + getBenchmarkCtr(), getParentForChildren(), isClean()); - costMicros_ = null; + benchmarkCtr_ = null; } - return costMicrosBuilder_; + return benchmarkCtrBuilder_; } - private com.google.protobuf.DoubleValue costPerAllConversions_ = null; + private com.google.protobuf.DoubleValue bounceRate_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> costPerAllConversionsBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> bounceRateBuilder_; /** *
-     * The cost of ad interactions divided by all conversions.
+     * Percentage of clicks where the user only visited a single page on your
+     * site. Imported from Google Analytics.
      * 
* - * .google.protobuf.DoubleValue cost_per_all_conversions = 68; + * .google.protobuf.DoubleValue bounce_rate = 15; */ - public boolean hasCostPerAllConversions() { - return costPerAllConversionsBuilder_ != null || costPerAllConversions_ != null; + public boolean hasBounceRate() { + return bounceRateBuilder_ != null || bounceRate_ != null; } /** *
-     * The cost of ad interactions divided by all conversions.
+     * Percentage of clicks where the user only visited a single page on your
+     * site. Imported from Google Analytics.
      * 
* - * .google.protobuf.DoubleValue cost_per_all_conversions = 68; + * .google.protobuf.DoubleValue bounce_rate = 15; */ - public com.google.protobuf.DoubleValue getCostPerAllConversions() { - if (costPerAllConversionsBuilder_ == null) { - return costPerAllConversions_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : costPerAllConversions_; + public com.google.protobuf.DoubleValue getBounceRate() { + if (bounceRateBuilder_ == null) { + return bounceRate_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : bounceRate_; } else { - return costPerAllConversionsBuilder_.getMessage(); + return bounceRateBuilder_.getMessage(); } } /** *
-     * The cost of ad interactions divided by all conversions.
+     * Percentage of clicks where the user only visited a single page on your
+     * site. Imported from Google Analytics.
      * 
* - * .google.protobuf.DoubleValue cost_per_all_conversions = 68; + * .google.protobuf.DoubleValue bounce_rate = 15; */ - public Builder setCostPerAllConversions(com.google.protobuf.DoubleValue value) { - if (costPerAllConversionsBuilder_ == null) { + public Builder setBounceRate(com.google.protobuf.DoubleValue value) { + if (bounceRateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - costPerAllConversions_ = value; + bounceRate_ = value; onChanged(); } else { - costPerAllConversionsBuilder_.setMessage(value); + bounceRateBuilder_.setMessage(value); } return this; } /** *
-     * The cost of ad interactions divided by all conversions.
+     * Percentage of clicks where the user only visited a single page on your
+     * site. Imported from Google Analytics.
      * 
* - * .google.protobuf.DoubleValue cost_per_all_conversions = 68; + * .google.protobuf.DoubleValue bounce_rate = 15; */ - public Builder setCostPerAllConversions( + public Builder setBounceRate( com.google.protobuf.DoubleValue.Builder builderForValue) { - if (costPerAllConversionsBuilder_ == null) { - costPerAllConversions_ = builderForValue.build(); + if (bounceRateBuilder_ == null) { + bounceRate_ = builderForValue.build(); onChanged(); } else { - costPerAllConversionsBuilder_.setMessage(builderForValue.build()); + bounceRateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The cost of ad interactions divided by all conversions.
+     * Percentage of clicks where the user only visited a single page on your
+     * site. Imported from Google Analytics.
      * 
* - * .google.protobuf.DoubleValue cost_per_all_conversions = 68; + * .google.protobuf.DoubleValue bounce_rate = 15; */ - public Builder mergeCostPerAllConversions(com.google.protobuf.DoubleValue value) { - if (costPerAllConversionsBuilder_ == null) { - if (costPerAllConversions_ != null) { - costPerAllConversions_ = - com.google.protobuf.DoubleValue.newBuilder(costPerAllConversions_).mergeFrom(value).buildPartial(); + public Builder mergeBounceRate(com.google.protobuf.DoubleValue value) { + if (bounceRateBuilder_ == null) { + if (bounceRate_ != null) { + bounceRate_ = + com.google.protobuf.DoubleValue.newBuilder(bounceRate_).mergeFrom(value).buildPartial(); } else { - costPerAllConversions_ = value; + bounceRate_ = value; } onChanged(); } else { - costPerAllConversionsBuilder_.mergeFrom(value); + bounceRateBuilder_.mergeFrom(value); } return this; } /** *
-     * The cost of ad interactions divided by all conversions.
+     * Percentage of clicks where the user only visited a single page on your
+     * site. Imported from Google Analytics.
      * 
* - * .google.protobuf.DoubleValue cost_per_all_conversions = 68; + * .google.protobuf.DoubleValue bounce_rate = 15; */ - public Builder clearCostPerAllConversions() { - if (costPerAllConversionsBuilder_ == null) { - costPerAllConversions_ = null; + public Builder clearBounceRate() { + if (bounceRateBuilder_ == null) { + bounceRate_ = null; onChanged(); } else { - costPerAllConversions_ = null; - costPerAllConversionsBuilder_ = null; + bounceRate_ = null; + bounceRateBuilder_ = null; } return this; } /** *
-     * The cost of ad interactions divided by all conversions.
+     * Percentage of clicks where the user only visited a single page on your
+     * site. Imported from Google Analytics.
      * 
* - * .google.protobuf.DoubleValue cost_per_all_conversions = 68; + * .google.protobuf.DoubleValue bounce_rate = 15; */ - public com.google.protobuf.DoubleValue.Builder getCostPerAllConversionsBuilder() { + public com.google.protobuf.DoubleValue.Builder getBounceRateBuilder() { onChanged(); - return getCostPerAllConversionsFieldBuilder().getBuilder(); + return getBounceRateFieldBuilder().getBuilder(); } /** *
-     * The cost of ad interactions divided by all conversions.
+     * Percentage of clicks where the user only visited a single page on your
+     * site. Imported from Google Analytics.
      * 
* - * .google.protobuf.DoubleValue cost_per_all_conversions = 68; + * .google.protobuf.DoubleValue bounce_rate = 15; */ - public com.google.protobuf.DoubleValueOrBuilder getCostPerAllConversionsOrBuilder() { - if (costPerAllConversionsBuilder_ != null) { - return costPerAllConversionsBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getBounceRateOrBuilder() { + if (bounceRateBuilder_ != null) { + return bounceRateBuilder_.getMessageOrBuilder(); } else { - return costPerAllConversions_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : costPerAllConversions_; + return bounceRate_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : bounceRate_; } } /** *
-     * The cost of ad interactions divided by all conversions.
+     * Percentage of clicks where the user only visited a single page on your
+     * site. Imported from Google Analytics.
      * 
* - * .google.protobuf.DoubleValue cost_per_all_conversions = 68; + * .google.protobuf.DoubleValue bounce_rate = 15; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - getCostPerAllConversionsFieldBuilder() { - if (costPerAllConversionsBuilder_ == null) { - costPerAllConversionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getBounceRateFieldBuilder() { + if (bounceRateBuilder_ == null) { + bounceRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getCostPerAllConversions(), + getBounceRate(), getParentForChildren(), isClean()); - costPerAllConversions_ = null; + bounceRate_ = null; } - return costPerAllConversionsBuilder_; + return bounceRateBuilder_; } - private com.google.protobuf.DoubleValue costPerConversion_ = null; + private com.google.protobuf.Int64Value clicks_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> costPerConversionBuilder_; + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> clicksBuilder_; /** *
-     * The cost of ad interactions divided by conversions.
+     * The number of clicks.
      * 
* - * .google.protobuf.DoubleValue cost_per_conversion = 28; + * .google.protobuf.Int64Value clicks = 19; */ - public boolean hasCostPerConversion() { - return costPerConversionBuilder_ != null || costPerConversion_ != null; + public boolean hasClicks() { + return clicksBuilder_ != null || clicks_ != null; } /** *
-     * The cost of ad interactions divided by conversions.
+     * The number of clicks.
      * 
* - * .google.protobuf.DoubleValue cost_per_conversion = 28; + * .google.protobuf.Int64Value clicks = 19; */ - public com.google.protobuf.DoubleValue getCostPerConversion() { - if (costPerConversionBuilder_ == null) { - return costPerConversion_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : costPerConversion_; + public com.google.protobuf.Int64Value getClicks() { + if (clicksBuilder_ == null) { + return clicks_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : clicks_; } else { - return costPerConversionBuilder_.getMessage(); + return clicksBuilder_.getMessage(); } } /** *
-     * The cost of ad interactions divided by conversions.
+     * The number of clicks.
      * 
* - * .google.protobuf.DoubleValue cost_per_conversion = 28; + * .google.protobuf.Int64Value clicks = 19; */ - public Builder setCostPerConversion(com.google.protobuf.DoubleValue value) { - if (costPerConversionBuilder_ == null) { + public Builder setClicks(com.google.protobuf.Int64Value value) { + if (clicksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - costPerConversion_ = value; + clicks_ = value; onChanged(); } else { - costPerConversionBuilder_.setMessage(value); + clicksBuilder_.setMessage(value); } return this; } /** *
-     * The cost of ad interactions divided by conversions.
+     * The number of clicks.
      * 
* - * .google.protobuf.DoubleValue cost_per_conversion = 28; + * .google.protobuf.Int64Value clicks = 19; */ - public Builder setCostPerConversion( - com.google.protobuf.DoubleValue.Builder builderForValue) { - if (costPerConversionBuilder_ == null) { - costPerConversion_ = builderForValue.build(); + public Builder setClicks( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (clicksBuilder_ == null) { + clicks_ = builderForValue.build(); onChanged(); } else { - costPerConversionBuilder_.setMessage(builderForValue.build()); + clicksBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The cost of ad interactions divided by conversions.
+     * The number of clicks.
      * 
* - * .google.protobuf.DoubleValue cost_per_conversion = 28; + * .google.protobuf.Int64Value clicks = 19; */ - public Builder mergeCostPerConversion(com.google.protobuf.DoubleValue value) { - if (costPerConversionBuilder_ == null) { - if (costPerConversion_ != null) { - costPerConversion_ = - com.google.protobuf.DoubleValue.newBuilder(costPerConversion_).mergeFrom(value).buildPartial(); + public Builder mergeClicks(com.google.protobuf.Int64Value value) { + if (clicksBuilder_ == null) { + if (clicks_ != null) { + clicks_ = + com.google.protobuf.Int64Value.newBuilder(clicks_).mergeFrom(value).buildPartial(); } else { - costPerConversion_ = value; + clicks_ = value; } onChanged(); } else { - costPerConversionBuilder_.mergeFrom(value); + clicksBuilder_.mergeFrom(value); } return this; } /** *
-     * The cost of ad interactions divided by conversions.
+     * The number of clicks.
      * 
* - * .google.protobuf.DoubleValue cost_per_conversion = 28; + * .google.protobuf.Int64Value clicks = 19; */ - public Builder clearCostPerConversion() { - if (costPerConversionBuilder_ == null) { - costPerConversion_ = null; + public Builder clearClicks() { + if (clicksBuilder_ == null) { + clicks_ = null; onChanged(); } else { - costPerConversion_ = null; - costPerConversionBuilder_ = null; + clicks_ = null; + clicksBuilder_ = null; } return this; } /** *
-     * The cost of ad interactions divided by conversions.
+     * The number of clicks.
      * 
* - * .google.protobuf.DoubleValue cost_per_conversion = 28; + * .google.protobuf.Int64Value clicks = 19; */ - public com.google.protobuf.DoubleValue.Builder getCostPerConversionBuilder() { + public com.google.protobuf.Int64Value.Builder getClicksBuilder() { onChanged(); - return getCostPerConversionFieldBuilder().getBuilder(); + return getClicksFieldBuilder().getBuilder(); } /** *
-     * The cost of ad interactions divided by conversions.
+     * The number of clicks.
      * 
* - * .google.protobuf.DoubleValue cost_per_conversion = 28; + * .google.protobuf.Int64Value clicks = 19; */ - public com.google.protobuf.DoubleValueOrBuilder getCostPerConversionOrBuilder() { - if (costPerConversionBuilder_ != null) { - return costPerConversionBuilder_.getMessageOrBuilder(); + public com.google.protobuf.Int64ValueOrBuilder getClicksOrBuilder() { + if (clicksBuilder_ != null) { + return clicksBuilder_.getMessageOrBuilder(); } else { - return costPerConversion_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : costPerConversion_; + return clicks_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : clicks_; } } /** *
-     * The cost of ad interactions divided by conversions.
+     * The number of clicks.
      * 
* - * .google.protobuf.DoubleValue cost_per_conversion = 28; + * .google.protobuf.Int64Value clicks = 19; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - getCostPerConversionFieldBuilder() { - if (costPerConversionBuilder_ == null) { - costPerConversionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getCostPerConversion(), - getParentForChildren(), - isClean()); + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + getClicksFieldBuilder() { + if (clicksBuilder_ == null) { + clicksBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getClicks(), + getParentForChildren(), + isClean()); + clicks_ = null; + } + return clicksBuilder_; + } + + private com.google.protobuf.DoubleValue contentBudgetLostImpressionShare_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> contentBudgetLostImpressionShareBuilder_; + /** + *
+     * The estimated percent of times that your ad was eligible to show
+     * on the Display Network but didn't because your budget was too low.
+     * Note: Content budget lost impression share is reported in the range of 0
+     * to 0.9. Any value above 0.9 is reported as 0.9001.
+     * 
+ * + * .google.protobuf.DoubleValue content_budget_lost_impression_share = 20; + */ + public boolean hasContentBudgetLostImpressionShare() { + return contentBudgetLostImpressionShareBuilder_ != null || contentBudgetLostImpressionShare_ != null; + } + /** + *
+     * The estimated percent of times that your ad was eligible to show
+     * on the Display Network but didn't because your budget was too low.
+     * Note: Content budget lost impression share is reported in the range of 0
+     * to 0.9. Any value above 0.9 is reported as 0.9001.
+     * 
+ * + * .google.protobuf.DoubleValue content_budget_lost_impression_share = 20; + */ + public com.google.protobuf.DoubleValue getContentBudgetLostImpressionShare() { + if (contentBudgetLostImpressionShareBuilder_ == null) { + return contentBudgetLostImpressionShare_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : contentBudgetLostImpressionShare_; + } else { + return contentBudgetLostImpressionShareBuilder_.getMessage(); + } + } + /** + *
+     * The estimated percent of times that your ad was eligible to show
+     * on the Display Network but didn't because your budget was too low.
+     * Note: Content budget lost impression share is reported in the range of 0
+     * to 0.9. Any value above 0.9 is reported as 0.9001.
+     * 
+ * + * .google.protobuf.DoubleValue content_budget_lost_impression_share = 20; + */ + public Builder setContentBudgetLostImpressionShare(com.google.protobuf.DoubleValue value) { + if (contentBudgetLostImpressionShareBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + contentBudgetLostImpressionShare_ = value; + onChanged(); + } else { + contentBudgetLostImpressionShareBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The estimated percent of times that your ad was eligible to show
+     * on the Display Network but didn't because your budget was too low.
+     * Note: Content budget lost impression share is reported in the range of 0
+     * to 0.9. Any value above 0.9 is reported as 0.9001.
+     * 
+ * + * .google.protobuf.DoubleValue content_budget_lost_impression_share = 20; + */ + public Builder setContentBudgetLostImpressionShare( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (contentBudgetLostImpressionShareBuilder_ == null) { + contentBudgetLostImpressionShare_ = builderForValue.build(); + onChanged(); + } else { + contentBudgetLostImpressionShareBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The estimated percent of times that your ad was eligible to show
+     * on the Display Network but didn't because your budget was too low.
+     * Note: Content budget lost impression share is reported in the range of 0
+     * to 0.9. Any value above 0.9 is reported as 0.9001.
+     * 
+ * + * .google.protobuf.DoubleValue content_budget_lost_impression_share = 20; + */ + public Builder mergeContentBudgetLostImpressionShare(com.google.protobuf.DoubleValue value) { + if (contentBudgetLostImpressionShareBuilder_ == null) { + if (contentBudgetLostImpressionShare_ != null) { + contentBudgetLostImpressionShare_ = + com.google.protobuf.DoubleValue.newBuilder(contentBudgetLostImpressionShare_).mergeFrom(value).buildPartial(); + } else { + contentBudgetLostImpressionShare_ = value; + } + onChanged(); + } else { + contentBudgetLostImpressionShareBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The estimated percent of times that your ad was eligible to show
+     * on the Display Network but didn't because your budget was too low.
+     * Note: Content budget lost impression share is reported in the range of 0
+     * to 0.9. Any value above 0.9 is reported as 0.9001.
+     * 
+ * + * .google.protobuf.DoubleValue content_budget_lost_impression_share = 20; + */ + public Builder clearContentBudgetLostImpressionShare() { + if (contentBudgetLostImpressionShareBuilder_ == null) { + contentBudgetLostImpressionShare_ = null; + onChanged(); + } else { + contentBudgetLostImpressionShare_ = null; + contentBudgetLostImpressionShareBuilder_ = null; + } + + return this; + } + /** + *
+     * The estimated percent of times that your ad was eligible to show
+     * on the Display Network but didn't because your budget was too low.
+     * Note: Content budget lost impression share is reported in the range of 0
+     * to 0.9. Any value above 0.9 is reported as 0.9001.
+     * 
+ * + * .google.protobuf.DoubleValue content_budget_lost_impression_share = 20; + */ + public com.google.protobuf.DoubleValue.Builder getContentBudgetLostImpressionShareBuilder() { + + onChanged(); + return getContentBudgetLostImpressionShareFieldBuilder().getBuilder(); + } + /** + *
+     * The estimated percent of times that your ad was eligible to show
+     * on the Display Network but didn't because your budget was too low.
+     * Note: Content budget lost impression share is reported in the range of 0
+     * to 0.9. Any value above 0.9 is reported as 0.9001.
+     * 
+ * + * .google.protobuf.DoubleValue content_budget_lost_impression_share = 20; + */ + public com.google.protobuf.DoubleValueOrBuilder getContentBudgetLostImpressionShareOrBuilder() { + if (contentBudgetLostImpressionShareBuilder_ != null) { + return contentBudgetLostImpressionShareBuilder_.getMessageOrBuilder(); + } else { + return contentBudgetLostImpressionShare_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : contentBudgetLostImpressionShare_; + } + } + /** + *
+     * The estimated percent of times that your ad was eligible to show
+     * on the Display Network but didn't because your budget was too low.
+     * Note: Content budget lost impression share is reported in the range of 0
+     * to 0.9. Any value above 0.9 is reported as 0.9001.
+     * 
+ * + * .google.protobuf.DoubleValue content_budget_lost_impression_share = 20; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> + getContentBudgetLostImpressionShareFieldBuilder() { + if (contentBudgetLostImpressionShareBuilder_ == null) { + contentBudgetLostImpressionShareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( + getContentBudgetLostImpressionShare(), + getParentForChildren(), + isClean()); + contentBudgetLostImpressionShare_ = null; + } + return contentBudgetLostImpressionShareBuilder_; + } + + private com.google.protobuf.DoubleValue contentImpressionShare_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> contentImpressionShareBuilder_; + /** + *
+     * The impressions you've received on the Display Network divided
+     * by the estimated number of impressions you were eligible to receive.
+     * Note: Content impression share is reported in the range of 0.1 to 1. Any
+     * value below 0.1 is reported as 0.0999.
+     * 
+ * + * .google.protobuf.DoubleValue content_impression_share = 21; + */ + public boolean hasContentImpressionShare() { + return contentImpressionShareBuilder_ != null || contentImpressionShare_ != null; + } + /** + *
+     * The impressions you've received on the Display Network divided
+     * by the estimated number of impressions you were eligible to receive.
+     * Note: Content impression share is reported in the range of 0.1 to 1. Any
+     * value below 0.1 is reported as 0.0999.
+     * 
+ * + * .google.protobuf.DoubleValue content_impression_share = 21; + */ + public com.google.protobuf.DoubleValue getContentImpressionShare() { + if (contentImpressionShareBuilder_ == null) { + return contentImpressionShare_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : contentImpressionShare_; + } else { + return contentImpressionShareBuilder_.getMessage(); + } + } + /** + *
+     * The impressions you've received on the Display Network divided
+     * by the estimated number of impressions you were eligible to receive.
+     * Note: Content impression share is reported in the range of 0.1 to 1. Any
+     * value below 0.1 is reported as 0.0999.
+     * 
+ * + * .google.protobuf.DoubleValue content_impression_share = 21; + */ + public Builder setContentImpressionShare(com.google.protobuf.DoubleValue value) { + if (contentImpressionShareBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + contentImpressionShare_ = value; + onChanged(); + } else { + contentImpressionShareBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The impressions you've received on the Display Network divided
+     * by the estimated number of impressions you were eligible to receive.
+     * Note: Content impression share is reported in the range of 0.1 to 1. Any
+     * value below 0.1 is reported as 0.0999.
+     * 
+ * + * .google.protobuf.DoubleValue content_impression_share = 21; + */ + public Builder setContentImpressionShare( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (contentImpressionShareBuilder_ == null) { + contentImpressionShare_ = builderForValue.build(); + onChanged(); + } else { + contentImpressionShareBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The impressions you've received on the Display Network divided
+     * by the estimated number of impressions you were eligible to receive.
+     * Note: Content impression share is reported in the range of 0.1 to 1. Any
+     * value below 0.1 is reported as 0.0999.
+     * 
+ * + * .google.protobuf.DoubleValue content_impression_share = 21; + */ + public Builder mergeContentImpressionShare(com.google.protobuf.DoubleValue value) { + if (contentImpressionShareBuilder_ == null) { + if (contentImpressionShare_ != null) { + contentImpressionShare_ = + com.google.protobuf.DoubleValue.newBuilder(contentImpressionShare_).mergeFrom(value).buildPartial(); + } else { + contentImpressionShare_ = value; + } + onChanged(); + } else { + contentImpressionShareBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The impressions you've received on the Display Network divided
+     * by the estimated number of impressions you were eligible to receive.
+     * Note: Content impression share is reported in the range of 0.1 to 1. Any
+     * value below 0.1 is reported as 0.0999.
+     * 
+ * + * .google.protobuf.DoubleValue content_impression_share = 21; + */ + public Builder clearContentImpressionShare() { + if (contentImpressionShareBuilder_ == null) { + contentImpressionShare_ = null; + onChanged(); + } else { + contentImpressionShare_ = null; + contentImpressionShareBuilder_ = null; + } + + return this; + } + /** + *
+     * The impressions you've received on the Display Network divided
+     * by the estimated number of impressions you were eligible to receive.
+     * Note: Content impression share is reported in the range of 0.1 to 1. Any
+     * value below 0.1 is reported as 0.0999.
+     * 
+ * + * .google.protobuf.DoubleValue content_impression_share = 21; + */ + public com.google.protobuf.DoubleValue.Builder getContentImpressionShareBuilder() { + + onChanged(); + return getContentImpressionShareFieldBuilder().getBuilder(); + } + /** + *
+     * The impressions you've received on the Display Network divided
+     * by the estimated number of impressions you were eligible to receive.
+     * Note: Content impression share is reported in the range of 0.1 to 1. Any
+     * value below 0.1 is reported as 0.0999.
+     * 
+ * + * .google.protobuf.DoubleValue content_impression_share = 21; + */ + public com.google.protobuf.DoubleValueOrBuilder getContentImpressionShareOrBuilder() { + if (contentImpressionShareBuilder_ != null) { + return contentImpressionShareBuilder_.getMessageOrBuilder(); + } else { + return contentImpressionShare_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : contentImpressionShare_; + } + } + /** + *
+     * The impressions you've received on the Display Network divided
+     * by the estimated number of impressions you were eligible to receive.
+     * Note: Content impression share is reported in the range of 0.1 to 1. Any
+     * value below 0.1 is reported as 0.0999.
+     * 
+ * + * .google.protobuf.DoubleValue content_impression_share = 21; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> + getContentImpressionShareFieldBuilder() { + if (contentImpressionShareBuilder_ == null) { + contentImpressionShareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( + getContentImpressionShare(), + getParentForChildren(), + isClean()); + contentImpressionShare_ = null; + } + return contentImpressionShareBuilder_; + } + + private com.google.protobuf.StringValue conversionLastReceivedRequestDateTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> conversionLastReceivedRequestDateTimeBuilder_; + /** + *
+     * The last date/time a conversion tag for this conversion action successfully
+     * fired and was seen by Google Ads. This firing event may not have been the
+     * result of an attributable conversion (e.g. because the tag was fired from a
+     * browser that did not previously click an ad from an appropriate
+     * advertiser). The date/time is in the customer's time zone.
+     * 
+ * + * .google.protobuf.StringValue conversion_last_received_request_date_time = 73; + */ + public boolean hasConversionLastReceivedRequestDateTime() { + return conversionLastReceivedRequestDateTimeBuilder_ != null || conversionLastReceivedRequestDateTime_ != null; + } + /** + *
+     * The last date/time a conversion tag for this conversion action successfully
+     * fired and was seen by Google Ads. This firing event may not have been the
+     * result of an attributable conversion (e.g. because the tag was fired from a
+     * browser that did not previously click an ad from an appropriate
+     * advertiser). The date/time is in the customer's time zone.
+     * 
+ * + * .google.protobuf.StringValue conversion_last_received_request_date_time = 73; + */ + public com.google.protobuf.StringValue getConversionLastReceivedRequestDateTime() { + if (conversionLastReceivedRequestDateTimeBuilder_ == null) { + return conversionLastReceivedRequestDateTime_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : conversionLastReceivedRequestDateTime_; + } else { + return conversionLastReceivedRequestDateTimeBuilder_.getMessage(); + } + } + /** + *
+     * The last date/time a conversion tag for this conversion action successfully
+     * fired and was seen by Google Ads. This firing event may not have been the
+     * result of an attributable conversion (e.g. because the tag was fired from a
+     * browser that did not previously click an ad from an appropriate
+     * advertiser). The date/time is in the customer's time zone.
+     * 
+ * + * .google.protobuf.StringValue conversion_last_received_request_date_time = 73; + */ + public Builder setConversionLastReceivedRequestDateTime(com.google.protobuf.StringValue value) { + if (conversionLastReceivedRequestDateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conversionLastReceivedRequestDateTime_ = value; + onChanged(); + } else { + conversionLastReceivedRequestDateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The last date/time a conversion tag for this conversion action successfully
+     * fired and was seen by Google Ads. This firing event may not have been the
+     * result of an attributable conversion (e.g. because the tag was fired from a
+     * browser that did not previously click an ad from an appropriate
+     * advertiser). The date/time is in the customer's time zone.
+     * 
+ * + * .google.protobuf.StringValue conversion_last_received_request_date_time = 73; + */ + public Builder setConversionLastReceivedRequestDateTime( + com.google.protobuf.StringValue.Builder builderForValue) { + if (conversionLastReceivedRequestDateTimeBuilder_ == null) { + conversionLastReceivedRequestDateTime_ = builderForValue.build(); + onChanged(); + } else { + conversionLastReceivedRequestDateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The last date/time a conversion tag for this conversion action successfully
+     * fired and was seen by Google Ads. This firing event may not have been the
+     * result of an attributable conversion (e.g. because the tag was fired from a
+     * browser that did not previously click an ad from an appropriate
+     * advertiser). The date/time is in the customer's time zone.
+     * 
+ * + * .google.protobuf.StringValue conversion_last_received_request_date_time = 73; + */ + public Builder mergeConversionLastReceivedRequestDateTime(com.google.protobuf.StringValue value) { + if (conversionLastReceivedRequestDateTimeBuilder_ == null) { + if (conversionLastReceivedRequestDateTime_ != null) { + conversionLastReceivedRequestDateTime_ = + com.google.protobuf.StringValue.newBuilder(conversionLastReceivedRequestDateTime_).mergeFrom(value).buildPartial(); + } else { + conversionLastReceivedRequestDateTime_ = value; + } + onChanged(); + } else { + conversionLastReceivedRequestDateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The last date/time a conversion tag for this conversion action successfully
+     * fired and was seen by Google Ads. This firing event may not have been the
+     * result of an attributable conversion (e.g. because the tag was fired from a
+     * browser that did not previously click an ad from an appropriate
+     * advertiser). The date/time is in the customer's time zone.
+     * 
+ * + * .google.protobuf.StringValue conversion_last_received_request_date_time = 73; + */ + public Builder clearConversionLastReceivedRequestDateTime() { + if (conversionLastReceivedRequestDateTimeBuilder_ == null) { + conversionLastReceivedRequestDateTime_ = null; + onChanged(); + } else { + conversionLastReceivedRequestDateTime_ = null; + conversionLastReceivedRequestDateTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * The last date/time a conversion tag for this conversion action successfully
+     * fired and was seen by Google Ads. This firing event may not have been the
+     * result of an attributable conversion (e.g. because the tag was fired from a
+     * browser that did not previously click an ad from an appropriate
+     * advertiser). The date/time is in the customer's time zone.
+     * 
+ * + * .google.protobuf.StringValue conversion_last_received_request_date_time = 73; + */ + public com.google.protobuf.StringValue.Builder getConversionLastReceivedRequestDateTimeBuilder() { + + onChanged(); + return getConversionLastReceivedRequestDateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * The last date/time a conversion tag for this conversion action successfully
+     * fired and was seen by Google Ads. This firing event may not have been the
+     * result of an attributable conversion (e.g. because the tag was fired from a
+     * browser that did not previously click an ad from an appropriate
+     * advertiser). The date/time is in the customer's time zone.
+     * 
+ * + * .google.protobuf.StringValue conversion_last_received_request_date_time = 73; + */ + public com.google.protobuf.StringValueOrBuilder getConversionLastReceivedRequestDateTimeOrBuilder() { + if (conversionLastReceivedRequestDateTimeBuilder_ != null) { + return conversionLastReceivedRequestDateTimeBuilder_.getMessageOrBuilder(); + } else { + return conversionLastReceivedRequestDateTime_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : conversionLastReceivedRequestDateTime_; + } + } + /** + *
+     * The last date/time a conversion tag for this conversion action successfully
+     * fired and was seen by Google Ads. This firing event may not have been the
+     * result of an attributable conversion (e.g. because the tag was fired from a
+     * browser that did not previously click an ad from an appropriate
+     * advertiser). The date/time is in the customer's time zone.
+     * 
+ * + * .google.protobuf.StringValue conversion_last_received_request_date_time = 73; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getConversionLastReceivedRequestDateTimeFieldBuilder() { + if (conversionLastReceivedRequestDateTimeBuilder_ == null) { + conversionLastReceivedRequestDateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getConversionLastReceivedRequestDateTime(), + getParentForChildren(), + isClean()); + conversionLastReceivedRequestDateTime_ = null; + } + return conversionLastReceivedRequestDateTimeBuilder_; + } + + private com.google.protobuf.StringValue conversionLastConversionDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> conversionLastConversionDateBuilder_; + /** + *
+     * The date of the most recent conversion for this conversion action. The date
+     * is in the customer's time zone.
+     * 
+ * + * .google.protobuf.StringValue conversion_last_conversion_date = 74; + */ + public boolean hasConversionLastConversionDate() { + return conversionLastConversionDateBuilder_ != null || conversionLastConversionDate_ != null; + } + /** + *
+     * The date of the most recent conversion for this conversion action. The date
+     * is in the customer's time zone.
+     * 
+ * + * .google.protobuf.StringValue conversion_last_conversion_date = 74; + */ + public com.google.protobuf.StringValue getConversionLastConversionDate() { + if (conversionLastConversionDateBuilder_ == null) { + return conversionLastConversionDate_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : conversionLastConversionDate_; + } else { + return conversionLastConversionDateBuilder_.getMessage(); + } + } + /** + *
+     * The date of the most recent conversion for this conversion action. The date
+     * is in the customer's time zone.
+     * 
+ * + * .google.protobuf.StringValue conversion_last_conversion_date = 74; + */ + public Builder setConversionLastConversionDate(com.google.protobuf.StringValue value) { + if (conversionLastConversionDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conversionLastConversionDate_ = value; + onChanged(); + } else { + conversionLastConversionDateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The date of the most recent conversion for this conversion action. The date
+     * is in the customer's time zone.
+     * 
+ * + * .google.protobuf.StringValue conversion_last_conversion_date = 74; + */ + public Builder setConversionLastConversionDate( + com.google.protobuf.StringValue.Builder builderForValue) { + if (conversionLastConversionDateBuilder_ == null) { + conversionLastConversionDate_ = builderForValue.build(); + onChanged(); + } else { + conversionLastConversionDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The date of the most recent conversion for this conversion action. The date
+     * is in the customer's time zone.
+     * 
+ * + * .google.protobuf.StringValue conversion_last_conversion_date = 74; + */ + public Builder mergeConversionLastConversionDate(com.google.protobuf.StringValue value) { + if (conversionLastConversionDateBuilder_ == null) { + if (conversionLastConversionDate_ != null) { + conversionLastConversionDate_ = + com.google.protobuf.StringValue.newBuilder(conversionLastConversionDate_).mergeFrom(value).buildPartial(); + } else { + conversionLastConversionDate_ = value; + } + onChanged(); + } else { + conversionLastConversionDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The date of the most recent conversion for this conversion action. The date
+     * is in the customer's time zone.
+     * 
+ * + * .google.protobuf.StringValue conversion_last_conversion_date = 74; + */ + public Builder clearConversionLastConversionDate() { + if (conversionLastConversionDateBuilder_ == null) { + conversionLastConversionDate_ = null; + onChanged(); + } else { + conversionLastConversionDate_ = null; + conversionLastConversionDateBuilder_ = null; + } + + return this; + } + /** + *
+     * The date of the most recent conversion for this conversion action. The date
+     * is in the customer's time zone.
+     * 
+ * + * .google.protobuf.StringValue conversion_last_conversion_date = 74; + */ + public com.google.protobuf.StringValue.Builder getConversionLastConversionDateBuilder() { + + onChanged(); + return getConversionLastConversionDateFieldBuilder().getBuilder(); + } + /** + *
+     * The date of the most recent conversion for this conversion action. The date
+     * is in the customer's time zone.
+     * 
+ * + * .google.protobuf.StringValue conversion_last_conversion_date = 74; + */ + public com.google.protobuf.StringValueOrBuilder getConversionLastConversionDateOrBuilder() { + if (conversionLastConversionDateBuilder_ != null) { + return conversionLastConversionDateBuilder_.getMessageOrBuilder(); + } else { + return conversionLastConversionDate_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : conversionLastConversionDate_; + } + } + /** + *
+     * The date of the most recent conversion for this conversion action. The date
+     * is in the customer's time zone.
+     * 
+ * + * .google.protobuf.StringValue conversion_last_conversion_date = 74; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getConversionLastConversionDateFieldBuilder() { + if (conversionLastConversionDateBuilder_ == null) { + conversionLastConversionDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getConversionLastConversionDate(), + getParentForChildren(), + isClean()); + conversionLastConversionDate_ = null; + } + return conversionLastConversionDateBuilder_; + } + + private com.google.protobuf.DoubleValue contentRankLostImpressionShare_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> contentRankLostImpressionShareBuilder_; + /** + *
+     * The estimated percentage of impressions on the Display Network
+     * that your ads didn't receive due to poor Ad Rank.
+     * Note: Content rank lost impression share is reported in the range of 0
+     * to 0.9. Any value above 0.9 is reported as 0.9001.
+     * 
+ * + * .google.protobuf.DoubleValue content_rank_lost_impression_share = 22; + */ + public boolean hasContentRankLostImpressionShare() { + return contentRankLostImpressionShareBuilder_ != null || contentRankLostImpressionShare_ != null; + } + /** + *
+     * The estimated percentage of impressions on the Display Network
+     * that your ads didn't receive due to poor Ad Rank.
+     * Note: Content rank lost impression share is reported in the range of 0
+     * to 0.9. Any value above 0.9 is reported as 0.9001.
+     * 
+ * + * .google.protobuf.DoubleValue content_rank_lost_impression_share = 22; + */ + public com.google.protobuf.DoubleValue getContentRankLostImpressionShare() { + if (contentRankLostImpressionShareBuilder_ == null) { + return contentRankLostImpressionShare_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : contentRankLostImpressionShare_; + } else { + return contentRankLostImpressionShareBuilder_.getMessage(); + } + } + /** + *
+     * The estimated percentage of impressions on the Display Network
+     * that your ads didn't receive due to poor Ad Rank.
+     * Note: Content rank lost impression share is reported in the range of 0
+     * to 0.9. Any value above 0.9 is reported as 0.9001.
+     * 
+ * + * .google.protobuf.DoubleValue content_rank_lost_impression_share = 22; + */ + public Builder setContentRankLostImpressionShare(com.google.protobuf.DoubleValue value) { + if (contentRankLostImpressionShareBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + contentRankLostImpressionShare_ = value; + onChanged(); + } else { + contentRankLostImpressionShareBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The estimated percentage of impressions on the Display Network
+     * that your ads didn't receive due to poor Ad Rank.
+     * Note: Content rank lost impression share is reported in the range of 0
+     * to 0.9. Any value above 0.9 is reported as 0.9001.
+     * 
+ * + * .google.protobuf.DoubleValue content_rank_lost_impression_share = 22; + */ + public Builder setContentRankLostImpressionShare( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (contentRankLostImpressionShareBuilder_ == null) { + contentRankLostImpressionShare_ = builderForValue.build(); + onChanged(); + } else { + contentRankLostImpressionShareBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The estimated percentage of impressions on the Display Network
+     * that your ads didn't receive due to poor Ad Rank.
+     * Note: Content rank lost impression share is reported in the range of 0
+     * to 0.9. Any value above 0.9 is reported as 0.9001.
+     * 
+ * + * .google.protobuf.DoubleValue content_rank_lost_impression_share = 22; + */ + public Builder mergeContentRankLostImpressionShare(com.google.protobuf.DoubleValue value) { + if (contentRankLostImpressionShareBuilder_ == null) { + if (contentRankLostImpressionShare_ != null) { + contentRankLostImpressionShare_ = + com.google.protobuf.DoubleValue.newBuilder(contentRankLostImpressionShare_).mergeFrom(value).buildPartial(); + } else { + contentRankLostImpressionShare_ = value; + } + onChanged(); + } else { + contentRankLostImpressionShareBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The estimated percentage of impressions on the Display Network
+     * that your ads didn't receive due to poor Ad Rank.
+     * Note: Content rank lost impression share is reported in the range of 0
+     * to 0.9. Any value above 0.9 is reported as 0.9001.
+     * 
+ * + * .google.protobuf.DoubleValue content_rank_lost_impression_share = 22; + */ + public Builder clearContentRankLostImpressionShare() { + if (contentRankLostImpressionShareBuilder_ == null) { + contentRankLostImpressionShare_ = null; + onChanged(); + } else { + contentRankLostImpressionShare_ = null; + contentRankLostImpressionShareBuilder_ = null; + } + + return this; + } + /** + *
+     * The estimated percentage of impressions on the Display Network
+     * that your ads didn't receive due to poor Ad Rank.
+     * Note: Content rank lost impression share is reported in the range of 0
+     * to 0.9. Any value above 0.9 is reported as 0.9001.
+     * 
+ * + * .google.protobuf.DoubleValue content_rank_lost_impression_share = 22; + */ + public com.google.protobuf.DoubleValue.Builder getContentRankLostImpressionShareBuilder() { + + onChanged(); + return getContentRankLostImpressionShareFieldBuilder().getBuilder(); + } + /** + *
+     * The estimated percentage of impressions on the Display Network
+     * that your ads didn't receive due to poor Ad Rank.
+     * Note: Content rank lost impression share is reported in the range of 0
+     * to 0.9. Any value above 0.9 is reported as 0.9001.
+     * 
+ * + * .google.protobuf.DoubleValue content_rank_lost_impression_share = 22; + */ + public com.google.protobuf.DoubleValueOrBuilder getContentRankLostImpressionShareOrBuilder() { + if (contentRankLostImpressionShareBuilder_ != null) { + return contentRankLostImpressionShareBuilder_.getMessageOrBuilder(); + } else { + return contentRankLostImpressionShare_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : contentRankLostImpressionShare_; + } + } + /** + *
+     * The estimated percentage of impressions on the Display Network
+     * that your ads didn't receive due to poor Ad Rank.
+     * Note: Content rank lost impression share is reported in the range of 0
+     * to 0.9. Any value above 0.9 is reported as 0.9001.
+     * 
+ * + * .google.protobuf.DoubleValue content_rank_lost_impression_share = 22; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> + getContentRankLostImpressionShareFieldBuilder() { + if (contentRankLostImpressionShareBuilder_ == null) { + contentRankLostImpressionShareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( + getContentRankLostImpressionShare(), + getParentForChildren(), + isClean()); + contentRankLostImpressionShare_ = null; + } + return contentRankLostImpressionShareBuilder_; + } + + private com.google.protobuf.DoubleValue conversionsFromInteractionsRate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> conversionsFromInteractionsRateBuilder_; + /** + *
+     * Conversions from interactions divided by the number of ad interactions
+     * (such as clicks for text ads or views for video ads). This only includes
+     * conversion actions which include_in_conversions_metric attribute is set to
+     * true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions_from_interactions_rate = 69; + */ + public boolean hasConversionsFromInteractionsRate() { + return conversionsFromInteractionsRateBuilder_ != null || conversionsFromInteractionsRate_ != null; + } + /** + *
+     * Conversions from interactions divided by the number of ad interactions
+     * (such as clicks for text ads or views for video ads). This only includes
+     * conversion actions which include_in_conversions_metric attribute is set to
+     * true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions_from_interactions_rate = 69; + */ + public com.google.protobuf.DoubleValue getConversionsFromInteractionsRate() { + if (conversionsFromInteractionsRateBuilder_ == null) { + return conversionsFromInteractionsRate_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : conversionsFromInteractionsRate_; + } else { + return conversionsFromInteractionsRateBuilder_.getMessage(); + } + } + /** + *
+     * Conversions from interactions divided by the number of ad interactions
+     * (such as clicks for text ads or views for video ads). This only includes
+     * conversion actions which include_in_conversions_metric attribute is set to
+     * true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions_from_interactions_rate = 69; + */ + public Builder setConversionsFromInteractionsRate(com.google.protobuf.DoubleValue value) { + if (conversionsFromInteractionsRateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conversionsFromInteractionsRate_ = value; + onChanged(); + } else { + conversionsFromInteractionsRateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Conversions from interactions divided by the number of ad interactions
+     * (such as clicks for text ads or views for video ads). This only includes
+     * conversion actions which include_in_conversions_metric attribute is set to
+     * true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions_from_interactions_rate = 69; + */ + public Builder setConversionsFromInteractionsRate( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (conversionsFromInteractionsRateBuilder_ == null) { + conversionsFromInteractionsRate_ = builderForValue.build(); + onChanged(); + } else { + conversionsFromInteractionsRateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Conversions from interactions divided by the number of ad interactions
+     * (such as clicks for text ads or views for video ads). This only includes
+     * conversion actions which include_in_conversions_metric attribute is set to
+     * true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions_from_interactions_rate = 69; + */ + public Builder mergeConversionsFromInteractionsRate(com.google.protobuf.DoubleValue value) { + if (conversionsFromInteractionsRateBuilder_ == null) { + if (conversionsFromInteractionsRate_ != null) { + conversionsFromInteractionsRate_ = + com.google.protobuf.DoubleValue.newBuilder(conversionsFromInteractionsRate_).mergeFrom(value).buildPartial(); + } else { + conversionsFromInteractionsRate_ = value; + } + onChanged(); + } else { + conversionsFromInteractionsRateBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Conversions from interactions divided by the number of ad interactions
+     * (such as clicks for text ads or views for video ads). This only includes
+     * conversion actions which include_in_conversions_metric attribute is set to
+     * true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions_from_interactions_rate = 69; + */ + public Builder clearConversionsFromInteractionsRate() { + if (conversionsFromInteractionsRateBuilder_ == null) { + conversionsFromInteractionsRate_ = null; + onChanged(); + } else { + conversionsFromInteractionsRate_ = null; + conversionsFromInteractionsRateBuilder_ = null; + } + + return this; + } + /** + *
+     * Conversions from interactions divided by the number of ad interactions
+     * (such as clicks for text ads or views for video ads). This only includes
+     * conversion actions which include_in_conversions_metric attribute is set to
+     * true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions_from_interactions_rate = 69; + */ + public com.google.protobuf.DoubleValue.Builder getConversionsFromInteractionsRateBuilder() { + + onChanged(); + return getConversionsFromInteractionsRateFieldBuilder().getBuilder(); + } + /** + *
+     * Conversions from interactions divided by the number of ad interactions
+     * (such as clicks for text ads or views for video ads). This only includes
+     * conversion actions which include_in_conversions_metric attribute is set to
+     * true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions_from_interactions_rate = 69; + */ + public com.google.protobuf.DoubleValueOrBuilder getConversionsFromInteractionsRateOrBuilder() { + if (conversionsFromInteractionsRateBuilder_ != null) { + return conversionsFromInteractionsRateBuilder_.getMessageOrBuilder(); + } else { + return conversionsFromInteractionsRate_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : conversionsFromInteractionsRate_; + } + } + /** + *
+     * Conversions from interactions divided by the number of ad interactions
+     * (such as clicks for text ads or views for video ads). This only includes
+     * conversion actions which include_in_conversions_metric attribute is set to
+     * true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions_from_interactions_rate = 69; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> + getConversionsFromInteractionsRateFieldBuilder() { + if (conversionsFromInteractionsRateBuilder_ == null) { + conversionsFromInteractionsRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( + getConversionsFromInteractionsRate(), + getParentForChildren(), + isClean()); + conversionsFromInteractionsRate_ = null; + } + return conversionsFromInteractionsRateBuilder_; + } + + private com.google.protobuf.DoubleValue conversionsValue_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> conversionsValueBuilder_; + /** + *
+     * The total value of conversions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions_value = 70; + */ + public boolean hasConversionsValue() { + return conversionsValueBuilder_ != null || conversionsValue_ != null; + } + /** + *
+     * The total value of conversions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions_value = 70; + */ + public com.google.protobuf.DoubleValue getConversionsValue() { + if (conversionsValueBuilder_ == null) { + return conversionsValue_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : conversionsValue_; + } else { + return conversionsValueBuilder_.getMessage(); + } + } + /** + *
+     * The total value of conversions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions_value = 70; + */ + public Builder setConversionsValue(com.google.protobuf.DoubleValue value) { + if (conversionsValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conversionsValue_ = value; + onChanged(); + } else { + conversionsValueBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The total value of conversions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions_value = 70; + */ + public Builder setConversionsValue( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (conversionsValueBuilder_ == null) { + conversionsValue_ = builderForValue.build(); + onChanged(); + } else { + conversionsValueBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The total value of conversions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions_value = 70; + */ + public Builder mergeConversionsValue(com.google.protobuf.DoubleValue value) { + if (conversionsValueBuilder_ == null) { + if (conversionsValue_ != null) { + conversionsValue_ = + com.google.protobuf.DoubleValue.newBuilder(conversionsValue_).mergeFrom(value).buildPartial(); + } else { + conversionsValue_ = value; + } + onChanged(); + } else { + conversionsValueBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The total value of conversions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions_value = 70; + */ + public Builder clearConversionsValue() { + if (conversionsValueBuilder_ == null) { + conversionsValue_ = null; + onChanged(); + } else { + conversionsValue_ = null; + conversionsValueBuilder_ = null; + } + + return this; + } + /** + *
+     * The total value of conversions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions_value = 70; + */ + public com.google.protobuf.DoubleValue.Builder getConversionsValueBuilder() { + + onChanged(); + return getConversionsValueFieldBuilder().getBuilder(); + } + /** + *
+     * The total value of conversions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions_value = 70; + */ + public com.google.protobuf.DoubleValueOrBuilder getConversionsValueOrBuilder() { + if (conversionsValueBuilder_ != null) { + return conversionsValueBuilder_.getMessageOrBuilder(); + } else { + return conversionsValue_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : conversionsValue_; + } + } + /** + *
+     * The total value of conversions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions_value = 70; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> + getConversionsValueFieldBuilder() { + if (conversionsValueBuilder_ == null) { + conversionsValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( + getConversionsValue(), + getParentForChildren(), + isClean()); + conversionsValue_ = null; + } + return conversionsValueBuilder_; + } + + private com.google.protobuf.DoubleValue conversionsValuePerCost_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> conversionsValuePerCostBuilder_; + /** + *
+     * The value of conversions divided by the cost of ad interactions. This only
+     * includes conversion actions which include_in_conversions_metric attribute
+     * is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions_value_per_cost = 71; + */ + public boolean hasConversionsValuePerCost() { + return conversionsValuePerCostBuilder_ != null || conversionsValuePerCost_ != null; + } + /** + *
+     * The value of conversions divided by the cost of ad interactions. This only
+     * includes conversion actions which include_in_conversions_metric attribute
+     * is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions_value_per_cost = 71; + */ + public com.google.protobuf.DoubleValue getConversionsValuePerCost() { + if (conversionsValuePerCostBuilder_ == null) { + return conversionsValuePerCost_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : conversionsValuePerCost_; + } else { + return conversionsValuePerCostBuilder_.getMessage(); + } + } + /** + *
+     * The value of conversions divided by the cost of ad interactions. This only
+     * includes conversion actions which include_in_conversions_metric attribute
+     * is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions_value_per_cost = 71; + */ + public Builder setConversionsValuePerCost(com.google.protobuf.DoubleValue value) { + if (conversionsValuePerCostBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conversionsValuePerCost_ = value; + onChanged(); + } else { + conversionsValuePerCostBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The value of conversions divided by the cost of ad interactions. This only
+     * includes conversion actions which include_in_conversions_metric attribute
+     * is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions_value_per_cost = 71; + */ + public Builder setConversionsValuePerCost( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (conversionsValuePerCostBuilder_ == null) { + conversionsValuePerCost_ = builderForValue.build(); + onChanged(); + } else { + conversionsValuePerCostBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The value of conversions divided by the cost of ad interactions. This only
+     * includes conversion actions which include_in_conversions_metric attribute
+     * is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions_value_per_cost = 71; + */ + public Builder mergeConversionsValuePerCost(com.google.protobuf.DoubleValue value) { + if (conversionsValuePerCostBuilder_ == null) { + if (conversionsValuePerCost_ != null) { + conversionsValuePerCost_ = + com.google.protobuf.DoubleValue.newBuilder(conversionsValuePerCost_).mergeFrom(value).buildPartial(); + } else { + conversionsValuePerCost_ = value; + } + onChanged(); + } else { + conversionsValuePerCostBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The value of conversions divided by the cost of ad interactions. This only
+     * includes conversion actions which include_in_conversions_metric attribute
+     * is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions_value_per_cost = 71; + */ + public Builder clearConversionsValuePerCost() { + if (conversionsValuePerCostBuilder_ == null) { + conversionsValuePerCost_ = null; + onChanged(); + } else { + conversionsValuePerCost_ = null; + conversionsValuePerCostBuilder_ = null; + } + + return this; + } + /** + *
+     * The value of conversions divided by the cost of ad interactions. This only
+     * includes conversion actions which include_in_conversions_metric attribute
+     * is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions_value_per_cost = 71; + */ + public com.google.protobuf.DoubleValue.Builder getConversionsValuePerCostBuilder() { + + onChanged(); + return getConversionsValuePerCostFieldBuilder().getBuilder(); + } + /** + *
+     * The value of conversions divided by the cost of ad interactions. This only
+     * includes conversion actions which include_in_conversions_metric attribute
+     * is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions_value_per_cost = 71; + */ + public com.google.protobuf.DoubleValueOrBuilder getConversionsValuePerCostOrBuilder() { + if (conversionsValuePerCostBuilder_ != null) { + return conversionsValuePerCostBuilder_.getMessageOrBuilder(); + } else { + return conversionsValuePerCost_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : conversionsValuePerCost_; + } + } + /** + *
+     * The value of conversions divided by the cost of ad interactions. This only
+     * includes conversion actions which include_in_conversions_metric attribute
+     * is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions_value_per_cost = 71; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> + getConversionsValuePerCostFieldBuilder() { + if (conversionsValuePerCostBuilder_ == null) { + conversionsValuePerCostBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( + getConversionsValuePerCost(), + getParentForChildren(), + isClean()); + conversionsValuePerCost_ = null; + } + return conversionsValuePerCostBuilder_; + } + + private com.google.protobuf.DoubleValue conversionsFromInteractionsValuePerInteraction_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> conversionsFromInteractionsValuePerInteractionBuilder_; + /** + *
+     * The value of conversions from interactions divided by the number of ad
+     * interactions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions_from_interactions_value_per_interaction = 72; + */ + public boolean hasConversionsFromInteractionsValuePerInteraction() { + return conversionsFromInteractionsValuePerInteractionBuilder_ != null || conversionsFromInteractionsValuePerInteraction_ != null; + } + /** + *
+     * The value of conversions from interactions divided by the number of ad
+     * interactions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions_from_interactions_value_per_interaction = 72; + */ + public com.google.protobuf.DoubleValue getConversionsFromInteractionsValuePerInteraction() { + if (conversionsFromInteractionsValuePerInteractionBuilder_ == null) { + return conversionsFromInteractionsValuePerInteraction_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : conversionsFromInteractionsValuePerInteraction_; + } else { + return conversionsFromInteractionsValuePerInteractionBuilder_.getMessage(); + } + } + /** + *
+     * The value of conversions from interactions divided by the number of ad
+     * interactions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions_from_interactions_value_per_interaction = 72; + */ + public Builder setConversionsFromInteractionsValuePerInteraction(com.google.protobuf.DoubleValue value) { + if (conversionsFromInteractionsValuePerInteractionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conversionsFromInteractionsValuePerInteraction_ = value; + onChanged(); + } else { + conversionsFromInteractionsValuePerInteractionBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The value of conversions from interactions divided by the number of ad
+     * interactions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions_from_interactions_value_per_interaction = 72; + */ + public Builder setConversionsFromInteractionsValuePerInteraction( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (conversionsFromInteractionsValuePerInteractionBuilder_ == null) { + conversionsFromInteractionsValuePerInteraction_ = builderForValue.build(); + onChanged(); + } else { + conversionsFromInteractionsValuePerInteractionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The value of conversions from interactions divided by the number of ad
+     * interactions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions_from_interactions_value_per_interaction = 72; + */ + public Builder mergeConversionsFromInteractionsValuePerInteraction(com.google.protobuf.DoubleValue value) { + if (conversionsFromInteractionsValuePerInteractionBuilder_ == null) { + if (conversionsFromInteractionsValuePerInteraction_ != null) { + conversionsFromInteractionsValuePerInteraction_ = + com.google.protobuf.DoubleValue.newBuilder(conversionsFromInteractionsValuePerInteraction_).mergeFrom(value).buildPartial(); + } else { + conversionsFromInteractionsValuePerInteraction_ = value; + } + onChanged(); + } else { + conversionsFromInteractionsValuePerInteractionBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The value of conversions from interactions divided by the number of ad
+     * interactions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions_from_interactions_value_per_interaction = 72; + */ + public Builder clearConversionsFromInteractionsValuePerInteraction() { + if (conversionsFromInteractionsValuePerInteractionBuilder_ == null) { + conversionsFromInteractionsValuePerInteraction_ = null; + onChanged(); + } else { + conversionsFromInteractionsValuePerInteraction_ = null; + conversionsFromInteractionsValuePerInteractionBuilder_ = null; + } + + return this; + } + /** + *
+     * The value of conversions from interactions divided by the number of ad
+     * interactions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions_from_interactions_value_per_interaction = 72; + */ + public com.google.protobuf.DoubleValue.Builder getConversionsFromInteractionsValuePerInteractionBuilder() { + + onChanged(); + return getConversionsFromInteractionsValuePerInteractionFieldBuilder().getBuilder(); + } + /** + *
+     * The value of conversions from interactions divided by the number of ad
+     * interactions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions_from_interactions_value_per_interaction = 72; + */ + public com.google.protobuf.DoubleValueOrBuilder getConversionsFromInteractionsValuePerInteractionOrBuilder() { + if (conversionsFromInteractionsValuePerInteractionBuilder_ != null) { + return conversionsFromInteractionsValuePerInteractionBuilder_.getMessageOrBuilder(); + } else { + return conversionsFromInteractionsValuePerInteraction_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : conversionsFromInteractionsValuePerInteraction_; + } + } + /** + *
+     * The value of conversions from interactions divided by the number of ad
+     * interactions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions_from_interactions_value_per_interaction = 72; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> + getConversionsFromInteractionsValuePerInteractionFieldBuilder() { + if (conversionsFromInteractionsValuePerInteractionBuilder_ == null) { + conversionsFromInteractionsValuePerInteractionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( + getConversionsFromInteractionsValuePerInteraction(), + getParentForChildren(), + isClean()); + conversionsFromInteractionsValuePerInteraction_ = null; + } + return conversionsFromInteractionsValuePerInteractionBuilder_; + } + + private com.google.protobuf.DoubleValue conversions_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> conversionsBuilder_; + /** + *
+     * The number of conversions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions = 25; + */ + public boolean hasConversions() { + return conversionsBuilder_ != null || conversions_ != null; + } + /** + *
+     * The number of conversions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions = 25; + */ + public com.google.protobuf.DoubleValue getConversions() { + if (conversionsBuilder_ == null) { + return conversions_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : conversions_; + } else { + return conversionsBuilder_.getMessage(); + } + } + /** + *
+     * The number of conversions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions = 25; + */ + public Builder setConversions(com.google.protobuf.DoubleValue value) { + if (conversionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conversions_ = value; + onChanged(); + } else { + conversionsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The number of conversions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions = 25; + */ + public Builder setConversions( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (conversionsBuilder_ == null) { + conversions_ = builderForValue.build(); + onChanged(); + } else { + conversionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The number of conversions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions = 25; + */ + public Builder mergeConversions(com.google.protobuf.DoubleValue value) { + if (conversionsBuilder_ == null) { + if (conversions_ != null) { + conversions_ = + com.google.protobuf.DoubleValue.newBuilder(conversions_).mergeFrom(value).buildPartial(); + } else { + conversions_ = value; + } + onChanged(); + } else { + conversionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The number of conversions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions = 25; + */ + public Builder clearConversions() { + if (conversionsBuilder_ == null) { + conversions_ = null; + onChanged(); + } else { + conversions_ = null; + conversionsBuilder_ = null; + } + + return this; + } + /** + *
+     * The number of conversions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions = 25; + */ + public com.google.protobuf.DoubleValue.Builder getConversionsBuilder() { + + onChanged(); + return getConversionsFieldBuilder().getBuilder(); + } + /** + *
+     * The number of conversions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions = 25; + */ + public com.google.protobuf.DoubleValueOrBuilder getConversionsOrBuilder() { + if (conversionsBuilder_ != null) { + return conversionsBuilder_.getMessageOrBuilder(); + } else { + return conversions_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : conversions_; + } + } + /** + *
+     * The number of conversions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue conversions = 25; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> + getConversionsFieldBuilder() { + if (conversionsBuilder_ == null) { + conversionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( + getConversions(), + getParentForChildren(), + isClean()); + conversions_ = null; + } + return conversionsBuilder_; + } + + private com.google.protobuf.Int64Value costMicros_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> costMicrosBuilder_; + /** + *
+     * The sum of your cost-per-click (CPC) and cost-per-thousand impressions
+     * (CPM) costs during this period.
+     * 
+ * + * .google.protobuf.Int64Value cost_micros = 26; + */ + public boolean hasCostMicros() { + return costMicrosBuilder_ != null || costMicros_ != null; + } + /** + *
+     * The sum of your cost-per-click (CPC) and cost-per-thousand impressions
+     * (CPM) costs during this period.
+     * 
+ * + * .google.protobuf.Int64Value cost_micros = 26; + */ + public com.google.protobuf.Int64Value getCostMicros() { + if (costMicrosBuilder_ == null) { + return costMicros_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : costMicros_; + } else { + return costMicrosBuilder_.getMessage(); + } + } + /** + *
+     * The sum of your cost-per-click (CPC) and cost-per-thousand impressions
+     * (CPM) costs during this period.
+     * 
+ * + * .google.protobuf.Int64Value cost_micros = 26; + */ + public Builder setCostMicros(com.google.protobuf.Int64Value value) { + if (costMicrosBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + costMicros_ = value; + onChanged(); + } else { + costMicrosBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The sum of your cost-per-click (CPC) and cost-per-thousand impressions
+     * (CPM) costs during this period.
+     * 
+ * + * .google.protobuf.Int64Value cost_micros = 26; + */ + public Builder setCostMicros( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (costMicrosBuilder_ == null) { + costMicros_ = builderForValue.build(); + onChanged(); + } else { + costMicrosBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The sum of your cost-per-click (CPC) and cost-per-thousand impressions
+     * (CPM) costs during this period.
+     * 
+ * + * .google.protobuf.Int64Value cost_micros = 26; + */ + public Builder mergeCostMicros(com.google.protobuf.Int64Value value) { + if (costMicrosBuilder_ == null) { + if (costMicros_ != null) { + costMicros_ = + com.google.protobuf.Int64Value.newBuilder(costMicros_).mergeFrom(value).buildPartial(); + } else { + costMicros_ = value; + } + onChanged(); + } else { + costMicrosBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The sum of your cost-per-click (CPC) and cost-per-thousand impressions
+     * (CPM) costs during this period.
+     * 
+ * + * .google.protobuf.Int64Value cost_micros = 26; + */ + public Builder clearCostMicros() { + if (costMicrosBuilder_ == null) { + costMicros_ = null; + onChanged(); + } else { + costMicros_ = null; + costMicrosBuilder_ = null; + } + + return this; + } + /** + *
+     * The sum of your cost-per-click (CPC) and cost-per-thousand impressions
+     * (CPM) costs during this period.
+     * 
+ * + * .google.protobuf.Int64Value cost_micros = 26; + */ + public com.google.protobuf.Int64Value.Builder getCostMicrosBuilder() { + + onChanged(); + return getCostMicrosFieldBuilder().getBuilder(); + } + /** + *
+     * The sum of your cost-per-click (CPC) and cost-per-thousand impressions
+     * (CPM) costs during this period.
+     * 
+ * + * .google.protobuf.Int64Value cost_micros = 26; + */ + public com.google.protobuf.Int64ValueOrBuilder getCostMicrosOrBuilder() { + if (costMicrosBuilder_ != null) { + return costMicrosBuilder_.getMessageOrBuilder(); + } else { + return costMicros_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : costMicros_; + } + } + /** + *
+     * The sum of your cost-per-click (CPC) and cost-per-thousand impressions
+     * (CPM) costs during this period.
+     * 
+ * + * .google.protobuf.Int64Value cost_micros = 26; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + getCostMicrosFieldBuilder() { + if (costMicrosBuilder_ == null) { + costMicrosBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getCostMicros(), + getParentForChildren(), + isClean()); + costMicros_ = null; + } + return costMicrosBuilder_; + } + + private com.google.protobuf.DoubleValue costPerAllConversions_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> costPerAllConversionsBuilder_; + /** + *
+     * The cost of ad interactions divided by all conversions.
+     * 
+ * + * .google.protobuf.DoubleValue cost_per_all_conversions = 68; + */ + public boolean hasCostPerAllConversions() { + return costPerAllConversionsBuilder_ != null || costPerAllConversions_ != null; + } + /** + *
+     * The cost of ad interactions divided by all conversions.
+     * 
+ * + * .google.protobuf.DoubleValue cost_per_all_conversions = 68; + */ + public com.google.protobuf.DoubleValue getCostPerAllConversions() { + if (costPerAllConversionsBuilder_ == null) { + return costPerAllConversions_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : costPerAllConversions_; + } else { + return costPerAllConversionsBuilder_.getMessage(); + } + } + /** + *
+     * The cost of ad interactions divided by all conversions.
+     * 
+ * + * .google.protobuf.DoubleValue cost_per_all_conversions = 68; + */ + public Builder setCostPerAllConversions(com.google.protobuf.DoubleValue value) { + if (costPerAllConversionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + costPerAllConversions_ = value; + onChanged(); + } else { + costPerAllConversionsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The cost of ad interactions divided by all conversions.
+     * 
+ * + * .google.protobuf.DoubleValue cost_per_all_conversions = 68; + */ + public Builder setCostPerAllConversions( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (costPerAllConversionsBuilder_ == null) { + costPerAllConversions_ = builderForValue.build(); + onChanged(); + } else { + costPerAllConversionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The cost of ad interactions divided by all conversions.
+     * 
+ * + * .google.protobuf.DoubleValue cost_per_all_conversions = 68; + */ + public Builder mergeCostPerAllConversions(com.google.protobuf.DoubleValue value) { + if (costPerAllConversionsBuilder_ == null) { + if (costPerAllConversions_ != null) { + costPerAllConversions_ = + com.google.protobuf.DoubleValue.newBuilder(costPerAllConversions_).mergeFrom(value).buildPartial(); + } else { + costPerAllConversions_ = value; + } + onChanged(); + } else { + costPerAllConversionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The cost of ad interactions divided by all conversions.
+     * 
+ * + * .google.protobuf.DoubleValue cost_per_all_conversions = 68; + */ + public Builder clearCostPerAllConversions() { + if (costPerAllConversionsBuilder_ == null) { + costPerAllConversions_ = null; + onChanged(); + } else { + costPerAllConversions_ = null; + costPerAllConversionsBuilder_ = null; + } + + return this; + } + /** + *
+     * The cost of ad interactions divided by all conversions.
+     * 
+ * + * .google.protobuf.DoubleValue cost_per_all_conversions = 68; + */ + public com.google.protobuf.DoubleValue.Builder getCostPerAllConversionsBuilder() { + + onChanged(); + return getCostPerAllConversionsFieldBuilder().getBuilder(); + } + /** + *
+     * The cost of ad interactions divided by all conversions.
+     * 
+ * + * .google.protobuf.DoubleValue cost_per_all_conversions = 68; + */ + public com.google.protobuf.DoubleValueOrBuilder getCostPerAllConversionsOrBuilder() { + if (costPerAllConversionsBuilder_ != null) { + return costPerAllConversionsBuilder_.getMessageOrBuilder(); + } else { + return costPerAllConversions_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : costPerAllConversions_; + } + } + /** + *
+     * The cost of ad interactions divided by all conversions.
+     * 
+ * + * .google.protobuf.DoubleValue cost_per_all_conversions = 68; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> + getCostPerAllConversionsFieldBuilder() { + if (costPerAllConversionsBuilder_ == null) { + costPerAllConversionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( + getCostPerAllConversions(), + getParentForChildren(), + isClean()); + costPerAllConversions_ = null; + } + return costPerAllConversionsBuilder_; + } + + private com.google.protobuf.DoubleValue costPerConversion_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> costPerConversionBuilder_; + /** + *
+     * The cost of ad interactions divided by conversions. This only includes
+     * conversion actions which include_in_conversions_metric attribute is set to
+     * true.
+     * 
+ * + * .google.protobuf.DoubleValue cost_per_conversion = 28; + */ + public boolean hasCostPerConversion() { + return costPerConversionBuilder_ != null || costPerConversion_ != null; + } + /** + *
+     * The cost of ad interactions divided by conversions. This only includes
+     * conversion actions which include_in_conversions_metric attribute is set to
+     * true.
+     * 
+ * + * .google.protobuf.DoubleValue cost_per_conversion = 28; + */ + public com.google.protobuf.DoubleValue getCostPerConversion() { + if (costPerConversionBuilder_ == null) { + return costPerConversion_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : costPerConversion_; + } else { + return costPerConversionBuilder_.getMessage(); + } + } + /** + *
+     * The cost of ad interactions divided by conversions. This only includes
+     * conversion actions which include_in_conversions_metric attribute is set to
+     * true.
+     * 
+ * + * .google.protobuf.DoubleValue cost_per_conversion = 28; + */ + public Builder setCostPerConversion(com.google.protobuf.DoubleValue value) { + if (costPerConversionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + costPerConversion_ = value; + onChanged(); + } else { + costPerConversionBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The cost of ad interactions divided by conversions. This only includes
+     * conversion actions which include_in_conversions_metric attribute is set to
+     * true.
+     * 
+ * + * .google.protobuf.DoubleValue cost_per_conversion = 28; + */ + public Builder setCostPerConversion( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (costPerConversionBuilder_ == null) { + costPerConversion_ = builderForValue.build(); + onChanged(); + } else { + costPerConversionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The cost of ad interactions divided by conversions. This only includes
+     * conversion actions which include_in_conversions_metric attribute is set to
+     * true.
+     * 
+ * + * .google.protobuf.DoubleValue cost_per_conversion = 28; + */ + public Builder mergeCostPerConversion(com.google.protobuf.DoubleValue value) { + if (costPerConversionBuilder_ == null) { + if (costPerConversion_ != null) { + costPerConversion_ = + com.google.protobuf.DoubleValue.newBuilder(costPerConversion_).mergeFrom(value).buildPartial(); + } else { + costPerConversion_ = value; + } + onChanged(); + } else { + costPerConversionBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The cost of ad interactions divided by conversions. This only includes
+     * conversion actions which include_in_conversions_metric attribute is set to
+     * true.
+     * 
+ * + * .google.protobuf.DoubleValue cost_per_conversion = 28; + */ + public Builder clearCostPerConversion() { + if (costPerConversionBuilder_ == null) { + costPerConversion_ = null; + onChanged(); + } else { + costPerConversion_ = null; + costPerConversionBuilder_ = null; + } + + return this; + } + /** + *
+     * The cost of ad interactions divided by conversions. This only includes
+     * conversion actions which include_in_conversions_metric attribute is set to
+     * true.
+     * 
+ * + * .google.protobuf.DoubleValue cost_per_conversion = 28; + */ + public com.google.protobuf.DoubleValue.Builder getCostPerConversionBuilder() { + + onChanged(); + return getCostPerConversionFieldBuilder().getBuilder(); + } + /** + *
+     * The cost of ad interactions divided by conversions. This only includes
+     * conversion actions which include_in_conversions_metric attribute is set to
+     * true.
+     * 
+ * + * .google.protobuf.DoubleValue cost_per_conversion = 28; + */ + public com.google.protobuf.DoubleValueOrBuilder getCostPerConversionOrBuilder() { + if (costPerConversionBuilder_ != null) { + return costPerConversionBuilder_.getMessageOrBuilder(); + } else { + return costPerConversion_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : costPerConversion_; + } + } + /** + *
+     * The cost of ad interactions divided by conversions. This only includes
+     * conversion actions which include_in_conversions_metric attribute is set to
+     * true.
+     * 
+ * + * .google.protobuf.DoubleValue cost_per_conversion = 28; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> + getCostPerConversionFieldBuilder() { + if (costPerConversionBuilder_ == null) { + costPerConversionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( + getCostPerConversion(), + getParentForChildren(), + isClean()); costPerConversion_ = null; } - return costPerConversionBuilder_; + return costPerConversionBuilder_; + } + + private com.google.protobuf.DoubleValue costPerCurrentModelAttributedConversion_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> costPerCurrentModelAttributedConversionBuilder_; + /** + *
+     * The cost of ad interactions divided by current model attributed
+     * conversions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue cost_per_current_model_attributed_conversion = 106; + */ + public boolean hasCostPerCurrentModelAttributedConversion() { + return costPerCurrentModelAttributedConversionBuilder_ != null || costPerCurrentModelAttributedConversion_ != null; + } + /** + *
+     * The cost of ad interactions divided by current model attributed
+     * conversions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue cost_per_current_model_attributed_conversion = 106; + */ + public com.google.protobuf.DoubleValue getCostPerCurrentModelAttributedConversion() { + if (costPerCurrentModelAttributedConversionBuilder_ == null) { + return costPerCurrentModelAttributedConversion_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : costPerCurrentModelAttributedConversion_; + } else { + return costPerCurrentModelAttributedConversionBuilder_.getMessage(); + } + } + /** + *
+     * The cost of ad interactions divided by current model attributed
+     * conversions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue cost_per_current_model_attributed_conversion = 106; + */ + public Builder setCostPerCurrentModelAttributedConversion(com.google.protobuf.DoubleValue value) { + if (costPerCurrentModelAttributedConversionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + costPerCurrentModelAttributedConversion_ = value; + onChanged(); + } else { + costPerCurrentModelAttributedConversionBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The cost of ad interactions divided by current model attributed
+     * conversions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue cost_per_current_model_attributed_conversion = 106; + */ + public Builder setCostPerCurrentModelAttributedConversion( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (costPerCurrentModelAttributedConversionBuilder_ == null) { + costPerCurrentModelAttributedConversion_ = builderForValue.build(); + onChanged(); + } else { + costPerCurrentModelAttributedConversionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The cost of ad interactions divided by current model attributed
+     * conversions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue cost_per_current_model_attributed_conversion = 106; + */ + public Builder mergeCostPerCurrentModelAttributedConversion(com.google.protobuf.DoubleValue value) { + if (costPerCurrentModelAttributedConversionBuilder_ == null) { + if (costPerCurrentModelAttributedConversion_ != null) { + costPerCurrentModelAttributedConversion_ = + com.google.protobuf.DoubleValue.newBuilder(costPerCurrentModelAttributedConversion_).mergeFrom(value).buildPartial(); + } else { + costPerCurrentModelAttributedConversion_ = value; + } + onChanged(); + } else { + costPerCurrentModelAttributedConversionBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The cost of ad interactions divided by current model attributed
+     * conversions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue cost_per_current_model_attributed_conversion = 106; + */ + public Builder clearCostPerCurrentModelAttributedConversion() { + if (costPerCurrentModelAttributedConversionBuilder_ == null) { + costPerCurrentModelAttributedConversion_ = null; + onChanged(); + } else { + costPerCurrentModelAttributedConversion_ = null; + costPerCurrentModelAttributedConversionBuilder_ = null; + } + + return this; + } + /** + *
+     * The cost of ad interactions divided by current model attributed
+     * conversions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue cost_per_current_model_attributed_conversion = 106; + */ + public com.google.protobuf.DoubleValue.Builder getCostPerCurrentModelAttributedConversionBuilder() { + + onChanged(); + return getCostPerCurrentModelAttributedConversionFieldBuilder().getBuilder(); + } + /** + *
+     * The cost of ad interactions divided by current model attributed
+     * conversions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue cost_per_current_model_attributed_conversion = 106; + */ + public com.google.protobuf.DoubleValueOrBuilder getCostPerCurrentModelAttributedConversionOrBuilder() { + if (costPerCurrentModelAttributedConversionBuilder_ != null) { + return costPerCurrentModelAttributedConversionBuilder_.getMessageOrBuilder(); + } else { + return costPerCurrentModelAttributedConversion_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : costPerCurrentModelAttributedConversion_; + } + } + /** + *
+     * The cost of ad interactions divided by current model attributed
+     * conversions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue cost_per_current_model_attributed_conversion = 106; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> + getCostPerCurrentModelAttributedConversionFieldBuilder() { + if (costPerCurrentModelAttributedConversionBuilder_ == null) { + costPerCurrentModelAttributedConversionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( + getCostPerCurrentModelAttributedConversion(), + getParentForChildren(), + isClean()); + costPerCurrentModelAttributedConversion_ = null; + } + return costPerCurrentModelAttributedConversionBuilder_; + } + + private com.google.protobuf.DoubleValue crossDeviceConversions_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> crossDeviceConversionsBuilder_; + /** + *
+     * Conversions from when a customer clicks on a Google Ads ad on one device,
+     * then converts on a different device or browser.
+     * Cross-device conversions are already included in all_conversions.
+     * 
+ * + * .google.protobuf.DoubleValue cross_device_conversions = 29; + */ + public boolean hasCrossDeviceConversions() { + return crossDeviceConversionsBuilder_ != null || crossDeviceConversions_ != null; + } + /** + *
+     * Conversions from when a customer clicks on a Google Ads ad on one device,
+     * then converts on a different device or browser.
+     * Cross-device conversions are already included in all_conversions.
+     * 
+ * + * .google.protobuf.DoubleValue cross_device_conversions = 29; + */ + public com.google.protobuf.DoubleValue getCrossDeviceConversions() { + if (crossDeviceConversionsBuilder_ == null) { + return crossDeviceConversions_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : crossDeviceConversions_; + } else { + return crossDeviceConversionsBuilder_.getMessage(); + } + } + /** + *
+     * Conversions from when a customer clicks on a Google Ads ad on one device,
+     * then converts on a different device or browser.
+     * Cross-device conversions are already included in all_conversions.
+     * 
+ * + * .google.protobuf.DoubleValue cross_device_conversions = 29; + */ + public Builder setCrossDeviceConversions(com.google.protobuf.DoubleValue value) { + if (crossDeviceConversionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + crossDeviceConversions_ = value; + onChanged(); + } else { + crossDeviceConversionsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Conversions from when a customer clicks on a Google Ads ad on one device,
+     * then converts on a different device or browser.
+     * Cross-device conversions are already included in all_conversions.
+     * 
+ * + * .google.protobuf.DoubleValue cross_device_conversions = 29; + */ + public Builder setCrossDeviceConversions( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (crossDeviceConversionsBuilder_ == null) { + crossDeviceConversions_ = builderForValue.build(); + onChanged(); + } else { + crossDeviceConversionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Conversions from when a customer clicks on a Google Ads ad on one device,
+     * then converts on a different device or browser.
+     * Cross-device conversions are already included in all_conversions.
+     * 
+ * + * .google.protobuf.DoubleValue cross_device_conversions = 29; + */ + public Builder mergeCrossDeviceConversions(com.google.protobuf.DoubleValue value) { + if (crossDeviceConversionsBuilder_ == null) { + if (crossDeviceConversions_ != null) { + crossDeviceConversions_ = + com.google.protobuf.DoubleValue.newBuilder(crossDeviceConversions_).mergeFrom(value).buildPartial(); + } else { + crossDeviceConversions_ = value; + } + onChanged(); + } else { + crossDeviceConversionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Conversions from when a customer clicks on a Google Ads ad on one device,
+     * then converts on a different device or browser.
+     * Cross-device conversions are already included in all_conversions.
+     * 
+ * + * .google.protobuf.DoubleValue cross_device_conversions = 29; + */ + public Builder clearCrossDeviceConversions() { + if (crossDeviceConversionsBuilder_ == null) { + crossDeviceConversions_ = null; + onChanged(); + } else { + crossDeviceConversions_ = null; + crossDeviceConversionsBuilder_ = null; + } + + return this; + } + /** + *
+     * Conversions from when a customer clicks on a Google Ads ad on one device,
+     * then converts on a different device or browser.
+     * Cross-device conversions are already included in all_conversions.
+     * 
+ * + * .google.protobuf.DoubleValue cross_device_conversions = 29; + */ + public com.google.protobuf.DoubleValue.Builder getCrossDeviceConversionsBuilder() { + + onChanged(); + return getCrossDeviceConversionsFieldBuilder().getBuilder(); + } + /** + *
+     * Conversions from when a customer clicks on a Google Ads ad on one device,
+     * then converts on a different device or browser.
+     * Cross-device conversions are already included in all_conversions.
+     * 
+ * + * .google.protobuf.DoubleValue cross_device_conversions = 29; + */ + public com.google.protobuf.DoubleValueOrBuilder getCrossDeviceConversionsOrBuilder() { + if (crossDeviceConversionsBuilder_ != null) { + return crossDeviceConversionsBuilder_.getMessageOrBuilder(); + } else { + return crossDeviceConversions_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : crossDeviceConversions_; + } + } + /** + *
+     * Conversions from when a customer clicks on a Google Ads ad on one device,
+     * then converts on a different device or browser.
+     * Cross-device conversions are already included in all_conversions.
+     * 
+ * + * .google.protobuf.DoubleValue cross_device_conversions = 29; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> + getCrossDeviceConversionsFieldBuilder() { + if (crossDeviceConversionsBuilder_ == null) { + crossDeviceConversionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( + getCrossDeviceConversions(), + getParentForChildren(), + isClean()); + crossDeviceConversions_ = null; + } + return crossDeviceConversionsBuilder_; + } + + private com.google.protobuf.DoubleValue ctr_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> ctrBuilder_; + /** + *
+     * The number of clicks your ad receives (Clicks) divided by the number
+     * of times your ad is shown (Impressions).
+     * 
+ * + * .google.protobuf.DoubleValue ctr = 30; + */ + public boolean hasCtr() { + return ctrBuilder_ != null || ctr_ != null; + } + /** + *
+     * The number of clicks your ad receives (Clicks) divided by the number
+     * of times your ad is shown (Impressions).
+     * 
+ * + * .google.protobuf.DoubleValue ctr = 30; + */ + public com.google.protobuf.DoubleValue getCtr() { + if (ctrBuilder_ == null) { + return ctr_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : ctr_; + } else { + return ctrBuilder_.getMessage(); + } + } + /** + *
+     * The number of clicks your ad receives (Clicks) divided by the number
+     * of times your ad is shown (Impressions).
+     * 
+ * + * .google.protobuf.DoubleValue ctr = 30; + */ + public Builder setCtr(com.google.protobuf.DoubleValue value) { + if (ctrBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ctr_ = value; + onChanged(); + } else { + ctrBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The number of clicks your ad receives (Clicks) divided by the number
+     * of times your ad is shown (Impressions).
+     * 
+ * + * .google.protobuf.DoubleValue ctr = 30; + */ + public Builder setCtr( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (ctrBuilder_ == null) { + ctr_ = builderForValue.build(); + onChanged(); + } else { + ctrBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The number of clicks your ad receives (Clicks) divided by the number
+     * of times your ad is shown (Impressions).
+     * 
+ * + * .google.protobuf.DoubleValue ctr = 30; + */ + public Builder mergeCtr(com.google.protobuf.DoubleValue value) { + if (ctrBuilder_ == null) { + if (ctr_ != null) { + ctr_ = + com.google.protobuf.DoubleValue.newBuilder(ctr_).mergeFrom(value).buildPartial(); + } else { + ctr_ = value; + } + onChanged(); + } else { + ctrBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The number of clicks your ad receives (Clicks) divided by the number
+     * of times your ad is shown (Impressions).
+     * 
+ * + * .google.protobuf.DoubleValue ctr = 30; + */ + public Builder clearCtr() { + if (ctrBuilder_ == null) { + ctr_ = null; + onChanged(); + } else { + ctr_ = null; + ctrBuilder_ = null; + } + + return this; + } + /** + *
+     * The number of clicks your ad receives (Clicks) divided by the number
+     * of times your ad is shown (Impressions).
+     * 
+ * + * .google.protobuf.DoubleValue ctr = 30; + */ + public com.google.protobuf.DoubleValue.Builder getCtrBuilder() { + + onChanged(); + return getCtrFieldBuilder().getBuilder(); + } + /** + *
+     * The number of clicks your ad receives (Clicks) divided by the number
+     * of times your ad is shown (Impressions).
+     * 
+ * + * .google.protobuf.DoubleValue ctr = 30; + */ + public com.google.protobuf.DoubleValueOrBuilder getCtrOrBuilder() { + if (ctrBuilder_ != null) { + return ctrBuilder_.getMessageOrBuilder(); + } else { + return ctr_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : ctr_; + } + } + /** + *
+     * The number of clicks your ad receives (Clicks) divided by the number
+     * of times your ad is shown (Impressions).
+     * 
+ * + * .google.protobuf.DoubleValue ctr = 30; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> + getCtrFieldBuilder() { + if (ctrBuilder_ == null) { + ctrBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( + getCtr(), + getParentForChildren(), + isClean()); + ctr_ = null; + } + return ctrBuilder_; + } + + private com.google.protobuf.DoubleValue currentModelAttributedConversions_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> currentModelAttributedConversionsBuilder_; + /** + *
+     * Shows how your historic conversions data would look under the attribution
+     * model you've currently selected. This only includes conversion actions
+     * which include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions = 101; + */ + public boolean hasCurrentModelAttributedConversions() { + return currentModelAttributedConversionsBuilder_ != null || currentModelAttributedConversions_ != null; + } + /** + *
+     * Shows how your historic conversions data would look under the attribution
+     * model you've currently selected. This only includes conversion actions
+     * which include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions = 101; + */ + public com.google.protobuf.DoubleValue getCurrentModelAttributedConversions() { + if (currentModelAttributedConversionsBuilder_ == null) { + return currentModelAttributedConversions_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : currentModelAttributedConversions_; + } else { + return currentModelAttributedConversionsBuilder_.getMessage(); + } + } + /** + *
+     * Shows how your historic conversions data would look under the attribution
+     * model you've currently selected. This only includes conversion actions
+     * which include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions = 101; + */ + public Builder setCurrentModelAttributedConversions(com.google.protobuf.DoubleValue value) { + if (currentModelAttributedConversionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + currentModelAttributedConversions_ = value; + onChanged(); + } else { + currentModelAttributedConversionsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Shows how your historic conversions data would look under the attribution
+     * model you've currently selected. This only includes conversion actions
+     * which include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions = 101; + */ + public Builder setCurrentModelAttributedConversions( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (currentModelAttributedConversionsBuilder_ == null) { + currentModelAttributedConversions_ = builderForValue.build(); + onChanged(); + } else { + currentModelAttributedConversionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Shows how your historic conversions data would look under the attribution
+     * model you've currently selected. This only includes conversion actions
+     * which include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions = 101; + */ + public Builder mergeCurrentModelAttributedConversions(com.google.protobuf.DoubleValue value) { + if (currentModelAttributedConversionsBuilder_ == null) { + if (currentModelAttributedConversions_ != null) { + currentModelAttributedConversions_ = + com.google.protobuf.DoubleValue.newBuilder(currentModelAttributedConversions_).mergeFrom(value).buildPartial(); + } else { + currentModelAttributedConversions_ = value; + } + onChanged(); + } else { + currentModelAttributedConversionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Shows how your historic conversions data would look under the attribution
+     * model you've currently selected. This only includes conversion actions
+     * which include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions = 101; + */ + public Builder clearCurrentModelAttributedConversions() { + if (currentModelAttributedConversionsBuilder_ == null) { + currentModelAttributedConversions_ = null; + onChanged(); + } else { + currentModelAttributedConversions_ = null; + currentModelAttributedConversionsBuilder_ = null; + } + + return this; + } + /** + *
+     * Shows how your historic conversions data would look under the attribution
+     * model you've currently selected. This only includes conversion actions
+     * which include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions = 101; + */ + public com.google.protobuf.DoubleValue.Builder getCurrentModelAttributedConversionsBuilder() { + + onChanged(); + return getCurrentModelAttributedConversionsFieldBuilder().getBuilder(); + } + /** + *
+     * Shows how your historic conversions data would look under the attribution
+     * model you've currently selected. This only includes conversion actions
+     * which include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions = 101; + */ + public com.google.protobuf.DoubleValueOrBuilder getCurrentModelAttributedConversionsOrBuilder() { + if (currentModelAttributedConversionsBuilder_ != null) { + return currentModelAttributedConversionsBuilder_.getMessageOrBuilder(); + } else { + return currentModelAttributedConversions_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : currentModelAttributedConversions_; + } + } + /** + *
+     * Shows how your historic conversions data would look under the attribution
+     * model you've currently selected. This only includes conversion actions
+     * which include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions = 101; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> + getCurrentModelAttributedConversionsFieldBuilder() { + if (currentModelAttributedConversionsBuilder_ == null) { + currentModelAttributedConversionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( + getCurrentModelAttributedConversions(), + getParentForChildren(), + isClean()); + currentModelAttributedConversions_ = null; + } + return currentModelAttributedConversionsBuilder_; + } + + private com.google.protobuf.DoubleValue currentModelAttributedConversionsFromInteractionsRate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> currentModelAttributedConversionsFromInteractionsRateBuilder_; + /** + *
+     * Current model attributed conversions from interactions divided by the
+     * number of ad interactions (such as clicks for text ads or views for video
+     * ads). This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_from_interactions_rate = 102; + */ + public boolean hasCurrentModelAttributedConversionsFromInteractionsRate() { + return currentModelAttributedConversionsFromInteractionsRateBuilder_ != null || currentModelAttributedConversionsFromInteractionsRate_ != null; + } + /** + *
+     * Current model attributed conversions from interactions divided by the
+     * number of ad interactions (such as clicks for text ads or views for video
+     * ads). This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_from_interactions_rate = 102; + */ + public com.google.protobuf.DoubleValue getCurrentModelAttributedConversionsFromInteractionsRate() { + if (currentModelAttributedConversionsFromInteractionsRateBuilder_ == null) { + return currentModelAttributedConversionsFromInteractionsRate_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : currentModelAttributedConversionsFromInteractionsRate_; + } else { + return currentModelAttributedConversionsFromInteractionsRateBuilder_.getMessage(); + } + } + /** + *
+     * Current model attributed conversions from interactions divided by the
+     * number of ad interactions (such as clicks for text ads or views for video
+     * ads). This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_from_interactions_rate = 102; + */ + public Builder setCurrentModelAttributedConversionsFromInteractionsRate(com.google.protobuf.DoubleValue value) { + if (currentModelAttributedConversionsFromInteractionsRateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + currentModelAttributedConversionsFromInteractionsRate_ = value; + onChanged(); + } else { + currentModelAttributedConversionsFromInteractionsRateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Current model attributed conversions from interactions divided by the
+     * number of ad interactions (such as clicks for text ads or views for video
+     * ads). This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_from_interactions_rate = 102; + */ + public Builder setCurrentModelAttributedConversionsFromInteractionsRate( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (currentModelAttributedConversionsFromInteractionsRateBuilder_ == null) { + currentModelAttributedConversionsFromInteractionsRate_ = builderForValue.build(); + onChanged(); + } else { + currentModelAttributedConversionsFromInteractionsRateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Current model attributed conversions from interactions divided by the
+     * number of ad interactions (such as clicks for text ads or views for video
+     * ads). This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_from_interactions_rate = 102; + */ + public Builder mergeCurrentModelAttributedConversionsFromInteractionsRate(com.google.protobuf.DoubleValue value) { + if (currentModelAttributedConversionsFromInteractionsRateBuilder_ == null) { + if (currentModelAttributedConversionsFromInteractionsRate_ != null) { + currentModelAttributedConversionsFromInteractionsRate_ = + com.google.protobuf.DoubleValue.newBuilder(currentModelAttributedConversionsFromInteractionsRate_).mergeFrom(value).buildPartial(); + } else { + currentModelAttributedConversionsFromInteractionsRate_ = value; + } + onChanged(); + } else { + currentModelAttributedConversionsFromInteractionsRateBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Current model attributed conversions from interactions divided by the
+     * number of ad interactions (such as clicks for text ads or views for video
+     * ads). This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_from_interactions_rate = 102; + */ + public Builder clearCurrentModelAttributedConversionsFromInteractionsRate() { + if (currentModelAttributedConversionsFromInteractionsRateBuilder_ == null) { + currentModelAttributedConversionsFromInteractionsRate_ = null; + onChanged(); + } else { + currentModelAttributedConversionsFromInteractionsRate_ = null; + currentModelAttributedConversionsFromInteractionsRateBuilder_ = null; + } + + return this; + } + /** + *
+     * Current model attributed conversions from interactions divided by the
+     * number of ad interactions (such as clicks for text ads or views for video
+     * ads). This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_from_interactions_rate = 102; + */ + public com.google.protobuf.DoubleValue.Builder getCurrentModelAttributedConversionsFromInteractionsRateBuilder() { + + onChanged(); + return getCurrentModelAttributedConversionsFromInteractionsRateFieldBuilder().getBuilder(); + } + /** + *
+     * Current model attributed conversions from interactions divided by the
+     * number of ad interactions (such as clicks for text ads or views for video
+     * ads). This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_from_interactions_rate = 102; + */ + public com.google.protobuf.DoubleValueOrBuilder getCurrentModelAttributedConversionsFromInteractionsRateOrBuilder() { + if (currentModelAttributedConversionsFromInteractionsRateBuilder_ != null) { + return currentModelAttributedConversionsFromInteractionsRateBuilder_.getMessageOrBuilder(); + } else { + return currentModelAttributedConversionsFromInteractionsRate_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : currentModelAttributedConversionsFromInteractionsRate_; + } + } + /** + *
+     * Current model attributed conversions from interactions divided by the
+     * number of ad interactions (such as clicks for text ads or views for video
+     * ads). This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_from_interactions_rate = 102; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> + getCurrentModelAttributedConversionsFromInteractionsRateFieldBuilder() { + if (currentModelAttributedConversionsFromInteractionsRateBuilder_ == null) { + currentModelAttributedConversionsFromInteractionsRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( + getCurrentModelAttributedConversionsFromInteractionsRate(), + getParentForChildren(), + isClean()); + currentModelAttributedConversionsFromInteractionsRate_ = null; + } + return currentModelAttributedConversionsFromInteractionsRateBuilder_; + } + + private com.google.protobuf.DoubleValue currentModelAttributedConversionsFromInteractionsValuePerInteraction_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> currentModelAttributedConversionsFromInteractionsValuePerInteractionBuilder_; + /** + *
+     * The value of current model attributed conversions from interactions divided
+     * by the number of ad interactions. This only includes conversion actions
+     * which include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_from_interactions_value_per_interaction = 103; + */ + public boolean hasCurrentModelAttributedConversionsFromInteractionsValuePerInteraction() { + return currentModelAttributedConversionsFromInteractionsValuePerInteractionBuilder_ != null || currentModelAttributedConversionsFromInteractionsValuePerInteraction_ != null; + } + /** + *
+     * The value of current model attributed conversions from interactions divided
+     * by the number of ad interactions. This only includes conversion actions
+     * which include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_from_interactions_value_per_interaction = 103; + */ + public com.google.protobuf.DoubleValue getCurrentModelAttributedConversionsFromInteractionsValuePerInteraction() { + if (currentModelAttributedConversionsFromInteractionsValuePerInteractionBuilder_ == null) { + return currentModelAttributedConversionsFromInteractionsValuePerInteraction_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : currentModelAttributedConversionsFromInteractionsValuePerInteraction_; + } else { + return currentModelAttributedConversionsFromInteractionsValuePerInteractionBuilder_.getMessage(); + } + } + /** + *
+     * The value of current model attributed conversions from interactions divided
+     * by the number of ad interactions. This only includes conversion actions
+     * which include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_from_interactions_value_per_interaction = 103; + */ + public Builder setCurrentModelAttributedConversionsFromInteractionsValuePerInteraction(com.google.protobuf.DoubleValue value) { + if (currentModelAttributedConversionsFromInteractionsValuePerInteractionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + currentModelAttributedConversionsFromInteractionsValuePerInteraction_ = value; + onChanged(); + } else { + currentModelAttributedConversionsFromInteractionsValuePerInteractionBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The value of current model attributed conversions from interactions divided
+     * by the number of ad interactions. This only includes conversion actions
+     * which include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_from_interactions_value_per_interaction = 103; + */ + public Builder setCurrentModelAttributedConversionsFromInteractionsValuePerInteraction( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (currentModelAttributedConversionsFromInteractionsValuePerInteractionBuilder_ == null) { + currentModelAttributedConversionsFromInteractionsValuePerInteraction_ = builderForValue.build(); + onChanged(); + } else { + currentModelAttributedConversionsFromInteractionsValuePerInteractionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The value of current model attributed conversions from interactions divided
+     * by the number of ad interactions. This only includes conversion actions
+     * which include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_from_interactions_value_per_interaction = 103; + */ + public Builder mergeCurrentModelAttributedConversionsFromInteractionsValuePerInteraction(com.google.protobuf.DoubleValue value) { + if (currentModelAttributedConversionsFromInteractionsValuePerInteractionBuilder_ == null) { + if (currentModelAttributedConversionsFromInteractionsValuePerInteraction_ != null) { + currentModelAttributedConversionsFromInteractionsValuePerInteraction_ = + com.google.protobuf.DoubleValue.newBuilder(currentModelAttributedConversionsFromInteractionsValuePerInteraction_).mergeFrom(value).buildPartial(); + } else { + currentModelAttributedConversionsFromInteractionsValuePerInteraction_ = value; + } + onChanged(); + } else { + currentModelAttributedConversionsFromInteractionsValuePerInteractionBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The value of current model attributed conversions from interactions divided
+     * by the number of ad interactions. This only includes conversion actions
+     * which include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_from_interactions_value_per_interaction = 103; + */ + public Builder clearCurrentModelAttributedConversionsFromInteractionsValuePerInteraction() { + if (currentModelAttributedConversionsFromInteractionsValuePerInteractionBuilder_ == null) { + currentModelAttributedConversionsFromInteractionsValuePerInteraction_ = null; + onChanged(); + } else { + currentModelAttributedConversionsFromInteractionsValuePerInteraction_ = null; + currentModelAttributedConversionsFromInteractionsValuePerInteractionBuilder_ = null; + } + + return this; + } + /** + *
+     * The value of current model attributed conversions from interactions divided
+     * by the number of ad interactions. This only includes conversion actions
+     * which include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_from_interactions_value_per_interaction = 103; + */ + public com.google.protobuf.DoubleValue.Builder getCurrentModelAttributedConversionsFromInteractionsValuePerInteractionBuilder() { + + onChanged(); + return getCurrentModelAttributedConversionsFromInteractionsValuePerInteractionFieldBuilder().getBuilder(); + } + /** + *
+     * The value of current model attributed conversions from interactions divided
+     * by the number of ad interactions. This only includes conversion actions
+     * which include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_from_interactions_value_per_interaction = 103; + */ + public com.google.protobuf.DoubleValueOrBuilder getCurrentModelAttributedConversionsFromInteractionsValuePerInteractionOrBuilder() { + if (currentModelAttributedConversionsFromInteractionsValuePerInteractionBuilder_ != null) { + return currentModelAttributedConversionsFromInteractionsValuePerInteractionBuilder_.getMessageOrBuilder(); + } else { + return currentModelAttributedConversionsFromInteractionsValuePerInteraction_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : currentModelAttributedConversionsFromInteractionsValuePerInteraction_; + } + } + /** + *
+     * The value of current model attributed conversions from interactions divided
+     * by the number of ad interactions. This only includes conversion actions
+     * which include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_from_interactions_value_per_interaction = 103; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> + getCurrentModelAttributedConversionsFromInteractionsValuePerInteractionFieldBuilder() { + if (currentModelAttributedConversionsFromInteractionsValuePerInteractionBuilder_ == null) { + currentModelAttributedConversionsFromInteractionsValuePerInteractionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( + getCurrentModelAttributedConversionsFromInteractionsValuePerInteraction(), + getParentForChildren(), + isClean()); + currentModelAttributedConversionsFromInteractionsValuePerInteraction_ = null; + } + return currentModelAttributedConversionsFromInteractionsValuePerInteractionBuilder_; + } + + private com.google.protobuf.DoubleValue currentModelAttributedConversionsValue_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> currentModelAttributedConversionsValueBuilder_; + /** + *
+     * The total value of current model attributed conversions. This only includes
+     * conversion actions which include_in_conversions_metric attribute is set to
+     * true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_value = 104; + */ + public boolean hasCurrentModelAttributedConversionsValue() { + return currentModelAttributedConversionsValueBuilder_ != null || currentModelAttributedConversionsValue_ != null; + } + /** + *
+     * The total value of current model attributed conversions. This only includes
+     * conversion actions which include_in_conversions_metric attribute is set to
+     * true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_value = 104; + */ + public com.google.protobuf.DoubleValue getCurrentModelAttributedConversionsValue() { + if (currentModelAttributedConversionsValueBuilder_ == null) { + return currentModelAttributedConversionsValue_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : currentModelAttributedConversionsValue_; + } else { + return currentModelAttributedConversionsValueBuilder_.getMessage(); + } + } + /** + *
+     * The total value of current model attributed conversions. This only includes
+     * conversion actions which include_in_conversions_metric attribute is set to
+     * true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_value = 104; + */ + public Builder setCurrentModelAttributedConversionsValue(com.google.protobuf.DoubleValue value) { + if (currentModelAttributedConversionsValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + currentModelAttributedConversionsValue_ = value; + onChanged(); + } else { + currentModelAttributedConversionsValueBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The total value of current model attributed conversions. This only includes
+     * conversion actions which include_in_conversions_metric attribute is set to
+     * true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_value = 104; + */ + public Builder setCurrentModelAttributedConversionsValue( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (currentModelAttributedConversionsValueBuilder_ == null) { + currentModelAttributedConversionsValue_ = builderForValue.build(); + onChanged(); + } else { + currentModelAttributedConversionsValueBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The total value of current model attributed conversions. This only includes
+     * conversion actions which include_in_conversions_metric attribute is set to
+     * true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_value = 104; + */ + public Builder mergeCurrentModelAttributedConversionsValue(com.google.protobuf.DoubleValue value) { + if (currentModelAttributedConversionsValueBuilder_ == null) { + if (currentModelAttributedConversionsValue_ != null) { + currentModelAttributedConversionsValue_ = + com.google.protobuf.DoubleValue.newBuilder(currentModelAttributedConversionsValue_).mergeFrom(value).buildPartial(); + } else { + currentModelAttributedConversionsValue_ = value; + } + onChanged(); + } else { + currentModelAttributedConversionsValueBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The total value of current model attributed conversions. This only includes
+     * conversion actions which include_in_conversions_metric attribute is set to
+     * true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_value = 104; + */ + public Builder clearCurrentModelAttributedConversionsValue() { + if (currentModelAttributedConversionsValueBuilder_ == null) { + currentModelAttributedConversionsValue_ = null; + onChanged(); + } else { + currentModelAttributedConversionsValue_ = null; + currentModelAttributedConversionsValueBuilder_ = null; + } + + return this; + } + /** + *
+     * The total value of current model attributed conversions. This only includes
+     * conversion actions which include_in_conversions_metric attribute is set to
+     * true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_value = 104; + */ + public com.google.protobuf.DoubleValue.Builder getCurrentModelAttributedConversionsValueBuilder() { + + onChanged(); + return getCurrentModelAttributedConversionsValueFieldBuilder().getBuilder(); + } + /** + *
+     * The total value of current model attributed conversions. This only includes
+     * conversion actions which include_in_conversions_metric attribute is set to
+     * true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_value = 104; + */ + public com.google.protobuf.DoubleValueOrBuilder getCurrentModelAttributedConversionsValueOrBuilder() { + if (currentModelAttributedConversionsValueBuilder_ != null) { + return currentModelAttributedConversionsValueBuilder_.getMessageOrBuilder(); + } else { + return currentModelAttributedConversionsValue_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : currentModelAttributedConversionsValue_; + } + } + /** + *
+     * The total value of current model attributed conversions. This only includes
+     * conversion actions which include_in_conversions_metric attribute is set to
+     * true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_value = 104; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> + getCurrentModelAttributedConversionsValueFieldBuilder() { + if (currentModelAttributedConversionsValueBuilder_ == null) { + currentModelAttributedConversionsValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( + getCurrentModelAttributedConversionsValue(), + getParentForChildren(), + isClean()); + currentModelAttributedConversionsValue_ = null; + } + return currentModelAttributedConversionsValueBuilder_; + } + + private com.google.protobuf.DoubleValue currentModelAttributedConversionsValuePerCost_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> currentModelAttributedConversionsValuePerCostBuilder_; + /** + *
+     * The value of current model attributed conversions divided by the cost of ad
+     * interactions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_value_per_cost = 105; + */ + public boolean hasCurrentModelAttributedConversionsValuePerCost() { + return currentModelAttributedConversionsValuePerCostBuilder_ != null || currentModelAttributedConversionsValuePerCost_ != null; + } + /** + *
+     * The value of current model attributed conversions divided by the cost of ad
+     * interactions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_value_per_cost = 105; + */ + public com.google.protobuf.DoubleValue getCurrentModelAttributedConversionsValuePerCost() { + if (currentModelAttributedConversionsValuePerCostBuilder_ == null) { + return currentModelAttributedConversionsValuePerCost_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : currentModelAttributedConversionsValuePerCost_; + } else { + return currentModelAttributedConversionsValuePerCostBuilder_.getMessage(); + } + } + /** + *
+     * The value of current model attributed conversions divided by the cost of ad
+     * interactions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_value_per_cost = 105; + */ + public Builder setCurrentModelAttributedConversionsValuePerCost(com.google.protobuf.DoubleValue value) { + if (currentModelAttributedConversionsValuePerCostBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + currentModelAttributedConversionsValuePerCost_ = value; + onChanged(); + } else { + currentModelAttributedConversionsValuePerCostBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The value of current model attributed conversions divided by the cost of ad
+     * interactions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_value_per_cost = 105; + */ + public Builder setCurrentModelAttributedConversionsValuePerCost( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (currentModelAttributedConversionsValuePerCostBuilder_ == null) { + currentModelAttributedConversionsValuePerCost_ = builderForValue.build(); + onChanged(); + } else { + currentModelAttributedConversionsValuePerCostBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The value of current model attributed conversions divided by the cost of ad
+     * interactions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_value_per_cost = 105; + */ + public Builder mergeCurrentModelAttributedConversionsValuePerCost(com.google.protobuf.DoubleValue value) { + if (currentModelAttributedConversionsValuePerCostBuilder_ == null) { + if (currentModelAttributedConversionsValuePerCost_ != null) { + currentModelAttributedConversionsValuePerCost_ = + com.google.protobuf.DoubleValue.newBuilder(currentModelAttributedConversionsValuePerCost_).mergeFrom(value).buildPartial(); + } else { + currentModelAttributedConversionsValuePerCost_ = value; + } + onChanged(); + } else { + currentModelAttributedConversionsValuePerCostBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The value of current model attributed conversions divided by the cost of ad
+     * interactions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_value_per_cost = 105; + */ + public Builder clearCurrentModelAttributedConversionsValuePerCost() { + if (currentModelAttributedConversionsValuePerCostBuilder_ == null) { + currentModelAttributedConversionsValuePerCost_ = null; + onChanged(); + } else { + currentModelAttributedConversionsValuePerCost_ = null; + currentModelAttributedConversionsValuePerCostBuilder_ = null; + } + + return this; + } + /** + *
+     * The value of current model attributed conversions divided by the cost of ad
+     * interactions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_value_per_cost = 105; + */ + public com.google.protobuf.DoubleValue.Builder getCurrentModelAttributedConversionsValuePerCostBuilder() { + + onChanged(); + return getCurrentModelAttributedConversionsValuePerCostFieldBuilder().getBuilder(); + } + /** + *
+     * The value of current model attributed conversions divided by the cost of ad
+     * interactions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_value_per_cost = 105; + */ + public com.google.protobuf.DoubleValueOrBuilder getCurrentModelAttributedConversionsValuePerCostOrBuilder() { + if (currentModelAttributedConversionsValuePerCostBuilder_ != null) { + return currentModelAttributedConversionsValuePerCostBuilder_.getMessageOrBuilder(); + } else { + return currentModelAttributedConversionsValuePerCost_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : currentModelAttributedConversionsValuePerCost_; + } + } + /** + *
+     * The value of current model attributed conversions divided by the cost of ad
+     * interactions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_value_per_cost = 105; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> + getCurrentModelAttributedConversionsValuePerCostFieldBuilder() { + if (currentModelAttributedConversionsValuePerCostBuilder_ == null) { + currentModelAttributedConversionsValuePerCostBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( + getCurrentModelAttributedConversionsValuePerCost(), + getParentForChildren(), + isClean()); + currentModelAttributedConversionsValuePerCost_ = null; + } + return currentModelAttributedConversionsValuePerCostBuilder_; + } + + private com.google.protobuf.DoubleValue engagementRate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> engagementRateBuilder_; + /** + *
+     * How often people engage with your ad after it's shown to them. This is the
+     * number of ad expansions divided by the number of times your ad is shown.
+     * 
+ * + * .google.protobuf.DoubleValue engagement_rate = 31; + */ + public boolean hasEngagementRate() { + return engagementRateBuilder_ != null || engagementRate_ != null; + } + /** + *
+     * How often people engage with your ad after it's shown to them. This is the
+     * number of ad expansions divided by the number of times your ad is shown.
+     * 
+ * + * .google.protobuf.DoubleValue engagement_rate = 31; + */ + public com.google.protobuf.DoubleValue getEngagementRate() { + if (engagementRateBuilder_ == null) { + return engagementRate_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : engagementRate_; + } else { + return engagementRateBuilder_.getMessage(); + } + } + /** + *
+     * How often people engage with your ad after it's shown to them. This is the
+     * number of ad expansions divided by the number of times your ad is shown.
+     * 
+ * + * .google.protobuf.DoubleValue engagement_rate = 31; + */ + public Builder setEngagementRate(com.google.protobuf.DoubleValue value) { + if (engagementRateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + engagementRate_ = value; + onChanged(); + } else { + engagementRateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * How often people engage with your ad after it's shown to them. This is the
+     * number of ad expansions divided by the number of times your ad is shown.
+     * 
+ * + * .google.protobuf.DoubleValue engagement_rate = 31; + */ + public Builder setEngagementRate( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (engagementRateBuilder_ == null) { + engagementRate_ = builderForValue.build(); + onChanged(); + } else { + engagementRateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * How often people engage with your ad after it's shown to them. This is the
+     * number of ad expansions divided by the number of times your ad is shown.
+     * 
+ * + * .google.protobuf.DoubleValue engagement_rate = 31; + */ + public Builder mergeEngagementRate(com.google.protobuf.DoubleValue value) { + if (engagementRateBuilder_ == null) { + if (engagementRate_ != null) { + engagementRate_ = + com.google.protobuf.DoubleValue.newBuilder(engagementRate_).mergeFrom(value).buildPartial(); + } else { + engagementRate_ = value; + } + onChanged(); + } else { + engagementRateBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * How often people engage with your ad after it's shown to them. This is the
+     * number of ad expansions divided by the number of times your ad is shown.
+     * 
+ * + * .google.protobuf.DoubleValue engagement_rate = 31; + */ + public Builder clearEngagementRate() { + if (engagementRateBuilder_ == null) { + engagementRate_ = null; + onChanged(); + } else { + engagementRate_ = null; + engagementRateBuilder_ = null; + } + + return this; + } + /** + *
+     * How often people engage with your ad after it's shown to them. This is the
+     * number of ad expansions divided by the number of times your ad is shown.
+     * 
+ * + * .google.protobuf.DoubleValue engagement_rate = 31; + */ + public com.google.protobuf.DoubleValue.Builder getEngagementRateBuilder() { + + onChanged(); + return getEngagementRateFieldBuilder().getBuilder(); + } + /** + *
+     * How often people engage with your ad after it's shown to them. This is the
+     * number of ad expansions divided by the number of times your ad is shown.
+     * 
+ * + * .google.protobuf.DoubleValue engagement_rate = 31; + */ + public com.google.protobuf.DoubleValueOrBuilder getEngagementRateOrBuilder() { + if (engagementRateBuilder_ != null) { + return engagementRateBuilder_.getMessageOrBuilder(); + } else { + return engagementRate_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : engagementRate_; + } + } + /** + *
+     * How often people engage with your ad after it's shown to them. This is the
+     * number of ad expansions divided by the number of times your ad is shown.
+     * 
+ * + * .google.protobuf.DoubleValue engagement_rate = 31; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> + getEngagementRateFieldBuilder() { + if (engagementRateBuilder_ == null) { + engagementRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( + getEngagementRate(), + getParentForChildren(), + isClean()); + engagementRate_ = null; + } + return engagementRateBuilder_; + } + + private com.google.protobuf.Int64Value engagements_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> engagementsBuilder_; + /** + *
+     * The number of engagements.
+     * An engagement occurs when a viewer expands your Lightbox ad. Also, in the
+     * future, other ad types may support engagement metrics.
+     * 
+ * + * .google.protobuf.Int64Value engagements = 32; + */ + public boolean hasEngagements() { + return engagementsBuilder_ != null || engagements_ != null; + } + /** + *
+     * The number of engagements.
+     * An engagement occurs when a viewer expands your Lightbox ad. Also, in the
+     * future, other ad types may support engagement metrics.
+     * 
+ * + * .google.protobuf.Int64Value engagements = 32; + */ + public com.google.protobuf.Int64Value getEngagements() { + if (engagementsBuilder_ == null) { + return engagements_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : engagements_; + } else { + return engagementsBuilder_.getMessage(); + } + } + /** + *
+     * The number of engagements.
+     * An engagement occurs when a viewer expands your Lightbox ad. Also, in the
+     * future, other ad types may support engagement metrics.
+     * 
+ * + * .google.protobuf.Int64Value engagements = 32; + */ + public Builder setEngagements(com.google.protobuf.Int64Value value) { + if (engagementsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + engagements_ = value; + onChanged(); + } else { + engagementsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The number of engagements.
+     * An engagement occurs when a viewer expands your Lightbox ad. Also, in the
+     * future, other ad types may support engagement metrics.
+     * 
+ * + * .google.protobuf.Int64Value engagements = 32; + */ + public Builder setEngagements( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (engagementsBuilder_ == null) { + engagements_ = builderForValue.build(); + onChanged(); + } else { + engagementsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The number of engagements.
+     * An engagement occurs when a viewer expands your Lightbox ad. Also, in the
+     * future, other ad types may support engagement metrics.
+     * 
+ * + * .google.protobuf.Int64Value engagements = 32; + */ + public Builder mergeEngagements(com.google.protobuf.Int64Value value) { + if (engagementsBuilder_ == null) { + if (engagements_ != null) { + engagements_ = + com.google.protobuf.Int64Value.newBuilder(engagements_).mergeFrom(value).buildPartial(); + } else { + engagements_ = value; + } + onChanged(); + } else { + engagementsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The number of engagements.
+     * An engagement occurs when a viewer expands your Lightbox ad. Also, in the
+     * future, other ad types may support engagement metrics.
+     * 
+ * + * .google.protobuf.Int64Value engagements = 32; + */ + public Builder clearEngagements() { + if (engagementsBuilder_ == null) { + engagements_ = null; + onChanged(); + } else { + engagements_ = null; + engagementsBuilder_ = null; + } + + return this; + } + /** + *
+     * The number of engagements.
+     * An engagement occurs when a viewer expands your Lightbox ad. Also, in the
+     * future, other ad types may support engagement metrics.
+     * 
+ * + * .google.protobuf.Int64Value engagements = 32; + */ + public com.google.protobuf.Int64Value.Builder getEngagementsBuilder() { + + onChanged(); + return getEngagementsFieldBuilder().getBuilder(); + } + /** + *
+     * The number of engagements.
+     * An engagement occurs when a viewer expands your Lightbox ad. Also, in the
+     * future, other ad types may support engagement metrics.
+     * 
+ * + * .google.protobuf.Int64Value engagements = 32; + */ + public com.google.protobuf.Int64ValueOrBuilder getEngagementsOrBuilder() { + if (engagementsBuilder_ != null) { + return engagementsBuilder_.getMessageOrBuilder(); + } else { + return engagements_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : engagements_; + } + } + /** + *
+     * The number of engagements.
+     * An engagement occurs when a viewer expands your Lightbox ad. Also, in the
+     * future, other ad types may support engagement metrics.
+     * 
+ * + * .google.protobuf.Int64Value engagements = 32; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + getEngagementsFieldBuilder() { + if (engagementsBuilder_ == null) { + engagementsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getEngagements(), + getParentForChildren(), + isClean()); + engagements_ = null; + } + return engagementsBuilder_; + } + + private com.google.protobuf.DoubleValue hotelAverageLeadValueMicros_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> hotelAverageLeadValueMicrosBuilder_; + /** + *
+     * Average lead value of hotel.
+     * 
+ * + * .google.protobuf.DoubleValue hotel_average_lead_value_micros = 75; + */ + public boolean hasHotelAverageLeadValueMicros() { + return hotelAverageLeadValueMicrosBuilder_ != null || hotelAverageLeadValueMicros_ != null; + } + /** + *
+     * Average lead value of hotel.
+     * 
+ * + * .google.protobuf.DoubleValue hotel_average_lead_value_micros = 75; + */ + public com.google.protobuf.DoubleValue getHotelAverageLeadValueMicros() { + if (hotelAverageLeadValueMicrosBuilder_ == null) { + return hotelAverageLeadValueMicros_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : hotelAverageLeadValueMicros_; + } else { + return hotelAverageLeadValueMicrosBuilder_.getMessage(); + } + } + /** + *
+     * Average lead value of hotel.
+     * 
+ * + * .google.protobuf.DoubleValue hotel_average_lead_value_micros = 75; + */ + public Builder setHotelAverageLeadValueMicros(com.google.protobuf.DoubleValue value) { + if (hotelAverageLeadValueMicrosBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hotelAverageLeadValueMicros_ = value; + onChanged(); + } else { + hotelAverageLeadValueMicrosBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Average lead value of hotel.
+     * 
+ * + * .google.protobuf.DoubleValue hotel_average_lead_value_micros = 75; + */ + public Builder setHotelAverageLeadValueMicros( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (hotelAverageLeadValueMicrosBuilder_ == null) { + hotelAverageLeadValueMicros_ = builderForValue.build(); + onChanged(); + } else { + hotelAverageLeadValueMicrosBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Average lead value of hotel.
+     * 
+ * + * .google.protobuf.DoubleValue hotel_average_lead_value_micros = 75; + */ + public Builder mergeHotelAverageLeadValueMicros(com.google.protobuf.DoubleValue value) { + if (hotelAverageLeadValueMicrosBuilder_ == null) { + if (hotelAverageLeadValueMicros_ != null) { + hotelAverageLeadValueMicros_ = + com.google.protobuf.DoubleValue.newBuilder(hotelAverageLeadValueMicros_).mergeFrom(value).buildPartial(); + } else { + hotelAverageLeadValueMicros_ = value; + } + onChanged(); + } else { + hotelAverageLeadValueMicrosBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Average lead value of hotel.
+     * 
+ * + * .google.protobuf.DoubleValue hotel_average_lead_value_micros = 75; + */ + public Builder clearHotelAverageLeadValueMicros() { + if (hotelAverageLeadValueMicrosBuilder_ == null) { + hotelAverageLeadValueMicros_ = null; + onChanged(); + } else { + hotelAverageLeadValueMicros_ = null; + hotelAverageLeadValueMicrosBuilder_ = null; + } + + return this; + } + /** + *
+     * Average lead value of hotel.
+     * 
+ * + * .google.protobuf.DoubleValue hotel_average_lead_value_micros = 75; + */ + public com.google.protobuf.DoubleValue.Builder getHotelAverageLeadValueMicrosBuilder() { + + onChanged(); + return getHotelAverageLeadValueMicrosFieldBuilder().getBuilder(); + } + /** + *
+     * Average lead value of hotel.
+     * 
+ * + * .google.protobuf.DoubleValue hotel_average_lead_value_micros = 75; + */ + public com.google.protobuf.DoubleValueOrBuilder getHotelAverageLeadValueMicrosOrBuilder() { + if (hotelAverageLeadValueMicrosBuilder_ != null) { + return hotelAverageLeadValueMicrosBuilder_.getMessageOrBuilder(); + } else { + return hotelAverageLeadValueMicros_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : hotelAverageLeadValueMicros_; + } + } + /** + *
+     * Average lead value of hotel.
+     * 
+ * + * .google.protobuf.DoubleValue hotel_average_lead_value_micros = 75; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> + getHotelAverageLeadValueMicrosFieldBuilder() { + if (hotelAverageLeadValueMicrosBuilder_ == null) { + hotelAverageLeadValueMicrosBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( + getHotelAverageLeadValueMicros(), + getParentForChildren(), + isClean()); + hotelAverageLeadValueMicros_ = null; + } + return hotelAverageLeadValueMicrosBuilder_; + } + + private int historicalCreativeQualityScore_ = 0; + /** + *
+     * The creative historical quality score.
+     * 
+ * + * .google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket historical_creative_quality_score = 80; + */ + public int getHistoricalCreativeQualityScoreValue() { + return historicalCreativeQualityScore_; + } + /** + *
+     * The creative historical quality score.
+     * 
+ * + * .google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket historical_creative_quality_score = 80; + */ + public Builder setHistoricalCreativeQualityScoreValue(int value) { + historicalCreativeQualityScore_ = value; + onChanged(); + return this; + } + /** + *
+     * The creative historical quality score.
+     * 
+ * + * .google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket historical_creative_quality_score = 80; + */ + public com.google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket getHistoricalCreativeQualityScore() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket result = com.google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket.valueOf(historicalCreativeQualityScore_); + return result == null ? com.google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket.UNRECOGNIZED : result; + } + /** + *
+     * The creative historical quality score.
+     * 
+ * + * .google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket historical_creative_quality_score = 80; + */ + public Builder setHistoricalCreativeQualityScore(com.google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket value) { + if (value == null) { + throw new NullPointerException(); + } + + historicalCreativeQualityScore_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The creative historical quality score.
+     * 
+ * + * .google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket historical_creative_quality_score = 80; + */ + public Builder clearHistoricalCreativeQualityScore() { + + historicalCreativeQualityScore_ = 0; + onChanged(); + return this; + } + + private int historicalLandingPageQualityScore_ = 0; + /** + *
+     * The quality of historical landing page experience.
+     * 
+ * + * .google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket historical_landing_page_quality_score = 81; + */ + public int getHistoricalLandingPageQualityScoreValue() { + return historicalLandingPageQualityScore_; + } + /** + *
+     * The quality of historical landing page experience.
+     * 
+ * + * .google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket historical_landing_page_quality_score = 81; + */ + public Builder setHistoricalLandingPageQualityScoreValue(int value) { + historicalLandingPageQualityScore_ = value; + onChanged(); + return this; + } + /** + *
+     * The quality of historical landing page experience.
+     * 
+ * + * .google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket historical_landing_page_quality_score = 81; + */ + public com.google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket getHistoricalLandingPageQualityScore() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket result = com.google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket.valueOf(historicalLandingPageQualityScore_); + return result == null ? com.google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket.UNRECOGNIZED : result; + } + /** + *
+     * The quality of historical landing page experience.
+     * 
+ * + * .google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket historical_landing_page_quality_score = 81; + */ + public Builder setHistoricalLandingPageQualityScore(com.google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket value) { + if (value == null) { + throw new NullPointerException(); + } + + historicalLandingPageQualityScore_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The quality of historical landing page experience.
+     * 
+ * + * .google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket historical_landing_page_quality_score = 81; + */ + public Builder clearHistoricalLandingPageQualityScore() { + + historicalLandingPageQualityScore_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Int64Value historicalQualityScore_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> historicalQualityScoreBuilder_; + /** + *
+     * The historical quality score.
+     * 
+ * + * .google.protobuf.Int64Value historical_quality_score = 82; + */ + public boolean hasHistoricalQualityScore() { + return historicalQualityScoreBuilder_ != null || historicalQualityScore_ != null; + } + /** + *
+     * The historical quality score.
+     * 
+ * + * .google.protobuf.Int64Value historical_quality_score = 82; + */ + public com.google.protobuf.Int64Value getHistoricalQualityScore() { + if (historicalQualityScoreBuilder_ == null) { + return historicalQualityScore_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : historicalQualityScore_; + } else { + return historicalQualityScoreBuilder_.getMessage(); + } + } + /** + *
+     * The historical quality score.
+     * 
+ * + * .google.protobuf.Int64Value historical_quality_score = 82; + */ + public Builder setHistoricalQualityScore(com.google.protobuf.Int64Value value) { + if (historicalQualityScoreBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + historicalQualityScore_ = value; + onChanged(); + } else { + historicalQualityScoreBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The historical quality score.
+     * 
+ * + * .google.protobuf.Int64Value historical_quality_score = 82; + */ + public Builder setHistoricalQualityScore( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (historicalQualityScoreBuilder_ == null) { + historicalQualityScore_ = builderForValue.build(); + onChanged(); + } else { + historicalQualityScoreBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The historical quality score.
+     * 
+ * + * .google.protobuf.Int64Value historical_quality_score = 82; + */ + public Builder mergeHistoricalQualityScore(com.google.protobuf.Int64Value value) { + if (historicalQualityScoreBuilder_ == null) { + if (historicalQualityScore_ != null) { + historicalQualityScore_ = + com.google.protobuf.Int64Value.newBuilder(historicalQualityScore_).mergeFrom(value).buildPartial(); + } else { + historicalQualityScore_ = value; + } + onChanged(); + } else { + historicalQualityScoreBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The historical quality score.
+     * 
+ * + * .google.protobuf.Int64Value historical_quality_score = 82; + */ + public Builder clearHistoricalQualityScore() { + if (historicalQualityScoreBuilder_ == null) { + historicalQualityScore_ = null; + onChanged(); + } else { + historicalQualityScore_ = null; + historicalQualityScoreBuilder_ = null; + } + + return this; + } + /** + *
+     * The historical quality score.
+     * 
+ * + * .google.protobuf.Int64Value historical_quality_score = 82; + */ + public com.google.protobuf.Int64Value.Builder getHistoricalQualityScoreBuilder() { + + onChanged(); + return getHistoricalQualityScoreFieldBuilder().getBuilder(); + } + /** + *
+     * The historical quality score.
+     * 
+ * + * .google.protobuf.Int64Value historical_quality_score = 82; + */ + public com.google.protobuf.Int64ValueOrBuilder getHistoricalQualityScoreOrBuilder() { + if (historicalQualityScoreBuilder_ != null) { + return historicalQualityScoreBuilder_.getMessageOrBuilder(); + } else { + return historicalQualityScore_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : historicalQualityScore_; + } + } + /** + *
+     * The historical quality score.
+     * 
+ * + * .google.protobuf.Int64Value historical_quality_score = 82; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + getHistoricalQualityScoreFieldBuilder() { + if (historicalQualityScoreBuilder_ == null) { + historicalQualityScoreBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getHistoricalQualityScore(), + getParentForChildren(), + isClean()); + historicalQualityScore_ = null; + } + return historicalQualityScoreBuilder_; + } + + private int historicalSearchPredictedCtr_ = 0; + /** + *
+     * The historical search predicted click through rate (CTR).
+     * 
+ * + * .google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket historical_search_predicted_ctr = 83; + */ + public int getHistoricalSearchPredictedCtrValue() { + return historicalSearchPredictedCtr_; + } + /** + *
+     * The historical search predicted click through rate (CTR).
+     * 
+ * + * .google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket historical_search_predicted_ctr = 83; + */ + public Builder setHistoricalSearchPredictedCtrValue(int value) { + historicalSearchPredictedCtr_ = value; + onChanged(); + return this; + } + /** + *
+     * The historical search predicted click through rate (CTR).
+     * 
+ * + * .google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket historical_search_predicted_ctr = 83; + */ + public com.google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket getHistoricalSearchPredictedCtr() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket result = com.google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket.valueOf(historicalSearchPredictedCtr_); + return result == null ? com.google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket.UNRECOGNIZED : result; + } + /** + *
+     * The historical search predicted click through rate (CTR).
+     * 
+ * + * .google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket historical_search_predicted_ctr = 83; + */ + public Builder setHistoricalSearchPredictedCtr(com.google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket value) { + if (value == null) { + throw new NullPointerException(); + } + + historicalSearchPredictedCtr_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The historical search predicted click through rate (CTR).
+     * 
+ * + * .google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket historical_search_predicted_ctr = 83; + */ + public Builder clearHistoricalSearchPredictedCtr() { + + historicalSearchPredictedCtr_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Int64Value gmailForwards_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> gmailForwardsBuilder_; + /** + *
+     * The number of times the ad was forwarded to someone else as a message.
+     * 
+ * + * .google.protobuf.Int64Value gmail_forwards = 85; + */ + public boolean hasGmailForwards() { + return gmailForwardsBuilder_ != null || gmailForwards_ != null; + } + /** + *
+     * The number of times the ad was forwarded to someone else as a message.
+     * 
+ * + * .google.protobuf.Int64Value gmail_forwards = 85; + */ + public com.google.protobuf.Int64Value getGmailForwards() { + if (gmailForwardsBuilder_ == null) { + return gmailForwards_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : gmailForwards_; + } else { + return gmailForwardsBuilder_.getMessage(); + } + } + /** + *
+     * The number of times the ad was forwarded to someone else as a message.
+     * 
+ * + * .google.protobuf.Int64Value gmail_forwards = 85; + */ + public Builder setGmailForwards(com.google.protobuf.Int64Value value) { + if (gmailForwardsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gmailForwards_ = value; + onChanged(); + } else { + gmailForwardsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The number of times the ad was forwarded to someone else as a message.
+     * 
+ * + * .google.protobuf.Int64Value gmail_forwards = 85; + */ + public Builder setGmailForwards( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (gmailForwardsBuilder_ == null) { + gmailForwards_ = builderForValue.build(); + onChanged(); + } else { + gmailForwardsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The number of times the ad was forwarded to someone else as a message.
+     * 
+ * + * .google.protobuf.Int64Value gmail_forwards = 85; + */ + public Builder mergeGmailForwards(com.google.protobuf.Int64Value value) { + if (gmailForwardsBuilder_ == null) { + if (gmailForwards_ != null) { + gmailForwards_ = + com.google.protobuf.Int64Value.newBuilder(gmailForwards_).mergeFrom(value).buildPartial(); + } else { + gmailForwards_ = value; + } + onChanged(); + } else { + gmailForwardsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The number of times the ad was forwarded to someone else as a message.
+     * 
+ * + * .google.protobuf.Int64Value gmail_forwards = 85; + */ + public Builder clearGmailForwards() { + if (gmailForwardsBuilder_ == null) { + gmailForwards_ = null; + onChanged(); + } else { + gmailForwards_ = null; + gmailForwardsBuilder_ = null; + } + + return this; + } + /** + *
+     * The number of times the ad was forwarded to someone else as a message.
+     * 
+ * + * .google.protobuf.Int64Value gmail_forwards = 85; + */ + public com.google.protobuf.Int64Value.Builder getGmailForwardsBuilder() { + + onChanged(); + return getGmailForwardsFieldBuilder().getBuilder(); + } + /** + *
+     * The number of times the ad was forwarded to someone else as a message.
+     * 
+ * + * .google.protobuf.Int64Value gmail_forwards = 85; + */ + public com.google.protobuf.Int64ValueOrBuilder getGmailForwardsOrBuilder() { + if (gmailForwardsBuilder_ != null) { + return gmailForwardsBuilder_.getMessageOrBuilder(); + } else { + return gmailForwards_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : gmailForwards_; + } + } + /** + *
+     * The number of times the ad was forwarded to someone else as a message.
+     * 
+ * + * .google.protobuf.Int64Value gmail_forwards = 85; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + getGmailForwardsFieldBuilder() { + if (gmailForwardsBuilder_ == null) { + gmailForwardsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getGmailForwards(), + getParentForChildren(), + isClean()); + gmailForwards_ = null; + } + return gmailForwardsBuilder_; + } + + private com.google.protobuf.Int64Value gmailSaves_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> gmailSavesBuilder_; + /** + *
+     * The number of times someone has saved your Gmail ad to their inbox as a
+     * message.
+     * 
+ * + * .google.protobuf.Int64Value gmail_saves = 86; + */ + public boolean hasGmailSaves() { + return gmailSavesBuilder_ != null || gmailSaves_ != null; + } + /** + *
+     * The number of times someone has saved your Gmail ad to their inbox as a
+     * message.
+     * 
+ * + * .google.protobuf.Int64Value gmail_saves = 86; + */ + public com.google.protobuf.Int64Value getGmailSaves() { + if (gmailSavesBuilder_ == null) { + return gmailSaves_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : gmailSaves_; + } else { + return gmailSavesBuilder_.getMessage(); + } + } + /** + *
+     * The number of times someone has saved your Gmail ad to their inbox as a
+     * message.
+     * 
+ * + * .google.protobuf.Int64Value gmail_saves = 86; + */ + public Builder setGmailSaves(com.google.protobuf.Int64Value value) { + if (gmailSavesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gmailSaves_ = value; + onChanged(); + } else { + gmailSavesBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The number of times someone has saved your Gmail ad to their inbox as a
+     * message.
+     * 
+ * + * .google.protobuf.Int64Value gmail_saves = 86; + */ + public Builder setGmailSaves( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (gmailSavesBuilder_ == null) { + gmailSaves_ = builderForValue.build(); + onChanged(); + } else { + gmailSavesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The number of times someone has saved your Gmail ad to their inbox as a
+     * message.
+     * 
+ * + * .google.protobuf.Int64Value gmail_saves = 86; + */ + public Builder mergeGmailSaves(com.google.protobuf.Int64Value value) { + if (gmailSavesBuilder_ == null) { + if (gmailSaves_ != null) { + gmailSaves_ = + com.google.protobuf.Int64Value.newBuilder(gmailSaves_).mergeFrom(value).buildPartial(); + } else { + gmailSaves_ = value; + } + onChanged(); + } else { + gmailSavesBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The number of times someone has saved your Gmail ad to their inbox as a
+     * message.
+     * 
+ * + * .google.protobuf.Int64Value gmail_saves = 86; + */ + public Builder clearGmailSaves() { + if (gmailSavesBuilder_ == null) { + gmailSaves_ = null; + onChanged(); + } else { + gmailSaves_ = null; + gmailSavesBuilder_ = null; + } + + return this; + } + /** + *
+     * The number of times someone has saved your Gmail ad to their inbox as a
+     * message.
+     * 
+ * + * .google.protobuf.Int64Value gmail_saves = 86; + */ + public com.google.protobuf.Int64Value.Builder getGmailSavesBuilder() { + + onChanged(); + return getGmailSavesFieldBuilder().getBuilder(); + } + /** + *
+     * The number of times someone has saved your Gmail ad to their inbox as a
+     * message.
+     * 
+ * + * .google.protobuf.Int64Value gmail_saves = 86; + */ + public com.google.protobuf.Int64ValueOrBuilder getGmailSavesOrBuilder() { + if (gmailSavesBuilder_ != null) { + return gmailSavesBuilder_.getMessageOrBuilder(); + } else { + return gmailSaves_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : gmailSaves_; + } + } + /** + *
+     * The number of times someone has saved your Gmail ad to their inbox as a
+     * message.
+     * 
+ * + * .google.protobuf.Int64Value gmail_saves = 86; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + getGmailSavesFieldBuilder() { + if (gmailSavesBuilder_ == null) { + gmailSavesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getGmailSaves(), + getParentForChildren(), + isClean()); + gmailSaves_ = null; + } + return gmailSavesBuilder_; + } + + private com.google.protobuf.Int64Value gmailSecondaryClicks_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> gmailSecondaryClicksBuilder_; + /** + *
+     * The number of clicks to the landing page on the expanded state of Gmail
+     * ads.
+     * 
+ * + * .google.protobuf.Int64Value gmail_secondary_clicks = 87; + */ + public boolean hasGmailSecondaryClicks() { + return gmailSecondaryClicksBuilder_ != null || gmailSecondaryClicks_ != null; + } + /** + *
+     * The number of clicks to the landing page on the expanded state of Gmail
+     * ads.
+     * 
+ * + * .google.protobuf.Int64Value gmail_secondary_clicks = 87; + */ + public com.google.protobuf.Int64Value getGmailSecondaryClicks() { + if (gmailSecondaryClicksBuilder_ == null) { + return gmailSecondaryClicks_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : gmailSecondaryClicks_; + } else { + return gmailSecondaryClicksBuilder_.getMessage(); + } + } + /** + *
+     * The number of clicks to the landing page on the expanded state of Gmail
+     * ads.
+     * 
+ * + * .google.protobuf.Int64Value gmail_secondary_clicks = 87; + */ + public Builder setGmailSecondaryClicks(com.google.protobuf.Int64Value value) { + if (gmailSecondaryClicksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gmailSecondaryClicks_ = value; + onChanged(); + } else { + gmailSecondaryClicksBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The number of clicks to the landing page on the expanded state of Gmail
+     * ads.
+     * 
+ * + * .google.protobuf.Int64Value gmail_secondary_clicks = 87; + */ + public Builder setGmailSecondaryClicks( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (gmailSecondaryClicksBuilder_ == null) { + gmailSecondaryClicks_ = builderForValue.build(); + onChanged(); + } else { + gmailSecondaryClicksBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The number of clicks to the landing page on the expanded state of Gmail
+     * ads.
+     * 
+ * + * .google.protobuf.Int64Value gmail_secondary_clicks = 87; + */ + public Builder mergeGmailSecondaryClicks(com.google.protobuf.Int64Value value) { + if (gmailSecondaryClicksBuilder_ == null) { + if (gmailSecondaryClicks_ != null) { + gmailSecondaryClicks_ = + com.google.protobuf.Int64Value.newBuilder(gmailSecondaryClicks_).mergeFrom(value).buildPartial(); + } else { + gmailSecondaryClicks_ = value; + } + onChanged(); + } else { + gmailSecondaryClicksBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The number of clicks to the landing page on the expanded state of Gmail
+     * ads.
+     * 
+ * + * .google.protobuf.Int64Value gmail_secondary_clicks = 87; + */ + public Builder clearGmailSecondaryClicks() { + if (gmailSecondaryClicksBuilder_ == null) { + gmailSecondaryClicks_ = null; + onChanged(); + } else { + gmailSecondaryClicks_ = null; + gmailSecondaryClicksBuilder_ = null; + } + + return this; + } + /** + *
+     * The number of clicks to the landing page on the expanded state of Gmail
+     * ads.
+     * 
+ * + * .google.protobuf.Int64Value gmail_secondary_clicks = 87; + */ + public com.google.protobuf.Int64Value.Builder getGmailSecondaryClicksBuilder() { + + onChanged(); + return getGmailSecondaryClicksFieldBuilder().getBuilder(); + } + /** + *
+     * The number of clicks to the landing page on the expanded state of Gmail
+     * ads.
+     * 
+ * + * .google.protobuf.Int64Value gmail_secondary_clicks = 87; + */ + public com.google.protobuf.Int64ValueOrBuilder getGmailSecondaryClicksOrBuilder() { + if (gmailSecondaryClicksBuilder_ != null) { + return gmailSecondaryClicksBuilder_.getMessageOrBuilder(); + } else { + return gmailSecondaryClicks_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : gmailSecondaryClicks_; + } + } + /** + *
+     * The number of clicks to the landing page on the expanded state of Gmail
+     * ads.
+     * 
+ * + * .google.protobuf.Int64Value gmail_secondary_clicks = 87; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + getGmailSecondaryClicksFieldBuilder() { + if (gmailSecondaryClicksBuilder_ == null) { + gmailSecondaryClicksBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getGmailSecondaryClicks(), + getParentForChildren(), + isClean()); + gmailSecondaryClicks_ = null; + } + return gmailSecondaryClicksBuilder_; + } + + private com.google.protobuf.Int64Value impressionReach_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> impressionReachBuilder_; + /** + *
+     * Number of unique cookies that were exposed to your ad over a given time
+     * period.
+     * 
+ * + * .google.protobuf.Int64Value impression_reach = 36; + */ + public boolean hasImpressionReach() { + return impressionReachBuilder_ != null || impressionReach_ != null; + } + /** + *
+     * Number of unique cookies that were exposed to your ad over a given time
+     * period.
+     * 
+ * + * .google.protobuf.Int64Value impression_reach = 36; + */ + public com.google.protobuf.Int64Value getImpressionReach() { + if (impressionReachBuilder_ == null) { + return impressionReach_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : impressionReach_; + } else { + return impressionReachBuilder_.getMessage(); + } + } + /** + *
+     * Number of unique cookies that were exposed to your ad over a given time
+     * period.
+     * 
+ * + * .google.protobuf.Int64Value impression_reach = 36; + */ + public Builder setImpressionReach(com.google.protobuf.Int64Value value) { + if (impressionReachBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + impressionReach_ = value; + onChanged(); + } else { + impressionReachBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Number of unique cookies that were exposed to your ad over a given time
+     * period.
+     * 
+ * + * .google.protobuf.Int64Value impression_reach = 36; + */ + public Builder setImpressionReach( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (impressionReachBuilder_ == null) { + impressionReach_ = builderForValue.build(); + onChanged(); + } else { + impressionReachBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Number of unique cookies that were exposed to your ad over a given time
+     * period.
+     * 
+ * + * .google.protobuf.Int64Value impression_reach = 36; + */ + public Builder mergeImpressionReach(com.google.protobuf.Int64Value value) { + if (impressionReachBuilder_ == null) { + if (impressionReach_ != null) { + impressionReach_ = + com.google.protobuf.Int64Value.newBuilder(impressionReach_).mergeFrom(value).buildPartial(); + } else { + impressionReach_ = value; + } + onChanged(); + } else { + impressionReachBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Number of unique cookies that were exposed to your ad over a given time
+     * period.
+     * 
+ * + * .google.protobuf.Int64Value impression_reach = 36; + */ + public Builder clearImpressionReach() { + if (impressionReachBuilder_ == null) { + impressionReach_ = null; + onChanged(); + } else { + impressionReach_ = null; + impressionReachBuilder_ = null; + } + + return this; + } + /** + *
+     * Number of unique cookies that were exposed to your ad over a given time
+     * period.
+     * 
+ * + * .google.protobuf.Int64Value impression_reach = 36; + */ + public com.google.protobuf.Int64Value.Builder getImpressionReachBuilder() { + + onChanged(); + return getImpressionReachFieldBuilder().getBuilder(); + } + /** + *
+     * Number of unique cookies that were exposed to your ad over a given time
+     * period.
+     * 
+ * + * .google.protobuf.Int64Value impression_reach = 36; + */ + public com.google.protobuf.Int64ValueOrBuilder getImpressionReachOrBuilder() { + if (impressionReachBuilder_ != null) { + return impressionReachBuilder_.getMessageOrBuilder(); + } else { + return impressionReach_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : impressionReach_; + } + } + /** + *
+     * Number of unique cookies that were exposed to your ad over a given time
+     * period.
+     * 
+ * + * .google.protobuf.Int64Value impression_reach = 36; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + getImpressionReachFieldBuilder() { + if (impressionReachBuilder_ == null) { + impressionReachBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getImpressionReach(), + getParentForChildren(), + isClean()); + impressionReach_ = null; + } + return impressionReachBuilder_; + } + + private com.google.protobuf.Int64Value impressions_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> impressionsBuilder_; + /** + *
+     * Count of how often your ad has appeared on a search results page or
+     * website on the Google Network.
+     * 
+ * + * .google.protobuf.Int64Value impressions = 37; + */ + public boolean hasImpressions() { + return impressionsBuilder_ != null || impressions_ != null; + } + /** + *
+     * Count of how often your ad has appeared on a search results page or
+     * website on the Google Network.
+     * 
+ * + * .google.protobuf.Int64Value impressions = 37; + */ + public com.google.protobuf.Int64Value getImpressions() { + if (impressionsBuilder_ == null) { + return impressions_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : impressions_; + } else { + return impressionsBuilder_.getMessage(); + } + } + /** + *
+     * Count of how often your ad has appeared on a search results page or
+     * website on the Google Network.
+     * 
+ * + * .google.protobuf.Int64Value impressions = 37; + */ + public Builder setImpressions(com.google.protobuf.Int64Value value) { + if (impressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + impressions_ = value; + onChanged(); + } else { + impressionsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Count of how often your ad has appeared on a search results page or
+     * website on the Google Network.
+     * 
+ * + * .google.protobuf.Int64Value impressions = 37; + */ + public Builder setImpressions( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (impressionsBuilder_ == null) { + impressions_ = builderForValue.build(); + onChanged(); + } else { + impressionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Count of how often your ad has appeared on a search results page or
+     * website on the Google Network.
+     * 
+ * + * .google.protobuf.Int64Value impressions = 37; + */ + public Builder mergeImpressions(com.google.protobuf.Int64Value value) { + if (impressionsBuilder_ == null) { + if (impressions_ != null) { + impressions_ = + com.google.protobuf.Int64Value.newBuilder(impressions_).mergeFrom(value).buildPartial(); + } else { + impressions_ = value; + } + onChanged(); + } else { + impressionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Count of how often your ad has appeared on a search results page or
+     * website on the Google Network.
+     * 
+ * + * .google.protobuf.Int64Value impressions = 37; + */ + public Builder clearImpressions() { + if (impressionsBuilder_ == null) { + impressions_ = null; + onChanged(); + } else { + impressions_ = null; + impressionsBuilder_ = null; + } + + return this; + } + /** + *
+     * Count of how often your ad has appeared on a search results page or
+     * website on the Google Network.
+     * 
+ * + * .google.protobuf.Int64Value impressions = 37; + */ + public com.google.protobuf.Int64Value.Builder getImpressionsBuilder() { + + onChanged(); + return getImpressionsFieldBuilder().getBuilder(); + } + /** + *
+     * Count of how often your ad has appeared on a search results page or
+     * website on the Google Network.
+     * 
+ * + * .google.protobuf.Int64Value impressions = 37; + */ + public com.google.protobuf.Int64ValueOrBuilder getImpressionsOrBuilder() { + if (impressionsBuilder_ != null) { + return impressionsBuilder_.getMessageOrBuilder(); + } else { + return impressions_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : impressions_; + } + } + /** + *
+     * Count of how often your ad has appeared on a search results page or
+     * website on the Google Network.
+     * 
+ * + * .google.protobuf.Int64Value impressions = 37; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + getImpressionsFieldBuilder() { + if (impressionsBuilder_ == null) { + impressionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getImpressions(), + getParentForChildren(), + isClean()); + impressions_ = null; + } + return impressionsBuilder_; + } + + private com.google.protobuf.DoubleValue interactionRate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> interactionRateBuilder_; + /** + *
+     * How often people interact with your ad after it is shown to them.
+     * This is the number of interactions divided by the number of times your ad
+     * is shown.
+     * 
+ * + * .google.protobuf.DoubleValue interaction_rate = 38; + */ + public boolean hasInteractionRate() { + return interactionRateBuilder_ != null || interactionRate_ != null; + } + /** + *
+     * How often people interact with your ad after it is shown to them.
+     * This is the number of interactions divided by the number of times your ad
+     * is shown.
+     * 
+ * + * .google.protobuf.DoubleValue interaction_rate = 38; + */ + public com.google.protobuf.DoubleValue getInteractionRate() { + if (interactionRateBuilder_ == null) { + return interactionRate_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : interactionRate_; + } else { + return interactionRateBuilder_.getMessage(); + } + } + /** + *
+     * How often people interact with your ad after it is shown to them.
+     * This is the number of interactions divided by the number of times your ad
+     * is shown.
+     * 
+ * + * .google.protobuf.DoubleValue interaction_rate = 38; + */ + public Builder setInteractionRate(com.google.protobuf.DoubleValue value) { + if (interactionRateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + interactionRate_ = value; + onChanged(); + } else { + interactionRateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * How often people interact with your ad after it is shown to them.
+     * This is the number of interactions divided by the number of times your ad
+     * is shown.
+     * 
+ * + * .google.protobuf.DoubleValue interaction_rate = 38; + */ + public Builder setInteractionRate( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (interactionRateBuilder_ == null) { + interactionRate_ = builderForValue.build(); + onChanged(); + } else { + interactionRateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * How often people interact with your ad after it is shown to them.
+     * This is the number of interactions divided by the number of times your ad
+     * is shown.
+     * 
+ * + * .google.protobuf.DoubleValue interaction_rate = 38; + */ + public Builder mergeInteractionRate(com.google.protobuf.DoubleValue value) { + if (interactionRateBuilder_ == null) { + if (interactionRate_ != null) { + interactionRate_ = + com.google.protobuf.DoubleValue.newBuilder(interactionRate_).mergeFrom(value).buildPartial(); + } else { + interactionRate_ = value; + } + onChanged(); + } else { + interactionRateBuilder_.mergeFrom(value); + } + + return this; } + /** + *
+     * How often people interact with your ad after it is shown to them.
+     * This is the number of interactions divided by the number of times your ad
+     * is shown.
+     * 
+ * + * .google.protobuf.DoubleValue interaction_rate = 38; + */ + public Builder clearInteractionRate() { + if (interactionRateBuilder_ == null) { + interactionRate_ = null; + onChanged(); + } else { + interactionRate_ = null; + interactionRateBuilder_ = null; + } - private com.google.protobuf.DoubleValue crossDeviceConversions_ = null; + return this; + } + /** + *
+     * How often people interact with your ad after it is shown to them.
+     * This is the number of interactions divided by the number of times your ad
+     * is shown.
+     * 
+ * + * .google.protobuf.DoubleValue interaction_rate = 38; + */ + public com.google.protobuf.DoubleValue.Builder getInteractionRateBuilder() { + + onChanged(); + return getInteractionRateFieldBuilder().getBuilder(); + } + /** + *
+     * How often people interact with your ad after it is shown to them.
+     * This is the number of interactions divided by the number of times your ad
+     * is shown.
+     * 
+ * + * .google.protobuf.DoubleValue interaction_rate = 38; + */ + public com.google.protobuf.DoubleValueOrBuilder getInteractionRateOrBuilder() { + if (interactionRateBuilder_ != null) { + return interactionRateBuilder_.getMessageOrBuilder(); + } else { + return interactionRate_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : interactionRate_; + } + } + /** + *
+     * How often people interact with your ad after it is shown to them.
+     * This is the number of interactions divided by the number of times your ad
+     * is shown.
+     * 
+ * + * .google.protobuf.DoubleValue interaction_rate = 38; + */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> crossDeviceConversionsBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> + getInteractionRateFieldBuilder() { + if (interactionRateBuilder_ == null) { + interactionRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( + getInteractionRate(), + getParentForChildren(), + isClean()); + interactionRate_ = null; + } + return interactionRateBuilder_; + } + + private com.google.protobuf.Int64Value interactions_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> interactionsBuilder_; + /** + *
+     * The number of interactions.
+     * An interaction is the main user action associated with an ad format-clicks
+     * for text and shopping ads, views for video ads, and so on.
+     * 
+ * + * .google.protobuf.Int64Value interactions = 39; + */ + public boolean hasInteractions() { + return interactionsBuilder_ != null || interactions_ != null; + } + /** + *
+     * The number of interactions.
+     * An interaction is the main user action associated with an ad format-clicks
+     * for text and shopping ads, views for video ads, and so on.
+     * 
+ * + * .google.protobuf.Int64Value interactions = 39; + */ + public com.google.protobuf.Int64Value getInteractions() { + if (interactionsBuilder_ == null) { + return interactions_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : interactions_; + } else { + return interactionsBuilder_.getMessage(); + } + } + /** + *
+     * The number of interactions.
+     * An interaction is the main user action associated with an ad format-clicks
+     * for text and shopping ads, views for video ads, and so on.
+     * 
+ * + * .google.protobuf.Int64Value interactions = 39; + */ + public Builder setInteractions(com.google.protobuf.Int64Value value) { + if (interactionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + interactions_ = value; + onChanged(); + } else { + interactionsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The number of interactions.
+     * An interaction is the main user action associated with an ad format-clicks
+     * for text and shopping ads, views for video ads, and so on.
+     * 
+ * + * .google.protobuf.Int64Value interactions = 39; + */ + public Builder setInteractions( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (interactionsBuilder_ == null) { + interactions_ = builderForValue.build(); + onChanged(); + } else { + interactionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The number of interactions.
+     * An interaction is the main user action associated with an ad format-clicks
+     * for text and shopping ads, views for video ads, and so on.
+     * 
+ * + * .google.protobuf.Int64Value interactions = 39; + */ + public Builder mergeInteractions(com.google.protobuf.Int64Value value) { + if (interactionsBuilder_ == null) { + if (interactions_ != null) { + interactions_ = + com.google.protobuf.Int64Value.newBuilder(interactions_).mergeFrom(value).buildPartial(); + } else { + interactions_ = value; + } + onChanged(); + } else { + interactionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The number of interactions.
+     * An interaction is the main user action associated with an ad format-clicks
+     * for text and shopping ads, views for video ads, and so on.
+     * 
+ * + * .google.protobuf.Int64Value interactions = 39; + */ + public Builder clearInteractions() { + if (interactionsBuilder_ == null) { + interactions_ = null; + onChanged(); + } else { + interactions_ = null; + interactionsBuilder_ = null; + } + + return this; + } + /** + *
+     * The number of interactions.
+     * An interaction is the main user action associated with an ad format-clicks
+     * for text and shopping ads, views for video ads, and so on.
+     * 
+ * + * .google.protobuf.Int64Value interactions = 39; + */ + public com.google.protobuf.Int64Value.Builder getInteractionsBuilder() { + + onChanged(); + return getInteractionsFieldBuilder().getBuilder(); + } + /** + *
+     * The number of interactions.
+     * An interaction is the main user action associated with an ad format-clicks
+     * for text and shopping ads, views for video ads, and so on.
+     * 
+ * + * .google.protobuf.Int64Value interactions = 39; + */ + public com.google.protobuf.Int64ValueOrBuilder getInteractionsOrBuilder() { + if (interactionsBuilder_ != null) { + return interactionsBuilder_.getMessageOrBuilder(); + } else { + return interactions_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : interactions_; + } + } + /** + *
+     * The number of interactions.
+     * An interaction is the main user action associated with an ad format-clicks
+     * for text and shopping ads, views for video ads, and so on.
+     * 
+ * + * .google.protobuf.Int64Value interactions = 39; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + getInteractionsFieldBuilder() { + if (interactionsBuilder_ == null) { + interactionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getInteractions(), + getParentForChildren(), + isClean()); + interactions_ = null; + } + return interactionsBuilder_; + } + + private java.util.List interactionEventTypes_ = + java.util.Collections.emptyList(); + private void ensureInteractionEventTypesIsMutable() { + if (!((bitField1_ & 0x20000000) == 0x20000000)) { + interactionEventTypes_ = new java.util.ArrayList(interactionEventTypes_); + bitField1_ |= 0x20000000; + } + } + /** + *
+     * The types of payable and free interactions.
+     * 
+ * + * repeated .google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType interaction_event_types = 100; + */ + public java.util.List getInteractionEventTypesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType>(interactionEventTypes_, interactionEventTypes_converter_); + } /** *
-     * Conversions from when a customer clicks on a Google Ads ad on one device,
-     * then converts on a different device or browser.
-     * Cross-device conversions are already included in all_conversions.
+     * The types of payable and free interactions.
      * 
* - * .google.protobuf.DoubleValue cross_device_conversions = 29; + * repeated .google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType interaction_event_types = 100; */ - public boolean hasCrossDeviceConversions() { - return crossDeviceConversionsBuilder_ != null || crossDeviceConversions_ != null; + public int getInteractionEventTypesCount() { + return interactionEventTypes_.size(); } /** *
-     * Conversions from when a customer clicks on a Google Ads ad on one device,
-     * then converts on a different device or browser.
-     * Cross-device conversions are already included in all_conversions.
+     * The types of payable and free interactions.
      * 
* - * .google.protobuf.DoubleValue cross_device_conversions = 29; + * repeated .google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType interaction_event_types = 100; */ - public com.google.protobuf.DoubleValue getCrossDeviceConversions() { - if (crossDeviceConversionsBuilder_ == null) { - return crossDeviceConversions_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : crossDeviceConversions_; - } else { - return crossDeviceConversionsBuilder_.getMessage(); - } + public com.google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType getInteractionEventTypes(int index) { + return interactionEventTypes_converter_.convert(interactionEventTypes_.get(index)); } /** *
-     * Conversions from when a customer clicks on a Google Ads ad on one device,
-     * then converts on a different device or browser.
-     * Cross-device conversions are already included in all_conversions.
+     * The types of payable and free interactions.
      * 
* - * .google.protobuf.DoubleValue cross_device_conversions = 29; + * repeated .google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType interaction_event_types = 100; */ - public Builder setCrossDeviceConversions(com.google.protobuf.DoubleValue value) { - if (crossDeviceConversionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - crossDeviceConversions_ = value; - onChanged(); - } else { - crossDeviceConversionsBuilder_.setMessage(value); + public Builder setInteractionEventTypes( + int index, com.google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType value) { + if (value == null) { + throw new NullPointerException(); } - + ensureInteractionEventTypesIsMutable(); + interactionEventTypes_.set(index, value.getNumber()); + onChanged(); return this; } /** *
-     * Conversions from when a customer clicks on a Google Ads ad on one device,
-     * then converts on a different device or browser.
-     * Cross-device conversions are already included in all_conversions.
+     * The types of payable and free interactions.
      * 
* - * .google.protobuf.DoubleValue cross_device_conversions = 29; + * repeated .google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType interaction_event_types = 100; */ - public Builder setCrossDeviceConversions( - com.google.protobuf.DoubleValue.Builder builderForValue) { - if (crossDeviceConversionsBuilder_ == null) { - crossDeviceConversions_ = builderForValue.build(); - onChanged(); - } else { - crossDeviceConversionsBuilder_.setMessage(builderForValue.build()); + public Builder addInteractionEventTypes(com.google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType value) { + if (value == null) { + throw new NullPointerException(); } - + ensureInteractionEventTypesIsMutable(); + interactionEventTypes_.add(value.getNumber()); + onChanged(); return this; } /** *
-     * Conversions from when a customer clicks on a Google Ads ad on one device,
-     * then converts on a different device or browser.
-     * Cross-device conversions are already included in all_conversions.
+     * The types of payable and free interactions.
      * 
* - * .google.protobuf.DoubleValue cross_device_conversions = 29; + * repeated .google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType interaction_event_types = 100; */ - public Builder mergeCrossDeviceConversions(com.google.protobuf.DoubleValue value) { - if (crossDeviceConversionsBuilder_ == null) { - if (crossDeviceConversions_ != null) { - crossDeviceConversions_ = - com.google.protobuf.DoubleValue.newBuilder(crossDeviceConversions_).mergeFrom(value).buildPartial(); - } else { - crossDeviceConversions_ = value; - } - onChanged(); - } else { - crossDeviceConversionsBuilder_.mergeFrom(value); + public Builder addAllInteractionEventTypes( + java.lang.Iterable values) { + ensureInteractionEventTypesIsMutable(); + for (com.google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType value : values) { + interactionEventTypes_.add(value.getNumber()); } - + onChanged(); return this; } /** *
-     * Conversions from when a customer clicks on a Google Ads ad on one device,
-     * then converts on a different device or browser.
-     * Cross-device conversions are already included in all_conversions.
+     * The types of payable and free interactions.
      * 
* - * .google.protobuf.DoubleValue cross_device_conversions = 29; + * repeated .google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType interaction_event_types = 100; */ - public Builder clearCrossDeviceConversions() { - if (crossDeviceConversionsBuilder_ == null) { - crossDeviceConversions_ = null; - onChanged(); - } else { - crossDeviceConversions_ = null; - crossDeviceConversionsBuilder_ = null; - } - + public Builder clearInteractionEventTypes() { + interactionEventTypes_ = java.util.Collections.emptyList(); + bitField1_ = (bitField1_ & ~0x20000000); + onChanged(); return this; } /** *
-     * Conversions from when a customer clicks on a Google Ads ad on one device,
-     * then converts on a different device or browser.
-     * Cross-device conversions are already included in all_conversions.
+     * The types of payable and free interactions.
      * 
* - * .google.protobuf.DoubleValue cross_device_conversions = 29; + * repeated .google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType interaction_event_types = 100; */ - public com.google.protobuf.DoubleValue.Builder getCrossDeviceConversionsBuilder() { - + public java.util.List + getInteractionEventTypesValueList() { + return java.util.Collections.unmodifiableList(interactionEventTypes_); + } + /** + *
+     * The types of payable and free interactions.
+     * 
+ * + * repeated .google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType interaction_event_types = 100; + */ + public int getInteractionEventTypesValue(int index) { + return interactionEventTypes_.get(index); + } + /** + *
+     * The types of payable and free interactions.
+     * 
+ * + * repeated .google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType interaction_event_types = 100; + */ + public Builder setInteractionEventTypesValue( + int index, int value) { + ensureInteractionEventTypesIsMutable(); + interactionEventTypes_.set(index, value); onChanged(); - return getCrossDeviceConversionsFieldBuilder().getBuilder(); + return this; } /** *
-     * Conversions from when a customer clicks on a Google Ads ad on one device,
-     * then converts on a different device or browser.
-     * Cross-device conversions are already included in all_conversions.
+     * The types of payable and free interactions.
      * 
* - * .google.protobuf.DoubleValue cross_device_conversions = 29; + * repeated .google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType interaction_event_types = 100; */ - public com.google.protobuf.DoubleValueOrBuilder getCrossDeviceConversionsOrBuilder() { - if (crossDeviceConversionsBuilder_ != null) { - return crossDeviceConversionsBuilder_.getMessageOrBuilder(); - } else { - return crossDeviceConversions_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : crossDeviceConversions_; - } + public Builder addInteractionEventTypesValue(int value) { + ensureInteractionEventTypesIsMutable(); + interactionEventTypes_.add(value); + onChanged(); + return this; } /** *
-     * Conversions from when a customer clicks on a Google Ads ad on one device,
-     * then converts on a different device or browser.
-     * Cross-device conversions are already included in all_conversions.
+     * The types of payable and free interactions.
      * 
* - * .google.protobuf.DoubleValue cross_device_conversions = 29; + * repeated .google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType interaction_event_types = 100; */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - getCrossDeviceConversionsFieldBuilder() { - if (crossDeviceConversionsBuilder_ == null) { - crossDeviceConversionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getCrossDeviceConversions(), - getParentForChildren(), - isClean()); - crossDeviceConversions_ = null; + public Builder addAllInteractionEventTypesValue( + java.lang.Iterable values) { + ensureInteractionEventTypesIsMutable(); + for (int value : values) { + interactionEventTypes_.add(value); } - return crossDeviceConversionsBuilder_; + onChanged(); + return this; } - private com.google.protobuf.DoubleValue ctr_ = null; + private com.google.protobuf.DoubleValue invalidClickRate_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> ctrBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> invalidClickRateBuilder_; /** *
-     * The number of clicks your ad receives (Clicks) divided by the number
-     * of times your ad is shown (Impressions).
+     * The percentage of clicks filtered out of your total number of clicks
+     * (filtered + non-filtered clicks) during the reporting period.
      * 
* - * .google.protobuf.DoubleValue ctr = 30; + * .google.protobuf.DoubleValue invalid_click_rate = 40; */ - public boolean hasCtr() { - return ctrBuilder_ != null || ctr_ != null; + public boolean hasInvalidClickRate() { + return invalidClickRateBuilder_ != null || invalidClickRate_ != null; } /** *
-     * The number of clicks your ad receives (Clicks) divided by the number
-     * of times your ad is shown (Impressions).
+     * The percentage of clicks filtered out of your total number of clicks
+     * (filtered + non-filtered clicks) during the reporting period.
      * 
* - * .google.protobuf.DoubleValue ctr = 30; + * .google.protobuf.DoubleValue invalid_click_rate = 40; */ - public com.google.protobuf.DoubleValue getCtr() { - if (ctrBuilder_ == null) { - return ctr_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : ctr_; + public com.google.protobuf.DoubleValue getInvalidClickRate() { + if (invalidClickRateBuilder_ == null) { + return invalidClickRate_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : invalidClickRate_; } else { - return ctrBuilder_.getMessage(); + return invalidClickRateBuilder_.getMessage(); } } /** *
-     * The number of clicks your ad receives (Clicks) divided by the number
-     * of times your ad is shown (Impressions).
+     * The percentage of clicks filtered out of your total number of clicks
+     * (filtered + non-filtered clicks) during the reporting period.
      * 
* - * .google.protobuf.DoubleValue ctr = 30; + * .google.protobuf.DoubleValue invalid_click_rate = 40; */ - public Builder setCtr(com.google.protobuf.DoubleValue value) { - if (ctrBuilder_ == null) { + public Builder setInvalidClickRate(com.google.protobuf.DoubleValue value) { + if (invalidClickRateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ctr_ = value; + invalidClickRate_ = value; onChanged(); } else { - ctrBuilder_.setMessage(value); + invalidClickRateBuilder_.setMessage(value); } return this; } /** *
-     * The number of clicks your ad receives (Clicks) divided by the number
-     * of times your ad is shown (Impressions).
+     * The percentage of clicks filtered out of your total number of clicks
+     * (filtered + non-filtered clicks) during the reporting period.
      * 
* - * .google.protobuf.DoubleValue ctr = 30; + * .google.protobuf.DoubleValue invalid_click_rate = 40; */ - public Builder setCtr( + public Builder setInvalidClickRate( com.google.protobuf.DoubleValue.Builder builderForValue) { - if (ctrBuilder_ == null) { - ctr_ = builderForValue.build(); + if (invalidClickRateBuilder_ == null) { + invalidClickRate_ = builderForValue.build(); onChanged(); } else { - ctrBuilder_.setMessage(builderForValue.build()); + invalidClickRateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The number of clicks your ad receives (Clicks) divided by the number
-     * of times your ad is shown (Impressions).
+     * The percentage of clicks filtered out of your total number of clicks
+     * (filtered + non-filtered clicks) during the reporting period.
      * 
* - * .google.protobuf.DoubleValue ctr = 30; + * .google.protobuf.DoubleValue invalid_click_rate = 40; */ - public Builder mergeCtr(com.google.protobuf.DoubleValue value) { - if (ctrBuilder_ == null) { - if (ctr_ != null) { - ctr_ = - com.google.protobuf.DoubleValue.newBuilder(ctr_).mergeFrom(value).buildPartial(); + public Builder mergeInvalidClickRate(com.google.protobuf.DoubleValue value) { + if (invalidClickRateBuilder_ == null) { + if (invalidClickRate_ != null) { + invalidClickRate_ = + com.google.protobuf.DoubleValue.newBuilder(invalidClickRate_).mergeFrom(value).buildPartial(); } else { - ctr_ = value; + invalidClickRate_ = value; } onChanged(); } else { - ctrBuilder_.mergeFrom(value); + invalidClickRateBuilder_.mergeFrom(value); } return this; } /** *
-     * The number of clicks your ad receives (Clicks) divided by the number
-     * of times your ad is shown (Impressions).
+     * The percentage of clicks filtered out of your total number of clicks
+     * (filtered + non-filtered clicks) during the reporting period.
      * 
* - * .google.protobuf.DoubleValue ctr = 30; + * .google.protobuf.DoubleValue invalid_click_rate = 40; */ - public Builder clearCtr() { - if (ctrBuilder_ == null) { - ctr_ = null; + public Builder clearInvalidClickRate() { + if (invalidClickRateBuilder_ == null) { + invalidClickRate_ = null; onChanged(); } else { - ctr_ = null; - ctrBuilder_ = null; + invalidClickRate_ = null; + invalidClickRateBuilder_ = null; } return this; } /** *
-     * The number of clicks your ad receives (Clicks) divided by the number
-     * of times your ad is shown (Impressions).
+     * The percentage of clicks filtered out of your total number of clicks
+     * (filtered + non-filtered clicks) during the reporting period.
      * 
* - * .google.protobuf.DoubleValue ctr = 30; + * .google.protobuf.DoubleValue invalid_click_rate = 40; */ - public com.google.protobuf.DoubleValue.Builder getCtrBuilder() { + public com.google.protobuf.DoubleValue.Builder getInvalidClickRateBuilder() { onChanged(); - return getCtrFieldBuilder().getBuilder(); + return getInvalidClickRateFieldBuilder().getBuilder(); } /** *
-     * The number of clicks your ad receives (Clicks) divided by the number
-     * of times your ad is shown (Impressions).
+     * The percentage of clicks filtered out of your total number of clicks
+     * (filtered + non-filtered clicks) during the reporting period.
      * 
* - * .google.protobuf.DoubleValue ctr = 30; + * .google.protobuf.DoubleValue invalid_click_rate = 40; */ - public com.google.protobuf.DoubleValueOrBuilder getCtrOrBuilder() { - if (ctrBuilder_ != null) { - return ctrBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getInvalidClickRateOrBuilder() { + if (invalidClickRateBuilder_ != null) { + return invalidClickRateBuilder_.getMessageOrBuilder(); } else { - return ctr_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : ctr_; + return invalidClickRate_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : invalidClickRate_; } } /** *
-     * The number of clicks your ad receives (Clicks) divided by the number
-     * of times your ad is shown (Impressions).
+     * The percentage of clicks filtered out of your total number of clicks
+     * (filtered + non-filtered clicks) during the reporting period.
      * 
* - * .google.protobuf.DoubleValue ctr = 30; + * .google.protobuf.DoubleValue invalid_click_rate = 40; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - getCtrFieldBuilder() { - if (ctrBuilder_ == null) { - ctrBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getInvalidClickRateFieldBuilder() { + if (invalidClickRateBuilder_ == null) { + invalidClickRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getCtr(), + getInvalidClickRate(), getParentForChildren(), isClean()); - ctr_ = null; + invalidClickRate_ = null; } - return ctrBuilder_; + return invalidClickRateBuilder_; } - private com.google.protobuf.DoubleValue engagementRate_ = null; + private com.google.protobuf.Int64Value invalidClicks_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> engagementRateBuilder_; + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> invalidClicksBuilder_; /** *
-     * How often people engage with your ad after it's shown to them. This is the
-     * number of ad expansions divided by the number of times your ad is shown.
+     * Number of clicks Google considers illegitimate and doesn't charge you for.
      * 
* - * .google.protobuf.DoubleValue engagement_rate = 31; + * .google.protobuf.Int64Value invalid_clicks = 41; */ - public boolean hasEngagementRate() { - return engagementRateBuilder_ != null || engagementRate_ != null; + public boolean hasInvalidClicks() { + return invalidClicksBuilder_ != null || invalidClicks_ != null; } /** *
-     * How often people engage with your ad after it's shown to them. This is the
-     * number of ad expansions divided by the number of times your ad is shown.
+     * Number of clicks Google considers illegitimate and doesn't charge you for.
      * 
* - * .google.protobuf.DoubleValue engagement_rate = 31; + * .google.protobuf.Int64Value invalid_clicks = 41; */ - public com.google.protobuf.DoubleValue getEngagementRate() { - if (engagementRateBuilder_ == null) { - return engagementRate_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : engagementRate_; + public com.google.protobuf.Int64Value getInvalidClicks() { + if (invalidClicksBuilder_ == null) { + return invalidClicks_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : invalidClicks_; } else { - return engagementRateBuilder_.getMessage(); + return invalidClicksBuilder_.getMessage(); } } /** *
-     * How often people engage with your ad after it's shown to them. This is the
-     * number of ad expansions divided by the number of times your ad is shown.
+     * Number of clicks Google considers illegitimate and doesn't charge you for.
      * 
* - * .google.protobuf.DoubleValue engagement_rate = 31; + * .google.protobuf.Int64Value invalid_clicks = 41; */ - public Builder setEngagementRate(com.google.protobuf.DoubleValue value) { - if (engagementRateBuilder_ == null) { + public Builder setInvalidClicks(com.google.protobuf.Int64Value value) { + if (invalidClicksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - engagementRate_ = value; + invalidClicks_ = value; onChanged(); } else { - engagementRateBuilder_.setMessage(value); + invalidClicksBuilder_.setMessage(value); } return this; } /** *
-     * How often people engage with your ad after it's shown to them. This is the
-     * number of ad expansions divided by the number of times your ad is shown.
+     * Number of clicks Google considers illegitimate and doesn't charge you for.
      * 
* - * .google.protobuf.DoubleValue engagement_rate = 31; + * .google.protobuf.Int64Value invalid_clicks = 41; */ - public Builder setEngagementRate( - com.google.protobuf.DoubleValue.Builder builderForValue) { - if (engagementRateBuilder_ == null) { - engagementRate_ = builderForValue.build(); + public Builder setInvalidClicks( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (invalidClicksBuilder_ == null) { + invalidClicks_ = builderForValue.build(); onChanged(); } else { - engagementRateBuilder_.setMessage(builderForValue.build()); + invalidClicksBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * How often people engage with your ad after it's shown to them. This is the
-     * number of ad expansions divided by the number of times your ad is shown.
+     * Number of clicks Google considers illegitimate and doesn't charge you for.
      * 
* - * .google.protobuf.DoubleValue engagement_rate = 31; + * .google.protobuf.Int64Value invalid_clicks = 41; */ - public Builder mergeEngagementRate(com.google.protobuf.DoubleValue value) { - if (engagementRateBuilder_ == null) { - if (engagementRate_ != null) { - engagementRate_ = - com.google.protobuf.DoubleValue.newBuilder(engagementRate_).mergeFrom(value).buildPartial(); + public Builder mergeInvalidClicks(com.google.protobuf.Int64Value value) { + if (invalidClicksBuilder_ == null) { + if (invalidClicks_ != null) { + invalidClicks_ = + com.google.protobuf.Int64Value.newBuilder(invalidClicks_).mergeFrom(value).buildPartial(); } else { - engagementRate_ = value; + invalidClicks_ = value; } onChanged(); } else { - engagementRateBuilder_.mergeFrom(value); + invalidClicksBuilder_.mergeFrom(value); } return this; } /** *
-     * How often people engage with your ad after it's shown to them. This is the
-     * number of ad expansions divided by the number of times your ad is shown.
+     * Number of clicks Google considers illegitimate and doesn't charge you for.
      * 
* - * .google.protobuf.DoubleValue engagement_rate = 31; + * .google.protobuf.Int64Value invalid_clicks = 41; */ - public Builder clearEngagementRate() { - if (engagementRateBuilder_ == null) { - engagementRate_ = null; + public Builder clearInvalidClicks() { + if (invalidClicksBuilder_ == null) { + invalidClicks_ = null; onChanged(); } else { - engagementRate_ = null; - engagementRateBuilder_ = null; + invalidClicks_ = null; + invalidClicksBuilder_ = null; } return this; } /** *
-     * How often people engage with your ad after it's shown to them. This is the
-     * number of ad expansions divided by the number of times your ad is shown.
+     * Number of clicks Google considers illegitimate and doesn't charge you for.
      * 
* - * .google.protobuf.DoubleValue engagement_rate = 31; + * .google.protobuf.Int64Value invalid_clicks = 41; */ - public com.google.protobuf.DoubleValue.Builder getEngagementRateBuilder() { + public com.google.protobuf.Int64Value.Builder getInvalidClicksBuilder() { onChanged(); - return getEngagementRateFieldBuilder().getBuilder(); + return getInvalidClicksFieldBuilder().getBuilder(); } /** *
-     * How often people engage with your ad after it's shown to them. This is the
-     * number of ad expansions divided by the number of times your ad is shown.
+     * Number of clicks Google considers illegitimate and doesn't charge you for.
      * 
* - * .google.protobuf.DoubleValue engagement_rate = 31; + * .google.protobuf.Int64Value invalid_clicks = 41; */ - public com.google.protobuf.DoubleValueOrBuilder getEngagementRateOrBuilder() { - if (engagementRateBuilder_ != null) { - return engagementRateBuilder_.getMessageOrBuilder(); + public com.google.protobuf.Int64ValueOrBuilder getInvalidClicksOrBuilder() { + if (invalidClicksBuilder_ != null) { + return invalidClicksBuilder_.getMessageOrBuilder(); } else { - return engagementRate_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : engagementRate_; + return invalidClicks_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : invalidClicks_; } } /** *
-     * How often people engage with your ad after it's shown to them. This is the
-     * number of ad expansions divided by the number of times your ad is shown.
+     * Number of clicks Google considers illegitimate and doesn't charge you for.
      * 
* - * .google.protobuf.DoubleValue engagement_rate = 31; + * .google.protobuf.Int64Value invalid_clicks = 41; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - getEngagementRateFieldBuilder() { - if (engagementRateBuilder_ == null) { - engagementRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getEngagementRate(), + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + getInvalidClicksFieldBuilder() { + if (invalidClicksBuilder_ == null) { + invalidClicksBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getInvalidClicks(), getParentForChildren(), isClean()); - engagementRate_ = null; + invalidClicks_ = null; } - return engagementRateBuilder_; + return invalidClicksBuilder_; } - private com.google.protobuf.Int64Value engagements_ = null; + private com.google.protobuf.DoubleValue percentNewVisitors_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> engagementsBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> percentNewVisitorsBuilder_; /** *
-     * The number of engagements.
-     * An engagement occurs when a viewer expands your Lightbox ad. Also, in the
-     * future, other ad types may support engagement metrics.
+     * Percentage of first-time sessions (from people who had never visited your
+     * site before). Imported from Google Analytics.
      * 
* - * .google.protobuf.Int64Value engagements = 32; + * .google.protobuf.DoubleValue percent_new_visitors = 42; */ - public boolean hasEngagements() { - return engagementsBuilder_ != null || engagements_ != null; + public boolean hasPercentNewVisitors() { + return percentNewVisitorsBuilder_ != null || percentNewVisitors_ != null; } /** *
-     * The number of engagements.
-     * An engagement occurs when a viewer expands your Lightbox ad. Also, in the
-     * future, other ad types may support engagement metrics.
+     * Percentage of first-time sessions (from people who had never visited your
+     * site before). Imported from Google Analytics.
      * 
* - * .google.protobuf.Int64Value engagements = 32; + * .google.protobuf.DoubleValue percent_new_visitors = 42; */ - public com.google.protobuf.Int64Value getEngagements() { - if (engagementsBuilder_ == null) { - return engagements_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : engagements_; + public com.google.protobuf.DoubleValue getPercentNewVisitors() { + if (percentNewVisitorsBuilder_ == null) { + return percentNewVisitors_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : percentNewVisitors_; } else { - return engagementsBuilder_.getMessage(); + return percentNewVisitorsBuilder_.getMessage(); } } /** *
-     * The number of engagements.
-     * An engagement occurs when a viewer expands your Lightbox ad. Also, in the
-     * future, other ad types may support engagement metrics.
+     * Percentage of first-time sessions (from people who had never visited your
+     * site before). Imported from Google Analytics.
      * 
* - * .google.protobuf.Int64Value engagements = 32; + * .google.protobuf.DoubleValue percent_new_visitors = 42; */ - public Builder setEngagements(com.google.protobuf.Int64Value value) { - if (engagementsBuilder_ == null) { + public Builder setPercentNewVisitors(com.google.protobuf.DoubleValue value) { + if (percentNewVisitorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - engagements_ = value; + percentNewVisitors_ = value; onChanged(); } else { - engagementsBuilder_.setMessage(value); + percentNewVisitorsBuilder_.setMessage(value); } return this; } /** *
-     * The number of engagements.
-     * An engagement occurs when a viewer expands your Lightbox ad. Also, in the
-     * future, other ad types may support engagement metrics.
+     * Percentage of first-time sessions (from people who had never visited your
+     * site before). Imported from Google Analytics.
      * 
* - * .google.protobuf.Int64Value engagements = 32; + * .google.protobuf.DoubleValue percent_new_visitors = 42; */ - public Builder setEngagements( - com.google.protobuf.Int64Value.Builder builderForValue) { - if (engagementsBuilder_ == null) { - engagements_ = builderForValue.build(); + public Builder setPercentNewVisitors( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (percentNewVisitorsBuilder_ == null) { + percentNewVisitors_ = builderForValue.build(); onChanged(); } else { - engagementsBuilder_.setMessage(builderForValue.build()); + percentNewVisitorsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The number of engagements.
-     * An engagement occurs when a viewer expands your Lightbox ad. Also, in the
-     * future, other ad types may support engagement metrics.
+     * Percentage of first-time sessions (from people who had never visited your
+     * site before). Imported from Google Analytics.
      * 
* - * .google.protobuf.Int64Value engagements = 32; + * .google.protobuf.DoubleValue percent_new_visitors = 42; */ - public Builder mergeEngagements(com.google.protobuf.Int64Value value) { - if (engagementsBuilder_ == null) { - if (engagements_ != null) { - engagements_ = - com.google.protobuf.Int64Value.newBuilder(engagements_).mergeFrom(value).buildPartial(); + public Builder mergePercentNewVisitors(com.google.protobuf.DoubleValue value) { + if (percentNewVisitorsBuilder_ == null) { + if (percentNewVisitors_ != null) { + percentNewVisitors_ = + com.google.protobuf.DoubleValue.newBuilder(percentNewVisitors_).mergeFrom(value).buildPartial(); } else { - engagements_ = value; + percentNewVisitors_ = value; } onChanged(); } else { - engagementsBuilder_.mergeFrom(value); + percentNewVisitorsBuilder_.mergeFrom(value); } return this; } /** *
-     * The number of engagements.
-     * An engagement occurs when a viewer expands your Lightbox ad. Also, in the
-     * future, other ad types may support engagement metrics.
+     * Percentage of first-time sessions (from people who had never visited your
+     * site before). Imported from Google Analytics.
      * 
* - * .google.protobuf.Int64Value engagements = 32; + * .google.protobuf.DoubleValue percent_new_visitors = 42; */ - public Builder clearEngagements() { - if (engagementsBuilder_ == null) { - engagements_ = null; + public Builder clearPercentNewVisitors() { + if (percentNewVisitorsBuilder_ == null) { + percentNewVisitors_ = null; onChanged(); } else { - engagements_ = null; - engagementsBuilder_ = null; + percentNewVisitors_ = null; + percentNewVisitorsBuilder_ = null; } return this; } /** *
-     * The number of engagements.
-     * An engagement occurs when a viewer expands your Lightbox ad. Also, in the
-     * future, other ad types may support engagement metrics.
+     * Percentage of first-time sessions (from people who had never visited your
+     * site before). Imported from Google Analytics.
      * 
* - * .google.protobuf.Int64Value engagements = 32; + * .google.protobuf.DoubleValue percent_new_visitors = 42; */ - public com.google.protobuf.Int64Value.Builder getEngagementsBuilder() { + public com.google.protobuf.DoubleValue.Builder getPercentNewVisitorsBuilder() { onChanged(); - return getEngagementsFieldBuilder().getBuilder(); + return getPercentNewVisitorsFieldBuilder().getBuilder(); } /** *
-     * The number of engagements.
-     * An engagement occurs when a viewer expands your Lightbox ad. Also, in the
-     * future, other ad types may support engagement metrics.
+     * Percentage of first-time sessions (from people who had never visited your
+     * site before). Imported from Google Analytics.
      * 
* - * .google.protobuf.Int64Value engagements = 32; + * .google.protobuf.DoubleValue percent_new_visitors = 42; */ - public com.google.protobuf.Int64ValueOrBuilder getEngagementsOrBuilder() { - if (engagementsBuilder_ != null) { - return engagementsBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getPercentNewVisitorsOrBuilder() { + if (percentNewVisitorsBuilder_ != null) { + return percentNewVisitorsBuilder_.getMessageOrBuilder(); } else { - return engagements_ == null ? - com.google.protobuf.Int64Value.getDefaultInstance() : engagements_; + return percentNewVisitors_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : percentNewVisitors_; } } /** *
-     * The number of engagements.
-     * An engagement occurs when a viewer expands your Lightbox ad. Also, in the
-     * future, other ad types may support engagement metrics.
+     * Percentage of first-time sessions (from people who had never visited your
+     * site before). Imported from Google Analytics.
      * 
* - * .google.protobuf.Int64Value engagements = 32; + * .google.protobuf.DoubleValue percent_new_visitors = 42; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> - getEngagementsFieldBuilder() { - if (engagementsBuilder_ == null) { - engagementsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( - getEngagements(), + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> + getPercentNewVisitorsFieldBuilder() { + if (percentNewVisitorsBuilder_ == null) { + percentNewVisitorsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( + getPercentNewVisitors(), getParentForChildren(), isClean()); - engagements_ = null; + percentNewVisitors_ = null; } - return engagementsBuilder_; + return percentNewVisitorsBuilder_; } - private com.google.protobuf.DoubleValue hotelAverageLeadValueMicros_ = null; + private com.google.protobuf.Int64Value phoneCalls_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> hotelAverageLeadValueMicrosBuilder_; + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> phoneCallsBuilder_; /** *
-     * Average lead value of hotel.
+     * Number of offline phone calls.
      * 
* - * .google.protobuf.DoubleValue hotel_average_lead_value_micros = 75; + * .google.protobuf.Int64Value phone_calls = 43; */ - public boolean hasHotelAverageLeadValueMicros() { - return hotelAverageLeadValueMicrosBuilder_ != null || hotelAverageLeadValueMicros_ != null; + public boolean hasPhoneCalls() { + return phoneCallsBuilder_ != null || phoneCalls_ != null; } /** *
-     * Average lead value of hotel.
+     * Number of offline phone calls.
      * 
* - * .google.protobuf.DoubleValue hotel_average_lead_value_micros = 75; + * .google.protobuf.Int64Value phone_calls = 43; */ - public com.google.protobuf.DoubleValue getHotelAverageLeadValueMicros() { - if (hotelAverageLeadValueMicrosBuilder_ == null) { - return hotelAverageLeadValueMicros_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : hotelAverageLeadValueMicros_; + public com.google.protobuf.Int64Value getPhoneCalls() { + if (phoneCallsBuilder_ == null) { + return phoneCalls_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : phoneCalls_; } else { - return hotelAverageLeadValueMicrosBuilder_.getMessage(); + return phoneCallsBuilder_.getMessage(); } } /** *
-     * Average lead value of hotel.
+     * Number of offline phone calls.
      * 
* - * .google.protobuf.DoubleValue hotel_average_lead_value_micros = 75; + * .google.protobuf.Int64Value phone_calls = 43; */ - public Builder setHotelAverageLeadValueMicros(com.google.protobuf.DoubleValue value) { - if (hotelAverageLeadValueMicrosBuilder_ == null) { + public Builder setPhoneCalls(com.google.protobuf.Int64Value value) { + if (phoneCallsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - hotelAverageLeadValueMicros_ = value; + phoneCalls_ = value; onChanged(); } else { - hotelAverageLeadValueMicrosBuilder_.setMessage(value); + phoneCallsBuilder_.setMessage(value); } return this; } /** *
-     * Average lead value of hotel.
+     * Number of offline phone calls.
      * 
* - * .google.protobuf.DoubleValue hotel_average_lead_value_micros = 75; + * .google.protobuf.Int64Value phone_calls = 43; */ - public Builder setHotelAverageLeadValueMicros( - com.google.protobuf.DoubleValue.Builder builderForValue) { - if (hotelAverageLeadValueMicrosBuilder_ == null) { - hotelAverageLeadValueMicros_ = builderForValue.build(); + public Builder setPhoneCalls( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (phoneCallsBuilder_ == null) { + phoneCalls_ = builderForValue.build(); onChanged(); } else { - hotelAverageLeadValueMicrosBuilder_.setMessage(builderForValue.build()); + phoneCallsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * Average lead value of hotel.
+     * Number of offline phone calls.
      * 
* - * .google.protobuf.DoubleValue hotel_average_lead_value_micros = 75; + * .google.protobuf.Int64Value phone_calls = 43; */ - public Builder mergeHotelAverageLeadValueMicros(com.google.protobuf.DoubleValue value) { - if (hotelAverageLeadValueMicrosBuilder_ == null) { - if (hotelAverageLeadValueMicros_ != null) { - hotelAverageLeadValueMicros_ = - com.google.protobuf.DoubleValue.newBuilder(hotelAverageLeadValueMicros_).mergeFrom(value).buildPartial(); + public Builder mergePhoneCalls(com.google.protobuf.Int64Value value) { + if (phoneCallsBuilder_ == null) { + if (phoneCalls_ != null) { + phoneCalls_ = + com.google.protobuf.Int64Value.newBuilder(phoneCalls_).mergeFrom(value).buildPartial(); } else { - hotelAverageLeadValueMicros_ = value; + phoneCalls_ = value; } onChanged(); } else { - hotelAverageLeadValueMicrosBuilder_.mergeFrom(value); + phoneCallsBuilder_.mergeFrom(value); } return this; } /** *
-     * Average lead value of hotel.
+     * Number of offline phone calls.
      * 
* - * .google.protobuf.DoubleValue hotel_average_lead_value_micros = 75; + * .google.protobuf.Int64Value phone_calls = 43; */ - public Builder clearHotelAverageLeadValueMicros() { - if (hotelAverageLeadValueMicrosBuilder_ == null) { - hotelAverageLeadValueMicros_ = null; + public Builder clearPhoneCalls() { + if (phoneCallsBuilder_ == null) { + phoneCalls_ = null; onChanged(); } else { - hotelAverageLeadValueMicros_ = null; - hotelAverageLeadValueMicrosBuilder_ = null; + phoneCalls_ = null; + phoneCallsBuilder_ = null; } return this; } /** *
-     * Average lead value of hotel.
+     * Number of offline phone calls.
      * 
* - * .google.protobuf.DoubleValue hotel_average_lead_value_micros = 75; + * .google.protobuf.Int64Value phone_calls = 43; */ - public com.google.protobuf.DoubleValue.Builder getHotelAverageLeadValueMicrosBuilder() { + public com.google.protobuf.Int64Value.Builder getPhoneCallsBuilder() { onChanged(); - return getHotelAverageLeadValueMicrosFieldBuilder().getBuilder(); + return getPhoneCallsFieldBuilder().getBuilder(); } /** *
-     * Average lead value of hotel.
+     * Number of offline phone calls.
      * 
* - * .google.protobuf.DoubleValue hotel_average_lead_value_micros = 75; + * .google.protobuf.Int64Value phone_calls = 43; */ - public com.google.protobuf.DoubleValueOrBuilder getHotelAverageLeadValueMicrosOrBuilder() { - if (hotelAverageLeadValueMicrosBuilder_ != null) { - return hotelAverageLeadValueMicrosBuilder_.getMessageOrBuilder(); + public com.google.protobuf.Int64ValueOrBuilder getPhoneCallsOrBuilder() { + if (phoneCallsBuilder_ != null) { + return phoneCallsBuilder_.getMessageOrBuilder(); } else { - return hotelAverageLeadValueMicros_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : hotelAverageLeadValueMicros_; + return phoneCalls_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : phoneCalls_; } } /** *
-     * Average lead value of hotel.
+     * Number of offline phone calls.
      * 
* - * .google.protobuf.DoubleValue hotel_average_lead_value_micros = 75; + * .google.protobuf.Int64Value phone_calls = 43; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - getHotelAverageLeadValueMicrosFieldBuilder() { - if (hotelAverageLeadValueMicrosBuilder_ == null) { - hotelAverageLeadValueMicrosBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getHotelAverageLeadValueMicros(), + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + getPhoneCallsFieldBuilder() { + if (phoneCallsBuilder_ == null) { + phoneCallsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getPhoneCalls(), getParentForChildren(), isClean()); - hotelAverageLeadValueMicros_ = null; + phoneCalls_ = null; } - return hotelAverageLeadValueMicrosBuilder_; + return phoneCallsBuilder_; } - private com.google.protobuf.Int64Value impressions_ = null; + private com.google.protobuf.Int64Value phoneImpressions_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> impressionsBuilder_; + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> phoneImpressionsBuilder_; /** *
-     * Count of how often your ad has appeared on a search results page or
-     * website on the Google Network.
+     * Number of offline phone impressions.
      * 
* - * .google.protobuf.Int64Value impressions = 37; + * .google.protobuf.Int64Value phone_impressions = 44; */ - public boolean hasImpressions() { - return impressionsBuilder_ != null || impressions_ != null; + public boolean hasPhoneImpressions() { + return phoneImpressionsBuilder_ != null || phoneImpressions_ != null; } /** *
-     * Count of how often your ad has appeared on a search results page or
-     * website on the Google Network.
+     * Number of offline phone impressions.
      * 
* - * .google.protobuf.Int64Value impressions = 37; + * .google.protobuf.Int64Value phone_impressions = 44; */ - public com.google.protobuf.Int64Value getImpressions() { - if (impressionsBuilder_ == null) { - return impressions_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : impressions_; + public com.google.protobuf.Int64Value getPhoneImpressions() { + if (phoneImpressionsBuilder_ == null) { + return phoneImpressions_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : phoneImpressions_; } else { - return impressionsBuilder_.getMessage(); + return phoneImpressionsBuilder_.getMessage(); } } /** *
-     * Count of how often your ad has appeared on a search results page or
-     * website on the Google Network.
+     * Number of offline phone impressions.
      * 
* - * .google.protobuf.Int64Value impressions = 37; + * .google.protobuf.Int64Value phone_impressions = 44; */ - public Builder setImpressions(com.google.protobuf.Int64Value value) { - if (impressionsBuilder_ == null) { + public Builder setPhoneImpressions(com.google.protobuf.Int64Value value) { + if (phoneImpressionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - impressions_ = value; + phoneImpressions_ = value; onChanged(); } else { - impressionsBuilder_.setMessage(value); + phoneImpressionsBuilder_.setMessage(value); } return this; } /** *
-     * Count of how often your ad has appeared on a search results page or
-     * website on the Google Network.
+     * Number of offline phone impressions.
      * 
* - * .google.protobuf.Int64Value impressions = 37; + * .google.protobuf.Int64Value phone_impressions = 44; */ - public Builder setImpressions( + public Builder setPhoneImpressions( com.google.protobuf.Int64Value.Builder builderForValue) { - if (impressionsBuilder_ == null) { - impressions_ = builderForValue.build(); + if (phoneImpressionsBuilder_ == null) { + phoneImpressions_ = builderForValue.build(); onChanged(); } else { - impressionsBuilder_.setMessage(builderForValue.build()); + phoneImpressionsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * Count of how often your ad has appeared on a search results page or
-     * website on the Google Network.
+     * Number of offline phone impressions.
      * 
* - * .google.protobuf.Int64Value impressions = 37; + * .google.protobuf.Int64Value phone_impressions = 44; */ - public Builder mergeImpressions(com.google.protobuf.Int64Value value) { - if (impressionsBuilder_ == null) { - if (impressions_ != null) { - impressions_ = - com.google.protobuf.Int64Value.newBuilder(impressions_).mergeFrom(value).buildPartial(); + public Builder mergePhoneImpressions(com.google.protobuf.Int64Value value) { + if (phoneImpressionsBuilder_ == null) { + if (phoneImpressions_ != null) { + phoneImpressions_ = + com.google.protobuf.Int64Value.newBuilder(phoneImpressions_).mergeFrom(value).buildPartial(); } else { - impressions_ = value; + phoneImpressions_ = value; } onChanged(); } else { - impressionsBuilder_.mergeFrom(value); + phoneImpressionsBuilder_.mergeFrom(value); } return this; } /** *
-     * Count of how often your ad has appeared on a search results page or
-     * website on the Google Network.
+     * Number of offline phone impressions.
      * 
* - * .google.protobuf.Int64Value impressions = 37; + * .google.protobuf.Int64Value phone_impressions = 44; */ - public Builder clearImpressions() { - if (impressionsBuilder_ == null) { - impressions_ = null; + public Builder clearPhoneImpressions() { + if (phoneImpressionsBuilder_ == null) { + phoneImpressions_ = null; onChanged(); } else { - impressions_ = null; - impressionsBuilder_ = null; + phoneImpressions_ = null; + phoneImpressionsBuilder_ = null; } return this; } /** *
-     * Count of how often your ad has appeared on a search results page or
-     * website on the Google Network.
+     * Number of offline phone impressions.
      * 
* - * .google.protobuf.Int64Value impressions = 37; + * .google.protobuf.Int64Value phone_impressions = 44; */ - public com.google.protobuf.Int64Value.Builder getImpressionsBuilder() { + public com.google.protobuf.Int64Value.Builder getPhoneImpressionsBuilder() { onChanged(); - return getImpressionsFieldBuilder().getBuilder(); + return getPhoneImpressionsFieldBuilder().getBuilder(); } /** - *
-     * Count of how often your ad has appeared on a search results page or
-     * website on the Google Network.
+     * 
+     * Number of offline phone impressions.
      * 
* - * .google.protobuf.Int64Value impressions = 37; + * .google.protobuf.Int64Value phone_impressions = 44; */ - public com.google.protobuf.Int64ValueOrBuilder getImpressionsOrBuilder() { - if (impressionsBuilder_ != null) { - return impressionsBuilder_.getMessageOrBuilder(); + public com.google.protobuf.Int64ValueOrBuilder getPhoneImpressionsOrBuilder() { + if (phoneImpressionsBuilder_ != null) { + return phoneImpressionsBuilder_.getMessageOrBuilder(); } else { - return impressions_ == null ? - com.google.protobuf.Int64Value.getDefaultInstance() : impressions_; + return phoneImpressions_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : phoneImpressions_; } } /** *
-     * Count of how often your ad has appeared on a search results page or
-     * website on the Google Network.
+     * Number of offline phone impressions.
      * 
* - * .google.protobuf.Int64Value impressions = 37; + * .google.protobuf.Int64Value phone_impressions = 44; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> - getImpressionsFieldBuilder() { - if (impressionsBuilder_ == null) { - impressionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getPhoneImpressionsFieldBuilder() { + if (phoneImpressionsBuilder_ == null) { + phoneImpressionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( - getImpressions(), + getPhoneImpressions(), getParentForChildren(), isClean()); - impressions_ = null; + phoneImpressions_ = null; } - return impressionsBuilder_; + return phoneImpressionsBuilder_; } - private com.google.protobuf.DoubleValue interactionRate_ = null; + private com.google.protobuf.DoubleValue phoneThroughRate_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> interactionRateBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> phoneThroughRateBuilder_; /** *
-     * How often people interact with your ad after it is shown to them.
-     * This is the number of interactions divided by the number of times your ad
-     * is shown.
+     * Number of phone calls received (phone_calls) divided by the number of
+     * times your phone number is shown (phone_impressions).
      * 
* - * .google.protobuf.DoubleValue interaction_rate = 38; + * .google.protobuf.DoubleValue phone_through_rate = 45; */ - public boolean hasInteractionRate() { - return interactionRateBuilder_ != null || interactionRate_ != null; + public boolean hasPhoneThroughRate() { + return phoneThroughRateBuilder_ != null || phoneThroughRate_ != null; } /** *
-     * How often people interact with your ad after it is shown to them.
-     * This is the number of interactions divided by the number of times your ad
-     * is shown.
+     * Number of phone calls received (phone_calls) divided by the number of
+     * times your phone number is shown (phone_impressions).
      * 
* - * .google.protobuf.DoubleValue interaction_rate = 38; + * .google.protobuf.DoubleValue phone_through_rate = 45; */ - public com.google.protobuf.DoubleValue getInteractionRate() { - if (interactionRateBuilder_ == null) { - return interactionRate_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : interactionRate_; + public com.google.protobuf.DoubleValue getPhoneThroughRate() { + if (phoneThroughRateBuilder_ == null) { + return phoneThroughRate_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : phoneThroughRate_; } else { - return interactionRateBuilder_.getMessage(); + return phoneThroughRateBuilder_.getMessage(); } } /** *
-     * How often people interact with your ad after it is shown to them.
-     * This is the number of interactions divided by the number of times your ad
-     * is shown.
+     * Number of phone calls received (phone_calls) divided by the number of
+     * times your phone number is shown (phone_impressions).
      * 
* - * .google.protobuf.DoubleValue interaction_rate = 38; + * .google.protobuf.DoubleValue phone_through_rate = 45; */ - public Builder setInteractionRate(com.google.protobuf.DoubleValue value) { - if (interactionRateBuilder_ == null) { + public Builder setPhoneThroughRate(com.google.protobuf.DoubleValue value) { + if (phoneThroughRateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - interactionRate_ = value; + phoneThroughRate_ = value; onChanged(); } else { - interactionRateBuilder_.setMessage(value); + phoneThroughRateBuilder_.setMessage(value); } return this; } /** *
-     * How often people interact with your ad after it is shown to them.
-     * This is the number of interactions divided by the number of times your ad
-     * is shown.
+     * Number of phone calls received (phone_calls) divided by the number of
+     * times your phone number is shown (phone_impressions).
      * 
* - * .google.protobuf.DoubleValue interaction_rate = 38; + * .google.protobuf.DoubleValue phone_through_rate = 45; */ - public Builder setInteractionRate( + public Builder setPhoneThroughRate( com.google.protobuf.DoubleValue.Builder builderForValue) { - if (interactionRateBuilder_ == null) { - interactionRate_ = builderForValue.build(); + if (phoneThroughRateBuilder_ == null) { + phoneThroughRate_ = builderForValue.build(); onChanged(); } else { - interactionRateBuilder_.setMessage(builderForValue.build()); + phoneThroughRateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * How often people interact with your ad after it is shown to them.
-     * This is the number of interactions divided by the number of times your ad
-     * is shown.
+     * Number of phone calls received (phone_calls) divided by the number of
+     * times your phone number is shown (phone_impressions).
      * 
* - * .google.protobuf.DoubleValue interaction_rate = 38; + * .google.protobuf.DoubleValue phone_through_rate = 45; */ - public Builder mergeInteractionRate(com.google.protobuf.DoubleValue value) { - if (interactionRateBuilder_ == null) { - if (interactionRate_ != null) { - interactionRate_ = - com.google.protobuf.DoubleValue.newBuilder(interactionRate_).mergeFrom(value).buildPartial(); + public Builder mergePhoneThroughRate(com.google.protobuf.DoubleValue value) { + if (phoneThroughRateBuilder_ == null) { + if (phoneThroughRate_ != null) { + phoneThroughRate_ = + com.google.protobuf.DoubleValue.newBuilder(phoneThroughRate_).mergeFrom(value).buildPartial(); } else { - interactionRate_ = value; + phoneThroughRate_ = value; } onChanged(); } else { - interactionRateBuilder_.mergeFrom(value); + phoneThroughRateBuilder_.mergeFrom(value); } return this; } /** *
-     * How often people interact with your ad after it is shown to them.
-     * This is the number of interactions divided by the number of times your ad
-     * is shown.
+     * Number of phone calls received (phone_calls) divided by the number of
+     * times your phone number is shown (phone_impressions).
      * 
* - * .google.protobuf.DoubleValue interaction_rate = 38; + * .google.protobuf.DoubleValue phone_through_rate = 45; */ - public Builder clearInteractionRate() { - if (interactionRateBuilder_ == null) { - interactionRate_ = null; + public Builder clearPhoneThroughRate() { + if (phoneThroughRateBuilder_ == null) { + phoneThroughRate_ = null; onChanged(); } else { - interactionRate_ = null; - interactionRateBuilder_ = null; + phoneThroughRate_ = null; + phoneThroughRateBuilder_ = null; } return this; } /** *
-     * How often people interact with your ad after it is shown to them.
-     * This is the number of interactions divided by the number of times your ad
-     * is shown.
+     * Number of phone calls received (phone_calls) divided by the number of
+     * times your phone number is shown (phone_impressions).
      * 
* - * .google.protobuf.DoubleValue interaction_rate = 38; + * .google.protobuf.DoubleValue phone_through_rate = 45; */ - public com.google.protobuf.DoubleValue.Builder getInteractionRateBuilder() { + public com.google.protobuf.DoubleValue.Builder getPhoneThroughRateBuilder() { onChanged(); - return getInteractionRateFieldBuilder().getBuilder(); + return getPhoneThroughRateFieldBuilder().getBuilder(); } /** *
-     * How often people interact with your ad after it is shown to them.
-     * This is the number of interactions divided by the number of times your ad
-     * is shown.
+     * Number of phone calls received (phone_calls) divided by the number of
+     * times your phone number is shown (phone_impressions).
      * 
* - * .google.protobuf.DoubleValue interaction_rate = 38; + * .google.protobuf.DoubleValue phone_through_rate = 45; */ - public com.google.protobuf.DoubleValueOrBuilder getInteractionRateOrBuilder() { - if (interactionRateBuilder_ != null) { - return interactionRateBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getPhoneThroughRateOrBuilder() { + if (phoneThroughRateBuilder_ != null) { + return phoneThroughRateBuilder_.getMessageOrBuilder(); } else { - return interactionRate_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : interactionRate_; + return phoneThroughRate_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : phoneThroughRate_; } } /** *
-     * How often people interact with your ad after it is shown to them.
-     * This is the number of interactions divided by the number of times your ad
-     * is shown.
+     * Number of phone calls received (phone_calls) divided by the number of
+     * times your phone number is shown (phone_impressions).
      * 
* - * .google.protobuf.DoubleValue interaction_rate = 38; + * .google.protobuf.DoubleValue phone_through_rate = 45; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - getInteractionRateFieldBuilder() { - if (interactionRateBuilder_ == null) { - interactionRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getPhoneThroughRateFieldBuilder() { + if (phoneThroughRateBuilder_ == null) { + phoneThroughRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getInteractionRate(), + getPhoneThroughRate(), getParentForChildren(), isClean()); - interactionRate_ = null; + phoneThroughRate_ = null; } - return interactionRateBuilder_; + return phoneThroughRateBuilder_; } - private com.google.protobuf.Int64Value interactions_ = null; + private com.google.protobuf.DoubleValue relativeCtr_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> interactionsBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> relativeCtrBuilder_; /** *
-     * The number of interactions.
-     * An interaction is the main user action associated with an ad format-clicks
-     * for text and shopping ads, views for video ads, and so on.
+     * Your clickthrough rate (Ctr) divided by the average clickthrough rate of
+     * all advertisers on the websites that show your ads. Measures how your ads
+     * perform on Display Network sites compared to other ads on the same sites.
      * 
* - * .google.protobuf.Int64Value interactions = 39; + * .google.protobuf.DoubleValue relative_ctr = 46; */ - public boolean hasInteractions() { - return interactionsBuilder_ != null || interactions_ != null; + public boolean hasRelativeCtr() { + return relativeCtrBuilder_ != null || relativeCtr_ != null; } /** *
-     * The number of interactions.
-     * An interaction is the main user action associated with an ad format-clicks
-     * for text and shopping ads, views for video ads, and so on.
+     * Your clickthrough rate (Ctr) divided by the average clickthrough rate of
+     * all advertisers on the websites that show your ads. Measures how your ads
+     * perform on Display Network sites compared to other ads on the same sites.
      * 
* - * .google.protobuf.Int64Value interactions = 39; + * .google.protobuf.DoubleValue relative_ctr = 46; */ - public com.google.protobuf.Int64Value getInteractions() { - if (interactionsBuilder_ == null) { - return interactions_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : interactions_; + public com.google.protobuf.DoubleValue getRelativeCtr() { + if (relativeCtrBuilder_ == null) { + return relativeCtr_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : relativeCtr_; } else { - return interactionsBuilder_.getMessage(); + return relativeCtrBuilder_.getMessage(); } } /** *
-     * The number of interactions.
-     * An interaction is the main user action associated with an ad format-clicks
-     * for text and shopping ads, views for video ads, and so on.
+     * Your clickthrough rate (Ctr) divided by the average clickthrough rate of
+     * all advertisers on the websites that show your ads. Measures how your ads
+     * perform on Display Network sites compared to other ads on the same sites.
      * 
* - * .google.protobuf.Int64Value interactions = 39; + * .google.protobuf.DoubleValue relative_ctr = 46; */ - public Builder setInteractions(com.google.protobuf.Int64Value value) { - if (interactionsBuilder_ == null) { + public Builder setRelativeCtr(com.google.protobuf.DoubleValue value) { + if (relativeCtrBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - interactions_ = value; + relativeCtr_ = value; onChanged(); } else { - interactionsBuilder_.setMessage(value); + relativeCtrBuilder_.setMessage(value); } return this; } /** *
-     * The number of interactions.
-     * An interaction is the main user action associated with an ad format-clicks
-     * for text and shopping ads, views for video ads, and so on.
+     * Your clickthrough rate (Ctr) divided by the average clickthrough rate of
+     * all advertisers on the websites that show your ads. Measures how your ads
+     * perform on Display Network sites compared to other ads on the same sites.
      * 
* - * .google.protobuf.Int64Value interactions = 39; + * .google.protobuf.DoubleValue relative_ctr = 46; */ - public Builder setInteractions( - com.google.protobuf.Int64Value.Builder builderForValue) { - if (interactionsBuilder_ == null) { - interactions_ = builderForValue.build(); + public Builder setRelativeCtr( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (relativeCtrBuilder_ == null) { + relativeCtr_ = builderForValue.build(); onChanged(); } else { - interactionsBuilder_.setMessage(builderForValue.build()); + relativeCtrBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The number of interactions.
-     * An interaction is the main user action associated with an ad format-clicks
-     * for text and shopping ads, views for video ads, and so on.
+     * Your clickthrough rate (Ctr) divided by the average clickthrough rate of
+     * all advertisers on the websites that show your ads. Measures how your ads
+     * perform on Display Network sites compared to other ads on the same sites.
      * 
* - * .google.protobuf.Int64Value interactions = 39; + * .google.protobuf.DoubleValue relative_ctr = 46; */ - public Builder mergeInteractions(com.google.protobuf.Int64Value value) { - if (interactionsBuilder_ == null) { - if (interactions_ != null) { - interactions_ = - com.google.protobuf.Int64Value.newBuilder(interactions_).mergeFrom(value).buildPartial(); + public Builder mergeRelativeCtr(com.google.protobuf.DoubleValue value) { + if (relativeCtrBuilder_ == null) { + if (relativeCtr_ != null) { + relativeCtr_ = + com.google.protobuf.DoubleValue.newBuilder(relativeCtr_).mergeFrom(value).buildPartial(); } else { - interactions_ = value; + relativeCtr_ = value; } onChanged(); } else { - interactionsBuilder_.mergeFrom(value); + relativeCtrBuilder_.mergeFrom(value); } return this; } /** *
-     * The number of interactions.
-     * An interaction is the main user action associated with an ad format-clicks
-     * for text and shopping ads, views for video ads, and so on.
+     * Your clickthrough rate (Ctr) divided by the average clickthrough rate of
+     * all advertisers on the websites that show your ads. Measures how your ads
+     * perform on Display Network sites compared to other ads on the same sites.
      * 
* - * .google.protobuf.Int64Value interactions = 39; + * .google.protobuf.DoubleValue relative_ctr = 46; */ - public Builder clearInteractions() { - if (interactionsBuilder_ == null) { - interactions_ = null; + public Builder clearRelativeCtr() { + if (relativeCtrBuilder_ == null) { + relativeCtr_ = null; onChanged(); } else { - interactions_ = null; - interactionsBuilder_ = null; + relativeCtr_ = null; + relativeCtrBuilder_ = null; } return this; } /** *
-     * The number of interactions.
-     * An interaction is the main user action associated with an ad format-clicks
-     * for text and shopping ads, views for video ads, and so on.
+     * Your clickthrough rate (Ctr) divided by the average clickthrough rate of
+     * all advertisers on the websites that show your ads. Measures how your ads
+     * perform on Display Network sites compared to other ads on the same sites.
      * 
* - * .google.protobuf.Int64Value interactions = 39; + * .google.protobuf.DoubleValue relative_ctr = 46; */ - public com.google.protobuf.Int64Value.Builder getInteractionsBuilder() { + public com.google.protobuf.DoubleValue.Builder getRelativeCtrBuilder() { onChanged(); - return getInteractionsFieldBuilder().getBuilder(); + return getRelativeCtrFieldBuilder().getBuilder(); } /** *
-     * The number of interactions.
-     * An interaction is the main user action associated with an ad format-clicks
-     * for text and shopping ads, views for video ads, and so on.
+     * Your clickthrough rate (Ctr) divided by the average clickthrough rate of
+     * all advertisers on the websites that show your ads. Measures how your ads
+     * perform on Display Network sites compared to other ads on the same sites.
      * 
* - * .google.protobuf.Int64Value interactions = 39; + * .google.protobuf.DoubleValue relative_ctr = 46; */ - public com.google.protobuf.Int64ValueOrBuilder getInteractionsOrBuilder() { - if (interactionsBuilder_ != null) { - return interactionsBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getRelativeCtrOrBuilder() { + if (relativeCtrBuilder_ != null) { + return relativeCtrBuilder_.getMessageOrBuilder(); } else { - return interactions_ == null ? - com.google.protobuf.Int64Value.getDefaultInstance() : interactions_; + return relativeCtr_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : relativeCtr_; } } /** *
-     * The number of interactions.
-     * An interaction is the main user action associated with an ad format-clicks
-     * for text and shopping ads, views for video ads, and so on.
+     * Your clickthrough rate (Ctr) divided by the average clickthrough rate of
+     * all advertisers on the websites that show your ads. Measures how your ads
+     * perform on Display Network sites compared to other ads on the same sites.
      * 
* - * .google.protobuf.Int64Value interactions = 39; + * .google.protobuf.DoubleValue relative_ctr = 46; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> - getInteractionsFieldBuilder() { - if (interactionsBuilder_ == null) { - interactionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( - getInteractions(), + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> + getRelativeCtrFieldBuilder() { + if (relativeCtrBuilder_ == null) { + relativeCtrBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( + getRelativeCtr(), getParentForChildren(), isClean()); - interactions_ = null; + relativeCtr_ = null; } - return interactionsBuilder_; + return relativeCtrBuilder_; } - private com.google.protobuf.DoubleValue invalidClickRate_ = null; + private com.google.protobuf.DoubleValue searchAbsoluteTopImpressionShare_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> invalidClickRateBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> searchAbsoluteTopImpressionShareBuilder_; /** *
-     * The percentage of clicks filtered out of your total number of clicks
-     * (filtered + non-filtered clicks) during the reporting period.
+     * The percentage of the customer's Shopping or Search ad impressions that are
+     * shown in the most prominent Shopping position. See
+     * <a href="https://support.google.com/adwords/answer/7501826">this Merchant
+     * Center article</a> for details. Any value below 0.1 is reported as 0.0999.
      * 
* - * .google.protobuf.DoubleValue invalid_click_rate = 40; + * .google.protobuf.DoubleValue search_absolute_top_impression_share = 78; */ - public boolean hasInvalidClickRate() { - return invalidClickRateBuilder_ != null || invalidClickRate_ != null; + public boolean hasSearchAbsoluteTopImpressionShare() { + return searchAbsoluteTopImpressionShareBuilder_ != null || searchAbsoluteTopImpressionShare_ != null; } /** *
-     * The percentage of clicks filtered out of your total number of clicks
-     * (filtered + non-filtered clicks) during the reporting period.
+     * The percentage of the customer's Shopping or Search ad impressions that are
+     * shown in the most prominent Shopping position. See
+     * <a href="https://support.google.com/adwords/answer/7501826">this Merchant
+     * Center article</a> for details. Any value below 0.1 is reported as 0.0999.
      * 
* - * .google.protobuf.DoubleValue invalid_click_rate = 40; + * .google.protobuf.DoubleValue search_absolute_top_impression_share = 78; */ - public com.google.protobuf.DoubleValue getInvalidClickRate() { - if (invalidClickRateBuilder_ == null) { - return invalidClickRate_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : invalidClickRate_; + public com.google.protobuf.DoubleValue getSearchAbsoluteTopImpressionShare() { + if (searchAbsoluteTopImpressionShareBuilder_ == null) { + return searchAbsoluteTopImpressionShare_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : searchAbsoluteTopImpressionShare_; } else { - return invalidClickRateBuilder_.getMessage(); + return searchAbsoluteTopImpressionShareBuilder_.getMessage(); } } /** *
-     * The percentage of clicks filtered out of your total number of clicks
-     * (filtered + non-filtered clicks) during the reporting period.
+     * The percentage of the customer's Shopping or Search ad impressions that are
+     * shown in the most prominent Shopping position. See
+     * <a href="https://support.google.com/adwords/answer/7501826">this Merchant
+     * Center article</a> for details. Any value below 0.1 is reported as 0.0999.
      * 
* - * .google.protobuf.DoubleValue invalid_click_rate = 40; + * .google.protobuf.DoubleValue search_absolute_top_impression_share = 78; */ - public Builder setInvalidClickRate(com.google.protobuf.DoubleValue value) { - if (invalidClickRateBuilder_ == null) { + public Builder setSearchAbsoluteTopImpressionShare(com.google.protobuf.DoubleValue value) { + if (searchAbsoluteTopImpressionShareBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - invalidClickRate_ = value; + searchAbsoluteTopImpressionShare_ = value; onChanged(); } else { - invalidClickRateBuilder_.setMessage(value); + searchAbsoluteTopImpressionShareBuilder_.setMessage(value); } return this; } /** *
-     * The percentage of clicks filtered out of your total number of clicks
-     * (filtered + non-filtered clicks) during the reporting period.
+     * The percentage of the customer's Shopping or Search ad impressions that are
+     * shown in the most prominent Shopping position. See
+     * <a href="https://support.google.com/adwords/answer/7501826">this Merchant
+     * Center article</a> for details. Any value below 0.1 is reported as 0.0999.
      * 
* - * .google.protobuf.DoubleValue invalid_click_rate = 40; + * .google.protobuf.DoubleValue search_absolute_top_impression_share = 78; */ - public Builder setInvalidClickRate( + public Builder setSearchAbsoluteTopImpressionShare( com.google.protobuf.DoubleValue.Builder builderForValue) { - if (invalidClickRateBuilder_ == null) { - invalidClickRate_ = builderForValue.build(); + if (searchAbsoluteTopImpressionShareBuilder_ == null) { + searchAbsoluteTopImpressionShare_ = builderForValue.build(); onChanged(); } else { - invalidClickRateBuilder_.setMessage(builderForValue.build()); + searchAbsoluteTopImpressionShareBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The percentage of clicks filtered out of your total number of clicks
-     * (filtered + non-filtered clicks) during the reporting period.
+     * The percentage of the customer's Shopping or Search ad impressions that are
+     * shown in the most prominent Shopping position. See
+     * <a href="https://support.google.com/adwords/answer/7501826">this Merchant
+     * Center article</a> for details. Any value below 0.1 is reported as 0.0999.
      * 
* - * .google.protobuf.DoubleValue invalid_click_rate = 40; + * .google.protobuf.DoubleValue search_absolute_top_impression_share = 78; */ - public Builder mergeInvalidClickRate(com.google.protobuf.DoubleValue value) { - if (invalidClickRateBuilder_ == null) { - if (invalidClickRate_ != null) { - invalidClickRate_ = - com.google.protobuf.DoubleValue.newBuilder(invalidClickRate_).mergeFrom(value).buildPartial(); + public Builder mergeSearchAbsoluteTopImpressionShare(com.google.protobuf.DoubleValue value) { + if (searchAbsoluteTopImpressionShareBuilder_ == null) { + if (searchAbsoluteTopImpressionShare_ != null) { + searchAbsoluteTopImpressionShare_ = + com.google.protobuf.DoubleValue.newBuilder(searchAbsoluteTopImpressionShare_).mergeFrom(value).buildPartial(); } else { - invalidClickRate_ = value; + searchAbsoluteTopImpressionShare_ = value; } onChanged(); } else { - invalidClickRateBuilder_.mergeFrom(value); + searchAbsoluteTopImpressionShareBuilder_.mergeFrom(value); } return this; } /** *
-     * The percentage of clicks filtered out of your total number of clicks
-     * (filtered + non-filtered clicks) during the reporting period.
+     * The percentage of the customer's Shopping or Search ad impressions that are
+     * shown in the most prominent Shopping position. See
+     * <a href="https://support.google.com/adwords/answer/7501826">this Merchant
+     * Center article</a> for details. Any value below 0.1 is reported as 0.0999.
      * 
* - * .google.protobuf.DoubleValue invalid_click_rate = 40; + * .google.protobuf.DoubleValue search_absolute_top_impression_share = 78; */ - public Builder clearInvalidClickRate() { - if (invalidClickRateBuilder_ == null) { - invalidClickRate_ = null; + public Builder clearSearchAbsoluteTopImpressionShare() { + if (searchAbsoluteTopImpressionShareBuilder_ == null) { + searchAbsoluteTopImpressionShare_ = null; onChanged(); } else { - invalidClickRate_ = null; - invalidClickRateBuilder_ = null; + searchAbsoluteTopImpressionShare_ = null; + searchAbsoluteTopImpressionShareBuilder_ = null; } return this; } /** *
-     * The percentage of clicks filtered out of your total number of clicks
-     * (filtered + non-filtered clicks) during the reporting period.
+     * The percentage of the customer's Shopping or Search ad impressions that are
+     * shown in the most prominent Shopping position. See
+     * <a href="https://support.google.com/adwords/answer/7501826">this Merchant
+     * Center article</a> for details. Any value below 0.1 is reported as 0.0999.
      * 
* - * .google.protobuf.DoubleValue invalid_click_rate = 40; + * .google.protobuf.DoubleValue search_absolute_top_impression_share = 78; */ - public com.google.protobuf.DoubleValue.Builder getInvalidClickRateBuilder() { + public com.google.protobuf.DoubleValue.Builder getSearchAbsoluteTopImpressionShareBuilder() { onChanged(); - return getInvalidClickRateFieldBuilder().getBuilder(); + return getSearchAbsoluteTopImpressionShareFieldBuilder().getBuilder(); } /** *
-     * The percentage of clicks filtered out of your total number of clicks
-     * (filtered + non-filtered clicks) during the reporting period.
+     * The percentage of the customer's Shopping or Search ad impressions that are
+     * shown in the most prominent Shopping position. See
+     * <a href="https://support.google.com/adwords/answer/7501826">this Merchant
+     * Center article</a> for details. Any value below 0.1 is reported as 0.0999.
      * 
* - * .google.protobuf.DoubleValue invalid_click_rate = 40; + * .google.protobuf.DoubleValue search_absolute_top_impression_share = 78; */ - public com.google.protobuf.DoubleValueOrBuilder getInvalidClickRateOrBuilder() { - if (invalidClickRateBuilder_ != null) { - return invalidClickRateBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getSearchAbsoluteTopImpressionShareOrBuilder() { + if (searchAbsoluteTopImpressionShareBuilder_ != null) { + return searchAbsoluteTopImpressionShareBuilder_.getMessageOrBuilder(); } else { - return invalidClickRate_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : invalidClickRate_; + return searchAbsoluteTopImpressionShare_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : searchAbsoluteTopImpressionShare_; } } /** *
-     * The percentage of clicks filtered out of your total number of clicks
-     * (filtered + non-filtered clicks) during the reporting period.
+     * The percentage of the customer's Shopping or Search ad impressions that are
+     * shown in the most prominent Shopping position. See
+     * <a href="https://support.google.com/adwords/answer/7501826">this Merchant
+     * Center article</a> for details. Any value below 0.1 is reported as 0.0999.
      * 
* - * .google.protobuf.DoubleValue invalid_click_rate = 40; + * .google.protobuf.DoubleValue search_absolute_top_impression_share = 78; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - getInvalidClickRateFieldBuilder() { - if (invalidClickRateBuilder_ == null) { - invalidClickRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getSearchAbsoluteTopImpressionShareFieldBuilder() { + if (searchAbsoluteTopImpressionShareBuilder_ == null) { + searchAbsoluteTopImpressionShareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getInvalidClickRate(), + getSearchAbsoluteTopImpressionShare(), getParentForChildren(), isClean()); - invalidClickRate_ = null; + searchAbsoluteTopImpressionShare_ = null; } - return invalidClickRateBuilder_; + return searchAbsoluteTopImpressionShareBuilder_; } - private com.google.protobuf.Int64Value invalidClicks_ = null; + private com.google.protobuf.DoubleValue searchBudgetLostAbsoluteTopImpressionShare_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> invalidClicksBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> searchBudgetLostAbsoluteTopImpressionShareBuilder_; /** *
-     * Number of clicks Google considers illegitimate and doesn't charge you for.
+     * The number estimating how often your ad wasn't the very first ad above the
+     * organic search results due to a low budget. Note: Search
+     * budget lost absolute top impression share is reported in the range of 0 to
+     * 0.9. Any value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.Int64Value invalid_clicks = 41; + * .google.protobuf.DoubleValue search_budget_lost_absolute_top_impression_share = 88; */ - public boolean hasInvalidClicks() { - return invalidClicksBuilder_ != null || invalidClicks_ != null; + public boolean hasSearchBudgetLostAbsoluteTopImpressionShare() { + return searchBudgetLostAbsoluteTopImpressionShareBuilder_ != null || searchBudgetLostAbsoluteTopImpressionShare_ != null; } /** *
-     * Number of clicks Google considers illegitimate and doesn't charge you for.
+     * The number estimating how often your ad wasn't the very first ad above the
+     * organic search results due to a low budget. Note: Search
+     * budget lost absolute top impression share is reported in the range of 0 to
+     * 0.9. Any value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.Int64Value invalid_clicks = 41; + * .google.protobuf.DoubleValue search_budget_lost_absolute_top_impression_share = 88; */ - public com.google.protobuf.Int64Value getInvalidClicks() { - if (invalidClicksBuilder_ == null) { - return invalidClicks_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : invalidClicks_; + public com.google.protobuf.DoubleValue getSearchBudgetLostAbsoluteTopImpressionShare() { + if (searchBudgetLostAbsoluteTopImpressionShareBuilder_ == null) { + return searchBudgetLostAbsoluteTopImpressionShare_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : searchBudgetLostAbsoluteTopImpressionShare_; } else { - return invalidClicksBuilder_.getMessage(); + return searchBudgetLostAbsoluteTopImpressionShareBuilder_.getMessage(); } } /** *
-     * Number of clicks Google considers illegitimate and doesn't charge you for.
+     * The number estimating how often your ad wasn't the very first ad above the
+     * organic search results due to a low budget. Note: Search
+     * budget lost absolute top impression share is reported in the range of 0 to
+     * 0.9. Any value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.Int64Value invalid_clicks = 41; + * .google.protobuf.DoubleValue search_budget_lost_absolute_top_impression_share = 88; */ - public Builder setInvalidClicks(com.google.protobuf.Int64Value value) { - if (invalidClicksBuilder_ == null) { + public Builder setSearchBudgetLostAbsoluteTopImpressionShare(com.google.protobuf.DoubleValue value) { + if (searchBudgetLostAbsoluteTopImpressionShareBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - invalidClicks_ = value; + searchBudgetLostAbsoluteTopImpressionShare_ = value; onChanged(); } else { - invalidClicksBuilder_.setMessage(value); + searchBudgetLostAbsoluteTopImpressionShareBuilder_.setMessage(value); } return this; } /** *
-     * Number of clicks Google considers illegitimate and doesn't charge you for.
+     * The number estimating how often your ad wasn't the very first ad above the
+     * organic search results due to a low budget. Note: Search
+     * budget lost absolute top impression share is reported in the range of 0 to
+     * 0.9. Any value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.Int64Value invalid_clicks = 41; + * .google.protobuf.DoubleValue search_budget_lost_absolute_top_impression_share = 88; */ - public Builder setInvalidClicks( - com.google.protobuf.Int64Value.Builder builderForValue) { - if (invalidClicksBuilder_ == null) { - invalidClicks_ = builderForValue.build(); + public Builder setSearchBudgetLostAbsoluteTopImpressionShare( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (searchBudgetLostAbsoluteTopImpressionShareBuilder_ == null) { + searchBudgetLostAbsoluteTopImpressionShare_ = builderForValue.build(); onChanged(); } else { - invalidClicksBuilder_.setMessage(builderForValue.build()); + searchBudgetLostAbsoluteTopImpressionShareBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * Number of clicks Google considers illegitimate and doesn't charge you for.
-     * 
- * - * .google.protobuf.Int64Value invalid_clicks = 41; - */ - public Builder mergeInvalidClicks(com.google.protobuf.Int64Value value) { - if (invalidClicksBuilder_ == null) { - if (invalidClicks_ != null) { - invalidClicks_ = - com.google.protobuf.Int64Value.newBuilder(invalidClicks_).mergeFrom(value).buildPartial(); + * The number estimating how often your ad wasn't the very first ad above the + * organic search results due to a low budget. Note: Search + * budget lost absolute top impression share is reported in the range of 0 to + * 0.9. Any value above 0.9 is reported as 0.9001. + *
+ * + * .google.protobuf.DoubleValue search_budget_lost_absolute_top_impression_share = 88; + */ + public Builder mergeSearchBudgetLostAbsoluteTopImpressionShare(com.google.protobuf.DoubleValue value) { + if (searchBudgetLostAbsoluteTopImpressionShareBuilder_ == null) { + if (searchBudgetLostAbsoluteTopImpressionShare_ != null) { + searchBudgetLostAbsoluteTopImpressionShare_ = + com.google.protobuf.DoubleValue.newBuilder(searchBudgetLostAbsoluteTopImpressionShare_).mergeFrom(value).buildPartial(); } else { - invalidClicks_ = value; + searchBudgetLostAbsoluteTopImpressionShare_ = value; } onChanged(); } else { - invalidClicksBuilder_.mergeFrom(value); + searchBudgetLostAbsoluteTopImpressionShareBuilder_.mergeFrom(value); } return this; } /** *
-     * Number of clicks Google considers illegitimate and doesn't charge you for.
+     * The number estimating how often your ad wasn't the very first ad above the
+     * organic search results due to a low budget. Note: Search
+     * budget lost absolute top impression share is reported in the range of 0 to
+     * 0.9. Any value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.Int64Value invalid_clicks = 41; + * .google.protobuf.DoubleValue search_budget_lost_absolute_top_impression_share = 88; */ - public Builder clearInvalidClicks() { - if (invalidClicksBuilder_ == null) { - invalidClicks_ = null; + public Builder clearSearchBudgetLostAbsoluteTopImpressionShare() { + if (searchBudgetLostAbsoluteTopImpressionShareBuilder_ == null) { + searchBudgetLostAbsoluteTopImpressionShare_ = null; onChanged(); } else { - invalidClicks_ = null; - invalidClicksBuilder_ = null; + searchBudgetLostAbsoluteTopImpressionShare_ = null; + searchBudgetLostAbsoluteTopImpressionShareBuilder_ = null; } return this; } /** *
-     * Number of clicks Google considers illegitimate and doesn't charge you for.
+     * The number estimating how often your ad wasn't the very first ad above the
+     * organic search results due to a low budget. Note: Search
+     * budget lost absolute top impression share is reported in the range of 0 to
+     * 0.9. Any value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.Int64Value invalid_clicks = 41; + * .google.protobuf.DoubleValue search_budget_lost_absolute_top_impression_share = 88; */ - public com.google.protobuf.Int64Value.Builder getInvalidClicksBuilder() { + public com.google.protobuf.DoubleValue.Builder getSearchBudgetLostAbsoluteTopImpressionShareBuilder() { onChanged(); - return getInvalidClicksFieldBuilder().getBuilder(); + return getSearchBudgetLostAbsoluteTopImpressionShareFieldBuilder().getBuilder(); } /** *
-     * Number of clicks Google considers illegitimate and doesn't charge you for.
+     * The number estimating how often your ad wasn't the very first ad above the
+     * organic search results due to a low budget. Note: Search
+     * budget lost absolute top impression share is reported in the range of 0 to
+     * 0.9. Any value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.Int64Value invalid_clicks = 41; + * .google.protobuf.DoubleValue search_budget_lost_absolute_top_impression_share = 88; */ - public com.google.protobuf.Int64ValueOrBuilder getInvalidClicksOrBuilder() { - if (invalidClicksBuilder_ != null) { - return invalidClicksBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getSearchBudgetLostAbsoluteTopImpressionShareOrBuilder() { + if (searchBudgetLostAbsoluteTopImpressionShareBuilder_ != null) { + return searchBudgetLostAbsoluteTopImpressionShareBuilder_.getMessageOrBuilder(); } else { - return invalidClicks_ == null ? - com.google.protobuf.Int64Value.getDefaultInstance() : invalidClicks_; + return searchBudgetLostAbsoluteTopImpressionShare_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : searchBudgetLostAbsoluteTopImpressionShare_; } } /** *
-     * Number of clicks Google considers illegitimate and doesn't charge you for.
+     * The number estimating how often your ad wasn't the very first ad above the
+     * organic search results due to a low budget. Note: Search
+     * budget lost absolute top impression share is reported in the range of 0 to
+     * 0.9. Any value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.Int64Value invalid_clicks = 41; + * .google.protobuf.DoubleValue search_budget_lost_absolute_top_impression_share = 88; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> - getInvalidClicksFieldBuilder() { - if (invalidClicksBuilder_ == null) { - invalidClicksBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( - getInvalidClicks(), + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> + getSearchBudgetLostAbsoluteTopImpressionShareFieldBuilder() { + if (searchBudgetLostAbsoluteTopImpressionShareBuilder_ == null) { + searchBudgetLostAbsoluteTopImpressionShareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( + getSearchBudgetLostAbsoluteTopImpressionShare(), getParentForChildren(), isClean()); - invalidClicks_ = null; + searchBudgetLostAbsoluteTopImpressionShare_ = null; } - return invalidClicksBuilder_; + return searchBudgetLostAbsoluteTopImpressionShareBuilder_; } - private com.google.protobuf.DoubleValue percentNewVisitors_ = null; + private com.google.protobuf.DoubleValue searchBudgetLostImpressionShare_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> percentNewVisitorsBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> searchBudgetLostImpressionShareBuilder_; /** *
-     * Percentage of first-time sessions (from people who had never visited your
-     * site before). Imported from Google Analytics.
+     * The estimated percent of times that your ad was eligible to show on the
+     * Search Network but didn't because your budget was too low. Note: Search
+     * budget lost impression share is reported in the range of 0 to 0.9. Any
+     * value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.DoubleValue percent_new_visitors = 42; + * .google.protobuf.DoubleValue search_budget_lost_impression_share = 47; */ - public boolean hasPercentNewVisitors() { - return percentNewVisitorsBuilder_ != null || percentNewVisitors_ != null; + public boolean hasSearchBudgetLostImpressionShare() { + return searchBudgetLostImpressionShareBuilder_ != null || searchBudgetLostImpressionShare_ != null; } /** *
-     * Percentage of first-time sessions (from people who had never visited your
-     * site before). Imported from Google Analytics.
+     * The estimated percent of times that your ad was eligible to show on the
+     * Search Network but didn't because your budget was too low. Note: Search
+     * budget lost impression share is reported in the range of 0 to 0.9. Any
+     * value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.DoubleValue percent_new_visitors = 42; + * .google.protobuf.DoubleValue search_budget_lost_impression_share = 47; */ - public com.google.protobuf.DoubleValue getPercentNewVisitors() { - if (percentNewVisitorsBuilder_ == null) { - return percentNewVisitors_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : percentNewVisitors_; + public com.google.protobuf.DoubleValue getSearchBudgetLostImpressionShare() { + if (searchBudgetLostImpressionShareBuilder_ == null) { + return searchBudgetLostImpressionShare_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : searchBudgetLostImpressionShare_; } else { - return percentNewVisitorsBuilder_.getMessage(); + return searchBudgetLostImpressionShareBuilder_.getMessage(); } } /** *
-     * Percentage of first-time sessions (from people who had never visited your
-     * site before). Imported from Google Analytics.
+     * The estimated percent of times that your ad was eligible to show on the
+     * Search Network but didn't because your budget was too low. Note: Search
+     * budget lost impression share is reported in the range of 0 to 0.9. Any
+     * value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.DoubleValue percent_new_visitors = 42; + * .google.protobuf.DoubleValue search_budget_lost_impression_share = 47; */ - public Builder setPercentNewVisitors(com.google.protobuf.DoubleValue value) { - if (percentNewVisitorsBuilder_ == null) { + public Builder setSearchBudgetLostImpressionShare(com.google.protobuf.DoubleValue value) { + if (searchBudgetLostImpressionShareBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - percentNewVisitors_ = value; + searchBudgetLostImpressionShare_ = value; onChanged(); } else { - percentNewVisitorsBuilder_.setMessage(value); + searchBudgetLostImpressionShareBuilder_.setMessage(value); } return this; } /** *
-     * Percentage of first-time sessions (from people who had never visited your
-     * site before). Imported from Google Analytics.
+     * The estimated percent of times that your ad was eligible to show on the
+     * Search Network but didn't because your budget was too low. Note: Search
+     * budget lost impression share is reported in the range of 0 to 0.9. Any
+     * value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.DoubleValue percent_new_visitors = 42; + * .google.protobuf.DoubleValue search_budget_lost_impression_share = 47; */ - public Builder setPercentNewVisitors( + public Builder setSearchBudgetLostImpressionShare( com.google.protobuf.DoubleValue.Builder builderForValue) { - if (percentNewVisitorsBuilder_ == null) { - percentNewVisitors_ = builderForValue.build(); + if (searchBudgetLostImpressionShareBuilder_ == null) { + searchBudgetLostImpressionShare_ = builderForValue.build(); onChanged(); } else { - percentNewVisitorsBuilder_.setMessage(builderForValue.build()); + searchBudgetLostImpressionShareBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * Percentage of first-time sessions (from people who had never visited your
-     * site before). Imported from Google Analytics.
+     * The estimated percent of times that your ad was eligible to show on the
+     * Search Network but didn't because your budget was too low. Note: Search
+     * budget lost impression share is reported in the range of 0 to 0.9. Any
+     * value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.DoubleValue percent_new_visitors = 42; + * .google.protobuf.DoubleValue search_budget_lost_impression_share = 47; */ - public Builder mergePercentNewVisitors(com.google.protobuf.DoubleValue value) { - if (percentNewVisitorsBuilder_ == null) { - if (percentNewVisitors_ != null) { - percentNewVisitors_ = - com.google.protobuf.DoubleValue.newBuilder(percentNewVisitors_).mergeFrom(value).buildPartial(); + public Builder mergeSearchBudgetLostImpressionShare(com.google.protobuf.DoubleValue value) { + if (searchBudgetLostImpressionShareBuilder_ == null) { + if (searchBudgetLostImpressionShare_ != null) { + searchBudgetLostImpressionShare_ = + com.google.protobuf.DoubleValue.newBuilder(searchBudgetLostImpressionShare_).mergeFrom(value).buildPartial(); } else { - percentNewVisitors_ = value; + searchBudgetLostImpressionShare_ = value; } onChanged(); } else { - percentNewVisitorsBuilder_.mergeFrom(value); + searchBudgetLostImpressionShareBuilder_.mergeFrom(value); } return this; } /** *
-     * Percentage of first-time sessions (from people who had never visited your
-     * site before). Imported from Google Analytics.
+     * The estimated percent of times that your ad was eligible to show on the
+     * Search Network but didn't because your budget was too low. Note: Search
+     * budget lost impression share is reported in the range of 0 to 0.9. Any
+     * value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.DoubleValue percent_new_visitors = 42; + * .google.protobuf.DoubleValue search_budget_lost_impression_share = 47; */ - public Builder clearPercentNewVisitors() { - if (percentNewVisitorsBuilder_ == null) { - percentNewVisitors_ = null; + public Builder clearSearchBudgetLostImpressionShare() { + if (searchBudgetLostImpressionShareBuilder_ == null) { + searchBudgetLostImpressionShare_ = null; onChanged(); } else { - percentNewVisitors_ = null; - percentNewVisitorsBuilder_ = null; + searchBudgetLostImpressionShare_ = null; + searchBudgetLostImpressionShareBuilder_ = null; } return this; } /** *
-     * Percentage of first-time sessions (from people who had never visited your
-     * site before). Imported from Google Analytics.
+     * The estimated percent of times that your ad was eligible to show on the
+     * Search Network but didn't because your budget was too low. Note: Search
+     * budget lost impression share is reported in the range of 0 to 0.9. Any
+     * value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.DoubleValue percent_new_visitors = 42; + * .google.protobuf.DoubleValue search_budget_lost_impression_share = 47; */ - public com.google.protobuf.DoubleValue.Builder getPercentNewVisitorsBuilder() { + public com.google.protobuf.DoubleValue.Builder getSearchBudgetLostImpressionShareBuilder() { onChanged(); - return getPercentNewVisitorsFieldBuilder().getBuilder(); + return getSearchBudgetLostImpressionShareFieldBuilder().getBuilder(); } /** *
-     * Percentage of first-time sessions (from people who had never visited your
-     * site before). Imported from Google Analytics.
+     * The estimated percent of times that your ad was eligible to show on the
+     * Search Network but didn't because your budget was too low. Note: Search
+     * budget lost impression share is reported in the range of 0 to 0.9. Any
+     * value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.DoubleValue percent_new_visitors = 42; + * .google.protobuf.DoubleValue search_budget_lost_impression_share = 47; */ - public com.google.protobuf.DoubleValueOrBuilder getPercentNewVisitorsOrBuilder() { - if (percentNewVisitorsBuilder_ != null) { - return percentNewVisitorsBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getSearchBudgetLostImpressionShareOrBuilder() { + if (searchBudgetLostImpressionShareBuilder_ != null) { + return searchBudgetLostImpressionShareBuilder_.getMessageOrBuilder(); } else { - return percentNewVisitors_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : percentNewVisitors_; + return searchBudgetLostImpressionShare_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : searchBudgetLostImpressionShare_; } } /** *
-     * Percentage of first-time sessions (from people who had never visited your
-     * site before). Imported from Google Analytics.
+     * The estimated percent of times that your ad was eligible to show on the
+     * Search Network but didn't because your budget was too low. Note: Search
+     * budget lost impression share is reported in the range of 0 to 0.9. Any
+     * value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.DoubleValue percent_new_visitors = 42; + * .google.protobuf.DoubleValue search_budget_lost_impression_share = 47; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - getPercentNewVisitorsFieldBuilder() { - if (percentNewVisitorsBuilder_ == null) { - percentNewVisitorsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getSearchBudgetLostImpressionShareFieldBuilder() { + if (searchBudgetLostImpressionShareBuilder_ == null) { + searchBudgetLostImpressionShareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getPercentNewVisitors(), + getSearchBudgetLostImpressionShare(), getParentForChildren(), isClean()); - percentNewVisitors_ = null; + searchBudgetLostImpressionShare_ = null; } - return percentNewVisitorsBuilder_; + return searchBudgetLostImpressionShareBuilder_; } - private com.google.protobuf.Int64Value phoneCalls_ = null; + private com.google.protobuf.DoubleValue searchBudgetLostTopImpressionShare_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> phoneCallsBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> searchBudgetLostTopImpressionShareBuilder_; /** *
-     * Number of offline phone calls.
+     * The number estimating how often your ad didn't show anywhere above the
+     * organic search results due to a low budget. Note: Search
+     * budget lost top impression share is reported in the range of 0 to 0.9. Any
+     * value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.Int64Value phone_calls = 43; + * .google.protobuf.DoubleValue search_budget_lost_top_impression_share = 89; */ - public boolean hasPhoneCalls() { - return phoneCallsBuilder_ != null || phoneCalls_ != null; + public boolean hasSearchBudgetLostTopImpressionShare() { + return searchBudgetLostTopImpressionShareBuilder_ != null || searchBudgetLostTopImpressionShare_ != null; } /** *
-     * Number of offline phone calls.
+     * The number estimating how often your ad didn't show anywhere above the
+     * organic search results due to a low budget. Note: Search
+     * budget lost top impression share is reported in the range of 0 to 0.9. Any
+     * value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.Int64Value phone_calls = 43; + * .google.protobuf.DoubleValue search_budget_lost_top_impression_share = 89; */ - public com.google.protobuf.Int64Value getPhoneCalls() { - if (phoneCallsBuilder_ == null) { - return phoneCalls_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : phoneCalls_; + public com.google.protobuf.DoubleValue getSearchBudgetLostTopImpressionShare() { + if (searchBudgetLostTopImpressionShareBuilder_ == null) { + return searchBudgetLostTopImpressionShare_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : searchBudgetLostTopImpressionShare_; } else { - return phoneCallsBuilder_.getMessage(); + return searchBudgetLostTopImpressionShareBuilder_.getMessage(); } } /** *
-     * Number of offline phone calls.
+     * The number estimating how often your ad didn't show anywhere above the
+     * organic search results due to a low budget. Note: Search
+     * budget lost top impression share is reported in the range of 0 to 0.9. Any
+     * value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.Int64Value phone_calls = 43; + * .google.protobuf.DoubleValue search_budget_lost_top_impression_share = 89; */ - public Builder setPhoneCalls(com.google.protobuf.Int64Value value) { - if (phoneCallsBuilder_ == null) { + public Builder setSearchBudgetLostTopImpressionShare(com.google.protobuf.DoubleValue value) { + if (searchBudgetLostTopImpressionShareBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - phoneCalls_ = value; + searchBudgetLostTopImpressionShare_ = value; onChanged(); } else { - phoneCallsBuilder_.setMessage(value); + searchBudgetLostTopImpressionShareBuilder_.setMessage(value); } return this; } /** *
-     * Number of offline phone calls.
+     * The number estimating how often your ad didn't show anywhere above the
+     * organic search results due to a low budget. Note: Search
+     * budget lost top impression share is reported in the range of 0 to 0.9. Any
+     * value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.Int64Value phone_calls = 43; + * .google.protobuf.DoubleValue search_budget_lost_top_impression_share = 89; */ - public Builder setPhoneCalls( - com.google.protobuf.Int64Value.Builder builderForValue) { - if (phoneCallsBuilder_ == null) { - phoneCalls_ = builderForValue.build(); + public Builder setSearchBudgetLostTopImpressionShare( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (searchBudgetLostTopImpressionShareBuilder_ == null) { + searchBudgetLostTopImpressionShare_ = builderForValue.build(); onChanged(); } else { - phoneCallsBuilder_.setMessage(builderForValue.build()); + searchBudgetLostTopImpressionShareBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * Number of offline phone calls.
+     * The number estimating how often your ad didn't show anywhere above the
+     * organic search results due to a low budget. Note: Search
+     * budget lost top impression share is reported in the range of 0 to 0.9. Any
+     * value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.Int64Value phone_calls = 43; + * .google.protobuf.DoubleValue search_budget_lost_top_impression_share = 89; */ - public Builder mergePhoneCalls(com.google.protobuf.Int64Value value) { - if (phoneCallsBuilder_ == null) { - if (phoneCalls_ != null) { - phoneCalls_ = - com.google.protobuf.Int64Value.newBuilder(phoneCalls_).mergeFrom(value).buildPartial(); + public Builder mergeSearchBudgetLostTopImpressionShare(com.google.protobuf.DoubleValue value) { + if (searchBudgetLostTopImpressionShareBuilder_ == null) { + if (searchBudgetLostTopImpressionShare_ != null) { + searchBudgetLostTopImpressionShare_ = + com.google.protobuf.DoubleValue.newBuilder(searchBudgetLostTopImpressionShare_).mergeFrom(value).buildPartial(); } else { - phoneCalls_ = value; + searchBudgetLostTopImpressionShare_ = value; } onChanged(); } else { - phoneCallsBuilder_.mergeFrom(value); + searchBudgetLostTopImpressionShareBuilder_.mergeFrom(value); } return this; } /** *
-     * Number of offline phone calls.
+     * The number estimating how often your ad didn't show anywhere above the
+     * organic search results due to a low budget. Note: Search
+     * budget lost top impression share is reported in the range of 0 to 0.9. Any
+     * value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.Int64Value phone_calls = 43; + * .google.protobuf.DoubleValue search_budget_lost_top_impression_share = 89; */ - public Builder clearPhoneCalls() { - if (phoneCallsBuilder_ == null) { - phoneCalls_ = null; + public Builder clearSearchBudgetLostTopImpressionShare() { + if (searchBudgetLostTopImpressionShareBuilder_ == null) { + searchBudgetLostTopImpressionShare_ = null; onChanged(); } else { - phoneCalls_ = null; - phoneCallsBuilder_ = null; + searchBudgetLostTopImpressionShare_ = null; + searchBudgetLostTopImpressionShareBuilder_ = null; } return this; } /** *
-     * Number of offline phone calls.
+     * The number estimating how often your ad didn't show anywhere above the
+     * organic search results due to a low budget. Note: Search
+     * budget lost top impression share is reported in the range of 0 to 0.9. Any
+     * value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.Int64Value phone_calls = 43; + * .google.protobuf.DoubleValue search_budget_lost_top_impression_share = 89; */ - public com.google.protobuf.Int64Value.Builder getPhoneCallsBuilder() { + public com.google.protobuf.DoubleValue.Builder getSearchBudgetLostTopImpressionShareBuilder() { onChanged(); - return getPhoneCallsFieldBuilder().getBuilder(); + return getSearchBudgetLostTopImpressionShareFieldBuilder().getBuilder(); } /** *
-     * Number of offline phone calls.
+     * The number estimating how often your ad didn't show anywhere above the
+     * organic search results due to a low budget. Note: Search
+     * budget lost top impression share is reported in the range of 0 to 0.9. Any
+     * value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.Int64Value phone_calls = 43; + * .google.protobuf.DoubleValue search_budget_lost_top_impression_share = 89; */ - public com.google.protobuf.Int64ValueOrBuilder getPhoneCallsOrBuilder() { - if (phoneCallsBuilder_ != null) { - return phoneCallsBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getSearchBudgetLostTopImpressionShareOrBuilder() { + if (searchBudgetLostTopImpressionShareBuilder_ != null) { + return searchBudgetLostTopImpressionShareBuilder_.getMessageOrBuilder(); } else { - return phoneCalls_ == null ? - com.google.protobuf.Int64Value.getDefaultInstance() : phoneCalls_; + return searchBudgetLostTopImpressionShare_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : searchBudgetLostTopImpressionShare_; } } /** *
-     * Number of offline phone calls.
+     * The number estimating how often your ad didn't show anywhere above the
+     * organic search results due to a low budget. Note: Search
+     * budget lost top impression share is reported in the range of 0 to 0.9. Any
+     * value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.Int64Value phone_calls = 43; + * .google.protobuf.DoubleValue search_budget_lost_top_impression_share = 89; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> - getPhoneCallsFieldBuilder() { - if (phoneCallsBuilder_ == null) { - phoneCallsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( - getPhoneCalls(), + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> + getSearchBudgetLostTopImpressionShareFieldBuilder() { + if (searchBudgetLostTopImpressionShareBuilder_ == null) { + searchBudgetLostTopImpressionShareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( + getSearchBudgetLostTopImpressionShare(), getParentForChildren(), isClean()); - phoneCalls_ = null; + searchBudgetLostTopImpressionShare_ = null; } - return phoneCallsBuilder_; + return searchBudgetLostTopImpressionShareBuilder_; } - private com.google.protobuf.Int64Value phoneImpressions_ = null; + private com.google.protobuf.DoubleValue searchClickShare_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> phoneImpressionsBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> searchClickShareBuilder_; /** *
-     * Number of offline phone impressions.
+     * The number of clicks you've received on the Search Network
+     * divided by the estimated number of clicks you were eligible to receive.
+     * Note: Search click share is reported in the range of 0.1 to 1. Any value
+     * below 0.1 is reported as 0.0999.
      * 
* - * .google.protobuf.Int64Value phone_impressions = 44; + * .google.protobuf.DoubleValue search_click_share = 48; */ - public boolean hasPhoneImpressions() { - return phoneImpressionsBuilder_ != null || phoneImpressions_ != null; + public boolean hasSearchClickShare() { + return searchClickShareBuilder_ != null || searchClickShare_ != null; } /** *
-     * Number of offline phone impressions.
+     * The number of clicks you've received on the Search Network
+     * divided by the estimated number of clicks you were eligible to receive.
+     * Note: Search click share is reported in the range of 0.1 to 1. Any value
+     * below 0.1 is reported as 0.0999.
      * 
* - * .google.protobuf.Int64Value phone_impressions = 44; + * .google.protobuf.DoubleValue search_click_share = 48; */ - public com.google.protobuf.Int64Value getPhoneImpressions() { - if (phoneImpressionsBuilder_ == null) { - return phoneImpressions_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : phoneImpressions_; + public com.google.protobuf.DoubleValue getSearchClickShare() { + if (searchClickShareBuilder_ == null) { + return searchClickShare_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : searchClickShare_; } else { - return phoneImpressionsBuilder_.getMessage(); + return searchClickShareBuilder_.getMessage(); } } /** *
-     * Number of offline phone impressions.
+     * The number of clicks you've received on the Search Network
+     * divided by the estimated number of clicks you were eligible to receive.
+     * Note: Search click share is reported in the range of 0.1 to 1. Any value
+     * below 0.1 is reported as 0.0999.
      * 
* - * .google.protobuf.Int64Value phone_impressions = 44; + * .google.protobuf.DoubleValue search_click_share = 48; */ - public Builder setPhoneImpressions(com.google.protobuf.Int64Value value) { - if (phoneImpressionsBuilder_ == null) { + public Builder setSearchClickShare(com.google.protobuf.DoubleValue value) { + if (searchClickShareBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - phoneImpressions_ = value; + searchClickShare_ = value; onChanged(); } else { - phoneImpressionsBuilder_.setMessage(value); + searchClickShareBuilder_.setMessage(value); } return this; } /** *
-     * Number of offline phone impressions.
+     * The number of clicks you've received on the Search Network
+     * divided by the estimated number of clicks you were eligible to receive.
+     * Note: Search click share is reported in the range of 0.1 to 1. Any value
+     * below 0.1 is reported as 0.0999.
      * 
* - * .google.protobuf.Int64Value phone_impressions = 44; + * .google.protobuf.DoubleValue search_click_share = 48; */ - public Builder setPhoneImpressions( - com.google.protobuf.Int64Value.Builder builderForValue) { - if (phoneImpressionsBuilder_ == null) { - phoneImpressions_ = builderForValue.build(); + public Builder setSearchClickShare( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (searchClickShareBuilder_ == null) { + searchClickShare_ = builderForValue.build(); onChanged(); } else { - phoneImpressionsBuilder_.setMessage(builderForValue.build()); + searchClickShareBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * Number of offline phone impressions.
+     * The number of clicks you've received on the Search Network
+     * divided by the estimated number of clicks you were eligible to receive.
+     * Note: Search click share is reported in the range of 0.1 to 1. Any value
+     * below 0.1 is reported as 0.0999.
      * 
* - * .google.protobuf.Int64Value phone_impressions = 44; + * .google.protobuf.DoubleValue search_click_share = 48; */ - public Builder mergePhoneImpressions(com.google.protobuf.Int64Value value) { - if (phoneImpressionsBuilder_ == null) { - if (phoneImpressions_ != null) { - phoneImpressions_ = - com.google.protobuf.Int64Value.newBuilder(phoneImpressions_).mergeFrom(value).buildPartial(); + public Builder mergeSearchClickShare(com.google.protobuf.DoubleValue value) { + if (searchClickShareBuilder_ == null) { + if (searchClickShare_ != null) { + searchClickShare_ = + com.google.protobuf.DoubleValue.newBuilder(searchClickShare_).mergeFrom(value).buildPartial(); } else { - phoneImpressions_ = value; + searchClickShare_ = value; } onChanged(); } else { - phoneImpressionsBuilder_.mergeFrom(value); + searchClickShareBuilder_.mergeFrom(value); } return this; } /** *
-     * Number of offline phone impressions.
+     * The number of clicks you've received on the Search Network
+     * divided by the estimated number of clicks you were eligible to receive.
+     * Note: Search click share is reported in the range of 0.1 to 1. Any value
+     * below 0.1 is reported as 0.0999.
      * 
* - * .google.protobuf.Int64Value phone_impressions = 44; + * .google.protobuf.DoubleValue search_click_share = 48; */ - public Builder clearPhoneImpressions() { - if (phoneImpressionsBuilder_ == null) { - phoneImpressions_ = null; + public Builder clearSearchClickShare() { + if (searchClickShareBuilder_ == null) { + searchClickShare_ = null; onChanged(); } else { - phoneImpressions_ = null; - phoneImpressionsBuilder_ = null; + searchClickShare_ = null; + searchClickShareBuilder_ = null; } return this; } /** *
-     * Number of offline phone impressions.
+     * The number of clicks you've received on the Search Network
+     * divided by the estimated number of clicks you were eligible to receive.
+     * Note: Search click share is reported in the range of 0.1 to 1. Any value
+     * below 0.1 is reported as 0.0999.
      * 
* - * .google.protobuf.Int64Value phone_impressions = 44; + * .google.protobuf.DoubleValue search_click_share = 48; */ - public com.google.protobuf.Int64Value.Builder getPhoneImpressionsBuilder() { + public com.google.protobuf.DoubleValue.Builder getSearchClickShareBuilder() { onChanged(); - return getPhoneImpressionsFieldBuilder().getBuilder(); + return getSearchClickShareFieldBuilder().getBuilder(); } /** *
-     * Number of offline phone impressions.
+     * The number of clicks you've received on the Search Network
+     * divided by the estimated number of clicks you were eligible to receive.
+     * Note: Search click share is reported in the range of 0.1 to 1. Any value
+     * below 0.1 is reported as 0.0999.
      * 
* - * .google.protobuf.Int64Value phone_impressions = 44; + * .google.protobuf.DoubleValue search_click_share = 48; */ - public com.google.protobuf.Int64ValueOrBuilder getPhoneImpressionsOrBuilder() { - if (phoneImpressionsBuilder_ != null) { - return phoneImpressionsBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getSearchClickShareOrBuilder() { + if (searchClickShareBuilder_ != null) { + return searchClickShareBuilder_.getMessageOrBuilder(); } else { - return phoneImpressions_ == null ? - com.google.protobuf.Int64Value.getDefaultInstance() : phoneImpressions_; + return searchClickShare_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : searchClickShare_; } } /** *
-     * Number of offline phone impressions.
+     * The number of clicks you've received on the Search Network
+     * divided by the estimated number of clicks you were eligible to receive.
+     * Note: Search click share is reported in the range of 0.1 to 1. Any value
+     * below 0.1 is reported as 0.0999.
      * 
* - * .google.protobuf.Int64Value phone_impressions = 44; + * .google.protobuf.DoubleValue search_click_share = 48; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> - getPhoneImpressionsFieldBuilder() { - if (phoneImpressionsBuilder_ == null) { - phoneImpressionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( - getPhoneImpressions(), + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> + getSearchClickShareFieldBuilder() { + if (searchClickShareBuilder_ == null) { + searchClickShareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( + getSearchClickShare(), getParentForChildren(), isClean()); - phoneImpressions_ = null; + searchClickShare_ = null; } - return phoneImpressionsBuilder_; + return searchClickShareBuilder_; } - private com.google.protobuf.DoubleValue phoneThroughRate_ = null; + private com.google.protobuf.DoubleValue searchExactMatchImpressionShare_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> phoneThroughRateBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> searchExactMatchImpressionShareBuilder_; /** *
-     * Number of phone calls received (phone_calls) divided by the number of
-     * times your phone number is shown (phone_impressions).
+     * The impressions you've received divided by the estimated number of
+     * impressions you were eligible to receive on the Search Network for search
+     * terms that matched your keywords exactly (or were close variants of your
+     * keyword), regardless of your keyword match types. Note: Search exact match
+     * impression share is reported in the range of 0.1 to 1. Any value below 0.1
+     * is reported as 0.0999.
      * 
* - * .google.protobuf.DoubleValue phone_through_rate = 45; + * .google.protobuf.DoubleValue search_exact_match_impression_share = 49; */ - public boolean hasPhoneThroughRate() { - return phoneThroughRateBuilder_ != null || phoneThroughRate_ != null; + public boolean hasSearchExactMatchImpressionShare() { + return searchExactMatchImpressionShareBuilder_ != null || searchExactMatchImpressionShare_ != null; } /** *
-     * Number of phone calls received (phone_calls) divided by the number of
-     * times your phone number is shown (phone_impressions).
+     * The impressions you've received divided by the estimated number of
+     * impressions you were eligible to receive on the Search Network for search
+     * terms that matched your keywords exactly (or were close variants of your
+     * keyword), regardless of your keyword match types. Note: Search exact match
+     * impression share is reported in the range of 0.1 to 1. Any value below 0.1
+     * is reported as 0.0999.
      * 
* - * .google.protobuf.DoubleValue phone_through_rate = 45; + * .google.protobuf.DoubleValue search_exact_match_impression_share = 49; */ - public com.google.protobuf.DoubleValue getPhoneThroughRate() { - if (phoneThroughRateBuilder_ == null) { - return phoneThroughRate_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : phoneThroughRate_; + public com.google.protobuf.DoubleValue getSearchExactMatchImpressionShare() { + if (searchExactMatchImpressionShareBuilder_ == null) { + return searchExactMatchImpressionShare_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : searchExactMatchImpressionShare_; } else { - return phoneThroughRateBuilder_.getMessage(); + return searchExactMatchImpressionShareBuilder_.getMessage(); } } /** *
-     * Number of phone calls received (phone_calls) divided by the number of
-     * times your phone number is shown (phone_impressions).
+     * The impressions you've received divided by the estimated number of
+     * impressions you were eligible to receive on the Search Network for search
+     * terms that matched your keywords exactly (or were close variants of your
+     * keyword), regardless of your keyword match types. Note: Search exact match
+     * impression share is reported in the range of 0.1 to 1. Any value below 0.1
+     * is reported as 0.0999.
      * 
* - * .google.protobuf.DoubleValue phone_through_rate = 45; + * .google.protobuf.DoubleValue search_exact_match_impression_share = 49; */ - public Builder setPhoneThroughRate(com.google.protobuf.DoubleValue value) { - if (phoneThroughRateBuilder_ == null) { + public Builder setSearchExactMatchImpressionShare(com.google.protobuf.DoubleValue value) { + if (searchExactMatchImpressionShareBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - phoneThroughRate_ = value; + searchExactMatchImpressionShare_ = value; onChanged(); } else { - phoneThroughRateBuilder_.setMessage(value); + searchExactMatchImpressionShareBuilder_.setMessage(value); } return this; } /** *
-     * Number of phone calls received (phone_calls) divided by the number of
-     * times your phone number is shown (phone_impressions).
+     * The impressions you've received divided by the estimated number of
+     * impressions you were eligible to receive on the Search Network for search
+     * terms that matched your keywords exactly (or were close variants of your
+     * keyword), regardless of your keyword match types. Note: Search exact match
+     * impression share is reported in the range of 0.1 to 1. Any value below 0.1
+     * is reported as 0.0999.
      * 
* - * .google.protobuf.DoubleValue phone_through_rate = 45; + * .google.protobuf.DoubleValue search_exact_match_impression_share = 49; */ - public Builder setPhoneThroughRate( + public Builder setSearchExactMatchImpressionShare( com.google.protobuf.DoubleValue.Builder builderForValue) { - if (phoneThroughRateBuilder_ == null) { - phoneThroughRate_ = builderForValue.build(); + if (searchExactMatchImpressionShareBuilder_ == null) { + searchExactMatchImpressionShare_ = builderForValue.build(); onChanged(); } else { - phoneThroughRateBuilder_.setMessage(builderForValue.build()); + searchExactMatchImpressionShareBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * Number of phone calls received (phone_calls) divided by the number of
-     * times your phone number is shown (phone_impressions).
+     * The impressions you've received divided by the estimated number of
+     * impressions you were eligible to receive on the Search Network for search
+     * terms that matched your keywords exactly (or were close variants of your
+     * keyword), regardless of your keyword match types. Note: Search exact match
+     * impression share is reported in the range of 0.1 to 1. Any value below 0.1
+     * is reported as 0.0999.
      * 
* - * .google.protobuf.DoubleValue phone_through_rate = 45; + * .google.protobuf.DoubleValue search_exact_match_impression_share = 49; */ - public Builder mergePhoneThroughRate(com.google.protobuf.DoubleValue value) { - if (phoneThroughRateBuilder_ == null) { - if (phoneThroughRate_ != null) { - phoneThroughRate_ = - com.google.protobuf.DoubleValue.newBuilder(phoneThroughRate_).mergeFrom(value).buildPartial(); + public Builder mergeSearchExactMatchImpressionShare(com.google.protobuf.DoubleValue value) { + if (searchExactMatchImpressionShareBuilder_ == null) { + if (searchExactMatchImpressionShare_ != null) { + searchExactMatchImpressionShare_ = + com.google.protobuf.DoubleValue.newBuilder(searchExactMatchImpressionShare_).mergeFrom(value).buildPartial(); } else { - phoneThroughRate_ = value; + searchExactMatchImpressionShare_ = value; } onChanged(); } else { - phoneThroughRateBuilder_.mergeFrom(value); + searchExactMatchImpressionShareBuilder_.mergeFrom(value); } return this; } /** *
-     * Number of phone calls received (phone_calls) divided by the number of
-     * times your phone number is shown (phone_impressions).
+     * The impressions you've received divided by the estimated number of
+     * impressions you were eligible to receive on the Search Network for search
+     * terms that matched your keywords exactly (or were close variants of your
+     * keyword), regardless of your keyword match types. Note: Search exact match
+     * impression share is reported in the range of 0.1 to 1. Any value below 0.1
+     * is reported as 0.0999.
      * 
* - * .google.protobuf.DoubleValue phone_through_rate = 45; + * .google.protobuf.DoubleValue search_exact_match_impression_share = 49; */ - public Builder clearPhoneThroughRate() { - if (phoneThroughRateBuilder_ == null) { - phoneThroughRate_ = null; + public Builder clearSearchExactMatchImpressionShare() { + if (searchExactMatchImpressionShareBuilder_ == null) { + searchExactMatchImpressionShare_ = null; onChanged(); } else { - phoneThroughRate_ = null; - phoneThroughRateBuilder_ = null; + searchExactMatchImpressionShare_ = null; + searchExactMatchImpressionShareBuilder_ = null; } return this; } /** *
-     * Number of phone calls received (phone_calls) divided by the number of
-     * times your phone number is shown (phone_impressions).
+     * The impressions you've received divided by the estimated number of
+     * impressions you were eligible to receive on the Search Network for search
+     * terms that matched your keywords exactly (or were close variants of your
+     * keyword), regardless of your keyword match types. Note: Search exact match
+     * impression share is reported in the range of 0.1 to 1. Any value below 0.1
+     * is reported as 0.0999.
      * 
* - * .google.protobuf.DoubleValue phone_through_rate = 45; + * .google.protobuf.DoubleValue search_exact_match_impression_share = 49; */ - public com.google.protobuf.DoubleValue.Builder getPhoneThroughRateBuilder() { + public com.google.protobuf.DoubleValue.Builder getSearchExactMatchImpressionShareBuilder() { onChanged(); - return getPhoneThroughRateFieldBuilder().getBuilder(); + return getSearchExactMatchImpressionShareFieldBuilder().getBuilder(); } /** *
-     * Number of phone calls received (phone_calls) divided by the number of
-     * times your phone number is shown (phone_impressions).
+     * The impressions you've received divided by the estimated number of
+     * impressions you were eligible to receive on the Search Network for search
+     * terms that matched your keywords exactly (or were close variants of your
+     * keyword), regardless of your keyword match types. Note: Search exact match
+     * impression share is reported in the range of 0.1 to 1. Any value below 0.1
+     * is reported as 0.0999.
      * 
* - * .google.protobuf.DoubleValue phone_through_rate = 45; + * .google.protobuf.DoubleValue search_exact_match_impression_share = 49; */ - public com.google.protobuf.DoubleValueOrBuilder getPhoneThroughRateOrBuilder() { - if (phoneThroughRateBuilder_ != null) { - return phoneThroughRateBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getSearchExactMatchImpressionShareOrBuilder() { + if (searchExactMatchImpressionShareBuilder_ != null) { + return searchExactMatchImpressionShareBuilder_.getMessageOrBuilder(); } else { - return phoneThroughRate_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : phoneThroughRate_; + return searchExactMatchImpressionShare_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : searchExactMatchImpressionShare_; } } /** *
-     * Number of phone calls received (phone_calls) divided by the number of
-     * times your phone number is shown (phone_impressions).
+     * The impressions you've received divided by the estimated number of
+     * impressions you were eligible to receive on the Search Network for search
+     * terms that matched your keywords exactly (or were close variants of your
+     * keyword), regardless of your keyword match types. Note: Search exact match
+     * impression share is reported in the range of 0.1 to 1. Any value below 0.1
+     * is reported as 0.0999.
      * 
* - * .google.protobuf.DoubleValue phone_through_rate = 45; + * .google.protobuf.DoubleValue search_exact_match_impression_share = 49; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - getPhoneThroughRateFieldBuilder() { - if (phoneThroughRateBuilder_ == null) { - phoneThroughRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getSearchExactMatchImpressionShareFieldBuilder() { + if (searchExactMatchImpressionShareBuilder_ == null) { + searchExactMatchImpressionShareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getPhoneThroughRate(), + getSearchExactMatchImpressionShare(), getParentForChildren(), isClean()); - phoneThroughRate_ = null; + searchExactMatchImpressionShare_ = null; } - return phoneThroughRateBuilder_; + return searchExactMatchImpressionShareBuilder_; } - private com.google.protobuf.DoubleValue relativeCtr_ = null; + private com.google.protobuf.DoubleValue searchImpressionShare_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> relativeCtrBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> searchImpressionShareBuilder_; /** *
-     * Your clickthrough rate (Ctr) divided by the average clickthrough rate of
-     * all advertisers on the websites that show your ads. Measures how your ads
-     * perform on Display Network sites compared to other ads on the same sites.
+     * The impressions you've received on the Search Network divided
+     * by the estimated number of impressions you were eligible to receive.
+     * Note: Search impression share is reported in the range of 0.1 to 1. Any
+     * value below 0.1 is reported as 0.0999.
      * 
* - * .google.protobuf.DoubleValue relative_ctr = 46; + * .google.protobuf.DoubleValue search_impression_share = 50; */ - public boolean hasRelativeCtr() { - return relativeCtrBuilder_ != null || relativeCtr_ != null; + public boolean hasSearchImpressionShare() { + return searchImpressionShareBuilder_ != null || searchImpressionShare_ != null; } /** *
-     * Your clickthrough rate (Ctr) divided by the average clickthrough rate of
-     * all advertisers on the websites that show your ads. Measures how your ads
-     * perform on Display Network sites compared to other ads on the same sites.
+     * The impressions you've received on the Search Network divided
+     * by the estimated number of impressions you were eligible to receive.
+     * Note: Search impression share is reported in the range of 0.1 to 1. Any
+     * value below 0.1 is reported as 0.0999.
      * 
* - * .google.protobuf.DoubleValue relative_ctr = 46; + * .google.protobuf.DoubleValue search_impression_share = 50; */ - public com.google.protobuf.DoubleValue getRelativeCtr() { - if (relativeCtrBuilder_ == null) { - return relativeCtr_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : relativeCtr_; + public com.google.protobuf.DoubleValue getSearchImpressionShare() { + if (searchImpressionShareBuilder_ == null) { + return searchImpressionShare_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : searchImpressionShare_; } else { - return relativeCtrBuilder_.getMessage(); + return searchImpressionShareBuilder_.getMessage(); } } /** *
-     * Your clickthrough rate (Ctr) divided by the average clickthrough rate of
-     * all advertisers on the websites that show your ads. Measures how your ads
-     * perform on Display Network sites compared to other ads on the same sites.
+     * The impressions you've received on the Search Network divided
+     * by the estimated number of impressions you were eligible to receive.
+     * Note: Search impression share is reported in the range of 0.1 to 1. Any
+     * value below 0.1 is reported as 0.0999.
      * 
* - * .google.protobuf.DoubleValue relative_ctr = 46; + * .google.protobuf.DoubleValue search_impression_share = 50; */ - public Builder setRelativeCtr(com.google.protobuf.DoubleValue value) { - if (relativeCtrBuilder_ == null) { + public Builder setSearchImpressionShare(com.google.protobuf.DoubleValue value) { + if (searchImpressionShareBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - relativeCtr_ = value; + searchImpressionShare_ = value; onChanged(); } else { - relativeCtrBuilder_.setMessage(value); + searchImpressionShareBuilder_.setMessage(value); } return this; } /** *
-     * Your clickthrough rate (Ctr) divided by the average clickthrough rate of
-     * all advertisers on the websites that show your ads. Measures how your ads
-     * perform on Display Network sites compared to other ads on the same sites.
+     * The impressions you've received on the Search Network divided
+     * by the estimated number of impressions you were eligible to receive.
+     * Note: Search impression share is reported in the range of 0.1 to 1. Any
+     * value below 0.1 is reported as 0.0999.
      * 
* - * .google.protobuf.DoubleValue relative_ctr = 46; + * .google.protobuf.DoubleValue search_impression_share = 50; */ - public Builder setRelativeCtr( + public Builder setSearchImpressionShare( com.google.protobuf.DoubleValue.Builder builderForValue) { - if (relativeCtrBuilder_ == null) { - relativeCtr_ = builderForValue.build(); + if (searchImpressionShareBuilder_ == null) { + searchImpressionShare_ = builderForValue.build(); onChanged(); } else { - relativeCtrBuilder_.setMessage(builderForValue.build()); + searchImpressionShareBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * Your clickthrough rate (Ctr) divided by the average clickthrough rate of
-     * all advertisers on the websites that show your ads. Measures how your ads
-     * perform on Display Network sites compared to other ads on the same sites.
+     * The impressions you've received on the Search Network divided
+     * by the estimated number of impressions you were eligible to receive.
+     * Note: Search impression share is reported in the range of 0.1 to 1. Any
+     * value below 0.1 is reported as 0.0999.
      * 
* - * .google.protobuf.DoubleValue relative_ctr = 46; + * .google.protobuf.DoubleValue search_impression_share = 50; */ - public Builder mergeRelativeCtr(com.google.protobuf.DoubleValue value) { - if (relativeCtrBuilder_ == null) { - if (relativeCtr_ != null) { - relativeCtr_ = - com.google.protobuf.DoubleValue.newBuilder(relativeCtr_).mergeFrom(value).buildPartial(); + public Builder mergeSearchImpressionShare(com.google.protobuf.DoubleValue value) { + if (searchImpressionShareBuilder_ == null) { + if (searchImpressionShare_ != null) { + searchImpressionShare_ = + com.google.protobuf.DoubleValue.newBuilder(searchImpressionShare_).mergeFrom(value).buildPartial(); } else { - relativeCtr_ = value; + searchImpressionShare_ = value; } onChanged(); } else { - relativeCtrBuilder_.mergeFrom(value); + searchImpressionShareBuilder_.mergeFrom(value); } return this; } /** *
-     * Your clickthrough rate (Ctr) divided by the average clickthrough rate of
-     * all advertisers on the websites that show your ads. Measures how your ads
-     * perform on Display Network sites compared to other ads on the same sites.
+     * The impressions you've received on the Search Network divided
+     * by the estimated number of impressions you were eligible to receive.
+     * Note: Search impression share is reported in the range of 0.1 to 1. Any
+     * value below 0.1 is reported as 0.0999.
      * 
* - * .google.protobuf.DoubleValue relative_ctr = 46; + * .google.protobuf.DoubleValue search_impression_share = 50; */ - public Builder clearRelativeCtr() { - if (relativeCtrBuilder_ == null) { - relativeCtr_ = null; + public Builder clearSearchImpressionShare() { + if (searchImpressionShareBuilder_ == null) { + searchImpressionShare_ = null; onChanged(); } else { - relativeCtr_ = null; - relativeCtrBuilder_ = null; + searchImpressionShare_ = null; + searchImpressionShareBuilder_ = null; } return this; } /** *
-     * Your clickthrough rate (Ctr) divided by the average clickthrough rate of
-     * all advertisers on the websites that show your ads. Measures how your ads
-     * perform on Display Network sites compared to other ads on the same sites.
+     * The impressions you've received on the Search Network divided
+     * by the estimated number of impressions you were eligible to receive.
+     * Note: Search impression share is reported in the range of 0.1 to 1. Any
+     * value below 0.1 is reported as 0.0999.
      * 
* - * .google.protobuf.DoubleValue relative_ctr = 46; + * .google.protobuf.DoubleValue search_impression_share = 50; */ - public com.google.protobuf.DoubleValue.Builder getRelativeCtrBuilder() { + public com.google.protobuf.DoubleValue.Builder getSearchImpressionShareBuilder() { onChanged(); - return getRelativeCtrFieldBuilder().getBuilder(); + return getSearchImpressionShareFieldBuilder().getBuilder(); } /** *
-     * Your clickthrough rate (Ctr) divided by the average clickthrough rate of
-     * all advertisers on the websites that show your ads. Measures how your ads
-     * perform on Display Network sites compared to other ads on the same sites.
+     * The impressions you've received on the Search Network divided
+     * by the estimated number of impressions you were eligible to receive.
+     * Note: Search impression share is reported in the range of 0.1 to 1. Any
+     * value below 0.1 is reported as 0.0999.
      * 
* - * .google.protobuf.DoubleValue relative_ctr = 46; + * .google.protobuf.DoubleValue search_impression_share = 50; */ - public com.google.protobuf.DoubleValueOrBuilder getRelativeCtrOrBuilder() { - if (relativeCtrBuilder_ != null) { - return relativeCtrBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getSearchImpressionShareOrBuilder() { + if (searchImpressionShareBuilder_ != null) { + return searchImpressionShareBuilder_.getMessageOrBuilder(); } else { - return relativeCtr_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : relativeCtr_; + return searchImpressionShare_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : searchImpressionShare_; } } /** *
-     * Your clickthrough rate (Ctr) divided by the average clickthrough rate of
-     * all advertisers on the websites that show your ads. Measures how your ads
-     * perform on Display Network sites compared to other ads on the same sites.
+     * The impressions you've received on the Search Network divided
+     * by the estimated number of impressions you were eligible to receive.
+     * Note: Search impression share is reported in the range of 0.1 to 1. Any
+     * value below 0.1 is reported as 0.0999.
      * 
* - * .google.protobuf.DoubleValue relative_ctr = 46; + * .google.protobuf.DoubleValue search_impression_share = 50; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - getRelativeCtrFieldBuilder() { - if (relativeCtrBuilder_ == null) { - relativeCtrBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getSearchImpressionShareFieldBuilder() { + if (searchImpressionShareBuilder_ == null) { + searchImpressionShareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getRelativeCtr(), + getSearchImpressionShare(), getParentForChildren(), isClean()); - relativeCtr_ = null; + searchImpressionShare_ = null; } - return relativeCtrBuilder_; + return searchImpressionShareBuilder_; } - private com.google.protobuf.DoubleValue searchAbsoluteTopImpressionShare_ = null; + private com.google.protobuf.DoubleValue searchRankLostAbsoluteTopImpressionShare_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> searchAbsoluteTopImpressionShareBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> searchRankLostAbsoluteTopImpressionShareBuilder_; /** *
-     * The percentage of the customer's Shopping ad impressions that are shown in
-     * the most prominent Shopping position. See
-     * <a href="https://support.google.com/adwords/answer/7501826">this Merchant
-     * Center article</a> for details. Any value below 0.1 is reported as 0.0999.
+     * The number estimating how often your ad wasn't the very first ad above the
+     * organic search results due to poor Ad Rank.
+     * Note: Search rank lost absolute top impression share is reported in the
+     * range of 0 to 0.9. Any value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.DoubleValue search_absolute_top_impression_share = 78; + * .google.protobuf.DoubleValue search_rank_lost_absolute_top_impression_share = 90; */ - public boolean hasSearchAbsoluteTopImpressionShare() { - return searchAbsoluteTopImpressionShareBuilder_ != null || searchAbsoluteTopImpressionShare_ != null; + public boolean hasSearchRankLostAbsoluteTopImpressionShare() { + return searchRankLostAbsoluteTopImpressionShareBuilder_ != null || searchRankLostAbsoluteTopImpressionShare_ != null; } /** *
-     * The percentage of the customer's Shopping ad impressions that are shown in
-     * the most prominent Shopping position. See
-     * <a href="https://support.google.com/adwords/answer/7501826">this Merchant
-     * Center article</a> for details. Any value below 0.1 is reported as 0.0999.
+     * The number estimating how often your ad wasn't the very first ad above the
+     * organic search results due to poor Ad Rank.
+     * Note: Search rank lost absolute top impression share is reported in the
+     * range of 0 to 0.9. Any value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.DoubleValue search_absolute_top_impression_share = 78; + * .google.protobuf.DoubleValue search_rank_lost_absolute_top_impression_share = 90; */ - public com.google.protobuf.DoubleValue getSearchAbsoluteTopImpressionShare() { - if (searchAbsoluteTopImpressionShareBuilder_ == null) { - return searchAbsoluteTopImpressionShare_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : searchAbsoluteTopImpressionShare_; + public com.google.protobuf.DoubleValue getSearchRankLostAbsoluteTopImpressionShare() { + if (searchRankLostAbsoluteTopImpressionShareBuilder_ == null) { + return searchRankLostAbsoluteTopImpressionShare_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : searchRankLostAbsoluteTopImpressionShare_; } else { - return searchAbsoluteTopImpressionShareBuilder_.getMessage(); + return searchRankLostAbsoluteTopImpressionShareBuilder_.getMessage(); } } /** *
-     * The percentage of the customer's Shopping ad impressions that are shown in
-     * the most prominent Shopping position. See
-     * <a href="https://support.google.com/adwords/answer/7501826">this Merchant
-     * Center article</a> for details. Any value below 0.1 is reported as 0.0999.
+     * The number estimating how often your ad wasn't the very first ad above the
+     * organic search results due to poor Ad Rank.
+     * Note: Search rank lost absolute top impression share is reported in the
+     * range of 0 to 0.9. Any value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.DoubleValue search_absolute_top_impression_share = 78; + * .google.protobuf.DoubleValue search_rank_lost_absolute_top_impression_share = 90; */ - public Builder setSearchAbsoluteTopImpressionShare(com.google.protobuf.DoubleValue value) { - if (searchAbsoluteTopImpressionShareBuilder_ == null) { + public Builder setSearchRankLostAbsoluteTopImpressionShare(com.google.protobuf.DoubleValue value) { + if (searchRankLostAbsoluteTopImpressionShareBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - searchAbsoluteTopImpressionShare_ = value; + searchRankLostAbsoluteTopImpressionShare_ = value; onChanged(); } else { - searchAbsoluteTopImpressionShareBuilder_.setMessage(value); + searchRankLostAbsoluteTopImpressionShareBuilder_.setMessage(value); } return this; } /** *
-     * The percentage of the customer's Shopping ad impressions that are shown in
-     * the most prominent Shopping position. See
-     * <a href="https://support.google.com/adwords/answer/7501826">this Merchant
-     * Center article</a> for details. Any value below 0.1 is reported as 0.0999.
+     * The number estimating how often your ad wasn't the very first ad above the
+     * organic search results due to poor Ad Rank.
+     * Note: Search rank lost absolute top impression share is reported in the
+     * range of 0 to 0.9. Any value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.DoubleValue search_absolute_top_impression_share = 78; + * .google.protobuf.DoubleValue search_rank_lost_absolute_top_impression_share = 90; */ - public Builder setSearchAbsoluteTopImpressionShare( + public Builder setSearchRankLostAbsoluteTopImpressionShare( com.google.protobuf.DoubleValue.Builder builderForValue) { - if (searchAbsoluteTopImpressionShareBuilder_ == null) { - searchAbsoluteTopImpressionShare_ = builderForValue.build(); + if (searchRankLostAbsoluteTopImpressionShareBuilder_ == null) { + searchRankLostAbsoluteTopImpressionShare_ = builderForValue.build(); onChanged(); } else { - searchAbsoluteTopImpressionShareBuilder_.setMessage(builderForValue.build()); + searchRankLostAbsoluteTopImpressionShareBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The percentage of the customer's Shopping ad impressions that are shown in
-     * the most prominent Shopping position. See
-     * <a href="https://support.google.com/adwords/answer/7501826">this Merchant
-     * Center article</a> for details. Any value below 0.1 is reported as 0.0999.
+     * The number estimating how often your ad wasn't the very first ad above the
+     * organic search results due to poor Ad Rank.
+     * Note: Search rank lost absolute top impression share is reported in the
+     * range of 0 to 0.9. Any value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.DoubleValue search_absolute_top_impression_share = 78; + * .google.protobuf.DoubleValue search_rank_lost_absolute_top_impression_share = 90; */ - public Builder mergeSearchAbsoluteTopImpressionShare(com.google.protobuf.DoubleValue value) { - if (searchAbsoluteTopImpressionShareBuilder_ == null) { - if (searchAbsoluteTopImpressionShare_ != null) { - searchAbsoluteTopImpressionShare_ = - com.google.protobuf.DoubleValue.newBuilder(searchAbsoluteTopImpressionShare_).mergeFrom(value).buildPartial(); + public Builder mergeSearchRankLostAbsoluteTopImpressionShare(com.google.protobuf.DoubleValue value) { + if (searchRankLostAbsoluteTopImpressionShareBuilder_ == null) { + if (searchRankLostAbsoluteTopImpressionShare_ != null) { + searchRankLostAbsoluteTopImpressionShare_ = + com.google.protobuf.DoubleValue.newBuilder(searchRankLostAbsoluteTopImpressionShare_).mergeFrom(value).buildPartial(); } else { - searchAbsoluteTopImpressionShare_ = value; + searchRankLostAbsoluteTopImpressionShare_ = value; } onChanged(); } else { - searchAbsoluteTopImpressionShareBuilder_.mergeFrom(value); + searchRankLostAbsoluteTopImpressionShareBuilder_.mergeFrom(value); } return this; } /** *
-     * The percentage of the customer's Shopping ad impressions that are shown in
-     * the most prominent Shopping position. See
-     * <a href="https://support.google.com/adwords/answer/7501826">this Merchant
-     * Center article</a> for details. Any value below 0.1 is reported as 0.0999.
+     * The number estimating how often your ad wasn't the very first ad above the
+     * organic search results due to poor Ad Rank.
+     * Note: Search rank lost absolute top impression share is reported in the
+     * range of 0 to 0.9. Any value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.DoubleValue search_absolute_top_impression_share = 78; + * .google.protobuf.DoubleValue search_rank_lost_absolute_top_impression_share = 90; */ - public Builder clearSearchAbsoluteTopImpressionShare() { - if (searchAbsoluteTopImpressionShareBuilder_ == null) { - searchAbsoluteTopImpressionShare_ = null; + public Builder clearSearchRankLostAbsoluteTopImpressionShare() { + if (searchRankLostAbsoluteTopImpressionShareBuilder_ == null) { + searchRankLostAbsoluteTopImpressionShare_ = null; onChanged(); } else { - searchAbsoluteTopImpressionShare_ = null; - searchAbsoluteTopImpressionShareBuilder_ = null; + searchRankLostAbsoluteTopImpressionShare_ = null; + searchRankLostAbsoluteTopImpressionShareBuilder_ = null; } return this; } /** *
-     * The percentage of the customer's Shopping ad impressions that are shown in
-     * the most prominent Shopping position. See
-     * <a href="https://support.google.com/adwords/answer/7501826">this Merchant
-     * Center article</a> for details. Any value below 0.1 is reported as 0.0999.
+     * The number estimating how often your ad wasn't the very first ad above the
+     * organic search results due to poor Ad Rank.
+     * Note: Search rank lost absolute top impression share is reported in the
+     * range of 0 to 0.9. Any value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.DoubleValue search_absolute_top_impression_share = 78; + * .google.protobuf.DoubleValue search_rank_lost_absolute_top_impression_share = 90; */ - public com.google.protobuf.DoubleValue.Builder getSearchAbsoluteTopImpressionShareBuilder() { + public com.google.protobuf.DoubleValue.Builder getSearchRankLostAbsoluteTopImpressionShareBuilder() { onChanged(); - return getSearchAbsoluteTopImpressionShareFieldBuilder().getBuilder(); + return getSearchRankLostAbsoluteTopImpressionShareFieldBuilder().getBuilder(); } /** *
-     * The percentage of the customer's Shopping ad impressions that are shown in
-     * the most prominent Shopping position. See
-     * <a href="https://support.google.com/adwords/answer/7501826">this Merchant
-     * Center article</a> for details. Any value below 0.1 is reported as 0.0999.
+     * The number estimating how often your ad wasn't the very first ad above the
+     * organic search results due to poor Ad Rank.
+     * Note: Search rank lost absolute top impression share is reported in the
+     * range of 0 to 0.9. Any value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.DoubleValue search_absolute_top_impression_share = 78; + * .google.protobuf.DoubleValue search_rank_lost_absolute_top_impression_share = 90; */ - public com.google.protobuf.DoubleValueOrBuilder getSearchAbsoluteTopImpressionShareOrBuilder() { - if (searchAbsoluteTopImpressionShareBuilder_ != null) { - return searchAbsoluteTopImpressionShareBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getSearchRankLostAbsoluteTopImpressionShareOrBuilder() { + if (searchRankLostAbsoluteTopImpressionShareBuilder_ != null) { + return searchRankLostAbsoluteTopImpressionShareBuilder_.getMessageOrBuilder(); } else { - return searchAbsoluteTopImpressionShare_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : searchAbsoluteTopImpressionShare_; + return searchRankLostAbsoluteTopImpressionShare_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : searchRankLostAbsoluteTopImpressionShare_; } } /** *
-     * The percentage of the customer's Shopping ad impressions that are shown in
-     * the most prominent Shopping position. See
-     * <a href="https://support.google.com/adwords/answer/7501826">this Merchant
-     * Center article</a> for details. Any value below 0.1 is reported as 0.0999.
+     * The number estimating how often your ad wasn't the very first ad above the
+     * organic search results due to poor Ad Rank.
+     * Note: Search rank lost absolute top impression share is reported in the
+     * range of 0 to 0.9. Any value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.DoubleValue search_absolute_top_impression_share = 78; + * .google.protobuf.DoubleValue search_rank_lost_absolute_top_impression_share = 90; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - getSearchAbsoluteTopImpressionShareFieldBuilder() { - if (searchAbsoluteTopImpressionShareBuilder_ == null) { - searchAbsoluteTopImpressionShareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getSearchRankLostAbsoluteTopImpressionShareFieldBuilder() { + if (searchRankLostAbsoluteTopImpressionShareBuilder_ == null) { + searchRankLostAbsoluteTopImpressionShareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getSearchAbsoluteTopImpressionShare(), + getSearchRankLostAbsoluteTopImpressionShare(), getParentForChildren(), isClean()); - searchAbsoluteTopImpressionShare_ = null; + searchRankLostAbsoluteTopImpressionShare_ = null; } - return searchAbsoluteTopImpressionShareBuilder_; + return searchRankLostAbsoluteTopImpressionShareBuilder_; } - private com.google.protobuf.DoubleValue searchBudgetLostImpressionShare_ = null; + private com.google.protobuf.DoubleValue searchRankLostImpressionShare_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> searchBudgetLostImpressionShareBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> searchRankLostImpressionShareBuilder_; /** *
-     * The estimated percent of times that your ad was eligible to show on the
-     * Search Network but didn't because your budget was too low. Note: Search
-     * budget lost impression share is reported in the range of 0 to 0.9. Any
-     * value above 0.9 is reported as 0.9001.
+     * The estimated percentage of impressions on the Search Network
+     * that your ads didn't receive due to poor Ad Rank.
+     * Note: Search rank lost impression share is reported in the range of 0 to
+     * 0.9. Any value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.DoubleValue search_budget_lost_impression_share = 47; + * .google.protobuf.DoubleValue search_rank_lost_impression_share = 51; */ - public boolean hasSearchBudgetLostImpressionShare() { - return searchBudgetLostImpressionShareBuilder_ != null || searchBudgetLostImpressionShare_ != null; + public boolean hasSearchRankLostImpressionShare() { + return searchRankLostImpressionShareBuilder_ != null || searchRankLostImpressionShare_ != null; } /** *
-     * The estimated percent of times that your ad was eligible to show on the
-     * Search Network but didn't because your budget was too low. Note: Search
-     * budget lost impression share is reported in the range of 0 to 0.9. Any
-     * value above 0.9 is reported as 0.9001.
+     * The estimated percentage of impressions on the Search Network
+     * that your ads didn't receive due to poor Ad Rank.
+     * Note: Search rank lost impression share is reported in the range of 0 to
+     * 0.9. Any value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.DoubleValue search_budget_lost_impression_share = 47; - */ - public com.google.protobuf.DoubleValue getSearchBudgetLostImpressionShare() { - if (searchBudgetLostImpressionShareBuilder_ == null) { - return searchBudgetLostImpressionShare_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : searchBudgetLostImpressionShare_; + * .google.protobuf.DoubleValue search_rank_lost_impression_share = 51; + */ + public com.google.protobuf.DoubleValue getSearchRankLostImpressionShare() { + if (searchRankLostImpressionShareBuilder_ == null) { + return searchRankLostImpressionShare_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : searchRankLostImpressionShare_; } else { - return searchBudgetLostImpressionShareBuilder_.getMessage(); + return searchRankLostImpressionShareBuilder_.getMessage(); } } /** *
-     * The estimated percent of times that your ad was eligible to show on the
-     * Search Network but didn't because your budget was too low. Note: Search
-     * budget lost impression share is reported in the range of 0 to 0.9. Any
-     * value above 0.9 is reported as 0.9001.
+     * The estimated percentage of impressions on the Search Network
+     * that your ads didn't receive due to poor Ad Rank.
+     * Note: Search rank lost impression share is reported in the range of 0 to
+     * 0.9. Any value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.DoubleValue search_budget_lost_impression_share = 47; + * .google.protobuf.DoubleValue search_rank_lost_impression_share = 51; */ - public Builder setSearchBudgetLostImpressionShare(com.google.protobuf.DoubleValue value) { - if (searchBudgetLostImpressionShareBuilder_ == null) { + public Builder setSearchRankLostImpressionShare(com.google.protobuf.DoubleValue value) { + if (searchRankLostImpressionShareBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - searchBudgetLostImpressionShare_ = value; + searchRankLostImpressionShare_ = value; onChanged(); } else { - searchBudgetLostImpressionShareBuilder_.setMessage(value); + searchRankLostImpressionShareBuilder_.setMessage(value); } return this; } /** *
-     * The estimated percent of times that your ad was eligible to show on the
-     * Search Network but didn't because your budget was too low. Note: Search
-     * budget lost impression share is reported in the range of 0 to 0.9. Any
-     * value above 0.9 is reported as 0.9001.
+     * The estimated percentage of impressions on the Search Network
+     * that your ads didn't receive due to poor Ad Rank.
+     * Note: Search rank lost impression share is reported in the range of 0 to
+     * 0.9. Any value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.DoubleValue search_budget_lost_impression_share = 47; + * .google.protobuf.DoubleValue search_rank_lost_impression_share = 51; */ - public Builder setSearchBudgetLostImpressionShare( + public Builder setSearchRankLostImpressionShare( com.google.protobuf.DoubleValue.Builder builderForValue) { - if (searchBudgetLostImpressionShareBuilder_ == null) { - searchBudgetLostImpressionShare_ = builderForValue.build(); + if (searchRankLostImpressionShareBuilder_ == null) { + searchRankLostImpressionShare_ = builderForValue.build(); onChanged(); } else { - searchBudgetLostImpressionShareBuilder_.setMessage(builderForValue.build()); + searchRankLostImpressionShareBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The estimated percent of times that your ad was eligible to show on the
-     * Search Network but didn't because your budget was too low. Note: Search
-     * budget lost impression share is reported in the range of 0 to 0.9. Any
-     * value above 0.9 is reported as 0.9001.
+     * The estimated percentage of impressions on the Search Network
+     * that your ads didn't receive due to poor Ad Rank.
+     * Note: Search rank lost impression share is reported in the range of 0 to
+     * 0.9. Any value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.DoubleValue search_budget_lost_impression_share = 47; + * .google.protobuf.DoubleValue search_rank_lost_impression_share = 51; */ - public Builder mergeSearchBudgetLostImpressionShare(com.google.protobuf.DoubleValue value) { - if (searchBudgetLostImpressionShareBuilder_ == null) { - if (searchBudgetLostImpressionShare_ != null) { - searchBudgetLostImpressionShare_ = - com.google.protobuf.DoubleValue.newBuilder(searchBudgetLostImpressionShare_).mergeFrom(value).buildPartial(); + public Builder mergeSearchRankLostImpressionShare(com.google.protobuf.DoubleValue value) { + if (searchRankLostImpressionShareBuilder_ == null) { + if (searchRankLostImpressionShare_ != null) { + searchRankLostImpressionShare_ = + com.google.protobuf.DoubleValue.newBuilder(searchRankLostImpressionShare_).mergeFrom(value).buildPartial(); } else { - searchBudgetLostImpressionShare_ = value; + searchRankLostImpressionShare_ = value; } onChanged(); } else { - searchBudgetLostImpressionShareBuilder_.mergeFrom(value); + searchRankLostImpressionShareBuilder_.mergeFrom(value); } return this; } /** *
-     * The estimated percent of times that your ad was eligible to show on the
-     * Search Network but didn't because your budget was too low. Note: Search
-     * budget lost impression share is reported in the range of 0 to 0.9. Any
-     * value above 0.9 is reported as 0.9001.
+     * The estimated percentage of impressions on the Search Network
+     * that your ads didn't receive due to poor Ad Rank.
+     * Note: Search rank lost impression share is reported in the range of 0 to
+     * 0.9. Any value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.DoubleValue search_budget_lost_impression_share = 47; + * .google.protobuf.DoubleValue search_rank_lost_impression_share = 51; */ - public Builder clearSearchBudgetLostImpressionShare() { - if (searchBudgetLostImpressionShareBuilder_ == null) { - searchBudgetLostImpressionShare_ = null; + public Builder clearSearchRankLostImpressionShare() { + if (searchRankLostImpressionShareBuilder_ == null) { + searchRankLostImpressionShare_ = null; onChanged(); } else { - searchBudgetLostImpressionShare_ = null; - searchBudgetLostImpressionShareBuilder_ = null; + searchRankLostImpressionShare_ = null; + searchRankLostImpressionShareBuilder_ = null; } return this; } /** *
-     * The estimated percent of times that your ad was eligible to show on the
-     * Search Network but didn't because your budget was too low. Note: Search
-     * budget lost impression share is reported in the range of 0 to 0.9. Any
-     * value above 0.9 is reported as 0.9001.
+     * The estimated percentage of impressions on the Search Network
+     * that your ads didn't receive due to poor Ad Rank.
+     * Note: Search rank lost impression share is reported in the range of 0 to
+     * 0.9. Any value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.DoubleValue search_budget_lost_impression_share = 47; + * .google.protobuf.DoubleValue search_rank_lost_impression_share = 51; */ - public com.google.protobuf.DoubleValue.Builder getSearchBudgetLostImpressionShareBuilder() { + public com.google.protobuf.DoubleValue.Builder getSearchRankLostImpressionShareBuilder() { onChanged(); - return getSearchBudgetLostImpressionShareFieldBuilder().getBuilder(); + return getSearchRankLostImpressionShareFieldBuilder().getBuilder(); } /** *
-     * The estimated percent of times that your ad was eligible to show on the
-     * Search Network but didn't because your budget was too low. Note: Search
-     * budget lost impression share is reported in the range of 0 to 0.9. Any
-     * value above 0.9 is reported as 0.9001.
+     * The estimated percentage of impressions on the Search Network
+     * that your ads didn't receive due to poor Ad Rank.
+     * Note: Search rank lost impression share is reported in the range of 0 to
+     * 0.9. Any value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.DoubleValue search_budget_lost_impression_share = 47; + * .google.protobuf.DoubleValue search_rank_lost_impression_share = 51; */ - public com.google.protobuf.DoubleValueOrBuilder getSearchBudgetLostImpressionShareOrBuilder() { - if (searchBudgetLostImpressionShareBuilder_ != null) { - return searchBudgetLostImpressionShareBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getSearchRankLostImpressionShareOrBuilder() { + if (searchRankLostImpressionShareBuilder_ != null) { + return searchRankLostImpressionShareBuilder_.getMessageOrBuilder(); } else { - return searchBudgetLostImpressionShare_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : searchBudgetLostImpressionShare_; + return searchRankLostImpressionShare_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : searchRankLostImpressionShare_; } } /** *
-     * The estimated percent of times that your ad was eligible to show on the
-     * Search Network but didn't because your budget was too low. Note: Search
-     * budget lost impression share is reported in the range of 0 to 0.9. Any
-     * value above 0.9 is reported as 0.9001.
+     * The estimated percentage of impressions on the Search Network
+     * that your ads didn't receive due to poor Ad Rank.
+     * Note: Search rank lost impression share is reported in the range of 0 to
+     * 0.9. Any value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.DoubleValue search_budget_lost_impression_share = 47; + * .google.protobuf.DoubleValue search_rank_lost_impression_share = 51; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - getSearchBudgetLostImpressionShareFieldBuilder() { - if (searchBudgetLostImpressionShareBuilder_ == null) { - searchBudgetLostImpressionShareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getSearchRankLostImpressionShareFieldBuilder() { + if (searchRankLostImpressionShareBuilder_ == null) { + searchRankLostImpressionShareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getSearchBudgetLostImpressionShare(), + getSearchRankLostImpressionShare(), getParentForChildren(), isClean()); - searchBudgetLostImpressionShare_ = null; + searchRankLostImpressionShare_ = null; } - return searchBudgetLostImpressionShareBuilder_; + return searchRankLostImpressionShareBuilder_; } - private com.google.protobuf.DoubleValue searchExactMatchImpressionShare_ = null; + private com.google.protobuf.DoubleValue searchRankLostTopImpressionShare_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> searchExactMatchImpressionShareBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> searchRankLostTopImpressionShareBuilder_; /** *
-     * The impressions you've received divided by the estimated number of
-     * impressions you were eligible to receive on the Search Network for search
-     * terms that matched your keywords exactly (or were close variants of your
-     * keyword), regardless of your keyword match types. Note: Search exact match
-     * impression share is reported in the range of 0.1 to 1. Any value below 0.1
-     * is reported as 0.0999.
+     * The number estimating how often your ad didn't show anywhere above the
+     * organic search results due to poor Ad Rank.
+     * Note: Search rank lost top impression share is reported in the range of 0
+     * to 0.9. Any value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.DoubleValue search_exact_match_impression_share = 49; + * .google.protobuf.DoubleValue search_rank_lost_top_impression_share = 91; */ - public boolean hasSearchExactMatchImpressionShare() { - return searchExactMatchImpressionShareBuilder_ != null || searchExactMatchImpressionShare_ != null; + public boolean hasSearchRankLostTopImpressionShare() { + return searchRankLostTopImpressionShareBuilder_ != null || searchRankLostTopImpressionShare_ != null; } /** *
-     * The impressions you've received divided by the estimated number of
-     * impressions you were eligible to receive on the Search Network for search
-     * terms that matched your keywords exactly (or were close variants of your
-     * keyword), regardless of your keyword match types. Note: Search exact match
-     * impression share is reported in the range of 0.1 to 1. Any value below 0.1
-     * is reported as 0.0999.
+     * The number estimating how often your ad didn't show anywhere above the
+     * organic search results due to poor Ad Rank.
+     * Note: Search rank lost top impression share is reported in the range of 0
+     * to 0.9. Any value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.DoubleValue search_exact_match_impression_share = 49; + * .google.protobuf.DoubleValue search_rank_lost_top_impression_share = 91; */ - public com.google.protobuf.DoubleValue getSearchExactMatchImpressionShare() { - if (searchExactMatchImpressionShareBuilder_ == null) { - return searchExactMatchImpressionShare_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : searchExactMatchImpressionShare_; + public com.google.protobuf.DoubleValue getSearchRankLostTopImpressionShare() { + if (searchRankLostTopImpressionShareBuilder_ == null) { + return searchRankLostTopImpressionShare_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : searchRankLostTopImpressionShare_; } else { - return searchExactMatchImpressionShareBuilder_.getMessage(); + return searchRankLostTopImpressionShareBuilder_.getMessage(); } } /** *
-     * The impressions you've received divided by the estimated number of
-     * impressions you were eligible to receive on the Search Network for search
-     * terms that matched your keywords exactly (or were close variants of your
-     * keyword), regardless of your keyword match types. Note: Search exact match
-     * impression share is reported in the range of 0.1 to 1. Any value below 0.1
-     * is reported as 0.0999.
+     * The number estimating how often your ad didn't show anywhere above the
+     * organic search results due to poor Ad Rank.
+     * Note: Search rank lost top impression share is reported in the range of 0
+     * to 0.9. Any value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.DoubleValue search_exact_match_impression_share = 49; + * .google.protobuf.DoubleValue search_rank_lost_top_impression_share = 91; */ - public Builder setSearchExactMatchImpressionShare(com.google.protobuf.DoubleValue value) { - if (searchExactMatchImpressionShareBuilder_ == null) { + public Builder setSearchRankLostTopImpressionShare(com.google.protobuf.DoubleValue value) { + if (searchRankLostTopImpressionShareBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - searchExactMatchImpressionShare_ = value; + searchRankLostTopImpressionShare_ = value; onChanged(); } else { - searchExactMatchImpressionShareBuilder_.setMessage(value); + searchRankLostTopImpressionShareBuilder_.setMessage(value); } return this; } /** *
-     * The impressions you've received divided by the estimated number of
-     * impressions you were eligible to receive on the Search Network for search
-     * terms that matched your keywords exactly (or were close variants of your
-     * keyword), regardless of your keyword match types. Note: Search exact match
-     * impression share is reported in the range of 0.1 to 1. Any value below 0.1
-     * is reported as 0.0999.
+     * The number estimating how often your ad didn't show anywhere above the
+     * organic search results due to poor Ad Rank.
+     * Note: Search rank lost top impression share is reported in the range of 0
+     * to 0.9. Any value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.DoubleValue search_exact_match_impression_share = 49; + * .google.protobuf.DoubleValue search_rank_lost_top_impression_share = 91; */ - public Builder setSearchExactMatchImpressionShare( + public Builder setSearchRankLostTopImpressionShare( com.google.protobuf.DoubleValue.Builder builderForValue) { - if (searchExactMatchImpressionShareBuilder_ == null) { - searchExactMatchImpressionShare_ = builderForValue.build(); + if (searchRankLostTopImpressionShareBuilder_ == null) { + searchRankLostTopImpressionShare_ = builderForValue.build(); onChanged(); } else { - searchExactMatchImpressionShareBuilder_.setMessage(builderForValue.build()); + searchRankLostTopImpressionShareBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The impressions you've received divided by the estimated number of
-     * impressions you were eligible to receive on the Search Network for search
-     * terms that matched your keywords exactly (or were close variants of your
-     * keyword), regardless of your keyword match types. Note: Search exact match
-     * impression share is reported in the range of 0.1 to 1. Any value below 0.1
-     * is reported as 0.0999.
+     * The number estimating how often your ad didn't show anywhere above the
+     * organic search results due to poor Ad Rank.
+     * Note: Search rank lost top impression share is reported in the range of 0
+     * to 0.9. Any value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.DoubleValue search_exact_match_impression_share = 49; + * .google.protobuf.DoubleValue search_rank_lost_top_impression_share = 91; */ - public Builder mergeSearchExactMatchImpressionShare(com.google.protobuf.DoubleValue value) { - if (searchExactMatchImpressionShareBuilder_ == null) { - if (searchExactMatchImpressionShare_ != null) { - searchExactMatchImpressionShare_ = - com.google.protobuf.DoubleValue.newBuilder(searchExactMatchImpressionShare_).mergeFrom(value).buildPartial(); + public Builder mergeSearchRankLostTopImpressionShare(com.google.protobuf.DoubleValue value) { + if (searchRankLostTopImpressionShareBuilder_ == null) { + if (searchRankLostTopImpressionShare_ != null) { + searchRankLostTopImpressionShare_ = + com.google.protobuf.DoubleValue.newBuilder(searchRankLostTopImpressionShare_).mergeFrom(value).buildPartial(); } else { - searchExactMatchImpressionShare_ = value; + searchRankLostTopImpressionShare_ = value; } onChanged(); } else { - searchExactMatchImpressionShareBuilder_.mergeFrom(value); + searchRankLostTopImpressionShareBuilder_.mergeFrom(value); } return this; } /** *
-     * The impressions you've received divided by the estimated number of
-     * impressions you were eligible to receive on the Search Network for search
-     * terms that matched your keywords exactly (or were close variants of your
-     * keyword), regardless of your keyword match types. Note: Search exact match
-     * impression share is reported in the range of 0.1 to 1. Any value below 0.1
-     * is reported as 0.0999.
+     * The number estimating how often your ad didn't show anywhere above the
+     * organic search results due to poor Ad Rank.
+     * Note: Search rank lost top impression share is reported in the range of 0
+     * to 0.9. Any value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.DoubleValue search_exact_match_impression_share = 49; + * .google.protobuf.DoubleValue search_rank_lost_top_impression_share = 91; */ - public Builder clearSearchExactMatchImpressionShare() { - if (searchExactMatchImpressionShareBuilder_ == null) { - searchExactMatchImpressionShare_ = null; + public Builder clearSearchRankLostTopImpressionShare() { + if (searchRankLostTopImpressionShareBuilder_ == null) { + searchRankLostTopImpressionShare_ = null; onChanged(); } else { - searchExactMatchImpressionShare_ = null; - searchExactMatchImpressionShareBuilder_ = null; + searchRankLostTopImpressionShare_ = null; + searchRankLostTopImpressionShareBuilder_ = null; } return this; } /** *
-     * The impressions you've received divided by the estimated number of
-     * impressions you were eligible to receive on the Search Network for search
-     * terms that matched your keywords exactly (or were close variants of your
-     * keyword), regardless of your keyword match types. Note: Search exact match
-     * impression share is reported in the range of 0.1 to 1. Any value below 0.1
-     * is reported as 0.0999.
+     * The number estimating how often your ad didn't show anywhere above the
+     * organic search results due to poor Ad Rank.
+     * Note: Search rank lost top impression share is reported in the range of 0
+     * to 0.9. Any value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.DoubleValue search_exact_match_impression_share = 49; + * .google.protobuf.DoubleValue search_rank_lost_top_impression_share = 91; */ - public com.google.protobuf.DoubleValue.Builder getSearchExactMatchImpressionShareBuilder() { + public com.google.protobuf.DoubleValue.Builder getSearchRankLostTopImpressionShareBuilder() { onChanged(); - return getSearchExactMatchImpressionShareFieldBuilder().getBuilder(); + return getSearchRankLostTopImpressionShareFieldBuilder().getBuilder(); } /** *
-     * The impressions you've received divided by the estimated number of
-     * impressions you were eligible to receive on the Search Network for search
-     * terms that matched your keywords exactly (or were close variants of your
-     * keyword), regardless of your keyword match types. Note: Search exact match
-     * impression share is reported in the range of 0.1 to 1. Any value below 0.1
-     * is reported as 0.0999.
+     * The number estimating how often your ad didn't show anywhere above the
+     * organic search results due to poor Ad Rank.
+     * Note: Search rank lost top impression share is reported in the range of 0
+     * to 0.9. Any value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.DoubleValue search_exact_match_impression_share = 49; + * .google.protobuf.DoubleValue search_rank_lost_top_impression_share = 91; */ - public com.google.protobuf.DoubleValueOrBuilder getSearchExactMatchImpressionShareOrBuilder() { - if (searchExactMatchImpressionShareBuilder_ != null) { - return searchExactMatchImpressionShareBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getSearchRankLostTopImpressionShareOrBuilder() { + if (searchRankLostTopImpressionShareBuilder_ != null) { + return searchRankLostTopImpressionShareBuilder_.getMessageOrBuilder(); } else { - return searchExactMatchImpressionShare_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : searchExactMatchImpressionShare_; + return searchRankLostTopImpressionShare_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : searchRankLostTopImpressionShare_; } } /** *
-     * The impressions you've received divided by the estimated number of
-     * impressions you were eligible to receive on the Search Network for search
-     * terms that matched your keywords exactly (or were close variants of your
-     * keyword), regardless of your keyword match types. Note: Search exact match
-     * impression share is reported in the range of 0.1 to 1. Any value below 0.1
-     * is reported as 0.0999.
+     * The number estimating how often your ad didn't show anywhere above the
+     * organic search results due to poor Ad Rank.
+     * Note: Search rank lost top impression share is reported in the range of 0
+     * to 0.9. Any value above 0.9 is reported as 0.9001.
      * 
* - * .google.protobuf.DoubleValue search_exact_match_impression_share = 49; + * .google.protobuf.DoubleValue search_rank_lost_top_impression_share = 91; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - getSearchExactMatchImpressionShareFieldBuilder() { - if (searchExactMatchImpressionShareBuilder_ == null) { - searchExactMatchImpressionShareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getSearchRankLostTopImpressionShareFieldBuilder() { + if (searchRankLostTopImpressionShareBuilder_ == null) { + searchRankLostTopImpressionShareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getSearchExactMatchImpressionShare(), + getSearchRankLostTopImpressionShare(), getParentForChildren(), isClean()); - searchExactMatchImpressionShare_ = null; + searchRankLostTopImpressionShare_ = null; } - return searchExactMatchImpressionShareBuilder_; + return searchRankLostTopImpressionShareBuilder_; } - private com.google.protobuf.DoubleValue searchImpressionShare_ = null; + private com.google.protobuf.DoubleValue searchTopImpressionShare_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> searchImpressionShareBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> searchTopImpressionShareBuilder_; /** *
-     * The impressions you've received on the Search Network divided
-     * by the estimated number of impressions you were eligible to receive.
-     * Note: Search impression share is reported in the range of 0.1 to 1. Any
+     * The impressions you've received in the top location (anywhere above the
+     * organic search results) compared to the estimated number of impressions you
+     * were eligible to receive in the top location.
+     * Note: Search top impression share is reported in the range of 0.1 to 1. Any
      * value below 0.1 is reported as 0.0999.
      * 
* - * .google.protobuf.DoubleValue search_impression_share = 50; + * .google.protobuf.DoubleValue search_top_impression_share = 92; */ - public boolean hasSearchImpressionShare() { - return searchImpressionShareBuilder_ != null || searchImpressionShare_ != null; + public boolean hasSearchTopImpressionShare() { + return searchTopImpressionShareBuilder_ != null || searchTopImpressionShare_ != null; } /** *
-     * The impressions you've received on the Search Network divided
-     * by the estimated number of impressions you were eligible to receive.
-     * Note: Search impression share is reported in the range of 0.1 to 1. Any
+     * The impressions you've received in the top location (anywhere above the
+     * organic search results) compared to the estimated number of impressions you
+     * were eligible to receive in the top location.
+     * Note: Search top impression share is reported in the range of 0.1 to 1. Any
      * value below 0.1 is reported as 0.0999.
      * 
* - * .google.protobuf.DoubleValue search_impression_share = 50; + * .google.protobuf.DoubleValue search_top_impression_share = 92; */ - public com.google.protobuf.DoubleValue getSearchImpressionShare() { - if (searchImpressionShareBuilder_ == null) { - return searchImpressionShare_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : searchImpressionShare_; + public com.google.protobuf.DoubleValue getSearchTopImpressionShare() { + if (searchTopImpressionShareBuilder_ == null) { + return searchTopImpressionShare_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : searchTopImpressionShare_; } else { - return searchImpressionShareBuilder_.getMessage(); + return searchTopImpressionShareBuilder_.getMessage(); } } /** *
-     * The impressions you've received on the Search Network divided
-     * by the estimated number of impressions you were eligible to receive.
-     * Note: Search impression share is reported in the range of 0.1 to 1. Any
+     * The impressions you've received in the top location (anywhere above the
+     * organic search results) compared to the estimated number of impressions you
+     * were eligible to receive in the top location.
+     * Note: Search top impression share is reported in the range of 0.1 to 1. Any
      * value below 0.1 is reported as 0.0999.
      * 
* - * .google.protobuf.DoubleValue search_impression_share = 50; + * .google.protobuf.DoubleValue search_top_impression_share = 92; */ - public Builder setSearchImpressionShare(com.google.protobuf.DoubleValue value) { - if (searchImpressionShareBuilder_ == null) { + public Builder setSearchTopImpressionShare(com.google.protobuf.DoubleValue value) { + if (searchTopImpressionShareBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - searchImpressionShare_ = value; + searchTopImpressionShare_ = value; onChanged(); } else { - searchImpressionShareBuilder_.setMessage(value); + searchTopImpressionShareBuilder_.setMessage(value); } return this; } /** *
-     * The impressions you've received on the Search Network divided
-     * by the estimated number of impressions you were eligible to receive.
-     * Note: Search impression share is reported in the range of 0.1 to 1. Any
+     * The impressions you've received in the top location (anywhere above the
+     * organic search results) compared to the estimated number of impressions you
+     * were eligible to receive in the top location.
+     * Note: Search top impression share is reported in the range of 0.1 to 1. Any
      * value below 0.1 is reported as 0.0999.
      * 
* - * .google.protobuf.DoubleValue search_impression_share = 50; + * .google.protobuf.DoubleValue search_top_impression_share = 92; */ - public Builder setSearchImpressionShare( + public Builder setSearchTopImpressionShare( com.google.protobuf.DoubleValue.Builder builderForValue) { - if (searchImpressionShareBuilder_ == null) { - searchImpressionShare_ = builderForValue.build(); + if (searchTopImpressionShareBuilder_ == null) { + searchTopImpressionShare_ = builderForValue.build(); onChanged(); } else { - searchImpressionShareBuilder_.setMessage(builderForValue.build()); + searchTopImpressionShareBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The impressions you've received on the Search Network divided
-     * by the estimated number of impressions you were eligible to receive.
-     * Note: Search impression share is reported in the range of 0.1 to 1. Any
+     * The impressions you've received in the top location (anywhere above the
+     * organic search results) compared to the estimated number of impressions you
+     * were eligible to receive in the top location.
+     * Note: Search top impression share is reported in the range of 0.1 to 1. Any
      * value below 0.1 is reported as 0.0999.
      * 
* - * .google.protobuf.DoubleValue search_impression_share = 50; + * .google.protobuf.DoubleValue search_top_impression_share = 92; */ - public Builder mergeSearchImpressionShare(com.google.protobuf.DoubleValue value) { - if (searchImpressionShareBuilder_ == null) { - if (searchImpressionShare_ != null) { - searchImpressionShare_ = - com.google.protobuf.DoubleValue.newBuilder(searchImpressionShare_).mergeFrom(value).buildPartial(); + public Builder mergeSearchTopImpressionShare(com.google.protobuf.DoubleValue value) { + if (searchTopImpressionShareBuilder_ == null) { + if (searchTopImpressionShare_ != null) { + searchTopImpressionShare_ = + com.google.protobuf.DoubleValue.newBuilder(searchTopImpressionShare_).mergeFrom(value).buildPartial(); } else { - searchImpressionShare_ = value; + searchTopImpressionShare_ = value; } onChanged(); } else { - searchImpressionShareBuilder_.mergeFrom(value); + searchTopImpressionShareBuilder_.mergeFrom(value); } return this; } /** *
-     * The impressions you've received on the Search Network divided
-     * by the estimated number of impressions you were eligible to receive.
-     * Note: Search impression share is reported in the range of 0.1 to 1. Any
+     * The impressions you've received in the top location (anywhere above the
+     * organic search results) compared to the estimated number of impressions you
+     * were eligible to receive in the top location.
+     * Note: Search top impression share is reported in the range of 0.1 to 1. Any
      * value below 0.1 is reported as 0.0999.
      * 
* - * .google.protobuf.DoubleValue search_impression_share = 50; + * .google.protobuf.DoubleValue search_top_impression_share = 92; */ - public Builder clearSearchImpressionShare() { - if (searchImpressionShareBuilder_ == null) { - searchImpressionShare_ = null; + public Builder clearSearchTopImpressionShare() { + if (searchTopImpressionShareBuilder_ == null) { + searchTopImpressionShare_ = null; onChanged(); } else { - searchImpressionShare_ = null; - searchImpressionShareBuilder_ = null; + searchTopImpressionShare_ = null; + searchTopImpressionShareBuilder_ = null; } return this; } /** *
-     * The impressions you've received on the Search Network divided
-     * by the estimated number of impressions you were eligible to receive.
-     * Note: Search impression share is reported in the range of 0.1 to 1. Any
+     * The impressions you've received in the top location (anywhere above the
+     * organic search results) compared to the estimated number of impressions you
+     * were eligible to receive in the top location.
+     * Note: Search top impression share is reported in the range of 0.1 to 1. Any
      * value below 0.1 is reported as 0.0999.
      * 
* - * .google.protobuf.DoubleValue search_impression_share = 50; + * .google.protobuf.DoubleValue search_top_impression_share = 92; */ - public com.google.protobuf.DoubleValue.Builder getSearchImpressionShareBuilder() { + public com.google.protobuf.DoubleValue.Builder getSearchTopImpressionShareBuilder() { onChanged(); - return getSearchImpressionShareFieldBuilder().getBuilder(); + return getSearchTopImpressionShareFieldBuilder().getBuilder(); } /** *
-     * The impressions you've received on the Search Network divided
-     * by the estimated number of impressions you were eligible to receive.
-     * Note: Search impression share is reported in the range of 0.1 to 1. Any
+     * The impressions you've received in the top location (anywhere above the
+     * organic search results) compared to the estimated number of impressions you
+     * were eligible to receive in the top location.
+     * Note: Search top impression share is reported in the range of 0.1 to 1. Any
      * value below 0.1 is reported as 0.0999.
      * 
* - * .google.protobuf.DoubleValue search_impression_share = 50; + * .google.protobuf.DoubleValue search_top_impression_share = 92; */ - public com.google.protobuf.DoubleValueOrBuilder getSearchImpressionShareOrBuilder() { - if (searchImpressionShareBuilder_ != null) { - return searchImpressionShareBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getSearchTopImpressionShareOrBuilder() { + if (searchTopImpressionShareBuilder_ != null) { + return searchTopImpressionShareBuilder_.getMessageOrBuilder(); } else { - return searchImpressionShare_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : searchImpressionShare_; + return searchTopImpressionShare_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : searchTopImpressionShare_; } } /** *
-     * The impressions you've received on the Search Network divided
-     * by the estimated number of impressions you were eligible to receive.
-     * Note: Search impression share is reported in the range of 0.1 to 1. Any
+     * The impressions you've received in the top location (anywhere above the
+     * organic search results) compared to the estimated number of impressions you
+     * were eligible to receive in the top location.
+     * Note: Search top impression share is reported in the range of 0.1 to 1. Any
      * value below 0.1 is reported as 0.0999.
      * 
* - * .google.protobuf.DoubleValue search_impression_share = 50; + * .google.protobuf.DoubleValue search_top_impression_share = 92; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - getSearchImpressionShareFieldBuilder() { - if (searchImpressionShareBuilder_ == null) { - searchImpressionShareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getSearchTopImpressionShareFieldBuilder() { + if (searchTopImpressionShareBuilder_ == null) { + searchTopImpressionShareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getSearchImpressionShare(), + getSearchTopImpressionShare(), getParentForChildren(), isClean()); - searchImpressionShare_ = null; + searchTopImpressionShare_ = null; } - return searchImpressionShareBuilder_; + return searchTopImpressionShareBuilder_; } - private com.google.protobuf.DoubleValue searchRankLostImpressionShare_ = null; + private com.google.protobuf.DoubleValue topImpressionPercentage_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> searchRankLostImpressionShareBuilder_; + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> topImpressionPercentageBuilder_; /** *
-     * The estimated percentage of impressions on the Search Network
-     * that your ads didn't receive due to poor Ad Rank.
-     * Note: Search rank lost impression share is reported in the range of 0 to
-     * 0.9. Any value above 0.9 is reported as 0.9001.
+     * The percent of your ad impressions that are shown anywhere above the
+     * organic search results.
      * 
* - * .google.protobuf.DoubleValue search_rank_lost_impression_share = 51; + * .google.protobuf.DoubleValue top_impression_percentage = 93; */ - public boolean hasSearchRankLostImpressionShare() { - return searchRankLostImpressionShareBuilder_ != null || searchRankLostImpressionShare_ != null; + public boolean hasTopImpressionPercentage() { + return topImpressionPercentageBuilder_ != null || topImpressionPercentage_ != null; } /** *
-     * The estimated percentage of impressions on the Search Network
-     * that your ads didn't receive due to poor Ad Rank.
-     * Note: Search rank lost impression share is reported in the range of 0 to
-     * 0.9. Any value above 0.9 is reported as 0.9001.
+     * The percent of your ad impressions that are shown anywhere above the
+     * organic search results.
      * 
* - * .google.protobuf.DoubleValue search_rank_lost_impression_share = 51; + * .google.protobuf.DoubleValue top_impression_percentage = 93; */ - public com.google.protobuf.DoubleValue getSearchRankLostImpressionShare() { - if (searchRankLostImpressionShareBuilder_ == null) { - return searchRankLostImpressionShare_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : searchRankLostImpressionShare_; + public com.google.protobuf.DoubleValue getTopImpressionPercentage() { + if (topImpressionPercentageBuilder_ == null) { + return topImpressionPercentage_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : topImpressionPercentage_; } else { - return searchRankLostImpressionShareBuilder_.getMessage(); + return topImpressionPercentageBuilder_.getMessage(); } } /** *
-     * The estimated percentage of impressions on the Search Network
-     * that your ads didn't receive due to poor Ad Rank.
-     * Note: Search rank lost impression share is reported in the range of 0 to
-     * 0.9. Any value above 0.9 is reported as 0.9001.
+     * The percent of your ad impressions that are shown anywhere above the
+     * organic search results.
      * 
* - * .google.protobuf.DoubleValue search_rank_lost_impression_share = 51; + * .google.protobuf.DoubleValue top_impression_percentage = 93; */ - public Builder setSearchRankLostImpressionShare(com.google.protobuf.DoubleValue value) { - if (searchRankLostImpressionShareBuilder_ == null) { + public Builder setTopImpressionPercentage(com.google.protobuf.DoubleValue value) { + if (topImpressionPercentageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - searchRankLostImpressionShare_ = value; + topImpressionPercentage_ = value; onChanged(); } else { - searchRankLostImpressionShareBuilder_.setMessage(value); + topImpressionPercentageBuilder_.setMessage(value); } return this; } /** *
-     * The estimated percentage of impressions on the Search Network
-     * that your ads didn't receive due to poor Ad Rank.
-     * Note: Search rank lost impression share is reported in the range of 0 to
-     * 0.9. Any value above 0.9 is reported as 0.9001.
+     * The percent of your ad impressions that are shown anywhere above the
+     * organic search results.
      * 
* - * .google.protobuf.DoubleValue search_rank_lost_impression_share = 51; + * .google.protobuf.DoubleValue top_impression_percentage = 93; */ - public Builder setSearchRankLostImpressionShare( + public Builder setTopImpressionPercentage( com.google.protobuf.DoubleValue.Builder builderForValue) { - if (searchRankLostImpressionShareBuilder_ == null) { - searchRankLostImpressionShare_ = builderForValue.build(); + if (topImpressionPercentageBuilder_ == null) { + topImpressionPercentage_ = builderForValue.build(); onChanged(); } else { - searchRankLostImpressionShareBuilder_.setMessage(builderForValue.build()); + topImpressionPercentageBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The estimated percentage of impressions on the Search Network
-     * that your ads didn't receive due to poor Ad Rank.
-     * Note: Search rank lost impression share is reported in the range of 0 to
-     * 0.9. Any value above 0.9 is reported as 0.9001.
+     * The percent of your ad impressions that are shown anywhere above the
+     * organic search results.
      * 
* - * .google.protobuf.DoubleValue search_rank_lost_impression_share = 51; + * .google.protobuf.DoubleValue top_impression_percentage = 93; */ - public Builder mergeSearchRankLostImpressionShare(com.google.protobuf.DoubleValue value) { - if (searchRankLostImpressionShareBuilder_ == null) { - if (searchRankLostImpressionShare_ != null) { - searchRankLostImpressionShare_ = - com.google.protobuf.DoubleValue.newBuilder(searchRankLostImpressionShare_).mergeFrom(value).buildPartial(); + public Builder mergeTopImpressionPercentage(com.google.protobuf.DoubleValue value) { + if (topImpressionPercentageBuilder_ == null) { + if (topImpressionPercentage_ != null) { + topImpressionPercentage_ = + com.google.protobuf.DoubleValue.newBuilder(topImpressionPercentage_).mergeFrom(value).buildPartial(); } else { - searchRankLostImpressionShare_ = value; + topImpressionPercentage_ = value; } onChanged(); } else { - searchRankLostImpressionShareBuilder_.mergeFrom(value); + topImpressionPercentageBuilder_.mergeFrom(value); } return this; } /** *
-     * The estimated percentage of impressions on the Search Network
-     * that your ads didn't receive due to poor Ad Rank.
-     * Note: Search rank lost impression share is reported in the range of 0 to
-     * 0.9. Any value above 0.9 is reported as 0.9001.
+     * The percent of your ad impressions that are shown anywhere above the
+     * organic search results.
      * 
* - * .google.protobuf.DoubleValue search_rank_lost_impression_share = 51; + * .google.protobuf.DoubleValue top_impression_percentage = 93; */ - public Builder clearSearchRankLostImpressionShare() { - if (searchRankLostImpressionShareBuilder_ == null) { - searchRankLostImpressionShare_ = null; + public Builder clearTopImpressionPercentage() { + if (topImpressionPercentageBuilder_ == null) { + topImpressionPercentage_ = null; onChanged(); } else { - searchRankLostImpressionShare_ = null; - searchRankLostImpressionShareBuilder_ = null; + topImpressionPercentage_ = null; + topImpressionPercentageBuilder_ = null; } return this; } /** *
-     * The estimated percentage of impressions on the Search Network
-     * that your ads didn't receive due to poor Ad Rank.
-     * Note: Search rank lost impression share is reported in the range of 0 to
-     * 0.9. Any value above 0.9 is reported as 0.9001.
+     * The percent of your ad impressions that are shown anywhere above the
+     * organic search results.
      * 
* - * .google.protobuf.DoubleValue search_rank_lost_impression_share = 51; + * .google.protobuf.DoubleValue top_impression_percentage = 93; */ - public com.google.protobuf.DoubleValue.Builder getSearchRankLostImpressionShareBuilder() { + public com.google.protobuf.DoubleValue.Builder getTopImpressionPercentageBuilder() { onChanged(); - return getSearchRankLostImpressionShareFieldBuilder().getBuilder(); + return getTopImpressionPercentageFieldBuilder().getBuilder(); } /** *
-     * The estimated percentage of impressions on the Search Network
-     * that your ads didn't receive due to poor Ad Rank.
-     * Note: Search rank lost impression share is reported in the range of 0 to
-     * 0.9. Any value above 0.9 is reported as 0.9001.
+     * The percent of your ad impressions that are shown anywhere above the
+     * organic search results.
      * 
* - * .google.protobuf.DoubleValue search_rank_lost_impression_share = 51; + * .google.protobuf.DoubleValue top_impression_percentage = 93; */ - public com.google.protobuf.DoubleValueOrBuilder getSearchRankLostImpressionShareOrBuilder() { - if (searchRankLostImpressionShareBuilder_ != null) { - return searchRankLostImpressionShareBuilder_.getMessageOrBuilder(); + public com.google.protobuf.DoubleValueOrBuilder getTopImpressionPercentageOrBuilder() { + if (topImpressionPercentageBuilder_ != null) { + return topImpressionPercentageBuilder_.getMessageOrBuilder(); } else { - return searchRankLostImpressionShare_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : searchRankLostImpressionShare_; + return topImpressionPercentage_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : topImpressionPercentage_; } } /** *
-     * The estimated percentage of impressions on the Search Network
-     * that your ads didn't receive due to poor Ad Rank.
-     * Note: Search rank lost impression share is reported in the range of 0 to
-     * 0.9. Any value above 0.9 is reported as 0.9001.
+     * The percent of your ad impressions that are shown anywhere above the
+     * organic search results.
      * 
* - * .google.protobuf.DoubleValue search_rank_lost_impression_share = 51; + * .google.protobuf.DoubleValue top_impression_percentage = 93; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - getSearchRankLostImpressionShareFieldBuilder() { - if (searchRankLostImpressionShareBuilder_ == null) { - searchRankLostImpressionShareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getTopImpressionPercentageFieldBuilder() { + if (topImpressionPercentageBuilder_ == null) { + topImpressionPercentageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getSearchRankLostImpressionShare(), + getTopImpressionPercentage(), getParentForChildren(), isClean()); - searchRankLostImpressionShare_ = null; + topImpressionPercentage_ = null; } - return searchRankLostImpressionShareBuilder_; + return topImpressionPercentageBuilder_; } private com.google.protobuf.DoubleValue valuePerAllConversions_ = null; @@ -12492,7 +20995,9 @@ public com.google.protobuf.DoubleValueOrBuilder getValuePerAllConversionsOrBuild com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> valuePerConversionBuilder_; /** *
-     * The value of conversions divided by the number of conversions.
+     * The value of conversions divided by the number of conversions. This only
+     * includes conversion actions which include_in_conversions_metric attribute
+     * is set to true.
      * 
* * .google.protobuf.DoubleValue value_per_conversion = 53; @@ -12502,7 +21007,9 @@ public boolean hasValuePerConversion() { } /** *
-     * The value of conversions divided by the number of conversions.
+     * The value of conversions divided by the number of conversions. This only
+     * includes conversion actions which include_in_conversions_metric attribute
+     * is set to true.
      * 
* * .google.protobuf.DoubleValue value_per_conversion = 53; @@ -12516,7 +21023,9 @@ public com.google.protobuf.DoubleValue getValuePerConversion() { } /** *
-     * The value of conversions divided by the number of conversions.
+     * The value of conversions divided by the number of conversions. This only
+     * includes conversion actions which include_in_conversions_metric attribute
+     * is set to true.
      * 
* * .google.protobuf.DoubleValue value_per_conversion = 53; @@ -12536,7 +21045,9 @@ public Builder setValuePerConversion(com.google.protobuf.DoubleValue value) { } /** *
-     * The value of conversions divided by the number of conversions.
+     * The value of conversions divided by the number of conversions. This only
+     * includes conversion actions which include_in_conversions_metric attribute
+     * is set to true.
      * 
* * .google.protobuf.DoubleValue value_per_conversion = 53; @@ -12554,7 +21065,9 @@ public Builder setValuePerConversion( } /** *
-     * The value of conversions divided by the number of conversions.
+     * The value of conversions divided by the number of conversions. This only
+     * includes conversion actions which include_in_conversions_metric attribute
+     * is set to true.
      * 
* * .google.protobuf.DoubleValue value_per_conversion = 53; @@ -12576,7 +21089,9 @@ public Builder mergeValuePerConversion(com.google.protobuf.DoubleValue value) { } /** *
-     * The value of conversions divided by the number of conversions.
+     * The value of conversions divided by the number of conversions. This only
+     * includes conversion actions which include_in_conversions_metric attribute
+     * is set to true.
      * 
* * .google.protobuf.DoubleValue value_per_conversion = 53; @@ -12594,7 +21109,9 @@ public Builder clearValuePerConversion() { } /** *
-     * The value of conversions divided by the number of conversions.
+     * The value of conversions divided by the number of conversions. This only
+     * includes conversion actions which include_in_conversions_metric attribute
+     * is set to true.
      * 
* * .google.protobuf.DoubleValue value_per_conversion = 53; @@ -12606,7 +21123,9 @@ public com.google.protobuf.DoubleValue.Builder getValuePerConversionBuilder() { } /** *
-     * The value of conversions divided by the number of conversions.
+     * The value of conversions divided by the number of conversions. This only
+     * includes conversion actions which include_in_conversions_metric attribute
+     * is set to true.
      * 
* * .google.protobuf.DoubleValue value_per_conversion = 53; @@ -12621,7 +21140,9 @@ public com.google.protobuf.DoubleValueOrBuilder getValuePerConversionOrBuilder() } /** *
-     * The value of conversions divided by the number of conversions.
+     * The value of conversions divided by the number of conversions. This only
+     * includes conversion actions which include_in_conversions_metric attribute
+     * is set to true.
      * 
* * .google.protobuf.DoubleValue value_per_conversion = 53; @@ -12640,6 +21161,177 @@ public com.google.protobuf.DoubleValueOrBuilder getValuePerConversionOrBuilder() return valuePerConversionBuilder_; } + private com.google.protobuf.DoubleValue valuePerCurrentModelAttributedConversion_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> valuePerCurrentModelAttributedConversionBuilder_; + /** + *
+     * The value of current model attributed conversions divided by the number of
+     * the conversions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue value_per_current_model_attributed_conversion = 94; + */ + public boolean hasValuePerCurrentModelAttributedConversion() { + return valuePerCurrentModelAttributedConversionBuilder_ != null || valuePerCurrentModelAttributedConversion_ != null; + } + /** + *
+     * The value of current model attributed conversions divided by the number of
+     * the conversions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue value_per_current_model_attributed_conversion = 94; + */ + public com.google.protobuf.DoubleValue getValuePerCurrentModelAttributedConversion() { + if (valuePerCurrentModelAttributedConversionBuilder_ == null) { + return valuePerCurrentModelAttributedConversion_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : valuePerCurrentModelAttributedConversion_; + } else { + return valuePerCurrentModelAttributedConversionBuilder_.getMessage(); + } + } + /** + *
+     * The value of current model attributed conversions divided by the number of
+     * the conversions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue value_per_current_model_attributed_conversion = 94; + */ + public Builder setValuePerCurrentModelAttributedConversion(com.google.protobuf.DoubleValue value) { + if (valuePerCurrentModelAttributedConversionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + valuePerCurrentModelAttributedConversion_ = value; + onChanged(); + } else { + valuePerCurrentModelAttributedConversionBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The value of current model attributed conversions divided by the number of
+     * the conversions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue value_per_current_model_attributed_conversion = 94; + */ + public Builder setValuePerCurrentModelAttributedConversion( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (valuePerCurrentModelAttributedConversionBuilder_ == null) { + valuePerCurrentModelAttributedConversion_ = builderForValue.build(); + onChanged(); + } else { + valuePerCurrentModelAttributedConversionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The value of current model attributed conversions divided by the number of
+     * the conversions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue value_per_current_model_attributed_conversion = 94; + */ + public Builder mergeValuePerCurrentModelAttributedConversion(com.google.protobuf.DoubleValue value) { + if (valuePerCurrentModelAttributedConversionBuilder_ == null) { + if (valuePerCurrentModelAttributedConversion_ != null) { + valuePerCurrentModelAttributedConversion_ = + com.google.protobuf.DoubleValue.newBuilder(valuePerCurrentModelAttributedConversion_).mergeFrom(value).buildPartial(); + } else { + valuePerCurrentModelAttributedConversion_ = value; + } + onChanged(); + } else { + valuePerCurrentModelAttributedConversionBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The value of current model attributed conversions divided by the number of
+     * the conversions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue value_per_current_model_attributed_conversion = 94; + */ + public Builder clearValuePerCurrentModelAttributedConversion() { + if (valuePerCurrentModelAttributedConversionBuilder_ == null) { + valuePerCurrentModelAttributedConversion_ = null; + onChanged(); + } else { + valuePerCurrentModelAttributedConversion_ = null; + valuePerCurrentModelAttributedConversionBuilder_ = null; + } + + return this; + } + /** + *
+     * The value of current model attributed conversions divided by the number of
+     * the conversions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue value_per_current_model_attributed_conversion = 94; + */ + public com.google.protobuf.DoubleValue.Builder getValuePerCurrentModelAttributedConversionBuilder() { + + onChanged(); + return getValuePerCurrentModelAttributedConversionFieldBuilder().getBuilder(); + } + /** + *
+     * The value of current model attributed conversions divided by the number of
+     * the conversions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue value_per_current_model_attributed_conversion = 94; + */ + public com.google.protobuf.DoubleValueOrBuilder getValuePerCurrentModelAttributedConversionOrBuilder() { + if (valuePerCurrentModelAttributedConversionBuilder_ != null) { + return valuePerCurrentModelAttributedConversionBuilder_.getMessageOrBuilder(); + } else { + return valuePerCurrentModelAttributedConversion_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : valuePerCurrentModelAttributedConversion_; + } + } + /** + *
+     * The value of current model attributed conversions divided by the number of
+     * the conversions. This only includes conversion actions which
+     * include_in_conversions_metric attribute is set to true.
+     * 
+ * + * .google.protobuf.DoubleValue value_per_current_model_attributed_conversion = 94; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> + getValuePerCurrentModelAttributedConversionFieldBuilder() { + if (valuePerCurrentModelAttributedConversionBuilder_ == null) { + valuePerCurrentModelAttributedConversionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( + getValuePerCurrentModelAttributedConversion(), + getParentForChildren(), + isClean()); + valuePerCurrentModelAttributedConversion_ = null; + } + return valuePerCurrentModelAttributedConversionBuilder_; + } + private com.google.protobuf.DoubleValue videoQuartile100Rate_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> videoQuartile100RateBuilder_; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/MetricsOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/MetricsOrBuilder.java index ae66bb18b0..dad2e21de8 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/common/MetricsOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/MetricsOrBuilder.java @@ -7,6 +7,227 @@ public interface MetricsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.common.Metrics) com.google.protobuf.MessageOrBuilder { + /** + *
+   * The percent of your ad impressions that are shown as the very first ad
+   * above the organic search results.
+   * 
+ * + * .google.protobuf.DoubleValue absolute_top_impression_percentage = 95; + */ + boolean hasAbsoluteTopImpressionPercentage(); + /** + *
+   * The percent of your ad impressions that are shown as the very first ad
+   * above the organic search results.
+   * 
+ * + * .google.protobuf.DoubleValue absolute_top_impression_percentage = 95; + */ + com.google.protobuf.DoubleValue getAbsoluteTopImpressionPercentage(); + /** + *
+   * The percent of your ad impressions that are shown as the very first ad
+   * above the organic search results.
+   * 
+ * + * .google.protobuf.DoubleValue absolute_top_impression_percentage = 95; + */ + com.google.protobuf.DoubleValueOrBuilder getAbsoluteTopImpressionPercentageOrBuilder(); + + /** + *
+   * Average cost of viewable impressions (`active_view_impressions`).
+   * 
+ * + * .google.protobuf.DoubleValue active_view_cpm = 1; + */ + boolean hasActiveViewCpm(); + /** + *
+   * Average cost of viewable impressions (`active_view_impressions`).
+   * 
+ * + * .google.protobuf.DoubleValue active_view_cpm = 1; + */ + com.google.protobuf.DoubleValue getActiveViewCpm(); + /** + *
+   * Average cost of viewable impressions (`active_view_impressions`).
+   * 
+ * + * .google.protobuf.DoubleValue active_view_cpm = 1; + */ + com.google.protobuf.DoubleValueOrBuilder getActiveViewCpmOrBuilder(); + + /** + *
+   * Active view measurable clicks divided by active view viewable impressions.
+   * This metric is reported only for display network.
+   * 
+ * + * .google.protobuf.DoubleValue active_view_ctr = 79; + */ + boolean hasActiveViewCtr(); + /** + *
+   * Active view measurable clicks divided by active view viewable impressions.
+   * This metric is reported only for display network.
+   * 
+ * + * .google.protobuf.DoubleValue active_view_ctr = 79; + */ + com.google.protobuf.DoubleValue getActiveViewCtr(); + /** + *
+   * Active view measurable clicks divided by active view viewable impressions.
+   * This metric is reported only for display network.
+   * 
+ * + * .google.protobuf.DoubleValue active_view_ctr = 79; + */ + com.google.protobuf.DoubleValueOrBuilder getActiveViewCtrOrBuilder(); + + /** + *
+   * A measurement of how often your ad has become viewable on a Display
+   * Network site.
+   * 
+ * + * .google.protobuf.Int64Value active_view_impressions = 2; + */ + boolean hasActiveViewImpressions(); + /** + *
+   * A measurement of how often your ad has become viewable on a Display
+   * Network site.
+   * 
+ * + * .google.protobuf.Int64Value active_view_impressions = 2; + */ + com.google.protobuf.Int64Value getActiveViewImpressions(); + /** + *
+   * A measurement of how often your ad has become viewable on a Display
+   * Network site.
+   * 
+ * + * .google.protobuf.Int64Value active_view_impressions = 2; + */ + com.google.protobuf.Int64ValueOrBuilder getActiveViewImpressionsOrBuilder(); + + /** + *
+   * The ratio of impressions that could be measured by Active View over the
+   * number of served impressions.
+   * 
+ * + * .google.protobuf.DoubleValue active_view_measurability = 96; + */ + boolean hasActiveViewMeasurability(); + /** + *
+   * The ratio of impressions that could be measured by Active View over the
+   * number of served impressions.
+   * 
+ * + * .google.protobuf.DoubleValue active_view_measurability = 96; + */ + com.google.protobuf.DoubleValue getActiveViewMeasurability(); + /** + *
+   * The ratio of impressions that could be measured by Active View over the
+   * number of served impressions.
+   * 
+ * + * .google.protobuf.DoubleValue active_view_measurability = 96; + */ + com.google.protobuf.DoubleValueOrBuilder getActiveViewMeasurabilityOrBuilder(); + + /** + *
+   * The cost of the impressions you received that were measurable by Active
+   * View.
+   * 
+ * + * .google.protobuf.Int64Value active_view_measurable_cost_micros = 3; + */ + boolean hasActiveViewMeasurableCostMicros(); + /** + *
+   * The cost of the impressions you received that were measurable by Active
+   * View.
+   * 
+ * + * .google.protobuf.Int64Value active_view_measurable_cost_micros = 3; + */ + com.google.protobuf.Int64Value getActiveViewMeasurableCostMicros(); + /** + *
+   * The cost of the impressions you received that were measurable by Active
+   * View.
+   * 
+ * + * .google.protobuf.Int64Value active_view_measurable_cost_micros = 3; + */ + com.google.protobuf.Int64ValueOrBuilder getActiveViewMeasurableCostMicrosOrBuilder(); + + /** + *
+   * The number of times your ads are appearing on placements in positions
+   * where they can be seen.
+   * 
+ * + * .google.protobuf.Int64Value active_view_measurable_impressions = 4; + */ + boolean hasActiveViewMeasurableImpressions(); + /** + *
+   * The number of times your ads are appearing on placements in positions
+   * where they can be seen.
+   * 
+ * + * .google.protobuf.Int64Value active_view_measurable_impressions = 4; + */ + com.google.protobuf.Int64Value getActiveViewMeasurableImpressions(); + /** + *
+   * The number of times your ads are appearing on placements in positions
+   * where they can be seen.
+   * 
+ * + * .google.protobuf.Int64Value active_view_measurable_impressions = 4; + */ + com.google.protobuf.Int64ValueOrBuilder getActiveViewMeasurableImpressionsOrBuilder(); + + /** + *
+   * The percentage of time when your ad appeared on an Active View enabled site
+   * (measurable impressions) and was viewable (viewable impressions).
+   * 
+ * + * .google.protobuf.DoubleValue active_view_viewability = 97; + */ + boolean hasActiveViewViewability(); + /** + *
+   * The percentage of time when your ad appeared on an Active View enabled site
+   * (measurable impressions) and was viewable (viewable impressions).
+   * 
+ * + * .google.protobuf.DoubleValue active_view_viewability = 97; + */ + com.google.protobuf.DoubleValue getActiveViewViewability(); + /** + *
+   * The percentage of time when your ad appeared on an Active View enabled site
+   * (measurable impressions) and was viewable (viewable impressions).
+   * 
+ * + * .google.protobuf.DoubleValue active_view_viewability = 97; + */ + com.google.protobuf.DoubleValueOrBuilder getActiveViewViewabilityOrBuilder(); + /** *
    * All conversions from interactions (as oppose to view through conversions)
@@ -62,8 +283,8 @@ public interface MetricsOrBuilder extends
 
   /**
    * 
-   * The total number of conversions. This includes "Conversions" plus
-   * conversions that have their "Include in Conversions" setting unchecked.
+   * The total number of conversions. This only includes conversion actions
+   * which include_in_conversions_metric attribute is set to true.
    * 
* * .google.protobuf.DoubleValue all_conversions = 7; @@ -71,8 +292,8 @@ public interface MetricsOrBuilder extends boolean hasAllConversions(); /** *
-   * The total number of conversions. This includes "Conversions" plus
-   * conversions that have their "Include in Conversions" setting unchecked.
+   * The total number of conversions. This only includes conversion actions
+   * which include_in_conversions_metric attribute is set to true.
    * 
* * .google.protobuf.DoubleValue all_conversions = 7; @@ -80,8 +301,8 @@ public interface MetricsOrBuilder extends com.google.protobuf.DoubleValue getAllConversions(); /** *
-   * The total number of conversions. This includes "Conversions" plus
-   * conversions that have their "Include in Conversions" setting unchecked.
+   * The total number of conversions. This only includes conversion actions
+   * which include_in_conversions_metric attribute is set to true.
    * 
* * .google.protobuf.DoubleValue all_conversions = 7; @@ -200,6 +421,37 @@ public interface MetricsOrBuilder extends */ com.google.protobuf.DoubleValueOrBuilder getAverageCpcOrBuilder(); + /** + *
+   * The average amount that you've been charged for an ad engagement. This
+   * amount is the total cost of all ad engagements divided by the total number
+   * of ad engagements.
+   * 
+ * + * .google.protobuf.DoubleValue average_cpe = 98; + */ + boolean hasAverageCpe(); + /** + *
+   * The average amount that you've been charged for an ad engagement. This
+   * amount is the total cost of all ad engagements divided by the total number
+   * of ad engagements.
+   * 
+ * + * .google.protobuf.DoubleValue average_cpe = 98; + */ + com.google.protobuf.DoubleValue getAverageCpe(); + /** + *
+   * The average amount that you've been charged for an ad engagement. This
+   * amount is the total cost of all ad engagements divided by the total number
+   * of ad engagements.
+   * 
+ * + * .google.protobuf.DoubleValue average_cpe = 98; + */ + com.google.protobuf.DoubleValueOrBuilder getAverageCpeOrBuilder(); + /** *
    * Average cost-per-thousand impressions (CPM).
@@ -256,6 +508,59 @@ public interface MetricsOrBuilder extends
    */
   com.google.protobuf.DoubleValueOrBuilder getAverageCpvOrBuilder();
 
+  /**
+   * 
+   * Average number of times a unique cookie was exposed to your ad
+   * over a given time period. Imported from Google Analytics.
+   * 
+ * + * .google.protobuf.DoubleValue average_frequency = 12; + */ + boolean hasAverageFrequency(); + /** + *
+   * Average number of times a unique cookie was exposed to your ad
+   * over a given time period. Imported from Google Analytics.
+   * 
+ * + * .google.protobuf.DoubleValue average_frequency = 12; + */ + com.google.protobuf.DoubleValue getAverageFrequency(); + /** + *
+   * Average number of times a unique cookie was exposed to your ad
+   * over a given time period. Imported from Google Analytics.
+   * 
+ * + * .google.protobuf.DoubleValue average_frequency = 12; + */ + com.google.protobuf.DoubleValueOrBuilder getAverageFrequencyOrBuilder(); + + /** + *
+   * Average number of pages viewed per session.
+   * 
+ * + * .google.protobuf.DoubleValue average_page_views = 99; + */ + boolean hasAveragePageViews(); + /** + *
+   * Average number of pages viewed per session.
+   * 
+ * + * .google.protobuf.DoubleValue average_page_views = 99; + */ + com.google.protobuf.DoubleValue getAveragePageViews(); + /** + *
+   * Average number of pages viewed per session.
+   * 
+ * + * .google.protobuf.DoubleValue average_page_views = 99; + */ + com.google.protobuf.DoubleValueOrBuilder getAveragePageViewsOrBuilder(); + /** *
    * Your ad's position relative to those of other advertisers.
@@ -281,6 +586,59 @@ public interface MetricsOrBuilder extends
    */
   com.google.protobuf.DoubleValueOrBuilder getAveragePositionOrBuilder();
 
+  /**
+   * 
+   * Total duration of all sessions (in seconds) / number of sessions. Imported
+   * from Google Analytics.
+   * 
+ * + * .google.protobuf.DoubleValue average_time_on_site = 84; + */ + boolean hasAverageTimeOnSite(); + /** + *
+   * Total duration of all sessions (in seconds) / number of sessions. Imported
+   * from Google Analytics.
+   * 
+ * + * .google.protobuf.DoubleValue average_time_on_site = 84; + */ + com.google.protobuf.DoubleValue getAverageTimeOnSite(); + /** + *
+   * Total duration of all sessions (in seconds) / number of sessions. Imported
+   * from Google Analytics.
+   * 
+ * + * .google.protobuf.DoubleValue average_time_on_site = 84; + */ + com.google.protobuf.DoubleValueOrBuilder getAverageTimeOnSiteOrBuilder(); + + /** + *
+   * An indication of how other advertisers are bidding on similar products.
+   * 
+ * + * .google.protobuf.DoubleValue benchmark_average_max_cpc = 14; + */ + boolean hasBenchmarkAverageMaxCpc(); + /** + *
+   * An indication of how other advertisers are bidding on similar products.
+   * 
+ * + * .google.protobuf.DoubleValue benchmark_average_max_cpc = 14; + */ + com.google.protobuf.DoubleValue getBenchmarkAverageMaxCpc(); + /** + *
+   * An indication of how other advertisers are bidding on similar products.
+   * 
+ * + * .google.protobuf.DoubleValue benchmark_average_max_cpc = 14; + */ + com.google.protobuf.DoubleValueOrBuilder getBenchmarkAverageMaxCpcOrBuilder(); + /** *
    * An indication on how other advertisers' Shopping ads for similar products
@@ -532,7 +890,9 @@ public interface MetricsOrBuilder extends
   /**
    * 
    * Conversions from interactions divided by the number of ad interactions
-   * (such as clicks for text ads or views for video ads).
+   * (such as clicks for text ads or views for video ads). This only includes
+   * conversion actions which include_in_conversions_metric attribute is set to
+   * true.
    * 
* * .google.protobuf.DoubleValue conversions_from_interactions_rate = 69; @@ -541,7 +901,9 @@ public interface MetricsOrBuilder extends /** *
    * Conversions from interactions divided by the number of ad interactions
-   * (such as clicks for text ads or views for video ads).
+   * (such as clicks for text ads or views for video ads). This only includes
+   * conversion actions which include_in_conversions_metric attribute is set to
+   * true.
    * 
* * .google.protobuf.DoubleValue conversions_from_interactions_rate = 69; @@ -550,7 +912,9 @@ public interface MetricsOrBuilder extends /** *
    * Conversions from interactions divided by the number of ad interactions
-   * (such as clicks for text ads or views for video ads).
+   * (such as clicks for text ads or views for video ads). This only includes
+   * conversion actions which include_in_conversions_metric attribute is set to
+   * true.
    * 
* * .google.protobuf.DoubleValue conversions_from_interactions_rate = 69; @@ -559,7 +923,8 @@ public interface MetricsOrBuilder extends /** *
-   * The total value of conversions.
+   * The total value of conversions. This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
    * 
* * .google.protobuf.DoubleValue conversions_value = 70; @@ -567,7 +932,8 @@ public interface MetricsOrBuilder extends boolean hasConversionsValue(); /** *
-   * The total value of conversions.
+   * The total value of conversions. This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
    * 
* * .google.protobuf.DoubleValue conversions_value = 70; @@ -575,7 +941,8 @@ public interface MetricsOrBuilder extends com.google.protobuf.DoubleValue getConversionsValue(); /** *
-   * The total value of conversions.
+   * The total value of conversions. This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
    * 
* * .google.protobuf.DoubleValue conversions_value = 70; @@ -584,7 +951,9 @@ public interface MetricsOrBuilder extends /** *
-   * The value of conversions divided by the cost of ad interactions.
+   * The value of conversions divided by the cost of ad interactions. This only
+   * includes conversion actions which include_in_conversions_metric attribute
+   * is set to true.
    * 
* * .google.protobuf.DoubleValue conversions_value_per_cost = 71; @@ -592,7 +961,9 @@ public interface MetricsOrBuilder extends boolean hasConversionsValuePerCost(); /** *
-   * The value of conversions divided by the cost of ad interactions.
+   * The value of conversions divided by the cost of ad interactions. This only
+   * includes conversion actions which include_in_conversions_metric attribute
+   * is set to true.
    * 
* * .google.protobuf.DoubleValue conversions_value_per_cost = 71; @@ -600,7 +971,9 @@ public interface MetricsOrBuilder extends com.google.protobuf.DoubleValue getConversionsValuePerCost(); /** *
-   * The value of conversions divided by the cost of ad interactions.
+   * The value of conversions divided by the cost of ad interactions. This only
+   * includes conversion actions which include_in_conversions_metric attribute
+   * is set to true.
    * 
* * .google.protobuf.DoubleValue conversions_value_per_cost = 71; @@ -610,7 +983,8 @@ public interface MetricsOrBuilder extends /** *
    * The value of conversions from interactions divided by the number of ad
-   * interactions.
+   * interactions. This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
    * 
* * .google.protobuf.DoubleValue conversions_from_interactions_value_per_interaction = 72; @@ -619,7 +993,8 @@ public interface MetricsOrBuilder extends /** *
    * The value of conversions from interactions divided by the number of ad
-   * interactions.
+   * interactions. This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
    * 
* * .google.protobuf.DoubleValue conversions_from_interactions_value_per_interaction = 72; @@ -628,7 +1003,8 @@ public interface MetricsOrBuilder extends /** *
    * The value of conversions from interactions divided by the number of ad
-   * interactions.
+   * interactions. This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
    * 
* * .google.protobuf.DoubleValue conversions_from_interactions_value_per_interaction = 72; @@ -637,8 +1013,8 @@ public interface MetricsOrBuilder extends /** *
-   * The number of conversions. This only includes conversion actions which have
-   * "Include in Conversions" checked.
+   * The number of conversions. This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
    * 
* * .google.protobuf.DoubleValue conversions = 25; @@ -646,8 +1022,8 @@ public interface MetricsOrBuilder extends boolean hasConversions(); /** *
-   * The number of conversions. This only includes conversion actions which have
-   * "Include in Conversions" checked.
+   * The number of conversions. This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
    * 
* * .google.protobuf.DoubleValue conversions = 25; @@ -655,8 +1031,8 @@ public interface MetricsOrBuilder extends com.google.protobuf.DoubleValue getConversions(); /** *
-   * The number of conversions. This only includes conversion actions which have
-   * "Include in Conversions" checked.
+   * The number of conversions. This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
    * 
* * .google.protobuf.DoubleValue conversions = 25; @@ -718,7 +1094,9 @@ public interface MetricsOrBuilder extends /** *
-   * The cost of ad interactions divided by conversions.
+   * The cost of ad interactions divided by conversions. This only includes
+   * conversion actions which include_in_conversions_metric attribute is set to
+   * true.
    * 
* * .google.protobuf.DoubleValue cost_per_conversion = 28; @@ -726,7 +1104,9 @@ public interface MetricsOrBuilder extends boolean hasCostPerConversion(); /** *
-   * The cost of ad interactions divided by conversions.
+   * The cost of ad interactions divided by conversions. This only includes
+   * conversion actions which include_in_conversions_metric attribute is set to
+   * true.
    * 
* * .google.protobuf.DoubleValue cost_per_conversion = 28; @@ -734,13 +1114,46 @@ public interface MetricsOrBuilder extends com.google.protobuf.DoubleValue getCostPerConversion(); /** *
-   * The cost of ad interactions divided by conversions.
+   * The cost of ad interactions divided by conversions. This only includes
+   * conversion actions which include_in_conversions_metric attribute is set to
+   * true.
    * 
* * .google.protobuf.DoubleValue cost_per_conversion = 28; */ com.google.protobuf.DoubleValueOrBuilder getCostPerConversionOrBuilder(); + /** + *
+   * The cost of ad interactions divided by current model attributed
+   * conversions. This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
+   * 
+ * + * .google.protobuf.DoubleValue cost_per_current_model_attributed_conversion = 106; + */ + boolean hasCostPerCurrentModelAttributedConversion(); + /** + *
+   * The cost of ad interactions divided by current model attributed
+   * conversions. This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
+   * 
+ * + * .google.protobuf.DoubleValue cost_per_current_model_attributed_conversion = 106; + */ + com.google.protobuf.DoubleValue getCostPerCurrentModelAttributedConversion(); + /** + *
+   * The cost of ad interactions divided by current model attributed
+   * conversions. This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
+   * 
+ * + * .google.protobuf.DoubleValue cost_per_current_model_attributed_conversion = 106; + */ + com.google.protobuf.DoubleValueOrBuilder getCostPerCurrentModelAttributedConversionOrBuilder(); + /** *
    * Conversions from when a customer clicks on a Google Ads ad on one device,
@@ -802,69 +1215,227 @@ public interface MetricsOrBuilder extends
 
   /**
    * 
-   * How often people engage with your ad after it's shown to them. This is the
-   * number of ad expansions divided by the number of times your ad is shown.
+   * Shows how your historic conversions data would look under the attribution
+   * model you've currently selected. This only includes conversion actions
+   * which include_in_conversions_metric attribute is set to true.
    * 
* - * .google.protobuf.DoubleValue engagement_rate = 31; + * .google.protobuf.DoubleValue current_model_attributed_conversions = 101; */ - boolean hasEngagementRate(); + boolean hasCurrentModelAttributedConversions(); /** *
-   * How often people engage with your ad after it's shown to them. This is the
-   * number of ad expansions divided by the number of times your ad is shown.
+   * Shows how your historic conversions data would look under the attribution
+   * model you've currently selected. This only includes conversion actions
+   * which include_in_conversions_metric attribute is set to true.
    * 
* - * .google.protobuf.DoubleValue engagement_rate = 31; + * .google.protobuf.DoubleValue current_model_attributed_conversions = 101; */ - com.google.protobuf.DoubleValue getEngagementRate(); + com.google.protobuf.DoubleValue getCurrentModelAttributedConversions(); /** *
-   * How often people engage with your ad after it's shown to them. This is the
-   * number of ad expansions divided by the number of times your ad is shown.
+   * Shows how your historic conversions data would look under the attribution
+   * model you've currently selected. This only includes conversion actions
+   * which include_in_conversions_metric attribute is set to true.
    * 
* - * .google.protobuf.DoubleValue engagement_rate = 31; + * .google.protobuf.DoubleValue current_model_attributed_conversions = 101; */ - com.google.protobuf.DoubleValueOrBuilder getEngagementRateOrBuilder(); + com.google.protobuf.DoubleValueOrBuilder getCurrentModelAttributedConversionsOrBuilder(); /** *
-   * The number of engagements.
-   * An engagement occurs when a viewer expands your Lightbox ad. Also, in the
-   * future, other ad types may support engagement metrics.
+   * Current model attributed conversions from interactions divided by the
+   * number of ad interactions (such as clicks for text ads or views for video
+   * ads). This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
    * 
* - * .google.protobuf.Int64Value engagements = 32; + * .google.protobuf.DoubleValue current_model_attributed_conversions_from_interactions_rate = 102; */ - boolean hasEngagements(); + boolean hasCurrentModelAttributedConversionsFromInteractionsRate(); /** *
-   * The number of engagements.
-   * An engagement occurs when a viewer expands your Lightbox ad. Also, in the
-   * future, other ad types may support engagement metrics.
+   * Current model attributed conversions from interactions divided by the
+   * number of ad interactions (such as clicks for text ads or views for video
+   * ads). This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
    * 
* - * .google.protobuf.Int64Value engagements = 32; + * .google.protobuf.DoubleValue current_model_attributed_conversions_from_interactions_rate = 102; */ - com.google.protobuf.Int64Value getEngagements(); + com.google.protobuf.DoubleValue getCurrentModelAttributedConversionsFromInteractionsRate(); /** *
-   * The number of engagements.
-   * An engagement occurs when a viewer expands your Lightbox ad. Also, in the
-   * future, other ad types may support engagement metrics.
+   * Current model attributed conversions from interactions divided by the
+   * number of ad interactions (such as clicks for text ads or views for video
+   * ads). This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
    * 
* - * .google.protobuf.Int64Value engagements = 32; + * .google.protobuf.DoubleValue current_model_attributed_conversions_from_interactions_rate = 102; */ - com.google.protobuf.Int64ValueOrBuilder getEngagementsOrBuilder(); + com.google.protobuf.DoubleValueOrBuilder getCurrentModelAttributedConversionsFromInteractionsRateOrBuilder(); /** *
-   * Average lead value of hotel.
+   * The value of current model attributed conversions from interactions divided
+   * by the number of ad interactions. This only includes conversion actions
+   * which include_in_conversions_metric attribute is set to true.
    * 
* - * .google.protobuf.DoubleValue hotel_average_lead_value_micros = 75; + * .google.protobuf.DoubleValue current_model_attributed_conversions_from_interactions_value_per_interaction = 103; + */ + boolean hasCurrentModelAttributedConversionsFromInteractionsValuePerInteraction(); + /** + *
+   * The value of current model attributed conversions from interactions divided
+   * by the number of ad interactions. This only includes conversion actions
+   * which include_in_conversions_metric attribute is set to true.
+   * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_from_interactions_value_per_interaction = 103; + */ + com.google.protobuf.DoubleValue getCurrentModelAttributedConversionsFromInteractionsValuePerInteraction(); + /** + *
+   * The value of current model attributed conversions from interactions divided
+   * by the number of ad interactions. This only includes conversion actions
+   * which include_in_conversions_metric attribute is set to true.
+   * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_from_interactions_value_per_interaction = 103; + */ + com.google.protobuf.DoubleValueOrBuilder getCurrentModelAttributedConversionsFromInteractionsValuePerInteractionOrBuilder(); + + /** + *
+   * The total value of current model attributed conversions. This only includes
+   * conversion actions which include_in_conversions_metric attribute is set to
+   * true.
+   * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_value = 104; + */ + boolean hasCurrentModelAttributedConversionsValue(); + /** + *
+   * The total value of current model attributed conversions. This only includes
+   * conversion actions which include_in_conversions_metric attribute is set to
+   * true.
+   * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_value = 104; + */ + com.google.protobuf.DoubleValue getCurrentModelAttributedConversionsValue(); + /** + *
+   * The total value of current model attributed conversions. This only includes
+   * conversion actions which include_in_conversions_metric attribute is set to
+   * true.
+   * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_value = 104; + */ + com.google.protobuf.DoubleValueOrBuilder getCurrentModelAttributedConversionsValueOrBuilder(); + + /** + *
+   * The value of current model attributed conversions divided by the cost of ad
+   * interactions. This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
+   * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_value_per_cost = 105; + */ + boolean hasCurrentModelAttributedConversionsValuePerCost(); + /** + *
+   * The value of current model attributed conversions divided by the cost of ad
+   * interactions. This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
+   * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_value_per_cost = 105; + */ + com.google.protobuf.DoubleValue getCurrentModelAttributedConversionsValuePerCost(); + /** + *
+   * The value of current model attributed conversions divided by the cost of ad
+   * interactions. This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
+   * 
+ * + * .google.protobuf.DoubleValue current_model_attributed_conversions_value_per_cost = 105; + */ + com.google.protobuf.DoubleValueOrBuilder getCurrentModelAttributedConversionsValuePerCostOrBuilder(); + + /** + *
+   * How often people engage with your ad after it's shown to them. This is the
+   * number of ad expansions divided by the number of times your ad is shown.
+   * 
+ * + * .google.protobuf.DoubleValue engagement_rate = 31; + */ + boolean hasEngagementRate(); + /** + *
+   * How often people engage with your ad after it's shown to them. This is the
+   * number of ad expansions divided by the number of times your ad is shown.
+   * 
+ * + * .google.protobuf.DoubleValue engagement_rate = 31; + */ + com.google.protobuf.DoubleValue getEngagementRate(); + /** + *
+   * How often people engage with your ad after it's shown to them. This is the
+   * number of ad expansions divided by the number of times your ad is shown.
+   * 
+ * + * .google.protobuf.DoubleValue engagement_rate = 31; + */ + com.google.protobuf.DoubleValueOrBuilder getEngagementRateOrBuilder(); + + /** + *
+   * The number of engagements.
+   * An engagement occurs when a viewer expands your Lightbox ad. Also, in the
+   * future, other ad types may support engagement metrics.
+   * 
+ * + * .google.protobuf.Int64Value engagements = 32; + */ + boolean hasEngagements(); + /** + *
+   * The number of engagements.
+   * An engagement occurs when a viewer expands your Lightbox ad. Also, in the
+   * future, other ad types may support engagement metrics.
+   * 
+ * + * .google.protobuf.Int64Value engagements = 32; + */ + com.google.protobuf.Int64Value getEngagements(); + /** + *
+   * The number of engagements.
+   * An engagement occurs when a viewer expands your Lightbox ad. Also, in the
+   * future, other ad types may support engagement metrics.
+   * 
+ * + * .google.protobuf.Int64Value engagements = 32; + */ + com.google.protobuf.Int64ValueOrBuilder getEngagementsOrBuilder(); + + /** + *
+   * Average lead value of hotel.
+   * 
+ * + * .google.protobuf.DoubleValue hotel_average_lead_value_micros = 75; */ boolean hasHotelAverageLeadValueMicros(); /** @@ -884,6 +1455,191 @@ public interface MetricsOrBuilder extends */ com.google.protobuf.DoubleValueOrBuilder getHotelAverageLeadValueMicrosOrBuilder(); + /** + *
+   * The creative historical quality score.
+   * 
+ * + * .google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket historical_creative_quality_score = 80; + */ + int getHistoricalCreativeQualityScoreValue(); + /** + *
+   * The creative historical quality score.
+   * 
+ * + * .google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket historical_creative_quality_score = 80; + */ + com.google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket getHistoricalCreativeQualityScore(); + + /** + *
+   * The quality of historical landing page experience.
+   * 
+ * + * .google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket historical_landing_page_quality_score = 81; + */ + int getHistoricalLandingPageQualityScoreValue(); + /** + *
+   * The quality of historical landing page experience.
+   * 
+ * + * .google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket historical_landing_page_quality_score = 81; + */ + com.google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket getHistoricalLandingPageQualityScore(); + + /** + *
+   * The historical quality score.
+   * 
+ * + * .google.protobuf.Int64Value historical_quality_score = 82; + */ + boolean hasHistoricalQualityScore(); + /** + *
+   * The historical quality score.
+   * 
+ * + * .google.protobuf.Int64Value historical_quality_score = 82; + */ + com.google.protobuf.Int64Value getHistoricalQualityScore(); + /** + *
+   * The historical quality score.
+   * 
+ * + * .google.protobuf.Int64Value historical_quality_score = 82; + */ + com.google.protobuf.Int64ValueOrBuilder getHistoricalQualityScoreOrBuilder(); + + /** + *
+   * The historical search predicted click through rate (CTR).
+   * 
+ * + * .google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket historical_search_predicted_ctr = 83; + */ + int getHistoricalSearchPredictedCtrValue(); + /** + *
+   * The historical search predicted click through rate (CTR).
+   * 
+ * + * .google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket historical_search_predicted_ctr = 83; + */ + com.google.ads.googleads.v0.enums.QualityScoreBucketEnum.QualityScoreBucket getHistoricalSearchPredictedCtr(); + + /** + *
+   * The number of times the ad was forwarded to someone else as a message.
+   * 
+ * + * .google.protobuf.Int64Value gmail_forwards = 85; + */ + boolean hasGmailForwards(); + /** + *
+   * The number of times the ad was forwarded to someone else as a message.
+   * 
+ * + * .google.protobuf.Int64Value gmail_forwards = 85; + */ + com.google.protobuf.Int64Value getGmailForwards(); + /** + *
+   * The number of times the ad was forwarded to someone else as a message.
+   * 
+ * + * .google.protobuf.Int64Value gmail_forwards = 85; + */ + com.google.protobuf.Int64ValueOrBuilder getGmailForwardsOrBuilder(); + + /** + *
+   * The number of times someone has saved your Gmail ad to their inbox as a
+   * message.
+   * 
+ * + * .google.protobuf.Int64Value gmail_saves = 86; + */ + boolean hasGmailSaves(); + /** + *
+   * The number of times someone has saved your Gmail ad to their inbox as a
+   * message.
+   * 
+ * + * .google.protobuf.Int64Value gmail_saves = 86; + */ + com.google.protobuf.Int64Value getGmailSaves(); + /** + *
+   * The number of times someone has saved your Gmail ad to their inbox as a
+   * message.
+   * 
+ * + * .google.protobuf.Int64Value gmail_saves = 86; + */ + com.google.protobuf.Int64ValueOrBuilder getGmailSavesOrBuilder(); + + /** + *
+   * The number of clicks to the landing page on the expanded state of Gmail
+   * ads.
+   * 
+ * + * .google.protobuf.Int64Value gmail_secondary_clicks = 87; + */ + boolean hasGmailSecondaryClicks(); + /** + *
+   * The number of clicks to the landing page on the expanded state of Gmail
+   * ads.
+   * 
+ * + * .google.protobuf.Int64Value gmail_secondary_clicks = 87; + */ + com.google.protobuf.Int64Value getGmailSecondaryClicks(); + /** + *
+   * The number of clicks to the landing page on the expanded state of Gmail
+   * ads.
+   * 
+ * + * .google.protobuf.Int64Value gmail_secondary_clicks = 87; + */ + com.google.protobuf.Int64ValueOrBuilder getGmailSecondaryClicksOrBuilder(); + + /** + *
+   * Number of unique cookies that were exposed to your ad over a given time
+   * period.
+   * 
+ * + * .google.protobuf.Int64Value impression_reach = 36; + */ + boolean hasImpressionReach(); + /** + *
+   * Number of unique cookies that were exposed to your ad over a given time
+   * period.
+   * 
+ * + * .google.protobuf.Int64Value impression_reach = 36; + */ + com.google.protobuf.Int64Value getImpressionReach(); + /** + *
+   * Number of unique cookies that were exposed to your ad over a given time
+   * period.
+   * 
+ * + * .google.protobuf.Int64Value impression_reach = 36; + */ + com.google.protobuf.Int64ValueOrBuilder getImpressionReachOrBuilder(); + /** *
    * Count of how often your ad has appeared on a search results page or
@@ -974,6 +1730,48 @@ public interface MetricsOrBuilder extends
    */
   com.google.protobuf.Int64ValueOrBuilder getInteractionsOrBuilder();
 
+  /**
+   * 
+   * The types of payable and free interactions.
+   * 
+ * + * repeated .google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType interaction_event_types = 100; + */ + java.util.List getInteractionEventTypesList(); + /** + *
+   * The types of payable and free interactions.
+   * 
+ * + * repeated .google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType interaction_event_types = 100; + */ + int getInteractionEventTypesCount(); + /** + *
+   * The types of payable and free interactions.
+   * 
+ * + * repeated .google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType interaction_event_types = 100; + */ + com.google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType getInteractionEventTypes(int index); + /** + *
+   * The types of payable and free interactions.
+   * 
+ * + * repeated .google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType interaction_event_types = 100; + */ + java.util.List + getInteractionEventTypesValueList(); + /** + *
+   * The types of payable and free interactions.
+   * 
+ * + * repeated .google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType interaction_event_types = 100; + */ + int getInteractionEventTypesValue(int index); + /** *
    * The percentage of clicks filtered out of your total number of clicks
@@ -1166,8 +1964,8 @@ public interface MetricsOrBuilder extends
 
   /**
    * 
-   * The percentage of the customer's Shopping ad impressions that are shown in
-   * the most prominent Shopping position. See
+   * The percentage of the customer's Shopping or Search ad impressions that are
+   * shown in the most prominent Shopping position. See
    * <a href="https://support.google.com/adwords/answer/7501826">this Merchant
    * Center article</a> for details. Any value below 0.1 is reported as 0.0999.
    * 
@@ -1177,8 +1975,8 @@ public interface MetricsOrBuilder extends boolean hasSearchAbsoluteTopImpressionShare(); /** *
-   * The percentage of the customer's Shopping ad impressions that are shown in
-   * the most prominent Shopping position. See
+   * The percentage of the customer's Shopping or Search ad impressions that are
+   * shown in the most prominent Shopping position. See
    * <a href="https://support.google.com/adwords/answer/7501826">this Merchant
    * Center article</a> for details. Any value below 0.1 is reported as 0.0999.
    * 
@@ -1188,8 +1986,8 @@ public interface MetricsOrBuilder extends com.google.protobuf.DoubleValue getSearchAbsoluteTopImpressionShare(); /** *
-   * The percentage of the customer's Shopping ad impressions that are shown in
-   * the most prominent Shopping position. See
+   * The percentage of the customer's Shopping or Search ad impressions that are
+   * shown in the most prominent Shopping position. See
    * <a href="https://support.google.com/adwords/answer/7501826">this Merchant
    * Center article</a> for details. Any value below 0.1 is reported as 0.0999.
    * 
@@ -1198,6 +1996,40 @@ public interface MetricsOrBuilder extends */ com.google.protobuf.DoubleValueOrBuilder getSearchAbsoluteTopImpressionShareOrBuilder(); + /** + *
+   * The number estimating how often your ad wasn't the very first ad above the
+   * organic search results due to a low budget. Note: Search
+   * budget lost absolute top impression share is reported in the range of 0 to
+   * 0.9. Any value above 0.9 is reported as 0.9001.
+   * 
+ * + * .google.protobuf.DoubleValue search_budget_lost_absolute_top_impression_share = 88; + */ + boolean hasSearchBudgetLostAbsoluteTopImpressionShare(); + /** + *
+   * The number estimating how often your ad wasn't the very first ad above the
+   * organic search results due to a low budget. Note: Search
+   * budget lost absolute top impression share is reported in the range of 0 to
+   * 0.9. Any value above 0.9 is reported as 0.9001.
+   * 
+ * + * .google.protobuf.DoubleValue search_budget_lost_absolute_top_impression_share = 88; + */ + com.google.protobuf.DoubleValue getSearchBudgetLostAbsoluteTopImpressionShare(); + /** + *
+   * The number estimating how often your ad wasn't the very first ad above the
+   * organic search results due to a low budget. Note: Search
+   * budget lost absolute top impression share is reported in the range of 0 to
+   * 0.9. Any value above 0.9 is reported as 0.9001.
+   * 
+ * + * .google.protobuf.DoubleValue search_budget_lost_absolute_top_impression_share = 88; + */ + com.google.protobuf.DoubleValueOrBuilder getSearchBudgetLostAbsoluteTopImpressionShareOrBuilder(); + /** *
    * The estimated percent of times that your ad was eligible to show on the
@@ -1232,6 +2064,74 @@ public interface MetricsOrBuilder extends
    */
   com.google.protobuf.DoubleValueOrBuilder getSearchBudgetLostImpressionShareOrBuilder();
 
+  /**
+   * 
+   * The number estimating how often your ad didn't show anywhere above the
+   * organic search results due to a low budget. Note: Search
+   * budget lost top impression share is reported in the range of 0 to 0.9. Any
+   * value above 0.9 is reported as 0.9001.
+   * 
+ * + * .google.protobuf.DoubleValue search_budget_lost_top_impression_share = 89; + */ + boolean hasSearchBudgetLostTopImpressionShare(); + /** + *
+   * The number estimating how often your ad didn't show anywhere above the
+   * organic search results due to a low budget. Note: Search
+   * budget lost top impression share is reported in the range of 0 to 0.9. Any
+   * value above 0.9 is reported as 0.9001.
+   * 
+ * + * .google.protobuf.DoubleValue search_budget_lost_top_impression_share = 89; + */ + com.google.protobuf.DoubleValue getSearchBudgetLostTopImpressionShare(); + /** + *
+   * The number estimating how often your ad didn't show anywhere above the
+   * organic search results due to a low budget. Note: Search
+   * budget lost top impression share is reported in the range of 0 to 0.9. Any
+   * value above 0.9 is reported as 0.9001.
+   * 
+ * + * .google.protobuf.DoubleValue search_budget_lost_top_impression_share = 89; + */ + com.google.protobuf.DoubleValueOrBuilder getSearchBudgetLostTopImpressionShareOrBuilder(); + + /** + *
+   * The number of clicks you've received on the Search Network
+   * divided by the estimated number of clicks you were eligible to receive.
+   * Note: Search click share is reported in the range of 0.1 to 1. Any value
+   * below 0.1 is reported as 0.0999.
+   * 
+ * + * .google.protobuf.DoubleValue search_click_share = 48; + */ + boolean hasSearchClickShare(); + /** + *
+   * The number of clicks you've received on the Search Network
+   * divided by the estimated number of clicks you were eligible to receive.
+   * Note: Search click share is reported in the range of 0.1 to 1. Any value
+   * below 0.1 is reported as 0.0999.
+   * 
+ * + * .google.protobuf.DoubleValue search_click_share = 48; + */ + com.google.protobuf.DoubleValue getSearchClickShare(); + /** + *
+   * The number of clicks you've received on the Search Network
+   * divided by the estimated number of clicks you were eligible to receive.
+   * Note: Search click share is reported in the range of 0.1 to 1. Any value
+   * below 0.1 is reported as 0.0999.
+   * 
+ * + * .google.protobuf.DoubleValue search_click_share = 48; + */ + com.google.protobuf.DoubleValueOrBuilder getSearchClickShareOrBuilder(); + /** *
    * The impressions you've received divided by the estimated number of
@@ -1306,6 +2206,40 @@ public interface MetricsOrBuilder extends
    */
   com.google.protobuf.DoubleValueOrBuilder getSearchImpressionShareOrBuilder();
 
+  /**
+   * 
+   * The number estimating how often your ad wasn't the very first ad above the
+   * organic search results due to poor Ad Rank.
+   * Note: Search rank lost absolute top impression share is reported in the
+   * range of 0 to 0.9. Any value above 0.9 is reported as 0.9001.
+   * 
+ * + * .google.protobuf.DoubleValue search_rank_lost_absolute_top_impression_share = 90; + */ + boolean hasSearchRankLostAbsoluteTopImpressionShare(); + /** + *
+   * The number estimating how often your ad wasn't the very first ad above the
+   * organic search results due to poor Ad Rank.
+   * Note: Search rank lost absolute top impression share is reported in the
+   * range of 0 to 0.9. Any value above 0.9 is reported as 0.9001.
+   * 
+ * + * .google.protobuf.DoubleValue search_rank_lost_absolute_top_impression_share = 90; + */ + com.google.protobuf.DoubleValue getSearchRankLostAbsoluteTopImpressionShare(); + /** + *
+   * The number estimating how often your ad wasn't the very first ad above the
+   * organic search results due to poor Ad Rank.
+   * Note: Search rank lost absolute top impression share is reported in the
+   * range of 0 to 0.9. Any value above 0.9 is reported as 0.9001.
+   * 
+ * + * .google.protobuf.DoubleValue search_rank_lost_absolute_top_impression_share = 90; + */ + com.google.protobuf.DoubleValueOrBuilder getSearchRankLostAbsoluteTopImpressionShareOrBuilder(); + /** *
    * The estimated percentage of impressions on the Search Network
@@ -1340,6 +2274,105 @@ public interface MetricsOrBuilder extends
    */
   com.google.protobuf.DoubleValueOrBuilder getSearchRankLostImpressionShareOrBuilder();
 
+  /**
+   * 
+   * The number estimating how often your ad didn't show anywhere above the
+   * organic search results due to poor Ad Rank.
+   * Note: Search rank lost top impression share is reported in the range of 0
+   * to 0.9. Any value above 0.9 is reported as 0.9001.
+   * 
+ * + * .google.protobuf.DoubleValue search_rank_lost_top_impression_share = 91; + */ + boolean hasSearchRankLostTopImpressionShare(); + /** + *
+   * The number estimating how often your ad didn't show anywhere above the
+   * organic search results due to poor Ad Rank.
+   * Note: Search rank lost top impression share is reported in the range of 0
+   * to 0.9. Any value above 0.9 is reported as 0.9001.
+   * 
+ * + * .google.protobuf.DoubleValue search_rank_lost_top_impression_share = 91; + */ + com.google.protobuf.DoubleValue getSearchRankLostTopImpressionShare(); + /** + *
+   * The number estimating how often your ad didn't show anywhere above the
+   * organic search results due to poor Ad Rank.
+   * Note: Search rank lost top impression share is reported in the range of 0
+   * to 0.9. Any value above 0.9 is reported as 0.9001.
+   * 
+ * + * .google.protobuf.DoubleValue search_rank_lost_top_impression_share = 91; + */ + com.google.protobuf.DoubleValueOrBuilder getSearchRankLostTopImpressionShareOrBuilder(); + + /** + *
+   * The impressions you've received in the top location (anywhere above the
+   * organic search results) compared to the estimated number of impressions you
+   * were eligible to receive in the top location.
+   * Note: Search top impression share is reported in the range of 0.1 to 1. Any
+   * value below 0.1 is reported as 0.0999.
+   * 
+ * + * .google.protobuf.DoubleValue search_top_impression_share = 92; + */ + boolean hasSearchTopImpressionShare(); + /** + *
+   * The impressions you've received in the top location (anywhere above the
+   * organic search results) compared to the estimated number of impressions you
+   * were eligible to receive in the top location.
+   * Note: Search top impression share is reported in the range of 0.1 to 1. Any
+   * value below 0.1 is reported as 0.0999.
+   * 
+ * + * .google.protobuf.DoubleValue search_top_impression_share = 92; + */ + com.google.protobuf.DoubleValue getSearchTopImpressionShare(); + /** + *
+   * The impressions you've received in the top location (anywhere above the
+   * organic search results) compared to the estimated number of impressions you
+   * were eligible to receive in the top location.
+   * Note: Search top impression share is reported in the range of 0.1 to 1. Any
+   * value below 0.1 is reported as 0.0999.
+   * 
+ * + * .google.protobuf.DoubleValue search_top_impression_share = 92; + */ + com.google.protobuf.DoubleValueOrBuilder getSearchTopImpressionShareOrBuilder(); + + /** + *
+   * The percent of your ad impressions that are shown anywhere above the
+   * organic search results.
+   * 
+ * + * .google.protobuf.DoubleValue top_impression_percentage = 93; + */ + boolean hasTopImpressionPercentage(); + /** + *
+   * The percent of your ad impressions that are shown anywhere above the
+   * organic search results.
+   * 
+ * + * .google.protobuf.DoubleValue top_impression_percentage = 93; + */ + com.google.protobuf.DoubleValue getTopImpressionPercentage(); + /** + *
+   * The percent of your ad impressions that are shown anywhere above the
+   * organic search results.
+   * 
+ * + * .google.protobuf.DoubleValue top_impression_percentage = 93; + */ + com.google.protobuf.DoubleValueOrBuilder getTopImpressionPercentageOrBuilder(); + /** *
    * The value of all conversions divided by the number of all conversions.
@@ -1367,7 +2400,9 @@ public interface MetricsOrBuilder extends
 
   /**
    * 
-   * The value of conversions divided by the number of conversions.
+   * The value of conversions divided by the number of conversions. This only
+   * includes conversion actions which include_in_conversions_metric attribute
+   * is set to true.
    * 
* * .google.protobuf.DoubleValue value_per_conversion = 53; @@ -1375,7 +2410,9 @@ public interface MetricsOrBuilder extends boolean hasValuePerConversion(); /** *
-   * The value of conversions divided by the number of conversions.
+   * The value of conversions divided by the number of conversions. This only
+   * includes conversion actions which include_in_conversions_metric attribute
+   * is set to true.
    * 
* * .google.protobuf.DoubleValue value_per_conversion = 53; @@ -1383,13 +2420,46 @@ public interface MetricsOrBuilder extends com.google.protobuf.DoubleValue getValuePerConversion(); /** *
-   * The value of conversions divided by the number of conversions.
+   * The value of conversions divided by the number of conversions. This only
+   * includes conversion actions which include_in_conversions_metric attribute
+   * is set to true.
    * 
* * .google.protobuf.DoubleValue value_per_conversion = 53; */ com.google.protobuf.DoubleValueOrBuilder getValuePerConversionOrBuilder(); + /** + *
+   * The value of current model attributed conversions divided by the number of
+   * the conversions. This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
+   * 
+ * + * .google.protobuf.DoubleValue value_per_current_model_attributed_conversion = 94; + */ + boolean hasValuePerCurrentModelAttributedConversion(); + /** + *
+   * The value of current model attributed conversions divided by the number of
+   * the conversions. This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
+   * 
+ * + * .google.protobuf.DoubleValue value_per_current_model_attributed_conversion = 94; + */ + com.google.protobuf.DoubleValue getValuePerCurrentModelAttributedConversion(); + /** + *
+   * The value of current model attributed conversions divided by the number of
+   * the conversions. This only includes conversion actions which
+   * include_in_conversions_metric attribute is set to true.
+   * 
+ * + * .google.protobuf.DoubleValue value_per_current_model_attributed_conversion = 94; + */ + com.google.protobuf.DoubleValueOrBuilder getValuePerCurrentModelAttributedConversionOrBuilder(); + /** *
    * Percentage of impressions where the viewer watched all of your video.
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/MetricsProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/MetricsProto.java
index 90fc46b13f..46c7533b03 100644
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/common/MetricsProto.java
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/MetricsProto.java
@@ -29,98 +29,170 @@ public static void registerAllExtensions(
   static {
     java.lang.String[] descriptorData = {
       "\n,google/ads/googleads/v0/common/metrics" +
-      ".proto\022\036google.ads.googleads.v0.common\032\036" +
-      "google/protobuf/wrappers.proto\"\274\032\n\007Metri" +
-      "cs\022L\n&all_conversions_from_interactions_" +
-      "rate\030A \001(\0132\034.google.protobuf.DoubleValue" +
-      "\022;\n\025all_conversions_value\030B \001(\0132\034.google" +
-      ".protobuf.DoubleValue\0225\n\017all_conversions" +
-      "\030\007 \001(\0132\034.google.protobuf.DoubleValue\022D\n\036" +
-      "all_conversions_value_per_cost\030> \001(\0132\034.g" +
-      "oogle.protobuf.DoubleValue\022]\n7all_conver" +
-      "sions_from_interactions_value_per_intera" +
-      "ction\030C \001(\0132\034.google.protobuf.DoubleValu" +
-      "e\0222\n\014average_cost\030\010 \001(\0132\034.google.protobu" +
-      "f.DoubleValue\0221\n\013average_cpc\030\t \001(\0132\034.goo" +
-      "gle.protobuf.DoubleValue\0221\n\013average_cpm\030" +
-      "\n \001(\0132\034.google.protobuf.DoubleValue\0221\n\013a" +
-      "verage_cpv\030\013 \001(\0132\034.google.protobuf.Doubl" +
-      "eValue\0226\n\020average_position\030\r \001(\0132\034.googl" +
-      "e.protobuf.DoubleValue\0223\n\rbenchmark_ctr\030" +
-      "M \001(\0132\034.google.protobuf.DoubleValue\0221\n\013b" +
-      "ounce_rate\030\017 \001(\0132\034.google.protobuf.Doubl" +
-      "eValue\022+\n\006clicks\030\023 \001(\0132\033.google.protobuf" +
-      ".Int64Value\022J\n$content_budget_lost_impre" +
-      "ssion_share\030\024 \001(\0132\034.google.protobuf.Doub" +
-      "leValue\022>\n\030content_impression_share\030\025 \001(" +
-      "\0132\034.google.protobuf.DoubleValue\022P\n*conve" +
-      "rsion_last_received_request_date_time\030I " +
-      "\001(\0132\034.google.protobuf.StringValue\022E\n\037con" +
-      "version_last_conversion_date\030J \001(\0132\034.goo" +
-      "gle.protobuf.StringValue\022H\n\"content_rank" +
-      "_lost_impression_share\030\026 \001(\0132\034.google.pr" +
-      "otobuf.DoubleValue\022H\n\"conversions_from_i" +
-      "nteractions_rate\030E \001(\0132\034.google.protobuf" +
-      ".DoubleValue\0227\n\021conversions_value\030F \001(\0132" +
-      "\034.google.protobuf.DoubleValue\022@\n\032convers" +
-      "ions_value_per_cost\030G \001(\0132\034.google.proto" +
-      "buf.DoubleValue\022Y\n3conversions_from_inte" +
-      "ractions_value_per_interaction\030H \001(\0132\034.g" +
-      "oogle.protobuf.DoubleValue\0221\n\013conversion" +
-      "s\030\031 \001(\0132\034.google.protobuf.DoubleValue\0220\n" +
-      "\013cost_micros\030\032 \001(\0132\033.google.protobuf.Int" +
-      "64Value\022>\n\030cost_per_all_conversions\030D \001(" +
-      "\0132\034.google.protobuf.DoubleValue\0229\n\023cost_" +
-      "per_conversion\030\034 \001(\0132\034.google.protobuf.D" +
-      "oubleValue\022>\n\030cross_device_conversions\030\035" +
-      " \001(\0132\034.google.protobuf.DoubleValue\022)\n\003ct" +
-      "r\030\036 \001(\0132\034.google.protobuf.DoubleValue\0225\n" +
-      "\017engagement_rate\030\037 \001(\0132\034.google.protobuf" +
-      ".DoubleValue\0220\n\013engagements\030  \001(\0132\033.goog" +
-      "le.protobuf.Int64Value\022E\n\037hotel_average_" +
-      "lead_value_micros\030K \001(\0132\034.google.protobu" +
-      "f.DoubleValue\0220\n\013impressions\030% \001(\0132\033.goo" +
-      "gle.protobuf.Int64Value\0226\n\020interaction_r" +
-      "ate\030& \001(\0132\034.google.protobuf.DoubleValue\022" +
-      "1\n\014interactions\030\' \001(\0132\033.google.protobuf." +
-      "Int64Value\0228\n\022invalid_click_rate\030( \001(\0132\034" +
-      ".google.protobuf.DoubleValue\0223\n\016invalid_" +
-      "clicks\030) \001(\0132\033.google.protobuf.Int64Valu" +
-      "e\022:\n\024percent_new_visitors\030* \001(\0132\034.google" +
-      ".protobuf.DoubleValue\0220\n\013phone_calls\030+ \001" +
-      "(\0132\033.google.protobuf.Int64Value\0226\n\021phone" +
-      "_impressions\030, \001(\0132\033.google.protobuf.Int" +
-      "64Value\0228\n\022phone_through_rate\030- \001(\0132\034.go" +
-      "ogle.protobuf.DoubleValue\0222\n\014relative_ct" +
-      "r\030. \001(\0132\034.google.protobuf.DoubleValue\022J\n" +
-      "$search_absolute_top_impression_share\030N " +
-      "\001(\0132\034.google.protobuf.DoubleValue\022I\n#sea" +
-      "rch_budget_lost_impression_share\030/ \001(\0132\034" +
-      ".google.protobuf.DoubleValue\022I\n#search_e" +
-      "xact_match_impression_share\0301 \001(\0132\034.goog" +
-      "le.protobuf.DoubleValue\022=\n\027search_impres" +
-      "sion_share\0302 \001(\0132\034.google.protobuf.Doubl" +
-      "eValue\022G\n!search_rank_lost_impression_sh" +
-      "are\0303 \001(\0132\034.google.protobuf.DoubleValue\022" +
-      "?\n\031value_per_all_conversions\0304 \001(\0132\034.goo" +
-      "gle.protobuf.DoubleValue\022:\n\024value_per_co" +
-      "nversion\0305 \001(\0132\034.google.protobuf.DoubleV" +
-      "alue\022=\n\027video_quartile_100_rate\0306 \001(\0132\034." +
-      "google.protobuf.DoubleValue\022<\n\026video_qua" +
-      "rtile_25_rate\0307 \001(\0132\034.google.protobuf.Do" +
-      "ubleValue\022<\n\026video_quartile_50_rate\0308 \001(" +
-      "\0132\034.google.protobuf.DoubleValue\022<\n\026video" +
-      "_quartile_75_rate\0309 \001(\0132\034.google.protobu" +
-      "f.DoubleValue\0225\n\017video_view_rate\030: \001(\0132\034" +
-      ".google.protobuf.DoubleValue\0220\n\013video_vi" +
-      "ews\030; \001(\0132\033.google.protobuf.Int64Value\022=" +
-      "\n\030view_through_conversions\030< \001(\0132\033.googl" +
-      "e.protobuf.Int64ValueB\302\001\n\"com.google.ads" +
-      ".googleads.v0.commonB\014MetricsProtoP\001ZDgo" +
-      "ogle.golang.org/genproto/googleapis/ads/" +
-      "googleads/v0/common;common\242\002\003GAA\252\002\036Googl" +
-      "e.Ads.GoogleAds.V0.Common\312\002\036Google\\Ads\\G" +
-      "oogleAds\\V0\\Commonb\006proto3"
+      ".proto\022\036google.ads.googleads.v0.common\032:" +
+      "google/ads/googleads/v0/enums/interactio" +
+      "n_event_type.proto\0328google/ads/googleads" +
+      "/v0/enums/quality_score_bucket.proto\032\036go" +
+      "ogle/protobuf/wrappers.proto\"\322/\n\007Metrics" +
+      "\022H\n\"absolute_top_impression_percentage\030_" +
+      " \001(\0132\034.google.protobuf.DoubleValue\0225\n\017ac" +
+      "tive_view_cpm\030\001 \001(\0132\034.google.protobuf.Do" +
+      "ubleValue\0225\n\017active_view_ctr\030O \001(\0132\034.goo" +
+      "gle.protobuf.DoubleValue\022<\n\027active_view_" +
+      "impressions\030\002 \001(\0132\033.google.protobuf.Int6" +
+      "4Value\022?\n\031active_view_measurability\030` \001(" +
+      "\0132\034.google.protobuf.DoubleValue\022G\n\"activ" +
+      "e_view_measurable_cost_micros\030\003 \001(\0132\033.go" +
+      "ogle.protobuf.Int64Value\022G\n\"active_view_" +
+      "measurable_impressions\030\004 \001(\0132\033.google.pr" +
+      "otobuf.Int64Value\022=\n\027active_view_viewabi" +
+      "lity\030a \001(\0132\034.google.protobuf.DoubleValue" +
+      "\022L\n&all_conversions_from_interactions_ra" +
+      "te\030A \001(\0132\034.google.protobuf.DoubleValue\022;" +
+      "\n\025all_conversions_value\030B \001(\0132\034.google.p" +
+      "rotobuf.DoubleValue\0225\n\017all_conversions\030\007" +
+      " \001(\0132\034.google.protobuf.DoubleValue\022D\n\036al" +
+      "l_conversions_value_per_cost\030> \001(\0132\034.goo" +
+      "gle.protobuf.DoubleValue\022]\n7all_conversi" +
+      "ons_from_interactions_value_per_interact" +
+      "ion\030C \001(\0132\034.google.protobuf.DoubleValue\022" +
+      "2\n\014average_cost\030\010 \001(\0132\034.google.protobuf." +
+      "DoubleValue\0221\n\013average_cpc\030\t \001(\0132\034.googl" +
+      "e.protobuf.DoubleValue\0221\n\013average_cpe\030b " +
+      "\001(\0132\034.google.protobuf.DoubleValue\0221\n\013ave" +
+      "rage_cpm\030\n \001(\0132\034.google.protobuf.DoubleV" +
+      "alue\0221\n\013average_cpv\030\013 \001(\0132\034.google.proto" +
+      "buf.DoubleValue\0227\n\021average_frequency\030\014 \001" +
+      "(\0132\034.google.protobuf.DoubleValue\0228\n\022aver" +
+      "age_page_views\030c \001(\0132\034.google.protobuf.D" +
+      "oubleValue\0226\n\020average_position\030\r \001(\0132\034.g" +
+      "oogle.protobuf.DoubleValue\022:\n\024average_ti" +
+      "me_on_site\030T \001(\0132\034.google.protobuf.Doubl" +
+      "eValue\022?\n\031benchmark_average_max_cpc\030\016 \001(" +
+      "\0132\034.google.protobuf.DoubleValue\0223\n\rbench" +
+      "mark_ctr\030M \001(\0132\034.google.protobuf.DoubleV" +
+      "alue\0221\n\013bounce_rate\030\017 \001(\0132\034.google.proto" +
+      "buf.DoubleValue\022+\n\006clicks\030\023 \001(\0132\033.google" +
+      ".protobuf.Int64Value\022J\n$content_budget_l" +
+      "ost_impression_share\030\024 \001(\0132\034.google.prot" +
+      "obuf.DoubleValue\022>\n\030content_impression_s" +
+      "hare\030\025 \001(\0132\034.google.protobuf.DoubleValue" +
+      "\022P\n*conversion_last_received_request_dat" +
+      "e_time\030I \001(\0132\034.google.protobuf.StringVal" +
+      "ue\022E\n\037conversion_last_conversion_date\030J " +
+      "\001(\0132\034.google.protobuf.StringValue\022H\n\"con" +
+      "tent_rank_lost_impression_share\030\026 \001(\0132\034." +
+      "google.protobuf.DoubleValue\022H\n\"conversio" +
+      "ns_from_interactions_rate\030E \001(\0132\034.google" +
+      ".protobuf.DoubleValue\0227\n\021conversions_val" +
+      "ue\030F \001(\0132\034.google.protobuf.DoubleValue\022@" +
+      "\n\032conversions_value_per_cost\030G \001(\0132\034.goo" +
+      "gle.protobuf.DoubleValue\022Y\n3conversions_" +
+      "from_interactions_value_per_interaction\030" +
+      "H \001(\0132\034.google.protobuf.DoubleValue\0221\n\013c" +
+      "onversions\030\031 \001(\0132\034.google.protobuf.Doubl" +
+      "eValue\0220\n\013cost_micros\030\032 \001(\0132\033.google.pro" +
+      "tobuf.Int64Value\022>\n\030cost_per_all_convers" +
+      "ions\030D \001(\0132\034.google.protobuf.DoubleValue" +
+      "\0229\n\023cost_per_conversion\030\034 \001(\0132\034.google.p" +
+      "rotobuf.DoubleValue\022R\n,cost_per_current_" +
+      "model_attributed_conversion\030j \001(\0132\034.goog" +
+      "le.protobuf.DoubleValue\022>\n\030cross_device_" +
+      "conversions\030\035 \001(\0132\034.google.protobuf.Doub" +
+      "leValue\022)\n\003ctr\030\036 \001(\0132\034.google.protobuf.D" +
+      "oubleValue\022J\n$current_model_attributed_c" +
+      "onversions\030e \001(\0132\034.google.protobuf.Doubl" +
+      "eValue\022a\n;current_model_attributed_conve" +
+      "rsions_from_interactions_rate\030f \001(\0132\034.go" +
+      "ogle.protobuf.DoubleValue\022r\nLcurrent_mod" +
+      "el_attributed_conversions_from_interacti" +
+      "ons_value_per_interaction\030g \001(\0132\034.google" +
+      ".protobuf.DoubleValue\022P\n*current_model_a" +
+      "ttributed_conversions_value\030h \001(\0132\034.goog" +
+      "le.protobuf.DoubleValue\022Y\n3current_model" +
+      "_attributed_conversions_value_per_cost\030i" +
+      " \001(\0132\034.google.protobuf.DoubleValue\0225\n\017en" +
+      "gagement_rate\030\037 \001(\0132\034.google.protobuf.Do" +
+      "ubleValue\0220\n\013engagements\030  \001(\0132\033.google." +
+      "protobuf.Int64Value\022E\n\037hotel_average_lea" +
+      "d_value_micros\030K \001(\0132\034.google.protobuf.D" +
+      "oubleValue\022s\n!historical_creative_qualit" +
+      "y_score\030P \001(\0162H.google.ads.googleads.v0." +
+      "enums.QualityScoreBucketEnum.QualityScor" +
+      "eBucket\022w\n%historical_landing_page_quali" +
+      "ty_score\030Q \001(\0162H.google.ads.googleads.v0" +
+      ".enums.QualityScoreBucketEnum.QualitySco" +
+      "reBucket\022=\n\030historical_quality_score\030R \001" +
+      "(\0132\033.google.protobuf.Int64Value\022q\n\037histo" +
+      "rical_search_predicted_ctr\030S \001(\0162H.googl" +
+      "e.ads.googleads.v0.enums.QualityScoreBuc" +
+      "ketEnum.QualityScoreBucket\0223\n\016gmail_forw" +
+      "ards\030U \001(\0132\033.google.protobuf.Int64Value\022" +
+      "0\n\013gmail_saves\030V \001(\0132\033.google.protobuf.I" +
+      "nt64Value\022;\n\026gmail_secondary_clicks\030W \001(" +
+      "\0132\033.google.protobuf.Int64Value\0225\n\020impres" +
+      "sion_reach\030$ \001(\0132\033.google.protobuf.Int64" +
+      "Value\0220\n\013impressions\030% \001(\0132\033.google.prot" +
+      "obuf.Int64Value\0226\n\020interaction_rate\030& \001(" +
+      "\0132\034.google.protobuf.DoubleValue\0221\n\014inter" +
+      "actions\030\' \001(\0132\033.google.protobuf.Int64Val" +
+      "ue\022m\n\027interaction_event_types\030d \003(\0162L.go" +
+      "ogle.ads.googleads.v0.enums.InteractionE" +
+      "ventTypeEnum.InteractionEventType\0228\n\022inv" +
+      "alid_click_rate\030( \001(\0132\034.google.protobuf." +
+      "DoubleValue\0223\n\016invalid_clicks\030) \001(\0132\033.go" +
+      "ogle.protobuf.Int64Value\022:\n\024percent_new_" +
+      "visitors\030* \001(\0132\034.google.protobuf.DoubleV" +
+      "alue\0220\n\013phone_calls\030+ \001(\0132\033.google.proto" +
+      "buf.Int64Value\0226\n\021phone_impressions\030, \001(" +
+      "\0132\033.google.protobuf.Int64Value\0228\n\022phone_" +
+      "through_rate\030- \001(\0132\034.google.protobuf.Dou" +
+      "bleValue\0222\n\014relative_ctr\030. \001(\0132\034.google." +
+      "protobuf.DoubleValue\022J\n$search_absolute_" +
+      "top_impression_share\030N \001(\0132\034.google.prot" +
+      "obuf.DoubleValue\022V\n0search_budget_lost_a" +
+      "bsolute_top_impression_share\030X \001(\0132\034.goo" +
+      "gle.protobuf.DoubleValue\022I\n#search_budge" +
+      "t_lost_impression_share\030/ \001(\0132\034.google.p" +
+      "rotobuf.DoubleValue\022M\n\'search_budget_los" +
+      "t_top_impression_share\030Y \001(\0132\034.google.pr" +
+      "otobuf.DoubleValue\0228\n\022search_click_share" +
+      "\0300 \001(\0132\034.google.protobuf.DoubleValue\022I\n#" +
+      "search_exact_match_impression_share\0301 \001(" +
+      "\0132\034.google.protobuf.DoubleValue\022=\n\027searc" +
+      "h_impression_share\0302 \001(\0132\034.google.protob" +
+      "uf.DoubleValue\022T\n.search_rank_lost_absol" +
+      "ute_top_impression_share\030Z \001(\0132\034.google." +
+      "protobuf.DoubleValue\022G\n!search_rank_lost" +
+      "_impression_share\0303 \001(\0132\034.google.protobu" +
+      "f.DoubleValue\022K\n%search_rank_lost_top_im" +
+      "pression_share\030[ \001(\0132\034.google.protobuf.D" +
+      "oubleValue\022A\n\033search_top_impression_shar" +
+      "e\030\\ \001(\0132\034.google.protobuf.DoubleValue\022?\n" +
+      "\031top_impression_percentage\030] \001(\0132\034.googl" +
+      "e.protobuf.DoubleValue\022?\n\031value_per_all_" +
+      "conversions\0304 \001(\0132\034.google.protobuf.Doub" +
+      "leValue\022:\n\024value_per_conversion\0305 \001(\0132\034." +
+      "google.protobuf.DoubleValue\022S\n-value_per" +
+      "_current_model_attributed_conversion\030^ \001" +
+      "(\0132\034.google.protobuf.DoubleValue\022=\n\027vide" +
+      "o_quartile_100_rate\0306 \001(\0132\034.google.proto" +
+      "buf.DoubleValue\022<\n\026video_quartile_25_rat" +
+      "e\0307 \001(\0132\034.google.protobuf.DoubleValue\022<\n" +
+      "\026video_quartile_50_rate\0308 \001(\0132\034.google.p" +
+      "rotobuf.DoubleValue\022<\n\026video_quartile_75" +
+      "_rate\0309 \001(\0132\034.google.protobuf.DoubleValu" +
+      "e\0225\n\017video_view_rate\030: \001(\0132\034.google.prot" +
+      "obuf.DoubleValue\0220\n\013video_views\030; \001(\0132\033." +
+      "google.protobuf.Int64Value\022=\n\030view_throu" +
+      "gh_conversions\030< \001(\0132\033.google.protobuf.I" +
+      "nt64ValueB\347\001\n\"com.google.ads.googleads.v" +
+      "0.commonB\014MetricsProtoP\001ZDgoogle.golang." +
+      "org/genproto/googleapis/ads/googleads/v0" +
+      "/common;common\242\002\003GAA\252\002\036Google.Ads.Google" +
+      "Ads.V0.Common\312\002\036Google\\Ads\\GoogleAds\\V0\\" +
+      "Common\352\002\"Google::Ads::GoogleAds::V0::Com" +
+      "monb\006proto3"
     };
     com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
         new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
@@ -133,6 +205,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
     com.google.protobuf.Descriptors.FileDescriptor
       .internalBuildGeneratedFileFrom(descriptorData,
         new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.ads.googleads.v0.enums.InteractionEventTypeProto.getDescriptor(),
+          com.google.ads.googleads.v0.enums.QualityScoreBucketProto.getDescriptor(),
           com.google.protobuf.WrappersProto.getDescriptor(),
         }, assigner);
     internal_static_google_ads_googleads_v0_common_Metrics_descriptor =
@@ -140,7 +214,9 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
     internal_static_google_ads_googleads_v0_common_Metrics_fieldAccessorTable = new
       com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
         internal_static_google_ads_googleads_v0_common_Metrics_descriptor,
-        new java.lang.String[] { "AllConversionsFromInteractionsRate", "AllConversionsValue", "AllConversions", "AllConversionsValuePerCost", "AllConversionsFromInteractionsValuePerInteraction", "AverageCost", "AverageCpc", "AverageCpm", "AverageCpv", "AveragePosition", "BenchmarkCtr", "BounceRate", "Clicks", "ContentBudgetLostImpressionShare", "ContentImpressionShare", "ConversionLastReceivedRequestDateTime", "ConversionLastConversionDate", "ContentRankLostImpressionShare", "ConversionsFromInteractionsRate", "ConversionsValue", "ConversionsValuePerCost", "ConversionsFromInteractionsValuePerInteraction", "Conversions", "CostMicros", "CostPerAllConversions", "CostPerConversion", "CrossDeviceConversions", "Ctr", "EngagementRate", "Engagements", "HotelAverageLeadValueMicros", "Impressions", "InteractionRate", "Interactions", "InvalidClickRate", "InvalidClicks", "PercentNewVisitors", "PhoneCalls", "PhoneImpressions", "PhoneThroughRate", "RelativeCtr", "SearchAbsoluteTopImpressionShare", "SearchBudgetLostImpressionShare", "SearchExactMatchImpressionShare", "SearchImpressionShare", "SearchRankLostImpressionShare", "ValuePerAllConversions", "ValuePerConversion", "VideoQuartile100Rate", "VideoQuartile25Rate", "VideoQuartile50Rate", "VideoQuartile75Rate", "VideoViewRate", "VideoViews", "ViewThroughConversions", });
+        new java.lang.String[] { "AbsoluteTopImpressionPercentage", "ActiveViewCpm", "ActiveViewCtr", "ActiveViewImpressions", "ActiveViewMeasurability", "ActiveViewMeasurableCostMicros", "ActiveViewMeasurableImpressions", "ActiveViewViewability", "AllConversionsFromInteractionsRate", "AllConversionsValue", "AllConversions", "AllConversionsValuePerCost", "AllConversionsFromInteractionsValuePerInteraction", "AverageCost", "AverageCpc", "AverageCpe", "AverageCpm", "AverageCpv", "AverageFrequency", "AveragePageViews", "AveragePosition", "AverageTimeOnSite", "BenchmarkAverageMaxCpc", "BenchmarkCtr", "BounceRate", "Clicks", "ContentBudgetLostImpressionShare", "ContentImpressionShare", "ConversionLastReceivedRequestDateTime", "ConversionLastConversionDate", "ContentRankLostImpressionShare", "ConversionsFromInteractionsRate", "ConversionsValue", "ConversionsValuePerCost", "ConversionsFromInteractionsValuePerInteraction", "Conversions", "CostMicros", "CostPerAllConversions", "CostPerConversion", "CostPerCurrentModelAttributedConversion", "CrossDeviceConversions", "Ctr", "CurrentModelAttributedConversions", "CurrentModelAttributedConversionsFromInteractionsRate", "CurrentModelAttributedConversionsFromInteractionsValuePerInteraction", "CurrentModelAttributedConversionsValue", "CurrentModelAttributedConversionsValuePerCost", "EngagementRate", "Engagements", "HotelAverageLeadValueMicros", "HistoricalCreativeQualityScore", "HistoricalLandingPageQualityScore", "HistoricalQualityScore", "HistoricalSearchPredictedCtr", "GmailForwards", "GmailSaves", "GmailSecondaryClicks", "ImpressionReach", "Impressions", "InteractionRate", "Interactions", "InteractionEventTypes", "InvalidClickRate", "InvalidClicks", "PercentNewVisitors", "PhoneCalls", "PhoneImpressions", "PhoneThroughRate", "RelativeCtr", "SearchAbsoluteTopImpressionShare", "SearchBudgetLostAbsoluteTopImpressionShare", "SearchBudgetLostImpressionShare", "SearchBudgetLostTopImpressionShare", "SearchClickShare", "SearchExactMatchImpressionShare", "SearchImpressionShare", "SearchRankLostAbsoluteTopImpressionShare", "SearchRankLostImpressionShare", "SearchRankLostTopImpressionShare", "SearchTopImpressionShare", "TopImpressionPercentage", "ValuePerAllConversions", "ValuePerConversion", "ValuePerCurrentModelAttributedConversion", "VideoQuartile100Rate", "VideoQuartile25Rate", "VideoQuartile50Rate", "VideoQuartile75Rate", "VideoViewRate", "VideoViews", "ViewThroughConversions", });
+    com.google.ads.googleads.v0.enums.InteractionEventTypeProto.getDescriptor();
+    com.google.ads.googleads.v0.enums.QualityScoreBucketProto.getDescriptor();
     com.google.protobuf.WrappersProto.getDescriptor();
   }
 
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/MobileAppCategoryInfo.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/MobileAppCategoryInfo.java
new file mode 100644
index 0000000000..6cfbeae332
--- /dev/null
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/MobileAppCategoryInfo.java
@@ -0,0 +1,651 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/ads/googleads/v0/common/criteria.proto
+
+package com.google.ads.googleads.v0.common;
+
+/**
+ * 
+ * A mobile app category criterion.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.MobileAppCategoryInfo} + */ +public final class MobileAppCategoryInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.common.MobileAppCategoryInfo) + MobileAppCategoryInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use MobileAppCategoryInfo.newBuilder() to construct. + private MobileAppCategoryInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MobileAppCategoryInfo() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MobileAppCategoryInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (mobileAppCategoryConstant_ != null) { + subBuilder = mobileAppCategoryConstant_.toBuilder(); + } + mobileAppCategoryConstant_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(mobileAppCategoryConstant_); + mobileAppCategoryConstant_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.CriteriaProto.internal_static_google_ads_googleads_v0_common_MobileAppCategoryInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.CriteriaProto.internal_static_google_ads_googleads_v0_common_MobileAppCategoryInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.MobileAppCategoryInfo.class, com.google.ads.googleads.v0.common.MobileAppCategoryInfo.Builder.class); + } + + public static final int MOBILE_APP_CATEGORY_CONSTANT_FIELD_NUMBER = 1; + private com.google.protobuf.StringValue mobileAppCategoryConstant_; + /** + *
+   * The mobile app category constant resource name.
+   * 
+ * + * .google.protobuf.StringValue mobile_app_category_constant = 1; + */ + public boolean hasMobileAppCategoryConstant() { + return mobileAppCategoryConstant_ != null; + } + /** + *
+   * The mobile app category constant resource name.
+   * 
+ * + * .google.protobuf.StringValue mobile_app_category_constant = 1; + */ + public com.google.protobuf.StringValue getMobileAppCategoryConstant() { + return mobileAppCategoryConstant_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : mobileAppCategoryConstant_; + } + /** + *
+   * The mobile app category constant resource name.
+   * 
+ * + * .google.protobuf.StringValue mobile_app_category_constant = 1; + */ + public com.google.protobuf.StringValueOrBuilder getMobileAppCategoryConstantOrBuilder() { + return getMobileAppCategoryConstant(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (mobileAppCategoryConstant_ != null) { + output.writeMessage(1, getMobileAppCategoryConstant()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (mobileAppCategoryConstant_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMobileAppCategoryConstant()); + } + size += unknownFields.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.ads.googleads.v0.common.MobileAppCategoryInfo)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.common.MobileAppCategoryInfo other = (com.google.ads.googleads.v0.common.MobileAppCategoryInfo) obj; + + boolean result = true; + result = result && (hasMobileAppCategoryConstant() == other.hasMobileAppCategoryConstant()); + if (hasMobileAppCategoryConstant()) { + result = result && getMobileAppCategoryConstant() + .equals(other.getMobileAppCategoryConstant()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMobileAppCategoryConstant()) { + hash = (37 * hash) + MOBILE_APP_CATEGORY_CONSTANT_FIELD_NUMBER; + hash = (53 * hash) + getMobileAppCategoryConstant().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.common.MobileAppCategoryInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.MobileAppCategoryInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.MobileAppCategoryInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.MobileAppCategoryInfo 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.ads.googleads.v0.common.MobileAppCategoryInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.MobileAppCategoryInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.MobileAppCategoryInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.MobileAppCategoryInfo 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.ads.googleads.v0.common.MobileAppCategoryInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.MobileAppCategoryInfo 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.ads.googleads.v0.common.MobileAppCategoryInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.MobileAppCategoryInfo 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.ads.googleads.v0.common.MobileAppCategoryInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A mobile app category criterion.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.MobileAppCategoryInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.common.MobileAppCategoryInfo) + com.google.ads.googleads.v0.common.MobileAppCategoryInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.CriteriaProto.internal_static_google_ads_googleads_v0_common_MobileAppCategoryInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.CriteriaProto.internal_static_google_ads_googleads_v0_common_MobileAppCategoryInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.MobileAppCategoryInfo.class, com.google.ads.googleads.v0.common.MobileAppCategoryInfo.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.common.MobileAppCategoryInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (mobileAppCategoryConstantBuilder_ == null) { + mobileAppCategoryConstant_ = null; + } else { + mobileAppCategoryConstant_ = null; + mobileAppCategoryConstantBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.common.CriteriaProto.internal_static_google_ads_googleads_v0_common_MobileAppCategoryInfo_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.MobileAppCategoryInfo getDefaultInstanceForType() { + return com.google.ads.googleads.v0.common.MobileAppCategoryInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.MobileAppCategoryInfo build() { + com.google.ads.googleads.v0.common.MobileAppCategoryInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.MobileAppCategoryInfo buildPartial() { + com.google.ads.googleads.v0.common.MobileAppCategoryInfo result = new com.google.ads.googleads.v0.common.MobileAppCategoryInfo(this); + if (mobileAppCategoryConstantBuilder_ == null) { + result.mobileAppCategoryConstant_ = mobileAppCategoryConstant_; + } else { + result.mobileAppCategoryConstant_ = mobileAppCategoryConstantBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.common.MobileAppCategoryInfo) { + return mergeFrom((com.google.ads.googleads.v0.common.MobileAppCategoryInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.common.MobileAppCategoryInfo other) { + if (other == com.google.ads.googleads.v0.common.MobileAppCategoryInfo.getDefaultInstance()) return this; + if (other.hasMobileAppCategoryConstant()) { + mergeMobileAppCategoryConstant(other.getMobileAppCategoryConstant()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.common.MobileAppCategoryInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.common.MobileAppCategoryInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.StringValue mobileAppCategoryConstant_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> mobileAppCategoryConstantBuilder_; + /** + *
+     * The mobile app category constant resource name.
+     * 
+ * + * .google.protobuf.StringValue mobile_app_category_constant = 1; + */ + public boolean hasMobileAppCategoryConstant() { + return mobileAppCategoryConstantBuilder_ != null || mobileAppCategoryConstant_ != null; + } + /** + *
+     * The mobile app category constant resource name.
+     * 
+ * + * .google.protobuf.StringValue mobile_app_category_constant = 1; + */ + public com.google.protobuf.StringValue getMobileAppCategoryConstant() { + if (mobileAppCategoryConstantBuilder_ == null) { + return mobileAppCategoryConstant_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : mobileAppCategoryConstant_; + } else { + return mobileAppCategoryConstantBuilder_.getMessage(); + } + } + /** + *
+     * The mobile app category constant resource name.
+     * 
+ * + * .google.protobuf.StringValue mobile_app_category_constant = 1; + */ + public Builder setMobileAppCategoryConstant(com.google.protobuf.StringValue value) { + if (mobileAppCategoryConstantBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mobileAppCategoryConstant_ = value; + onChanged(); + } else { + mobileAppCategoryConstantBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The mobile app category constant resource name.
+     * 
+ * + * .google.protobuf.StringValue mobile_app_category_constant = 1; + */ + public Builder setMobileAppCategoryConstant( + com.google.protobuf.StringValue.Builder builderForValue) { + if (mobileAppCategoryConstantBuilder_ == null) { + mobileAppCategoryConstant_ = builderForValue.build(); + onChanged(); + } else { + mobileAppCategoryConstantBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The mobile app category constant resource name.
+     * 
+ * + * .google.protobuf.StringValue mobile_app_category_constant = 1; + */ + public Builder mergeMobileAppCategoryConstant(com.google.protobuf.StringValue value) { + if (mobileAppCategoryConstantBuilder_ == null) { + if (mobileAppCategoryConstant_ != null) { + mobileAppCategoryConstant_ = + com.google.protobuf.StringValue.newBuilder(mobileAppCategoryConstant_).mergeFrom(value).buildPartial(); + } else { + mobileAppCategoryConstant_ = value; + } + onChanged(); + } else { + mobileAppCategoryConstantBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The mobile app category constant resource name.
+     * 
+ * + * .google.protobuf.StringValue mobile_app_category_constant = 1; + */ + public Builder clearMobileAppCategoryConstant() { + if (mobileAppCategoryConstantBuilder_ == null) { + mobileAppCategoryConstant_ = null; + onChanged(); + } else { + mobileAppCategoryConstant_ = null; + mobileAppCategoryConstantBuilder_ = null; + } + + return this; + } + /** + *
+     * The mobile app category constant resource name.
+     * 
+ * + * .google.protobuf.StringValue mobile_app_category_constant = 1; + */ + public com.google.protobuf.StringValue.Builder getMobileAppCategoryConstantBuilder() { + + onChanged(); + return getMobileAppCategoryConstantFieldBuilder().getBuilder(); + } + /** + *
+     * The mobile app category constant resource name.
+     * 
+ * + * .google.protobuf.StringValue mobile_app_category_constant = 1; + */ + public com.google.protobuf.StringValueOrBuilder getMobileAppCategoryConstantOrBuilder() { + if (mobileAppCategoryConstantBuilder_ != null) { + return mobileAppCategoryConstantBuilder_.getMessageOrBuilder(); + } else { + return mobileAppCategoryConstant_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : mobileAppCategoryConstant_; + } + } + /** + *
+     * The mobile app category constant resource name.
+     * 
+ * + * .google.protobuf.StringValue mobile_app_category_constant = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getMobileAppCategoryConstantFieldBuilder() { + if (mobileAppCategoryConstantBuilder_ == null) { + mobileAppCategoryConstantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getMobileAppCategoryConstant(), + getParentForChildren(), + isClean()); + mobileAppCategoryConstant_ = null; + } + return mobileAppCategoryConstantBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.common.MobileAppCategoryInfo) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.common.MobileAppCategoryInfo) + private static final com.google.ads.googleads.v0.common.MobileAppCategoryInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.common.MobileAppCategoryInfo(); + } + + public static com.google.ads.googleads.v0.common.MobileAppCategoryInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MobileAppCategoryInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MobileAppCategoryInfo(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.common.MobileAppCategoryInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/MobileAppCategoryInfoOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/MobileAppCategoryInfoOrBuilder.java new file mode 100644 index 0000000000..01879c0d50 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/MobileAppCategoryInfoOrBuilder.java @@ -0,0 +1,34 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/criteria.proto + +package com.google.ads.googleads.v0.common; + +public interface MobileAppCategoryInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.common.MobileAppCategoryInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The mobile app category constant resource name.
+   * 
+ * + * .google.protobuf.StringValue mobile_app_category_constant = 1; + */ + boolean hasMobileAppCategoryConstant(); + /** + *
+   * The mobile app category constant resource name.
+   * 
+ * + * .google.protobuf.StringValue mobile_app_category_constant = 1; + */ + com.google.protobuf.StringValue getMobileAppCategoryConstant(); + /** + *
+   * The mobile app category constant resource name.
+   * 
+ * + * .google.protobuf.StringValue mobile_app_category_constant = 1; + */ + com.google.protobuf.StringValueOrBuilder getMobileAppCategoryConstantOrBuilder(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/OperatingSystemVersionInfo.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/OperatingSystemVersionInfo.java new file mode 100644 index 0000000000..a5561e9931 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/OperatingSystemVersionInfo.java @@ -0,0 +1,651 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/criteria.proto + +package com.google.ads.googleads.v0.common; + +/** + *
+ * Represents an operating system version to be targeted.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.OperatingSystemVersionInfo} + */ +public final class OperatingSystemVersionInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.common.OperatingSystemVersionInfo) + OperatingSystemVersionInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use OperatingSystemVersionInfo.newBuilder() to construct. + private OperatingSystemVersionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OperatingSystemVersionInfo() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private OperatingSystemVersionInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (operatingSystemVersionConstant_ != null) { + subBuilder = operatingSystemVersionConstant_.toBuilder(); + } + operatingSystemVersionConstant_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(operatingSystemVersionConstant_); + operatingSystemVersionConstant_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.CriteriaProto.internal_static_google_ads_googleads_v0_common_OperatingSystemVersionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.CriteriaProto.internal_static_google_ads_googleads_v0_common_OperatingSystemVersionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.OperatingSystemVersionInfo.class, com.google.ads.googleads.v0.common.OperatingSystemVersionInfo.Builder.class); + } + + public static final int OPERATING_SYSTEM_VERSION_CONSTANT_FIELD_NUMBER = 1; + private com.google.protobuf.StringValue operatingSystemVersionConstant_; + /** + *
+   * The operating system version constant resource name.
+   * 
+ * + * .google.protobuf.StringValue operating_system_version_constant = 1; + */ + public boolean hasOperatingSystemVersionConstant() { + return operatingSystemVersionConstant_ != null; + } + /** + *
+   * The operating system version constant resource name.
+   * 
+ * + * .google.protobuf.StringValue operating_system_version_constant = 1; + */ + public com.google.protobuf.StringValue getOperatingSystemVersionConstant() { + return operatingSystemVersionConstant_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : operatingSystemVersionConstant_; + } + /** + *
+   * The operating system version constant resource name.
+   * 
+ * + * .google.protobuf.StringValue operating_system_version_constant = 1; + */ + public com.google.protobuf.StringValueOrBuilder getOperatingSystemVersionConstantOrBuilder() { + return getOperatingSystemVersionConstant(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (operatingSystemVersionConstant_ != null) { + output.writeMessage(1, getOperatingSystemVersionConstant()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (operatingSystemVersionConstant_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getOperatingSystemVersionConstant()); + } + size += unknownFields.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.ads.googleads.v0.common.OperatingSystemVersionInfo)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.common.OperatingSystemVersionInfo other = (com.google.ads.googleads.v0.common.OperatingSystemVersionInfo) obj; + + boolean result = true; + result = result && (hasOperatingSystemVersionConstant() == other.hasOperatingSystemVersionConstant()); + if (hasOperatingSystemVersionConstant()) { + result = result && getOperatingSystemVersionConstant() + .equals(other.getOperatingSystemVersionConstant()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasOperatingSystemVersionConstant()) { + hash = (37 * hash) + OPERATING_SYSTEM_VERSION_CONSTANT_FIELD_NUMBER; + hash = (53 * hash) + getOperatingSystemVersionConstant().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.common.OperatingSystemVersionInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.OperatingSystemVersionInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.OperatingSystemVersionInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.OperatingSystemVersionInfo 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.ads.googleads.v0.common.OperatingSystemVersionInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.OperatingSystemVersionInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.OperatingSystemVersionInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.OperatingSystemVersionInfo 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.ads.googleads.v0.common.OperatingSystemVersionInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.OperatingSystemVersionInfo 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.ads.googleads.v0.common.OperatingSystemVersionInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.OperatingSystemVersionInfo 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.ads.googleads.v0.common.OperatingSystemVersionInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Represents an operating system version to be targeted.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.OperatingSystemVersionInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.common.OperatingSystemVersionInfo) + com.google.ads.googleads.v0.common.OperatingSystemVersionInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.CriteriaProto.internal_static_google_ads_googleads_v0_common_OperatingSystemVersionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.CriteriaProto.internal_static_google_ads_googleads_v0_common_OperatingSystemVersionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.OperatingSystemVersionInfo.class, com.google.ads.googleads.v0.common.OperatingSystemVersionInfo.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.common.OperatingSystemVersionInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (operatingSystemVersionConstantBuilder_ == null) { + operatingSystemVersionConstant_ = null; + } else { + operatingSystemVersionConstant_ = null; + operatingSystemVersionConstantBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.common.CriteriaProto.internal_static_google_ads_googleads_v0_common_OperatingSystemVersionInfo_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.OperatingSystemVersionInfo getDefaultInstanceForType() { + return com.google.ads.googleads.v0.common.OperatingSystemVersionInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.OperatingSystemVersionInfo build() { + com.google.ads.googleads.v0.common.OperatingSystemVersionInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.OperatingSystemVersionInfo buildPartial() { + com.google.ads.googleads.v0.common.OperatingSystemVersionInfo result = new com.google.ads.googleads.v0.common.OperatingSystemVersionInfo(this); + if (operatingSystemVersionConstantBuilder_ == null) { + result.operatingSystemVersionConstant_ = operatingSystemVersionConstant_; + } else { + result.operatingSystemVersionConstant_ = operatingSystemVersionConstantBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.common.OperatingSystemVersionInfo) { + return mergeFrom((com.google.ads.googleads.v0.common.OperatingSystemVersionInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.common.OperatingSystemVersionInfo other) { + if (other == com.google.ads.googleads.v0.common.OperatingSystemVersionInfo.getDefaultInstance()) return this; + if (other.hasOperatingSystemVersionConstant()) { + mergeOperatingSystemVersionConstant(other.getOperatingSystemVersionConstant()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.common.OperatingSystemVersionInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.common.OperatingSystemVersionInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.StringValue operatingSystemVersionConstant_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> operatingSystemVersionConstantBuilder_; + /** + *
+     * The operating system version constant resource name.
+     * 
+ * + * .google.protobuf.StringValue operating_system_version_constant = 1; + */ + public boolean hasOperatingSystemVersionConstant() { + return operatingSystemVersionConstantBuilder_ != null || operatingSystemVersionConstant_ != null; + } + /** + *
+     * The operating system version constant resource name.
+     * 
+ * + * .google.protobuf.StringValue operating_system_version_constant = 1; + */ + public com.google.protobuf.StringValue getOperatingSystemVersionConstant() { + if (operatingSystemVersionConstantBuilder_ == null) { + return operatingSystemVersionConstant_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : operatingSystemVersionConstant_; + } else { + return operatingSystemVersionConstantBuilder_.getMessage(); + } + } + /** + *
+     * The operating system version constant resource name.
+     * 
+ * + * .google.protobuf.StringValue operating_system_version_constant = 1; + */ + public Builder setOperatingSystemVersionConstant(com.google.protobuf.StringValue value) { + if (operatingSystemVersionConstantBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + operatingSystemVersionConstant_ = value; + onChanged(); + } else { + operatingSystemVersionConstantBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The operating system version constant resource name.
+     * 
+ * + * .google.protobuf.StringValue operating_system_version_constant = 1; + */ + public Builder setOperatingSystemVersionConstant( + com.google.protobuf.StringValue.Builder builderForValue) { + if (operatingSystemVersionConstantBuilder_ == null) { + operatingSystemVersionConstant_ = builderForValue.build(); + onChanged(); + } else { + operatingSystemVersionConstantBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The operating system version constant resource name.
+     * 
+ * + * .google.protobuf.StringValue operating_system_version_constant = 1; + */ + public Builder mergeOperatingSystemVersionConstant(com.google.protobuf.StringValue value) { + if (operatingSystemVersionConstantBuilder_ == null) { + if (operatingSystemVersionConstant_ != null) { + operatingSystemVersionConstant_ = + com.google.protobuf.StringValue.newBuilder(operatingSystemVersionConstant_).mergeFrom(value).buildPartial(); + } else { + operatingSystemVersionConstant_ = value; + } + onChanged(); + } else { + operatingSystemVersionConstantBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The operating system version constant resource name.
+     * 
+ * + * .google.protobuf.StringValue operating_system_version_constant = 1; + */ + public Builder clearOperatingSystemVersionConstant() { + if (operatingSystemVersionConstantBuilder_ == null) { + operatingSystemVersionConstant_ = null; + onChanged(); + } else { + operatingSystemVersionConstant_ = null; + operatingSystemVersionConstantBuilder_ = null; + } + + return this; + } + /** + *
+     * The operating system version constant resource name.
+     * 
+ * + * .google.protobuf.StringValue operating_system_version_constant = 1; + */ + public com.google.protobuf.StringValue.Builder getOperatingSystemVersionConstantBuilder() { + + onChanged(); + return getOperatingSystemVersionConstantFieldBuilder().getBuilder(); + } + /** + *
+     * The operating system version constant resource name.
+     * 
+ * + * .google.protobuf.StringValue operating_system_version_constant = 1; + */ + public com.google.protobuf.StringValueOrBuilder getOperatingSystemVersionConstantOrBuilder() { + if (operatingSystemVersionConstantBuilder_ != null) { + return operatingSystemVersionConstantBuilder_.getMessageOrBuilder(); + } else { + return operatingSystemVersionConstant_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : operatingSystemVersionConstant_; + } + } + /** + *
+     * The operating system version constant resource name.
+     * 
+ * + * .google.protobuf.StringValue operating_system_version_constant = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getOperatingSystemVersionConstantFieldBuilder() { + if (operatingSystemVersionConstantBuilder_ == null) { + operatingSystemVersionConstantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getOperatingSystemVersionConstant(), + getParentForChildren(), + isClean()); + operatingSystemVersionConstant_ = null; + } + return operatingSystemVersionConstantBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.common.OperatingSystemVersionInfo) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.common.OperatingSystemVersionInfo) + private static final com.google.ads.googleads.v0.common.OperatingSystemVersionInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.common.OperatingSystemVersionInfo(); + } + + public static com.google.ads.googleads.v0.common.OperatingSystemVersionInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperatingSystemVersionInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperatingSystemVersionInfo(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.common.OperatingSystemVersionInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/OperatingSystemVersionInfoOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/OperatingSystemVersionInfoOrBuilder.java new file mode 100644 index 0000000000..6f03ee652f --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/OperatingSystemVersionInfoOrBuilder.java @@ -0,0 +1,34 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/criteria.proto + +package com.google.ads.googleads.v0.common; + +public interface OperatingSystemVersionInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.common.OperatingSystemVersionInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The operating system version constant resource name.
+   * 
+ * + * .google.protobuf.StringValue operating_system_version_constant = 1; + */ + boolean hasOperatingSystemVersionConstant(); + /** + *
+   * The operating system version constant resource name.
+   * 
+ * + * .google.protobuf.StringValue operating_system_version_constant = 1; + */ + com.google.protobuf.StringValue getOperatingSystemVersionConstant(); + /** + *
+   * The operating system version constant resource name.
+   * 
+ * + * .google.protobuf.StringValue operating_system_version_constant = 1; + */ + com.google.protobuf.StringValueOrBuilder getOperatingSystemVersionConstantOrBuilder(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/PolicyProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/PolicyProto.java index 69bd92ea26..f76d61e1c5 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/common/PolicyProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/PolicyProto.java @@ -144,12 +144,13 @@ public static void registerAllExtensions( "olicyTopicConstraint.CountryConstraint\032\024" + "\n\022ResellerConstraint\032L\n\021CountryConstrain" + "t\0227\n\021country_criterion\030\001 \001(\0132\034.google.pr" + - "otobuf.StringValueB\007\n\005valueB\301\001\n\"com.goog" + + "otobuf.StringValueB\007\n\005valueB\346\001\n\"com.goog" + "le.ads.googleads.v0.commonB\013PolicyProtoP" + "\001ZDgoogle.golang.org/genproto/googleapis" + "/ads/googleads/v0/common;common\242\002\003GAA\252\002\036" + "Google.Ads.GoogleAds.V0.Common\312\002\036Google\\" + - "Ads\\GoogleAds\\V0\\Commonb\006proto3" + "Ads\\GoogleAds\\V0\\Common\352\002\"Google::Ads::G" + + "oogleAds::V0::Commonb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/RealTimeBiddingSettingProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/RealTimeBiddingSettingProto.java index 278f1e4755..1ade9839bd 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/common/RealTimeBiddingSettingProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/RealTimeBiddingSettingProto.java @@ -32,13 +32,14 @@ public static void registerAllExtensions( "me_bidding_setting.proto\022\036google.ads.goo" + "gleads.v0.common\032\036google/protobuf/wrappe" + "rs.proto\"D\n\026RealTimeBiddingSetting\022*\n\006op" + - "t_in\030\001 \001(\0132\032.google.protobuf.BoolValueB\321" + + "t_in\030\001 \001(\0132\032.google.protobuf.BoolValueB\366" + "\001\n\"com.google.ads.googleads.v0.commonB\033R" + "ealTimeBiddingSettingProtoP\001ZDgoogle.gol" + "ang.org/genproto/googleapis/ads/googlead" + "s/v0/common;common\242\002\003GAA\252\002\036Google.Ads.Go" + "ogleAds.V0.Common\312\002\036Google\\Ads\\GoogleAds" + - "\\V0\\Commonb\006proto3" + "\\V0\\Common\352\002\"Google::Ads::GoogleAds::V0:" + + ":Commonb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/RuleBasedUserListInfo.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/RuleBasedUserListInfo.java new file mode 100644 index 0000000000..7799515cc8 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/RuleBasedUserListInfo.java @@ -0,0 +1,1492 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/user_lists.proto + +package com.google.ads.googleads.v0.common; + +/** + *
+ * Representation of a userlist that is generated by a rule.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.RuleBasedUserListInfo} + */ +public final class RuleBasedUserListInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.common.RuleBasedUserListInfo) + RuleBasedUserListInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use RuleBasedUserListInfo.newBuilder() to construct. + private RuleBasedUserListInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RuleBasedUserListInfo() { + prepopulationStatus_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RuleBasedUserListInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + prepopulationStatus_ = rawValue; + break; + } + case 18: { + com.google.ads.googleads.v0.common.CombinedRuleUserListInfo.Builder subBuilder = null; + if (ruleBasedUserListCase_ == 2) { + subBuilder = ((com.google.ads.googleads.v0.common.CombinedRuleUserListInfo) ruleBasedUserList_).toBuilder(); + } + ruleBasedUserList_ = + input.readMessage(com.google.ads.googleads.v0.common.CombinedRuleUserListInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.ads.googleads.v0.common.CombinedRuleUserListInfo) ruleBasedUserList_); + ruleBasedUserList_ = subBuilder.buildPartial(); + } + ruleBasedUserListCase_ = 2; + break; + } + case 26: { + com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo.Builder subBuilder = null; + if (ruleBasedUserListCase_ == 3) { + subBuilder = ((com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo) ruleBasedUserList_).toBuilder(); + } + ruleBasedUserList_ = + input.readMessage(com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo) ruleBasedUserList_); + ruleBasedUserList_ = subBuilder.buildPartial(); + } + ruleBasedUserListCase_ = 3; + break; + } + case 34: { + com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo.Builder subBuilder = null; + if (ruleBasedUserListCase_ == 4) { + subBuilder = ((com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo) ruleBasedUserList_).toBuilder(); + } + ruleBasedUserList_ = + input.readMessage(com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo) ruleBasedUserList_); + ruleBasedUserList_ = subBuilder.buildPartial(); + } + ruleBasedUserListCase_ = 4; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_RuleBasedUserListInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_RuleBasedUserListInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.RuleBasedUserListInfo.class, com.google.ads.googleads.v0.common.RuleBasedUserListInfo.Builder.class); + } + + private int ruleBasedUserListCase_ = 0; + private java.lang.Object ruleBasedUserList_; + public enum RuleBasedUserListCase + implements com.google.protobuf.Internal.EnumLite { + COMBINED_RULE_USER_LIST(2), + DATE_SPECIFIC_RULE_USER_LIST(3), + EXPRESSION_RULE_USER_LIST(4), + RULEBASEDUSERLIST_NOT_SET(0); + private final int value; + private RuleBasedUserListCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RuleBasedUserListCase valueOf(int value) { + return forNumber(value); + } + + public static RuleBasedUserListCase forNumber(int value) { + switch (value) { + case 2: return COMBINED_RULE_USER_LIST; + case 3: return DATE_SPECIFIC_RULE_USER_LIST; + case 4: return EXPRESSION_RULE_USER_LIST; + case 0: return RULEBASEDUSERLIST_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public RuleBasedUserListCase + getRuleBasedUserListCase() { + return RuleBasedUserListCase.forNumber( + ruleBasedUserListCase_); + } + + public static final int PREPOPULATION_STATUS_FIELD_NUMBER = 1; + private int prepopulationStatus_; + /** + *
+   * The status of pre-population. The field is default to NONE if not set which
+   * means the previous users will not be considered. If set to REQUESTED, past
+   * site visitors or app users who match the list definition will be included
+   * in the list (works on the Display Network only). This will only
+   * add past users from within the last 30 days, depending on the
+   * list's membership duration and the date when the remarketing tag is added.
+   * The status will be updated to FINISHED once request is processed, or FAILED
+   * if the request fails.
+   * 
+ * + * .google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum.UserListPrepopulationStatus prepopulation_status = 1; + */ + public int getPrepopulationStatusValue() { + return prepopulationStatus_; + } + /** + *
+   * The status of pre-population. The field is default to NONE if not set which
+   * means the previous users will not be considered. If set to REQUESTED, past
+   * site visitors or app users who match the list definition will be included
+   * in the list (works on the Display Network only). This will only
+   * add past users from within the last 30 days, depending on the
+   * list's membership duration and the date when the remarketing tag is added.
+   * The status will be updated to FINISHED once request is processed, or FAILED
+   * if the request fails.
+   * 
+ * + * .google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum.UserListPrepopulationStatus prepopulation_status = 1; + */ + public com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum.UserListPrepopulationStatus getPrepopulationStatus() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum.UserListPrepopulationStatus result = com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum.UserListPrepopulationStatus.valueOf(prepopulationStatus_); + return result == null ? com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum.UserListPrepopulationStatus.UNRECOGNIZED : result; + } + + public static final int COMBINED_RULE_USER_LIST_FIELD_NUMBER = 2; + /** + *
+   * User lists defined by combining two rules.
+   * There are two operators: AND, where the left and right operands have to
+   * be true; AND_NOT where left operand is true but right operand is false.
+   * 
+ * + * .google.ads.googleads.v0.common.CombinedRuleUserListInfo combined_rule_user_list = 2; + */ + public boolean hasCombinedRuleUserList() { + return ruleBasedUserListCase_ == 2; + } + /** + *
+   * User lists defined by combining two rules.
+   * There are two operators: AND, where the left and right operands have to
+   * be true; AND_NOT where left operand is true but right operand is false.
+   * 
+ * + * .google.ads.googleads.v0.common.CombinedRuleUserListInfo combined_rule_user_list = 2; + */ + public com.google.ads.googleads.v0.common.CombinedRuleUserListInfo getCombinedRuleUserList() { + if (ruleBasedUserListCase_ == 2) { + return (com.google.ads.googleads.v0.common.CombinedRuleUserListInfo) ruleBasedUserList_; + } + return com.google.ads.googleads.v0.common.CombinedRuleUserListInfo.getDefaultInstance(); + } + /** + *
+   * User lists defined by combining two rules.
+   * There are two operators: AND, where the left and right operands have to
+   * be true; AND_NOT where left operand is true but right operand is false.
+   * 
+ * + * .google.ads.googleads.v0.common.CombinedRuleUserListInfo combined_rule_user_list = 2; + */ + public com.google.ads.googleads.v0.common.CombinedRuleUserListInfoOrBuilder getCombinedRuleUserListOrBuilder() { + if (ruleBasedUserListCase_ == 2) { + return (com.google.ads.googleads.v0.common.CombinedRuleUserListInfo) ruleBasedUserList_; + } + return com.google.ads.googleads.v0.common.CombinedRuleUserListInfo.getDefaultInstance(); + } + + public static final int DATE_SPECIFIC_RULE_USER_LIST_FIELD_NUMBER = 3; + /** + *
+   * Visitors of a page during specific dates. The visiting periods are
+   * defined as follows:
+   * Between start_date (inclusive) and end_date (inclusive);
+   * Before end_date (exclusive) with start_date = 2000-01-01;
+   * After start_date (exclusive) with end_date = 2037-12-30.
+   * 
+ * + * .google.ads.googleads.v0.common.DateSpecificRuleUserListInfo date_specific_rule_user_list = 3; + */ + public boolean hasDateSpecificRuleUserList() { + return ruleBasedUserListCase_ == 3; + } + /** + *
+   * Visitors of a page during specific dates. The visiting periods are
+   * defined as follows:
+   * Between start_date (inclusive) and end_date (inclusive);
+   * Before end_date (exclusive) with start_date = 2000-01-01;
+   * After start_date (exclusive) with end_date = 2037-12-30.
+   * 
+ * + * .google.ads.googleads.v0.common.DateSpecificRuleUserListInfo date_specific_rule_user_list = 3; + */ + public com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo getDateSpecificRuleUserList() { + if (ruleBasedUserListCase_ == 3) { + return (com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo) ruleBasedUserList_; + } + return com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo.getDefaultInstance(); + } + /** + *
+   * Visitors of a page during specific dates. The visiting periods are
+   * defined as follows:
+   * Between start_date (inclusive) and end_date (inclusive);
+   * Before end_date (exclusive) with start_date = 2000-01-01;
+   * After start_date (exclusive) with end_date = 2037-12-30.
+   * 
+ * + * .google.ads.googleads.v0.common.DateSpecificRuleUserListInfo date_specific_rule_user_list = 3; + */ + public com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfoOrBuilder getDateSpecificRuleUserListOrBuilder() { + if (ruleBasedUserListCase_ == 3) { + return (com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo) ruleBasedUserList_; + } + return com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo.getDefaultInstance(); + } + + public static final int EXPRESSION_RULE_USER_LIST_FIELD_NUMBER = 4; + /** + *
+   * Visitors of a page. The page visit is defined by one boolean rule
+   * expression.
+   * 
+ * + * .google.ads.googleads.v0.common.ExpressionRuleUserListInfo expression_rule_user_list = 4; + */ + public boolean hasExpressionRuleUserList() { + return ruleBasedUserListCase_ == 4; + } + /** + *
+   * Visitors of a page. The page visit is defined by one boolean rule
+   * expression.
+   * 
+ * + * .google.ads.googleads.v0.common.ExpressionRuleUserListInfo expression_rule_user_list = 4; + */ + public com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo getExpressionRuleUserList() { + if (ruleBasedUserListCase_ == 4) { + return (com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo) ruleBasedUserList_; + } + return com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo.getDefaultInstance(); + } + /** + *
+   * Visitors of a page. The page visit is defined by one boolean rule
+   * expression.
+   * 
+ * + * .google.ads.googleads.v0.common.ExpressionRuleUserListInfo expression_rule_user_list = 4; + */ + public com.google.ads.googleads.v0.common.ExpressionRuleUserListInfoOrBuilder getExpressionRuleUserListOrBuilder() { + if (ruleBasedUserListCase_ == 4) { + return (com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo) ruleBasedUserList_; + } + return com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (prepopulationStatus_ != com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum.UserListPrepopulationStatus.UNSPECIFIED.getNumber()) { + output.writeEnum(1, prepopulationStatus_); + } + if (ruleBasedUserListCase_ == 2) { + output.writeMessage(2, (com.google.ads.googleads.v0.common.CombinedRuleUserListInfo) ruleBasedUserList_); + } + if (ruleBasedUserListCase_ == 3) { + output.writeMessage(3, (com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo) ruleBasedUserList_); + } + if (ruleBasedUserListCase_ == 4) { + output.writeMessage(4, (com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo) ruleBasedUserList_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (prepopulationStatus_ != com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum.UserListPrepopulationStatus.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, prepopulationStatus_); + } + if (ruleBasedUserListCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.ads.googleads.v0.common.CombinedRuleUserListInfo) ruleBasedUserList_); + } + if (ruleBasedUserListCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo) ruleBasedUserList_); + } + if (ruleBasedUserListCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo) ruleBasedUserList_); + } + size += unknownFields.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.ads.googleads.v0.common.RuleBasedUserListInfo)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.common.RuleBasedUserListInfo other = (com.google.ads.googleads.v0.common.RuleBasedUserListInfo) obj; + + boolean result = true; + result = result && prepopulationStatus_ == other.prepopulationStatus_; + result = result && getRuleBasedUserListCase().equals( + other.getRuleBasedUserListCase()); + if (!result) return false; + switch (ruleBasedUserListCase_) { + case 2: + result = result && getCombinedRuleUserList() + .equals(other.getCombinedRuleUserList()); + break; + case 3: + result = result && getDateSpecificRuleUserList() + .equals(other.getDateSpecificRuleUserList()); + break; + case 4: + result = result && getExpressionRuleUserList() + .equals(other.getExpressionRuleUserList()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PREPOPULATION_STATUS_FIELD_NUMBER; + hash = (53 * hash) + prepopulationStatus_; + switch (ruleBasedUserListCase_) { + case 2: + hash = (37 * hash) + COMBINED_RULE_USER_LIST_FIELD_NUMBER; + hash = (53 * hash) + getCombinedRuleUserList().hashCode(); + break; + case 3: + hash = (37 * hash) + DATE_SPECIFIC_RULE_USER_LIST_FIELD_NUMBER; + hash = (53 * hash) + getDateSpecificRuleUserList().hashCode(); + break; + case 4: + hash = (37 * hash) + EXPRESSION_RULE_USER_LIST_FIELD_NUMBER; + hash = (53 * hash) + getExpressionRuleUserList().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.common.RuleBasedUserListInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.RuleBasedUserListInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.RuleBasedUserListInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.RuleBasedUserListInfo 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.ads.googleads.v0.common.RuleBasedUserListInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.RuleBasedUserListInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.RuleBasedUserListInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.RuleBasedUserListInfo 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.ads.googleads.v0.common.RuleBasedUserListInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.RuleBasedUserListInfo 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.ads.googleads.v0.common.RuleBasedUserListInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.RuleBasedUserListInfo 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.ads.googleads.v0.common.RuleBasedUserListInfo 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; + } + /** + *
+   * Representation of a userlist that is generated by a rule.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.RuleBasedUserListInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.common.RuleBasedUserListInfo) + com.google.ads.googleads.v0.common.RuleBasedUserListInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_RuleBasedUserListInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_RuleBasedUserListInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.RuleBasedUserListInfo.class, com.google.ads.googleads.v0.common.RuleBasedUserListInfo.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.common.RuleBasedUserListInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + prepopulationStatus_ = 0; + + ruleBasedUserListCase_ = 0; + ruleBasedUserList_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_RuleBasedUserListInfo_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.RuleBasedUserListInfo getDefaultInstanceForType() { + return com.google.ads.googleads.v0.common.RuleBasedUserListInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.RuleBasedUserListInfo build() { + com.google.ads.googleads.v0.common.RuleBasedUserListInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.RuleBasedUserListInfo buildPartial() { + com.google.ads.googleads.v0.common.RuleBasedUserListInfo result = new com.google.ads.googleads.v0.common.RuleBasedUserListInfo(this); + result.prepopulationStatus_ = prepopulationStatus_; + if (ruleBasedUserListCase_ == 2) { + if (combinedRuleUserListBuilder_ == null) { + result.ruleBasedUserList_ = ruleBasedUserList_; + } else { + result.ruleBasedUserList_ = combinedRuleUserListBuilder_.build(); + } + } + if (ruleBasedUserListCase_ == 3) { + if (dateSpecificRuleUserListBuilder_ == null) { + result.ruleBasedUserList_ = ruleBasedUserList_; + } else { + result.ruleBasedUserList_ = dateSpecificRuleUserListBuilder_.build(); + } + } + if (ruleBasedUserListCase_ == 4) { + if (expressionRuleUserListBuilder_ == null) { + result.ruleBasedUserList_ = ruleBasedUserList_; + } else { + result.ruleBasedUserList_ = expressionRuleUserListBuilder_.build(); + } + } + result.ruleBasedUserListCase_ = ruleBasedUserListCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.common.RuleBasedUserListInfo) { + return mergeFrom((com.google.ads.googleads.v0.common.RuleBasedUserListInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.common.RuleBasedUserListInfo other) { + if (other == com.google.ads.googleads.v0.common.RuleBasedUserListInfo.getDefaultInstance()) return this; + if (other.prepopulationStatus_ != 0) { + setPrepopulationStatusValue(other.getPrepopulationStatusValue()); + } + switch (other.getRuleBasedUserListCase()) { + case COMBINED_RULE_USER_LIST: { + mergeCombinedRuleUserList(other.getCombinedRuleUserList()); + break; + } + case DATE_SPECIFIC_RULE_USER_LIST: { + mergeDateSpecificRuleUserList(other.getDateSpecificRuleUserList()); + break; + } + case EXPRESSION_RULE_USER_LIST: { + mergeExpressionRuleUserList(other.getExpressionRuleUserList()); + break; + } + case RULEBASEDUSERLIST_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.common.RuleBasedUserListInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.common.RuleBasedUserListInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int ruleBasedUserListCase_ = 0; + private java.lang.Object ruleBasedUserList_; + public RuleBasedUserListCase + getRuleBasedUserListCase() { + return RuleBasedUserListCase.forNumber( + ruleBasedUserListCase_); + } + + public Builder clearRuleBasedUserList() { + ruleBasedUserListCase_ = 0; + ruleBasedUserList_ = null; + onChanged(); + return this; + } + + + private int prepopulationStatus_ = 0; + /** + *
+     * The status of pre-population. The field is default to NONE if not set which
+     * means the previous users will not be considered. If set to REQUESTED, past
+     * site visitors or app users who match the list definition will be included
+     * in the list (works on the Display Network only). This will only
+     * add past users from within the last 30 days, depending on the
+     * list's membership duration and the date when the remarketing tag is added.
+     * The status will be updated to FINISHED once request is processed, or FAILED
+     * if the request fails.
+     * 
+ * + * .google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum.UserListPrepopulationStatus prepopulation_status = 1; + */ + public int getPrepopulationStatusValue() { + return prepopulationStatus_; + } + /** + *
+     * The status of pre-population. The field is default to NONE if not set which
+     * means the previous users will not be considered. If set to REQUESTED, past
+     * site visitors or app users who match the list definition will be included
+     * in the list (works on the Display Network only). This will only
+     * add past users from within the last 30 days, depending on the
+     * list's membership duration and the date when the remarketing tag is added.
+     * The status will be updated to FINISHED once request is processed, or FAILED
+     * if the request fails.
+     * 
+ * + * .google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum.UserListPrepopulationStatus prepopulation_status = 1; + */ + public Builder setPrepopulationStatusValue(int value) { + prepopulationStatus_ = value; + onChanged(); + return this; + } + /** + *
+     * The status of pre-population. The field is default to NONE if not set which
+     * means the previous users will not be considered. If set to REQUESTED, past
+     * site visitors or app users who match the list definition will be included
+     * in the list (works on the Display Network only). This will only
+     * add past users from within the last 30 days, depending on the
+     * list's membership duration and the date when the remarketing tag is added.
+     * The status will be updated to FINISHED once request is processed, or FAILED
+     * if the request fails.
+     * 
+ * + * .google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum.UserListPrepopulationStatus prepopulation_status = 1; + */ + public com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum.UserListPrepopulationStatus getPrepopulationStatus() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum.UserListPrepopulationStatus result = com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum.UserListPrepopulationStatus.valueOf(prepopulationStatus_); + return result == null ? com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum.UserListPrepopulationStatus.UNRECOGNIZED : result; + } + /** + *
+     * The status of pre-population. The field is default to NONE if not set which
+     * means the previous users will not be considered. If set to REQUESTED, past
+     * site visitors or app users who match the list definition will be included
+     * in the list (works on the Display Network only). This will only
+     * add past users from within the last 30 days, depending on the
+     * list's membership duration and the date when the remarketing tag is added.
+     * The status will be updated to FINISHED once request is processed, or FAILED
+     * if the request fails.
+     * 
+ * + * .google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum.UserListPrepopulationStatus prepopulation_status = 1; + */ + public Builder setPrepopulationStatus(com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum.UserListPrepopulationStatus value) { + if (value == null) { + throw new NullPointerException(); + } + + prepopulationStatus_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The status of pre-population. The field is default to NONE if not set which
+     * means the previous users will not be considered. If set to REQUESTED, past
+     * site visitors or app users who match the list definition will be included
+     * in the list (works on the Display Network only). This will only
+     * add past users from within the last 30 days, depending on the
+     * list's membership duration and the date when the remarketing tag is added.
+     * The status will be updated to FINISHED once request is processed, or FAILED
+     * if the request fails.
+     * 
+ * + * .google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum.UserListPrepopulationStatus prepopulation_status = 1; + */ + public Builder clearPrepopulationStatus() { + + prepopulationStatus_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.CombinedRuleUserListInfo, com.google.ads.googleads.v0.common.CombinedRuleUserListInfo.Builder, com.google.ads.googleads.v0.common.CombinedRuleUserListInfoOrBuilder> combinedRuleUserListBuilder_; + /** + *
+     * User lists defined by combining two rules.
+     * There are two operators: AND, where the left and right operands have to
+     * be true; AND_NOT where left operand is true but right operand is false.
+     * 
+ * + * .google.ads.googleads.v0.common.CombinedRuleUserListInfo combined_rule_user_list = 2; + */ + public boolean hasCombinedRuleUserList() { + return ruleBasedUserListCase_ == 2; + } + /** + *
+     * User lists defined by combining two rules.
+     * There are two operators: AND, where the left and right operands have to
+     * be true; AND_NOT where left operand is true but right operand is false.
+     * 
+ * + * .google.ads.googleads.v0.common.CombinedRuleUserListInfo combined_rule_user_list = 2; + */ + public com.google.ads.googleads.v0.common.CombinedRuleUserListInfo getCombinedRuleUserList() { + if (combinedRuleUserListBuilder_ == null) { + if (ruleBasedUserListCase_ == 2) { + return (com.google.ads.googleads.v0.common.CombinedRuleUserListInfo) ruleBasedUserList_; + } + return com.google.ads.googleads.v0.common.CombinedRuleUserListInfo.getDefaultInstance(); + } else { + if (ruleBasedUserListCase_ == 2) { + return combinedRuleUserListBuilder_.getMessage(); + } + return com.google.ads.googleads.v0.common.CombinedRuleUserListInfo.getDefaultInstance(); + } + } + /** + *
+     * User lists defined by combining two rules.
+     * There are two operators: AND, where the left and right operands have to
+     * be true; AND_NOT where left operand is true but right operand is false.
+     * 
+ * + * .google.ads.googleads.v0.common.CombinedRuleUserListInfo combined_rule_user_list = 2; + */ + public Builder setCombinedRuleUserList(com.google.ads.googleads.v0.common.CombinedRuleUserListInfo value) { + if (combinedRuleUserListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ruleBasedUserList_ = value; + onChanged(); + } else { + combinedRuleUserListBuilder_.setMessage(value); + } + ruleBasedUserListCase_ = 2; + return this; + } + /** + *
+     * User lists defined by combining two rules.
+     * There are two operators: AND, where the left and right operands have to
+     * be true; AND_NOT where left operand is true but right operand is false.
+     * 
+ * + * .google.ads.googleads.v0.common.CombinedRuleUserListInfo combined_rule_user_list = 2; + */ + public Builder setCombinedRuleUserList( + com.google.ads.googleads.v0.common.CombinedRuleUserListInfo.Builder builderForValue) { + if (combinedRuleUserListBuilder_ == null) { + ruleBasedUserList_ = builderForValue.build(); + onChanged(); + } else { + combinedRuleUserListBuilder_.setMessage(builderForValue.build()); + } + ruleBasedUserListCase_ = 2; + return this; + } + /** + *
+     * User lists defined by combining two rules.
+     * There are two operators: AND, where the left and right operands have to
+     * be true; AND_NOT where left operand is true but right operand is false.
+     * 
+ * + * .google.ads.googleads.v0.common.CombinedRuleUserListInfo combined_rule_user_list = 2; + */ + public Builder mergeCombinedRuleUserList(com.google.ads.googleads.v0.common.CombinedRuleUserListInfo value) { + if (combinedRuleUserListBuilder_ == null) { + if (ruleBasedUserListCase_ == 2 && + ruleBasedUserList_ != com.google.ads.googleads.v0.common.CombinedRuleUserListInfo.getDefaultInstance()) { + ruleBasedUserList_ = com.google.ads.googleads.v0.common.CombinedRuleUserListInfo.newBuilder((com.google.ads.googleads.v0.common.CombinedRuleUserListInfo) ruleBasedUserList_) + .mergeFrom(value).buildPartial(); + } else { + ruleBasedUserList_ = value; + } + onChanged(); + } else { + if (ruleBasedUserListCase_ == 2) { + combinedRuleUserListBuilder_.mergeFrom(value); + } + combinedRuleUserListBuilder_.setMessage(value); + } + ruleBasedUserListCase_ = 2; + return this; + } + /** + *
+     * User lists defined by combining two rules.
+     * There are two operators: AND, where the left and right operands have to
+     * be true; AND_NOT where left operand is true but right operand is false.
+     * 
+ * + * .google.ads.googleads.v0.common.CombinedRuleUserListInfo combined_rule_user_list = 2; + */ + public Builder clearCombinedRuleUserList() { + if (combinedRuleUserListBuilder_ == null) { + if (ruleBasedUserListCase_ == 2) { + ruleBasedUserListCase_ = 0; + ruleBasedUserList_ = null; + onChanged(); + } + } else { + if (ruleBasedUserListCase_ == 2) { + ruleBasedUserListCase_ = 0; + ruleBasedUserList_ = null; + } + combinedRuleUserListBuilder_.clear(); + } + return this; + } + /** + *
+     * User lists defined by combining two rules.
+     * There are two operators: AND, where the left and right operands have to
+     * be true; AND_NOT where left operand is true but right operand is false.
+     * 
+ * + * .google.ads.googleads.v0.common.CombinedRuleUserListInfo combined_rule_user_list = 2; + */ + public com.google.ads.googleads.v0.common.CombinedRuleUserListInfo.Builder getCombinedRuleUserListBuilder() { + return getCombinedRuleUserListFieldBuilder().getBuilder(); + } + /** + *
+     * User lists defined by combining two rules.
+     * There are two operators: AND, where the left and right operands have to
+     * be true; AND_NOT where left operand is true but right operand is false.
+     * 
+ * + * .google.ads.googleads.v0.common.CombinedRuleUserListInfo combined_rule_user_list = 2; + */ + public com.google.ads.googleads.v0.common.CombinedRuleUserListInfoOrBuilder getCombinedRuleUserListOrBuilder() { + if ((ruleBasedUserListCase_ == 2) && (combinedRuleUserListBuilder_ != null)) { + return combinedRuleUserListBuilder_.getMessageOrBuilder(); + } else { + if (ruleBasedUserListCase_ == 2) { + return (com.google.ads.googleads.v0.common.CombinedRuleUserListInfo) ruleBasedUserList_; + } + return com.google.ads.googleads.v0.common.CombinedRuleUserListInfo.getDefaultInstance(); + } + } + /** + *
+     * User lists defined by combining two rules.
+     * There are two operators: AND, where the left and right operands have to
+     * be true; AND_NOT where left operand is true but right operand is false.
+     * 
+ * + * .google.ads.googleads.v0.common.CombinedRuleUserListInfo combined_rule_user_list = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.CombinedRuleUserListInfo, com.google.ads.googleads.v0.common.CombinedRuleUserListInfo.Builder, com.google.ads.googleads.v0.common.CombinedRuleUserListInfoOrBuilder> + getCombinedRuleUserListFieldBuilder() { + if (combinedRuleUserListBuilder_ == null) { + if (!(ruleBasedUserListCase_ == 2)) { + ruleBasedUserList_ = com.google.ads.googleads.v0.common.CombinedRuleUserListInfo.getDefaultInstance(); + } + combinedRuleUserListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.CombinedRuleUserListInfo, com.google.ads.googleads.v0.common.CombinedRuleUserListInfo.Builder, com.google.ads.googleads.v0.common.CombinedRuleUserListInfoOrBuilder>( + (com.google.ads.googleads.v0.common.CombinedRuleUserListInfo) ruleBasedUserList_, + getParentForChildren(), + isClean()); + ruleBasedUserList_ = null; + } + ruleBasedUserListCase_ = 2; + onChanged();; + return combinedRuleUserListBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo, com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo.Builder, com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfoOrBuilder> dateSpecificRuleUserListBuilder_; + /** + *
+     * Visitors of a page during specific dates. The visiting periods are
+     * defined as follows:
+     * Between start_date (inclusive) and end_date (inclusive);
+     * Before end_date (exclusive) with start_date = 2000-01-01;
+     * After start_date (exclusive) with end_date = 2037-12-30.
+     * 
+ * + * .google.ads.googleads.v0.common.DateSpecificRuleUserListInfo date_specific_rule_user_list = 3; + */ + public boolean hasDateSpecificRuleUserList() { + return ruleBasedUserListCase_ == 3; + } + /** + *
+     * Visitors of a page during specific dates. The visiting periods are
+     * defined as follows:
+     * Between start_date (inclusive) and end_date (inclusive);
+     * Before end_date (exclusive) with start_date = 2000-01-01;
+     * After start_date (exclusive) with end_date = 2037-12-30.
+     * 
+ * + * .google.ads.googleads.v0.common.DateSpecificRuleUserListInfo date_specific_rule_user_list = 3; + */ + public com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo getDateSpecificRuleUserList() { + if (dateSpecificRuleUserListBuilder_ == null) { + if (ruleBasedUserListCase_ == 3) { + return (com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo) ruleBasedUserList_; + } + return com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo.getDefaultInstance(); + } else { + if (ruleBasedUserListCase_ == 3) { + return dateSpecificRuleUserListBuilder_.getMessage(); + } + return com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo.getDefaultInstance(); + } + } + /** + *
+     * Visitors of a page during specific dates. The visiting periods are
+     * defined as follows:
+     * Between start_date (inclusive) and end_date (inclusive);
+     * Before end_date (exclusive) with start_date = 2000-01-01;
+     * After start_date (exclusive) with end_date = 2037-12-30.
+     * 
+ * + * .google.ads.googleads.v0.common.DateSpecificRuleUserListInfo date_specific_rule_user_list = 3; + */ + public Builder setDateSpecificRuleUserList(com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo value) { + if (dateSpecificRuleUserListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ruleBasedUserList_ = value; + onChanged(); + } else { + dateSpecificRuleUserListBuilder_.setMessage(value); + } + ruleBasedUserListCase_ = 3; + return this; + } + /** + *
+     * Visitors of a page during specific dates. The visiting periods are
+     * defined as follows:
+     * Between start_date (inclusive) and end_date (inclusive);
+     * Before end_date (exclusive) with start_date = 2000-01-01;
+     * After start_date (exclusive) with end_date = 2037-12-30.
+     * 
+ * + * .google.ads.googleads.v0.common.DateSpecificRuleUserListInfo date_specific_rule_user_list = 3; + */ + public Builder setDateSpecificRuleUserList( + com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo.Builder builderForValue) { + if (dateSpecificRuleUserListBuilder_ == null) { + ruleBasedUserList_ = builderForValue.build(); + onChanged(); + } else { + dateSpecificRuleUserListBuilder_.setMessage(builderForValue.build()); + } + ruleBasedUserListCase_ = 3; + return this; + } + /** + *
+     * Visitors of a page during specific dates. The visiting periods are
+     * defined as follows:
+     * Between start_date (inclusive) and end_date (inclusive);
+     * Before end_date (exclusive) with start_date = 2000-01-01;
+     * After start_date (exclusive) with end_date = 2037-12-30.
+     * 
+ * + * .google.ads.googleads.v0.common.DateSpecificRuleUserListInfo date_specific_rule_user_list = 3; + */ + public Builder mergeDateSpecificRuleUserList(com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo value) { + if (dateSpecificRuleUserListBuilder_ == null) { + if (ruleBasedUserListCase_ == 3 && + ruleBasedUserList_ != com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo.getDefaultInstance()) { + ruleBasedUserList_ = com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo.newBuilder((com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo) ruleBasedUserList_) + .mergeFrom(value).buildPartial(); + } else { + ruleBasedUserList_ = value; + } + onChanged(); + } else { + if (ruleBasedUserListCase_ == 3) { + dateSpecificRuleUserListBuilder_.mergeFrom(value); + } + dateSpecificRuleUserListBuilder_.setMessage(value); + } + ruleBasedUserListCase_ = 3; + return this; + } + /** + *
+     * Visitors of a page during specific dates. The visiting periods are
+     * defined as follows:
+     * Between start_date (inclusive) and end_date (inclusive);
+     * Before end_date (exclusive) with start_date = 2000-01-01;
+     * After start_date (exclusive) with end_date = 2037-12-30.
+     * 
+ * + * .google.ads.googleads.v0.common.DateSpecificRuleUserListInfo date_specific_rule_user_list = 3; + */ + public Builder clearDateSpecificRuleUserList() { + if (dateSpecificRuleUserListBuilder_ == null) { + if (ruleBasedUserListCase_ == 3) { + ruleBasedUserListCase_ = 0; + ruleBasedUserList_ = null; + onChanged(); + } + } else { + if (ruleBasedUserListCase_ == 3) { + ruleBasedUserListCase_ = 0; + ruleBasedUserList_ = null; + } + dateSpecificRuleUserListBuilder_.clear(); + } + return this; + } + /** + *
+     * Visitors of a page during specific dates. The visiting periods are
+     * defined as follows:
+     * Between start_date (inclusive) and end_date (inclusive);
+     * Before end_date (exclusive) with start_date = 2000-01-01;
+     * After start_date (exclusive) with end_date = 2037-12-30.
+     * 
+ * + * .google.ads.googleads.v0.common.DateSpecificRuleUserListInfo date_specific_rule_user_list = 3; + */ + public com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo.Builder getDateSpecificRuleUserListBuilder() { + return getDateSpecificRuleUserListFieldBuilder().getBuilder(); + } + /** + *
+     * Visitors of a page during specific dates. The visiting periods are
+     * defined as follows:
+     * Between start_date (inclusive) and end_date (inclusive);
+     * Before end_date (exclusive) with start_date = 2000-01-01;
+     * After start_date (exclusive) with end_date = 2037-12-30.
+     * 
+ * + * .google.ads.googleads.v0.common.DateSpecificRuleUserListInfo date_specific_rule_user_list = 3; + */ + public com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfoOrBuilder getDateSpecificRuleUserListOrBuilder() { + if ((ruleBasedUserListCase_ == 3) && (dateSpecificRuleUserListBuilder_ != null)) { + return dateSpecificRuleUserListBuilder_.getMessageOrBuilder(); + } else { + if (ruleBasedUserListCase_ == 3) { + return (com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo) ruleBasedUserList_; + } + return com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo.getDefaultInstance(); + } + } + /** + *
+     * Visitors of a page during specific dates. The visiting periods are
+     * defined as follows:
+     * Between start_date (inclusive) and end_date (inclusive);
+     * Before end_date (exclusive) with start_date = 2000-01-01;
+     * After start_date (exclusive) with end_date = 2037-12-30.
+     * 
+ * + * .google.ads.googleads.v0.common.DateSpecificRuleUserListInfo date_specific_rule_user_list = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo, com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo.Builder, com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfoOrBuilder> + getDateSpecificRuleUserListFieldBuilder() { + if (dateSpecificRuleUserListBuilder_ == null) { + if (!(ruleBasedUserListCase_ == 3)) { + ruleBasedUserList_ = com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo.getDefaultInstance(); + } + dateSpecificRuleUserListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo, com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo.Builder, com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfoOrBuilder>( + (com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo) ruleBasedUserList_, + getParentForChildren(), + isClean()); + ruleBasedUserList_ = null; + } + ruleBasedUserListCase_ = 3; + onChanged();; + return dateSpecificRuleUserListBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo, com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo.Builder, com.google.ads.googleads.v0.common.ExpressionRuleUserListInfoOrBuilder> expressionRuleUserListBuilder_; + /** + *
+     * Visitors of a page. The page visit is defined by one boolean rule
+     * expression.
+     * 
+ * + * .google.ads.googleads.v0.common.ExpressionRuleUserListInfo expression_rule_user_list = 4; + */ + public boolean hasExpressionRuleUserList() { + return ruleBasedUserListCase_ == 4; + } + /** + *
+     * Visitors of a page. The page visit is defined by one boolean rule
+     * expression.
+     * 
+ * + * .google.ads.googleads.v0.common.ExpressionRuleUserListInfo expression_rule_user_list = 4; + */ + public com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo getExpressionRuleUserList() { + if (expressionRuleUserListBuilder_ == null) { + if (ruleBasedUserListCase_ == 4) { + return (com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo) ruleBasedUserList_; + } + return com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo.getDefaultInstance(); + } else { + if (ruleBasedUserListCase_ == 4) { + return expressionRuleUserListBuilder_.getMessage(); + } + return com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo.getDefaultInstance(); + } + } + /** + *
+     * Visitors of a page. The page visit is defined by one boolean rule
+     * expression.
+     * 
+ * + * .google.ads.googleads.v0.common.ExpressionRuleUserListInfo expression_rule_user_list = 4; + */ + public Builder setExpressionRuleUserList(com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo value) { + if (expressionRuleUserListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ruleBasedUserList_ = value; + onChanged(); + } else { + expressionRuleUserListBuilder_.setMessage(value); + } + ruleBasedUserListCase_ = 4; + return this; + } + /** + *
+     * Visitors of a page. The page visit is defined by one boolean rule
+     * expression.
+     * 
+ * + * .google.ads.googleads.v0.common.ExpressionRuleUserListInfo expression_rule_user_list = 4; + */ + public Builder setExpressionRuleUserList( + com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo.Builder builderForValue) { + if (expressionRuleUserListBuilder_ == null) { + ruleBasedUserList_ = builderForValue.build(); + onChanged(); + } else { + expressionRuleUserListBuilder_.setMessage(builderForValue.build()); + } + ruleBasedUserListCase_ = 4; + return this; + } + /** + *
+     * Visitors of a page. The page visit is defined by one boolean rule
+     * expression.
+     * 
+ * + * .google.ads.googleads.v0.common.ExpressionRuleUserListInfo expression_rule_user_list = 4; + */ + public Builder mergeExpressionRuleUserList(com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo value) { + if (expressionRuleUserListBuilder_ == null) { + if (ruleBasedUserListCase_ == 4 && + ruleBasedUserList_ != com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo.getDefaultInstance()) { + ruleBasedUserList_ = com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo.newBuilder((com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo) ruleBasedUserList_) + .mergeFrom(value).buildPartial(); + } else { + ruleBasedUserList_ = value; + } + onChanged(); + } else { + if (ruleBasedUserListCase_ == 4) { + expressionRuleUserListBuilder_.mergeFrom(value); + } + expressionRuleUserListBuilder_.setMessage(value); + } + ruleBasedUserListCase_ = 4; + return this; + } + /** + *
+     * Visitors of a page. The page visit is defined by one boolean rule
+     * expression.
+     * 
+ * + * .google.ads.googleads.v0.common.ExpressionRuleUserListInfo expression_rule_user_list = 4; + */ + public Builder clearExpressionRuleUserList() { + if (expressionRuleUserListBuilder_ == null) { + if (ruleBasedUserListCase_ == 4) { + ruleBasedUserListCase_ = 0; + ruleBasedUserList_ = null; + onChanged(); + } + } else { + if (ruleBasedUserListCase_ == 4) { + ruleBasedUserListCase_ = 0; + ruleBasedUserList_ = null; + } + expressionRuleUserListBuilder_.clear(); + } + return this; + } + /** + *
+     * Visitors of a page. The page visit is defined by one boolean rule
+     * expression.
+     * 
+ * + * .google.ads.googleads.v0.common.ExpressionRuleUserListInfo expression_rule_user_list = 4; + */ + public com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo.Builder getExpressionRuleUserListBuilder() { + return getExpressionRuleUserListFieldBuilder().getBuilder(); + } + /** + *
+     * Visitors of a page. The page visit is defined by one boolean rule
+     * expression.
+     * 
+ * + * .google.ads.googleads.v0.common.ExpressionRuleUserListInfo expression_rule_user_list = 4; + */ + public com.google.ads.googleads.v0.common.ExpressionRuleUserListInfoOrBuilder getExpressionRuleUserListOrBuilder() { + if ((ruleBasedUserListCase_ == 4) && (expressionRuleUserListBuilder_ != null)) { + return expressionRuleUserListBuilder_.getMessageOrBuilder(); + } else { + if (ruleBasedUserListCase_ == 4) { + return (com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo) ruleBasedUserList_; + } + return com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo.getDefaultInstance(); + } + } + /** + *
+     * Visitors of a page. The page visit is defined by one boolean rule
+     * expression.
+     * 
+ * + * .google.ads.googleads.v0.common.ExpressionRuleUserListInfo expression_rule_user_list = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo, com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo.Builder, com.google.ads.googleads.v0.common.ExpressionRuleUserListInfoOrBuilder> + getExpressionRuleUserListFieldBuilder() { + if (expressionRuleUserListBuilder_ == null) { + if (!(ruleBasedUserListCase_ == 4)) { + ruleBasedUserList_ = com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo.getDefaultInstance(); + } + expressionRuleUserListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo, com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo.Builder, com.google.ads.googleads.v0.common.ExpressionRuleUserListInfoOrBuilder>( + (com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo) ruleBasedUserList_, + getParentForChildren(), + isClean()); + ruleBasedUserList_ = null; + } + ruleBasedUserListCase_ = 4; + onChanged();; + return expressionRuleUserListBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.common.RuleBasedUserListInfo) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.common.RuleBasedUserListInfo) + private static final com.google.ads.googleads.v0.common.RuleBasedUserListInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.common.RuleBasedUserListInfo(); + } + + public static com.google.ads.googleads.v0.common.RuleBasedUserListInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RuleBasedUserListInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RuleBasedUserListInfo(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.common.RuleBasedUserListInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/RuleBasedUserListInfoOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/RuleBasedUserListInfoOrBuilder.java new file mode 100644 index 0000000000..1870fbb098 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/RuleBasedUserListInfoOrBuilder.java @@ -0,0 +1,138 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/user_lists.proto + +package com.google.ads.googleads.v0.common; + +public interface RuleBasedUserListInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.common.RuleBasedUserListInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The status of pre-population. The field is default to NONE if not set which
+   * means the previous users will not be considered. If set to REQUESTED, past
+   * site visitors or app users who match the list definition will be included
+   * in the list (works on the Display Network only). This will only
+   * add past users from within the last 30 days, depending on the
+   * list's membership duration and the date when the remarketing tag is added.
+   * The status will be updated to FINISHED once request is processed, or FAILED
+   * if the request fails.
+   * 
+ * + * .google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum.UserListPrepopulationStatus prepopulation_status = 1; + */ + int getPrepopulationStatusValue(); + /** + *
+   * The status of pre-population. The field is default to NONE if not set which
+   * means the previous users will not be considered. If set to REQUESTED, past
+   * site visitors or app users who match the list definition will be included
+   * in the list (works on the Display Network only). This will only
+   * add past users from within the last 30 days, depending on the
+   * list's membership duration and the date when the remarketing tag is added.
+   * The status will be updated to FINISHED once request is processed, or FAILED
+   * if the request fails.
+   * 
+ * + * .google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum.UserListPrepopulationStatus prepopulation_status = 1; + */ + com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum.UserListPrepopulationStatus getPrepopulationStatus(); + + /** + *
+   * User lists defined by combining two rules.
+   * There are two operators: AND, where the left and right operands have to
+   * be true; AND_NOT where left operand is true but right operand is false.
+   * 
+ * + * .google.ads.googleads.v0.common.CombinedRuleUserListInfo combined_rule_user_list = 2; + */ + boolean hasCombinedRuleUserList(); + /** + *
+   * User lists defined by combining two rules.
+   * There are two operators: AND, where the left and right operands have to
+   * be true; AND_NOT where left operand is true but right operand is false.
+   * 
+ * + * .google.ads.googleads.v0.common.CombinedRuleUserListInfo combined_rule_user_list = 2; + */ + com.google.ads.googleads.v0.common.CombinedRuleUserListInfo getCombinedRuleUserList(); + /** + *
+   * User lists defined by combining two rules.
+   * There are two operators: AND, where the left and right operands have to
+   * be true; AND_NOT where left operand is true but right operand is false.
+   * 
+ * + * .google.ads.googleads.v0.common.CombinedRuleUserListInfo combined_rule_user_list = 2; + */ + com.google.ads.googleads.v0.common.CombinedRuleUserListInfoOrBuilder getCombinedRuleUserListOrBuilder(); + + /** + *
+   * Visitors of a page during specific dates. The visiting periods are
+   * defined as follows:
+   * Between start_date (inclusive) and end_date (inclusive);
+   * Before end_date (exclusive) with start_date = 2000-01-01;
+   * After start_date (exclusive) with end_date = 2037-12-30.
+   * 
+ * + * .google.ads.googleads.v0.common.DateSpecificRuleUserListInfo date_specific_rule_user_list = 3; + */ + boolean hasDateSpecificRuleUserList(); + /** + *
+   * Visitors of a page during specific dates. The visiting periods are
+   * defined as follows:
+   * Between start_date (inclusive) and end_date (inclusive);
+   * Before end_date (exclusive) with start_date = 2000-01-01;
+   * After start_date (exclusive) with end_date = 2037-12-30.
+   * 
+ * + * .google.ads.googleads.v0.common.DateSpecificRuleUserListInfo date_specific_rule_user_list = 3; + */ + com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfo getDateSpecificRuleUserList(); + /** + *
+   * Visitors of a page during specific dates. The visiting periods are
+   * defined as follows:
+   * Between start_date (inclusive) and end_date (inclusive);
+   * Before end_date (exclusive) with start_date = 2000-01-01;
+   * After start_date (exclusive) with end_date = 2037-12-30.
+   * 
+ * + * .google.ads.googleads.v0.common.DateSpecificRuleUserListInfo date_specific_rule_user_list = 3; + */ + com.google.ads.googleads.v0.common.DateSpecificRuleUserListInfoOrBuilder getDateSpecificRuleUserListOrBuilder(); + + /** + *
+   * Visitors of a page. The page visit is defined by one boolean rule
+   * expression.
+   * 
+ * + * .google.ads.googleads.v0.common.ExpressionRuleUserListInfo expression_rule_user_list = 4; + */ + boolean hasExpressionRuleUserList(); + /** + *
+   * Visitors of a page. The page visit is defined by one boolean rule
+   * expression.
+   * 
+ * + * .google.ads.googleads.v0.common.ExpressionRuleUserListInfo expression_rule_user_list = 4; + */ + com.google.ads.googleads.v0.common.ExpressionRuleUserListInfo getExpressionRuleUserList(); + /** + *
+   * Visitors of a page. The page visit is defined by one boolean rule
+   * expression.
+   * 
+ * + * .google.ads.googleads.v0.common.ExpressionRuleUserListInfo expression_rule_user_list = 4; + */ + com.google.ads.googleads.v0.common.ExpressionRuleUserListInfoOrBuilder getExpressionRuleUserListOrBuilder(); + + public com.google.ads.googleads.v0.common.RuleBasedUserListInfo.RuleBasedUserListCase getRuleBasedUserListCase(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/Segments.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/Segments.java new file mode 100644 index 0000000000..9851f7ef62 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/Segments.java @@ -0,0 +1,5047 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/segments.proto + +package com.google.ads.googleads.v0.common; + +/** + *
+ * Segment only fields.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.Segments} + */ +public final class Segments extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.common.Segments) + SegmentsOrBuilder { +private static final long serialVersionUID = 0L; + // Use Segments.newBuilder() to construct. + private Segments(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Segments() { + adNetworkType_ = 0; + conversionAttributionEventType_ = 0; + dayOfWeek_ = 0; + device_ = 0; + hotelCheckInDayOfWeek_ = 0; + hotelDateSelectionType_ = 0; + monthOfYear_ = 0; + placeholderType_ = 0; + searchTermMatchType_ = 0; + slot_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Segments( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + device_ = rawValue; + break; + } + case 16: { + int rawValue = input.readEnum(); + + conversionAttributionEventType_ = rawValue; + break; + } + case 24: { + int rawValue = input.readEnum(); + + adNetworkType_ = rawValue; + break; + } + case 34: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (date_ != null) { + subBuilder = date_.toBuilder(); + } + date_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(date_); + date_ = subBuilder.buildPartial(); + } + + break; + } + case 40: { + int rawValue = input.readEnum(); + + dayOfWeek_ = rawValue; + break; + } + case 50: { + com.google.protobuf.Int64Value.Builder subBuilder = null; + if (hotelBookingWindowDays_ != null) { + subBuilder = hotelBookingWindowDays_.toBuilder(); + } + hotelBookingWindowDays_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(hotelBookingWindowDays_); + hotelBookingWindowDays_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + com.google.protobuf.Int64Value.Builder subBuilder = null; + if (hotelCenterId_ != null) { + subBuilder = hotelCenterId_.toBuilder(); + } + hotelCenterId_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(hotelCenterId_); + hotelCenterId_ = subBuilder.buildPartial(); + } + + break; + } + case 66: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (hotelCheckInDate_ != null) { + subBuilder = hotelCheckInDate_.toBuilder(); + } + hotelCheckInDate_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(hotelCheckInDate_); + hotelCheckInDate_ = subBuilder.buildPartial(); + } + + break; + } + case 72: { + int rawValue = input.readEnum(); + + hotelCheckInDayOfWeek_ = rawValue; + break; + } + case 82: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (hotelCity_ != null) { + subBuilder = hotelCity_.toBuilder(); + } + hotelCity_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(hotelCity_); + hotelCity_ = subBuilder.buildPartial(); + } + + break; + } + case 90: { + com.google.protobuf.Int32Value.Builder subBuilder = null; + if (hotelClass_ != null) { + subBuilder = hotelClass_.toBuilder(); + } + hotelClass_ = input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(hotelClass_); + hotelClass_ = subBuilder.buildPartial(); + } + + break; + } + case 98: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (hotelCountry_ != null) { + subBuilder = hotelCountry_.toBuilder(); + } + hotelCountry_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(hotelCountry_); + hotelCountry_ = subBuilder.buildPartial(); + } + + break; + } + case 104: { + int rawValue = input.readEnum(); + + hotelDateSelectionType_ = rawValue; + break; + } + case 114: { + com.google.protobuf.Int32Value.Builder subBuilder = null; + if (hotelLengthOfStay_ != null) { + subBuilder = hotelLengthOfStay_.toBuilder(); + } + hotelLengthOfStay_ = input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(hotelLengthOfStay_); + hotelLengthOfStay_ = subBuilder.buildPartial(); + } + + break; + } + case 122: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (hotelState_ != null) { + subBuilder = hotelState_.toBuilder(); + } + hotelState_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(hotelState_); + hotelState_ = subBuilder.buildPartial(); + } + + break; + } + case 130: { + com.google.protobuf.Int32Value.Builder subBuilder = null; + if (hour_ != null) { + subBuilder = hour_.toBuilder(); + } + hour_ = input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(hour_); + hour_ = subBuilder.buildPartial(); + } + + break; + } + case 138: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (month_ != null) { + subBuilder = month_.toBuilder(); + } + month_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(month_); + month_ = subBuilder.buildPartial(); + } + + break; + } + case 144: { + int rawValue = input.readEnum(); + + monthOfYear_ = rawValue; + break; + } + case 154: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (partnerHotelId_ != null) { + subBuilder = partnerHotelId_.toBuilder(); + } + partnerHotelId_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(partnerHotelId_); + partnerHotelId_ = subBuilder.buildPartial(); + } + + break; + } + case 160: { + int rawValue = input.readEnum(); + + placeholderType_ = rawValue; + break; + } + case 170: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (quarter_ != null) { + subBuilder = quarter_.toBuilder(); + } + quarter_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(quarter_); + quarter_ = subBuilder.buildPartial(); + } + + break; + } + case 176: { + int rawValue = input.readEnum(); + + searchTermMatchType_ = rawValue; + break; + } + case 184: { + int rawValue = input.readEnum(); + + slot_ = rawValue; + break; + } + case 194: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (week_ != null) { + subBuilder = week_.toBuilder(); + } + week_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(week_); + week_ = subBuilder.buildPartial(); + } + + break; + } + case 202: { + com.google.protobuf.Int32Value.Builder subBuilder = null; + if (year_ != null) { + subBuilder = year_.toBuilder(); + } + year_ = input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(year_); + year_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.SegmentsProto.internal_static_google_ads_googleads_v0_common_Segments_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.SegmentsProto.internal_static_google_ads_googleads_v0_common_Segments_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.Segments.class, com.google.ads.googleads.v0.common.Segments.Builder.class); + } + + public static final int AD_NETWORK_TYPE_FIELD_NUMBER = 3; + private int adNetworkType_; + /** + *
+   * Ad network type.
+   * 
+ * + * .google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType ad_network_type = 3; + */ + public int getAdNetworkTypeValue() { + return adNetworkType_; + } + /** + *
+   * Ad network type.
+   * 
+ * + * .google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType ad_network_type = 3; + */ + public com.google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType getAdNetworkType() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType result = com.google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType.valueOf(adNetworkType_); + return result == null ? com.google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType.UNRECOGNIZED : result; + } + + public static final int CONVERSION_ATTRIBUTION_EVENT_TYPE_FIELD_NUMBER = 2; + private int conversionAttributionEventType_; + /** + *
+   * Conversion attribution event type.
+   * 
+ * + * .google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum.ConversionAttributionEventType conversion_attribution_event_type = 2; + */ + public int getConversionAttributionEventTypeValue() { + return conversionAttributionEventType_; + } + /** + *
+   * Conversion attribution event type.
+   * 
+ * + * .google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum.ConversionAttributionEventType conversion_attribution_event_type = 2; + */ + public com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum.ConversionAttributionEventType getConversionAttributionEventType() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum.ConversionAttributionEventType result = com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum.ConversionAttributionEventType.valueOf(conversionAttributionEventType_); + return result == null ? com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum.ConversionAttributionEventType.UNRECOGNIZED : result; + } + + public static final int DATE_FIELD_NUMBER = 4; + private com.google.protobuf.StringValue date_; + /** + *
+   * Date to which metrics apply.
+   * yyyy-MM-dd format, e.g., 2018-04-17.
+   * 
+ * + * .google.protobuf.StringValue date = 4; + */ + public boolean hasDate() { + return date_ != null; + } + /** + *
+   * Date to which metrics apply.
+   * yyyy-MM-dd format, e.g., 2018-04-17.
+   * 
+ * + * .google.protobuf.StringValue date = 4; + */ + public com.google.protobuf.StringValue getDate() { + return date_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : date_; + } + /** + *
+   * Date to which metrics apply.
+   * yyyy-MM-dd format, e.g., 2018-04-17.
+   * 
+ * + * .google.protobuf.StringValue date = 4; + */ + public com.google.protobuf.StringValueOrBuilder getDateOrBuilder() { + return getDate(); + } + + public static final int DAY_OF_WEEK_FIELD_NUMBER = 5; + private int dayOfWeek_; + /** + *
+   * Day of the week, e.g., MONDAY.
+   * 
+ * + * .google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek day_of_week = 5; + */ + public int getDayOfWeekValue() { + return dayOfWeek_; + } + /** + *
+   * Day of the week, e.g., MONDAY.
+   * 
+ * + * .google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek day_of_week = 5; + */ + public com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek getDayOfWeek() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek result = com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek.valueOf(dayOfWeek_); + return result == null ? com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek.UNRECOGNIZED : result; + } + + public static final int DEVICE_FIELD_NUMBER = 1; + private int device_; + /** + *
+   * Device to which metrics apply.
+   * 
+ * + * .google.ads.googleads.v0.enums.DeviceEnum.Device device = 1; + */ + public int getDeviceValue() { + return device_; + } + /** + *
+   * Device to which metrics apply.
+   * 
+ * + * .google.ads.googleads.v0.enums.DeviceEnum.Device device = 1; + */ + public com.google.ads.googleads.v0.enums.DeviceEnum.Device getDevice() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.DeviceEnum.Device result = com.google.ads.googleads.v0.enums.DeviceEnum.Device.valueOf(device_); + return result == null ? com.google.ads.googleads.v0.enums.DeviceEnum.Device.UNRECOGNIZED : result; + } + + public static final int HOTEL_BOOKING_WINDOW_DAYS_FIELD_NUMBER = 6; + private com.google.protobuf.Int64Value hotelBookingWindowDays_; + /** + *
+   * Hotel booking window in days.
+   * 
+ * + * .google.protobuf.Int64Value hotel_booking_window_days = 6; + */ + public boolean hasHotelBookingWindowDays() { + return hotelBookingWindowDays_ != null; + } + /** + *
+   * Hotel booking window in days.
+   * 
+ * + * .google.protobuf.Int64Value hotel_booking_window_days = 6; + */ + public com.google.protobuf.Int64Value getHotelBookingWindowDays() { + return hotelBookingWindowDays_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : hotelBookingWindowDays_; + } + /** + *
+   * Hotel booking window in days.
+   * 
+ * + * .google.protobuf.Int64Value hotel_booking_window_days = 6; + */ + public com.google.protobuf.Int64ValueOrBuilder getHotelBookingWindowDaysOrBuilder() { + return getHotelBookingWindowDays(); + } + + public static final int HOTEL_CENTER_ID_FIELD_NUMBER = 7; + private com.google.protobuf.Int64Value hotelCenterId_; + /** + *
+   * Hotel center ID.
+   * 
+ * + * .google.protobuf.Int64Value hotel_center_id = 7; + */ + public boolean hasHotelCenterId() { + return hotelCenterId_ != null; + } + /** + *
+   * Hotel center ID.
+   * 
+ * + * .google.protobuf.Int64Value hotel_center_id = 7; + */ + public com.google.protobuf.Int64Value getHotelCenterId() { + return hotelCenterId_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : hotelCenterId_; + } + /** + *
+   * Hotel center ID.
+   * 
+ * + * .google.protobuf.Int64Value hotel_center_id = 7; + */ + public com.google.protobuf.Int64ValueOrBuilder getHotelCenterIdOrBuilder() { + return getHotelCenterId(); + } + + public static final int HOTEL_CHECK_IN_DATE_FIELD_NUMBER = 8; + private com.google.protobuf.StringValue hotelCheckInDate_; + /** + *
+   * Hotel check-in date. Formatted as yyyy-MM-dd.
+   * 
+ * + * .google.protobuf.StringValue hotel_check_in_date = 8; + */ + public boolean hasHotelCheckInDate() { + return hotelCheckInDate_ != null; + } + /** + *
+   * Hotel check-in date. Formatted as yyyy-MM-dd.
+   * 
+ * + * .google.protobuf.StringValue hotel_check_in_date = 8; + */ + public com.google.protobuf.StringValue getHotelCheckInDate() { + return hotelCheckInDate_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : hotelCheckInDate_; + } + /** + *
+   * Hotel check-in date. Formatted as yyyy-MM-dd.
+   * 
+ * + * .google.protobuf.StringValue hotel_check_in_date = 8; + */ + public com.google.protobuf.StringValueOrBuilder getHotelCheckInDateOrBuilder() { + return getHotelCheckInDate(); + } + + public static final int HOTEL_CHECK_IN_DAY_OF_WEEK_FIELD_NUMBER = 9; + private int hotelCheckInDayOfWeek_; + /** + *
+   * Hotel check-in day of week.
+   * 
+ * + * .google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek hotel_check_in_day_of_week = 9; + */ + public int getHotelCheckInDayOfWeekValue() { + return hotelCheckInDayOfWeek_; + } + /** + *
+   * Hotel check-in day of week.
+   * 
+ * + * .google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek hotel_check_in_day_of_week = 9; + */ + public com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek getHotelCheckInDayOfWeek() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek result = com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek.valueOf(hotelCheckInDayOfWeek_); + return result == null ? com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek.UNRECOGNIZED : result; + } + + public static final int HOTEL_CITY_FIELD_NUMBER = 10; + private com.google.protobuf.StringValue hotelCity_; + /** + *
+   * Hotel city.
+   * 
+ * + * .google.protobuf.StringValue hotel_city = 10; + */ + public boolean hasHotelCity() { + return hotelCity_ != null; + } + /** + *
+   * Hotel city.
+   * 
+ * + * .google.protobuf.StringValue hotel_city = 10; + */ + public com.google.protobuf.StringValue getHotelCity() { + return hotelCity_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : hotelCity_; + } + /** + *
+   * Hotel city.
+   * 
+ * + * .google.protobuf.StringValue hotel_city = 10; + */ + public com.google.protobuf.StringValueOrBuilder getHotelCityOrBuilder() { + return getHotelCity(); + } + + public static final int HOTEL_CLASS_FIELD_NUMBER = 11; + private com.google.protobuf.Int32Value hotelClass_; + /** + *
+   * Hotel class.
+   * 
+ * + * .google.protobuf.Int32Value hotel_class = 11; + */ + public boolean hasHotelClass() { + return hotelClass_ != null; + } + /** + *
+   * Hotel class.
+   * 
+ * + * .google.protobuf.Int32Value hotel_class = 11; + */ + public com.google.protobuf.Int32Value getHotelClass() { + return hotelClass_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : hotelClass_; + } + /** + *
+   * Hotel class.
+   * 
+ * + * .google.protobuf.Int32Value hotel_class = 11; + */ + public com.google.protobuf.Int32ValueOrBuilder getHotelClassOrBuilder() { + return getHotelClass(); + } + + public static final int HOTEL_COUNTRY_FIELD_NUMBER = 12; + private com.google.protobuf.StringValue hotelCountry_; + /** + *
+   * Hotel country.
+   * 
+ * + * .google.protobuf.StringValue hotel_country = 12; + */ + public boolean hasHotelCountry() { + return hotelCountry_ != null; + } + /** + *
+   * Hotel country.
+   * 
+ * + * .google.protobuf.StringValue hotel_country = 12; + */ + public com.google.protobuf.StringValue getHotelCountry() { + return hotelCountry_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : hotelCountry_; + } + /** + *
+   * Hotel country.
+   * 
+ * + * .google.protobuf.StringValue hotel_country = 12; + */ + public com.google.protobuf.StringValueOrBuilder getHotelCountryOrBuilder() { + return getHotelCountry(); + } + + public static final int HOTEL_DATE_SELECTION_TYPE_FIELD_NUMBER = 13; + private int hotelDateSelectionType_; + /** + *
+   * Hotel date selection type.
+   * 
+ * + * .google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType hotel_date_selection_type = 13; + */ + public int getHotelDateSelectionTypeValue() { + return hotelDateSelectionType_; + } + /** + *
+   * Hotel date selection type.
+   * 
+ * + * .google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType hotel_date_selection_type = 13; + */ + public com.google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType getHotelDateSelectionType() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType result = com.google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType.valueOf(hotelDateSelectionType_); + return result == null ? com.google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType.UNRECOGNIZED : result; + } + + public static final int HOTEL_LENGTH_OF_STAY_FIELD_NUMBER = 14; + private com.google.protobuf.Int32Value hotelLengthOfStay_; + /** + *
+   * Hotel length of stay.
+   * 
+ * + * .google.protobuf.Int32Value hotel_length_of_stay = 14; + */ + public boolean hasHotelLengthOfStay() { + return hotelLengthOfStay_ != null; + } + /** + *
+   * Hotel length of stay.
+   * 
+ * + * .google.protobuf.Int32Value hotel_length_of_stay = 14; + */ + public com.google.protobuf.Int32Value getHotelLengthOfStay() { + return hotelLengthOfStay_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : hotelLengthOfStay_; + } + /** + *
+   * Hotel length of stay.
+   * 
+ * + * .google.protobuf.Int32Value hotel_length_of_stay = 14; + */ + public com.google.protobuf.Int32ValueOrBuilder getHotelLengthOfStayOrBuilder() { + return getHotelLengthOfStay(); + } + + public static final int HOTEL_STATE_FIELD_NUMBER = 15; + private com.google.protobuf.StringValue hotelState_; + /** + *
+   * Hotel state.
+   * 
+ * + * .google.protobuf.StringValue hotel_state = 15; + */ + public boolean hasHotelState() { + return hotelState_ != null; + } + /** + *
+   * Hotel state.
+   * 
+ * + * .google.protobuf.StringValue hotel_state = 15; + */ + public com.google.protobuf.StringValue getHotelState() { + return hotelState_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : hotelState_; + } + /** + *
+   * Hotel state.
+   * 
+ * + * .google.protobuf.StringValue hotel_state = 15; + */ + public com.google.protobuf.StringValueOrBuilder getHotelStateOrBuilder() { + return getHotelState(); + } + + public static final int HOUR_FIELD_NUMBER = 16; + private com.google.protobuf.Int32Value hour_; + /** + *
+   * Hour of day as a number between 0 and 23, inclusive.
+   * 
+ * + * .google.protobuf.Int32Value hour = 16; + */ + public boolean hasHour() { + return hour_ != null; + } + /** + *
+   * Hour of day as a number between 0 and 23, inclusive.
+   * 
+ * + * .google.protobuf.Int32Value hour = 16; + */ + public com.google.protobuf.Int32Value getHour() { + return hour_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : hour_; + } + /** + *
+   * Hour of day as a number between 0 and 23, inclusive.
+   * 
+ * + * .google.protobuf.Int32Value hour = 16; + */ + public com.google.protobuf.Int32ValueOrBuilder getHourOrBuilder() { + return getHour(); + } + + public static final int MONTH_FIELD_NUMBER = 17; + private com.google.protobuf.StringValue month_; + /** + *
+   * Month as represented by the date of the first day of a month. Formatted as
+   * yyyy-MM-dd.
+   * 
+ * + * .google.protobuf.StringValue month = 17; + */ + public boolean hasMonth() { + return month_ != null; + } + /** + *
+   * Month as represented by the date of the first day of a month. Formatted as
+   * yyyy-MM-dd.
+   * 
+ * + * .google.protobuf.StringValue month = 17; + */ + public com.google.protobuf.StringValue getMonth() { + return month_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : month_; + } + /** + *
+   * Month as represented by the date of the first day of a month. Formatted as
+   * yyyy-MM-dd.
+   * 
+ * + * .google.protobuf.StringValue month = 17; + */ + public com.google.protobuf.StringValueOrBuilder getMonthOrBuilder() { + return getMonth(); + } + + public static final int MONTH_OF_YEAR_FIELD_NUMBER = 18; + private int monthOfYear_; + /** + *
+   * Month of the year, e.g., January.
+   * 
+ * + * .google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear month_of_year = 18; + */ + public int getMonthOfYearValue() { + return monthOfYear_; + } + /** + *
+   * Month of the year, e.g., January.
+   * 
+ * + * .google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear month_of_year = 18; + */ + public com.google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear getMonthOfYear() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear result = com.google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear.valueOf(monthOfYear_); + return result == null ? com.google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear.UNRECOGNIZED : result; + } + + public static final int PARTNER_HOTEL_ID_FIELD_NUMBER = 19; + private com.google.protobuf.StringValue partnerHotelId_; + /** + *
+   * Partner hotel ID.
+   * 
+ * + * .google.protobuf.StringValue partner_hotel_id = 19; + */ + public boolean hasPartnerHotelId() { + return partnerHotelId_ != null; + } + /** + *
+   * Partner hotel ID.
+   * 
+ * + * .google.protobuf.StringValue partner_hotel_id = 19; + */ + public com.google.protobuf.StringValue getPartnerHotelId() { + return partnerHotelId_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : partnerHotelId_; + } + /** + *
+   * Partner hotel ID.
+   * 
+ * + * .google.protobuf.StringValue partner_hotel_id = 19; + */ + public com.google.protobuf.StringValueOrBuilder getPartnerHotelIdOrBuilder() { + return getPartnerHotelId(); + } + + public static final int PLACEHOLDER_TYPE_FIELD_NUMBER = 20; + private int placeholderType_; + /** + *
+   * Placeholder type. This is only used with feed item metrics.
+   * 
+ * + * .google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type = 20; + */ + public int getPlaceholderTypeValue() { + return placeholderType_; + } + /** + *
+   * Placeholder type. This is only used with feed item metrics.
+   * 
+ * + * .google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type = 20; + */ + public com.google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType getPlaceholderType() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType result = com.google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType.valueOf(placeholderType_); + return result == null ? com.google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType.UNRECOGNIZED : result; + } + + public static final int QUARTER_FIELD_NUMBER = 21; + private com.google.protobuf.StringValue quarter_; + /** + *
+   * Quarter as represented by the date of the first day of a quarter.
+   * Uses the calendar year for quarters, e.g., the second quarter of 2018
+   * starts on 2018-04-01. Formatted as yyyy-MM-dd.
+   * 
+ * + * .google.protobuf.StringValue quarter = 21; + */ + public boolean hasQuarter() { + return quarter_ != null; + } + /** + *
+   * Quarter as represented by the date of the first day of a quarter.
+   * Uses the calendar year for quarters, e.g., the second quarter of 2018
+   * starts on 2018-04-01. Formatted as yyyy-MM-dd.
+   * 
+ * + * .google.protobuf.StringValue quarter = 21; + */ + public com.google.protobuf.StringValue getQuarter() { + return quarter_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : quarter_; + } + /** + *
+   * Quarter as represented by the date of the first day of a quarter.
+   * Uses the calendar year for quarters, e.g., the second quarter of 2018
+   * starts on 2018-04-01. Formatted as yyyy-MM-dd.
+   * 
+ * + * .google.protobuf.StringValue quarter = 21; + */ + public com.google.protobuf.StringValueOrBuilder getQuarterOrBuilder() { + return getQuarter(); + } + + public static final int SEARCH_TERM_MATCH_TYPE_FIELD_NUMBER = 22; + private int searchTermMatchType_; + /** + *
+   * Match type of the keyword that triggered the ad, including variants.
+   * 
+ * + * .google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType search_term_match_type = 22; + */ + public int getSearchTermMatchTypeValue() { + return searchTermMatchType_; + } + /** + *
+   * Match type of the keyword that triggered the ad, including variants.
+   * 
+ * + * .google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType search_term_match_type = 22; + */ + public com.google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType getSearchTermMatchType() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType result = com.google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType.valueOf(searchTermMatchType_); + return result == null ? com.google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType.UNRECOGNIZED : result; + } + + public static final int SLOT_FIELD_NUMBER = 23; + private int slot_; + /** + *
+   * Position of the ad.
+   * 
+ * + * .google.ads.googleads.v0.enums.SlotEnum.Slot slot = 23; + */ + public int getSlotValue() { + return slot_; + } + /** + *
+   * Position of the ad.
+   * 
+ * + * .google.ads.googleads.v0.enums.SlotEnum.Slot slot = 23; + */ + public com.google.ads.googleads.v0.enums.SlotEnum.Slot getSlot() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.SlotEnum.Slot result = com.google.ads.googleads.v0.enums.SlotEnum.Slot.valueOf(slot_); + return result == null ? com.google.ads.googleads.v0.enums.SlotEnum.Slot.UNRECOGNIZED : result; + } + + public static final int WEEK_FIELD_NUMBER = 24; + private com.google.protobuf.StringValue week_; + /** + *
+   * Week as defined as Monday through Sunday, and represented by the date of
+   * Monday. Formatted as yyyy-MM-dd.
+   * 
+ * + * .google.protobuf.StringValue week = 24; + */ + public boolean hasWeek() { + return week_ != null; + } + /** + *
+   * Week as defined as Monday through Sunday, and represented by the date of
+   * Monday. Formatted as yyyy-MM-dd.
+   * 
+ * + * .google.protobuf.StringValue week = 24; + */ + public com.google.protobuf.StringValue getWeek() { + return week_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : week_; + } + /** + *
+   * Week as defined as Monday through Sunday, and represented by the date of
+   * Monday. Formatted as yyyy-MM-dd.
+   * 
+ * + * .google.protobuf.StringValue week = 24; + */ + public com.google.protobuf.StringValueOrBuilder getWeekOrBuilder() { + return getWeek(); + } + + public static final int YEAR_FIELD_NUMBER = 25; + private com.google.protobuf.Int32Value year_; + /** + *
+   * Year, formatted as yyyy.
+   * 
+ * + * .google.protobuf.Int32Value year = 25; + */ + public boolean hasYear() { + return year_ != null; + } + /** + *
+   * Year, formatted as yyyy.
+   * 
+ * + * .google.protobuf.Int32Value year = 25; + */ + public com.google.protobuf.Int32Value getYear() { + return year_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : year_; + } + /** + *
+   * Year, formatted as yyyy.
+   * 
+ * + * .google.protobuf.Int32Value year = 25; + */ + public com.google.protobuf.Int32ValueOrBuilder getYearOrBuilder() { + return getYear(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (device_ != com.google.ads.googleads.v0.enums.DeviceEnum.Device.UNSPECIFIED.getNumber()) { + output.writeEnum(1, device_); + } + if (conversionAttributionEventType_ != com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum.ConversionAttributionEventType.UNSPECIFIED.getNumber()) { + output.writeEnum(2, conversionAttributionEventType_); + } + if (adNetworkType_ != com.google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType.UNSPECIFIED.getNumber()) { + output.writeEnum(3, adNetworkType_); + } + if (date_ != null) { + output.writeMessage(4, getDate()); + } + if (dayOfWeek_ != com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek.UNSPECIFIED.getNumber()) { + output.writeEnum(5, dayOfWeek_); + } + if (hotelBookingWindowDays_ != null) { + output.writeMessage(6, getHotelBookingWindowDays()); + } + if (hotelCenterId_ != null) { + output.writeMessage(7, getHotelCenterId()); + } + if (hotelCheckInDate_ != null) { + output.writeMessage(8, getHotelCheckInDate()); + } + if (hotelCheckInDayOfWeek_ != com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek.UNSPECIFIED.getNumber()) { + output.writeEnum(9, hotelCheckInDayOfWeek_); + } + if (hotelCity_ != null) { + output.writeMessage(10, getHotelCity()); + } + if (hotelClass_ != null) { + output.writeMessage(11, getHotelClass()); + } + if (hotelCountry_ != null) { + output.writeMessage(12, getHotelCountry()); + } + if (hotelDateSelectionType_ != com.google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType.UNSPECIFIED.getNumber()) { + output.writeEnum(13, hotelDateSelectionType_); + } + if (hotelLengthOfStay_ != null) { + output.writeMessage(14, getHotelLengthOfStay()); + } + if (hotelState_ != null) { + output.writeMessage(15, getHotelState()); + } + if (hour_ != null) { + output.writeMessage(16, getHour()); + } + if (month_ != null) { + output.writeMessage(17, getMonth()); + } + if (monthOfYear_ != com.google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear.UNSPECIFIED.getNumber()) { + output.writeEnum(18, monthOfYear_); + } + if (partnerHotelId_ != null) { + output.writeMessage(19, getPartnerHotelId()); + } + if (placeholderType_ != com.google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType.UNSPECIFIED.getNumber()) { + output.writeEnum(20, placeholderType_); + } + if (quarter_ != null) { + output.writeMessage(21, getQuarter()); + } + if (searchTermMatchType_ != com.google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType.UNSPECIFIED.getNumber()) { + output.writeEnum(22, searchTermMatchType_); + } + if (slot_ != com.google.ads.googleads.v0.enums.SlotEnum.Slot.UNSPECIFIED.getNumber()) { + output.writeEnum(23, slot_); + } + if (week_ != null) { + output.writeMessage(24, getWeek()); + } + if (year_ != null) { + output.writeMessage(25, getYear()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (device_ != com.google.ads.googleads.v0.enums.DeviceEnum.Device.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, device_); + } + if (conversionAttributionEventType_ != com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum.ConversionAttributionEventType.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, conversionAttributionEventType_); + } + if (adNetworkType_ != com.google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, adNetworkType_); + } + if (date_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getDate()); + } + if (dayOfWeek_ != com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, dayOfWeek_); + } + if (hotelBookingWindowDays_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getHotelBookingWindowDays()); + } + if (hotelCenterId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getHotelCenterId()); + } + if (hotelCheckInDate_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getHotelCheckInDate()); + } + if (hotelCheckInDayOfWeek_ != com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, hotelCheckInDayOfWeek_); + } + if (hotelCity_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getHotelCity()); + } + if (hotelClass_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getHotelClass()); + } + if (hotelCountry_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getHotelCountry()); + } + if (hotelDateSelectionType_ != com.google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(13, hotelDateSelectionType_); + } + if (hotelLengthOfStay_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getHotelLengthOfStay()); + } + if (hotelState_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getHotelState()); + } + if (hour_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getHour()); + } + if (month_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getMonth()); + } + if (monthOfYear_ != com.google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(18, monthOfYear_); + } + if (partnerHotelId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, getPartnerHotelId()); + } + if (placeholderType_ != com.google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(20, placeholderType_); + } + if (quarter_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, getQuarter()); + } + if (searchTermMatchType_ != com.google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(22, searchTermMatchType_); + } + if (slot_ != com.google.ads.googleads.v0.enums.SlotEnum.Slot.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(23, slot_); + } + if (week_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(24, getWeek()); + } + if (year_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(25, getYear()); + } + size += unknownFields.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.ads.googleads.v0.common.Segments)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.common.Segments other = (com.google.ads.googleads.v0.common.Segments) obj; + + boolean result = true; + result = result && adNetworkType_ == other.adNetworkType_; + result = result && conversionAttributionEventType_ == other.conversionAttributionEventType_; + result = result && (hasDate() == other.hasDate()); + if (hasDate()) { + result = result && getDate() + .equals(other.getDate()); + } + result = result && dayOfWeek_ == other.dayOfWeek_; + result = result && device_ == other.device_; + result = result && (hasHotelBookingWindowDays() == other.hasHotelBookingWindowDays()); + if (hasHotelBookingWindowDays()) { + result = result && getHotelBookingWindowDays() + .equals(other.getHotelBookingWindowDays()); + } + result = result && (hasHotelCenterId() == other.hasHotelCenterId()); + if (hasHotelCenterId()) { + result = result && getHotelCenterId() + .equals(other.getHotelCenterId()); + } + result = result && (hasHotelCheckInDate() == other.hasHotelCheckInDate()); + if (hasHotelCheckInDate()) { + result = result && getHotelCheckInDate() + .equals(other.getHotelCheckInDate()); + } + result = result && hotelCheckInDayOfWeek_ == other.hotelCheckInDayOfWeek_; + result = result && (hasHotelCity() == other.hasHotelCity()); + if (hasHotelCity()) { + result = result && getHotelCity() + .equals(other.getHotelCity()); + } + result = result && (hasHotelClass() == other.hasHotelClass()); + if (hasHotelClass()) { + result = result && getHotelClass() + .equals(other.getHotelClass()); + } + result = result && (hasHotelCountry() == other.hasHotelCountry()); + if (hasHotelCountry()) { + result = result && getHotelCountry() + .equals(other.getHotelCountry()); + } + result = result && hotelDateSelectionType_ == other.hotelDateSelectionType_; + result = result && (hasHotelLengthOfStay() == other.hasHotelLengthOfStay()); + if (hasHotelLengthOfStay()) { + result = result && getHotelLengthOfStay() + .equals(other.getHotelLengthOfStay()); + } + result = result && (hasHotelState() == other.hasHotelState()); + if (hasHotelState()) { + result = result && getHotelState() + .equals(other.getHotelState()); + } + result = result && (hasHour() == other.hasHour()); + if (hasHour()) { + result = result && getHour() + .equals(other.getHour()); + } + result = result && (hasMonth() == other.hasMonth()); + if (hasMonth()) { + result = result && getMonth() + .equals(other.getMonth()); + } + result = result && monthOfYear_ == other.monthOfYear_; + result = result && (hasPartnerHotelId() == other.hasPartnerHotelId()); + if (hasPartnerHotelId()) { + result = result && getPartnerHotelId() + .equals(other.getPartnerHotelId()); + } + result = result && placeholderType_ == other.placeholderType_; + result = result && (hasQuarter() == other.hasQuarter()); + if (hasQuarter()) { + result = result && getQuarter() + .equals(other.getQuarter()); + } + result = result && searchTermMatchType_ == other.searchTermMatchType_; + result = result && slot_ == other.slot_; + result = result && (hasWeek() == other.hasWeek()); + if (hasWeek()) { + result = result && getWeek() + .equals(other.getWeek()); + } + result = result && (hasYear() == other.hasYear()); + if (hasYear()) { + result = result && getYear() + .equals(other.getYear()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + AD_NETWORK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + adNetworkType_; + hash = (37 * hash) + CONVERSION_ATTRIBUTION_EVENT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + conversionAttributionEventType_; + if (hasDate()) { + hash = (37 * hash) + DATE_FIELD_NUMBER; + hash = (53 * hash) + getDate().hashCode(); + } + hash = (37 * hash) + DAY_OF_WEEK_FIELD_NUMBER; + hash = (53 * hash) + dayOfWeek_; + hash = (37 * hash) + DEVICE_FIELD_NUMBER; + hash = (53 * hash) + device_; + if (hasHotelBookingWindowDays()) { + hash = (37 * hash) + HOTEL_BOOKING_WINDOW_DAYS_FIELD_NUMBER; + hash = (53 * hash) + getHotelBookingWindowDays().hashCode(); + } + if (hasHotelCenterId()) { + hash = (37 * hash) + HOTEL_CENTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getHotelCenterId().hashCode(); + } + if (hasHotelCheckInDate()) { + hash = (37 * hash) + HOTEL_CHECK_IN_DATE_FIELD_NUMBER; + hash = (53 * hash) + getHotelCheckInDate().hashCode(); + } + hash = (37 * hash) + HOTEL_CHECK_IN_DAY_OF_WEEK_FIELD_NUMBER; + hash = (53 * hash) + hotelCheckInDayOfWeek_; + if (hasHotelCity()) { + hash = (37 * hash) + HOTEL_CITY_FIELD_NUMBER; + hash = (53 * hash) + getHotelCity().hashCode(); + } + if (hasHotelClass()) { + hash = (37 * hash) + HOTEL_CLASS_FIELD_NUMBER; + hash = (53 * hash) + getHotelClass().hashCode(); + } + if (hasHotelCountry()) { + hash = (37 * hash) + HOTEL_COUNTRY_FIELD_NUMBER; + hash = (53 * hash) + getHotelCountry().hashCode(); + } + hash = (37 * hash) + HOTEL_DATE_SELECTION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + hotelDateSelectionType_; + if (hasHotelLengthOfStay()) { + hash = (37 * hash) + HOTEL_LENGTH_OF_STAY_FIELD_NUMBER; + hash = (53 * hash) + getHotelLengthOfStay().hashCode(); + } + if (hasHotelState()) { + hash = (37 * hash) + HOTEL_STATE_FIELD_NUMBER; + hash = (53 * hash) + getHotelState().hashCode(); + } + if (hasHour()) { + hash = (37 * hash) + HOUR_FIELD_NUMBER; + hash = (53 * hash) + getHour().hashCode(); + } + if (hasMonth()) { + hash = (37 * hash) + MONTH_FIELD_NUMBER; + hash = (53 * hash) + getMonth().hashCode(); + } + hash = (37 * hash) + MONTH_OF_YEAR_FIELD_NUMBER; + hash = (53 * hash) + monthOfYear_; + if (hasPartnerHotelId()) { + hash = (37 * hash) + PARTNER_HOTEL_ID_FIELD_NUMBER; + hash = (53 * hash) + getPartnerHotelId().hashCode(); + } + hash = (37 * hash) + PLACEHOLDER_TYPE_FIELD_NUMBER; + hash = (53 * hash) + placeholderType_; + if (hasQuarter()) { + hash = (37 * hash) + QUARTER_FIELD_NUMBER; + hash = (53 * hash) + getQuarter().hashCode(); + } + hash = (37 * hash) + SEARCH_TERM_MATCH_TYPE_FIELD_NUMBER; + hash = (53 * hash) + searchTermMatchType_; + hash = (37 * hash) + SLOT_FIELD_NUMBER; + hash = (53 * hash) + slot_; + if (hasWeek()) { + hash = (37 * hash) + WEEK_FIELD_NUMBER; + hash = (53 * hash) + getWeek().hashCode(); + } + if (hasYear()) { + hash = (37 * hash) + YEAR_FIELD_NUMBER; + hash = (53 * hash) + getYear().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.common.Segments parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.Segments parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.Segments parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.Segments 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.ads.googleads.v0.common.Segments parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.Segments parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.Segments parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.Segments 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.ads.googleads.v0.common.Segments parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.Segments 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.ads.googleads.v0.common.Segments parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.Segments 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.ads.googleads.v0.common.Segments 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; + } + /** + *
+   * Segment only fields.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.Segments} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.common.Segments) + com.google.ads.googleads.v0.common.SegmentsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.SegmentsProto.internal_static_google_ads_googleads_v0_common_Segments_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.SegmentsProto.internal_static_google_ads_googleads_v0_common_Segments_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.Segments.class, com.google.ads.googleads.v0.common.Segments.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.common.Segments.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + adNetworkType_ = 0; + + conversionAttributionEventType_ = 0; + + if (dateBuilder_ == null) { + date_ = null; + } else { + date_ = null; + dateBuilder_ = null; + } + dayOfWeek_ = 0; + + device_ = 0; + + if (hotelBookingWindowDaysBuilder_ == null) { + hotelBookingWindowDays_ = null; + } else { + hotelBookingWindowDays_ = null; + hotelBookingWindowDaysBuilder_ = null; + } + if (hotelCenterIdBuilder_ == null) { + hotelCenterId_ = null; + } else { + hotelCenterId_ = null; + hotelCenterIdBuilder_ = null; + } + if (hotelCheckInDateBuilder_ == null) { + hotelCheckInDate_ = null; + } else { + hotelCheckInDate_ = null; + hotelCheckInDateBuilder_ = null; + } + hotelCheckInDayOfWeek_ = 0; + + if (hotelCityBuilder_ == null) { + hotelCity_ = null; + } else { + hotelCity_ = null; + hotelCityBuilder_ = null; + } + if (hotelClassBuilder_ == null) { + hotelClass_ = null; + } else { + hotelClass_ = null; + hotelClassBuilder_ = null; + } + if (hotelCountryBuilder_ == null) { + hotelCountry_ = null; + } else { + hotelCountry_ = null; + hotelCountryBuilder_ = null; + } + hotelDateSelectionType_ = 0; + + if (hotelLengthOfStayBuilder_ == null) { + hotelLengthOfStay_ = null; + } else { + hotelLengthOfStay_ = null; + hotelLengthOfStayBuilder_ = null; + } + if (hotelStateBuilder_ == null) { + hotelState_ = null; + } else { + hotelState_ = null; + hotelStateBuilder_ = null; + } + if (hourBuilder_ == null) { + hour_ = null; + } else { + hour_ = null; + hourBuilder_ = null; + } + if (monthBuilder_ == null) { + month_ = null; + } else { + month_ = null; + monthBuilder_ = null; + } + monthOfYear_ = 0; + + if (partnerHotelIdBuilder_ == null) { + partnerHotelId_ = null; + } else { + partnerHotelId_ = null; + partnerHotelIdBuilder_ = null; + } + placeholderType_ = 0; + + if (quarterBuilder_ == null) { + quarter_ = null; + } else { + quarter_ = null; + quarterBuilder_ = null; + } + searchTermMatchType_ = 0; + + slot_ = 0; + + if (weekBuilder_ == null) { + week_ = null; + } else { + week_ = null; + weekBuilder_ = null; + } + if (yearBuilder_ == null) { + year_ = null; + } else { + year_ = null; + yearBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.common.SegmentsProto.internal_static_google_ads_googleads_v0_common_Segments_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.Segments getDefaultInstanceForType() { + return com.google.ads.googleads.v0.common.Segments.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.Segments build() { + com.google.ads.googleads.v0.common.Segments result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.Segments buildPartial() { + com.google.ads.googleads.v0.common.Segments result = new com.google.ads.googleads.v0.common.Segments(this); + result.adNetworkType_ = adNetworkType_; + result.conversionAttributionEventType_ = conversionAttributionEventType_; + if (dateBuilder_ == null) { + result.date_ = date_; + } else { + result.date_ = dateBuilder_.build(); + } + result.dayOfWeek_ = dayOfWeek_; + result.device_ = device_; + if (hotelBookingWindowDaysBuilder_ == null) { + result.hotelBookingWindowDays_ = hotelBookingWindowDays_; + } else { + result.hotelBookingWindowDays_ = hotelBookingWindowDaysBuilder_.build(); + } + if (hotelCenterIdBuilder_ == null) { + result.hotelCenterId_ = hotelCenterId_; + } else { + result.hotelCenterId_ = hotelCenterIdBuilder_.build(); + } + if (hotelCheckInDateBuilder_ == null) { + result.hotelCheckInDate_ = hotelCheckInDate_; + } else { + result.hotelCheckInDate_ = hotelCheckInDateBuilder_.build(); + } + result.hotelCheckInDayOfWeek_ = hotelCheckInDayOfWeek_; + if (hotelCityBuilder_ == null) { + result.hotelCity_ = hotelCity_; + } else { + result.hotelCity_ = hotelCityBuilder_.build(); + } + if (hotelClassBuilder_ == null) { + result.hotelClass_ = hotelClass_; + } else { + result.hotelClass_ = hotelClassBuilder_.build(); + } + if (hotelCountryBuilder_ == null) { + result.hotelCountry_ = hotelCountry_; + } else { + result.hotelCountry_ = hotelCountryBuilder_.build(); + } + result.hotelDateSelectionType_ = hotelDateSelectionType_; + if (hotelLengthOfStayBuilder_ == null) { + result.hotelLengthOfStay_ = hotelLengthOfStay_; + } else { + result.hotelLengthOfStay_ = hotelLengthOfStayBuilder_.build(); + } + if (hotelStateBuilder_ == null) { + result.hotelState_ = hotelState_; + } else { + result.hotelState_ = hotelStateBuilder_.build(); + } + if (hourBuilder_ == null) { + result.hour_ = hour_; + } else { + result.hour_ = hourBuilder_.build(); + } + if (monthBuilder_ == null) { + result.month_ = month_; + } else { + result.month_ = monthBuilder_.build(); + } + result.monthOfYear_ = monthOfYear_; + if (partnerHotelIdBuilder_ == null) { + result.partnerHotelId_ = partnerHotelId_; + } else { + result.partnerHotelId_ = partnerHotelIdBuilder_.build(); + } + result.placeholderType_ = placeholderType_; + if (quarterBuilder_ == null) { + result.quarter_ = quarter_; + } else { + result.quarter_ = quarterBuilder_.build(); + } + result.searchTermMatchType_ = searchTermMatchType_; + result.slot_ = slot_; + if (weekBuilder_ == null) { + result.week_ = week_; + } else { + result.week_ = weekBuilder_.build(); + } + if (yearBuilder_ == null) { + result.year_ = year_; + } else { + result.year_ = yearBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.common.Segments) { + return mergeFrom((com.google.ads.googleads.v0.common.Segments)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.common.Segments other) { + if (other == com.google.ads.googleads.v0.common.Segments.getDefaultInstance()) return this; + if (other.adNetworkType_ != 0) { + setAdNetworkTypeValue(other.getAdNetworkTypeValue()); + } + if (other.conversionAttributionEventType_ != 0) { + setConversionAttributionEventTypeValue(other.getConversionAttributionEventTypeValue()); + } + if (other.hasDate()) { + mergeDate(other.getDate()); + } + if (other.dayOfWeek_ != 0) { + setDayOfWeekValue(other.getDayOfWeekValue()); + } + if (other.device_ != 0) { + setDeviceValue(other.getDeviceValue()); + } + if (other.hasHotelBookingWindowDays()) { + mergeHotelBookingWindowDays(other.getHotelBookingWindowDays()); + } + if (other.hasHotelCenterId()) { + mergeHotelCenterId(other.getHotelCenterId()); + } + if (other.hasHotelCheckInDate()) { + mergeHotelCheckInDate(other.getHotelCheckInDate()); + } + if (other.hotelCheckInDayOfWeek_ != 0) { + setHotelCheckInDayOfWeekValue(other.getHotelCheckInDayOfWeekValue()); + } + if (other.hasHotelCity()) { + mergeHotelCity(other.getHotelCity()); + } + if (other.hasHotelClass()) { + mergeHotelClass(other.getHotelClass()); + } + if (other.hasHotelCountry()) { + mergeHotelCountry(other.getHotelCountry()); + } + if (other.hotelDateSelectionType_ != 0) { + setHotelDateSelectionTypeValue(other.getHotelDateSelectionTypeValue()); + } + if (other.hasHotelLengthOfStay()) { + mergeHotelLengthOfStay(other.getHotelLengthOfStay()); + } + if (other.hasHotelState()) { + mergeHotelState(other.getHotelState()); + } + if (other.hasHour()) { + mergeHour(other.getHour()); + } + if (other.hasMonth()) { + mergeMonth(other.getMonth()); + } + if (other.monthOfYear_ != 0) { + setMonthOfYearValue(other.getMonthOfYearValue()); + } + if (other.hasPartnerHotelId()) { + mergePartnerHotelId(other.getPartnerHotelId()); + } + if (other.placeholderType_ != 0) { + setPlaceholderTypeValue(other.getPlaceholderTypeValue()); + } + if (other.hasQuarter()) { + mergeQuarter(other.getQuarter()); + } + if (other.searchTermMatchType_ != 0) { + setSearchTermMatchTypeValue(other.getSearchTermMatchTypeValue()); + } + if (other.slot_ != 0) { + setSlotValue(other.getSlotValue()); + } + if (other.hasWeek()) { + mergeWeek(other.getWeek()); + } + if (other.hasYear()) { + mergeYear(other.getYear()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.common.Segments parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.common.Segments) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int adNetworkType_ = 0; + /** + *
+     * Ad network type.
+     * 
+ * + * .google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType ad_network_type = 3; + */ + public int getAdNetworkTypeValue() { + return adNetworkType_; + } + /** + *
+     * Ad network type.
+     * 
+ * + * .google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType ad_network_type = 3; + */ + public Builder setAdNetworkTypeValue(int value) { + adNetworkType_ = value; + onChanged(); + return this; + } + /** + *
+     * Ad network type.
+     * 
+ * + * .google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType ad_network_type = 3; + */ + public com.google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType getAdNetworkType() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType result = com.google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType.valueOf(adNetworkType_); + return result == null ? com.google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType.UNRECOGNIZED : result; + } + /** + *
+     * Ad network type.
+     * 
+ * + * .google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType ad_network_type = 3; + */ + public Builder setAdNetworkType(com.google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType value) { + if (value == null) { + throw new NullPointerException(); + } + + adNetworkType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Ad network type.
+     * 
+ * + * .google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType ad_network_type = 3; + */ + public Builder clearAdNetworkType() { + + adNetworkType_ = 0; + onChanged(); + return this; + } + + private int conversionAttributionEventType_ = 0; + /** + *
+     * Conversion attribution event type.
+     * 
+ * + * .google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum.ConversionAttributionEventType conversion_attribution_event_type = 2; + */ + public int getConversionAttributionEventTypeValue() { + return conversionAttributionEventType_; + } + /** + *
+     * Conversion attribution event type.
+     * 
+ * + * .google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum.ConversionAttributionEventType conversion_attribution_event_type = 2; + */ + public Builder setConversionAttributionEventTypeValue(int value) { + conversionAttributionEventType_ = value; + onChanged(); + return this; + } + /** + *
+     * Conversion attribution event type.
+     * 
+ * + * .google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum.ConversionAttributionEventType conversion_attribution_event_type = 2; + */ + public com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum.ConversionAttributionEventType getConversionAttributionEventType() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum.ConversionAttributionEventType result = com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum.ConversionAttributionEventType.valueOf(conversionAttributionEventType_); + return result == null ? com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum.ConversionAttributionEventType.UNRECOGNIZED : result; + } + /** + *
+     * Conversion attribution event type.
+     * 
+ * + * .google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum.ConversionAttributionEventType conversion_attribution_event_type = 2; + */ + public Builder setConversionAttributionEventType(com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum.ConversionAttributionEventType value) { + if (value == null) { + throw new NullPointerException(); + } + + conversionAttributionEventType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Conversion attribution event type.
+     * 
+ * + * .google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum.ConversionAttributionEventType conversion_attribution_event_type = 2; + */ + public Builder clearConversionAttributionEventType() { + + conversionAttributionEventType_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.StringValue date_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> dateBuilder_; + /** + *
+     * Date to which metrics apply.
+     * yyyy-MM-dd format, e.g., 2018-04-17.
+     * 
+ * + * .google.protobuf.StringValue date = 4; + */ + public boolean hasDate() { + return dateBuilder_ != null || date_ != null; + } + /** + *
+     * Date to which metrics apply.
+     * yyyy-MM-dd format, e.g., 2018-04-17.
+     * 
+ * + * .google.protobuf.StringValue date = 4; + */ + public com.google.protobuf.StringValue getDate() { + if (dateBuilder_ == null) { + return date_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : date_; + } else { + return dateBuilder_.getMessage(); + } + } + /** + *
+     * Date to which metrics apply.
+     * yyyy-MM-dd format, e.g., 2018-04-17.
+     * 
+ * + * .google.protobuf.StringValue date = 4; + */ + public Builder setDate(com.google.protobuf.StringValue value) { + if (dateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + date_ = value; + onChanged(); + } else { + dateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Date to which metrics apply.
+     * yyyy-MM-dd format, e.g., 2018-04-17.
+     * 
+ * + * .google.protobuf.StringValue date = 4; + */ + public Builder setDate( + com.google.protobuf.StringValue.Builder builderForValue) { + if (dateBuilder_ == null) { + date_ = builderForValue.build(); + onChanged(); + } else { + dateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Date to which metrics apply.
+     * yyyy-MM-dd format, e.g., 2018-04-17.
+     * 
+ * + * .google.protobuf.StringValue date = 4; + */ + public Builder mergeDate(com.google.protobuf.StringValue value) { + if (dateBuilder_ == null) { + if (date_ != null) { + date_ = + com.google.protobuf.StringValue.newBuilder(date_).mergeFrom(value).buildPartial(); + } else { + date_ = value; + } + onChanged(); + } else { + dateBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Date to which metrics apply.
+     * yyyy-MM-dd format, e.g., 2018-04-17.
+     * 
+ * + * .google.protobuf.StringValue date = 4; + */ + public Builder clearDate() { + if (dateBuilder_ == null) { + date_ = null; + onChanged(); + } else { + date_ = null; + dateBuilder_ = null; + } + + return this; + } + /** + *
+     * Date to which metrics apply.
+     * yyyy-MM-dd format, e.g., 2018-04-17.
+     * 
+ * + * .google.protobuf.StringValue date = 4; + */ + public com.google.protobuf.StringValue.Builder getDateBuilder() { + + onChanged(); + return getDateFieldBuilder().getBuilder(); + } + /** + *
+     * Date to which metrics apply.
+     * yyyy-MM-dd format, e.g., 2018-04-17.
+     * 
+ * + * .google.protobuf.StringValue date = 4; + */ + public com.google.protobuf.StringValueOrBuilder getDateOrBuilder() { + if (dateBuilder_ != null) { + return dateBuilder_.getMessageOrBuilder(); + } else { + return date_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : date_; + } + } + /** + *
+     * Date to which metrics apply.
+     * yyyy-MM-dd format, e.g., 2018-04-17.
+     * 
+ * + * .google.protobuf.StringValue date = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getDateFieldBuilder() { + if (dateBuilder_ == null) { + dateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getDate(), + getParentForChildren(), + isClean()); + date_ = null; + } + return dateBuilder_; + } + + private int dayOfWeek_ = 0; + /** + *
+     * Day of the week, e.g., MONDAY.
+     * 
+ * + * .google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek day_of_week = 5; + */ + public int getDayOfWeekValue() { + return dayOfWeek_; + } + /** + *
+     * Day of the week, e.g., MONDAY.
+     * 
+ * + * .google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek day_of_week = 5; + */ + public Builder setDayOfWeekValue(int value) { + dayOfWeek_ = value; + onChanged(); + return this; + } + /** + *
+     * Day of the week, e.g., MONDAY.
+     * 
+ * + * .google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek day_of_week = 5; + */ + public com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek getDayOfWeek() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek result = com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek.valueOf(dayOfWeek_); + return result == null ? com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek.UNRECOGNIZED : result; + } + /** + *
+     * Day of the week, e.g., MONDAY.
+     * 
+ * + * .google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek day_of_week = 5; + */ + public Builder setDayOfWeek(com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek value) { + if (value == null) { + throw new NullPointerException(); + } + + dayOfWeek_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Day of the week, e.g., MONDAY.
+     * 
+ * + * .google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek day_of_week = 5; + */ + public Builder clearDayOfWeek() { + + dayOfWeek_ = 0; + onChanged(); + return this; + } + + private int device_ = 0; + /** + *
+     * Device to which metrics apply.
+     * 
+ * + * .google.ads.googleads.v0.enums.DeviceEnum.Device device = 1; + */ + public int getDeviceValue() { + return device_; + } + /** + *
+     * Device to which metrics apply.
+     * 
+ * + * .google.ads.googleads.v0.enums.DeviceEnum.Device device = 1; + */ + public Builder setDeviceValue(int value) { + device_ = value; + onChanged(); + return this; + } + /** + *
+     * Device to which metrics apply.
+     * 
+ * + * .google.ads.googleads.v0.enums.DeviceEnum.Device device = 1; + */ + public com.google.ads.googleads.v0.enums.DeviceEnum.Device getDevice() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.DeviceEnum.Device result = com.google.ads.googleads.v0.enums.DeviceEnum.Device.valueOf(device_); + return result == null ? com.google.ads.googleads.v0.enums.DeviceEnum.Device.UNRECOGNIZED : result; + } + /** + *
+     * Device to which metrics apply.
+     * 
+ * + * .google.ads.googleads.v0.enums.DeviceEnum.Device device = 1; + */ + public Builder setDevice(com.google.ads.googleads.v0.enums.DeviceEnum.Device value) { + if (value == null) { + throw new NullPointerException(); + } + + device_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Device to which metrics apply.
+     * 
+ * + * .google.ads.googleads.v0.enums.DeviceEnum.Device device = 1; + */ + public Builder clearDevice() { + + device_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Int64Value hotelBookingWindowDays_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> hotelBookingWindowDaysBuilder_; + /** + *
+     * Hotel booking window in days.
+     * 
+ * + * .google.protobuf.Int64Value hotel_booking_window_days = 6; + */ + public boolean hasHotelBookingWindowDays() { + return hotelBookingWindowDaysBuilder_ != null || hotelBookingWindowDays_ != null; + } + /** + *
+     * Hotel booking window in days.
+     * 
+ * + * .google.protobuf.Int64Value hotel_booking_window_days = 6; + */ + public com.google.protobuf.Int64Value getHotelBookingWindowDays() { + if (hotelBookingWindowDaysBuilder_ == null) { + return hotelBookingWindowDays_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : hotelBookingWindowDays_; + } else { + return hotelBookingWindowDaysBuilder_.getMessage(); + } + } + /** + *
+     * Hotel booking window in days.
+     * 
+ * + * .google.protobuf.Int64Value hotel_booking_window_days = 6; + */ + public Builder setHotelBookingWindowDays(com.google.protobuf.Int64Value value) { + if (hotelBookingWindowDaysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hotelBookingWindowDays_ = value; + onChanged(); + } else { + hotelBookingWindowDaysBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Hotel booking window in days.
+     * 
+ * + * .google.protobuf.Int64Value hotel_booking_window_days = 6; + */ + public Builder setHotelBookingWindowDays( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (hotelBookingWindowDaysBuilder_ == null) { + hotelBookingWindowDays_ = builderForValue.build(); + onChanged(); + } else { + hotelBookingWindowDaysBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Hotel booking window in days.
+     * 
+ * + * .google.protobuf.Int64Value hotel_booking_window_days = 6; + */ + public Builder mergeHotelBookingWindowDays(com.google.protobuf.Int64Value value) { + if (hotelBookingWindowDaysBuilder_ == null) { + if (hotelBookingWindowDays_ != null) { + hotelBookingWindowDays_ = + com.google.protobuf.Int64Value.newBuilder(hotelBookingWindowDays_).mergeFrom(value).buildPartial(); + } else { + hotelBookingWindowDays_ = value; + } + onChanged(); + } else { + hotelBookingWindowDaysBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Hotel booking window in days.
+     * 
+ * + * .google.protobuf.Int64Value hotel_booking_window_days = 6; + */ + public Builder clearHotelBookingWindowDays() { + if (hotelBookingWindowDaysBuilder_ == null) { + hotelBookingWindowDays_ = null; + onChanged(); + } else { + hotelBookingWindowDays_ = null; + hotelBookingWindowDaysBuilder_ = null; + } + + return this; + } + /** + *
+     * Hotel booking window in days.
+     * 
+ * + * .google.protobuf.Int64Value hotel_booking_window_days = 6; + */ + public com.google.protobuf.Int64Value.Builder getHotelBookingWindowDaysBuilder() { + + onChanged(); + return getHotelBookingWindowDaysFieldBuilder().getBuilder(); + } + /** + *
+     * Hotel booking window in days.
+     * 
+ * + * .google.protobuf.Int64Value hotel_booking_window_days = 6; + */ + public com.google.protobuf.Int64ValueOrBuilder getHotelBookingWindowDaysOrBuilder() { + if (hotelBookingWindowDaysBuilder_ != null) { + return hotelBookingWindowDaysBuilder_.getMessageOrBuilder(); + } else { + return hotelBookingWindowDays_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : hotelBookingWindowDays_; + } + } + /** + *
+     * Hotel booking window in days.
+     * 
+ * + * .google.protobuf.Int64Value hotel_booking_window_days = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + getHotelBookingWindowDaysFieldBuilder() { + if (hotelBookingWindowDaysBuilder_ == null) { + hotelBookingWindowDaysBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getHotelBookingWindowDays(), + getParentForChildren(), + isClean()); + hotelBookingWindowDays_ = null; + } + return hotelBookingWindowDaysBuilder_; + } + + private com.google.protobuf.Int64Value hotelCenterId_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> hotelCenterIdBuilder_; + /** + *
+     * Hotel center ID.
+     * 
+ * + * .google.protobuf.Int64Value hotel_center_id = 7; + */ + public boolean hasHotelCenterId() { + return hotelCenterIdBuilder_ != null || hotelCenterId_ != null; + } + /** + *
+     * Hotel center ID.
+     * 
+ * + * .google.protobuf.Int64Value hotel_center_id = 7; + */ + public com.google.protobuf.Int64Value getHotelCenterId() { + if (hotelCenterIdBuilder_ == null) { + return hotelCenterId_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : hotelCenterId_; + } else { + return hotelCenterIdBuilder_.getMessage(); + } + } + /** + *
+     * Hotel center ID.
+     * 
+ * + * .google.protobuf.Int64Value hotel_center_id = 7; + */ + public Builder setHotelCenterId(com.google.protobuf.Int64Value value) { + if (hotelCenterIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hotelCenterId_ = value; + onChanged(); + } else { + hotelCenterIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Hotel center ID.
+     * 
+ * + * .google.protobuf.Int64Value hotel_center_id = 7; + */ + public Builder setHotelCenterId( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (hotelCenterIdBuilder_ == null) { + hotelCenterId_ = builderForValue.build(); + onChanged(); + } else { + hotelCenterIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Hotel center ID.
+     * 
+ * + * .google.protobuf.Int64Value hotel_center_id = 7; + */ + public Builder mergeHotelCenterId(com.google.protobuf.Int64Value value) { + if (hotelCenterIdBuilder_ == null) { + if (hotelCenterId_ != null) { + hotelCenterId_ = + com.google.protobuf.Int64Value.newBuilder(hotelCenterId_).mergeFrom(value).buildPartial(); + } else { + hotelCenterId_ = value; + } + onChanged(); + } else { + hotelCenterIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Hotel center ID.
+     * 
+ * + * .google.protobuf.Int64Value hotel_center_id = 7; + */ + public Builder clearHotelCenterId() { + if (hotelCenterIdBuilder_ == null) { + hotelCenterId_ = null; + onChanged(); + } else { + hotelCenterId_ = null; + hotelCenterIdBuilder_ = null; + } + + return this; + } + /** + *
+     * Hotel center ID.
+     * 
+ * + * .google.protobuf.Int64Value hotel_center_id = 7; + */ + public com.google.protobuf.Int64Value.Builder getHotelCenterIdBuilder() { + + onChanged(); + return getHotelCenterIdFieldBuilder().getBuilder(); + } + /** + *
+     * Hotel center ID.
+     * 
+ * + * .google.protobuf.Int64Value hotel_center_id = 7; + */ + public com.google.protobuf.Int64ValueOrBuilder getHotelCenterIdOrBuilder() { + if (hotelCenterIdBuilder_ != null) { + return hotelCenterIdBuilder_.getMessageOrBuilder(); + } else { + return hotelCenterId_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : hotelCenterId_; + } + } + /** + *
+     * Hotel center ID.
+     * 
+ * + * .google.protobuf.Int64Value hotel_center_id = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + getHotelCenterIdFieldBuilder() { + if (hotelCenterIdBuilder_ == null) { + hotelCenterIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getHotelCenterId(), + getParentForChildren(), + isClean()); + hotelCenterId_ = null; + } + return hotelCenterIdBuilder_; + } + + private com.google.protobuf.StringValue hotelCheckInDate_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> hotelCheckInDateBuilder_; + /** + *
+     * Hotel check-in date. Formatted as yyyy-MM-dd.
+     * 
+ * + * .google.protobuf.StringValue hotel_check_in_date = 8; + */ + public boolean hasHotelCheckInDate() { + return hotelCheckInDateBuilder_ != null || hotelCheckInDate_ != null; + } + /** + *
+     * Hotel check-in date. Formatted as yyyy-MM-dd.
+     * 
+ * + * .google.protobuf.StringValue hotel_check_in_date = 8; + */ + public com.google.protobuf.StringValue getHotelCheckInDate() { + if (hotelCheckInDateBuilder_ == null) { + return hotelCheckInDate_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : hotelCheckInDate_; + } else { + return hotelCheckInDateBuilder_.getMessage(); + } + } + /** + *
+     * Hotel check-in date. Formatted as yyyy-MM-dd.
+     * 
+ * + * .google.protobuf.StringValue hotel_check_in_date = 8; + */ + public Builder setHotelCheckInDate(com.google.protobuf.StringValue value) { + if (hotelCheckInDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hotelCheckInDate_ = value; + onChanged(); + } else { + hotelCheckInDateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Hotel check-in date. Formatted as yyyy-MM-dd.
+     * 
+ * + * .google.protobuf.StringValue hotel_check_in_date = 8; + */ + public Builder setHotelCheckInDate( + com.google.protobuf.StringValue.Builder builderForValue) { + if (hotelCheckInDateBuilder_ == null) { + hotelCheckInDate_ = builderForValue.build(); + onChanged(); + } else { + hotelCheckInDateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Hotel check-in date. Formatted as yyyy-MM-dd.
+     * 
+ * + * .google.protobuf.StringValue hotel_check_in_date = 8; + */ + public Builder mergeHotelCheckInDate(com.google.protobuf.StringValue value) { + if (hotelCheckInDateBuilder_ == null) { + if (hotelCheckInDate_ != null) { + hotelCheckInDate_ = + com.google.protobuf.StringValue.newBuilder(hotelCheckInDate_).mergeFrom(value).buildPartial(); + } else { + hotelCheckInDate_ = value; + } + onChanged(); + } else { + hotelCheckInDateBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Hotel check-in date. Formatted as yyyy-MM-dd.
+     * 
+ * + * .google.protobuf.StringValue hotel_check_in_date = 8; + */ + public Builder clearHotelCheckInDate() { + if (hotelCheckInDateBuilder_ == null) { + hotelCheckInDate_ = null; + onChanged(); + } else { + hotelCheckInDate_ = null; + hotelCheckInDateBuilder_ = null; + } + + return this; + } + /** + *
+     * Hotel check-in date. Formatted as yyyy-MM-dd.
+     * 
+ * + * .google.protobuf.StringValue hotel_check_in_date = 8; + */ + public com.google.protobuf.StringValue.Builder getHotelCheckInDateBuilder() { + + onChanged(); + return getHotelCheckInDateFieldBuilder().getBuilder(); + } + /** + *
+     * Hotel check-in date. Formatted as yyyy-MM-dd.
+     * 
+ * + * .google.protobuf.StringValue hotel_check_in_date = 8; + */ + public com.google.protobuf.StringValueOrBuilder getHotelCheckInDateOrBuilder() { + if (hotelCheckInDateBuilder_ != null) { + return hotelCheckInDateBuilder_.getMessageOrBuilder(); + } else { + return hotelCheckInDate_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : hotelCheckInDate_; + } + } + /** + *
+     * Hotel check-in date. Formatted as yyyy-MM-dd.
+     * 
+ * + * .google.protobuf.StringValue hotel_check_in_date = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getHotelCheckInDateFieldBuilder() { + if (hotelCheckInDateBuilder_ == null) { + hotelCheckInDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getHotelCheckInDate(), + getParentForChildren(), + isClean()); + hotelCheckInDate_ = null; + } + return hotelCheckInDateBuilder_; + } + + private int hotelCheckInDayOfWeek_ = 0; + /** + *
+     * Hotel check-in day of week.
+     * 
+ * + * .google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek hotel_check_in_day_of_week = 9; + */ + public int getHotelCheckInDayOfWeekValue() { + return hotelCheckInDayOfWeek_; + } + /** + *
+     * Hotel check-in day of week.
+     * 
+ * + * .google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek hotel_check_in_day_of_week = 9; + */ + public Builder setHotelCheckInDayOfWeekValue(int value) { + hotelCheckInDayOfWeek_ = value; + onChanged(); + return this; + } + /** + *
+     * Hotel check-in day of week.
+     * 
+ * + * .google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek hotel_check_in_day_of_week = 9; + */ + public com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek getHotelCheckInDayOfWeek() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek result = com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek.valueOf(hotelCheckInDayOfWeek_); + return result == null ? com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek.UNRECOGNIZED : result; + } + /** + *
+     * Hotel check-in day of week.
+     * 
+ * + * .google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek hotel_check_in_day_of_week = 9; + */ + public Builder setHotelCheckInDayOfWeek(com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek value) { + if (value == null) { + throw new NullPointerException(); + } + + hotelCheckInDayOfWeek_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Hotel check-in day of week.
+     * 
+ * + * .google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek hotel_check_in_day_of_week = 9; + */ + public Builder clearHotelCheckInDayOfWeek() { + + hotelCheckInDayOfWeek_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.StringValue hotelCity_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> hotelCityBuilder_; + /** + *
+     * Hotel city.
+     * 
+ * + * .google.protobuf.StringValue hotel_city = 10; + */ + public boolean hasHotelCity() { + return hotelCityBuilder_ != null || hotelCity_ != null; + } + /** + *
+     * Hotel city.
+     * 
+ * + * .google.protobuf.StringValue hotel_city = 10; + */ + public com.google.protobuf.StringValue getHotelCity() { + if (hotelCityBuilder_ == null) { + return hotelCity_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : hotelCity_; + } else { + return hotelCityBuilder_.getMessage(); + } + } + /** + *
+     * Hotel city.
+     * 
+ * + * .google.protobuf.StringValue hotel_city = 10; + */ + public Builder setHotelCity(com.google.protobuf.StringValue value) { + if (hotelCityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hotelCity_ = value; + onChanged(); + } else { + hotelCityBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Hotel city.
+     * 
+ * + * .google.protobuf.StringValue hotel_city = 10; + */ + public Builder setHotelCity( + com.google.protobuf.StringValue.Builder builderForValue) { + if (hotelCityBuilder_ == null) { + hotelCity_ = builderForValue.build(); + onChanged(); + } else { + hotelCityBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Hotel city.
+     * 
+ * + * .google.protobuf.StringValue hotel_city = 10; + */ + public Builder mergeHotelCity(com.google.protobuf.StringValue value) { + if (hotelCityBuilder_ == null) { + if (hotelCity_ != null) { + hotelCity_ = + com.google.protobuf.StringValue.newBuilder(hotelCity_).mergeFrom(value).buildPartial(); + } else { + hotelCity_ = value; + } + onChanged(); + } else { + hotelCityBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Hotel city.
+     * 
+ * + * .google.protobuf.StringValue hotel_city = 10; + */ + public Builder clearHotelCity() { + if (hotelCityBuilder_ == null) { + hotelCity_ = null; + onChanged(); + } else { + hotelCity_ = null; + hotelCityBuilder_ = null; + } + + return this; + } + /** + *
+     * Hotel city.
+     * 
+ * + * .google.protobuf.StringValue hotel_city = 10; + */ + public com.google.protobuf.StringValue.Builder getHotelCityBuilder() { + + onChanged(); + return getHotelCityFieldBuilder().getBuilder(); + } + /** + *
+     * Hotel city.
+     * 
+ * + * .google.protobuf.StringValue hotel_city = 10; + */ + public com.google.protobuf.StringValueOrBuilder getHotelCityOrBuilder() { + if (hotelCityBuilder_ != null) { + return hotelCityBuilder_.getMessageOrBuilder(); + } else { + return hotelCity_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : hotelCity_; + } + } + /** + *
+     * Hotel city.
+     * 
+ * + * .google.protobuf.StringValue hotel_city = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getHotelCityFieldBuilder() { + if (hotelCityBuilder_ == null) { + hotelCityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getHotelCity(), + getParentForChildren(), + isClean()); + hotelCity_ = null; + } + return hotelCityBuilder_; + } + + private com.google.protobuf.Int32Value hotelClass_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> hotelClassBuilder_; + /** + *
+     * Hotel class.
+     * 
+ * + * .google.protobuf.Int32Value hotel_class = 11; + */ + public boolean hasHotelClass() { + return hotelClassBuilder_ != null || hotelClass_ != null; + } + /** + *
+     * Hotel class.
+     * 
+ * + * .google.protobuf.Int32Value hotel_class = 11; + */ + public com.google.protobuf.Int32Value getHotelClass() { + if (hotelClassBuilder_ == null) { + return hotelClass_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : hotelClass_; + } else { + return hotelClassBuilder_.getMessage(); + } + } + /** + *
+     * Hotel class.
+     * 
+ * + * .google.protobuf.Int32Value hotel_class = 11; + */ + public Builder setHotelClass(com.google.protobuf.Int32Value value) { + if (hotelClassBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hotelClass_ = value; + onChanged(); + } else { + hotelClassBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Hotel class.
+     * 
+ * + * .google.protobuf.Int32Value hotel_class = 11; + */ + public Builder setHotelClass( + com.google.protobuf.Int32Value.Builder builderForValue) { + if (hotelClassBuilder_ == null) { + hotelClass_ = builderForValue.build(); + onChanged(); + } else { + hotelClassBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Hotel class.
+     * 
+ * + * .google.protobuf.Int32Value hotel_class = 11; + */ + public Builder mergeHotelClass(com.google.protobuf.Int32Value value) { + if (hotelClassBuilder_ == null) { + if (hotelClass_ != null) { + hotelClass_ = + com.google.protobuf.Int32Value.newBuilder(hotelClass_).mergeFrom(value).buildPartial(); + } else { + hotelClass_ = value; + } + onChanged(); + } else { + hotelClassBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Hotel class.
+     * 
+ * + * .google.protobuf.Int32Value hotel_class = 11; + */ + public Builder clearHotelClass() { + if (hotelClassBuilder_ == null) { + hotelClass_ = null; + onChanged(); + } else { + hotelClass_ = null; + hotelClassBuilder_ = null; + } + + return this; + } + /** + *
+     * Hotel class.
+     * 
+ * + * .google.protobuf.Int32Value hotel_class = 11; + */ + public com.google.protobuf.Int32Value.Builder getHotelClassBuilder() { + + onChanged(); + return getHotelClassFieldBuilder().getBuilder(); + } + /** + *
+     * Hotel class.
+     * 
+ * + * .google.protobuf.Int32Value hotel_class = 11; + */ + public com.google.protobuf.Int32ValueOrBuilder getHotelClassOrBuilder() { + if (hotelClassBuilder_ != null) { + return hotelClassBuilder_.getMessageOrBuilder(); + } else { + return hotelClass_ == null ? + com.google.protobuf.Int32Value.getDefaultInstance() : hotelClass_; + } + } + /** + *
+     * Hotel class.
+     * 
+ * + * .google.protobuf.Int32Value hotel_class = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> + getHotelClassFieldBuilder() { + if (hotelClassBuilder_ == null) { + hotelClassBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( + getHotelClass(), + getParentForChildren(), + isClean()); + hotelClass_ = null; + } + return hotelClassBuilder_; + } + + private com.google.protobuf.StringValue hotelCountry_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> hotelCountryBuilder_; + /** + *
+     * Hotel country.
+     * 
+ * + * .google.protobuf.StringValue hotel_country = 12; + */ + public boolean hasHotelCountry() { + return hotelCountryBuilder_ != null || hotelCountry_ != null; + } + /** + *
+     * Hotel country.
+     * 
+ * + * .google.protobuf.StringValue hotel_country = 12; + */ + public com.google.protobuf.StringValue getHotelCountry() { + if (hotelCountryBuilder_ == null) { + return hotelCountry_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : hotelCountry_; + } else { + return hotelCountryBuilder_.getMessage(); + } + } + /** + *
+     * Hotel country.
+     * 
+ * + * .google.protobuf.StringValue hotel_country = 12; + */ + public Builder setHotelCountry(com.google.protobuf.StringValue value) { + if (hotelCountryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hotelCountry_ = value; + onChanged(); + } else { + hotelCountryBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Hotel country.
+     * 
+ * + * .google.protobuf.StringValue hotel_country = 12; + */ + public Builder setHotelCountry( + com.google.protobuf.StringValue.Builder builderForValue) { + if (hotelCountryBuilder_ == null) { + hotelCountry_ = builderForValue.build(); + onChanged(); + } else { + hotelCountryBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Hotel country.
+     * 
+ * + * .google.protobuf.StringValue hotel_country = 12; + */ + public Builder mergeHotelCountry(com.google.protobuf.StringValue value) { + if (hotelCountryBuilder_ == null) { + if (hotelCountry_ != null) { + hotelCountry_ = + com.google.protobuf.StringValue.newBuilder(hotelCountry_).mergeFrom(value).buildPartial(); + } else { + hotelCountry_ = value; + } + onChanged(); + } else { + hotelCountryBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Hotel country.
+     * 
+ * + * .google.protobuf.StringValue hotel_country = 12; + */ + public Builder clearHotelCountry() { + if (hotelCountryBuilder_ == null) { + hotelCountry_ = null; + onChanged(); + } else { + hotelCountry_ = null; + hotelCountryBuilder_ = null; + } + + return this; + } + /** + *
+     * Hotel country.
+     * 
+ * + * .google.protobuf.StringValue hotel_country = 12; + */ + public com.google.protobuf.StringValue.Builder getHotelCountryBuilder() { + + onChanged(); + return getHotelCountryFieldBuilder().getBuilder(); + } + /** + *
+     * Hotel country.
+     * 
+ * + * .google.protobuf.StringValue hotel_country = 12; + */ + public com.google.protobuf.StringValueOrBuilder getHotelCountryOrBuilder() { + if (hotelCountryBuilder_ != null) { + return hotelCountryBuilder_.getMessageOrBuilder(); + } else { + return hotelCountry_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : hotelCountry_; + } + } + /** + *
+     * Hotel country.
+     * 
+ * + * .google.protobuf.StringValue hotel_country = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getHotelCountryFieldBuilder() { + if (hotelCountryBuilder_ == null) { + hotelCountryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getHotelCountry(), + getParentForChildren(), + isClean()); + hotelCountry_ = null; + } + return hotelCountryBuilder_; + } + + private int hotelDateSelectionType_ = 0; + /** + *
+     * Hotel date selection type.
+     * 
+ * + * .google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType hotel_date_selection_type = 13; + */ + public int getHotelDateSelectionTypeValue() { + return hotelDateSelectionType_; + } + /** + *
+     * Hotel date selection type.
+     * 
+ * + * .google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType hotel_date_selection_type = 13; + */ + public Builder setHotelDateSelectionTypeValue(int value) { + hotelDateSelectionType_ = value; + onChanged(); + return this; + } + /** + *
+     * Hotel date selection type.
+     * 
+ * + * .google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType hotel_date_selection_type = 13; + */ + public com.google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType getHotelDateSelectionType() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType result = com.google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType.valueOf(hotelDateSelectionType_); + return result == null ? com.google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType.UNRECOGNIZED : result; + } + /** + *
+     * Hotel date selection type.
+     * 
+ * + * .google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType hotel_date_selection_type = 13; + */ + public Builder setHotelDateSelectionType(com.google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType value) { + if (value == null) { + throw new NullPointerException(); + } + + hotelDateSelectionType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Hotel date selection type.
+     * 
+ * + * .google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType hotel_date_selection_type = 13; + */ + public Builder clearHotelDateSelectionType() { + + hotelDateSelectionType_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Int32Value hotelLengthOfStay_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> hotelLengthOfStayBuilder_; + /** + *
+     * Hotel length of stay.
+     * 
+ * + * .google.protobuf.Int32Value hotel_length_of_stay = 14; + */ + public boolean hasHotelLengthOfStay() { + return hotelLengthOfStayBuilder_ != null || hotelLengthOfStay_ != null; + } + /** + *
+     * Hotel length of stay.
+     * 
+ * + * .google.protobuf.Int32Value hotel_length_of_stay = 14; + */ + public com.google.protobuf.Int32Value getHotelLengthOfStay() { + if (hotelLengthOfStayBuilder_ == null) { + return hotelLengthOfStay_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : hotelLengthOfStay_; + } else { + return hotelLengthOfStayBuilder_.getMessage(); + } + } + /** + *
+     * Hotel length of stay.
+     * 
+ * + * .google.protobuf.Int32Value hotel_length_of_stay = 14; + */ + public Builder setHotelLengthOfStay(com.google.protobuf.Int32Value value) { + if (hotelLengthOfStayBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hotelLengthOfStay_ = value; + onChanged(); + } else { + hotelLengthOfStayBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Hotel length of stay.
+     * 
+ * + * .google.protobuf.Int32Value hotel_length_of_stay = 14; + */ + public Builder setHotelLengthOfStay( + com.google.protobuf.Int32Value.Builder builderForValue) { + if (hotelLengthOfStayBuilder_ == null) { + hotelLengthOfStay_ = builderForValue.build(); + onChanged(); + } else { + hotelLengthOfStayBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Hotel length of stay.
+     * 
+ * + * .google.protobuf.Int32Value hotel_length_of_stay = 14; + */ + public Builder mergeHotelLengthOfStay(com.google.protobuf.Int32Value value) { + if (hotelLengthOfStayBuilder_ == null) { + if (hotelLengthOfStay_ != null) { + hotelLengthOfStay_ = + com.google.protobuf.Int32Value.newBuilder(hotelLengthOfStay_).mergeFrom(value).buildPartial(); + } else { + hotelLengthOfStay_ = value; + } + onChanged(); + } else { + hotelLengthOfStayBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Hotel length of stay.
+     * 
+ * + * .google.protobuf.Int32Value hotel_length_of_stay = 14; + */ + public Builder clearHotelLengthOfStay() { + if (hotelLengthOfStayBuilder_ == null) { + hotelLengthOfStay_ = null; + onChanged(); + } else { + hotelLengthOfStay_ = null; + hotelLengthOfStayBuilder_ = null; + } + + return this; + } + /** + *
+     * Hotel length of stay.
+     * 
+ * + * .google.protobuf.Int32Value hotel_length_of_stay = 14; + */ + public com.google.protobuf.Int32Value.Builder getHotelLengthOfStayBuilder() { + + onChanged(); + return getHotelLengthOfStayFieldBuilder().getBuilder(); + } + /** + *
+     * Hotel length of stay.
+     * 
+ * + * .google.protobuf.Int32Value hotel_length_of_stay = 14; + */ + public com.google.protobuf.Int32ValueOrBuilder getHotelLengthOfStayOrBuilder() { + if (hotelLengthOfStayBuilder_ != null) { + return hotelLengthOfStayBuilder_.getMessageOrBuilder(); + } else { + return hotelLengthOfStay_ == null ? + com.google.protobuf.Int32Value.getDefaultInstance() : hotelLengthOfStay_; + } + } + /** + *
+     * Hotel length of stay.
+     * 
+ * + * .google.protobuf.Int32Value hotel_length_of_stay = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> + getHotelLengthOfStayFieldBuilder() { + if (hotelLengthOfStayBuilder_ == null) { + hotelLengthOfStayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( + getHotelLengthOfStay(), + getParentForChildren(), + isClean()); + hotelLengthOfStay_ = null; + } + return hotelLengthOfStayBuilder_; + } + + private com.google.protobuf.StringValue hotelState_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> hotelStateBuilder_; + /** + *
+     * Hotel state.
+     * 
+ * + * .google.protobuf.StringValue hotel_state = 15; + */ + public boolean hasHotelState() { + return hotelStateBuilder_ != null || hotelState_ != null; + } + /** + *
+     * Hotel state.
+     * 
+ * + * .google.protobuf.StringValue hotel_state = 15; + */ + public com.google.protobuf.StringValue getHotelState() { + if (hotelStateBuilder_ == null) { + return hotelState_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : hotelState_; + } else { + return hotelStateBuilder_.getMessage(); + } + } + /** + *
+     * Hotel state.
+     * 
+ * + * .google.protobuf.StringValue hotel_state = 15; + */ + public Builder setHotelState(com.google.protobuf.StringValue value) { + if (hotelStateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hotelState_ = value; + onChanged(); + } else { + hotelStateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Hotel state.
+     * 
+ * + * .google.protobuf.StringValue hotel_state = 15; + */ + public Builder setHotelState( + com.google.protobuf.StringValue.Builder builderForValue) { + if (hotelStateBuilder_ == null) { + hotelState_ = builderForValue.build(); + onChanged(); + } else { + hotelStateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Hotel state.
+     * 
+ * + * .google.protobuf.StringValue hotel_state = 15; + */ + public Builder mergeHotelState(com.google.protobuf.StringValue value) { + if (hotelStateBuilder_ == null) { + if (hotelState_ != null) { + hotelState_ = + com.google.protobuf.StringValue.newBuilder(hotelState_).mergeFrom(value).buildPartial(); + } else { + hotelState_ = value; + } + onChanged(); + } else { + hotelStateBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Hotel state.
+     * 
+ * + * .google.protobuf.StringValue hotel_state = 15; + */ + public Builder clearHotelState() { + if (hotelStateBuilder_ == null) { + hotelState_ = null; + onChanged(); + } else { + hotelState_ = null; + hotelStateBuilder_ = null; + } + + return this; + } + /** + *
+     * Hotel state.
+     * 
+ * + * .google.protobuf.StringValue hotel_state = 15; + */ + public com.google.protobuf.StringValue.Builder getHotelStateBuilder() { + + onChanged(); + return getHotelStateFieldBuilder().getBuilder(); + } + /** + *
+     * Hotel state.
+     * 
+ * + * .google.protobuf.StringValue hotel_state = 15; + */ + public com.google.protobuf.StringValueOrBuilder getHotelStateOrBuilder() { + if (hotelStateBuilder_ != null) { + return hotelStateBuilder_.getMessageOrBuilder(); + } else { + return hotelState_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : hotelState_; + } + } + /** + *
+     * Hotel state.
+     * 
+ * + * .google.protobuf.StringValue hotel_state = 15; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getHotelStateFieldBuilder() { + if (hotelStateBuilder_ == null) { + hotelStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getHotelState(), + getParentForChildren(), + isClean()); + hotelState_ = null; + } + return hotelStateBuilder_; + } + + private com.google.protobuf.Int32Value hour_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> hourBuilder_; + /** + *
+     * Hour of day as a number between 0 and 23, inclusive.
+     * 
+ * + * .google.protobuf.Int32Value hour = 16; + */ + public boolean hasHour() { + return hourBuilder_ != null || hour_ != null; + } + /** + *
+     * Hour of day as a number between 0 and 23, inclusive.
+     * 
+ * + * .google.protobuf.Int32Value hour = 16; + */ + public com.google.protobuf.Int32Value getHour() { + if (hourBuilder_ == null) { + return hour_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : hour_; + } else { + return hourBuilder_.getMessage(); + } + } + /** + *
+     * Hour of day as a number between 0 and 23, inclusive.
+     * 
+ * + * .google.protobuf.Int32Value hour = 16; + */ + public Builder setHour(com.google.protobuf.Int32Value value) { + if (hourBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hour_ = value; + onChanged(); + } else { + hourBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Hour of day as a number between 0 and 23, inclusive.
+     * 
+ * + * .google.protobuf.Int32Value hour = 16; + */ + public Builder setHour( + com.google.protobuf.Int32Value.Builder builderForValue) { + if (hourBuilder_ == null) { + hour_ = builderForValue.build(); + onChanged(); + } else { + hourBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Hour of day as a number between 0 and 23, inclusive.
+     * 
+ * + * .google.protobuf.Int32Value hour = 16; + */ + public Builder mergeHour(com.google.protobuf.Int32Value value) { + if (hourBuilder_ == null) { + if (hour_ != null) { + hour_ = + com.google.protobuf.Int32Value.newBuilder(hour_).mergeFrom(value).buildPartial(); + } else { + hour_ = value; + } + onChanged(); + } else { + hourBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Hour of day as a number between 0 and 23, inclusive.
+     * 
+ * + * .google.protobuf.Int32Value hour = 16; + */ + public Builder clearHour() { + if (hourBuilder_ == null) { + hour_ = null; + onChanged(); + } else { + hour_ = null; + hourBuilder_ = null; + } + + return this; + } + /** + *
+     * Hour of day as a number between 0 and 23, inclusive.
+     * 
+ * + * .google.protobuf.Int32Value hour = 16; + */ + public com.google.protobuf.Int32Value.Builder getHourBuilder() { + + onChanged(); + return getHourFieldBuilder().getBuilder(); + } + /** + *
+     * Hour of day as a number between 0 and 23, inclusive.
+     * 
+ * + * .google.protobuf.Int32Value hour = 16; + */ + public com.google.protobuf.Int32ValueOrBuilder getHourOrBuilder() { + if (hourBuilder_ != null) { + return hourBuilder_.getMessageOrBuilder(); + } else { + return hour_ == null ? + com.google.protobuf.Int32Value.getDefaultInstance() : hour_; + } + } + /** + *
+     * Hour of day as a number between 0 and 23, inclusive.
+     * 
+ * + * .google.protobuf.Int32Value hour = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> + getHourFieldBuilder() { + if (hourBuilder_ == null) { + hourBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( + getHour(), + getParentForChildren(), + isClean()); + hour_ = null; + } + return hourBuilder_; + } + + private com.google.protobuf.StringValue month_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> monthBuilder_; + /** + *
+     * Month as represented by the date of the first day of a month. Formatted as
+     * yyyy-MM-dd.
+     * 
+ * + * .google.protobuf.StringValue month = 17; + */ + public boolean hasMonth() { + return monthBuilder_ != null || month_ != null; + } + /** + *
+     * Month as represented by the date of the first day of a month. Formatted as
+     * yyyy-MM-dd.
+     * 
+ * + * .google.protobuf.StringValue month = 17; + */ + public com.google.protobuf.StringValue getMonth() { + if (monthBuilder_ == null) { + return month_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : month_; + } else { + return monthBuilder_.getMessage(); + } + } + /** + *
+     * Month as represented by the date of the first day of a month. Formatted as
+     * yyyy-MM-dd.
+     * 
+ * + * .google.protobuf.StringValue month = 17; + */ + public Builder setMonth(com.google.protobuf.StringValue value) { + if (monthBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + month_ = value; + onChanged(); + } else { + monthBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Month as represented by the date of the first day of a month. Formatted as
+     * yyyy-MM-dd.
+     * 
+ * + * .google.protobuf.StringValue month = 17; + */ + public Builder setMonth( + com.google.protobuf.StringValue.Builder builderForValue) { + if (monthBuilder_ == null) { + month_ = builderForValue.build(); + onChanged(); + } else { + monthBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Month as represented by the date of the first day of a month. Formatted as
+     * yyyy-MM-dd.
+     * 
+ * + * .google.protobuf.StringValue month = 17; + */ + public Builder mergeMonth(com.google.protobuf.StringValue value) { + if (monthBuilder_ == null) { + if (month_ != null) { + month_ = + com.google.protobuf.StringValue.newBuilder(month_).mergeFrom(value).buildPartial(); + } else { + month_ = value; + } + onChanged(); + } else { + monthBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Month as represented by the date of the first day of a month. Formatted as
+     * yyyy-MM-dd.
+     * 
+ * + * .google.protobuf.StringValue month = 17; + */ + public Builder clearMonth() { + if (monthBuilder_ == null) { + month_ = null; + onChanged(); + } else { + month_ = null; + monthBuilder_ = null; + } + + return this; + } + /** + *
+     * Month as represented by the date of the first day of a month. Formatted as
+     * yyyy-MM-dd.
+     * 
+ * + * .google.protobuf.StringValue month = 17; + */ + public com.google.protobuf.StringValue.Builder getMonthBuilder() { + + onChanged(); + return getMonthFieldBuilder().getBuilder(); + } + /** + *
+     * Month as represented by the date of the first day of a month. Formatted as
+     * yyyy-MM-dd.
+     * 
+ * + * .google.protobuf.StringValue month = 17; + */ + public com.google.protobuf.StringValueOrBuilder getMonthOrBuilder() { + if (monthBuilder_ != null) { + return monthBuilder_.getMessageOrBuilder(); + } else { + return month_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : month_; + } + } + /** + *
+     * Month as represented by the date of the first day of a month. Formatted as
+     * yyyy-MM-dd.
+     * 
+ * + * .google.protobuf.StringValue month = 17; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getMonthFieldBuilder() { + if (monthBuilder_ == null) { + monthBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getMonth(), + getParentForChildren(), + isClean()); + month_ = null; + } + return monthBuilder_; + } + + private int monthOfYear_ = 0; + /** + *
+     * Month of the year, e.g., January.
+     * 
+ * + * .google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear month_of_year = 18; + */ + public int getMonthOfYearValue() { + return monthOfYear_; + } + /** + *
+     * Month of the year, e.g., January.
+     * 
+ * + * .google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear month_of_year = 18; + */ + public Builder setMonthOfYearValue(int value) { + monthOfYear_ = value; + onChanged(); + return this; + } + /** + *
+     * Month of the year, e.g., January.
+     * 
+ * + * .google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear month_of_year = 18; + */ + public com.google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear getMonthOfYear() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear result = com.google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear.valueOf(monthOfYear_); + return result == null ? com.google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear.UNRECOGNIZED : result; + } + /** + *
+     * Month of the year, e.g., January.
+     * 
+ * + * .google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear month_of_year = 18; + */ + public Builder setMonthOfYear(com.google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear value) { + if (value == null) { + throw new NullPointerException(); + } + + monthOfYear_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Month of the year, e.g., January.
+     * 
+ * + * .google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear month_of_year = 18; + */ + public Builder clearMonthOfYear() { + + monthOfYear_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.StringValue partnerHotelId_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> partnerHotelIdBuilder_; + /** + *
+     * Partner hotel ID.
+     * 
+ * + * .google.protobuf.StringValue partner_hotel_id = 19; + */ + public boolean hasPartnerHotelId() { + return partnerHotelIdBuilder_ != null || partnerHotelId_ != null; + } + /** + *
+     * Partner hotel ID.
+     * 
+ * + * .google.protobuf.StringValue partner_hotel_id = 19; + */ + public com.google.protobuf.StringValue getPartnerHotelId() { + if (partnerHotelIdBuilder_ == null) { + return partnerHotelId_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : partnerHotelId_; + } else { + return partnerHotelIdBuilder_.getMessage(); + } + } + /** + *
+     * Partner hotel ID.
+     * 
+ * + * .google.protobuf.StringValue partner_hotel_id = 19; + */ + public Builder setPartnerHotelId(com.google.protobuf.StringValue value) { + if (partnerHotelIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partnerHotelId_ = value; + onChanged(); + } else { + partnerHotelIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Partner hotel ID.
+     * 
+ * + * .google.protobuf.StringValue partner_hotel_id = 19; + */ + public Builder setPartnerHotelId( + com.google.protobuf.StringValue.Builder builderForValue) { + if (partnerHotelIdBuilder_ == null) { + partnerHotelId_ = builderForValue.build(); + onChanged(); + } else { + partnerHotelIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Partner hotel ID.
+     * 
+ * + * .google.protobuf.StringValue partner_hotel_id = 19; + */ + public Builder mergePartnerHotelId(com.google.protobuf.StringValue value) { + if (partnerHotelIdBuilder_ == null) { + if (partnerHotelId_ != null) { + partnerHotelId_ = + com.google.protobuf.StringValue.newBuilder(partnerHotelId_).mergeFrom(value).buildPartial(); + } else { + partnerHotelId_ = value; + } + onChanged(); + } else { + partnerHotelIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Partner hotel ID.
+     * 
+ * + * .google.protobuf.StringValue partner_hotel_id = 19; + */ + public Builder clearPartnerHotelId() { + if (partnerHotelIdBuilder_ == null) { + partnerHotelId_ = null; + onChanged(); + } else { + partnerHotelId_ = null; + partnerHotelIdBuilder_ = null; + } + + return this; + } + /** + *
+     * Partner hotel ID.
+     * 
+ * + * .google.protobuf.StringValue partner_hotel_id = 19; + */ + public com.google.protobuf.StringValue.Builder getPartnerHotelIdBuilder() { + + onChanged(); + return getPartnerHotelIdFieldBuilder().getBuilder(); + } + /** + *
+     * Partner hotel ID.
+     * 
+ * + * .google.protobuf.StringValue partner_hotel_id = 19; + */ + public com.google.protobuf.StringValueOrBuilder getPartnerHotelIdOrBuilder() { + if (partnerHotelIdBuilder_ != null) { + return partnerHotelIdBuilder_.getMessageOrBuilder(); + } else { + return partnerHotelId_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : partnerHotelId_; + } + } + /** + *
+     * Partner hotel ID.
+     * 
+ * + * .google.protobuf.StringValue partner_hotel_id = 19; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getPartnerHotelIdFieldBuilder() { + if (partnerHotelIdBuilder_ == null) { + partnerHotelIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getPartnerHotelId(), + getParentForChildren(), + isClean()); + partnerHotelId_ = null; + } + return partnerHotelIdBuilder_; + } + + private int placeholderType_ = 0; + /** + *
+     * Placeholder type. This is only used with feed item metrics.
+     * 
+ * + * .google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type = 20; + */ + public int getPlaceholderTypeValue() { + return placeholderType_; + } + /** + *
+     * Placeholder type. This is only used with feed item metrics.
+     * 
+ * + * .google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type = 20; + */ + public Builder setPlaceholderTypeValue(int value) { + placeholderType_ = value; + onChanged(); + return this; + } + /** + *
+     * Placeholder type. This is only used with feed item metrics.
+     * 
+ * + * .google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type = 20; + */ + public com.google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType getPlaceholderType() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType result = com.google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType.valueOf(placeholderType_); + return result == null ? com.google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType.UNRECOGNIZED : result; + } + /** + *
+     * Placeholder type. This is only used with feed item metrics.
+     * 
+ * + * .google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type = 20; + */ + public Builder setPlaceholderType(com.google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType value) { + if (value == null) { + throw new NullPointerException(); + } + + placeholderType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Placeholder type. This is only used with feed item metrics.
+     * 
+ * + * .google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type = 20; + */ + public Builder clearPlaceholderType() { + + placeholderType_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.StringValue quarter_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> quarterBuilder_; + /** + *
+     * Quarter as represented by the date of the first day of a quarter.
+     * Uses the calendar year for quarters, e.g., the second quarter of 2018
+     * starts on 2018-04-01. Formatted as yyyy-MM-dd.
+     * 
+ * + * .google.protobuf.StringValue quarter = 21; + */ + public boolean hasQuarter() { + return quarterBuilder_ != null || quarter_ != null; + } + /** + *
+     * Quarter as represented by the date of the first day of a quarter.
+     * Uses the calendar year for quarters, e.g., the second quarter of 2018
+     * starts on 2018-04-01. Formatted as yyyy-MM-dd.
+     * 
+ * + * .google.protobuf.StringValue quarter = 21; + */ + public com.google.protobuf.StringValue getQuarter() { + if (quarterBuilder_ == null) { + return quarter_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : quarter_; + } else { + return quarterBuilder_.getMessage(); + } + } + /** + *
+     * Quarter as represented by the date of the first day of a quarter.
+     * Uses the calendar year for quarters, e.g., the second quarter of 2018
+     * starts on 2018-04-01. Formatted as yyyy-MM-dd.
+     * 
+ * + * .google.protobuf.StringValue quarter = 21; + */ + public Builder setQuarter(com.google.protobuf.StringValue value) { + if (quarterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + quarter_ = value; + onChanged(); + } else { + quarterBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Quarter as represented by the date of the first day of a quarter.
+     * Uses the calendar year for quarters, e.g., the second quarter of 2018
+     * starts on 2018-04-01. Formatted as yyyy-MM-dd.
+     * 
+ * + * .google.protobuf.StringValue quarter = 21; + */ + public Builder setQuarter( + com.google.protobuf.StringValue.Builder builderForValue) { + if (quarterBuilder_ == null) { + quarter_ = builderForValue.build(); + onChanged(); + } else { + quarterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Quarter as represented by the date of the first day of a quarter.
+     * Uses the calendar year for quarters, e.g., the second quarter of 2018
+     * starts on 2018-04-01. Formatted as yyyy-MM-dd.
+     * 
+ * + * .google.protobuf.StringValue quarter = 21; + */ + public Builder mergeQuarter(com.google.protobuf.StringValue value) { + if (quarterBuilder_ == null) { + if (quarter_ != null) { + quarter_ = + com.google.protobuf.StringValue.newBuilder(quarter_).mergeFrom(value).buildPartial(); + } else { + quarter_ = value; + } + onChanged(); + } else { + quarterBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Quarter as represented by the date of the first day of a quarter.
+     * Uses the calendar year for quarters, e.g., the second quarter of 2018
+     * starts on 2018-04-01. Formatted as yyyy-MM-dd.
+     * 
+ * + * .google.protobuf.StringValue quarter = 21; + */ + public Builder clearQuarter() { + if (quarterBuilder_ == null) { + quarter_ = null; + onChanged(); + } else { + quarter_ = null; + quarterBuilder_ = null; + } + + return this; + } + /** + *
+     * Quarter as represented by the date of the first day of a quarter.
+     * Uses the calendar year for quarters, e.g., the second quarter of 2018
+     * starts on 2018-04-01. Formatted as yyyy-MM-dd.
+     * 
+ * + * .google.protobuf.StringValue quarter = 21; + */ + public com.google.protobuf.StringValue.Builder getQuarterBuilder() { + + onChanged(); + return getQuarterFieldBuilder().getBuilder(); + } + /** + *
+     * Quarter as represented by the date of the first day of a quarter.
+     * Uses the calendar year for quarters, e.g., the second quarter of 2018
+     * starts on 2018-04-01. Formatted as yyyy-MM-dd.
+     * 
+ * + * .google.protobuf.StringValue quarter = 21; + */ + public com.google.protobuf.StringValueOrBuilder getQuarterOrBuilder() { + if (quarterBuilder_ != null) { + return quarterBuilder_.getMessageOrBuilder(); + } else { + return quarter_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : quarter_; + } + } + /** + *
+     * Quarter as represented by the date of the first day of a quarter.
+     * Uses the calendar year for quarters, e.g., the second quarter of 2018
+     * starts on 2018-04-01. Formatted as yyyy-MM-dd.
+     * 
+ * + * .google.protobuf.StringValue quarter = 21; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getQuarterFieldBuilder() { + if (quarterBuilder_ == null) { + quarterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getQuarter(), + getParentForChildren(), + isClean()); + quarter_ = null; + } + return quarterBuilder_; + } + + private int searchTermMatchType_ = 0; + /** + *
+     * Match type of the keyword that triggered the ad, including variants.
+     * 
+ * + * .google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType search_term_match_type = 22; + */ + public int getSearchTermMatchTypeValue() { + return searchTermMatchType_; + } + /** + *
+     * Match type of the keyword that triggered the ad, including variants.
+     * 
+ * + * .google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType search_term_match_type = 22; + */ + public Builder setSearchTermMatchTypeValue(int value) { + searchTermMatchType_ = value; + onChanged(); + return this; + } + /** + *
+     * Match type of the keyword that triggered the ad, including variants.
+     * 
+ * + * .google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType search_term_match_type = 22; + */ + public com.google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType getSearchTermMatchType() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType result = com.google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType.valueOf(searchTermMatchType_); + return result == null ? com.google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType.UNRECOGNIZED : result; + } + /** + *
+     * Match type of the keyword that triggered the ad, including variants.
+     * 
+ * + * .google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType search_term_match_type = 22; + */ + public Builder setSearchTermMatchType(com.google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType value) { + if (value == null) { + throw new NullPointerException(); + } + + searchTermMatchType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Match type of the keyword that triggered the ad, including variants.
+     * 
+ * + * .google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType search_term_match_type = 22; + */ + public Builder clearSearchTermMatchType() { + + searchTermMatchType_ = 0; + onChanged(); + return this; + } + + private int slot_ = 0; + /** + *
+     * Position of the ad.
+     * 
+ * + * .google.ads.googleads.v0.enums.SlotEnum.Slot slot = 23; + */ + public int getSlotValue() { + return slot_; + } + /** + *
+     * Position of the ad.
+     * 
+ * + * .google.ads.googleads.v0.enums.SlotEnum.Slot slot = 23; + */ + public Builder setSlotValue(int value) { + slot_ = value; + onChanged(); + return this; + } + /** + *
+     * Position of the ad.
+     * 
+ * + * .google.ads.googleads.v0.enums.SlotEnum.Slot slot = 23; + */ + public com.google.ads.googleads.v0.enums.SlotEnum.Slot getSlot() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.SlotEnum.Slot result = com.google.ads.googleads.v0.enums.SlotEnum.Slot.valueOf(slot_); + return result == null ? com.google.ads.googleads.v0.enums.SlotEnum.Slot.UNRECOGNIZED : result; + } + /** + *
+     * Position of the ad.
+     * 
+ * + * .google.ads.googleads.v0.enums.SlotEnum.Slot slot = 23; + */ + public Builder setSlot(com.google.ads.googleads.v0.enums.SlotEnum.Slot value) { + if (value == null) { + throw new NullPointerException(); + } + + slot_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Position of the ad.
+     * 
+ * + * .google.ads.googleads.v0.enums.SlotEnum.Slot slot = 23; + */ + public Builder clearSlot() { + + slot_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.StringValue week_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> weekBuilder_; + /** + *
+     * Week as defined as Monday through Sunday, and represented by the date of
+     * Monday. Formatted as yyyy-MM-dd.
+     * 
+ * + * .google.protobuf.StringValue week = 24; + */ + public boolean hasWeek() { + return weekBuilder_ != null || week_ != null; + } + /** + *
+     * Week as defined as Monday through Sunday, and represented by the date of
+     * Monday. Formatted as yyyy-MM-dd.
+     * 
+ * + * .google.protobuf.StringValue week = 24; + */ + public com.google.protobuf.StringValue getWeek() { + if (weekBuilder_ == null) { + return week_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : week_; + } else { + return weekBuilder_.getMessage(); + } + } + /** + *
+     * Week as defined as Monday through Sunday, and represented by the date of
+     * Monday. Formatted as yyyy-MM-dd.
+     * 
+ * + * .google.protobuf.StringValue week = 24; + */ + public Builder setWeek(com.google.protobuf.StringValue value) { + if (weekBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + week_ = value; + onChanged(); + } else { + weekBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Week as defined as Monday through Sunday, and represented by the date of
+     * Monday. Formatted as yyyy-MM-dd.
+     * 
+ * + * .google.protobuf.StringValue week = 24; + */ + public Builder setWeek( + com.google.protobuf.StringValue.Builder builderForValue) { + if (weekBuilder_ == null) { + week_ = builderForValue.build(); + onChanged(); + } else { + weekBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Week as defined as Monday through Sunday, and represented by the date of
+     * Monday. Formatted as yyyy-MM-dd.
+     * 
+ * + * .google.protobuf.StringValue week = 24; + */ + public Builder mergeWeek(com.google.protobuf.StringValue value) { + if (weekBuilder_ == null) { + if (week_ != null) { + week_ = + com.google.protobuf.StringValue.newBuilder(week_).mergeFrom(value).buildPartial(); + } else { + week_ = value; + } + onChanged(); + } else { + weekBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Week as defined as Monday through Sunday, and represented by the date of
+     * Monday. Formatted as yyyy-MM-dd.
+     * 
+ * + * .google.protobuf.StringValue week = 24; + */ + public Builder clearWeek() { + if (weekBuilder_ == null) { + week_ = null; + onChanged(); + } else { + week_ = null; + weekBuilder_ = null; + } + + return this; + } + /** + *
+     * Week as defined as Monday through Sunday, and represented by the date of
+     * Monday. Formatted as yyyy-MM-dd.
+     * 
+ * + * .google.protobuf.StringValue week = 24; + */ + public com.google.protobuf.StringValue.Builder getWeekBuilder() { + + onChanged(); + return getWeekFieldBuilder().getBuilder(); + } + /** + *
+     * Week as defined as Monday through Sunday, and represented by the date of
+     * Monday. Formatted as yyyy-MM-dd.
+     * 
+ * + * .google.protobuf.StringValue week = 24; + */ + public com.google.protobuf.StringValueOrBuilder getWeekOrBuilder() { + if (weekBuilder_ != null) { + return weekBuilder_.getMessageOrBuilder(); + } else { + return week_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : week_; + } + } + /** + *
+     * Week as defined as Monday through Sunday, and represented by the date of
+     * Monday. Formatted as yyyy-MM-dd.
+     * 
+ * + * .google.protobuf.StringValue week = 24; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getWeekFieldBuilder() { + if (weekBuilder_ == null) { + weekBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getWeek(), + getParentForChildren(), + isClean()); + week_ = null; + } + return weekBuilder_; + } + + private com.google.protobuf.Int32Value year_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> yearBuilder_; + /** + *
+     * Year, formatted as yyyy.
+     * 
+ * + * .google.protobuf.Int32Value year = 25; + */ + public boolean hasYear() { + return yearBuilder_ != null || year_ != null; + } + /** + *
+     * Year, formatted as yyyy.
+     * 
+ * + * .google.protobuf.Int32Value year = 25; + */ + public com.google.protobuf.Int32Value getYear() { + if (yearBuilder_ == null) { + return year_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : year_; + } else { + return yearBuilder_.getMessage(); + } + } + /** + *
+     * Year, formatted as yyyy.
+     * 
+ * + * .google.protobuf.Int32Value year = 25; + */ + public Builder setYear(com.google.protobuf.Int32Value value) { + if (yearBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + year_ = value; + onChanged(); + } else { + yearBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Year, formatted as yyyy.
+     * 
+ * + * .google.protobuf.Int32Value year = 25; + */ + public Builder setYear( + com.google.protobuf.Int32Value.Builder builderForValue) { + if (yearBuilder_ == null) { + year_ = builderForValue.build(); + onChanged(); + } else { + yearBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Year, formatted as yyyy.
+     * 
+ * + * .google.protobuf.Int32Value year = 25; + */ + public Builder mergeYear(com.google.protobuf.Int32Value value) { + if (yearBuilder_ == null) { + if (year_ != null) { + year_ = + com.google.protobuf.Int32Value.newBuilder(year_).mergeFrom(value).buildPartial(); + } else { + year_ = value; + } + onChanged(); + } else { + yearBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Year, formatted as yyyy.
+     * 
+ * + * .google.protobuf.Int32Value year = 25; + */ + public Builder clearYear() { + if (yearBuilder_ == null) { + year_ = null; + onChanged(); + } else { + year_ = null; + yearBuilder_ = null; + } + + return this; + } + /** + *
+     * Year, formatted as yyyy.
+     * 
+ * + * .google.protobuf.Int32Value year = 25; + */ + public com.google.protobuf.Int32Value.Builder getYearBuilder() { + + onChanged(); + return getYearFieldBuilder().getBuilder(); + } + /** + *
+     * Year, formatted as yyyy.
+     * 
+ * + * .google.protobuf.Int32Value year = 25; + */ + public com.google.protobuf.Int32ValueOrBuilder getYearOrBuilder() { + if (yearBuilder_ != null) { + return yearBuilder_.getMessageOrBuilder(); + } else { + return year_ == null ? + com.google.protobuf.Int32Value.getDefaultInstance() : year_; + } + } + /** + *
+     * Year, formatted as yyyy.
+     * 
+ * + * .google.protobuf.Int32Value year = 25; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> + getYearFieldBuilder() { + if (yearBuilder_ == null) { + yearBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( + getYear(), + getParentForChildren(), + isClean()); + year_ = null; + } + return yearBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.common.Segments) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.common.Segments) + private static final com.google.ads.googleads.v0.common.Segments DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.common.Segments(); + } + + public static com.google.ads.googleads.v0.common.Segments getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Segments parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Segments(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.common.Segments getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/SegmentsOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/SegmentsOrBuilder.java new file mode 100644 index 0000000000..a52931774c --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/SegmentsOrBuilder.java @@ -0,0 +1,569 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/segments.proto + +package com.google.ads.googleads.v0.common; + +public interface SegmentsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.common.Segments) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Ad network type.
+   * 
+ * + * .google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType ad_network_type = 3; + */ + int getAdNetworkTypeValue(); + /** + *
+   * Ad network type.
+   * 
+ * + * .google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType ad_network_type = 3; + */ + com.google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType getAdNetworkType(); + + /** + *
+   * Conversion attribution event type.
+   * 
+ * + * .google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum.ConversionAttributionEventType conversion_attribution_event_type = 2; + */ + int getConversionAttributionEventTypeValue(); + /** + *
+   * Conversion attribution event type.
+   * 
+ * + * .google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum.ConversionAttributionEventType conversion_attribution_event_type = 2; + */ + com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum.ConversionAttributionEventType getConversionAttributionEventType(); + + /** + *
+   * Date to which metrics apply.
+   * yyyy-MM-dd format, e.g., 2018-04-17.
+   * 
+ * + * .google.protobuf.StringValue date = 4; + */ + boolean hasDate(); + /** + *
+   * Date to which metrics apply.
+   * yyyy-MM-dd format, e.g., 2018-04-17.
+   * 
+ * + * .google.protobuf.StringValue date = 4; + */ + com.google.protobuf.StringValue getDate(); + /** + *
+   * Date to which metrics apply.
+   * yyyy-MM-dd format, e.g., 2018-04-17.
+   * 
+ * + * .google.protobuf.StringValue date = 4; + */ + com.google.protobuf.StringValueOrBuilder getDateOrBuilder(); + + /** + *
+   * Day of the week, e.g., MONDAY.
+   * 
+ * + * .google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek day_of_week = 5; + */ + int getDayOfWeekValue(); + /** + *
+   * Day of the week, e.g., MONDAY.
+   * 
+ * + * .google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek day_of_week = 5; + */ + com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek getDayOfWeek(); + + /** + *
+   * Device to which metrics apply.
+   * 
+ * + * .google.ads.googleads.v0.enums.DeviceEnum.Device device = 1; + */ + int getDeviceValue(); + /** + *
+   * Device to which metrics apply.
+   * 
+ * + * .google.ads.googleads.v0.enums.DeviceEnum.Device device = 1; + */ + com.google.ads.googleads.v0.enums.DeviceEnum.Device getDevice(); + + /** + *
+   * Hotel booking window in days.
+   * 
+ * + * .google.protobuf.Int64Value hotel_booking_window_days = 6; + */ + boolean hasHotelBookingWindowDays(); + /** + *
+   * Hotel booking window in days.
+   * 
+ * + * .google.protobuf.Int64Value hotel_booking_window_days = 6; + */ + com.google.protobuf.Int64Value getHotelBookingWindowDays(); + /** + *
+   * Hotel booking window in days.
+   * 
+ * + * .google.protobuf.Int64Value hotel_booking_window_days = 6; + */ + com.google.protobuf.Int64ValueOrBuilder getHotelBookingWindowDaysOrBuilder(); + + /** + *
+   * Hotel center ID.
+   * 
+ * + * .google.protobuf.Int64Value hotel_center_id = 7; + */ + boolean hasHotelCenterId(); + /** + *
+   * Hotel center ID.
+   * 
+ * + * .google.protobuf.Int64Value hotel_center_id = 7; + */ + com.google.protobuf.Int64Value getHotelCenterId(); + /** + *
+   * Hotel center ID.
+   * 
+ * + * .google.protobuf.Int64Value hotel_center_id = 7; + */ + com.google.protobuf.Int64ValueOrBuilder getHotelCenterIdOrBuilder(); + + /** + *
+   * Hotel check-in date. Formatted as yyyy-MM-dd.
+   * 
+ * + * .google.protobuf.StringValue hotel_check_in_date = 8; + */ + boolean hasHotelCheckInDate(); + /** + *
+   * Hotel check-in date. Formatted as yyyy-MM-dd.
+   * 
+ * + * .google.protobuf.StringValue hotel_check_in_date = 8; + */ + com.google.protobuf.StringValue getHotelCheckInDate(); + /** + *
+   * Hotel check-in date. Formatted as yyyy-MM-dd.
+   * 
+ * + * .google.protobuf.StringValue hotel_check_in_date = 8; + */ + com.google.protobuf.StringValueOrBuilder getHotelCheckInDateOrBuilder(); + + /** + *
+   * Hotel check-in day of week.
+   * 
+ * + * .google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek hotel_check_in_day_of_week = 9; + */ + int getHotelCheckInDayOfWeekValue(); + /** + *
+   * Hotel check-in day of week.
+   * 
+ * + * .google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek hotel_check_in_day_of_week = 9; + */ + com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek getHotelCheckInDayOfWeek(); + + /** + *
+   * Hotel city.
+   * 
+ * + * .google.protobuf.StringValue hotel_city = 10; + */ + boolean hasHotelCity(); + /** + *
+   * Hotel city.
+   * 
+ * + * .google.protobuf.StringValue hotel_city = 10; + */ + com.google.protobuf.StringValue getHotelCity(); + /** + *
+   * Hotel city.
+   * 
+ * + * .google.protobuf.StringValue hotel_city = 10; + */ + com.google.protobuf.StringValueOrBuilder getHotelCityOrBuilder(); + + /** + *
+   * Hotel class.
+   * 
+ * + * .google.protobuf.Int32Value hotel_class = 11; + */ + boolean hasHotelClass(); + /** + *
+   * Hotel class.
+   * 
+ * + * .google.protobuf.Int32Value hotel_class = 11; + */ + com.google.protobuf.Int32Value getHotelClass(); + /** + *
+   * Hotel class.
+   * 
+ * + * .google.protobuf.Int32Value hotel_class = 11; + */ + com.google.protobuf.Int32ValueOrBuilder getHotelClassOrBuilder(); + + /** + *
+   * Hotel country.
+   * 
+ * + * .google.protobuf.StringValue hotel_country = 12; + */ + boolean hasHotelCountry(); + /** + *
+   * Hotel country.
+   * 
+ * + * .google.protobuf.StringValue hotel_country = 12; + */ + com.google.protobuf.StringValue getHotelCountry(); + /** + *
+   * Hotel country.
+   * 
+ * + * .google.protobuf.StringValue hotel_country = 12; + */ + com.google.protobuf.StringValueOrBuilder getHotelCountryOrBuilder(); + + /** + *
+   * Hotel date selection type.
+   * 
+ * + * .google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType hotel_date_selection_type = 13; + */ + int getHotelDateSelectionTypeValue(); + /** + *
+   * Hotel date selection type.
+   * 
+ * + * .google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType hotel_date_selection_type = 13; + */ + com.google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType getHotelDateSelectionType(); + + /** + *
+   * Hotel length of stay.
+   * 
+ * + * .google.protobuf.Int32Value hotel_length_of_stay = 14; + */ + boolean hasHotelLengthOfStay(); + /** + *
+   * Hotel length of stay.
+   * 
+ * + * .google.protobuf.Int32Value hotel_length_of_stay = 14; + */ + com.google.protobuf.Int32Value getHotelLengthOfStay(); + /** + *
+   * Hotel length of stay.
+   * 
+ * + * .google.protobuf.Int32Value hotel_length_of_stay = 14; + */ + com.google.protobuf.Int32ValueOrBuilder getHotelLengthOfStayOrBuilder(); + + /** + *
+   * Hotel state.
+   * 
+ * + * .google.protobuf.StringValue hotel_state = 15; + */ + boolean hasHotelState(); + /** + *
+   * Hotel state.
+   * 
+ * + * .google.protobuf.StringValue hotel_state = 15; + */ + com.google.protobuf.StringValue getHotelState(); + /** + *
+   * Hotel state.
+   * 
+ * + * .google.protobuf.StringValue hotel_state = 15; + */ + com.google.protobuf.StringValueOrBuilder getHotelStateOrBuilder(); + + /** + *
+   * Hour of day as a number between 0 and 23, inclusive.
+   * 
+ * + * .google.protobuf.Int32Value hour = 16; + */ + boolean hasHour(); + /** + *
+   * Hour of day as a number between 0 and 23, inclusive.
+   * 
+ * + * .google.protobuf.Int32Value hour = 16; + */ + com.google.protobuf.Int32Value getHour(); + /** + *
+   * Hour of day as a number between 0 and 23, inclusive.
+   * 
+ * + * .google.protobuf.Int32Value hour = 16; + */ + com.google.protobuf.Int32ValueOrBuilder getHourOrBuilder(); + + /** + *
+   * Month as represented by the date of the first day of a month. Formatted as
+   * yyyy-MM-dd.
+   * 
+ * + * .google.protobuf.StringValue month = 17; + */ + boolean hasMonth(); + /** + *
+   * Month as represented by the date of the first day of a month. Formatted as
+   * yyyy-MM-dd.
+   * 
+ * + * .google.protobuf.StringValue month = 17; + */ + com.google.protobuf.StringValue getMonth(); + /** + *
+   * Month as represented by the date of the first day of a month. Formatted as
+   * yyyy-MM-dd.
+   * 
+ * + * .google.protobuf.StringValue month = 17; + */ + com.google.protobuf.StringValueOrBuilder getMonthOrBuilder(); + + /** + *
+   * Month of the year, e.g., January.
+   * 
+ * + * .google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear month_of_year = 18; + */ + int getMonthOfYearValue(); + /** + *
+   * Month of the year, e.g., January.
+   * 
+ * + * .google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear month_of_year = 18; + */ + com.google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear getMonthOfYear(); + + /** + *
+   * Partner hotel ID.
+   * 
+ * + * .google.protobuf.StringValue partner_hotel_id = 19; + */ + boolean hasPartnerHotelId(); + /** + *
+   * Partner hotel ID.
+   * 
+ * + * .google.protobuf.StringValue partner_hotel_id = 19; + */ + com.google.protobuf.StringValue getPartnerHotelId(); + /** + *
+   * Partner hotel ID.
+   * 
+ * + * .google.protobuf.StringValue partner_hotel_id = 19; + */ + com.google.protobuf.StringValueOrBuilder getPartnerHotelIdOrBuilder(); + + /** + *
+   * Placeholder type. This is only used with feed item metrics.
+   * 
+ * + * .google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type = 20; + */ + int getPlaceholderTypeValue(); + /** + *
+   * Placeholder type. This is only used with feed item metrics.
+   * 
+ * + * .google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type = 20; + */ + com.google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType getPlaceholderType(); + + /** + *
+   * Quarter as represented by the date of the first day of a quarter.
+   * Uses the calendar year for quarters, e.g., the second quarter of 2018
+   * starts on 2018-04-01. Formatted as yyyy-MM-dd.
+   * 
+ * + * .google.protobuf.StringValue quarter = 21; + */ + boolean hasQuarter(); + /** + *
+   * Quarter as represented by the date of the first day of a quarter.
+   * Uses the calendar year for quarters, e.g., the second quarter of 2018
+   * starts on 2018-04-01. Formatted as yyyy-MM-dd.
+   * 
+ * + * .google.protobuf.StringValue quarter = 21; + */ + com.google.protobuf.StringValue getQuarter(); + /** + *
+   * Quarter as represented by the date of the first day of a quarter.
+   * Uses the calendar year for quarters, e.g., the second quarter of 2018
+   * starts on 2018-04-01. Formatted as yyyy-MM-dd.
+   * 
+ * + * .google.protobuf.StringValue quarter = 21; + */ + com.google.protobuf.StringValueOrBuilder getQuarterOrBuilder(); + + /** + *
+   * Match type of the keyword that triggered the ad, including variants.
+   * 
+ * + * .google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType search_term_match_type = 22; + */ + int getSearchTermMatchTypeValue(); + /** + *
+   * Match type of the keyword that triggered the ad, including variants.
+   * 
+ * + * .google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType search_term_match_type = 22; + */ + com.google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType getSearchTermMatchType(); + + /** + *
+   * Position of the ad.
+   * 
+ * + * .google.ads.googleads.v0.enums.SlotEnum.Slot slot = 23; + */ + int getSlotValue(); + /** + *
+   * Position of the ad.
+   * 
+ * + * .google.ads.googleads.v0.enums.SlotEnum.Slot slot = 23; + */ + com.google.ads.googleads.v0.enums.SlotEnum.Slot getSlot(); + + /** + *
+   * Week as defined as Monday through Sunday, and represented by the date of
+   * Monday. Formatted as yyyy-MM-dd.
+   * 
+ * + * .google.protobuf.StringValue week = 24; + */ + boolean hasWeek(); + /** + *
+   * Week as defined as Monday through Sunday, and represented by the date of
+   * Monday. Formatted as yyyy-MM-dd.
+   * 
+ * + * .google.protobuf.StringValue week = 24; + */ + com.google.protobuf.StringValue getWeek(); + /** + *
+   * Week as defined as Monday through Sunday, and represented by the date of
+   * Monday. Formatted as yyyy-MM-dd.
+   * 
+ * + * .google.protobuf.StringValue week = 24; + */ + com.google.protobuf.StringValueOrBuilder getWeekOrBuilder(); + + /** + *
+   * Year, formatted as yyyy.
+   * 
+ * + * .google.protobuf.Int32Value year = 25; + */ + boolean hasYear(); + /** + *
+   * Year, formatted as yyyy.
+   * 
+ * + * .google.protobuf.Int32Value year = 25; + */ + com.google.protobuf.Int32Value getYear(); + /** + *
+   * Year, formatted as yyyy.
+   * 
+ * + * .google.protobuf.Int32Value year = 25; + */ + com.google.protobuf.Int32ValueOrBuilder getYearOrBuilder(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/SegmentsProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/SegmentsProto.java new file mode 100644 index 0000000000..04a7e20c5e --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/SegmentsProto.java @@ -0,0 +1,137 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/segments.proto + +package com.google.ads.googleads.v0.common; + +public final class SegmentsProto { + private SegmentsProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_common_Segments_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_common_Segments_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n-google/ads/googleads/v0/common/segment" + + "s.proto\022\036google.ads.googleads.v0.common\032" + + "3google/ads/googleads/v0/enums/ad_networ" + + "k_type.proto\032Egoogle/ads/googleads/v0/en" + + "ums/conversion_attribution_event_type.pr" + + "oto\032/google/ads/googleads/v0/enums/day_o" + + "f_week.proto\032*google/ads/googleads/v0/en" + + "ums/device.proto\032=google/ads/googleads/v" + + "0/enums/hotel_date_selection_type.proto\032" + + "1google/ads/googleads/v0/enums/month_of_" + + "year.proto\0324google/ads/googleads/v0/enum" + + "s/placeholder_type.proto\032:google/ads/goo" + + "gleads/v0/enums/search_term_match_type.p" + + "roto\032(google/ads/googleads/v0/enums/slot" + + ".proto\032\036google/protobuf/wrappers.proto\"\244" + + "\r\n\010Segments\022W\n\017ad_network_type\030\003 \001(\0162>.g" + + "oogle.ads.googleads.v0.enums.AdNetworkTy" + + "peEnum.AdNetworkType\022\213\001\n!conversion_attr" + + "ibution_event_type\030\002 \001(\0162`.google.ads.go" + + "ogleads.v0.enums.ConversionAttributionEv" + + "entTypeEnum.ConversionAttributionEventTy" + + "pe\022*\n\004date\030\004 \001(\0132\034.google.protobuf.Strin" + + "gValue\022K\n\013day_of_week\030\005 \001(\01626.google.ads" + + ".googleads.v0.enums.DayOfWeekEnum.DayOfW" + + "eek\022@\n\006device\030\001 \001(\01620.google.ads.googlea" + + "ds.v0.enums.DeviceEnum.Device\022>\n\031hotel_b" + + "ooking_window_days\030\006 \001(\0132\033.google.protob" + + "uf.Int64Value\0224\n\017hotel_center_id\030\007 \001(\0132\033" + + ".google.protobuf.Int64Value\0229\n\023hotel_che" + + "ck_in_date\030\010 \001(\0132\034.google.protobuf.Strin" + + "gValue\022Z\n\032hotel_check_in_day_of_week\030\t \001" + + "(\01626.google.ads.googleads.v0.enums.DayOf" + + "WeekEnum.DayOfWeek\0220\n\nhotel_city\030\n \001(\0132\034" + + ".google.protobuf.StringValue\0220\n\013hotel_cl" + + "ass\030\013 \001(\0132\033.google.protobuf.Int32Value\0223" + + "\n\rhotel_country\030\014 \001(\0132\034.google.protobuf." + + "StringValue\022s\n\031hotel_date_selection_type" + + "\030\r \001(\0162P.google.ads.googleads.v0.enums.H" + + "otelDateSelectionTypeEnum.HotelDateSelec" + + "tionType\0229\n\024hotel_length_of_stay\030\016 \001(\0132\033" + + ".google.protobuf.Int32Value\0221\n\013hotel_sta" + + "te\030\017 \001(\0132\034.google.protobuf.StringValue\022)" + + "\n\004hour\030\020 \001(\0132\033.google.protobuf.Int32Valu" + + "e\022+\n\005month\030\021 \001(\0132\034.google.protobuf.Strin" + + "gValue\022Q\n\rmonth_of_year\030\022 \001(\0162:.google.a" + + "ds.googleads.v0.enums.MonthOfYearEnum.Mo" + + "nthOfYear\0226\n\020partner_hotel_id\030\023 \001(\0132\034.go" + + "ogle.protobuf.StringValue\022\\\n\020placeholder" + + "_type\030\024 \001(\0162B.google.ads.googleads.v0.en" + + "ums.PlaceholderTypeEnum.PlaceholderType\022" + + "-\n\007quarter\030\025 \001(\0132\034.google.protobuf.Strin" + + "gValue\022j\n\026search_term_match_type\030\026 \001(\0162J" + + ".google.ads.googleads.v0.enums.SearchTer" + + "mMatchTypeEnum.SearchTermMatchType\022:\n\004sl" + + "ot\030\027 \001(\0162,.google.ads.googleads.v0.enums" + + ".SlotEnum.Slot\022*\n\004week\030\030 \001(\0132\034.google.pr" + + "otobuf.StringValue\022)\n\004year\030\031 \001(\0132\033.googl" + + "e.protobuf.Int32ValueB\350\001\n\"com.google.ads" + + ".googleads.v0.commonB\rSegmentsProtoP\001ZDg" + + "oogle.golang.org/genproto/googleapis/ads" + + "/googleads/v0/common;common\242\002\003GAA\252\002\036Goog" + + "le.Ads.GoogleAds.V0.Common\312\002\036Google\\Ads\\" + + "GoogleAds\\V0\\Common\352\002\"Google::Ads::Googl" + + "eAds::V0::Commonb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.googleads.v0.enums.AdNetworkTypeProto.getDescriptor(), + com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeProto.getDescriptor(), + com.google.ads.googleads.v0.enums.DayOfWeekProto.getDescriptor(), + com.google.ads.googleads.v0.enums.DeviceProto.getDescriptor(), + com.google.ads.googleads.v0.enums.HotelDateSelectionTypeProto.getDescriptor(), + com.google.ads.googleads.v0.enums.MonthOfYearProto.getDescriptor(), + com.google.ads.googleads.v0.enums.PlaceholderTypeProto.getDescriptor(), + com.google.ads.googleads.v0.enums.SearchTermMatchTypeProto.getDescriptor(), + com.google.ads.googleads.v0.enums.SlotProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + }, assigner); + internal_static_google_ads_googleads_v0_common_Segments_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_googleads_v0_common_Segments_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_common_Segments_descriptor, + new java.lang.String[] { "AdNetworkType", "ConversionAttributionEventType", "Date", "DayOfWeek", "Device", "HotelBookingWindowDays", "HotelCenterId", "HotelCheckInDate", "HotelCheckInDayOfWeek", "HotelCity", "HotelClass", "HotelCountry", "HotelDateSelectionType", "HotelLengthOfStay", "HotelState", "Hour", "Month", "MonthOfYear", "PartnerHotelId", "PlaceholderType", "Quarter", "SearchTermMatchType", "Slot", "Week", "Year", }); + com.google.ads.googleads.v0.enums.AdNetworkTypeProto.getDescriptor(); + com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeProto.getDescriptor(); + com.google.ads.googleads.v0.enums.DayOfWeekProto.getDescriptor(); + com.google.ads.googleads.v0.enums.DeviceProto.getDescriptor(); + com.google.ads.googleads.v0.enums.HotelDateSelectionTypeProto.getDescriptor(); + com.google.ads.googleads.v0.enums.MonthOfYearProto.getDescriptor(); + com.google.ads.googleads.v0.enums.PlaceholderTypeProto.getDescriptor(); + com.google.ads.googleads.v0.enums.SearchTermMatchTypeProto.getDescriptor(); + com.google.ads.googleads.v0.enums.SlotProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/TagSnippetProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/TagSnippetProto.java index 29e42e15c4..989f4a4dd3 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/common/TagSnippetProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/TagSnippetProto.java @@ -41,12 +41,13 @@ public static void registerAllExtensions( "geFormatEnum.TrackingCodePageFormat\0225\n\017g" + "lobal_site_tag\030\003 \001(\0132\034.google.protobuf.S" + "tringValue\0223\n\revent_snippet\030\004 \001(\0132\034.goog" + - "le.protobuf.StringValueB\305\001\n\"com.google.a" + + "le.protobuf.StringValueB\352\001\n\"com.google.a" + "ds.googleads.v0.commonB\017TagSnippetProtoP" + "\001ZDgoogle.golang.org/genproto/googleapis" + "/ads/googleads/v0/common;common\242\002\003GAA\252\002\036" + "Google.Ads.GoogleAds.V0.Common\312\002\036Google\\" + - "Ads\\GoogleAds\\V0\\Commonb\006proto3" + "Ads\\GoogleAds\\V0\\Common\352\002\"Google::Ads::G" + + "oogleAds::V0::Commonb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/TargetCpm.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/TargetCpm.java new file mode 100644 index 0000000000..6c4c4773a6 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/TargetCpm.java @@ -0,0 +1,423 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/bidding.proto + +package com.google.ads.googleads.v0.common; + +/** + *
+ * Target CPM (cost per thousand impressions) is an automated bidding strategy
+ * that sets bids to optimize performance given the target CPM you set.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.TargetCpm} + */ +public final class TargetCpm extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.common.TargetCpm) + TargetCpmOrBuilder { +private static final long serialVersionUID = 0L; + // Use TargetCpm.newBuilder() to construct. + private TargetCpm(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TargetCpm() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TargetCpm( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.BiddingProto.internal_static_google_ads_googleads_v0_common_TargetCpm_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.BiddingProto.internal_static_google_ads_googleads_v0_common_TargetCpm_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.TargetCpm.class, com.google.ads.googleads.v0.common.TargetCpm.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.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.ads.googleads.v0.common.TargetCpm)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.common.TargetCpm other = (com.google.ads.googleads.v0.common.TargetCpm) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.common.TargetCpm parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.TargetCpm parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.TargetCpm parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.TargetCpm 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.ads.googleads.v0.common.TargetCpm parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.TargetCpm parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.TargetCpm parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.TargetCpm 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.ads.googleads.v0.common.TargetCpm parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.TargetCpm 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.ads.googleads.v0.common.TargetCpm parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.TargetCpm 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.ads.googleads.v0.common.TargetCpm 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; + } + /** + *
+   * Target CPM (cost per thousand impressions) is an automated bidding strategy
+   * that sets bids to optimize performance given the target CPM you set.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.TargetCpm} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.common.TargetCpm) + com.google.ads.googleads.v0.common.TargetCpmOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.BiddingProto.internal_static_google_ads_googleads_v0_common_TargetCpm_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.BiddingProto.internal_static_google_ads_googleads_v0_common_TargetCpm_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.TargetCpm.class, com.google.ads.googleads.v0.common.TargetCpm.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.common.TargetCpm.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.common.BiddingProto.internal_static_google_ads_googleads_v0_common_TargetCpm_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.TargetCpm getDefaultInstanceForType() { + return com.google.ads.googleads.v0.common.TargetCpm.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.TargetCpm build() { + com.google.ads.googleads.v0.common.TargetCpm result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.TargetCpm buildPartial() { + com.google.ads.googleads.v0.common.TargetCpm result = new com.google.ads.googleads.v0.common.TargetCpm(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.common.TargetCpm) { + return mergeFrom((com.google.ads.googleads.v0.common.TargetCpm)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.common.TargetCpm other) { + if (other == com.google.ads.googleads.v0.common.TargetCpm.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.common.TargetCpm parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.common.TargetCpm) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.common.TargetCpm) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.common.TargetCpm) + private static final com.google.ads.googleads.v0.common.TargetCpm DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.common.TargetCpm(); + } + + public static com.google.ads.googleads.v0.common.TargetCpm getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TargetCpm parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TargetCpm(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.common.TargetCpm getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/TargetCpmOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/TargetCpmOrBuilder.java new file mode 100644 index 0000000000..cbc44e1dc8 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/TargetCpmOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/bidding.proto + +package com.google.ads.googleads.v0.common; + +public interface TargetCpmOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.common.TargetCpm) + com.google.protobuf.MessageOrBuilder { +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/TargetRestriction.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/TargetRestriction.java new file mode 100644 index 0000000000..ece47731bb --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/TargetRestriction.java @@ -0,0 +1,836 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/targeting_setting.proto + +package com.google.ads.googleads.v0.common; + +/** + *
+ * The list of per-targeting-dimension targeting settings.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.TargetRestriction} + */ +public final class TargetRestriction extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.common.TargetRestriction) + TargetRestrictionOrBuilder { +private static final long serialVersionUID = 0L; + // Use TargetRestriction.newBuilder() to construct. + private TargetRestriction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TargetRestriction() { + targetingDimension_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TargetRestriction( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + targetingDimension_ = rawValue; + break; + } + case 18: { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (bidOnly_ != null) { + subBuilder = bidOnly_.toBuilder(); + } + bidOnly_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(bidOnly_); + bidOnly_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.TargetingSettingProto.internal_static_google_ads_googleads_v0_common_TargetRestriction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.TargetingSettingProto.internal_static_google_ads_googleads_v0_common_TargetRestriction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.TargetRestriction.class, com.google.ads.googleads.v0.common.TargetRestriction.Builder.class); + } + + public static final int TARGETING_DIMENSION_FIELD_NUMBER = 1; + private int targetingDimension_; + /** + *
+   * The targeting dimension that these settings apply to.
+   * 
+ * + * .google.ads.googleads.v0.enums.TargetingDimensionEnum.TargetingDimension targeting_dimension = 1; + */ + public int getTargetingDimensionValue() { + return targetingDimension_; + } + /** + *
+   * The targeting dimension that these settings apply to.
+   * 
+ * + * .google.ads.googleads.v0.enums.TargetingDimensionEnum.TargetingDimension targeting_dimension = 1; + */ + public com.google.ads.googleads.v0.enums.TargetingDimensionEnum.TargetingDimension getTargetingDimension() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.TargetingDimensionEnum.TargetingDimension result = com.google.ads.googleads.v0.enums.TargetingDimensionEnum.TargetingDimension.valueOf(targetingDimension_); + return result == null ? com.google.ads.googleads.v0.enums.TargetingDimensionEnum.TargetingDimension.UNRECOGNIZED : result; + } + + public static final int BID_ONLY_FIELD_NUMBER = 2; + private com.google.protobuf.BoolValue bidOnly_; + /** + *
+   * Indicates whether to restrict your ads to show only for the criteria you
+   * have selected for this targeting_dimension, or to target all values for
+   * this targeting_dimension and show ads based on your targeting in other
+   * TargetingDimensions. A value of 'true' means that these criteria will only
+   * apply bid modifiers, and not affect targeting. A value of 'false' means
+   * that these criteria will restrict targeting as well as applying bid
+   * modifiers.
+   * 
+ * + * .google.protobuf.BoolValue bid_only = 2; + */ + public boolean hasBidOnly() { + return bidOnly_ != null; + } + /** + *
+   * Indicates whether to restrict your ads to show only for the criteria you
+   * have selected for this targeting_dimension, or to target all values for
+   * this targeting_dimension and show ads based on your targeting in other
+   * TargetingDimensions. A value of 'true' means that these criteria will only
+   * apply bid modifiers, and not affect targeting. A value of 'false' means
+   * that these criteria will restrict targeting as well as applying bid
+   * modifiers.
+   * 
+ * + * .google.protobuf.BoolValue bid_only = 2; + */ + public com.google.protobuf.BoolValue getBidOnly() { + return bidOnly_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : bidOnly_; + } + /** + *
+   * Indicates whether to restrict your ads to show only for the criteria you
+   * have selected for this targeting_dimension, or to target all values for
+   * this targeting_dimension and show ads based on your targeting in other
+   * TargetingDimensions. A value of 'true' means that these criteria will only
+   * apply bid modifiers, and not affect targeting. A value of 'false' means
+   * that these criteria will restrict targeting as well as applying bid
+   * modifiers.
+   * 
+ * + * .google.protobuf.BoolValue bid_only = 2; + */ + public com.google.protobuf.BoolValueOrBuilder getBidOnlyOrBuilder() { + return getBidOnly(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (targetingDimension_ != com.google.ads.googleads.v0.enums.TargetingDimensionEnum.TargetingDimension.UNSPECIFIED.getNumber()) { + output.writeEnum(1, targetingDimension_); + } + if (bidOnly_ != null) { + output.writeMessage(2, getBidOnly()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (targetingDimension_ != com.google.ads.googleads.v0.enums.TargetingDimensionEnum.TargetingDimension.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, targetingDimension_); + } + if (bidOnly_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBidOnly()); + } + size += unknownFields.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.ads.googleads.v0.common.TargetRestriction)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.common.TargetRestriction other = (com.google.ads.googleads.v0.common.TargetRestriction) obj; + + boolean result = true; + result = result && targetingDimension_ == other.targetingDimension_; + result = result && (hasBidOnly() == other.hasBidOnly()); + if (hasBidOnly()) { + result = result && getBidOnly() + .equals(other.getBidOnly()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TARGETING_DIMENSION_FIELD_NUMBER; + hash = (53 * hash) + targetingDimension_; + if (hasBidOnly()) { + hash = (37 * hash) + BID_ONLY_FIELD_NUMBER; + hash = (53 * hash) + getBidOnly().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.common.TargetRestriction parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.TargetRestriction parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.TargetRestriction parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.TargetRestriction 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.ads.googleads.v0.common.TargetRestriction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.TargetRestriction parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.TargetRestriction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.TargetRestriction 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.ads.googleads.v0.common.TargetRestriction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.TargetRestriction 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.ads.googleads.v0.common.TargetRestriction parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.TargetRestriction 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.ads.googleads.v0.common.TargetRestriction 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; + } + /** + *
+   * The list of per-targeting-dimension targeting settings.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.TargetRestriction} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.common.TargetRestriction) + com.google.ads.googleads.v0.common.TargetRestrictionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.TargetingSettingProto.internal_static_google_ads_googleads_v0_common_TargetRestriction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.TargetingSettingProto.internal_static_google_ads_googleads_v0_common_TargetRestriction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.TargetRestriction.class, com.google.ads.googleads.v0.common.TargetRestriction.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.common.TargetRestriction.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + targetingDimension_ = 0; + + if (bidOnlyBuilder_ == null) { + bidOnly_ = null; + } else { + bidOnly_ = null; + bidOnlyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.common.TargetingSettingProto.internal_static_google_ads_googleads_v0_common_TargetRestriction_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.TargetRestriction getDefaultInstanceForType() { + return com.google.ads.googleads.v0.common.TargetRestriction.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.TargetRestriction build() { + com.google.ads.googleads.v0.common.TargetRestriction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.TargetRestriction buildPartial() { + com.google.ads.googleads.v0.common.TargetRestriction result = new com.google.ads.googleads.v0.common.TargetRestriction(this); + result.targetingDimension_ = targetingDimension_; + if (bidOnlyBuilder_ == null) { + result.bidOnly_ = bidOnly_; + } else { + result.bidOnly_ = bidOnlyBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.common.TargetRestriction) { + return mergeFrom((com.google.ads.googleads.v0.common.TargetRestriction)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.common.TargetRestriction other) { + if (other == com.google.ads.googleads.v0.common.TargetRestriction.getDefaultInstance()) return this; + if (other.targetingDimension_ != 0) { + setTargetingDimensionValue(other.getTargetingDimensionValue()); + } + if (other.hasBidOnly()) { + mergeBidOnly(other.getBidOnly()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.common.TargetRestriction parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.common.TargetRestriction) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int targetingDimension_ = 0; + /** + *
+     * The targeting dimension that these settings apply to.
+     * 
+ * + * .google.ads.googleads.v0.enums.TargetingDimensionEnum.TargetingDimension targeting_dimension = 1; + */ + public int getTargetingDimensionValue() { + return targetingDimension_; + } + /** + *
+     * The targeting dimension that these settings apply to.
+     * 
+ * + * .google.ads.googleads.v0.enums.TargetingDimensionEnum.TargetingDimension targeting_dimension = 1; + */ + public Builder setTargetingDimensionValue(int value) { + targetingDimension_ = value; + onChanged(); + return this; + } + /** + *
+     * The targeting dimension that these settings apply to.
+     * 
+ * + * .google.ads.googleads.v0.enums.TargetingDimensionEnum.TargetingDimension targeting_dimension = 1; + */ + public com.google.ads.googleads.v0.enums.TargetingDimensionEnum.TargetingDimension getTargetingDimension() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.TargetingDimensionEnum.TargetingDimension result = com.google.ads.googleads.v0.enums.TargetingDimensionEnum.TargetingDimension.valueOf(targetingDimension_); + return result == null ? com.google.ads.googleads.v0.enums.TargetingDimensionEnum.TargetingDimension.UNRECOGNIZED : result; + } + /** + *
+     * The targeting dimension that these settings apply to.
+     * 
+ * + * .google.ads.googleads.v0.enums.TargetingDimensionEnum.TargetingDimension targeting_dimension = 1; + */ + public Builder setTargetingDimension(com.google.ads.googleads.v0.enums.TargetingDimensionEnum.TargetingDimension value) { + if (value == null) { + throw new NullPointerException(); + } + + targetingDimension_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The targeting dimension that these settings apply to.
+     * 
+ * + * .google.ads.googleads.v0.enums.TargetingDimensionEnum.TargetingDimension targeting_dimension = 1; + */ + public Builder clearTargetingDimension() { + + targetingDimension_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.BoolValue bidOnly_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> bidOnlyBuilder_; + /** + *
+     * Indicates whether to restrict your ads to show only for the criteria you
+     * have selected for this targeting_dimension, or to target all values for
+     * this targeting_dimension and show ads based on your targeting in other
+     * TargetingDimensions. A value of 'true' means that these criteria will only
+     * apply bid modifiers, and not affect targeting. A value of 'false' means
+     * that these criteria will restrict targeting as well as applying bid
+     * modifiers.
+     * 
+ * + * .google.protobuf.BoolValue bid_only = 2; + */ + public boolean hasBidOnly() { + return bidOnlyBuilder_ != null || bidOnly_ != null; + } + /** + *
+     * Indicates whether to restrict your ads to show only for the criteria you
+     * have selected for this targeting_dimension, or to target all values for
+     * this targeting_dimension and show ads based on your targeting in other
+     * TargetingDimensions. A value of 'true' means that these criteria will only
+     * apply bid modifiers, and not affect targeting. A value of 'false' means
+     * that these criteria will restrict targeting as well as applying bid
+     * modifiers.
+     * 
+ * + * .google.protobuf.BoolValue bid_only = 2; + */ + public com.google.protobuf.BoolValue getBidOnly() { + if (bidOnlyBuilder_ == null) { + return bidOnly_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : bidOnly_; + } else { + return bidOnlyBuilder_.getMessage(); + } + } + /** + *
+     * Indicates whether to restrict your ads to show only for the criteria you
+     * have selected for this targeting_dimension, or to target all values for
+     * this targeting_dimension and show ads based on your targeting in other
+     * TargetingDimensions. A value of 'true' means that these criteria will only
+     * apply bid modifiers, and not affect targeting. A value of 'false' means
+     * that these criteria will restrict targeting as well as applying bid
+     * modifiers.
+     * 
+ * + * .google.protobuf.BoolValue bid_only = 2; + */ + public Builder setBidOnly(com.google.protobuf.BoolValue value) { + if (bidOnlyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + bidOnly_ = value; + onChanged(); + } else { + bidOnlyBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Indicates whether to restrict your ads to show only for the criteria you
+     * have selected for this targeting_dimension, or to target all values for
+     * this targeting_dimension and show ads based on your targeting in other
+     * TargetingDimensions. A value of 'true' means that these criteria will only
+     * apply bid modifiers, and not affect targeting. A value of 'false' means
+     * that these criteria will restrict targeting as well as applying bid
+     * modifiers.
+     * 
+ * + * .google.protobuf.BoolValue bid_only = 2; + */ + public Builder setBidOnly( + com.google.protobuf.BoolValue.Builder builderForValue) { + if (bidOnlyBuilder_ == null) { + bidOnly_ = builderForValue.build(); + onChanged(); + } else { + bidOnlyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Indicates whether to restrict your ads to show only for the criteria you
+     * have selected for this targeting_dimension, or to target all values for
+     * this targeting_dimension and show ads based on your targeting in other
+     * TargetingDimensions. A value of 'true' means that these criteria will only
+     * apply bid modifiers, and not affect targeting. A value of 'false' means
+     * that these criteria will restrict targeting as well as applying bid
+     * modifiers.
+     * 
+ * + * .google.protobuf.BoolValue bid_only = 2; + */ + public Builder mergeBidOnly(com.google.protobuf.BoolValue value) { + if (bidOnlyBuilder_ == null) { + if (bidOnly_ != null) { + bidOnly_ = + com.google.protobuf.BoolValue.newBuilder(bidOnly_).mergeFrom(value).buildPartial(); + } else { + bidOnly_ = value; + } + onChanged(); + } else { + bidOnlyBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Indicates whether to restrict your ads to show only for the criteria you
+     * have selected for this targeting_dimension, or to target all values for
+     * this targeting_dimension and show ads based on your targeting in other
+     * TargetingDimensions. A value of 'true' means that these criteria will only
+     * apply bid modifiers, and not affect targeting. A value of 'false' means
+     * that these criteria will restrict targeting as well as applying bid
+     * modifiers.
+     * 
+ * + * .google.protobuf.BoolValue bid_only = 2; + */ + public Builder clearBidOnly() { + if (bidOnlyBuilder_ == null) { + bidOnly_ = null; + onChanged(); + } else { + bidOnly_ = null; + bidOnlyBuilder_ = null; + } + + return this; + } + /** + *
+     * Indicates whether to restrict your ads to show only for the criteria you
+     * have selected for this targeting_dimension, or to target all values for
+     * this targeting_dimension and show ads based on your targeting in other
+     * TargetingDimensions. A value of 'true' means that these criteria will only
+     * apply bid modifiers, and not affect targeting. A value of 'false' means
+     * that these criteria will restrict targeting as well as applying bid
+     * modifiers.
+     * 
+ * + * .google.protobuf.BoolValue bid_only = 2; + */ + public com.google.protobuf.BoolValue.Builder getBidOnlyBuilder() { + + onChanged(); + return getBidOnlyFieldBuilder().getBuilder(); + } + /** + *
+     * Indicates whether to restrict your ads to show only for the criteria you
+     * have selected for this targeting_dimension, or to target all values for
+     * this targeting_dimension and show ads based on your targeting in other
+     * TargetingDimensions. A value of 'true' means that these criteria will only
+     * apply bid modifiers, and not affect targeting. A value of 'false' means
+     * that these criteria will restrict targeting as well as applying bid
+     * modifiers.
+     * 
+ * + * .google.protobuf.BoolValue bid_only = 2; + */ + public com.google.protobuf.BoolValueOrBuilder getBidOnlyOrBuilder() { + if (bidOnlyBuilder_ != null) { + return bidOnlyBuilder_.getMessageOrBuilder(); + } else { + return bidOnly_ == null ? + com.google.protobuf.BoolValue.getDefaultInstance() : bidOnly_; + } + } + /** + *
+     * Indicates whether to restrict your ads to show only for the criteria you
+     * have selected for this targeting_dimension, or to target all values for
+     * this targeting_dimension and show ads based on your targeting in other
+     * TargetingDimensions. A value of 'true' means that these criteria will only
+     * apply bid modifiers, and not affect targeting. A value of 'false' means
+     * that these criteria will restrict targeting as well as applying bid
+     * modifiers.
+     * 
+ * + * .google.protobuf.BoolValue bid_only = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> + getBidOnlyFieldBuilder() { + if (bidOnlyBuilder_ == null) { + bidOnlyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( + getBidOnly(), + getParentForChildren(), + isClean()); + bidOnly_ = null; + } + return bidOnlyBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.common.TargetRestriction) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.common.TargetRestriction) + private static final com.google.ads.googleads.v0.common.TargetRestriction DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.common.TargetRestriction(); + } + + public static com.google.ads.googleads.v0.common.TargetRestriction getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TargetRestriction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TargetRestriction(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.common.TargetRestriction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/TargetRestrictionOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/TargetRestrictionOrBuilder.java new file mode 100644 index 0000000000..0a474c6979 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/TargetRestrictionOrBuilder.java @@ -0,0 +1,69 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/targeting_setting.proto + +package com.google.ads.googleads.v0.common; + +public interface TargetRestrictionOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.common.TargetRestriction) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The targeting dimension that these settings apply to.
+   * 
+ * + * .google.ads.googleads.v0.enums.TargetingDimensionEnum.TargetingDimension targeting_dimension = 1; + */ + int getTargetingDimensionValue(); + /** + *
+   * The targeting dimension that these settings apply to.
+   * 
+ * + * .google.ads.googleads.v0.enums.TargetingDimensionEnum.TargetingDimension targeting_dimension = 1; + */ + com.google.ads.googleads.v0.enums.TargetingDimensionEnum.TargetingDimension getTargetingDimension(); + + /** + *
+   * Indicates whether to restrict your ads to show only for the criteria you
+   * have selected for this targeting_dimension, or to target all values for
+   * this targeting_dimension and show ads based on your targeting in other
+   * TargetingDimensions. A value of 'true' means that these criteria will only
+   * apply bid modifiers, and not affect targeting. A value of 'false' means
+   * that these criteria will restrict targeting as well as applying bid
+   * modifiers.
+   * 
+ * + * .google.protobuf.BoolValue bid_only = 2; + */ + boolean hasBidOnly(); + /** + *
+   * Indicates whether to restrict your ads to show only for the criteria you
+   * have selected for this targeting_dimension, or to target all values for
+   * this targeting_dimension and show ads based on your targeting in other
+   * TargetingDimensions. A value of 'true' means that these criteria will only
+   * apply bid modifiers, and not affect targeting. A value of 'false' means
+   * that these criteria will restrict targeting as well as applying bid
+   * modifiers.
+   * 
+ * + * .google.protobuf.BoolValue bid_only = 2; + */ + com.google.protobuf.BoolValue getBidOnly(); + /** + *
+   * Indicates whether to restrict your ads to show only for the criteria you
+   * have selected for this targeting_dimension, or to target all values for
+   * this targeting_dimension and show ads based on your targeting in other
+   * TargetingDimensions. A value of 'true' means that these criteria will only
+   * apply bid modifiers, and not affect targeting. A value of 'false' means
+   * that these criteria will restrict targeting as well as applying bid
+   * modifiers.
+   * 
+ * + * .google.protobuf.BoolValue bid_only = 2; + */ + com.google.protobuf.BoolValueOrBuilder getBidOnlyOrBuilder(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/TargetingSetting.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/TargetingSetting.java new file mode 100644 index 0000000000..db358fa8ce --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/TargetingSetting.java @@ -0,0 +1,886 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/targeting_setting.proto + +package com.google.ads.googleads.v0.common; + +/** + *
+ * Settings for the
+ * <a href="https://support.google.com/google-ads/answer/7365594">
+ * targeting related features</a>, at Campaign and AdGroup level.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.TargetingSetting} + */ +public final class TargetingSetting extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.common.TargetingSetting) + TargetingSettingOrBuilder { +private static final long serialVersionUID = 0L; + // Use TargetingSetting.newBuilder() to construct. + private TargetingSetting(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TargetingSetting() { + targetRestrictions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TargetingSetting( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + targetRestrictions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + targetRestrictions_.add( + input.readMessage(com.google.ads.googleads.v0.common.TargetRestriction.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + targetRestrictions_ = java.util.Collections.unmodifiableList(targetRestrictions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.TargetingSettingProto.internal_static_google_ads_googleads_v0_common_TargetingSetting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.TargetingSettingProto.internal_static_google_ads_googleads_v0_common_TargetingSetting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.TargetingSetting.class, com.google.ads.googleads.v0.common.TargetingSetting.Builder.class); + } + + public static final int TARGET_RESTRICTIONS_FIELD_NUMBER = 1; + private java.util.List targetRestrictions_; + /** + *
+   * The per-targeting-dimension setting to restrict the reach of your campaign
+   * or ad group.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.TargetRestriction target_restrictions = 1; + */ + public java.util.List getTargetRestrictionsList() { + return targetRestrictions_; + } + /** + *
+   * The per-targeting-dimension setting to restrict the reach of your campaign
+   * or ad group.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.TargetRestriction target_restrictions = 1; + */ + public java.util.List + getTargetRestrictionsOrBuilderList() { + return targetRestrictions_; + } + /** + *
+   * The per-targeting-dimension setting to restrict the reach of your campaign
+   * or ad group.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.TargetRestriction target_restrictions = 1; + */ + public int getTargetRestrictionsCount() { + return targetRestrictions_.size(); + } + /** + *
+   * The per-targeting-dimension setting to restrict the reach of your campaign
+   * or ad group.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.TargetRestriction target_restrictions = 1; + */ + public com.google.ads.googleads.v0.common.TargetRestriction getTargetRestrictions(int index) { + return targetRestrictions_.get(index); + } + /** + *
+   * The per-targeting-dimension setting to restrict the reach of your campaign
+   * or ad group.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.TargetRestriction target_restrictions = 1; + */ + public com.google.ads.googleads.v0.common.TargetRestrictionOrBuilder getTargetRestrictionsOrBuilder( + int index) { + return targetRestrictions_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < targetRestrictions_.size(); i++) { + output.writeMessage(1, targetRestrictions_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < targetRestrictions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, targetRestrictions_.get(i)); + } + size += unknownFields.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.ads.googleads.v0.common.TargetingSetting)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.common.TargetingSetting other = (com.google.ads.googleads.v0.common.TargetingSetting) obj; + + boolean result = true; + result = result && getTargetRestrictionsList() + .equals(other.getTargetRestrictionsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTargetRestrictionsCount() > 0) { + hash = (37 * hash) + TARGET_RESTRICTIONS_FIELD_NUMBER; + hash = (53 * hash) + getTargetRestrictionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.common.TargetingSetting parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.TargetingSetting parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.TargetingSetting parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.TargetingSetting 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.ads.googleads.v0.common.TargetingSetting parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.TargetingSetting parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.TargetingSetting parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.TargetingSetting 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.ads.googleads.v0.common.TargetingSetting parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.TargetingSetting 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.ads.googleads.v0.common.TargetingSetting parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.TargetingSetting 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.ads.googleads.v0.common.TargetingSetting 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; + } + /** + *
+   * Settings for the
+   * <a href="https://support.google.com/google-ads/answer/7365594">
+   * targeting related features</a>, at Campaign and AdGroup level.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.TargetingSetting} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.common.TargetingSetting) + com.google.ads.googleads.v0.common.TargetingSettingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.TargetingSettingProto.internal_static_google_ads_googleads_v0_common_TargetingSetting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.TargetingSettingProto.internal_static_google_ads_googleads_v0_common_TargetingSetting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.TargetingSetting.class, com.google.ads.googleads.v0.common.TargetingSetting.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.common.TargetingSetting.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getTargetRestrictionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (targetRestrictionsBuilder_ == null) { + targetRestrictions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + targetRestrictionsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.common.TargetingSettingProto.internal_static_google_ads_googleads_v0_common_TargetingSetting_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.TargetingSetting getDefaultInstanceForType() { + return com.google.ads.googleads.v0.common.TargetingSetting.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.TargetingSetting build() { + com.google.ads.googleads.v0.common.TargetingSetting result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.TargetingSetting buildPartial() { + com.google.ads.googleads.v0.common.TargetingSetting result = new com.google.ads.googleads.v0.common.TargetingSetting(this); + int from_bitField0_ = bitField0_; + if (targetRestrictionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + targetRestrictions_ = java.util.Collections.unmodifiableList(targetRestrictions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.targetRestrictions_ = targetRestrictions_; + } else { + result.targetRestrictions_ = targetRestrictionsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.common.TargetingSetting) { + return mergeFrom((com.google.ads.googleads.v0.common.TargetingSetting)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.common.TargetingSetting other) { + if (other == com.google.ads.googleads.v0.common.TargetingSetting.getDefaultInstance()) return this; + if (targetRestrictionsBuilder_ == null) { + if (!other.targetRestrictions_.isEmpty()) { + if (targetRestrictions_.isEmpty()) { + targetRestrictions_ = other.targetRestrictions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTargetRestrictionsIsMutable(); + targetRestrictions_.addAll(other.targetRestrictions_); + } + onChanged(); + } + } else { + if (!other.targetRestrictions_.isEmpty()) { + if (targetRestrictionsBuilder_.isEmpty()) { + targetRestrictionsBuilder_.dispose(); + targetRestrictionsBuilder_ = null; + targetRestrictions_ = other.targetRestrictions_; + bitField0_ = (bitField0_ & ~0x00000001); + targetRestrictionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTargetRestrictionsFieldBuilder() : null; + } else { + targetRestrictionsBuilder_.addAllMessages(other.targetRestrictions_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.common.TargetingSetting parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.common.TargetingSetting) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List targetRestrictions_ = + java.util.Collections.emptyList(); + private void ensureTargetRestrictionsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + targetRestrictions_ = new java.util.ArrayList(targetRestrictions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.common.TargetRestriction, com.google.ads.googleads.v0.common.TargetRestriction.Builder, com.google.ads.googleads.v0.common.TargetRestrictionOrBuilder> targetRestrictionsBuilder_; + + /** + *
+     * The per-targeting-dimension setting to restrict the reach of your campaign
+     * or ad group.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.TargetRestriction target_restrictions = 1; + */ + public java.util.List getTargetRestrictionsList() { + if (targetRestrictionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(targetRestrictions_); + } else { + return targetRestrictionsBuilder_.getMessageList(); + } + } + /** + *
+     * The per-targeting-dimension setting to restrict the reach of your campaign
+     * or ad group.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.TargetRestriction target_restrictions = 1; + */ + public int getTargetRestrictionsCount() { + if (targetRestrictionsBuilder_ == null) { + return targetRestrictions_.size(); + } else { + return targetRestrictionsBuilder_.getCount(); + } + } + /** + *
+     * The per-targeting-dimension setting to restrict the reach of your campaign
+     * or ad group.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.TargetRestriction target_restrictions = 1; + */ + public com.google.ads.googleads.v0.common.TargetRestriction getTargetRestrictions(int index) { + if (targetRestrictionsBuilder_ == null) { + return targetRestrictions_.get(index); + } else { + return targetRestrictionsBuilder_.getMessage(index); + } + } + /** + *
+     * The per-targeting-dimension setting to restrict the reach of your campaign
+     * or ad group.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.TargetRestriction target_restrictions = 1; + */ + public Builder setTargetRestrictions( + int index, com.google.ads.googleads.v0.common.TargetRestriction value) { + if (targetRestrictionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetRestrictionsIsMutable(); + targetRestrictions_.set(index, value); + onChanged(); + } else { + targetRestrictionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The per-targeting-dimension setting to restrict the reach of your campaign
+     * or ad group.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.TargetRestriction target_restrictions = 1; + */ + public Builder setTargetRestrictions( + int index, com.google.ads.googleads.v0.common.TargetRestriction.Builder builderForValue) { + if (targetRestrictionsBuilder_ == null) { + ensureTargetRestrictionsIsMutable(); + targetRestrictions_.set(index, builderForValue.build()); + onChanged(); + } else { + targetRestrictionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The per-targeting-dimension setting to restrict the reach of your campaign
+     * or ad group.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.TargetRestriction target_restrictions = 1; + */ + public Builder addTargetRestrictions(com.google.ads.googleads.v0.common.TargetRestriction value) { + if (targetRestrictionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetRestrictionsIsMutable(); + targetRestrictions_.add(value); + onChanged(); + } else { + targetRestrictionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The per-targeting-dimension setting to restrict the reach of your campaign
+     * or ad group.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.TargetRestriction target_restrictions = 1; + */ + public Builder addTargetRestrictions( + int index, com.google.ads.googleads.v0.common.TargetRestriction value) { + if (targetRestrictionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetRestrictionsIsMutable(); + targetRestrictions_.add(index, value); + onChanged(); + } else { + targetRestrictionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The per-targeting-dimension setting to restrict the reach of your campaign
+     * or ad group.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.TargetRestriction target_restrictions = 1; + */ + public Builder addTargetRestrictions( + com.google.ads.googleads.v0.common.TargetRestriction.Builder builderForValue) { + if (targetRestrictionsBuilder_ == null) { + ensureTargetRestrictionsIsMutable(); + targetRestrictions_.add(builderForValue.build()); + onChanged(); + } else { + targetRestrictionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The per-targeting-dimension setting to restrict the reach of your campaign
+     * or ad group.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.TargetRestriction target_restrictions = 1; + */ + public Builder addTargetRestrictions( + int index, com.google.ads.googleads.v0.common.TargetRestriction.Builder builderForValue) { + if (targetRestrictionsBuilder_ == null) { + ensureTargetRestrictionsIsMutable(); + targetRestrictions_.add(index, builderForValue.build()); + onChanged(); + } else { + targetRestrictionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The per-targeting-dimension setting to restrict the reach of your campaign
+     * or ad group.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.TargetRestriction target_restrictions = 1; + */ + public Builder addAllTargetRestrictions( + java.lang.Iterable values) { + if (targetRestrictionsBuilder_ == null) { + ensureTargetRestrictionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, targetRestrictions_); + onChanged(); + } else { + targetRestrictionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The per-targeting-dimension setting to restrict the reach of your campaign
+     * or ad group.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.TargetRestriction target_restrictions = 1; + */ + public Builder clearTargetRestrictions() { + if (targetRestrictionsBuilder_ == null) { + targetRestrictions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + targetRestrictionsBuilder_.clear(); + } + return this; + } + /** + *
+     * The per-targeting-dimension setting to restrict the reach of your campaign
+     * or ad group.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.TargetRestriction target_restrictions = 1; + */ + public Builder removeTargetRestrictions(int index) { + if (targetRestrictionsBuilder_ == null) { + ensureTargetRestrictionsIsMutable(); + targetRestrictions_.remove(index); + onChanged(); + } else { + targetRestrictionsBuilder_.remove(index); + } + return this; + } + /** + *
+     * The per-targeting-dimension setting to restrict the reach of your campaign
+     * or ad group.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.TargetRestriction target_restrictions = 1; + */ + public com.google.ads.googleads.v0.common.TargetRestriction.Builder getTargetRestrictionsBuilder( + int index) { + return getTargetRestrictionsFieldBuilder().getBuilder(index); + } + /** + *
+     * The per-targeting-dimension setting to restrict the reach of your campaign
+     * or ad group.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.TargetRestriction target_restrictions = 1; + */ + public com.google.ads.googleads.v0.common.TargetRestrictionOrBuilder getTargetRestrictionsOrBuilder( + int index) { + if (targetRestrictionsBuilder_ == null) { + return targetRestrictions_.get(index); } else { + return targetRestrictionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The per-targeting-dimension setting to restrict the reach of your campaign
+     * or ad group.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.TargetRestriction target_restrictions = 1; + */ + public java.util.List + getTargetRestrictionsOrBuilderList() { + if (targetRestrictionsBuilder_ != null) { + return targetRestrictionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(targetRestrictions_); + } + } + /** + *
+     * The per-targeting-dimension setting to restrict the reach of your campaign
+     * or ad group.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.TargetRestriction target_restrictions = 1; + */ + public com.google.ads.googleads.v0.common.TargetRestriction.Builder addTargetRestrictionsBuilder() { + return getTargetRestrictionsFieldBuilder().addBuilder( + com.google.ads.googleads.v0.common.TargetRestriction.getDefaultInstance()); + } + /** + *
+     * The per-targeting-dimension setting to restrict the reach of your campaign
+     * or ad group.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.TargetRestriction target_restrictions = 1; + */ + public com.google.ads.googleads.v0.common.TargetRestriction.Builder addTargetRestrictionsBuilder( + int index) { + return getTargetRestrictionsFieldBuilder().addBuilder( + index, com.google.ads.googleads.v0.common.TargetRestriction.getDefaultInstance()); + } + /** + *
+     * The per-targeting-dimension setting to restrict the reach of your campaign
+     * or ad group.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.TargetRestriction target_restrictions = 1; + */ + public java.util.List + getTargetRestrictionsBuilderList() { + return getTargetRestrictionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.common.TargetRestriction, com.google.ads.googleads.v0.common.TargetRestriction.Builder, com.google.ads.googleads.v0.common.TargetRestrictionOrBuilder> + getTargetRestrictionsFieldBuilder() { + if (targetRestrictionsBuilder_ == null) { + targetRestrictionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.common.TargetRestriction, com.google.ads.googleads.v0.common.TargetRestriction.Builder, com.google.ads.googleads.v0.common.TargetRestrictionOrBuilder>( + targetRestrictions_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + targetRestrictions_ = null; + } + return targetRestrictionsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.common.TargetingSetting) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.common.TargetingSetting) + private static final com.google.ads.googleads.v0.common.TargetingSetting DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.common.TargetingSetting(); + } + + public static com.google.ads.googleads.v0.common.TargetingSetting getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TargetingSetting parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TargetingSetting(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.common.TargetingSetting getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/TargetingSettingOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/TargetingSettingOrBuilder.java new file mode 100644 index 0000000000..652fdba2e0 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/TargetingSettingOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/targeting_setting.proto + +package com.google.ads.googleads.v0.common; + +public interface TargetingSettingOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.common.TargetingSetting) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The per-targeting-dimension setting to restrict the reach of your campaign
+   * or ad group.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.TargetRestriction target_restrictions = 1; + */ + java.util.List + getTargetRestrictionsList(); + /** + *
+   * The per-targeting-dimension setting to restrict the reach of your campaign
+   * or ad group.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.TargetRestriction target_restrictions = 1; + */ + com.google.ads.googleads.v0.common.TargetRestriction getTargetRestrictions(int index); + /** + *
+   * The per-targeting-dimension setting to restrict the reach of your campaign
+   * or ad group.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.TargetRestriction target_restrictions = 1; + */ + int getTargetRestrictionsCount(); + /** + *
+   * The per-targeting-dimension setting to restrict the reach of your campaign
+   * or ad group.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.TargetRestriction target_restrictions = 1; + */ + java.util.List + getTargetRestrictionsOrBuilderList(); + /** + *
+   * The per-targeting-dimension setting to restrict the reach of your campaign
+   * or ad group.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.TargetRestriction target_restrictions = 1; + */ + com.google.ads.googleads.v0.common.TargetRestrictionOrBuilder getTargetRestrictionsOrBuilder( + int index); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/TargetingSettingProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/TargetingSettingProto.java new file mode 100644 index 0000000000..02c1510008 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/TargetingSettingProto.java @@ -0,0 +1,86 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/targeting_setting.proto + +package com.google.ads.googleads.v0.common; + +public final class TargetingSettingProto { + private TargetingSettingProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_common_TargetingSetting_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_common_TargetingSetting_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_common_TargetRestriction_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_common_TargetRestriction_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n6google/ads/googleads/v0/common/targeti" + + "ng_setting.proto\022\036google.ads.googleads.v" + + "0.common\0327google/ads/googleads/v0/enums/" + + "targeting_dimension.proto\032\036google/protob" + + "uf/wrappers.proto\"b\n\020TargetingSetting\022N\n" + + "\023target_restrictions\030\001 \003(\01321.google.ads." + + "googleads.v0.common.TargetRestriction\"\250\001" + + "\n\021TargetRestriction\022e\n\023targeting_dimensi" + + "on\030\001 \001(\0162H.google.ads.googleads.v0.enums" + + ".TargetingDimensionEnum.TargetingDimensi" + + "on\022,\n\010bid_only\030\002 \001(\0132\032.google.protobuf.B" + + "oolValueB\360\001\n\"com.google.ads.googleads.v0" + + ".commonB\025TargetingSettingProtoP\001ZDgoogle" + + ".golang.org/genproto/googleapis/ads/goog" + + "leads/v0/common;common\242\002\003GAA\252\002\036Google.Ad" + + "s.GoogleAds.V0.Common\312\002\036Google\\Ads\\Googl" + + "eAds\\V0\\Common\352\002\"Google::Ads::GoogleAds:" + + ":V0::Commonb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.googleads.v0.enums.TargetingDimensionProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + }, assigner); + internal_static_google_ads_googleads_v0_common_TargetingSetting_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_googleads_v0_common_TargetingSetting_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_common_TargetingSetting_descriptor, + new java.lang.String[] { "TargetRestrictions", }); + internal_static_google_ads_googleads_v0_common_TargetRestriction_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_googleads_v0_common_TargetRestriction_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_common_TargetRestriction_descriptor, + new java.lang.String[] { "TargetingDimension", "BidOnly", }); + com.google.ads.googleads.v0.enums.TargetingDimensionProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListActionInfo.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListActionInfo.java new file mode 100644 index 0000000000..b4c37b77a4 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListActionInfo.java @@ -0,0 +1,994 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/user_lists.proto + +package com.google.ads.googleads.v0.common; + +/** + *
+ * Represents an action type used for building remarketing user lists.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.UserListActionInfo} + */ +public final class UserListActionInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.common.UserListActionInfo) + UserListActionInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use UserListActionInfo.newBuilder() to construct. + private UserListActionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UserListActionInfo() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserListActionInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (userListActionCase_ == 1) { + subBuilder = ((com.google.protobuf.StringValue) userListAction_).toBuilder(); + } + userListAction_ = + input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.protobuf.StringValue) userListAction_); + userListAction_ = subBuilder.buildPartial(); + } + userListActionCase_ = 1; + break; + } + case 18: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (userListActionCase_ == 2) { + subBuilder = ((com.google.protobuf.StringValue) userListAction_).toBuilder(); + } + userListAction_ = + input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.protobuf.StringValue) userListAction_); + userListAction_ = subBuilder.buildPartial(); + } + userListActionCase_ = 2; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListActionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListActionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.UserListActionInfo.class, com.google.ads.googleads.v0.common.UserListActionInfo.Builder.class); + } + + private int userListActionCase_ = 0; + private java.lang.Object userListAction_; + public enum UserListActionCase + implements com.google.protobuf.Internal.EnumLite { + CONVERSION_ACTION(1), + REMARKETING_ACTION(2), + USERLISTACTION_NOT_SET(0); + private final int value; + private UserListActionCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static UserListActionCase valueOf(int value) { + return forNumber(value); + } + + public static UserListActionCase forNumber(int value) { + switch (value) { + case 1: return CONVERSION_ACTION; + case 2: return REMARKETING_ACTION; + case 0: return USERLISTACTION_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public UserListActionCase + getUserListActionCase() { + return UserListActionCase.forNumber( + userListActionCase_); + } + + public static final int CONVERSION_ACTION_FIELD_NUMBER = 1; + /** + *
+   * A conversion action that's not generated from remarketing.
+   * 
+ * + * .google.protobuf.StringValue conversion_action = 1; + */ + public boolean hasConversionAction() { + return userListActionCase_ == 1; + } + /** + *
+   * A conversion action that's not generated from remarketing.
+   * 
+ * + * .google.protobuf.StringValue conversion_action = 1; + */ + public com.google.protobuf.StringValue getConversionAction() { + if (userListActionCase_ == 1) { + return (com.google.protobuf.StringValue) userListAction_; + } + return com.google.protobuf.StringValue.getDefaultInstance(); + } + /** + *
+   * A conversion action that's not generated from remarketing.
+   * 
+ * + * .google.protobuf.StringValue conversion_action = 1; + */ + public com.google.protobuf.StringValueOrBuilder getConversionActionOrBuilder() { + if (userListActionCase_ == 1) { + return (com.google.protobuf.StringValue) userListAction_; + } + return com.google.protobuf.StringValue.getDefaultInstance(); + } + + public static final int REMARKETING_ACTION_FIELD_NUMBER = 2; + /** + *
+   * A remarketing action.
+   * 
+ * + * .google.protobuf.StringValue remarketing_action = 2; + */ + public boolean hasRemarketingAction() { + return userListActionCase_ == 2; + } + /** + *
+   * A remarketing action.
+   * 
+ * + * .google.protobuf.StringValue remarketing_action = 2; + */ + public com.google.protobuf.StringValue getRemarketingAction() { + if (userListActionCase_ == 2) { + return (com.google.protobuf.StringValue) userListAction_; + } + return com.google.protobuf.StringValue.getDefaultInstance(); + } + /** + *
+   * A remarketing action.
+   * 
+ * + * .google.protobuf.StringValue remarketing_action = 2; + */ + public com.google.protobuf.StringValueOrBuilder getRemarketingActionOrBuilder() { + if (userListActionCase_ == 2) { + return (com.google.protobuf.StringValue) userListAction_; + } + return com.google.protobuf.StringValue.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (userListActionCase_ == 1) { + output.writeMessage(1, (com.google.protobuf.StringValue) userListAction_); + } + if (userListActionCase_ == 2) { + output.writeMessage(2, (com.google.protobuf.StringValue) userListAction_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (userListActionCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.protobuf.StringValue) userListAction_); + } + if (userListActionCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.protobuf.StringValue) userListAction_); + } + size += unknownFields.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.ads.googleads.v0.common.UserListActionInfo)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.common.UserListActionInfo other = (com.google.ads.googleads.v0.common.UserListActionInfo) obj; + + boolean result = true; + result = result && getUserListActionCase().equals( + other.getUserListActionCase()); + if (!result) return false; + switch (userListActionCase_) { + case 1: + result = result && getConversionAction() + .equals(other.getConversionAction()); + break; + case 2: + result = result && getRemarketingAction() + .equals(other.getRemarketingAction()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (userListActionCase_) { + case 1: + hash = (37 * hash) + CONVERSION_ACTION_FIELD_NUMBER; + hash = (53 * hash) + getConversionAction().hashCode(); + break; + case 2: + hash = (37 * hash) + REMARKETING_ACTION_FIELD_NUMBER; + hash = (53 * hash) + getRemarketingAction().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.common.UserListActionInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.UserListActionInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.UserListActionInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.UserListActionInfo 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.ads.googleads.v0.common.UserListActionInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.UserListActionInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.UserListActionInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.UserListActionInfo 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.ads.googleads.v0.common.UserListActionInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.UserListActionInfo 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.ads.googleads.v0.common.UserListActionInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.UserListActionInfo 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.ads.googleads.v0.common.UserListActionInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Represents an action type used for building remarketing user lists.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.UserListActionInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.common.UserListActionInfo) + com.google.ads.googleads.v0.common.UserListActionInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListActionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListActionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.UserListActionInfo.class, com.google.ads.googleads.v0.common.UserListActionInfo.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.common.UserListActionInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + userListActionCase_ = 0; + userListAction_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListActionInfo_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.UserListActionInfo getDefaultInstanceForType() { + return com.google.ads.googleads.v0.common.UserListActionInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.UserListActionInfo build() { + com.google.ads.googleads.v0.common.UserListActionInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.UserListActionInfo buildPartial() { + com.google.ads.googleads.v0.common.UserListActionInfo result = new com.google.ads.googleads.v0.common.UserListActionInfo(this); + if (userListActionCase_ == 1) { + if (conversionActionBuilder_ == null) { + result.userListAction_ = userListAction_; + } else { + result.userListAction_ = conversionActionBuilder_.build(); + } + } + if (userListActionCase_ == 2) { + if (remarketingActionBuilder_ == null) { + result.userListAction_ = userListAction_; + } else { + result.userListAction_ = remarketingActionBuilder_.build(); + } + } + result.userListActionCase_ = userListActionCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.common.UserListActionInfo) { + return mergeFrom((com.google.ads.googleads.v0.common.UserListActionInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.common.UserListActionInfo other) { + if (other == com.google.ads.googleads.v0.common.UserListActionInfo.getDefaultInstance()) return this; + switch (other.getUserListActionCase()) { + case CONVERSION_ACTION: { + mergeConversionAction(other.getConversionAction()); + break; + } + case REMARKETING_ACTION: { + mergeRemarketingAction(other.getRemarketingAction()); + break; + } + case USERLISTACTION_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.common.UserListActionInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.common.UserListActionInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int userListActionCase_ = 0; + private java.lang.Object userListAction_; + public UserListActionCase + getUserListActionCase() { + return UserListActionCase.forNumber( + userListActionCase_); + } + + public Builder clearUserListAction() { + userListActionCase_ = 0; + userListAction_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> conversionActionBuilder_; + /** + *
+     * A conversion action that's not generated from remarketing.
+     * 
+ * + * .google.protobuf.StringValue conversion_action = 1; + */ + public boolean hasConversionAction() { + return userListActionCase_ == 1; + } + /** + *
+     * A conversion action that's not generated from remarketing.
+     * 
+ * + * .google.protobuf.StringValue conversion_action = 1; + */ + public com.google.protobuf.StringValue getConversionAction() { + if (conversionActionBuilder_ == null) { + if (userListActionCase_ == 1) { + return (com.google.protobuf.StringValue) userListAction_; + } + return com.google.protobuf.StringValue.getDefaultInstance(); + } else { + if (userListActionCase_ == 1) { + return conversionActionBuilder_.getMessage(); + } + return com.google.protobuf.StringValue.getDefaultInstance(); + } + } + /** + *
+     * A conversion action that's not generated from remarketing.
+     * 
+ * + * .google.protobuf.StringValue conversion_action = 1; + */ + public Builder setConversionAction(com.google.protobuf.StringValue value) { + if (conversionActionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userListAction_ = value; + onChanged(); + } else { + conversionActionBuilder_.setMessage(value); + } + userListActionCase_ = 1; + return this; + } + /** + *
+     * A conversion action that's not generated from remarketing.
+     * 
+ * + * .google.protobuf.StringValue conversion_action = 1; + */ + public Builder setConversionAction( + com.google.protobuf.StringValue.Builder builderForValue) { + if (conversionActionBuilder_ == null) { + userListAction_ = builderForValue.build(); + onChanged(); + } else { + conversionActionBuilder_.setMessage(builderForValue.build()); + } + userListActionCase_ = 1; + return this; + } + /** + *
+     * A conversion action that's not generated from remarketing.
+     * 
+ * + * .google.protobuf.StringValue conversion_action = 1; + */ + public Builder mergeConversionAction(com.google.protobuf.StringValue value) { + if (conversionActionBuilder_ == null) { + if (userListActionCase_ == 1 && + userListAction_ != com.google.protobuf.StringValue.getDefaultInstance()) { + userListAction_ = com.google.protobuf.StringValue.newBuilder((com.google.protobuf.StringValue) userListAction_) + .mergeFrom(value).buildPartial(); + } else { + userListAction_ = value; + } + onChanged(); + } else { + if (userListActionCase_ == 1) { + conversionActionBuilder_.mergeFrom(value); + } + conversionActionBuilder_.setMessage(value); + } + userListActionCase_ = 1; + return this; + } + /** + *
+     * A conversion action that's not generated from remarketing.
+     * 
+ * + * .google.protobuf.StringValue conversion_action = 1; + */ + public Builder clearConversionAction() { + if (conversionActionBuilder_ == null) { + if (userListActionCase_ == 1) { + userListActionCase_ = 0; + userListAction_ = null; + onChanged(); + } + } else { + if (userListActionCase_ == 1) { + userListActionCase_ = 0; + userListAction_ = null; + } + conversionActionBuilder_.clear(); + } + return this; + } + /** + *
+     * A conversion action that's not generated from remarketing.
+     * 
+ * + * .google.protobuf.StringValue conversion_action = 1; + */ + public com.google.protobuf.StringValue.Builder getConversionActionBuilder() { + return getConversionActionFieldBuilder().getBuilder(); + } + /** + *
+     * A conversion action that's not generated from remarketing.
+     * 
+ * + * .google.protobuf.StringValue conversion_action = 1; + */ + public com.google.protobuf.StringValueOrBuilder getConversionActionOrBuilder() { + if ((userListActionCase_ == 1) && (conversionActionBuilder_ != null)) { + return conversionActionBuilder_.getMessageOrBuilder(); + } else { + if (userListActionCase_ == 1) { + return (com.google.protobuf.StringValue) userListAction_; + } + return com.google.protobuf.StringValue.getDefaultInstance(); + } + } + /** + *
+     * A conversion action that's not generated from remarketing.
+     * 
+ * + * .google.protobuf.StringValue conversion_action = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getConversionActionFieldBuilder() { + if (conversionActionBuilder_ == null) { + if (!(userListActionCase_ == 1)) { + userListAction_ = com.google.protobuf.StringValue.getDefaultInstance(); + } + conversionActionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + (com.google.protobuf.StringValue) userListAction_, + getParentForChildren(), + isClean()); + userListAction_ = null; + } + userListActionCase_ = 1; + onChanged();; + return conversionActionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> remarketingActionBuilder_; + /** + *
+     * A remarketing action.
+     * 
+ * + * .google.protobuf.StringValue remarketing_action = 2; + */ + public boolean hasRemarketingAction() { + return userListActionCase_ == 2; + } + /** + *
+     * A remarketing action.
+     * 
+ * + * .google.protobuf.StringValue remarketing_action = 2; + */ + public com.google.protobuf.StringValue getRemarketingAction() { + if (remarketingActionBuilder_ == null) { + if (userListActionCase_ == 2) { + return (com.google.protobuf.StringValue) userListAction_; + } + return com.google.protobuf.StringValue.getDefaultInstance(); + } else { + if (userListActionCase_ == 2) { + return remarketingActionBuilder_.getMessage(); + } + return com.google.protobuf.StringValue.getDefaultInstance(); + } + } + /** + *
+     * A remarketing action.
+     * 
+ * + * .google.protobuf.StringValue remarketing_action = 2; + */ + public Builder setRemarketingAction(com.google.protobuf.StringValue value) { + if (remarketingActionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userListAction_ = value; + onChanged(); + } else { + remarketingActionBuilder_.setMessage(value); + } + userListActionCase_ = 2; + return this; + } + /** + *
+     * A remarketing action.
+     * 
+ * + * .google.protobuf.StringValue remarketing_action = 2; + */ + public Builder setRemarketingAction( + com.google.protobuf.StringValue.Builder builderForValue) { + if (remarketingActionBuilder_ == null) { + userListAction_ = builderForValue.build(); + onChanged(); + } else { + remarketingActionBuilder_.setMessage(builderForValue.build()); + } + userListActionCase_ = 2; + return this; + } + /** + *
+     * A remarketing action.
+     * 
+ * + * .google.protobuf.StringValue remarketing_action = 2; + */ + public Builder mergeRemarketingAction(com.google.protobuf.StringValue value) { + if (remarketingActionBuilder_ == null) { + if (userListActionCase_ == 2 && + userListAction_ != com.google.protobuf.StringValue.getDefaultInstance()) { + userListAction_ = com.google.protobuf.StringValue.newBuilder((com.google.protobuf.StringValue) userListAction_) + .mergeFrom(value).buildPartial(); + } else { + userListAction_ = value; + } + onChanged(); + } else { + if (userListActionCase_ == 2) { + remarketingActionBuilder_.mergeFrom(value); + } + remarketingActionBuilder_.setMessage(value); + } + userListActionCase_ = 2; + return this; + } + /** + *
+     * A remarketing action.
+     * 
+ * + * .google.protobuf.StringValue remarketing_action = 2; + */ + public Builder clearRemarketingAction() { + if (remarketingActionBuilder_ == null) { + if (userListActionCase_ == 2) { + userListActionCase_ = 0; + userListAction_ = null; + onChanged(); + } + } else { + if (userListActionCase_ == 2) { + userListActionCase_ = 0; + userListAction_ = null; + } + remarketingActionBuilder_.clear(); + } + return this; + } + /** + *
+     * A remarketing action.
+     * 
+ * + * .google.protobuf.StringValue remarketing_action = 2; + */ + public com.google.protobuf.StringValue.Builder getRemarketingActionBuilder() { + return getRemarketingActionFieldBuilder().getBuilder(); + } + /** + *
+     * A remarketing action.
+     * 
+ * + * .google.protobuf.StringValue remarketing_action = 2; + */ + public com.google.protobuf.StringValueOrBuilder getRemarketingActionOrBuilder() { + if ((userListActionCase_ == 2) && (remarketingActionBuilder_ != null)) { + return remarketingActionBuilder_.getMessageOrBuilder(); + } else { + if (userListActionCase_ == 2) { + return (com.google.protobuf.StringValue) userListAction_; + } + return com.google.protobuf.StringValue.getDefaultInstance(); + } + } + /** + *
+     * A remarketing action.
+     * 
+ * + * .google.protobuf.StringValue remarketing_action = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getRemarketingActionFieldBuilder() { + if (remarketingActionBuilder_ == null) { + if (!(userListActionCase_ == 2)) { + userListAction_ = com.google.protobuf.StringValue.getDefaultInstance(); + } + remarketingActionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + (com.google.protobuf.StringValue) userListAction_, + getParentForChildren(), + isClean()); + userListAction_ = null; + } + userListActionCase_ = 2; + onChanged();; + return remarketingActionBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.common.UserListActionInfo) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.common.UserListActionInfo) + private static final com.google.ads.googleads.v0.common.UserListActionInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.common.UserListActionInfo(); + } + + public static com.google.ads.googleads.v0.common.UserListActionInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserListActionInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserListActionInfo(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.common.UserListActionInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListActionInfoOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListActionInfoOrBuilder.java new file mode 100644 index 0000000000..58d3703b88 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListActionInfoOrBuilder.java @@ -0,0 +1,61 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/user_lists.proto + +package com.google.ads.googleads.v0.common; + +public interface UserListActionInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.common.UserListActionInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A conversion action that's not generated from remarketing.
+   * 
+ * + * .google.protobuf.StringValue conversion_action = 1; + */ + boolean hasConversionAction(); + /** + *
+   * A conversion action that's not generated from remarketing.
+   * 
+ * + * .google.protobuf.StringValue conversion_action = 1; + */ + com.google.protobuf.StringValue getConversionAction(); + /** + *
+   * A conversion action that's not generated from remarketing.
+   * 
+ * + * .google.protobuf.StringValue conversion_action = 1; + */ + com.google.protobuf.StringValueOrBuilder getConversionActionOrBuilder(); + + /** + *
+   * A remarketing action.
+   * 
+ * + * .google.protobuf.StringValue remarketing_action = 2; + */ + boolean hasRemarketingAction(); + /** + *
+   * A remarketing action.
+   * 
+ * + * .google.protobuf.StringValue remarketing_action = 2; + */ + com.google.protobuf.StringValue getRemarketingAction(); + /** + *
+   * A remarketing action.
+   * 
+ * + * .google.protobuf.StringValue remarketing_action = 2; + */ + com.google.protobuf.StringValueOrBuilder getRemarketingActionOrBuilder(); + + public com.google.ads.googleads.v0.common.UserListActionInfo.UserListActionCase getUserListActionCase(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListDateRuleItemInfo.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListDateRuleItemInfo.java new file mode 100644 index 0000000000..c0b34e27be --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListDateRuleItemInfo.java @@ -0,0 +1,1055 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/user_lists.proto + +package com.google.ads.googleads.v0.common; + +/** + *
+ * A rule item composed of date operation.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.UserListDateRuleItemInfo} + */ +public final class UserListDateRuleItemInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.common.UserListDateRuleItemInfo) + UserListDateRuleItemInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use UserListDateRuleItemInfo.newBuilder() to construct. + private UserListDateRuleItemInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UserListDateRuleItemInfo() { + operator_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserListDateRuleItemInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + operator_ = rawValue; + break; + } + case 18: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (value_ != null) { + subBuilder = value_.toBuilder(); + } + value_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(value_); + value_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + com.google.protobuf.Int64Value.Builder subBuilder = null; + if (offsetInDays_ != null) { + subBuilder = offsetInDays_.toBuilder(); + } + offsetInDays_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(offsetInDays_); + offsetInDays_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListDateRuleItemInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListDateRuleItemInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.UserListDateRuleItemInfo.class, com.google.ads.googleads.v0.common.UserListDateRuleItemInfo.Builder.class); + } + + public static final int OPERATOR_FIELD_NUMBER = 1; + private int operator_; + /** + *
+   * Date comparison operator.
+   * This field is required and must be populated when creating new date
+   * rule item.
+   * 
+ * + * .google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator operator = 1; + */ + public int getOperatorValue() { + return operator_; + } + /** + *
+   * Date comparison operator.
+   * This field is required and must be populated when creating new date
+   * rule item.
+   * 
+ * + * .google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator operator = 1; + */ + public com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator getOperator() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator result = com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator.valueOf(operator_); + return result == null ? com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator.UNRECOGNIZED : result; + } + + public static final int VALUE_FIELD_NUMBER = 2; + private com.google.protobuf.StringValue value_; + /** + *
+   * String representing date value to be compared with the rule variable.
+   * Supported date format is YYYY-MM-DD.
+   * Times are reported in the customer's time zone.
+   * 
+ * + * .google.protobuf.StringValue value = 2; + */ + public boolean hasValue() { + return value_ != null; + } + /** + *
+   * String representing date value to be compared with the rule variable.
+   * Supported date format is YYYY-MM-DD.
+   * Times are reported in the customer's time zone.
+   * 
+ * + * .google.protobuf.StringValue value = 2; + */ + public com.google.protobuf.StringValue getValue() { + return value_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : value_; + } + /** + *
+   * String representing date value to be compared with the rule variable.
+   * Supported date format is YYYY-MM-DD.
+   * Times are reported in the customer's time zone.
+   * 
+ * + * .google.protobuf.StringValue value = 2; + */ + public com.google.protobuf.StringValueOrBuilder getValueOrBuilder() { + return getValue(); + } + + public static final int OFFSET_IN_DAYS_FIELD_NUMBER = 3; + private com.google.protobuf.Int64Value offsetInDays_; + /** + *
+   * The relative date value of the right hand side denoted by number of days
+   * offset from now. The value field will override this field when both are
+   * present.
+   * 
+ * + * .google.protobuf.Int64Value offset_in_days = 3; + */ + public boolean hasOffsetInDays() { + return offsetInDays_ != null; + } + /** + *
+   * The relative date value of the right hand side denoted by number of days
+   * offset from now. The value field will override this field when both are
+   * present.
+   * 
+ * + * .google.protobuf.Int64Value offset_in_days = 3; + */ + public com.google.protobuf.Int64Value getOffsetInDays() { + return offsetInDays_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : offsetInDays_; + } + /** + *
+   * The relative date value of the right hand side denoted by number of days
+   * offset from now. The value field will override this field when both are
+   * present.
+   * 
+ * + * .google.protobuf.Int64Value offset_in_days = 3; + */ + public com.google.protobuf.Int64ValueOrBuilder getOffsetInDaysOrBuilder() { + return getOffsetInDays(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (operator_ != com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator.UNSPECIFIED.getNumber()) { + output.writeEnum(1, operator_); + } + if (value_ != null) { + output.writeMessage(2, getValue()); + } + if (offsetInDays_ != null) { + output.writeMessage(3, getOffsetInDays()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (operator_ != com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, operator_); + } + if (value_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getValue()); + } + if (offsetInDays_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getOffsetInDays()); + } + size += unknownFields.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.ads.googleads.v0.common.UserListDateRuleItemInfo)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.common.UserListDateRuleItemInfo other = (com.google.ads.googleads.v0.common.UserListDateRuleItemInfo) obj; + + boolean result = true; + result = result && operator_ == other.operator_; + result = result && (hasValue() == other.hasValue()); + if (hasValue()) { + result = result && getValue() + .equals(other.getValue()); + } + result = result && (hasOffsetInDays() == other.hasOffsetInDays()); + if (hasOffsetInDays()) { + result = result && getOffsetInDays() + .equals(other.getOffsetInDays()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OPERATOR_FIELD_NUMBER; + hash = (53 * hash) + operator_; + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + if (hasOffsetInDays()) { + hash = (37 * hash) + OFFSET_IN_DAYS_FIELD_NUMBER; + hash = (53 * hash) + getOffsetInDays().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.common.UserListDateRuleItemInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.UserListDateRuleItemInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.UserListDateRuleItemInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.UserListDateRuleItemInfo 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.ads.googleads.v0.common.UserListDateRuleItemInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.UserListDateRuleItemInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.UserListDateRuleItemInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.UserListDateRuleItemInfo 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.ads.googleads.v0.common.UserListDateRuleItemInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.UserListDateRuleItemInfo 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.ads.googleads.v0.common.UserListDateRuleItemInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.UserListDateRuleItemInfo 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.ads.googleads.v0.common.UserListDateRuleItemInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A rule item composed of date operation.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.UserListDateRuleItemInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.common.UserListDateRuleItemInfo) + com.google.ads.googleads.v0.common.UserListDateRuleItemInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListDateRuleItemInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListDateRuleItemInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.UserListDateRuleItemInfo.class, com.google.ads.googleads.v0.common.UserListDateRuleItemInfo.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.common.UserListDateRuleItemInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + operator_ = 0; + + if (valueBuilder_ == null) { + value_ = null; + } else { + value_ = null; + valueBuilder_ = null; + } + if (offsetInDaysBuilder_ == null) { + offsetInDays_ = null; + } else { + offsetInDays_ = null; + offsetInDaysBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListDateRuleItemInfo_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.UserListDateRuleItemInfo getDefaultInstanceForType() { + return com.google.ads.googleads.v0.common.UserListDateRuleItemInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.UserListDateRuleItemInfo build() { + com.google.ads.googleads.v0.common.UserListDateRuleItemInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.UserListDateRuleItemInfo buildPartial() { + com.google.ads.googleads.v0.common.UserListDateRuleItemInfo result = new com.google.ads.googleads.v0.common.UserListDateRuleItemInfo(this); + result.operator_ = operator_; + if (valueBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = valueBuilder_.build(); + } + if (offsetInDaysBuilder_ == null) { + result.offsetInDays_ = offsetInDays_; + } else { + result.offsetInDays_ = offsetInDaysBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.common.UserListDateRuleItemInfo) { + return mergeFrom((com.google.ads.googleads.v0.common.UserListDateRuleItemInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.common.UserListDateRuleItemInfo other) { + if (other == com.google.ads.googleads.v0.common.UserListDateRuleItemInfo.getDefaultInstance()) return this; + if (other.operator_ != 0) { + setOperatorValue(other.getOperatorValue()); + } + if (other.hasValue()) { + mergeValue(other.getValue()); + } + if (other.hasOffsetInDays()) { + mergeOffsetInDays(other.getOffsetInDays()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.common.UserListDateRuleItemInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.common.UserListDateRuleItemInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int operator_ = 0; + /** + *
+     * Date comparison operator.
+     * This field is required and must be populated when creating new date
+     * rule item.
+     * 
+ * + * .google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator operator = 1; + */ + public int getOperatorValue() { + return operator_; + } + /** + *
+     * Date comparison operator.
+     * This field is required and must be populated when creating new date
+     * rule item.
+     * 
+ * + * .google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator operator = 1; + */ + public Builder setOperatorValue(int value) { + operator_ = value; + onChanged(); + return this; + } + /** + *
+     * Date comparison operator.
+     * This field is required and must be populated when creating new date
+     * rule item.
+     * 
+ * + * .google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator operator = 1; + */ + public com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator getOperator() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator result = com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator.valueOf(operator_); + return result == null ? com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator.UNRECOGNIZED : result; + } + /** + *
+     * Date comparison operator.
+     * This field is required and must be populated when creating new date
+     * rule item.
+     * 
+ * + * .google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator operator = 1; + */ + public Builder setOperator(com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator value) { + if (value == null) { + throw new NullPointerException(); + } + + operator_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Date comparison operator.
+     * This field is required and must be populated when creating new date
+     * rule item.
+     * 
+ * + * .google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator operator = 1; + */ + public Builder clearOperator() { + + operator_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.StringValue value_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> valueBuilder_; + /** + *
+     * String representing date value to be compared with the rule variable.
+     * Supported date format is YYYY-MM-DD.
+     * Times are reported in the customer's time zone.
+     * 
+ * + * .google.protobuf.StringValue value = 2; + */ + public boolean hasValue() { + return valueBuilder_ != null || value_ != null; + } + /** + *
+     * String representing date value to be compared with the rule variable.
+     * Supported date format is YYYY-MM-DD.
+     * Times are reported in the customer's time zone.
+     * 
+ * + * .google.protobuf.StringValue value = 2; + */ + public com.google.protobuf.StringValue getValue() { + if (valueBuilder_ == null) { + return value_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : value_; + } else { + return valueBuilder_.getMessage(); + } + } + /** + *
+     * String representing date value to be compared with the rule variable.
+     * Supported date format is YYYY-MM-DD.
+     * Times are reported in the customer's time zone.
+     * 
+ * + * .google.protobuf.StringValue value = 2; + */ + public Builder setValue(com.google.protobuf.StringValue value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + valueBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * String representing date value to be compared with the rule variable.
+     * Supported date format is YYYY-MM-DD.
+     * Times are reported in the customer's time zone.
+     * 
+ * + * .google.protobuf.StringValue value = 2; + */ + public Builder setValue( + com.google.protobuf.StringValue.Builder builderForValue) { + if (valueBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + valueBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * String representing date value to be compared with the rule variable.
+     * Supported date format is YYYY-MM-DD.
+     * Times are reported in the customer's time zone.
+     * 
+ * + * .google.protobuf.StringValue value = 2; + */ + public Builder mergeValue(com.google.protobuf.StringValue value) { + if (valueBuilder_ == null) { + if (value_ != null) { + value_ = + com.google.protobuf.StringValue.newBuilder(value_).mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + valueBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * String representing date value to be compared with the rule variable.
+     * Supported date format is YYYY-MM-DD.
+     * Times are reported in the customer's time zone.
+     * 
+ * + * .google.protobuf.StringValue value = 2; + */ + public Builder clearValue() { + if (valueBuilder_ == null) { + value_ = null; + onChanged(); + } else { + value_ = null; + valueBuilder_ = null; + } + + return this; + } + /** + *
+     * String representing date value to be compared with the rule variable.
+     * Supported date format is YYYY-MM-DD.
+     * Times are reported in the customer's time zone.
+     * 
+ * + * .google.protobuf.StringValue value = 2; + */ + public com.google.protobuf.StringValue.Builder getValueBuilder() { + + onChanged(); + return getValueFieldBuilder().getBuilder(); + } + /** + *
+     * String representing date value to be compared with the rule variable.
+     * Supported date format is YYYY-MM-DD.
+     * Times are reported in the customer's time zone.
+     * 
+ * + * .google.protobuf.StringValue value = 2; + */ + public com.google.protobuf.StringValueOrBuilder getValueOrBuilder() { + if (valueBuilder_ != null) { + return valueBuilder_.getMessageOrBuilder(); + } else { + return value_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : value_; + } + } + /** + *
+     * String representing date value to be compared with the rule variable.
+     * Supported date format is YYYY-MM-DD.
+     * Times are reported in the customer's time zone.
+     * 
+ * + * .google.protobuf.StringValue value = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getValueFieldBuilder() { + if (valueBuilder_ == null) { + valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getValue(), + getParentForChildren(), + isClean()); + value_ = null; + } + return valueBuilder_; + } + + private com.google.protobuf.Int64Value offsetInDays_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> offsetInDaysBuilder_; + /** + *
+     * The relative date value of the right hand side denoted by number of days
+     * offset from now. The value field will override this field when both are
+     * present.
+     * 
+ * + * .google.protobuf.Int64Value offset_in_days = 3; + */ + public boolean hasOffsetInDays() { + return offsetInDaysBuilder_ != null || offsetInDays_ != null; + } + /** + *
+     * The relative date value of the right hand side denoted by number of days
+     * offset from now. The value field will override this field when both are
+     * present.
+     * 
+ * + * .google.protobuf.Int64Value offset_in_days = 3; + */ + public com.google.protobuf.Int64Value getOffsetInDays() { + if (offsetInDaysBuilder_ == null) { + return offsetInDays_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : offsetInDays_; + } else { + return offsetInDaysBuilder_.getMessage(); + } + } + /** + *
+     * The relative date value of the right hand side denoted by number of days
+     * offset from now. The value field will override this field when both are
+     * present.
+     * 
+ * + * .google.protobuf.Int64Value offset_in_days = 3; + */ + public Builder setOffsetInDays(com.google.protobuf.Int64Value value) { + if (offsetInDaysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + offsetInDays_ = value; + onChanged(); + } else { + offsetInDaysBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The relative date value of the right hand side denoted by number of days
+     * offset from now. The value field will override this field when both are
+     * present.
+     * 
+ * + * .google.protobuf.Int64Value offset_in_days = 3; + */ + public Builder setOffsetInDays( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (offsetInDaysBuilder_ == null) { + offsetInDays_ = builderForValue.build(); + onChanged(); + } else { + offsetInDaysBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The relative date value of the right hand side denoted by number of days
+     * offset from now. The value field will override this field when both are
+     * present.
+     * 
+ * + * .google.protobuf.Int64Value offset_in_days = 3; + */ + public Builder mergeOffsetInDays(com.google.protobuf.Int64Value value) { + if (offsetInDaysBuilder_ == null) { + if (offsetInDays_ != null) { + offsetInDays_ = + com.google.protobuf.Int64Value.newBuilder(offsetInDays_).mergeFrom(value).buildPartial(); + } else { + offsetInDays_ = value; + } + onChanged(); + } else { + offsetInDaysBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The relative date value of the right hand side denoted by number of days
+     * offset from now. The value field will override this field when both are
+     * present.
+     * 
+ * + * .google.protobuf.Int64Value offset_in_days = 3; + */ + public Builder clearOffsetInDays() { + if (offsetInDaysBuilder_ == null) { + offsetInDays_ = null; + onChanged(); + } else { + offsetInDays_ = null; + offsetInDaysBuilder_ = null; + } + + return this; + } + /** + *
+     * The relative date value of the right hand side denoted by number of days
+     * offset from now. The value field will override this field when both are
+     * present.
+     * 
+ * + * .google.protobuf.Int64Value offset_in_days = 3; + */ + public com.google.protobuf.Int64Value.Builder getOffsetInDaysBuilder() { + + onChanged(); + return getOffsetInDaysFieldBuilder().getBuilder(); + } + /** + *
+     * The relative date value of the right hand side denoted by number of days
+     * offset from now. The value field will override this field when both are
+     * present.
+     * 
+ * + * .google.protobuf.Int64Value offset_in_days = 3; + */ + public com.google.protobuf.Int64ValueOrBuilder getOffsetInDaysOrBuilder() { + if (offsetInDaysBuilder_ != null) { + return offsetInDaysBuilder_.getMessageOrBuilder(); + } else { + return offsetInDays_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : offsetInDays_; + } + } + /** + *
+     * The relative date value of the right hand side denoted by number of days
+     * offset from now. The value field will override this field when both are
+     * present.
+     * 
+ * + * .google.protobuf.Int64Value offset_in_days = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + getOffsetInDaysFieldBuilder() { + if (offsetInDaysBuilder_ == null) { + offsetInDaysBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getOffsetInDays(), + getParentForChildren(), + isClean()); + offsetInDays_ = null; + } + return offsetInDaysBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.common.UserListDateRuleItemInfo) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.common.UserListDateRuleItemInfo) + private static final com.google.ads.googleads.v0.common.UserListDateRuleItemInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.common.UserListDateRuleItemInfo(); + } + + public static com.google.ads.googleads.v0.common.UserListDateRuleItemInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserListDateRuleItemInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserListDateRuleItemInfo(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.common.UserListDateRuleItemInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListDateRuleItemInfoOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListDateRuleItemInfoOrBuilder.java new file mode 100644 index 0000000000..6600641baa --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListDateRuleItemInfoOrBuilder.java @@ -0,0 +1,92 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/user_lists.proto + +package com.google.ads.googleads.v0.common; + +public interface UserListDateRuleItemInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.common.UserListDateRuleItemInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Date comparison operator.
+   * This field is required and must be populated when creating new date
+   * rule item.
+   * 
+ * + * .google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator operator = 1; + */ + int getOperatorValue(); + /** + *
+   * Date comparison operator.
+   * This field is required and must be populated when creating new date
+   * rule item.
+   * 
+ * + * .google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator operator = 1; + */ + com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator getOperator(); + + /** + *
+   * String representing date value to be compared with the rule variable.
+   * Supported date format is YYYY-MM-DD.
+   * Times are reported in the customer's time zone.
+   * 
+ * + * .google.protobuf.StringValue value = 2; + */ + boolean hasValue(); + /** + *
+   * String representing date value to be compared with the rule variable.
+   * Supported date format is YYYY-MM-DD.
+   * Times are reported in the customer's time zone.
+   * 
+ * + * .google.protobuf.StringValue value = 2; + */ + com.google.protobuf.StringValue getValue(); + /** + *
+   * String representing date value to be compared with the rule variable.
+   * Supported date format is YYYY-MM-DD.
+   * Times are reported in the customer's time zone.
+   * 
+ * + * .google.protobuf.StringValue value = 2; + */ + com.google.protobuf.StringValueOrBuilder getValueOrBuilder(); + + /** + *
+   * The relative date value of the right hand side denoted by number of days
+   * offset from now. The value field will override this field when both are
+   * present.
+   * 
+ * + * .google.protobuf.Int64Value offset_in_days = 3; + */ + boolean hasOffsetInDays(); + /** + *
+   * The relative date value of the right hand side denoted by number of days
+   * offset from now. The value field will override this field when both are
+   * present.
+   * 
+ * + * .google.protobuf.Int64Value offset_in_days = 3; + */ + com.google.protobuf.Int64Value getOffsetInDays(); + /** + *
+   * The relative date value of the right hand side denoted by number of days
+   * offset from now. The value field will override this field when both are
+   * present.
+   * 
+ * + * .google.protobuf.Int64Value offset_in_days = 3; + */ + com.google.protobuf.Int64ValueOrBuilder getOffsetInDaysOrBuilder(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListLogicalRuleInfo.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListLogicalRuleInfo.java new file mode 100644 index 0000000000..b468c748b8 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListLogicalRuleInfo.java @@ -0,0 +1,977 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/user_lists.proto + +package com.google.ads.googleads.v0.common; + +/** + *
+ * A user list logical rule. A rule has a logical operator (and/or/not) and a
+ * list of user lists as operands.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.UserListLogicalRuleInfo} + */ +public final class UserListLogicalRuleInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.common.UserListLogicalRuleInfo) + UserListLogicalRuleInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use UserListLogicalRuleInfo.newBuilder() to construct. + private UserListLogicalRuleInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UserListLogicalRuleInfo() { + operator_ = 0; + ruleOperands_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserListLogicalRuleInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + operator_ = rawValue; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + ruleOperands_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + ruleOperands_.add( + input.readMessage(com.google.ads.googleads.v0.common.LogicalUserListOperandInfo.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + ruleOperands_ = java.util.Collections.unmodifiableList(ruleOperands_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListLogicalRuleInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListLogicalRuleInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.UserListLogicalRuleInfo.class, com.google.ads.googleads.v0.common.UserListLogicalRuleInfo.Builder.class); + } + + private int bitField0_; + public static final int OPERATOR_FIELD_NUMBER = 1; + private int operator_; + /** + *
+   * The logical operator of the rule.
+   * 
+ * + * .google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum.UserListLogicalRuleOperator operator = 1; + */ + public int getOperatorValue() { + return operator_; + } + /** + *
+   * The logical operator of the rule.
+   * 
+ * + * .google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum.UserListLogicalRuleOperator operator = 1; + */ + public com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum.UserListLogicalRuleOperator getOperator() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum.UserListLogicalRuleOperator result = com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum.UserListLogicalRuleOperator.valueOf(operator_); + return result == null ? com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum.UserListLogicalRuleOperator.UNRECOGNIZED : result; + } + + public static final int RULE_OPERANDS_FIELD_NUMBER = 2; + private java.util.List ruleOperands_; + /** + *
+   * The list of operands of the rule.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.LogicalUserListOperandInfo rule_operands = 2; + */ + public java.util.List getRuleOperandsList() { + return ruleOperands_; + } + /** + *
+   * The list of operands of the rule.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.LogicalUserListOperandInfo rule_operands = 2; + */ + public java.util.List + getRuleOperandsOrBuilderList() { + return ruleOperands_; + } + /** + *
+   * The list of operands of the rule.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.LogicalUserListOperandInfo rule_operands = 2; + */ + public int getRuleOperandsCount() { + return ruleOperands_.size(); + } + /** + *
+   * The list of operands of the rule.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.LogicalUserListOperandInfo rule_operands = 2; + */ + public com.google.ads.googleads.v0.common.LogicalUserListOperandInfo getRuleOperands(int index) { + return ruleOperands_.get(index); + } + /** + *
+   * The list of operands of the rule.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.LogicalUserListOperandInfo rule_operands = 2; + */ + public com.google.ads.googleads.v0.common.LogicalUserListOperandInfoOrBuilder getRuleOperandsOrBuilder( + int index) { + return ruleOperands_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (operator_ != com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum.UserListLogicalRuleOperator.UNSPECIFIED.getNumber()) { + output.writeEnum(1, operator_); + } + for (int i = 0; i < ruleOperands_.size(); i++) { + output.writeMessage(2, ruleOperands_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (operator_ != com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum.UserListLogicalRuleOperator.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, operator_); + } + for (int i = 0; i < ruleOperands_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, ruleOperands_.get(i)); + } + size += unknownFields.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.ads.googleads.v0.common.UserListLogicalRuleInfo)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.common.UserListLogicalRuleInfo other = (com.google.ads.googleads.v0.common.UserListLogicalRuleInfo) obj; + + boolean result = true; + result = result && operator_ == other.operator_; + result = result && getRuleOperandsList() + .equals(other.getRuleOperandsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OPERATOR_FIELD_NUMBER; + hash = (53 * hash) + operator_; + if (getRuleOperandsCount() > 0) { + hash = (37 * hash) + RULE_OPERANDS_FIELD_NUMBER; + hash = (53 * hash) + getRuleOperandsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.common.UserListLogicalRuleInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.UserListLogicalRuleInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.UserListLogicalRuleInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.UserListLogicalRuleInfo 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.ads.googleads.v0.common.UserListLogicalRuleInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.UserListLogicalRuleInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.UserListLogicalRuleInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.UserListLogicalRuleInfo 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.ads.googleads.v0.common.UserListLogicalRuleInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.UserListLogicalRuleInfo 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.ads.googleads.v0.common.UserListLogicalRuleInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.UserListLogicalRuleInfo 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.ads.googleads.v0.common.UserListLogicalRuleInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A user list logical rule. A rule has a logical operator (and/or/not) and a
+   * list of user lists as operands.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.UserListLogicalRuleInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.common.UserListLogicalRuleInfo) + com.google.ads.googleads.v0.common.UserListLogicalRuleInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListLogicalRuleInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListLogicalRuleInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.UserListLogicalRuleInfo.class, com.google.ads.googleads.v0.common.UserListLogicalRuleInfo.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.common.UserListLogicalRuleInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getRuleOperandsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + operator_ = 0; + + if (ruleOperandsBuilder_ == null) { + ruleOperands_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ruleOperandsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListLogicalRuleInfo_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.UserListLogicalRuleInfo getDefaultInstanceForType() { + return com.google.ads.googleads.v0.common.UserListLogicalRuleInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.UserListLogicalRuleInfo build() { + com.google.ads.googleads.v0.common.UserListLogicalRuleInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.UserListLogicalRuleInfo buildPartial() { + com.google.ads.googleads.v0.common.UserListLogicalRuleInfo result = new com.google.ads.googleads.v0.common.UserListLogicalRuleInfo(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.operator_ = operator_; + if (ruleOperandsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + ruleOperands_ = java.util.Collections.unmodifiableList(ruleOperands_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.ruleOperands_ = ruleOperands_; + } else { + result.ruleOperands_ = ruleOperandsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.common.UserListLogicalRuleInfo) { + return mergeFrom((com.google.ads.googleads.v0.common.UserListLogicalRuleInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.common.UserListLogicalRuleInfo other) { + if (other == com.google.ads.googleads.v0.common.UserListLogicalRuleInfo.getDefaultInstance()) return this; + if (other.operator_ != 0) { + setOperatorValue(other.getOperatorValue()); + } + if (ruleOperandsBuilder_ == null) { + if (!other.ruleOperands_.isEmpty()) { + if (ruleOperands_.isEmpty()) { + ruleOperands_ = other.ruleOperands_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRuleOperandsIsMutable(); + ruleOperands_.addAll(other.ruleOperands_); + } + onChanged(); + } + } else { + if (!other.ruleOperands_.isEmpty()) { + if (ruleOperandsBuilder_.isEmpty()) { + ruleOperandsBuilder_.dispose(); + ruleOperandsBuilder_ = null; + ruleOperands_ = other.ruleOperands_; + bitField0_ = (bitField0_ & ~0x00000002); + ruleOperandsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRuleOperandsFieldBuilder() : null; + } else { + ruleOperandsBuilder_.addAllMessages(other.ruleOperands_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.common.UserListLogicalRuleInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.common.UserListLogicalRuleInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int operator_ = 0; + /** + *
+     * The logical operator of the rule.
+     * 
+ * + * .google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum.UserListLogicalRuleOperator operator = 1; + */ + public int getOperatorValue() { + return operator_; + } + /** + *
+     * The logical operator of the rule.
+     * 
+ * + * .google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum.UserListLogicalRuleOperator operator = 1; + */ + public Builder setOperatorValue(int value) { + operator_ = value; + onChanged(); + return this; + } + /** + *
+     * The logical operator of the rule.
+     * 
+ * + * .google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum.UserListLogicalRuleOperator operator = 1; + */ + public com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum.UserListLogicalRuleOperator getOperator() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum.UserListLogicalRuleOperator result = com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum.UserListLogicalRuleOperator.valueOf(operator_); + return result == null ? com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum.UserListLogicalRuleOperator.UNRECOGNIZED : result; + } + /** + *
+     * The logical operator of the rule.
+     * 
+ * + * .google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum.UserListLogicalRuleOperator operator = 1; + */ + public Builder setOperator(com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum.UserListLogicalRuleOperator value) { + if (value == null) { + throw new NullPointerException(); + } + + operator_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The logical operator of the rule.
+     * 
+ * + * .google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum.UserListLogicalRuleOperator operator = 1; + */ + public Builder clearOperator() { + + operator_ = 0; + onChanged(); + return this; + } + + private java.util.List ruleOperands_ = + java.util.Collections.emptyList(); + private void ensureRuleOperandsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + ruleOperands_ = new java.util.ArrayList(ruleOperands_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.common.LogicalUserListOperandInfo, com.google.ads.googleads.v0.common.LogicalUserListOperandInfo.Builder, com.google.ads.googleads.v0.common.LogicalUserListOperandInfoOrBuilder> ruleOperandsBuilder_; + + /** + *
+     * The list of operands of the rule.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.LogicalUserListOperandInfo rule_operands = 2; + */ + public java.util.List getRuleOperandsList() { + if (ruleOperandsBuilder_ == null) { + return java.util.Collections.unmodifiableList(ruleOperands_); + } else { + return ruleOperandsBuilder_.getMessageList(); + } + } + /** + *
+     * The list of operands of the rule.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.LogicalUserListOperandInfo rule_operands = 2; + */ + public int getRuleOperandsCount() { + if (ruleOperandsBuilder_ == null) { + return ruleOperands_.size(); + } else { + return ruleOperandsBuilder_.getCount(); + } + } + /** + *
+     * The list of operands of the rule.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.LogicalUserListOperandInfo rule_operands = 2; + */ + public com.google.ads.googleads.v0.common.LogicalUserListOperandInfo getRuleOperands(int index) { + if (ruleOperandsBuilder_ == null) { + return ruleOperands_.get(index); + } else { + return ruleOperandsBuilder_.getMessage(index); + } + } + /** + *
+     * The list of operands of the rule.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.LogicalUserListOperandInfo rule_operands = 2; + */ + public Builder setRuleOperands( + int index, com.google.ads.googleads.v0.common.LogicalUserListOperandInfo value) { + if (ruleOperandsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRuleOperandsIsMutable(); + ruleOperands_.set(index, value); + onChanged(); + } else { + ruleOperandsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The list of operands of the rule.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.LogicalUserListOperandInfo rule_operands = 2; + */ + public Builder setRuleOperands( + int index, com.google.ads.googleads.v0.common.LogicalUserListOperandInfo.Builder builderForValue) { + if (ruleOperandsBuilder_ == null) { + ensureRuleOperandsIsMutable(); + ruleOperands_.set(index, builderForValue.build()); + onChanged(); + } else { + ruleOperandsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The list of operands of the rule.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.LogicalUserListOperandInfo rule_operands = 2; + */ + public Builder addRuleOperands(com.google.ads.googleads.v0.common.LogicalUserListOperandInfo value) { + if (ruleOperandsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRuleOperandsIsMutable(); + ruleOperands_.add(value); + onChanged(); + } else { + ruleOperandsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The list of operands of the rule.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.LogicalUserListOperandInfo rule_operands = 2; + */ + public Builder addRuleOperands( + int index, com.google.ads.googleads.v0.common.LogicalUserListOperandInfo value) { + if (ruleOperandsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRuleOperandsIsMutable(); + ruleOperands_.add(index, value); + onChanged(); + } else { + ruleOperandsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The list of operands of the rule.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.LogicalUserListOperandInfo rule_operands = 2; + */ + public Builder addRuleOperands( + com.google.ads.googleads.v0.common.LogicalUserListOperandInfo.Builder builderForValue) { + if (ruleOperandsBuilder_ == null) { + ensureRuleOperandsIsMutable(); + ruleOperands_.add(builderForValue.build()); + onChanged(); + } else { + ruleOperandsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The list of operands of the rule.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.LogicalUserListOperandInfo rule_operands = 2; + */ + public Builder addRuleOperands( + int index, com.google.ads.googleads.v0.common.LogicalUserListOperandInfo.Builder builderForValue) { + if (ruleOperandsBuilder_ == null) { + ensureRuleOperandsIsMutable(); + ruleOperands_.add(index, builderForValue.build()); + onChanged(); + } else { + ruleOperandsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The list of operands of the rule.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.LogicalUserListOperandInfo rule_operands = 2; + */ + public Builder addAllRuleOperands( + java.lang.Iterable values) { + if (ruleOperandsBuilder_ == null) { + ensureRuleOperandsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ruleOperands_); + onChanged(); + } else { + ruleOperandsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The list of operands of the rule.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.LogicalUserListOperandInfo rule_operands = 2; + */ + public Builder clearRuleOperands() { + if (ruleOperandsBuilder_ == null) { + ruleOperands_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + ruleOperandsBuilder_.clear(); + } + return this; + } + /** + *
+     * The list of operands of the rule.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.LogicalUserListOperandInfo rule_operands = 2; + */ + public Builder removeRuleOperands(int index) { + if (ruleOperandsBuilder_ == null) { + ensureRuleOperandsIsMutable(); + ruleOperands_.remove(index); + onChanged(); + } else { + ruleOperandsBuilder_.remove(index); + } + return this; + } + /** + *
+     * The list of operands of the rule.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.LogicalUserListOperandInfo rule_operands = 2; + */ + public com.google.ads.googleads.v0.common.LogicalUserListOperandInfo.Builder getRuleOperandsBuilder( + int index) { + return getRuleOperandsFieldBuilder().getBuilder(index); + } + /** + *
+     * The list of operands of the rule.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.LogicalUserListOperandInfo rule_operands = 2; + */ + public com.google.ads.googleads.v0.common.LogicalUserListOperandInfoOrBuilder getRuleOperandsOrBuilder( + int index) { + if (ruleOperandsBuilder_ == null) { + return ruleOperands_.get(index); } else { + return ruleOperandsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The list of operands of the rule.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.LogicalUserListOperandInfo rule_operands = 2; + */ + public java.util.List + getRuleOperandsOrBuilderList() { + if (ruleOperandsBuilder_ != null) { + return ruleOperandsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ruleOperands_); + } + } + /** + *
+     * The list of operands of the rule.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.LogicalUserListOperandInfo rule_operands = 2; + */ + public com.google.ads.googleads.v0.common.LogicalUserListOperandInfo.Builder addRuleOperandsBuilder() { + return getRuleOperandsFieldBuilder().addBuilder( + com.google.ads.googleads.v0.common.LogicalUserListOperandInfo.getDefaultInstance()); + } + /** + *
+     * The list of operands of the rule.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.LogicalUserListOperandInfo rule_operands = 2; + */ + public com.google.ads.googleads.v0.common.LogicalUserListOperandInfo.Builder addRuleOperandsBuilder( + int index) { + return getRuleOperandsFieldBuilder().addBuilder( + index, com.google.ads.googleads.v0.common.LogicalUserListOperandInfo.getDefaultInstance()); + } + /** + *
+     * The list of operands of the rule.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.LogicalUserListOperandInfo rule_operands = 2; + */ + public java.util.List + getRuleOperandsBuilderList() { + return getRuleOperandsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.common.LogicalUserListOperandInfo, com.google.ads.googleads.v0.common.LogicalUserListOperandInfo.Builder, com.google.ads.googleads.v0.common.LogicalUserListOperandInfoOrBuilder> + getRuleOperandsFieldBuilder() { + if (ruleOperandsBuilder_ == null) { + ruleOperandsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.common.LogicalUserListOperandInfo, com.google.ads.googleads.v0.common.LogicalUserListOperandInfo.Builder, com.google.ads.googleads.v0.common.LogicalUserListOperandInfoOrBuilder>( + ruleOperands_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + ruleOperands_ = null; + } + return ruleOperandsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.common.UserListLogicalRuleInfo) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.common.UserListLogicalRuleInfo) + private static final com.google.ads.googleads.v0.common.UserListLogicalRuleInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.common.UserListLogicalRuleInfo(); + } + + public static com.google.ads.googleads.v0.common.UserListLogicalRuleInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserListLogicalRuleInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserListLogicalRuleInfo(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.common.UserListLogicalRuleInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListLogicalRuleInfoOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListLogicalRuleInfoOrBuilder.java new file mode 100644 index 0000000000..b268b3a37a --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListLogicalRuleInfoOrBuilder.java @@ -0,0 +1,70 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/user_lists.proto + +package com.google.ads.googleads.v0.common; + +public interface UserListLogicalRuleInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.common.UserListLogicalRuleInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The logical operator of the rule.
+   * 
+ * + * .google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum.UserListLogicalRuleOperator operator = 1; + */ + int getOperatorValue(); + /** + *
+   * The logical operator of the rule.
+   * 
+ * + * .google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum.UserListLogicalRuleOperator operator = 1; + */ + com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum.UserListLogicalRuleOperator getOperator(); + + /** + *
+   * The list of operands of the rule.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.LogicalUserListOperandInfo rule_operands = 2; + */ + java.util.List + getRuleOperandsList(); + /** + *
+   * The list of operands of the rule.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.LogicalUserListOperandInfo rule_operands = 2; + */ + com.google.ads.googleads.v0.common.LogicalUserListOperandInfo getRuleOperands(int index); + /** + *
+   * The list of operands of the rule.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.LogicalUserListOperandInfo rule_operands = 2; + */ + int getRuleOperandsCount(); + /** + *
+   * The list of operands of the rule.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.LogicalUserListOperandInfo rule_operands = 2; + */ + java.util.List + getRuleOperandsOrBuilderList(); + /** + *
+   * The list of operands of the rule.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.LogicalUserListOperandInfo rule_operands = 2; + */ + com.google.ads.googleads.v0.common.LogicalUserListOperandInfoOrBuilder getRuleOperandsOrBuilder( + int index); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListNumberRuleItemInfo.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListNumberRuleItemInfo.java new file mode 100644 index 0000000000..1b19709c7f --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListNumberRuleItemInfo.java @@ -0,0 +1,802 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/user_lists.proto + +package com.google.ads.googleads.v0.common; + +/** + *
+ * A rule item composed of number operation.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.UserListNumberRuleItemInfo} + */ +public final class UserListNumberRuleItemInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.common.UserListNumberRuleItemInfo) + UserListNumberRuleItemInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use UserListNumberRuleItemInfo.newBuilder() to construct. + private UserListNumberRuleItemInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UserListNumberRuleItemInfo() { + operator_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserListNumberRuleItemInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + operator_ = rawValue; + break; + } + case 18: { + com.google.protobuf.DoubleValue.Builder subBuilder = null; + if (value_ != null) { + subBuilder = value_.toBuilder(); + } + value_ = input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(value_); + value_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListNumberRuleItemInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListNumberRuleItemInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo.class, com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo.Builder.class); + } + + public static final int OPERATOR_FIELD_NUMBER = 1; + private int operator_; + /** + *
+   * Number comparison operator.
+   * This field is required and must be populated when creating a new number
+   * rule item.
+   * 
+ * + * .google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum.UserListNumberRuleItemOperator operator = 1; + */ + public int getOperatorValue() { + return operator_; + } + /** + *
+   * Number comparison operator.
+   * This field is required and must be populated when creating a new number
+   * rule item.
+   * 
+ * + * .google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum.UserListNumberRuleItemOperator operator = 1; + */ + public com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum.UserListNumberRuleItemOperator getOperator() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum.UserListNumberRuleItemOperator result = com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum.UserListNumberRuleItemOperator.valueOf(operator_); + return result == null ? com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum.UserListNumberRuleItemOperator.UNRECOGNIZED : result; + } + + public static final int VALUE_FIELD_NUMBER = 2; + private com.google.protobuf.DoubleValue value_; + /** + *
+   * Number value to be compared with the variable.
+   * This field is required and must be populated when creating a new number
+   * rule item.
+   * 
+ * + * .google.protobuf.DoubleValue value = 2; + */ + public boolean hasValue() { + return value_ != null; + } + /** + *
+   * Number value to be compared with the variable.
+   * This field is required and must be populated when creating a new number
+   * rule item.
+   * 
+ * + * .google.protobuf.DoubleValue value = 2; + */ + public com.google.protobuf.DoubleValue getValue() { + return value_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : value_; + } + /** + *
+   * Number value to be compared with the variable.
+   * This field is required and must be populated when creating a new number
+   * rule item.
+   * 
+ * + * .google.protobuf.DoubleValue value = 2; + */ + public com.google.protobuf.DoubleValueOrBuilder getValueOrBuilder() { + return getValue(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (operator_ != com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum.UserListNumberRuleItemOperator.UNSPECIFIED.getNumber()) { + output.writeEnum(1, operator_); + } + if (value_ != null) { + output.writeMessage(2, getValue()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (operator_ != com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum.UserListNumberRuleItemOperator.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, operator_); + } + if (value_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getValue()); + } + size += unknownFields.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.ads.googleads.v0.common.UserListNumberRuleItemInfo)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo other = (com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo) obj; + + boolean result = true; + result = result && operator_ == other.operator_; + result = result && (hasValue() == other.hasValue()); + if (hasValue()) { + result = result && getValue() + .equals(other.getValue()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OPERATOR_FIELD_NUMBER; + hash = (53 * hash) + operator_; + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo 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.ads.googleads.v0.common.UserListNumberRuleItemInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo 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.ads.googleads.v0.common.UserListNumberRuleItemInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo 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.ads.googleads.v0.common.UserListNumberRuleItemInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo 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.ads.googleads.v0.common.UserListNumberRuleItemInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A rule item composed of number operation.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.UserListNumberRuleItemInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.common.UserListNumberRuleItemInfo) + com.google.ads.googleads.v0.common.UserListNumberRuleItemInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListNumberRuleItemInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListNumberRuleItemInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo.class, com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + operator_ = 0; + + if (valueBuilder_ == null) { + value_ = null; + } else { + value_ = null; + valueBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListNumberRuleItemInfo_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo getDefaultInstanceForType() { + return com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo build() { + com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo buildPartial() { + com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo result = new com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo(this); + result.operator_ = operator_; + if (valueBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = valueBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo) { + return mergeFrom((com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo other) { + if (other == com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo.getDefaultInstance()) return this; + if (other.operator_ != 0) { + setOperatorValue(other.getOperatorValue()); + } + if (other.hasValue()) { + mergeValue(other.getValue()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int operator_ = 0; + /** + *
+     * Number comparison operator.
+     * This field is required and must be populated when creating a new number
+     * rule item.
+     * 
+ * + * .google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum.UserListNumberRuleItemOperator operator = 1; + */ + public int getOperatorValue() { + return operator_; + } + /** + *
+     * Number comparison operator.
+     * This field is required and must be populated when creating a new number
+     * rule item.
+     * 
+ * + * .google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum.UserListNumberRuleItemOperator operator = 1; + */ + public Builder setOperatorValue(int value) { + operator_ = value; + onChanged(); + return this; + } + /** + *
+     * Number comparison operator.
+     * This field is required and must be populated when creating a new number
+     * rule item.
+     * 
+ * + * .google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum.UserListNumberRuleItemOperator operator = 1; + */ + public com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum.UserListNumberRuleItemOperator getOperator() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum.UserListNumberRuleItemOperator result = com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum.UserListNumberRuleItemOperator.valueOf(operator_); + return result == null ? com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum.UserListNumberRuleItemOperator.UNRECOGNIZED : result; + } + /** + *
+     * Number comparison operator.
+     * This field is required and must be populated when creating a new number
+     * rule item.
+     * 
+ * + * .google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum.UserListNumberRuleItemOperator operator = 1; + */ + public Builder setOperator(com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum.UserListNumberRuleItemOperator value) { + if (value == null) { + throw new NullPointerException(); + } + + operator_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Number comparison operator.
+     * This field is required and must be populated when creating a new number
+     * rule item.
+     * 
+ * + * .google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum.UserListNumberRuleItemOperator operator = 1; + */ + public Builder clearOperator() { + + operator_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.DoubleValue value_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> valueBuilder_; + /** + *
+     * Number value to be compared with the variable.
+     * This field is required and must be populated when creating a new number
+     * rule item.
+     * 
+ * + * .google.protobuf.DoubleValue value = 2; + */ + public boolean hasValue() { + return valueBuilder_ != null || value_ != null; + } + /** + *
+     * Number value to be compared with the variable.
+     * This field is required and must be populated when creating a new number
+     * rule item.
+     * 
+ * + * .google.protobuf.DoubleValue value = 2; + */ + public com.google.protobuf.DoubleValue getValue() { + if (valueBuilder_ == null) { + return value_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : value_; + } else { + return valueBuilder_.getMessage(); + } + } + /** + *
+     * Number value to be compared with the variable.
+     * This field is required and must be populated when creating a new number
+     * rule item.
+     * 
+ * + * .google.protobuf.DoubleValue value = 2; + */ + public Builder setValue(com.google.protobuf.DoubleValue value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + valueBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Number value to be compared with the variable.
+     * This field is required and must be populated when creating a new number
+     * rule item.
+     * 
+ * + * .google.protobuf.DoubleValue value = 2; + */ + public Builder setValue( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (valueBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + valueBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Number value to be compared with the variable.
+     * This field is required and must be populated when creating a new number
+     * rule item.
+     * 
+ * + * .google.protobuf.DoubleValue value = 2; + */ + public Builder mergeValue(com.google.protobuf.DoubleValue value) { + if (valueBuilder_ == null) { + if (value_ != null) { + value_ = + com.google.protobuf.DoubleValue.newBuilder(value_).mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + valueBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Number value to be compared with the variable.
+     * This field is required and must be populated when creating a new number
+     * rule item.
+     * 
+ * + * .google.protobuf.DoubleValue value = 2; + */ + public Builder clearValue() { + if (valueBuilder_ == null) { + value_ = null; + onChanged(); + } else { + value_ = null; + valueBuilder_ = null; + } + + return this; + } + /** + *
+     * Number value to be compared with the variable.
+     * This field is required and must be populated when creating a new number
+     * rule item.
+     * 
+ * + * .google.protobuf.DoubleValue value = 2; + */ + public com.google.protobuf.DoubleValue.Builder getValueBuilder() { + + onChanged(); + return getValueFieldBuilder().getBuilder(); + } + /** + *
+     * Number value to be compared with the variable.
+     * This field is required and must be populated when creating a new number
+     * rule item.
+     * 
+ * + * .google.protobuf.DoubleValue value = 2; + */ + public com.google.protobuf.DoubleValueOrBuilder getValueOrBuilder() { + if (valueBuilder_ != null) { + return valueBuilder_.getMessageOrBuilder(); + } else { + return value_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : value_; + } + } + /** + *
+     * Number value to be compared with the variable.
+     * This field is required and must be populated when creating a new number
+     * rule item.
+     * 
+ * + * .google.protobuf.DoubleValue value = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> + getValueFieldBuilder() { + if (valueBuilder_ == null) { + valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( + getValue(), + getParentForChildren(), + isClean()); + value_ = null; + } + return valueBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.common.UserListNumberRuleItemInfo) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.common.UserListNumberRuleItemInfo) + private static final com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo(); + } + + public static com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserListNumberRuleItemInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserListNumberRuleItemInfo(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.common.UserListNumberRuleItemInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListNumberRuleItemInfoOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListNumberRuleItemInfoOrBuilder.java new file mode 100644 index 0000000000..07ded60623 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListNumberRuleItemInfoOrBuilder.java @@ -0,0 +1,61 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/user_lists.proto + +package com.google.ads.googleads.v0.common; + +public interface UserListNumberRuleItemInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.common.UserListNumberRuleItemInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Number comparison operator.
+   * This field is required and must be populated when creating a new number
+   * rule item.
+   * 
+ * + * .google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum.UserListNumberRuleItemOperator operator = 1; + */ + int getOperatorValue(); + /** + *
+   * Number comparison operator.
+   * This field is required and must be populated when creating a new number
+   * rule item.
+   * 
+ * + * .google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum.UserListNumberRuleItemOperator operator = 1; + */ + com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum.UserListNumberRuleItemOperator getOperator(); + + /** + *
+   * Number value to be compared with the variable.
+   * This field is required and must be populated when creating a new number
+   * rule item.
+   * 
+ * + * .google.protobuf.DoubleValue value = 2; + */ + boolean hasValue(); + /** + *
+   * Number value to be compared with the variable.
+   * This field is required and must be populated when creating a new number
+   * rule item.
+   * 
+ * + * .google.protobuf.DoubleValue value = 2; + */ + com.google.protobuf.DoubleValue getValue(); + /** + *
+   * Number value to be compared with the variable.
+   * This field is required and must be populated when creating a new number
+   * rule item.
+   * 
+ * + * .google.protobuf.DoubleValue value = 2; + */ + com.google.protobuf.DoubleValueOrBuilder getValueOrBuilder(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListRuleInfo.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListRuleInfo.java new file mode 100644 index 0000000000..cbdebe247d --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListRuleInfo.java @@ -0,0 +1,1035 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/user_lists.proto + +package com.google.ads.googleads.v0.common; + +/** + *
+ * A client defined rule based on custom parameters sent by web sites or
+ * uploaded by the advertiser.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.UserListRuleInfo} + */ +public final class UserListRuleInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.common.UserListRuleInfo) + UserListRuleInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use UserListRuleInfo.newBuilder() to construct. + private UserListRuleInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UserListRuleInfo() { + ruleType_ = 0; + ruleItemGroups_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserListRuleInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + ruleType_ = rawValue; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + ruleItemGroups_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + ruleItemGroups_.add( + input.readMessage(com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + ruleItemGroups_ = java.util.Collections.unmodifiableList(ruleItemGroups_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListRuleInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListRuleInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.UserListRuleInfo.class, com.google.ads.googleads.v0.common.UserListRuleInfo.Builder.class); + } + + private int bitField0_; + public static final int RULE_TYPE_FIELD_NUMBER = 1; + private int ruleType_; + /** + *
+   * Rule type is used to determine how to group rule items.
+   * The default is OR of ANDs (disjunctive normal form).
+   * That is, rule items will be ANDed together within rule item groups and the
+   * groups themselves will be ORed together.
+   * Currently AND of ORs (conjunctive normal form) is only supported for
+   * ExpressionRuleUserList.
+   * 
+ * + * .google.ads.googleads.v0.enums.UserListRuleTypeEnum.UserListRuleType rule_type = 1; + */ + public int getRuleTypeValue() { + return ruleType_; + } + /** + *
+   * Rule type is used to determine how to group rule items.
+   * The default is OR of ANDs (disjunctive normal form).
+   * That is, rule items will be ANDed together within rule item groups and the
+   * groups themselves will be ORed together.
+   * Currently AND of ORs (conjunctive normal form) is only supported for
+   * ExpressionRuleUserList.
+   * 
+ * + * .google.ads.googleads.v0.enums.UserListRuleTypeEnum.UserListRuleType rule_type = 1; + */ + public com.google.ads.googleads.v0.enums.UserListRuleTypeEnum.UserListRuleType getRuleType() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.UserListRuleTypeEnum.UserListRuleType result = com.google.ads.googleads.v0.enums.UserListRuleTypeEnum.UserListRuleType.valueOf(ruleType_); + return result == null ? com.google.ads.googleads.v0.enums.UserListRuleTypeEnum.UserListRuleType.UNRECOGNIZED : result; + } + + public static final int RULE_ITEM_GROUPS_FIELD_NUMBER = 2; + private java.util.List ruleItemGroups_; + /** + *
+   * List of rule item groups that defines this rule.
+   * Rule item groups are grouped together based on rule_type.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemGroupInfo rule_item_groups = 2; + */ + public java.util.List getRuleItemGroupsList() { + return ruleItemGroups_; + } + /** + *
+   * List of rule item groups that defines this rule.
+   * Rule item groups are grouped together based on rule_type.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemGroupInfo rule_item_groups = 2; + */ + public java.util.List + getRuleItemGroupsOrBuilderList() { + return ruleItemGroups_; + } + /** + *
+   * List of rule item groups that defines this rule.
+   * Rule item groups are grouped together based on rule_type.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemGroupInfo rule_item_groups = 2; + */ + public int getRuleItemGroupsCount() { + return ruleItemGroups_.size(); + } + /** + *
+   * List of rule item groups that defines this rule.
+   * Rule item groups are grouped together based on rule_type.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemGroupInfo rule_item_groups = 2; + */ + public com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo getRuleItemGroups(int index) { + return ruleItemGroups_.get(index); + } + /** + *
+   * List of rule item groups that defines this rule.
+   * Rule item groups are grouped together based on rule_type.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemGroupInfo rule_item_groups = 2; + */ + public com.google.ads.googleads.v0.common.UserListRuleItemGroupInfoOrBuilder getRuleItemGroupsOrBuilder( + int index) { + return ruleItemGroups_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (ruleType_ != com.google.ads.googleads.v0.enums.UserListRuleTypeEnum.UserListRuleType.UNSPECIFIED.getNumber()) { + output.writeEnum(1, ruleType_); + } + for (int i = 0; i < ruleItemGroups_.size(); i++) { + output.writeMessage(2, ruleItemGroups_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (ruleType_ != com.google.ads.googleads.v0.enums.UserListRuleTypeEnum.UserListRuleType.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, ruleType_); + } + for (int i = 0; i < ruleItemGroups_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, ruleItemGroups_.get(i)); + } + size += unknownFields.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.ads.googleads.v0.common.UserListRuleInfo)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.common.UserListRuleInfo other = (com.google.ads.googleads.v0.common.UserListRuleInfo) obj; + + boolean result = true; + result = result && ruleType_ == other.ruleType_; + result = result && getRuleItemGroupsList() + .equals(other.getRuleItemGroupsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RULE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + ruleType_; + if (getRuleItemGroupsCount() > 0) { + hash = (37 * hash) + RULE_ITEM_GROUPS_FIELD_NUMBER; + hash = (53 * hash) + getRuleItemGroupsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.common.UserListRuleInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.UserListRuleInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.UserListRuleInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.UserListRuleInfo 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.ads.googleads.v0.common.UserListRuleInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.UserListRuleInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.UserListRuleInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.UserListRuleInfo 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.ads.googleads.v0.common.UserListRuleInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.UserListRuleInfo 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.ads.googleads.v0.common.UserListRuleInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.UserListRuleInfo 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.ads.googleads.v0.common.UserListRuleInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A client defined rule based on custom parameters sent by web sites or
+   * uploaded by the advertiser.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.UserListRuleInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.common.UserListRuleInfo) + com.google.ads.googleads.v0.common.UserListRuleInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListRuleInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListRuleInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.UserListRuleInfo.class, com.google.ads.googleads.v0.common.UserListRuleInfo.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.common.UserListRuleInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getRuleItemGroupsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + ruleType_ = 0; + + if (ruleItemGroupsBuilder_ == null) { + ruleItemGroups_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ruleItemGroupsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListRuleInfo_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.UserListRuleInfo getDefaultInstanceForType() { + return com.google.ads.googleads.v0.common.UserListRuleInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.UserListRuleInfo build() { + com.google.ads.googleads.v0.common.UserListRuleInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.UserListRuleInfo buildPartial() { + com.google.ads.googleads.v0.common.UserListRuleInfo result = new com.google.ads.googleads.v0.common.UserListRuleInfo(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.ruleType_ = ruleType_; + if (ruleItemGroupsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + ruleItemGroups_ = java.util.Collections.unmodifiableList(ruleItemGroups_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.ruleItemGroups_ = ruleItemGroups_; + } else { + result.ruleItemGroups_ = ruleItemGroupsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.common.UserListRuleInfo) { + return mergeFrom((com.google.ads.googleads.v0.common.UserListRuleInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.common.UserListRuleInfo other) { + if (other == com.google.ads.googleads.v0.common.UserListRuleInfo.getDefaultInstance()) return this; + if (other.ruleType_ != 0) { + setRuleTypeValue(other.getRuleTypeValue()); + } + if (ruleItemGroupsBuilder_ == null) { + if (!other.ruleItemGroups_.isEmpty()) { + if (ruleItemGroups_.isEmpty()) { + ruleItemGroups_ = other.ruleItemGroups_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRuleItemGroupsIsMutable(); + ruleItemGroups_.addAll(other.ruleItemGroups_); + } + onChanged(); + } + } else { + if (!other.ruleItemGroups_.isEmpty()) { + if (ruleItemGroupsBuilder_.isEmpty()) { + ruleItemGroupsBuilder_.dispose(); + ruleItemGroupsBuilder_ = null; + ruleItemGroups_ = other.ruleItemGroups_; + bitField0_ = (bitField0_ & ~0x00000002); + ruleItemGroupsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRuleItemGroupsFieldBuilder() : null; + } else { + ruleItemGroupsBuilder_.addAllMessages(other.ruleItemGroups_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.common.UserListRuleInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.common.UserListRuleInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int ruleType_ = 0; + /** + *
+     * Rule type is used to determine how to group rule items.
+     * The default is OR of ANDs (disjunctive normal form).
+     * That is, rule items will be ANDed together within rule item groups and the
+     * groups themselves will be ORed together.
+     * Currently AND of ORs (conjunctive normal form) is only supported for
+     * ExpressionRuleUserList.
+     * 
+ * + * .google.ads.googleads.v0.enums.UserListRuleTypeEnum.UserListRuleType rule_type = 1; + */ + public int getRuleTypeValue() { + return ruleType_; + } + /** + *
+     * Rule type is used to determine how to group rule items.
+     * The default is OR of ANDs (disjunctive normal form).
+     * That is, rule items will be ANDed together within rule item groups and the
+     * groups themselves will be ORed together.
+     * Currently AND of ORs (conjunctive normal form) is only supported for
+     * ExpressionRuleUserList.
+     * 
+ * + * .google.ads.googleads.v0.enums.UserListRuleTypeEnum.UserListRuleType rule_type = 1; + */ + public Builder setRuleTypeValue(int value) { + ruleType_ = value; + onChanged(); + return this; + } + /** + *
+     * Rule type is used to determine how to group rule items.
+     * The default is OR of ANDs (disjunctive normal form).
+     * That is, rule items will be ANDed together within rule item groups and the
+     * groups themselves will be ORed together.
+     * Currently AND of ORs (conjunctive normal form) is only supported for
+     * ExpressionRuleUserList.
+     * 
+ * + * .google.ads.googleads.v0.enums.UserListRuleTypeEnum.UserListRuleType rule_type = 1; + */ + public com.google.ads.googleads.v0.enums.UserListRuleTypeEnum.UserListRuleType getRuleType() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.UserListRuleTypeEnum.UserListRuleType result = com.google.ads.googleads.v0.enums.UserListRuleTypeEnum.UserListRuleType.valueOf(ruleType_); + return result == null ? com.google.ads.googleads.v0.enums.UserListRuleTypeEnum.UserListRuleType.UNRECOGNIZED : result; + } + /** + *
+     * Rule type is used to determine how to group rule items.
+     * The default is OR of ANDs (disjunctive normal form).
+     * That is, rule items will be ANDed together within rule item groups and the
+     * groups themselves will be ORed together.
+     * Currently AND of ORs (conjunctive normal form) is only supported for
+     * ExpressionRuleUserList.
+     * 
+ * + * .google.ads.googleads.v0.enums.UserListRuleTypeEnum.UserListRuleType rule_type = 1; + */ + public Builder setRuleType(com.google.ads.googleads.v0.enums.UserListRuleTypeEnum.UserListRuleType value) { + if (value == null) { + throw new NullPointerException(); + } + + ruleType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Rule type is used to determine how to group rule items.
+     * The default is OR of ANDs (disjunctive normal form).
+     * That is, rule items will be ANDed together within rule item groups and the
+     * groups themselves will be ORed together.
+     * Currently AND of ORs (conjunctive normal form) is only supported for
+     * ExpressionRuleUserList.
+     * 
+ * + * .google.ads.googleads.v0.enums.UserListRuleTypeEnum.UserListRuleType rule_type = 1; + */ + public Builder clearRuleType() { + + ruleType_ = 0; + onChanged(); + return this; + } + + private java.util.List ruleItemGroups_ = + java.util.Collections.emptyList(); + private void ensureRuleItemGroupsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + ruleItemGroups_ = new java.util.ArrayList(ruleItemGroups_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo, com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo.Builder, com.google.ads.googleads.v0.common.UserListRuleItemGroupInfoOrBuilder> ruleItemGroupsBuilder_; + + /** + *
+     * List of rule item groups that defines this rule.
+     * Rule item groups are grouped together based on rule_type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemGroupInfo rule_item_groups = 2; + */ + public java.util.List getRuleItemGroupsList() { + if (ruleItemGroupsBuilder_ == null) { + return java.util.Collections.unmodifiableList(ruleItemGroups_); + } else { + return ruleItemGroupsBuilder_.getMessageList(); + } + } + /** + *
+     * List of rule item groups that defines this rule.
+     * Rule item groups are grouped together based on rule_type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemGroupInfo rule_item_groups = 2; + */ + public int getRuleItemGroupsCount() { + if (ruleItemGroupsBuilder_ == null) { + return ruleItemGroups_.size(); + } else { + return ruleItemGroupsBuilder_.getCount(); + } + } + /** + *
+     * List of rule item groups that defines this rule.
+     * Rule item groups are grouped together based on rule_type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemGroupInfo rule_item_groups = 2; + */ + public com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo getRuleItemGroups(int index) { + if (ruleItemGroupsBuilder_ == null) { + return ruleItemGroups_.get(index); + } else { + return ruleItemGroupsBuilder_.getMessage(index); + } + } + /** + *
+     * List of rule item groups that defines this rule.
+     * Rule item groups are grouped together based on rule_type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemGroupInfo rule_item_groups = 2; + */ + public Builder setRuleItemGroups( + int index, com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo value) { + if (ruleItemGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRuleItemGroupsIsMutable(); + ruleItemGroups_.set(index, value); + onChanged(); + } else { + ruleItemGroupsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * List of rule item groups that defines this rule.
+     * Rule item groups are grouped together based on rule_type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemGroupInfo rule_item_groups = 2; + */ + public Builder setRuleItemGroups( + int index, com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo.Builder builderForValue) { + if (ruleItemGroupsBuilder_ == null) { + ensureRuleItemGroupsIsMutable(); + ruleItemGroups_.set(index, builderForValue.build()); + onChanged(); + } else { + ruleItemGroupsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of rule item groups that defines this rule.
+     * Rule item groups are grouped together based on rule_type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemGroupInfo rule_item_groups = 2; + */ + public Builder addRuleItemGroups(com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo value) { + if (ruleItemGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRuleItemGroupsIsMutable(); + ruleItemGroups_.add(value); + onChanged(); + } else { + ruleItemGroupsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * List of rule item groups that defines this rule.
+     * Rule item groups are grouped together based on rule_type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemGroupInfo rule_item_groups = 2; + */ + public Builder addRuleItemGroups( + int index, com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo value) { + if (ruleItemGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRuleItemGroupsIsMutable(); + ruleItemGroups_.add(index, value); + onChanged(); + } else { + ruleItemGroupsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * List of rule item groups that defines this rule.
+     * Rule item groups are grouped together based on rule_type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemGroupInfo rule_item_groups = 2; + */ + public Builder addRuleItemGroups( + com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo.Builder builderForValue) { + if (ruleItemGroupsBuilder_ == null) { + ensureRuleItemGroupsIsMutable(); + ruleItemGroups_.add(builderForValue.build()); + onChanged(); + } else { + ruleItemGroupsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * List of rule item groups that defines this rule.
+     * Rule item groups are grouped together based on rule_type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemGroupInfo rule_item_groups = 2; + */ + public Builder addRuleItemGroups( + int index, com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo.Builder builderForValue) { + if (ruleItemGroupsBuilder_ == null) { + ensureRuleItemGroupsIsMutable(); + ruleItemGroups_.add(index, builderForValue.build()); + onChanged(); + } else { + ruleItemGroupsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of rule item groups that defines this rule.
+     * Rule item groups are grouped together based on rule_type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemGroupInfo rule_item_groups = 2; + */ + public Builder addAllRuleItemGroups( + java.lang.Iterable values) { + if (ruleItemGroupsBuilder_ == null) { + ensureRuleItemGroupsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ruleItemGroups_); + onChanged(); + } else { + ruleItemGroupsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * List of rule item groups that defines this rule.
+     * Rule item groups are grouped together based on rule_type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemGroupInfo rule_item_groups = 2; + */ + public Builder clearRuleItemGroups() { + if (ruleItemGroupsBuilder_ == null) { + ruleItemGroups_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + ruleItemGroupsBuilder_.clear(); + } + return this; + } + /** + *
+     * List of rule item groups that defines this rule.
+     * Rule item groups are grouped together based on rule_type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemGroupInfo rule_item_groups = 2; + */ + public Builder removeRuleItemGroups(int index) { + if (ruleItemGroupsBuilder_ == null) { + ensureRuleItemGroupsIsMutable(); + ruleItemGroups_.remove(index); + onChanged(); + } else { + ruleItemGroupsBuilder_.remove(index); + } + return this; + } + /** + *
+     * List of rule item groups that defines this rule.
+     * Rule item groups are grouped together based on rule_type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemGroupInfo rule_item_groups = 2; + */ + public com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo.Builder getRuleItemGroupsBuilder( + int index) { + return getRuleItemGroupsFieldBuilder().getBuilder(index); + } + /** + *
+     * List of rule item groups that defines this rule.
+     * Rule item groups are grouped together based on rule_type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemGroupInfo rule_item_groups = 2; + */ + public com.google.ads.googleads.v0.common.UserListRuleItemGroupInfoOrBuilder getRuleItemGroupsOrBuilder( + int index) { + if (ruleItemGroupsBuilder_ == null) { + return ruleItemGroups_.get(index); } else { + return ruleItemGroupsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * List of rule item groups that defines this rule.
+     * Rule item groups are grouped together based on rule_type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemGroupInfo rule_item_groups = 2; + */ + public java.util.List + getRuleItemGroupsOrBuilderList() { + if (ruleItemGroupsBuilder_ != null) { + return ruleItemGroupsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ruleItemGroups_); + } + } + /** + *
+     * List of rule item groups that defines this rule.
+     * Rule item groups are grouped together based on rule_type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemGroupInfo rule_item_groups = 2; + */ + public com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo.Builder addRuleItemGroupsBuilder() { + return getRuleItemGroupsFieldBuilder().addBuilder( + com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo.getDefaultInstance()); + } + /** + *
+     * List of rule item groups that defines this rule.
+     * Rule item groups are grouped together based on rule_type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemGroupInfo rule_item_groups = 2; + */ + public com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo.Builder addRuleItemGroupsBuilder( + int index) { + return getRuleItemGroupsFieldBuilder().addBuilder( + index, com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo.getDefaultInstance()); + } + /** + *
+     * List of rule item groups that defines this rule.
+     * Rule item groups are grouped together based on rule_type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemGroupInfo rule_item_groups = 2; + */ + public java.util.List + getRuleItemGroupsBuilderList() { + return getRuleItemGroupsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo, com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo.Builder, com.google.ads.googleads.v0.common.UserListRuleItemGroupInfoOrBuilder> + getRuleItemGroupsFieldBuilder() { + if (ruleItemGroupsBuilder_ == null) { + ruleItemGroupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo, com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo.Builder, com.google.ads.googleads.v0.common.UserListRuleItemGroupInfoOrBuilder>( + ruleItemGroups_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + ruleItemGroups_ = null; + } + return ruleItemGroupsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.common.UserListRuleInfo) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.common.UserListRuleInfo) + private static final com.google.ads.googleads.v0.common.UserListRuleInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.common.UserListRuleInfo(); + } + + public static com.google.ads.googleads.v0.common.UserListRuleInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserListRuleInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserListRuleInfo(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.common.UserListRuleInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListRuleInfoOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListRuleInfoOrBuilder.java new file mode 100644 index 0000000000..ae42480a0b --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListRuleInfoOrBuilder.java @@ -0,0 +1,85 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/user_lists.proto + +package com.google.ads.googleads.v0.common; + +public interface UserListRuleInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.common.UserListRuleInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Rule type is used to determine how to group rule items.
+   * The default is OR of ANDs (disjunctive normal form).
+   * That is, rule items will be ANDed together within rule item groups and the
+   * groups themselves will be ORed together.
+   * Currently AND of ORs (conjunctive normal form) is only supported for
+   * ExpressionRuleUserList.
+   * 
+ * + * .google.ads.googleads.v0.enums.UserListRuleTypeEnum.UserListRuleType rule_type = 1; + */ + int getRuleTypeValue(); + /** + *
+   * Rule type is used to determine how to group rule items.
+   * The default is OR of ANDs (disjunctive normal form).
+   * That is, rule items will be ANDed together within rule item groups and the
+   * groups themselves will be ORed together.
+   * Currently AND of ORs (conjunctive normal form) is only supported for
+   * ExpressionRuleUserList.
+   * 
+ * + * .google.ads.googleads.v0.enums.UserListRuleTypeEnum.UserListRuleType rule_type = 1; + */ + com.google.ads.googleads.v0.enums.UserListRuleTypeEnum.UserListRuleType getRuleType(); + + /** + *
+   * List of rule item groups that defines this rule.
+   * Rule item groups are grouped together based on rule_type.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemGroupInfo rule_item_groups = 2; + */ + java.util.List + getRuleItemGroupsList(); + /** + *
+   * List of rule item groups that defines this rule.
+   * Rule item groups are grouped together based on rule_type.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemGroupInfo rule_item_groups = 2; + */ + com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo getRuleItemGroups(int index); + /** + *
+   * List of rule item groups that defines this rule.
+   * Rule item groups are grouped together based on rule_type.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemGroupInfo rule_item_groups = 2; + */ + int getRuleItemGroupsCount(); + /** + *
+   * List of rule item groups that defines this rule.
+   * Rule item groups are grouped together based on rule_type.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemGroupInfo rule_item_groups = 2; + */ + java.util.List + getRuleItemGroupsOrBuilderList(); + /** + *
+   * List of rule item groups that defines this rule.
+   * Rule item groups are grouped together based on rule_type.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemGroupInfo rule_item_groups = 2; + */ + com.google.ads.googleads.v0.common.UserListRuleItemGroupInfoOrBuilder getRuleItemGroupsOrBuilder( + int index); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListRuleItemGroupInfo.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListRuleItemGroupInfo.java new file mode 100644 index 0000000000..32700b3d2b --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListRuleItemGroupInfo.java @@ -0,0 +1,859 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/user_lists.proto + +package com.google.ads.googleads.v0.common; + +/** + *
+ * A group of rule items.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.UserListRuleItemGroupInfo} + */ +public final class UserListRuleItemGroupInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.common.UserListRuleItemGroupInfo) + UserListRuleItemGroupInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use UserListRuleItemGroupInfo.newBuilder() to construct. + private UserListRuleItemGroupInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UserListRuleItemGroupInfo() { + ruleItems_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserListRuleItemGroupInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + ruleItems_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + ruleItems_.add( + input.readMessage(com.google.ads.googleads.v0.common.UserListRuleItemInfo.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + ruleItems_ = java.util.Collections.unmodifiableList(ruleItems_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListRuleItemGroupInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListRuleItemGroupInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo.class, com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo.Builder.class); + } + + public static final int RULE_ITEMS_FIELD_NUMBER = 1; + private java.util.List ruleItems_; + /** + *
+   * Rule items that will be grouped together based on rule_type.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemInfo rule_items = 1; + */ + public java.util.List getRuleItemsList() { + return ruleItems_; + } + /** + *
+   * Rule items that will be grouped together based on rule_type.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemInfo rule_items = 1; + */ + public java.util.List + getRuleItemsOrBuilderList() { + return ruleItems_; + } + /** + *
+   * Rule items that will be grouped together based on rule_type.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemInfo rule_items = 1; + */ + public int getRuleItemsCount() { + return ruleItems_.size(); + } + /** + *
+   * Rule items that will be grouped together based on rule_type.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemInfo rule_items = 1; + */ + public com.google.ads.googleads.v0.common.UserListRuleItemInfo getRuleItems(int index) { + return ruleItems_.get(index); + } + /** + *
+   * Rule items that will be grouped together based on rule_type.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemInfo rule_items = 1; + */ + public com.google.ads.googleads.v0.common.UserListRuleItemInfoOrBuilder getRuleItemsOrBuilder( + int index) { + return ruleItems_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < ruleItems_.size(); i++) { + output.writeMessage(1, ruleItems_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < ruleItems_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, ruleItems_.get(i)); + } + size += unknownFields.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.ads.googleads.v0.common.UserListRuleItemGroupInfo)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo other = (com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo) obj; + + boolean result = true; + result = result && getRuleItemsList() + .equals(other.getRuleItemsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getRuleItemsCount() > 0) { + hash = (37 * hash) + RULE_ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getRuleItemsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo 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.ads.googleads.v0.common.UserListRuleItemGroupInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo 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.ads.googleads.v0.common.UserListRuleItemGroupInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo 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.ads.googleads.v0.common.UserListRuleItemGroupInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo 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.ads.googleads.v0.common.UserListRuleItemGroupInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A group of rule items.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.UserListRuleItemGroupInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.common.UserListRuleItemGroupInfo) + com.google.ads.googleads.v0.common.UserListRuleItemGroupInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListRuleItemGroupInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListRuleItemGroupInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo.class, com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getRuleItemsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (ruleItemsBuilder_ == null) { + ruleItems_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ruleItemsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListRuleItemGroupInfo_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo getDefaultInstanceForType() { + return com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo build() { + com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo buildPartial() { + com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo result = new com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo(this); + int from_bitField0_ = bitField0_; + if (ruleItemsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + ruleItems_ = java.util.Collections.unmodifiableList(ruleItems_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.ruleItems_ = ruleItems_; + } else { + result.ruleItems_ = ruleItemsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo) { + return mergeFrom((com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo other) { + if (other == com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo.getDefaultInstance()) return this; + if (ruleItemsBuilder_ == null) { + if (!other.ruleItems_.isEmpty()) { + if (ruleItems_.isEmpty()) { + ruleItems_ = other.ruleItems_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRuleItemsIsMutable(); + ruleItems_.addAll(other.ruleItems_); + } + onChanged(); + } + } else { + if (!other.ruleItems_.isEmpty()) { + if (ruleItemsBuilder_.isEmpty()) { + ruleItemsBuilder_.dispose(); + ruleItemsBuilder_ = null; + ruleItems_ = other.ruleItems_; + bitField0_ = (bitField0_ & ~0x00000001); + ruleItemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRuleItemsFieldBuilder() : null; + } else { + ruleItemsBuilder_.addAllMessages(other.ruleItems_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List ruleItems_ = + java.util.Collections.emptyList(); + private void ensureRuleItemsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + ruleItems_ = new java.util.ArrayList(ruleItems_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.common.UserListRuleItemInfo, com.google.ads.googleads.v0.common.UserListRuleItemInfo.Builder, com.google.ads.googleads.v0.common.UserListRuleItemInfoOrBuilder> ruleItemsBuilder_; + + /** + *
+     * Rule items that will be grouped together based on rule_type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemInfo rule_items = 1; + */ + public java.util.List getRuleItemsList() { + if (ruleItemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(ruleItems_); + } else { + return ruleItemsBuilder_.getMessageList(); + } + } + /** + *
+     * Rule items that will be grouped together based on rule_type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemInfo rule_items = 1; + */ + public int getRuleItemsCount() { + if (ruleItemsBuilder_ == null) { + return ruleItems_.size(); + } else { + return ruleItemsBuilder_.getCount(); + } + } + /** + *
+     * Rule items that will be grouped together based on rule_type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemInfo rule_items = 1; + */ + public com.google.ads.googleads.v0.common.UserListRuleItemInfo getRuleItems(int index) { + if (ruleItemsBuilder_ == null) { + return ruleItems_.get(index); + } else { + return ruleItemsBuilder_.getMessage(index); + } + } + /** + *
+     * Rule items that will be grouped together based on rule_type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemInfo rule_items = 1; + */ + public Builder setRuleItems( + int index, com.google.ads.googleads.v0.common.UserListRuleItemInfo value) { + if (ruleItemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRuleItemsIsMutable(); + ruleItems_.set(index, value); + onChanged(); + } else { + ruleItemsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Rule items that will be grouped together based on rule_type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemInfo rule_items = 1; + */ + public Builder setRuleItems( + int index, com.google.ads.googleads.v0.common.UserListRuleItemInfo.Builder builderForValue) { + if (ruleItemsBuilder_ == null) { + ensureRuleItemsIsMutable(); + ruleItems_.set(index, builderForValue.build()); + onChanged(); + } else { + ruleItemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Rule items that will be grouped together based on rule_type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemInfo rule_items = 1; + */ + public Builder addRuleItems(com.google.ads.googleads.v0.common.UserListRuleItemInfo value) { + if (ruleItemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRuleItemsIsMutable(); + ruleItems_.add(value); + onChanged(); + } else { + ruleItemsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Rule items that will be grouped together based on rule_type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemInfo rule_items = 1; + */ + public Builder addRuleItems( + int index, com.google.ads.googleads.v0.common.UserListRuleItemInfo value) { + if (ruleItemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRuleItemsIsMutable(); + ruleItems_.add(index, value); + onChanged(); + } else { + ruleItemsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Rule items that will be grouped together based on rule_type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemInfo rule_items = 1; + */ + public Builder addRuleItems( + com.google.ads.googleads.v0.common.UserListRuleItemInfo.Builder builderForValue) { + if (ruleItemsBuilder_ == null) { + ensureRuleItemsIsMutable(); + ruleItems_.add(builderForValue.build()); + onChanged(); + } else { + ruleItemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Rule items that will be grouped together based on rule_type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemInfo rule_items = 1; + */ + public Builder addRuleItems( + int index, com.google.ads.googleads.v0.common.UserListRuleItemInfo.Builder builderForValue) { + if (ruleItemsBuilder_ == null) { + ensureRuleItemsIsMutable(); + ruleItems_.add(index, builderForValue.build()); + onChanged(); + } else { + ruleItemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Rule items that will be grouped together based on rule_type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemInfo rule_items = 1; + */ + public Builder addAllRuleItems( + java.lang.Iterable values) { + if (ruleItemsBuilder_ == null) { + ensureRuleItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ruleItems_); + onChanged(); + } else { + ruleItemsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Rule items that will be grouped together based on rule_type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemInfo rule_items = 1; + */ + public Builder clearRuleItems() { + if (ruleItemsBuilder_ == null) { + ruleItems_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + ruleItemsBuilder_.clear(); + } + return this; + } + /** + *
+     * Rule items that will be grouped together based on rule_type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemInfo rule_items = 1; + */ + public Builder removeRuleItems(int index) { + if (ruleItemsBuilder_ == null) { + ensureRuleItemsIsMutable(); + ruleItems_.remove(index); + onChanged(); + } else { + ruleItemsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Rule items that will be grouped together based on rule_type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemInfo rule_items = 1; + */ + public com.google.ads.googleads.v0.common.UserListRuleItemInfo.Builder getRuleItemsBuilder( + int index) { + return getRuleItemsFieldBuilder().getBuilder(index); + } + /** + *
+     * Rule items that will be grouped together based on rule_type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemInfo rule_items = 1; + */ + public com.google.ads.googleads.v0.common.UserListRuleItemInfoOrBuilder getRuleItemsOrBuilder( + int index) { + if (ruleItemsBuilder_ == null) { + return ruleItems_.get(index); } else { + return ruleItemsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Rule items that will be grouped together based on rule_type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemInfo rule_items = 1; + */ + public java.util.List + getRuleItemsOrBuilderList() { + if (ruleItemsBuilder_ != null) { + return ruleItemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ruleItems_); + } + } + /** + *
+     * Rule items that will be grouped together based on rule_type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemInfo rule_items = 1; + */ + public com.google.ads.googleads.v0.common.UserListRuleItemInfo.Builder addRuleItemsBuilder() { + return getRuleItemsFieldBuilder().addBuilder( + com.google.ads.googleads.v0.common.UserListRuleItemInfo.getDefaultInstance()); + } + /** + *
+     * Rule items that will be grouped together based on rule_type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemInfo rule_items = 1; + */ + public com.google.ads.googleads.v0.common.UserListRuleItemInfo.Builder addRuleItemsBuilder( + int index) { + return getRuleItemsFieldBuilder().addBuilder( + index, com.google.ads.googleads.v0.common.UserListRuleItemInfo.getDefaultInstance()); + } + /** + *
+     * Rule items that will be grouped together based on rule_type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemInfo rule_items = 1; + */ + public java.util.List + getRuleItemsBuilderList() { + return getRuleItemsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.common.UserListRuleItemInfo, com.google.ads.googleads.v0.common.UserListRuleItemInfo.Builder, com.google.ads.googleads.v0.common.UserListRuleItemInfoOrBuilder> + getRuleItemsFieldBuilder() { + if (ruleItemsBuilder_ == null) { + ruleItemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.common.UserListRuleItemInfo, com.google.ads.googleads.v0.common.UserListRuleItemInfo.Builder, com.google.ads.googleads.v0.common.UserListRuleItemInfoOrBuilder>( + ruleItems_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + ruleItems_ = null; + } + return ruleItemsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.common.UserListRuleItemGroupInfo) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.common.UserListRuleItemGroupInfo) + private static final com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo(); + } + + public static com.google.ads.googleads.v0.common.UserListRuleItemGroupInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserListRuleItemGroupInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserListRuleItemGroupInfo(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.common.UserListRuleItemGroupInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListRuleItemGroupInfoOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListRuleItemGroupInfoOrBuilder.java new file mode 100644 index 0000000000..6a74e5a159 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListRuleItemGroupInfoOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/user_lists.proto + +package com.google.ads.googleads.v0.common; + +public interface UserListRuleItemGroupInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.common.UserListRuleItemGroupInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Rule items that will be grouped together based on rule_type.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemInfo rule_items = 1; + */ + java.util.List + getRuleItemsList(); + /** + *
+   * Rule items that will be grouped together based on rule_type.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemInfo rule_items = 1; + */ + com.google.ads.googleads.v0.common.UserListRuleItemInfo getRuleItems(int index); + /** + *
+   * Rule items that will be grouped together based on rule_type.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemInfo rule_items = 1; + */ + int getRuleItemsCount(); + /** + *
+   * Rule items that will be grouped together based on rule_type.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemInfo rule_items = 1; + */ + java.util.List + getRuleItemsOrBuilderList(); + /** + *
+   * Rule items that will be grouped together based on rule_type.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.UserListRuleItemInfo rule_items = 1; + */ + com.google.ads.googleads.v0.common.UserListRuleItemInfoOrBuilder getRuleItemsOrBuilder( + int index); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListRuleItemInfo.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListRuleItemInfo.java new file mode 100644 index 0000000000..e337945178 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListRuleItemInfo.java @@ -0,0 +1,1559 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/user_lists.proto + +package com.google.ads.googleads.v0.common; + +/** + *
+ * An atomic rule fragment.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.UserListRuleItemInfo} + */ +public final class UserListRuleItemInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.common.UserListRuleItemInfo) + UserListRuleItemInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use UserListRuleItemInfo.newBuilder() to construct. + private UserListRuleItemInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UserListRuleItemInfo() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserListRuleItemInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (name_ != null) { + subBuilder = name_.toBuilder(); + } + name_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(name_); + name_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo.Builder subBuilder = null; + if (ruleItemCase_ == 2) { + subBuilder = ((com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo) ruleItem_).toBuilder(); + } + ruleItem_ = + input.readMessage(com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo) ruleItem_); + ruleItem_ = subBuilder.buildPartial(); + } + ruleItemCase_ = 2; + break; + } + case 26: { + com.google.ads.googleads.v0.common.UserListStringRuleItemInfo.Builder subBuilder = null; + if (ruleItemCase_ == 3) { + subBuilder = ((com.google.ads.googleads.v0.common.UserListStringRuleItemInfo) ruleItem_).toBuilder(); + } + ruleItem_ = + input.readMessage(com.google.ads.googleads.v0.common.UserListStringRuleItemInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.ads.googleads.v0.common.UserListStringRuleItemInfo) ruleItem_); + ruleItem_ = subBuilder.buildPartial(); + } + ruleItemCase_ = 3; + break; + } + case 34: { + com.google.ads.googleads.v0.common.UserListDateRuleItemInfo.Builder subBuilder = null; + if (ruleItemCase_ == 4) { + subBuilder = ((com.google.ads.googleads.v0.common.UserListDateRuleItemInfo) ruleItem_).toBuilder(); + } + ruleItem_ = + input.readMessage(com.google.ads.googleads.v0.common.UserListDateRuleItemInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.ads.googleads.v0.common.UserListDateRuleItemInfo) ruleItem_); + ruleItem_ = subBuilder.buildPartial(); + } + ruleItemCase_ = 4; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListRuleItemInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListRuleItemInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.UserListRuleItemInfo.class, com.google.ads.googleads.v0.common.UserListRuleItemInfo.Builder.class); + } + + private int ruleItemCase_ = 0; + private java.lang.Object ruleItem_; + public enum RuleItemCase + implements com.google.protobuf.Internal.EnumLite { + NUMBER_RULE_ITEM(2), + STRING_RULE_ITEM(3), + DATE_RULE_ITEM(4), + RULEITEM_NOT_SET(0); + private final int value; + private RuleItemCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RuleItemCase valueOf(int value) { + return forNumber(value); + } + + public static RuleItemCase forNumber(int value) { + switch (value) { + case 2: return NUMBER_RULE_ITEM; + case 3: return STRING_RULE_ITEM; + case 4: return DATE_RULE_ITEM; + case 0: return RULEITEM_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public RuleItemCase + getRuleItemCase() { + return RuleItemCase.forNumber( + ruleItemCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + private com.google.protobuf.StringValue name_; + /** + *
+   * Rule variable name. It should match the corresponding key name fired
+   * by the pixel.
+   * A name must begin with US-ascii letters or underscore or UTF8 code that is
+   * greater than 127 and consist of US-ascii letters or digits or underscore or
+   * UTF8 code that is greater than 127.
+   * For websites, there are two built-in variable URL (name = 'url__') and
+   * referrer URL (name = 'ref_url__').
+   * This field must be populated when creating a new rule item.
+   * 
+ * + * .google.protobuf.StringValue name = 1; + */ + public boolean hasName() { + return name_ != null; + } + /** + *
+   * Rule variable name. It should match the corresponding key name fired
+   * by the pixel.
+   * A name must begin with US-ascii letters or underscore or UTF8 code that is
+   * greater than 127 and consist of US-ascii letters or digits or underscore or
+   * UTF8 code that is greater than 127.
+   * For websites, there are two built-in variable URL (name = 'url__') and
+   * referrer URL (name = 'ref_url__').
+   * This field must be populated when creating a new rule item.
+   * 
+ * + * .google.protobuf.StringValue name = 1; + */ + public com.google.protobuf.StringValue getName() { + return name_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : name_; + } + /** + *
+   * Rule variable name. It should match the corresponding key name fired
+   * by the pixel.
+   * A name must begin with US-ascii letters or underscore or UTF8 code that is
+   * greater than 127 and consist of US-ascii letters or digits or underscore or
+   * UTF8 code that is greater than 127.
+   * For websites, there are two built-in variable URL (name = 'url__') and
+   * referrer URL (name = 'ref_url__').
+   * This field must be populated when creating a new rule item.
+   * 
+ * + * .google.protobuf.StringValue name = 1; + */ + public com.google.protobuf.StringValueOrBuilder getNameOrBuilder() { + return getName(); + } + + public static final int NUMBER_RULE_ITEM_FIELD_NUMBER = 2; + /** + *
+   * An atomic rule fragment composed of a number operation.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListNumberRuleItemInfo number_rule_item = 2; + */ + public boolean hasNumberRuleItem() { + return ruleItemCase_ == 2; + } + /** + *
+   * An atomic rule fragment composed of a number operation.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListNumberRuleItemInfo number_rule_item = 2; + */ + public com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo getNumberRuleItem() { + if (ruleItemCase_ == 2) { + return (com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo) ruleItem_; + } + return com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo.getDefaultInstance(); + } + /** + *
+   * An atomic rule fragment composed of a number operation.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListNumberRuleItemInfo number_rule_item = 2; + */ + public com.google.ads.googleads.v0.common.UserListNumberRuleItemInfoOrBuilder getNumberRuleItemOrBuilder() { + if (ruleItemCase_ == 2) { + return (com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo) ruleItem_; + } + return com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo.getDefaultInstance(); + } + + public static final int STRING_RULE_ITEM_FIELD_NUMBER = 3; + /** + *
+   * An atomic rule fragment composed of a string operation.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListStringRuleItemInfo string_rule_item = 3; + */ + public boolean hasStringRuleItem() { + return ruleItemCase_ == 3; + } + /** + *
+   * An atomic rule fragment composed of a string operation.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListStringRuleItemInfo string_rule_item = 3; + */ + public com.google.ads.googleads.v0.common.UserListStringRuleItemInfo getStringRuleItem() { + if (ruleItemCase_ == 3) { + return (com.google.ads.googleads.v0.common.UserListStringRuleItemInfo) ruleItem_; + } + return com.google.ads.googleads.v0.common.UserListStringRuleItemInfo.getDefaultInstance(); + } + /** + *
+   * An atomic rule fragment composed of a string operation.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListStringRuleItemInfo string_rule_item = 3; + */ + public com.google.ads.googleads.v0.common.UserListStringRuleItemInfoOrBuilder getStringRuleItemOrBuilder() { + if (ruleItemCase_ == 3) { + return (com.google.ads.googleads.v0.common.UserListStringRuleItemInfo) ruleItem_; + } + return com.google.ads.googleads.v0.common.UserListStringRuleItemInfo.getDefaultInstance(); + } + + public static final int DATE_RULE_ITEM_FIELD_NUMBER = 4; + /** + *
+   * An atomic rule fragment composed of a date operation.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListDateRuleItemInfo date_rule_item = 4; + */ + public boolean hasDateRuleItem() { + return ruleItemCase_ == 4; + } + /** + *
+   * An atomic rule fragment composed of a date operation.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListDateRuleItemInfo date_rule_item = 4; + */ + public com.google.ads.googleads.v0.common.UserListDateRuleItemInfo getDateRuleItem() { + if (ruleItemCase_ == 4) { + return (com.google.ads.googleads.v0.common.UserListDateRuleItemInfo) ruleItem_; + } + return com.google.ads.googleads.v0.common.UserListDateRuleItemInfo.getDefaultInstance(); + } + /** + *
+   * An atomic rule fragment composed of a date operation.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListDateRuleItemInfo date_rule_item = 4; + */ + public com.google.ads.googleads.v0.common.UserListDateRuleItemInfoOrBuilder getDateRuleItemOrBuilder() { + if (ruleItemCase_ == 4) { + return (com.google.ads.googleads.v0.common.UserListDateRuleItemInfo) ruleItem_; + } + return com.google.ads.googleads.v0.common.UserListDateRuleItemInfo.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (name_ != null) { + output.writeMessage(1, getName()); + } + if (ruleItemCase_ == 2) { + output.writeMessage(2, (com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo) ruleItem_); + } + if (ruleItemCase_ == 3) { + output.writeMessage(3, (com.google.ads.googleads.v0.common.UserListStringRuleItemInfo) ruleItem_); + } + if (ruleItemCase_ == 4) { + output.writeMessage(4, (com.google.ads.googleads.v0.common.UserListDateRuleItemInfo) ruleItem_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (name_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getName()); + } + if (ruleItemCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo) ruleItem_); + } + if (ruleItemCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.ads.googleads.v0.common.UserListStringRuleItemInfo) ruleItem_); + } + if (ruleItemCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.ads.googleads.v0.common.UserListDateRuleItemInfo) ruleItem_); + } + size += unknownFields.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.ads.googleads.v0.common.UserListRuleItemInfo)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.common.UserListRuleItemInfo other = (com.google.ads.googleads.v0.common.UserListRuleItemInfo) obj; + + boolean result = true; + result = result && (hasName() == other.hasName()); + if (hasName()) { + result = result && getName() + .equals(other.getName()); + } + result = result && getRuleItemCase().equals( + other.getRuleItemCase()); + if (!result) return false; + switch (ruleItemCase_) { + case 2: + result = result && getNumberRuleItem() + .equals(other.getNumberRuleItem()); + break; + case 3: + result = result && getStringRuleItem() + .equals(other.getStringRuleItem()); + break; + case 4: + result = result && getDateRuleItem() + .equals(other.getDateRuleItem()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + switch (ruleItemCase_) { + case 2: + hash = (37 * hash) + NUMBER_RULE_ITEM_FIELD_NUMBER; + hash = (53 * hash) + getNumberRuleItem().hashCode(); + break; + case 3: + hash = (37 * hash) + STRING_RULE_ITEM_FIELD_NUMBER; + hash = (53 * hash) + getStringRuleItem().hashCode(); + break; + case 4: + hash = (37 * hash) + DATE_RULE_ITEM_FIELD_NUMBER; + hash = (53 * hash) + getDateRuleItem().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.common.UserListRuleItemInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.UserListRuleItemInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.UserListRuleItemInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.UserListRuleItemInfo 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.ads.googleads.v0.common.UserListRuleItemInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.UserListRuleItemInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.UserListRuleItemInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.UserListRuleItemInfo 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.ads.googleads.v0.common.UserListRuleItemInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.UserListRuleItemInfo 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.ads.googleads.v0.common.UserListRuleItemInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.UserListRuleItemInfo 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.ads.googleads.v0.common.UserListRuleItemInfo 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; + } + /** + *
+   * An atomic rule fragment.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.UserListRuleItemInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.common.UserListRuleItemInfo) + com.google.ads.googleads.v0.common.UserListRuleItemInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListRuleItemInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListRuleItemInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.UserListRuleItemInfo.class, com.google.ads.googleads.v0.common.UserListRuleItemInfo.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.common.UserListRuleItemInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (nameBuilder_ == null) { + name_ = null; + } else { + name_ = null; + nameBuilder_ = null; + } + ruleItemCase_ = 0; + ruleItem_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListRuleItemInfo_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.UserListRuleItemInfo getDefaultInstanceForType() { + return com.google.ads.googleads.v0.common.UserListRuleItemInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.UserListRuleItemInfo build() { + com.google.ads.googleads.v0.common.UserListRuleItemInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.UserListRuleItemInfo buildPartial() { + com.google.ads.googleads.v0.common.UserListRuleItemInfo result = new com.google.ads.googleads.v0.common.UserListRuleItemInfo(this); + if (nameBuilder_ == null) { + result.name_ = name_; + } else { + result.name_ = nameBuilder_.build(); + } + if (ruleItemCase_ == 2) { + if (numberRuleItemBuilder_ == null) { + result.ruleItem_ = ruleItem_; + } else { + result.ruleItem_ = numberRuleItemBuilder_.build(); + } + } + if (ruleItemCase_ == 3) { + if (stringRuleItemBuilder_ == null) { + result.ruleItem_ = ruleItem_; + } else { + result.ruleItem_ = stringRuleItemBuilder_.build(); + } + } + if (ruleItemCase_ == 4) { + if (dateRuleItemBuilder_ == null) { + result.ruleItem_ = ruleItem_; + } else { + result.ruleItem_ = dateRuleItemBuilder_.build(); + } + } + result.ruleItemCase_ = ruleItemCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.common.UserListRuleItemInfo) { + return mergeFrom((com.google.ads.googleads.v0.common.UserListRuleItemInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.common.UserListRuleItemInfo other) { + if (other == com.google.ads.googleads.v0.common.UserListRuleItemInfo.getDefaultInstance()) return this; + if (other.hasName()) { + mergeName(other.getName()); + } + switch (other.getRuleItemCase()) { + case NUMBER_RULE_ITEM: { + mergeNumberRuleItem(other.getNumberRuleItem()); + break; + } + case STRING_RULE_ITEM: { + mergeStringRuleItem(other.getStringRuleItem()); + break; + } + case DATE_RULE_ITEM: { + mergeDateRuleItem(other.getDateRuleItem()); + break; + } + case RULEITEM_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.common.UserListRuleItemInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.common.UserListRuleItemInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int ruleItemCase_ = 0; + private java.lang.Object ruleItem_; + public RuleItemCase + getRuleItemCase() { + return RuleItemCase.forNumber( + ruleItemCase_); + } + + public Builder clearRuleItem() { + ruleItemCase_ = 0; + ruleItem_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.StringValue name_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> nameBuilder_; + /** + *
+     * Rule variable name. It should match the corresponding key name fired
+     * by the pixel.
+     * A name must begin with US-ascii letters or underscore or UTF8 code that is
+     * greater than 127 and consist of US-ascii letters or digits or underscore or
+     * UTF8 code that is greater than 127.
+     * For websites, there are two built-in variable URL (name = 'url__') and
+     * referrer URL (name = 'ref_url__').
+     * This field must be populated when creating a new rule item.
+     * 
+ * + * .google.protobuf.StringValue name = 1; + */ + public boolean hasName() { + return nameBuilder_ != null || name_ != null; + } + /** + *
+     * Rule variable name. It should match the corresponding key name fired
+     * by the pixel.
+     * A name must begin with US-ascii letters or underscore or UTF8 code that is
+     * greater than 127 and consist of US-ascii letters or digits or underscore or
+     * UTF8 code that is greater than 127.
+     * For websites, there are two built-in variable URL (name = 'url__') and
+     * referrer URL (name = 'ref_url__').
+     * This field must be populated when creating a new rule item.
+     * 
+ * + * .google.protobuf.StringValue name = 1; + */ + public com.google.protobuf.StringValue getName() { + if (nameBuilder_ == null) { + return name_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : name_; + } else { + return nameBuilder_.getMessage(); + } + } + /** + *
+     * Rule variable name. It should match the corresponding key name fired
+     * by the pixel.
+     * A name must begin with US-ascii letters or underscore or UTF8 code that is
+     * greater than 127 and consist of US-ascii letters or digits or underscore or
+     * UTF8 code that is greater than 127.
+     * For websites, there are two built-in variable URL (name = 'url__') and
+     * referrer URL (name = 'ref_url__').
+     * This field must be populated when creating a new rule item.
+     * 
+ * + * .google.protobuf.StringValue name = 1; + */ + public Builder setName(com.google.protobuf.StringValue value) { + if (nameBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + onChanged(); + } else { + nameBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Rule variable name. It should match the corresponding key name fired
+     * by the pixel.
+     * A name must begin with US-ascii letters or underscore or UTF8 code that is
+     * greater than 127 and consist of US-ascii letters or digits or underscore or
+     * UTF8 code that is greater than 127.
+     * For websites, there are two built-in variable URL (name = 'url__') and
+     * referrer URL (name = 'ref_url__').
+     * This field must be populated when creating a new rule item.
+     * 
+ * + * .google.protobuf.StringValue name = 1; + */ + public Builder setName( + com.google.protobuf.StringValue.Builder builderForValue) { + if (nameBuilder_ == null) { + name_ = builderForValue.build(); + onChanged(); + } else { + nameBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Rule variable name. It should match the corresponding key name fired
+     * by the pixel.
+     * A name must begin with US-ascii letters or underscore or UTF8 code that is
+     * greater than 127 and consist of US-ascii letters or digits or underscore or
+     * UTF8 code that is greater than 127.
+     * For websites, there are two built-in variable URL (name = 'url__') and
+     * referrer URL (name = 'ref_url__').
+     * This field must be populated when creating a new rule item.
+     * 
+ * + * .google.protobuf.StringValue name = 1; + */ + public Builder mergeName(com.google.protobuf.StringValue value) { + if (nameBuilder_ == null) { + if (name_ != null) { + name_ = + com.google.protobuf.StringValue.newBuilder(name_).mergeFrom(value).buildPartial(); + } else { + name_ = value; + } + onChanged(); + } else { + nameBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Rule variable name. It should match the corresponding key name fired
+     * by the pixel.
+     * A name must begin with US-ascii letters or underscore or UTF8 code that is
+     * greater than 127 and consist of US-ascii letters or digits or underscore or
+     * UTF8 code that is greater than 127.
+     * For websites, there are two built-in variable URL (name = 'url__') and
+     * referrer URL (name = 'ref_url__').
+     * This field must be populated when creating a new rule item.
+     * 
+ * + * .google.protobuf.StringValue name = 1; + */ + public Builder clearName() { + if (nameBuilder_ == null) { + name_ = null; + onChanged(); + } else { + name_ = null; + nameBuilder_ = null; + } + + return this; + } + /** + *
+     * Rule variable name. It should match the corresponding key name fired
+     * by the pixel.
+     * A name must begin with US-ascii letters or underscore or UTF8 code that is
+     * greater than 127 and consist of US-ascii letters or digits or underscore or
+     * UTF8 code that is greater than 127.
+     * For websites, there are two built-in variable URL (name = 'url__') and
+     * referrer URL (name = 'ref_url__').
+     * This field must be populated when creating a new rule item.
+     * 
+ * + * .google.protobuf.StringValue name = 1; + */ + public com.google.protobuf.StringValue.Builder getNameBuilder() { + + onChanged(); + return getNameFieldBuilder().getBuilder(); + } + /** + *
+     * Rule variable name. It should match the corresponding key name fired
+     * by the pixel.
+     * A name must begin with US-ascii letters or underscore or UTF8 code that is
+     * greater than 127 and consist of US-ascii letters or digits or underscore or
+     * UTF8 code that is greater than 127.
+     * For websites, there are two built-in variable URL (name = 'url__') and
+     * referrer URL (name = 'ref_url__').
+     * This field must be populated when creating a new rule item.
+     * 
+ * + * .google.protobuf.StringValue name = 1; + */ + public com.google.protobuf.StringValueOrBuilder getNameOrBuilder() { + if (nameBuilder_ != null) { + return nameBuilder_.getMessageOrBuilder(); + } else { + return name_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : name_; + } + } + /** + *
+     * Rule variable name. It should match the corresponding key name fired
+     * by the pixel.
+     * A name must begin with US-ascii letters or underscore or UTF8 code that is
+     * greater than 127 and consist of US-ascii letters or digits or underscore or
+     * UTF8 code that is greater than 127.
+     * For websites, there are two built-in variable URL (name = 'url__') and
+     * referrer URL (name = 'ref_url__').
+     * This field must be populated when creating a new rule item.
+     * 
+ * + * .google.protobuf.StringValue name = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getNameFieldBuilder() { + if (nameBuilder_ == null) { + nameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getName(), + getParentForChildren(), + isClean()); + name_ = null; + } + return nameBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo, com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo.Builder, com.google.ads.googleads.v0.common.UserListNumberRuleItemInfoOrBuilder> numberRuleItemBuilder_; + /** + *
+     * An atomic rule fragment composed of a number operation.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListNumberRuleItemInfo number_rule_item = 2; + */ + public boolean hasNumberRuleItem() { + return ruleItemCase_ == 2; + } + /** + *
+     * An atomic rule fragment composed of a number operation.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListNumberRuleItemInfo number_rule_item = 2; + */ + public com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo getNumberRuleItem() { + if (numberRuleItemBuilder_ == null) { + if (ruleItemCase_ == 2) { + return (com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo) ruleItem_; + } + return com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo.getDefaultInstance(); + } else { + if (ruleItemCase_ == 2) { + return numberRuleItemBuilder_.getMessage(); + } + return com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo.getDefaultInstance(); + } + } + /** + *
+     * An atomic rule fragment composed of a number operation.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListNumberRuleItemInfo number_rule_item = 2; + */ + public Builder setNumberRuleItem(com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo value) { + if (numberRuleItemBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ruleItem_ = value; + onChanged(); + } else { + numberRuleItemBuilder_.setMessage(value); + } + ruleItemCase_ = 2; + return this; + } + /** + *
+     * An atomic rule fragment composed of a number operation.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListNumberRuleItemInfo number_rule_item = 2; + */ + public Builder setNumberRuleItem( + com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo.Builder builderForValue) { + if (numberRuleItemBuilder_ == null) { + ruleItem_ = builderForValue.build(); + onChanged(); + } else { + numberRuleItemBuilder_.setMessage(builderForValue.build()); + } + ruleItemCase_ = 2; + return this; + } + /** + *
+     * An atomic rule fragment composed of a number operation.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListNumberRuleItemInfo number_rule_item = 2; + */ + public Builder mergeNumberRuleItem(com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo value) { + if (numberRuleItemBuilder_ == null) { + if (ruleItemCase_ == 2 && + ruleItem_ != com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo.getDefaultInstance()) { + ruleItem_ = com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo.newBuilder((com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo) ruleItem_) + .mergeFrom(value).buildPartial(); + } else { + ruleItem_ = value; + } + onChanged(); + } else { + if (ruleItemCase_ == 2) { + numberRuleItemBuilder_.mergeFrom(value); + } + numberRuleItemBuilder_.setMessage(value); + } + ruleItemCase_ = 2; + return this; + } + /** + *
+     * An atomic rule fragment composed of a number operation.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListNumberRuleItemInfo number_rule_item = 2; + */ + public Builder clearNumberRuleItem() { + if (numberRuleItemBuilder_ == null) { + if (ruleItemCase_ == 2) { + ruleItemCase_ = 0; + ruleItem_ = null; + onChanged(); + } + } else { + if (ruleItemCase_ == 2) { + ruleItemCase_ = 0; + ruleItem_ = null; + } + numberRuleItemBuilder_.clear(); + } + return this; + } + /** + *
+     * An atomic rule fragment composed of a number operation.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListNumberRuleItemInfo number_rule_item = 2; + */ + public com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo.Builder getNumberRuleItemBuilder() { + return getNumberRuleItemFieldBuilder().getBuilder(); + } + /** + *
+     * An atomic rule fragment composed of a number operation.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListNumberRuleItemInfo number_rule_item = 2; + */ + public com.google.ads.googleads.v0.common.UserListNumberRuleItemInfoOrBuilder getNumberRuleItemOrBuilder() { + if ((ruleItemCase_ == 2) && (numberRuleItemBuilder_ != null)) { + return numberRuleItemBuilder_.getMessageOrBuilder(); + } else { + if (ruleItemCase_ == 2) { + return (com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo) ruleItem_; + } + return com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo.getDefaultInstance(); + } + } + /** + *
+     * An atomic rule fragment composed of a number operation.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListNumberRuleItemInfo number_rule_item = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo, com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo.Builder, com.google.ads.googleads.v0.common.UserListNumberRuleItemInfoOrBuilder> + getNumberRuleItemFieldBuilder() { + if (numberRuleItemBuilder_ == null) { + if (!(ruleItemCase_ == 2)) { + ruleItem_ = com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo.getDefaultInstance(); + } + numberRuleItemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo, com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo.Builder, com.google.ads.googleads.v0.common.UserListNumberRuleItemInfoOrBuilder>( + (com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo) ruleItem_, + getParentForChildren(), + isClean()); + ruleItem_ = null; + } + ruleItemCase_ = 2; + onChanged();; + return numberRuleItemBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.UserListStringRuleItemInfo, com.google.ads.googleads.v0.common.UserListStringRuleItemInfo.Builder, com.google.ads.googleads.v0.common.UserListStringRuleItemInfoOrBuilder> stringRuleItemBuilder_; + /** + *
+     * An atomic rule fragment composed of a string operation.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListStringRuleItemInfo string_rule_item = 3; + */ + public boolean hasStringRuleItem() { + return ruleItemCase_ == 3; + } + /** + *
+     * An atomic rule fragment composed of a string operation.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListStringRuleItemInfo string_rule_item = 3; + */ + public com.google.ads.googleads.v0.common.UserListStringRuleItemInfo getStringRuleItem() { + if (stringRuleItemBuilder_ == null) { + if (ruleItemCase_ == 3) { + return (com.google.ads.googleads.v0.common.UserListStringRuleItemInfo) ruleItem_; + } + return com.google.ads.googleads.v0.common.UserListStringRuleItemInfo.getDefaultInstance(); + } else { + if (ruleItemCase_ == 3) { + return stringRuleItemBuilder_.getMessage(); + } + return com.google.ads.googleads.v0.common.UserListStringRuleItemInfo.getDefaultInstance(); + } + } + /** + *
+     * An atomic rule fragment composed of a string operation.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListStringRuleItemInfo string_rule_item = 3; + */ + public Builder setStringRuleItem(com.google.ads.googleads.v0.common.UserListStringRuleItemInfo value) { + if (stringRuleItemBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ruleItem_ = value; + onChanged(); + } else { + stringRuleItemBuilder_.setMessage(value); + } + ruleItemCase_ = 3; + return this; + } + /** + *
+     * An atomic rule fragment composed of a string operation.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListStringRuleItemInfo string_rule_item = 3; + */ + public Builder setStringRuleItem( + com.google.ads.googleads.v0.common.UserListStringRuleItemInfo.Builder builderForValue) { + if (stringRuleItemBuilder_ == null) { + ruleItem_ = builderForValue.build(); + onChanged(); + } else { + stringRuleItemBuilder_.setMessage(builderForValue.build()); + } + ruleItemCase_ = 3; + return this; + } + /** + *
+     * An atomic rule fragment composed of a string operation.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListStringRuleItemInfo string_rule_item = 3; + */ + public Builder mergeStringRuleItem(com.google.ads.googleads.v0.common.UserListStringRuleItemInfo value) { + if (stringRuleItemBuilder_ == null) { + if (ruleItemCase_ == 3 && + ruleItem_ != com.google.ads.googleads.v0.common.UserListStringRuleItemInfo.getDefaultInstance()) { + ruleItem_ = com.google.ads.googleads.v0.common.UserListStringRuleItemInfo.newBuilder((com.google.ads.googleads.v0.common.UserListStringRuleItemInfo) ruleItem_) + .mergeFrom(value).buildPartial(); + } else { + ruleItem_ = value; + } + onChanged(); + } else { + if (ruleItemCase_ == 3) { + stringRuleItemBuilder_.mergeFrom(value); + } + stringRuleItemBuilder_.setMessage(value); + } + ruleItemCase_ = 3; + return this; + } + /** + *
+     * An atomic rule fragment composed of a string operation.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListStringRuleItemInfo string_rule_item = 3; + */ + public Builder clearStringRuleItem() { + if (stringRuleItemBuilder_ == null) { + if (ruleItemCase_ == 3) { + ruleItemCase_ = 0; + ruleItem_ = null; + onChanged(); + } + } else { + if (ruleItemCase_ == 3) { + ruleItemCase_ = 0; + ruleItem_ = null; + } + stringRuleItemBuilder_.clear(); + } + return this; + } + /** + *
+     * An atomic rule fragment composed of a string operation.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListStringRuleItemInfo string_rule_item = 3; + */ + public com.google.ads.googleads.v0.common.UserListStringRuleItemInfo.Builder getStringRuleItemBuilder() { + return getStringRuleItemFieldBuilder().getBuilder(); + } + /** + *
+     * An atomic rule fragment composed of a string operation.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListStringRuleItemInfo string_rule_item = 3; + */ + public com.google.ads.googleads.v0.common.UserListStringRuleItemInfoOrBuilder getStringRuleItemOrBuilder() { + if ((ruleItemCase_ == 3) && (stringRuleItemBuilder_ != null)) { + return stringRuleItemBuilder_.getMessageOrBuilder(); + } else { + if (ruleItemCase_ == 3) { + return (com.google.ads.googleads.v0.common.UserListStringRuleItemInfo) ruleItem_; + } + return com.google.ads.googleads.v0.common.UserListStringRuleItemInfo.getDefaultInstance(); + } + } + /** + *
+     * An atomic rule fragment composed of a string operation.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListStringRuleItemInfo string_rule_item = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.UserListStringRuleItemInfo, com.google.ads.googleads.v0.common.UserListStringRuleItemInfo.Builder, com.google.ads.googleads.v0.common.UserListStringRuleItemInfoOrBuilder> + getStringRuleItemFieldBuilder() { + if (stringRuleItemBuilder_ == null) { + if (!(ruleItemCase_ == 3)) { + ruleItem_ = com.google.ads.googleads.v0.common.UserListStringRuleItemInfo.getDefaultInstance(); + } + stringRuleItemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.UserListStringRuleItemInfo, com.google.ads.googleads.v0.common.UserListStringRuleItemInfo.Builder, com.google.ads.googleads.v0.common.UserListStringRuleItemInfoOrBuilder>( + (com.google.ads.googleads.v0.common.UserListStringRuleItemInfo) ruleItem_, + getParentForChildren(), + isClean()); + ruleItem_ = null; + } + ruleItemCase_ = 3; + onChanged();; + return stringRuleItemBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.UserListDateRuleItemInfo, com.google.ads.googleads.v0.common.UserListDateRuleItemInfo.Builder, com.google.ads.googleads.v0.common.UserListDateRuleItemInfoOrBuilder> dateRuleItemBuilder_; + /** + *
+     * An atomic rule fragment composed of a date operation.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListDateRuleItemInfo date_rule_item = 4; + */ + public boolean hasDateRuleItem() { + return ruleItemCase_ == 4; + } + /** + *
+     * An atomic rule fragment composed of a date operation.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListDateRuleItemInfo date_rule_item = 4; + */ + public com.google.ads.googleads.v0.common.UserListDateRuleItemInfo getDateRuleItem() { + if (dateRuleItemBuilder_ == null) { + if (ruleItemCase_ == 4) { + return (com.google.ads.googleads.v0.common.UserListDateRuleItemInfo) ruleItem_; + } + return com.google.ads.googleads.v0.common.UserListDateRuleItemInfo.getDefaultInstance(); + } else { + if (ruleItemCase_ == 4) { + return dateRuleItemBuilder_.getMessage(); + } + return com.google.ads.googleads.v0.common.UserListDateRuleItemInfo.getDefaultInstance(); + } + } + /** + *
+     * An atomic rule fragment composed of a date operation.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListDateRuleItemInfo date_rule_item = 4; + */ + public Builder setDateRuleItem(com.google.ads.googleads.v0.common.UserListDateRuleItemInfo value) { + if (dateRuleItemBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ruleItem_ = value; + onChanged(); + } else { + dateRuleItemBuilder_.setMessage(value); + } + ruleItemCase_ = 4; + return this; + } + /** + *
+     * An atomic rule fragment composed of a date operation.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListDateRuleItemInfo date_rule_item = 4; + */ + public Builder setDateRuleItem( + com.google.ads.googleads.v0.common.UserListDateRuleItemInfo.Builder builderForValue) { + if (dateRuleItemBuilder_ == null) { + ruleItem_ = builderForValue.build(); + onChanged(); + } else { + dateRuleItemBuilder_.setMessage(builderForValue.build()); + } + ruleItemCase_ = 4; + return this; + } + /** + *
+     * An atomic rule fragment composed of a date operation.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListDateRuleItemInfo date_rule_item = 4; + */ + public Builder mergeDateRuleItem(com.google.ads.googleads.v0.common.UserListDateRuleItemInfo value) { + if (dateRuleItemBuilder_ == null) { + if (ruleItemCase_ == 4 && + ruleItem_ != com.google.ads.googleads.v0.common.UserListDateRuleItemInfo.getDefaultInstance()) { + ruleItem_ = com.google.ads.googleads.v0.common.UserListDateRuleItemInfo.newBuilder((com.google.ads.googleads.v0.common.UserListDateRuleItemInfo) ruleItem_) + .mergeFrom(value).buildPartial(); + } else { + ruleItem_ = value; + } + onChanged(); + } else { + if (ruleItemCase_ == 4) { + dateRuleItemBuilder_.mergeFrom(value); + } + dateRuleItemBuilder_.setMessage(value); + } + ruleItemCase_ = 4; + return this; + } + /** + *
+     * An atomic rule fragment composed of a date operation.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListDateRuleItemInfo date_rule_item = 4; + */ + public Builder clearDateRuleItem() { + if (dateRuleItemBuilder_ == null) { + if (ruleItemCase_ == 4) { + ruleItemCase_ = 0; + ruleItem_ = null; + onChanged(); + } + } else { + if (ruleItemCase_ == 4) { + ruleItemCase_ = 0; + ruleItem_ = null; + } + dateRuleItemBuilder_.clear(); + } + return this; + } + /** + *
+     * An atomic rule fragment composed of a date operation.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListDateRuleItemInfo date_rule_item = 4; + */ + public com.google.ads.googleads.v0.common.UserListDateRuleItemInfo.Builder getDateRuleItemBuilder() { + return getDateRuleItemFieldBuilder().getBuilder(); + } + /** + *
+     * An atomic rule fragment composed of a date operation.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListDateRuleItemInfo date_rule_item = 4; + */ + public com.google.ads.googleads.v0.common.UserListDateRuleItemInfoOrBuilder getDateRuleItemOrBuilder() { + if ((ruleItemCase_ == 4) && (dateRuleItemBuilder_ != null)) { + return dateRuleItemBuilder_.getMessageOrBuilder(); + } else { + if (ruleItemCase_ == 4) { + return (com.google.ads.googleads.v0.common.UserListDateRuleItemInfo) ruleItem_; + } + return com.google.ads.googleads.v0.common.UserListDateRuleItemInfo.getDefaultInstance(); + } + } + /** + *
+     * An atomic rule fragment composed of a date operation.
+     * 
+ * + * .google.ads.googleads.v0.common.UserListDateRuleItemInfo date_rule_item = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.UserListDateRuleItemInfo, com.google.ads.googleads.v0.common.UserListDateRuleItemInfo.Builder, com.google.ads.googleads.v0.common.UserListDateRuleItemInfoOrBuilder> + getDateRuleItemFieldBuilder() { + if (dateRuleItemBuilder_ == null) { + if (!(ruleItemCase_ == 4)) { + ruleItem_ = com.google.ads.googleads.v0.common.UserListDateRuleItemInfo.getDefaultInstance(); + } + dateRuleItemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.UserListDateRuleItemInfo, com.google.ads.googleads.v0.common.UserListDateRuleItemInfo.Builder, com.google.ads.googleads.v0.common.UserListDateRuleItemInfoOrBuilder>( + (com.google.ads.googleads.v0.common.UserListDateRuleItemInfo) ruleItem_, + getParentForChildren(), + isClean()); + ruleItem_ = null; + } + ruleItemCase_ = 4; + onChanged();; + return dateRuleItemBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.common.UserListRuleItemInfo) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.common.UserListRuleItemInfo) + private static final com.google.ads.googleads.v0.common.UserListRuleItemInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.common.UserListRuleItemInfo(); + } + + public static com.google.ads.googleads.v0.common.UserListRuleItemInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserListRuleItemInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserListRuleItemInfo(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.common.UserListRuleItemInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListRuleItemInfoOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListRuleItemInfoOrBuilder.java new file mode 100644 index 0000000000..5c7008c039 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListRuleItemInfoOrBuilder.java @@ -0,0 +1,132 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/user_lists.proto + +package com.google.ads.googleads.v0.common; + +public interface UserListRuleItemInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.common.UserListRuleItemInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Rule variable name. It should match the corresponding key name fired
+   * by the pixel.
+   * A name must begin with US-ascii letters or underscore or UTF8 code that is
+   * greater than 127 and consist of US-ascii letters or digits or underscore or
+   * UTF8 code that is greater than 127.
+   * For websites, there are two built-in variable URL (name = 'url__') and
+   * referrer URL (name = 'ref_url__').
+   * This field must be populated when creating a new rule item.
+   * 
+ * + * .google.protobuf.StringValue name = 1; + */ + boolean hasName(); + /** + *
+   * Rule variable name. It should match the corresponding key name fired
+   * by the pixel.
+   * A name must begin with US-ascii letters or underscore or UTF8 code that is
+   * greater than 127 and consist of US-ascii letters or digits or underscore or
+   * UTF8 code that is greater than 127.
+   * For websites, there are two built-in variable URL (name = 'url__') and
+   * referrer URL (name = 'ref_url__').
+   * This field must be populated when creating a new rule item.
+   * 
+ * + * .google.protobuf.StringValue name = 1; + */ + com.google.protobuf.StringValue getName(); + /** + *
+   * Rule variable name. It should match the corresponding key name fired
+   * by the pixel.
+   * A name must begin with US-ascii letters or underscore or UTF8 code that is
+   * greater than 127 and consist of US-ascii letters or digits or underscore or
+   * UTF8 code that is greater than 127.
+   * For websites, there are two built-in variable URL (name = 'url__') and
+   * referrer URL (name = 'ref_url__').
+   * This field must be populated when creating a new rule item.
+   * 
+ * + * .google.protobuf.StringValue name = 1; + */ + com.google.protobuf.StringValueOrBuilder getNameOrBuilder(); + + /** + *
+   * An atomic rule fragment composed of a number operation.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListNumberRuleItemInfo number_rule_item = 2; + */ + boolean hasNumberRuleItem(); + /** + *
+   * An atomic rule fragment composed of a number operation.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListNumberRuleItemInfo number_rule_item = 2; + */ + com.google.ads.googleads.v0.common.UserListNumberRuleItemInfo getNumberRuleItem(); + /** + *
+   * An atomic rule fragment composed of a number operation.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListNumberRuleItemInfo number_rule_item = 2; + */ + com.google.ads.googleads.v0.common.UserListNumberRuleItemInfoOrBuilder getNumberRuleItemOrBuilder(); + + /** + *
+   * An atomic rule fragment composed of a string operation.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListStringRuleItemInfo string_rule_item = 3; + */ + boolean hasStringRuleItem(); + /** + *
+   * An atomic rule fragment composed of a string operation.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListStringRuleItemInfo string_rule_item = 3; + */ + com.google.ads.googleads.v0.common.UserListStringRuleItemInfo getStringRuleItem(); + /** + *
+   * An atomic rule fragment composed of a string operation.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListStringRuleItemInfo string_rule_item = 3; + */ + com.google.ads.googleads.v0.common.UserListStringRuleItemInfoOrBuilder getStringRuleItemOrBuilder(); + + /** + *
+   * An atomic rule fragment composed of a date operation.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListDateRuleItemInfo date_rule_item = 4; + */ + boolean hasDateRuleItem(); + /** + *
+   * An atomic rule fragment composed of a date operation.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListDateRuleItemInfo date_rule_item = 4; + */ + com.google.ads.googleads.v0.common.UserListDateRuleItemInfo getDateRuleItem(); + /** + *
+   * An atomic rule fragment composed of a date operation.
+   * 
+ * + * .google.ads.googleads.v0.common.UserListDateRuleItemInfo date_rule_item = 4; + */ + com.google.ads.googleads.v0.common.UserListDateRuleItemInfoOrBuilder getDateRuleItemOrBuilder(); + + public com.google.ads.googleads.v0.common.UserListRuleItemInfo.RuleItemCase getRuleItemCase(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListStringRuleItemInfo.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListStringRuleItemInfo.java new file mode 100644 index 0000000000..e53cabcb7d --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListStringRuleItemInfo.java @@ -0,0 +1,814 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/user_lists.proto + +package com.google.ads.googleads.v0.common; + +/** + *
+ * A rule item fragment composed of date operation.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.UserListStringRuleItemInfo} + */ +public final class UserListStringRuleItemInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.common.UserListStringRuleItemInfo) + UserListStringRuleItemInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use UserListStringRuleItemInfo.newBuilder() to construct. + private UserListStringRuleItemInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UserListStringRuleItemInfo() { + operator_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserListStringRuleItemInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + operator_ = rawValue; + break; + } + case 18: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (value_ != null) { + subBuilder = value_.toBuilder(); + } + value_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(value_); + value_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListStringRuleItemInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListStringRuleItemInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.UserListStringRuleItemInfo.class, com.google.ads.googleads.v0.common.UserListStringRuleItemInfo.Builder.class); + } + + public static final int OPERATOR_FIELD_NUMBER = 1; + private int operator_; + /** + *
+   * String comparison operator.
+   * This field is required and must be populated when creating a new string
+   * rule item.
+   * 
+ * + * .google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum.UserListStringRuleItemOperator operator = 1; + */ + public int getOperatorValue() { + return operator_; + } + /** + *
+   * String comparison operator.
+   * This field is required and must be populated when creating a new string
+   * rule item.
+   * 
+ * + * .google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum.UserListStringRuleItemOperator operator = 1; + */ + public com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum.UserListStringRuleItemOperator getOperator() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum.UserListStringRuleItemOperator result = com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum.UserListStringRuleItemOperator.valueOf(operator_); + return result == null ? com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum.UserListStringRuleItemOperator.UNRECOGNIZED : result; + } + + public static final int VALUE_FIELD_NUMBER = 2; + private com.google.protobuf.StringValue value_; + /** + *
+   * The right hand side of the string rule item. For URLs or referrer URLs,
+   * the value can not contain illegal URL chars such as newlines, quotes,
+   * tabs, or parentheses. This field is required and must be populated when
+   * creating a new string rule item.
+   * 
+ * + * .google.protobuf.StringValue value = 2; + */ + public boolean hasValue() { + return value_ != null; + } + /** + *
+   * The right hand side of the string rule item. For URLs or referrer URLs,
+   * the value can not contain illegal URL chars such as newlines, quotes,
+   * tabs, or parentheses. This field is required and must be populated when
+   * creating a new string rule item.
+   * 
+ * + * .google.protobuf.StringValue value = 2; + */ + public com.google.protobuf.StringValue getValue() { + return value_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : value_; + } + /** + *
+   * The right hand side of the string rule item. For URLs or referrer URLs,
+   * the value can not contain illegal URL chars such as newlines, quotes,
+   * tabs, or parentheses. This field is required and must be populated when
+   * creating a new string rule item.
+   * 
+ * + * .google.protobuf.StringValue value = 2; + */ + public com.google.protobuf.StringValueOrBuilder getValueOrBuilder() { + return getValue(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (operator_ != com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum.UserListStringRuleItemOperator.UNSPECIFIED.getNumber()) { + output.writeEnum(1, operator_); + } + if (value_ != null) { + output.writeMessage(2, getValue()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (operator_ != com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum.UserListStringRuleItemOperator.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, operator_); + } + if (value_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getValue()); + } + size += unknownFields.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.ads.googleads.v0.common.UserListStringRuleItemInfo)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.common.UserListStringRuleItemInfo other = (com.google.ads.googleads.v0.common.UserListStringRuleItemInfo) obj; + + boolean result = true; + result = result && operator_ == other.operator_; + result = result && (hasValue() == other.hasValue()); + if (hasValue()) { + result = result && getValue() + .equals(other.getValue()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OPERATOR_FIELD_NUMBER; + hash = (53 * hash) + operator_; + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.common.UserListStringRuleItemInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.UserListStringRuleItemInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.UserListStringRuleItemInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.UserListStringRuleItemInfo 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.ads.googleads.v0.common.UserListStringRuleItemInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.UserListStringRuleItemInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.UserListStringRuleItemInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.UserListStringRuleItemInfo 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.ads.googleads.v0.common.UserListStringRuleItemInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.UserListStringRuleItemInfo 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.ads.googleads.v0.common.UserListStringRuleItemInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.UserListStringRuleItemInfo 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.ads.googleads.v0.common.UserListStringRuleItemInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A rule item fragment composed of date operation.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.UserListStringRuleItemInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.common.UserListStringRuleItemInfo) + com.google.ads.googleads.v0.common.UserListStringRuleItemInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListStringRuleItemInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListStringRuleItemInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.UserListStringRuleItemInfo.class, com.google.ads.googleads.v0.common.UserListStringRuleItemInfo.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.common.UserListStringRuleItemInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + operator_ = 0; + + if (valueBuilder_ == null) { + value_ = null; + } else { + value_ = null; + valueBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.common.UserListsProto.internal_static_google_ads_googleads_v0_common_UserListStringRuleItemInfo_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.UserListStringRuleItemInfo getDefaultInstanceForType() { + return com.google.ads.googleads.v0.common.UserListStringRuleItemInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.UserListStringRuleItemInfo build() { + com.google.ads.googleads.v0.common.UserListStringRuleItemInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.UserListStringRuleItemInfo buildPartial() { + com.google.ads.googleads.v0.common.UserListStringRuleItemInfo result = new com.google.ads.googleads.v0.common.UserListStringRuleItemInfo(this); + result.operator_ = operator_; + if (valueBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = valueBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.common.UserListStringRuleItemInfo) { + return mergeFrom((com.google.ads.googleads.v0.common.UserListStringRuleItemInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.common.UserListStringRuleItemInfo other) { + if (other == com.google.ads.googleads.v0.common.UserListStringRuleItemInfo.getDefaultInstance()) return this; + if (other.operator_ != 0) { + setOperatorValue(other.getOperatorValue()); + } + if (other.hasValue()) { + mergeValue(other.getValue()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.common.UserListStringRuleItemInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.common.UserListStringRuleItemInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int operator_ = 0; + /** + *
+     * String comparison operator.
+     * This field is required and must be populated when creating a new string
+     * rule item.
+     * 
+ * + * .google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum.UserListStringRuleItemOperator operator = 1; + */ + public int getOperatorValue() { + return operator_; + } + /** + *
+     * String comparison operator.
+     * This field is required and must be populated when creating a new string
+     * rule item.
+     * 
+ * + * .google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum.UserListStringRuleItemOperator operator = 1; + */ + public Builder setOperatorValue(int value) { + operator_ = value; + onChanged(); + return this; + } + /** + *
+     * String comparison operator.
+     * This field is required and must be populated when creating a new string
+     * rule item.
+     * 
+ * + * .google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum.UserListStringRuleItemOperator operator = 1; + */ + public com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum.UserListStringRuleItemOperator getOperator() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum.UserListStringRuleItemOperator result = com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum.UserListStringRuleItemOperator.valueOf(operator_); + return result == null ? com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum.UserListStringRuleItemOperator.UNRECOGNIZED : result; + } + /** + *
+     * String comparison operator.
+     * This field is required and must be populated when creating a new string
+     * rule item.
+     * 
+ * + * .google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum.UserListStringRuleItemOperator operator = 1; + */ + public Builder setOperator(com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum.UserListStringRuleItemOperator value) { + if (value == null) { + throw new NullPointerException(); + } + + operator_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * String comparison operator.
+     * This field is required and must be populated when creating a new string
+     * rule item.
+     * 
+ * + * .google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum.UserListStringRuleItemOperator operator = 1; + */ + public Builder clearOperator() { + + operator_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.StringValue value_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> valueBuilder_; + /** + *
+     * The right hand side of the string rule item. For URLs or referrer URLs,
+     * the value can not contain illegal URL chars such as newlines, quotes,
+     * tabs, or parentheses. This field is required and must be populated when
+     * creating a new string rule item.
+     * 
+ * + * .google.protobuf.StringValue value = 2; + */ + public boolean hasValue() { + return valueBuilder_ != null || value_ != null; + } + /** + *
+     * The right hand side of the string rule item. For URLs or referrer URLs,
+     * the value can not contain illegal URL chars such as newlines, quotes,
+     * tabs, or parentheses. This field is required and must be populated when
+     * creating a new string rule item.
+     * 
+ * + * .google.protobuf.StringValue value = 2; + */ + public com.google.protobuf.StringValue getValue() { + if (valueBuilder_ == null) { + return value_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : value_; + } else { + return valueBuilder_.getMessage(); + } + } + /** + *
+     * The right hand side of the string rule item. For URLs or referrer URLs,
+     * the value can not contain illegal URL chars such as newlines, quotes,
+     * tabs, or parentheses. This field is required and must be populated when
+     * creating a new string rule item.
+     * 
+ * + * .google.protobuf.StringValue value = 2; + */ + public Builder setValue(com.google.protobuf.StringValue value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + valueBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The right hand side of the string rule item. For URLs or referrer URLs,
+     * the value can not contain illegal URL chars such as newlines, quotes,
+     * tabs, or parentheses. This field is required and must be populated when
+     * creating a new string rule item.
+     * 
+ * + * .google.protobuf.StringValue value = 2; + */ + public Builder setValue( + com.google.protobuf.StringValue.Builder builderForValue) { + if (valueBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + valueBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The right hand side of the string rule item. For URLs or referrer URLs,
+     * the value can not contain illegal URL chars such as newlines, quotes,
+     * tabs, or parentheses. This field is required and must be populated when
+     * creating a new string rule item.
+     * 
+ * + * .google.protobuf.StringValue value = 2; + */ + public Builder mergeValue(com.google.protobuf.StringValue value) { + if (valueBuilder_ == null) { + if (value_ != null) { + value_ = + com.google.protobuf.StringValue.newBuilder(value_).mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + valueBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The right hand side of the string rule item. For URLs or referrer URLs,
+     * the value can not contain illegal URL chars such as newlines, quotes,
+     * tabs, or parentheses. This field is required and must be populated when
+     * creating a new string rule item.
+     * 
+ * + * .google.protobuf.StringValue value = 2; + */ + public Builder clearValue() { + if (valueBuilder_ == null) { + value_ = null; + onChanged(); + } else { + value_ = null; + valueBuilder_ = null; + } + + return this; + } + /** + *
+     * The right hand side of the string rule item. For URLs or referrer URLs,
+     * the value can not contain illegal URL chars such as newlines, quotes,
+     * tabs, or parentheses. This field is required and must be populated when
+     * creating a new string rule item.
+     * 
+ * + * .google.protobuf.StringValue value = 2; + */ + public com.google.protobuf.StringValue.Builder getValueBuilder() { + + onChanged(); + return getValueFieldBuilder().getBuilder(); + } + /** + *
+     * The right hand side of the string rule item. For URLs or referrer URLs,
+     * the value can not contain illegal URL chars such as newlines, quotes,
+     * tabs, or parentheses. This field is required and must be populated when
+     * creating a new string rule item.
+     * 
+ * + * .google.protobuf.StringValue value = 2; + */ + public com.google.protobuf.StringValueOrBuilder getValueOrBuilder() { + if (valueBuilder_ != null) { + return valueBuilder_.getMessageOrBuilder(); + } else { + return value_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : value_; + } + } + /** + *
+     * The right hand side of the string rule item. For URLs or referrer URLs,
+     * the value can not contain illegal URL chars such as newlines, quotes,
+     * tabs, or parentheses. This field is required and must be populated when
+     * creating a new string rule item.
+     * 
+ * + * .google.protobuf.StringValue value = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getValueFieldBuilder() { + if (valueBuilder_ == null) { + valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getValue(), + getParentForChildren(), + isClean()); + value_ = null; + } + return valueBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.common.UserListStringRuleItemInfo) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.common.UserListStringRuleItemInfo) + private static final com.google.ads.googleads.v0.common.UserListStringRuleItemInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.common.UserListStringRuleItemInfo(); + } + + public static com.google.ads.googleads.v0.common.UserListStringRuleItemInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserListStringRuleItemInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserListStringRuleItemInfo(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.common.UserListStringRuleItemInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListStringRuleItemInfoOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListStringRuleItemInfoOrBuilder.java new file mode 100644 index 0000000000..888301ea73 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListStringRuleItemInfoOrBuilder.java @@ -0,0 +1,64 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/user_lists.proto + +package com.google.ads.googleads.v0.common; + +public interface UserListStringRuleItemInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.common.UserListStringRuleItemInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * String comparison operator.
+   * This field is required and must be populated when creating a new string
+   * rule item.
+   * 
+ * + * .google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum.UserListStringRuleItemOperator operator = 1; + */ + int getOperatorValue(); + /** + *
+   * String comparison operator.
+   * This field is required and must be populated when creating a new string
+   * rule item.
+   * 
+ * + * .google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum.UserListStringRuleItemOperator operator = 1; + */ + com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum.UserListStringRuleItemOperator getOperator(); + + /** + *
+   * The right hand side of the string rule item. For URLs or referrer URLs,
+   * the value can not contain illegal URL chars such as newlines, quotes,
+   * tabs, or parentheses. This field is required and must be populated when
+   * creating a new string rule item.
+   * 
+ * + * .google.protobuf.StringValue value = 2; + */ + boolean hasValue(); + /** + *
+   * The right hand side of the string rule item. For URLs or referrer URLs,
+   * the value can not contain illegal URL chars such as newlines, quotes,
+   * tabs, or parentheses. This field is required and must be populated when
+   * creating a new string rule item.
+   * 
+ * + * .google.protobuf.StringValue value = 2; + */ + com.google.protobuf.StringValue getValue(); + /** + *
+   * The right hand side of the string rule item. For URLs or referrer URLs,
+   * the value can not contain illegal URL chars such as newlines, quotes,
+   * tabs, or parentheses. This field is required and must be populated when
+   * creating a new string rule item.
+   * 
+ * + * .google.protobuf.StringValue value = 2; + */ + com.google.protobuf.StringValueOrBuilder getValueOrBuilder(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListsProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListsProto.java index 0ff2eacb3e..cade37e4e1 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListsProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/UserListsProto.java @@ -24,6 +24,81 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_googleads_v0_common_CrmBasedUserListInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_common_UserListRuleInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_common_UserListRuleInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_common_UserListRuleItemGroupInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_common_UserListRuleItemGroupInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_common_UserListRuleItemInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_common_UserListRuleItemInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_common_UserListDateRuleItemInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_common_UserListDateRuleItemInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_common_UserListNumberRuleItemInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_common_UserListNumberRuleItemInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_common_UserListStringRuleItemInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_common_UserListStringRuleItemInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_common_CombinedRuleUserListInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_common_CombinedRuleUserListInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_common_DateSpecificRuleUserListInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_common_DateSpecificRuleUserListInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_common_ExpressionRuleUserListInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_common_ExpressionRuleUserListInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_common_RuleBasedUserListInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_common_RuleBasedUserListInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_common_LogicalUserListInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_common_LogicalUserListInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_common_UserListLogicalRuleInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_common_UserListLogicalRuleInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_common_LogicalUserListOperandInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_common_LogicalUserListOperandInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_common_BasicUserListInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_common_BasicUserListInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_common_UserListActionInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_common_UserListActionInfo_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -36,24 +111,111 @@ public static void registerAllExtensions( "\n/google/ads/googleads/v0/common/user_li" + "sts.proto\022\036google.ads.googleads.v0.commo" + "n\032Bgoogle/ads/googleads/v0/enums/custome" + - "r_match_upload_key_type.proto\032Bgoogle/ad" + - "s/googleads/v0/enums/user_list_crm_data_" + - "source_type.proto\032\036google/protobuf/wrapp" + - "ers.proto\"K\n\023SimilarUserListInfo\0224\n\016seed" + - "_user_list\030\001 \001(\0132\034.google.protobuf.Strin" + - "gValue\"\251\002\n\024CrmBasedUserListInfo\022,\n\006app_i" + - "d\030\001 \001(\0132\034.google.protobuf.StringValue\022q\n" + - "\017upload_key_type\030\002 \001(\0162X.google.ads.goog" + - "leads.v0.enums.CustomerMatchUploadKeyTyp" + - "eEnum.CustomerMatchUploadKeyType\022p\n\020data" + - "_source_type\030\003 \001(\0162V.google.ads.googlead" + - "s.v0.enums.UserListCrmDataSourceTypeEnum" + - ".UserListCrmDataSourceTypeB\304\001\n\"com.googl" + - "e.ads.googleads.v0.commonB\016UserListsProt" + - "oP\001ZDgoogle.golang.org/genproto/googleap" + - "is/ads/googleads/v0/common;common\242\002\003GAA\252" + - "\002\036Google.Ads.GoogleAds.V0.Common\312\002\036Googl" + - "e\\Ads\\GoogleAds\\V0\\Commonb\006proto3" + "r_match_upload_key_type.proto\032Dgoogle/ad" + + "s/googleads/v0/enums/user_list_combined_" + + "rule_operator.proto\032Bgoogle/ads/googlead" + + "s/v0/enums/user_list_crm_data_source_typ" + + "e.proto\032Egoogle/ads/googleads/v0/enums/u" + + "ser_list_date_rule_item_operator.proto\032C" + + "google/ads/googleads/v0/enums/user_list_" + + "logical_rule_operator.proto\032Ggoogle/ads/" + + "googleads/v0/enums/user_list_number_rule" + + "_item_operator.proto\032Bgoogle/ads/googlea" + + "ds/v0/enums/user_list_prepopulation_stat" + + "us.proto\0327google/ads/googleads/v0/enums/" + + "user_list_rule_type.proto\032Ggoogle/ads/go" + + "ogleads/v0/enums/user_list_string_rule_i" + + "tem_operator.proto\032\036google/protobuf/wrap" + + "pers.proto\"K\n\023SimilarUserListInfo\0224\n\016see" + + "d_user_list\030\001 \001(\0132\034.google.protobuf.Stri" + + "ngValue\"\251\002\n\024CrmBasedUserListInfo\022,\n\006app_" + + "id\030\001 \001(\0132\034.google.protobuf.StringValue\022q" + + "\n\017upload_key_type\030\002 \001(\0162X.google.ads.goo" + + "gleads.v0.enums.CustomerMatchUploadKeyTy" + + "peEnum.CustomerMatchUploadKeyType\022p\n\020dat" + + "a_source_type\030\003 \001(\0162V.google.ads.googlea" + + "ds.v0.enums.UserListCrmDataSourceTypeEnu" + + "m.UserListCrmDataSourceType\"\300\001\n\020UserList" + + "RuleInfo\022W\n\trule_type\030\001 \001(\0162D.google.ads" + + ".googleads.v0.enums.UserListRuleTypeEnum" + + ".UserListRuleType\022S\n\020rule_item_groups\030\002 " + + "\003(\01329.google.ads.googleads.v0.common.Use" + + "rListRuleItemGroupInfo\"e\n\031UserListRuleIt" + + "emGroupInfo\022H\n\nrule_items\030\001 \003(\01324.google" + + ".ads.googleads.v0.common.UserListRuleIte" + + "mInfo\"\323\002\n\024UserListRuleItemInfo\022*\n\004name\030\001" + + " \001(\0132\034.google.protobuf.StringValue\022V\n\020nu" + + "mber_rule_item\030\002 \001(\0132:.google.ads.google" + + "ads.v0.common.UserListNumberRuleItemInfo" + + "H\000\022V\n\020string_rule_item\030\003 \001(\0132:.google.ad" + + "s.googleads.v0.common.UserListStringRule" + + "ItemInfoH\000\022R\n\016date_rule_item\030\004 \001(\01328.goo" + + "gle.ads.googleads.v0.common.UserListDate" + + "RuleItemInfoH\000B\013\n\trule_item\"\354\001\n\030UserList" + + "DateRuleItemInfo\022n\n\010operator\030\001 \001(\0162\\.goo" + + "gle.ads.googleads.v0.enums.UserListDateR" + + "uleItemOperatorEnum.UserListDateRuleItem" + + "Operator\022+\n\005value\030\002 \001(\0132\034.google.protobu" + + "f.StringValue\0223\n\016offset_in_days\030\003 \001(\0132\033." + + "google.protobuf.Int64Value\"\275\001\n\032UserListN" + + "umberRuleItemInfo\022r\n\010operator\030\001 \001(\0162`.go" + + "ogle.ads.googleads.v0.enums.UserListNumb" + + "erRuleItemOperatorEnum.UserListNumberRul" + + "eItemOperator\022+\n\005value\030\002 \001(\0132\034.google.pr" + + "otobuf.DoubleValue\"\275\001\n\032UserListStringRul" + + "eItemInfo\022r\n\010operator\030\001 \001(\0162`.google.ads" + + ".googleads.v0.enums.UserListStringRuleIt" + + "emOperatorEnum.UserListStringRuleItemOpe" + + "rator\022+\n\005value\030\002 \001(\0132\034.google.protobuf.S" + + "tringValue\"\240\002\n\030CombinedRuleUserListInfo\022" + + "F\n\014left_operand\030\001 \001(\01320.google.ads.googl" + + "eads.v0.common.UserListRuleInfo\022G\n\rright" + + "_operand\030\002 \001(\01320.google.ads.googleads.v0" + + ".common.UserListRuleInfo\022s\n\rrule_operato" + + "r\030\003 \001(\0162\\.google.ads.googleads.v0.enums." + + "UserListCombinedRuleOperatorEnum.UserLis" + + "tCombinedRuleOperator\"\300\001\n\034DateSpecificRu" + + "leUserListInfo\022>\n\004rule\030\001 \001(\01320.google.ad" + + "s.googleads.v0.common.UserListRuleInfo\0220" + + "\n\nstart_date\030\002 \001(\0132\034.google.protobuf.Str" + + "ingValue\022.\n\010end_date\030\003 \001(\0132\034.google.prot" + + "obuf.StringValue\"\\\n\032ExpressionRuleUserLi" + + "stInfo\022>\n\004rule\030\001 \001(\01320.google.ads.google" + + "ads.v0.common.UserListRuleInfo\"\315\003\n\025RuleB" + + "asedUserListInfo\022x\n\024prepopulation_status" + + "\030\001 \001(\0162Z.google.ads.googleads.v0.enums.U" + + "serListPrepopulationStatusEnum.UserListP" + + "repopulationStatus\022[\n\027combined_rule_user" + + "_list\030\002 \001(\01328.google.ads.googleads.v0.co" + + "mmon.CombinedRuleUserListInfoH\000\022d\n\034date_" + + "specific_rule_user_list\030\003 \001(\0132<.google.a" + + "ds.googleads.v0.common.DateSpecificRuleU" + + "serListInfoH\000\022_\n\031expression_rule_user_li" + + "st\030\004 \001(\0132:.google.ads.googleads.v0.commo" + + "n.ExpressionRuleUserListInfoH\000B\026\n\024rule_b" + + "ased_user_list\"]\n\023LogicalUserListInfo\022F\n" + + "\005rules\030\001 \003(\01327.google.ads.googleads.v0.c" + + "ommon.UserListLogicalRuleInfo\"\332\001\n\027UserLi" + + "stLogicalRuleInfo\022l\n\010operator\030\001 \001(\0162Z.go" + + "ogle.ads.googleads.v0.enums.UserListLogi" + + "calRuleOperatorEnum.UserListLogicalRuleO" + + "perator\022Q\n\rrule_operands\030\002 \003(\0132:.google." + + "ads.googleads.v0.common.LogicalUserListO" + + "perandInfo\"M\n\032LogicalUserListOperandInfo" + + "\022/\n\tuser_list\030\001 \001(\0132\034.google.protobuf.St" + + "ringValue\"X\n\021BasicUserListInfo\022C\n\007action" + + "s\030\001 \003(\01322.google.ads.googleads.v0.common" + + ".UserListActionInfo\"\237\001\n\022UserListActionIn" + + "fo\0229\n\021conversion_action\030\001 \001(\0132\034.google.p" + + "rotobuf.StringValueH\000\022:\n\022remarketing_act" + + "ion\030\002 \001(\0132\034.google.protobuf.StringValueH" + + "\000B\022\n\020user_list_actionB\351\001\n\"com.google.ads" + + ".googleads.v0.commonB\016UserListsProtoP\001ZD" + + "google.golang.org/genproto/googleapis/ad" + + "s/googleads/v0/common;common\242\002\003GAA\252\002\036Goo" + + "gle.Ads.GoogleAds.V0.Common\312\002\036Google\\Ads" + + "\\GoogleAds\\V0\\Common\352\002\"Google::Ads::Goog" + + "leAds::V0::Commonb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -67,7 +229,14 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.ads.googleads.v0.enums.CustomerMatchUploadKeyTypeProto.getDescriptor(), + com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorProto.getDescriptor(), com.google.ads.googleads.v0.enums.UserListCrmDataSourceTypeProto.getDescriptor(), + com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorProto.getDescriptor(), + com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorProto.getDescriptor(), + com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorProto.getDescriptor(), + com.google.ads.googleads.v0.enums.UserListPrepopulationStatusProto.getDescriptor(), + com.google.ads.googleads.v0.enums.UserListRuleTypeProto.getDescriptor(), + com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorProto.getDescriptor(), com.google.protobuf.WrappersProto.getDescriptor(), }, assigner); internal_static_google_ads_googleads_v0_common_SimilarUserListInfo_descriptor = @@ -82,8 +251,105 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_common_CrmBasedUserListInfo_descriptor, new java.lang.String[] { "AppId", "UploadKeyType", "DataSourceType", }); + internal_static_google_ads_googleads_v0_common_UserListRuleInfo_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_googleads_v0_common_UserListRuleInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_common_UserListRuleInfo_descriptor, + new java.lang.String[] { "RuleType", "RuleItemGroups", }); + internal_static_google_ads_googleads_v0_common_UserListRuleItemGroupInfo_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_ads_googleads_v0_common_UserListRuleItemGroupInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_common_UserListRuleItemGroupInfo_descriptor, + new java.lang.String[] { "RuleItems", }); + internal_static_google_ads_googleads_v0_common_UserListRuleItemInfo_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_ads_googleads_v0_common_UserListRuleItemInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_common_UserListRuleItemInfo_descriptor, + new java.lang.String[] { "Name", "NumberRuleItem", "StringRuleItem", "DateRuleItem", "RuleItem", }); + internal_static_google_ads_googleads_v0_common_UserListDateRuleItemInfo_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_ads_googleads_v0_common_UserListDateRuleItemInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_common_UserListDateRuleItemInfo_descriptor, + new java.lang.String[] { "Operator", "Value", "OffsetInDays", }); + internal_static_google_ads_googleads_v0_common_UserListNumberRuleItemInfo_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_ads_googleads_v0_common_UserListNumberRuleItemInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_common_UserListNumberRuleItemInfo_descriptor, + new java.lang.String[] { "Operator", "Value", }); + internal_static_google_ads_googleads_v0_common_UserListStringRuleItemInfo_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_ads_googleads_v0_common_UserListStringRuleItemInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_common_UserListStringRuleItemInfo_descriptor, + new java.lang.String[] { "Operator", "Value", }); + internal_static_google_ads_googleads_v0_common_CombinedRuleUserListInfo_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_ads_googleads_v0_common_CombinedRuleUserListInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_common_CombinedRuleUserListInfo_descriptor, + new java.lang.String[] { "LeftOperand", "RightOperand", "RuleOperator", }); + internal_static_google_ads_googleads_v0_common_DateSpecificRuleUserListInfo_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_ads_googleads_v0_common_DateSpecificRuleUserListInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_common_DateSpecificRuleUserListInfo_descriptor, + new java.lang.String[] { "Rule", "StartDate", "EndDate", }); + internal_static_google_ads_googleads_v0_common_ExpressionRuleUserListInfo_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_ads_googleads_v0_common_ExpressionRuleUserListInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_common_ExpressionRuleUserListInfo_descriptor, + new java.lang.String[] { "Rule", }); + internal_static_google_ads_googleads_v0_common_RuleBasedUserListInfo_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_ads_googleads_v0_common_RuleBasedUserListInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_common_RuleBasedUserListInfo_descriptor, + new java.lang.String[] { "PrepopulationStatus", "CombinedRuleUserList", "DateSpecificRuleUserList", "ExpressionRuleUserList", "RuleBasedUserList", }); + internal_static_google_ads_googleads_v0_common_LogicalUserListInfo_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_ads_googleads_v0_common_LogicalUserListInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_common_LogicalUserListInfo_descriptor, + new java.lang.String[] { "Rules", }); + internal_static_google_ads_googleads_v0_common_UserListLogicalRuleInfo_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_ads_googleads_v0_common_UserListLogicalRuleInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_common_UserListLogicalRuleInfo_descriptor, + new java.lang.String[] { "Operator", "RuleOperands", }); + internal_static_google_ads_googleads_v0_common_LogicalUserListOperandInfo_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_ads_googleads_v0_common_LogicalUserListOperandInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_common_LogicalUserListOperandInfo_descriptor, + new java.lang.String[] { "UserList", }); + internal_static_google_ads_googleads_v0_common_BasicUserListInfo_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_ads_googleads_v0_common_BasicUserListInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_common_BasicUserListInfo_descriptor, + new java.lang.String[] { "Actions", }); + internal_static_google_ads_googleads_v0_common_UserListActionInfo_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_ads_googleads_v0_common_UserListActionInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_common_UserListActionInfo_descriptor, + new java.lang.String[] { "ConversionAction", "RemarketingAction", "UserListAction", }); com.google.ads.googleads.v0.enums.CustomerMatchUploadKeyTypeProto.getDescriptor(); + com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorProto.getDescriptor(); com.google.ads.googleads.v0.enums.UserListCrmDataSourceTypeProto.getDescriptor(); + com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorProto.getDescriptor(); + com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorProto.getDescriptor(); + com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorProto.getDescriptor(); + com.google.ads.googleads.v0.enums.UserListPrepopulationStatusProto.getDescriptor(); + com.google.ads.googleads.v0.enums.UserListRuleTypeProto.getDescriptor(); + com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorProto.getDescriptor(); com.google.protobuf.WrappersProto.getDescriptor(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/ValueProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/ValueProto.java index b1ed4e82d3..5c638ead10 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/common/ValueProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/ValueProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "\005Value\022\027\n\rboolean_value\030\001 \001(\010H\000\022\025\n\013int64" + "_value\030\002 \001(\003H\000\022\025\n\013float_value\030\003 \001(\002H\000\022\026\n" + "\014double_value\030\004 \001(\001H\000\022\026\n\014string_value\030\005 " + - "\001(\tH\000B\007\n\005valueB\300\001\n\"com.google.ads.google" + + "\001(\tH\000B\007\n\005valueB\345\001\n\"com.google.ads.google" + "ads.v0.commonB\nValueProtoP\001ZDgoogle.gola" + "ng.org/genproto/googleapis/ads/googleads" + "/v0/common;common\242\002\003GAA\252\002\036Google.Ads.Goo" + "gleAds.V0.Common\312\002\036Google\\Ads\\GoogleAds\\" + - "V0\\Commonb\006proto3" + "V0\\Common\352\002\"Google::Ads::GoogleAds::V0::" + + "Commonb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/VideoAdInfo.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/VideoAdInfo.java new file mode 100644 index 0000000000..1cb3d888fd --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/VideoAdInfo.java @@ -0,0 +1,971 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/ad_type_infos.proto + +package com.google.ads.googleads.v0.common; + +/** + *
+ * A video ad.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.VideoAdInfo} + */ +public final class VideoAdInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.common.VideoAdInfo) + VideoAdInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use VideoAdInfo.newBuilder() to construct. + private VideoAdInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private VideoAdInfo() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private VideoAdInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (mediaFile_ != null) { + subBuilder = mediaFile_.toBuilder(); + } + mediaFile_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(mediaFile_); + mediaFile_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo.Builder subBuilder = null; + if (formatCase_ == 2) { + subBuilder = ((com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo) format_).toBuilder(); + } + format_ = + input.readMessage(com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo) format_); + format_ = subBuilder.buildPartial(); + } + formatCase_ = 2; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.AdTypeInfosProto.internal_static_google_ads_googleads_v0_common_VideoAdInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.AdTypeInfosProto.internal_static_google_ads_googleads_v0_common_VideoAdInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.VideoAdInfo.class, com.google.ads.googleads.v0.common.VideoAdInfo.Builder.class); + } + + private int formatCase_ = 0; + private java.lang.Object format_; + public enum FormatCase + implements com.google.protobuf.Internal.EnumLite { + IN_STREAM(2), + FORMAT_NOT_SET(0); + private final int value; + private FormatCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FormatCase valueOf(int value) { + return forNumber(value); + } + + public static FormatCase forNumber(int value) { + switch (value) { + case 2: return IN_STREAM; + case 0: return FORMAT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public FormatCase + getFormatCase() { + return FormatCase.forNumber( + formatCase_); + } + + public static final int MEDIA_FILE_FIELD_NUMBER = 1; + private com.google.protobuf.StringValue mediaFile_; + /** + *
+   * The MediaFile resource to use for the video.
+   * 
+ * + * .google.protobuf.StringValue media_file = 1; + */ + public boolean hasMediaFile() { + return mediaFile_ != null; + } + /** + *
+   * The MediaFile resource to use for the video.
+   * 
+ * + * .google.protobuf.StringValue media_file = 1; + */ + public com.google.protobuf.StringValue getMediaFile() { + return mediaFile_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : mediaFile_; + } + /** + *
+   * The MediaFile resource to use for the video.
+   * 
+ * + * .google.protobuf.StringValue media_file = 1; + */ + public com.google.protobuf.StringValueOrBuilder getMediaFileOrBuilder() { + return getMediaFile(); + } + + public static final int IN_STREAM_FIELD_NUMBER = 2; + /** + *
+   * Video TrueView in-stream format.
+   * 
+ * + * .google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo in_stream = 2; + */ + public boolean hasInStream() { + return formatCase_ == 2; + } + /** + *
+   * Video TrueView in-stream format.
+   * 
+ * + * .google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo in_stream = 2; + */ + public com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo getInStream() { + if (formatCase_ == 2) { + return (com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo) format_; + } + return com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo.getDefaultInstance(); + } + /** + *
+   * Video TrueView in-stream format.
+   * 
+ * + * .google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo in_stream = 2; + */ + public com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfoOrBuilder getInStreamOrBuilder() { + if (formatCase_ == 2) { + return (com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo) format_; + } + return com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (mediaFile_ != null) { + output.writeMessage(1, getMediaFile()); + } + if (formatCase_ == 2) { + output.writeMessage(2, (com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo) format_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (mediaFile_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMediaFile()); + } + if (formatCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo) format_); + } + size += unknownFields.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.ads.googleads.v0.common.VideoAdInfo)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.common.VideoAdInfo other = (com.google.ads.googleads.v0.common.VideoAdInfo) obj; + + boolean result = true; + result = result && (hasMediaFile() == other.hasMediaFile()); + if (hasMediaFile()) { + result = result && getMediaFile() + .equals(other.getMediaFile()); + } + result = result && getFormatCase().equals( + other.getFormatCase()); + if (!result) return false; + switch (formatCase_) { + case 2: + result = result && getInStream() + .equals(other.getInStream()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMediaFile()) { + hash = (37 * hash) + MEDIA_FILE_FIELD_NUMBER; + hash = (53 * hash) + getMediaFile().hashCode(); + } + switch (formatCase_) { + case 2: + hash = (37 * hash) + IN_STREAM_FIELD_NUMBER; + hash = (53 * hash) + getInStream().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.common.VideoAdInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.VideoAdInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.VideoAdInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.VideoAdInfo 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.ads.googleads.v0.common.VideoAdInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.VideoAdInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.VideoAdInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.VideoAdInfo 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.ads.googleads.v0.common.VideoAdInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.VideoAdInfo 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.ads.googleads.v0.common.VideoAdInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.VideoAdInfo 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.ads.googleads.v0.common.VideoAdInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A video ad.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.VideoAdInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.common.VideoAdInfo) + com.google.ads.googleads.v0.common.VideoAdInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.AdTypeInfosProto.internal_static_google_ads_googleads_v0_common_VideoAdInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.AdTypeInfosProto.internal_static_google_ads_googleads_v0_common_VideoAdInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.VideoAdInfo.class, com.google.ads.googleads.v0.common.VideoAdInfo.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.common.VideoAdInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (mediaFileBuilder_ == null) { + mediaFile_ = null; + } else { + mediaFile_ = null; + mediaFileBuilder_ = null; + } + formatCase_ = 0; + format_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.common.AdTypeInfosProto.internal_static_google_ads_googleads_v0_common_VideoAdInfo_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.VideoAdInfo getDefaultInstanceForType() { + return com.google.ads.googleads.v0.common.VideoAdInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.VideoAdInfo build() { + com.google.ads.googleads.v0.common.VideoAdInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.VideoAdInfo buildPartial() { + com.google.ads.googleads.v0.common.VideoAdInfo result = new com.google.ads.googleads.v0.common.VideoAdInfo(this); + if (mediaFileBuilder_ == null) { + result.mediaFile_ = mediaFile_; + } else { + result.mediaFile_ = mediaFileBuilder_.build(); + } + if (formatCase_ == 2) { + if (inStreamBuilder_ == null) { + result.format_ = format_; + } else { + result.format_ = inStreamBuilder_.build(); + } + } + result.formatCase_ = formatCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.common.VideoAdInfo) { + return mergeFrom((com.google.ads.googleads.v0.common.VideoAdInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.common.VideoAdInfo other) { + if (other == com.google.ads.googleads.v0.common.VideoAdInfo.getDefaultInstance()) return this; + if (other.hasMediaFile()) { + mergeMediaFile(other.getMediaFile()); + } + switch (other.getFormatCase()) { + case IN_STREAM: { + mergeInStream(other.getInStream()); + break; + } + case FORMAT_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.common.VideoAdInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.common.VideoAdInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int formatCase_ = 0; + private java.lang.Object format_; + public FormatCase + getFormatCase() { + return FormatCase.forNumber( + formatCase_); + } + + public Builder clearFormat() { + formatCase_ = 0; + format_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.StringValue mediaFile_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> mediaFileBuilder_; + /** + *
+     * The MediaFile resource to use for the video.
+     * 
+ * + * .google.protobuf.StringValue media_file = 1; + */ + public boolean hasMediaFile() { + return mediaFileBuilder_ != null || mediaFile_ != null; + } + /** + *
+     * The MediaFile resource to use for the video.
+     * 
+ * + * .google.protobuf.StringValue media_file = 1; + */ + public com.google.protobuf.StringValue getMediaFile() { + if (mediaFileBuilder_ == null) { + return mediaFile_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : mediaFile_; + } else { + return mediaFileBuilder_.getMessage(); + } + } + /** + *
+     * The MediaFile resource to use for the video.
+     * 
+ * + * .google.protobuf.StringValue media_file = 1; + */ + public Builder setMediaFile(com.google.protobuf.StringValue value) { + if (mediaFileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mediaFile_ = value; + onChanged(); + } else { + mediaFileBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The MediaFile resource to use for the video.
+     * 
+ * + * .google.protobuf.StringValue media_file = 1; + */ + public Builder setMediaFile( + com.google.protobuf.StringValue.Builder builderForValue) { + if (mediaFileBuilder_ == null) { + mediaFile_ = builderForValue.build(); + onChanged(); + } else { + mediaFileBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The MediaFile resource to use for the video.
+     * 
+ * + * .google.protobuf.StringValue media_file = 1; + */ + public Builder mergeMediaFile(com.google.protobuf.StringValue value) { + if (mediaFileBuilder_ == null) { + if (mediaFile_ != null) { + mediaFile_ = + com.google.protobuf.StringValue.newBuilder(mediaFile_).mergeFrom(value).buildPartial(); + } else { + mediaFile_ = value; + } + onChanged(); + } else { + mediaFileBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The MediaFile resource to use for the video.
+     * 
+ * + * .google.protobuf.StringValue media_file = 1; + */ + public Builder clearMediaFile() { + if (mediaFileBuilder_ == null) { + mediaFile_ = null; + onChanged(); + } else { + mediaFile_ = null; + mediaFileBuilder_ = null; + } + + return this; + } + /** + *
+     * The MediaFile resource to use for the video.
+     * 
+ * + * .google.protobuf.StringValue media_file = 1; + */ + public com.google.protobuf.StringValue.Builder getMediaFileBuilder() { + + onChanged(); + return getMediaFileFieldBuilder().getBuilder(); + } + /** + *
+     * The MediaFile resource to use for the video.
+     * 
+ * + * .google.protobuf.StringValue media_file = 1; + */ + public com.google.protobuf.StringValueOrBuilder getMediaFileOrBuilder() { + if (mediaFileBuilder_ != null) { + return mediaFileBuilder_.getMessageOrBuilder(); + } else { + return mediaFile_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : mediaFile_; + } + } + /** + *
+     * The MediaFile resource to use for the video.
+     * 
+ * + * .google.protobuf.StringValue media_file = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getMediaFileFieldBuilder() { + if (mediaFileBuilder_ == null) { + mediaFileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getMediaFile(), + getParentForChildren(), + isClean()); + mediaFile_ = null; + } + return mediaFileBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo, com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo.Builder, com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfoOrBuilder> inStreamBuilder_; + /** + *
+     * Video TrueView in-stream format.
+     * 
+ * + * .google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo in_stream = 2; + */ + public boolean hasInStream() { + return formatCase_ == 2; + } + /** + *
+     * Video TrueView in-stream format.
+     * 
+ * + * .google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo in_stream = 2; + */ + public com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo getInStream() { + if (inStreamBuilder_ == null) { + if (formatCase_ == 2) { + return (com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo) format_; + } + return com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo.getDefaultInstance(); + } else { + if (formatCase_ == 2) { + return inStreamBuilder_.getMessage(); + } + return com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo.getDefaultInstance(); + } + } + /** + *
+     * Video TrueView in-stream format.
+     * 
+ * + * .google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo in_stream = 2; + */ + public Builder setInStream(com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo value) { + if (inStreamBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + format_ = value; + onChanged(); + } else { + inStreamBuilder_.setMessage(value); + } + formatCase_ = 2; + return this; + } + /** + *
+     * Video TrueView in-stream format.
+     * 
+ * + * .google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo in_stream = 2; + */ + public Builder setInStream( + com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo.Builder builderForValue) { + if (inStreamBuilder_ == null) { + format_ = builderForValue.build(); + onChanged(); + } else { + inStreamBuilder_.setMessage(builderForValue.build()); + } + formatCase_ = 2; + return this; + } + /** + *
+     * Video TrueView in-stream format.
+     * 
+ * + * .google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo in_stream = 2; + */ + public Builder mergeInStream(com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo value) { + if (inStreamBuilder_ == null) { + if (formatCase_ == 2 && + format_ != com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo.getDefaultInstance()) { + format_ = com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo.newBuilder((com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo) format_) + .mergeFrom(value).buildPartial(); + } else { + format_ = value; + } + onChanged(); + } else { + if (formatCase_ == 2) { + inStreamBuilder_.mergeFrom(value); + } + inStreamBuilder_.setMessage(value); + } + formatCase_ = 2; + return this; + } + /** + *
+     * Video TrueView in-stream format.
+     * 
+ * + * .google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo in_stream = 2; + */ + public Builder clearInStream() { + if (inStreamBuilder_ == null) { + if (formatCase_ == 2) { + formatCase_ = 0; + format_ = null; + onChanged(); + } + } else { + if (formatCase_ == 2) { + formatCase_ = 0; + format_ = null; + } + inStreamBuilder_.clear(); + } + return this; + } + /** + *
+     * Video TrueView in-stream format.
+     * 
+ * + * .google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo in_stream = 2; + */ + public com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo.Builder getInStreamBuilder() { + return getInStreamFieldBuilder().getBuilder(); + } + /** + *
+     * Video TrueView in-stream format.
+     * 
+ * + * .google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo in_stream = 2; + */ + public com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfoOrBuilder getInStreamOrBuilder() { + if ((formatCase_ == 2) && (inStreamBuilder_ != null)) { + return inStreamBuilder_.getMessageOrBuilder(); + } else { + if (formatCase_ == 2) { + return (com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo) format_; + } + return com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo.getDefaultInstance(); + } + } + /** + *
+     * Video TrueView in-stream format.
+     * 
+ * + * .google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo in_stream = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo, com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo.Builder, com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfoOrBuilder> + getInStreamFieldBuilder() { + if (inStreamBuilder_ == null) { + if (!(formatCase_ == 2)) { + format_ = com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo.getDefaultInstance(); + } + inStreamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo, com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo.Builder, com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfoOrBuilder>( + (com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo) format_, + getParentForChildren(), + isClean()); + format_ = null; + } + formatCase_ = 2; + onChanged();; + return inStreamBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.common.VideoAdInfo) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.common.VideoAdInfo) + private static final com.google.ads.googleads.v0.common.VideoAdInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.common.VideoAdInfo(); + } + + public static com.google.ads.googleads.v0.common.VideoAdInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VideoAdInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VideoAdInfo(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.common.VideoAdInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/VideoAdInfoOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/VideoAdInfoOrBuilder.java new file mode 100644 index 0000000000..28910a2af0 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/VideoAdInfoOrBuilder.java @@ -0,0 +1,61 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/ad_type_infos.proto + +package com.google.ads.googleads.v0.common; + +public interface VideoAdInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.common.VideoAdInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The MediaFile resource to use for the video.
+   * 
+ * + * .google.protobuf.StringValue media_file = 1; + */ + boolean hasMediaFile(); + /** + *
+   * The MediaFile resource to use for the video.
+   * 
+ * + * .google.protobuf.StringValue media_file = 1; + */ + com.google.protobuf.StringValue getMediaFile(); + /** + *
+   * The MediaFile resource to use for the video.
+   * 
+ * + * .google.protobuf.StringValue media_file = 1; + */ + com.google.protobuf.StringValueOrBuilder getMediaFileOrBuilder(); + + /** + *
+   * Video TrueView in-stream format.
+   * 
+ * + * .google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo in_stream = 2; + */ + boolean hasInStream(); + /** + *
+   * Video TrueView in-stream format.
+   * 
+ * + * .google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo in_stream = 2; + */ + com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo getInStream(); + /** + *
+   * Video TrueView in-stream format.
+   * 
+ * + * .google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo in_stream = 2; + */ + com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfoOrBuilder getInStreamOrBuilder(); + + public com.google.ads.googleads.v0.common.VideoAdInfo.FormatCase getFormatCase(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/VideoTrueViewInStreamAdInfo.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/VideoTrueViewInStreamAdInfo.java new file mode 100644 index 0000000000..690bf6a072 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/VideoTrueViewInStreamAdInfo.java @@ -0,0 +1,920 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/ad_type_infos.proto + +package com.google.ads.googleads.v0.common; + +/** + *
+ * Representation of video TrueView in-stream ad format (ad shown during video
+ * playback, often at beginning, which displays a skip button a few seconds into
+ * the video).
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo} + */ +public final class VideoTrueViewInStreamAdInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo) + VideoTrueViewInStreamAdInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use VideoTrueViewInStreamAdInfo.newBuilder() to construct. + private VideoTrueViewInStreamAdInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private VideoTrueViewInStreamAdInfo() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private VideoTrueViewInStreamAdInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (actionButtonLabel_ != null) { + subBuilder = actionButtonLabel_.toBuilder(); + } + actionButtonLabel_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(actionButtonLabel_); + actionButtonLabel_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (actionHeadline_ != null) { + subBuilder = actionHeadline_.toBuilder(); + } + actionHeadline_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(actionHeadline_); + actionHeadline_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.AdTypeInfosProto.internal_static_google_ads_googleads_v0_common_VideoTrueViewInStreamAdInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.AdTypeInfosProto.internal_static_google_ads_googleads_v0_common_VideoTrueViewInStreamAdInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo.class, com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo.Builder.class); + } + + public static final int ACTION_BUTTON_LABEL_FIELD_NUMBER = 1; + private com.google.protobuf.StringValue actionButtonLabel_; + /** + *
+   * Label on the CTA (call-to-action) button taking the user to the video ad's
+   * final URL.
+   * Required for TrueView for action campaigns, optional otherwise.
+   * 
+ * + * .google.protobuf.StringValue action_button_label = 1; + */ + public boolean hasActionButtonLabel() { + return actionButtonLabel_ != null; + } + /** + *
+   * Label on the CTA (call-to-action) button taking the user to the video ad's
+   * final URL.
+   * Required for TrueView for action campaigns, optional otherwise.
+   * 
+ * + * .google.protobuf.StringValue action_button_label = 1; + */ + public com.google.protobuf.StringValue getActionButtonLabel() { + return actionButtonLabel_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : actionButtonLabel_; + } + /** + *
+   * Label on the CTA (call-to-action) button taking the user to the video ad's
+   * final URL.
+   * Required for TrueView for action campaigns, optional otherwise.
+   * 
+ * + * .google.protobuf.StringValue action_button_label = 1; + */ + public com.google.protobuf.StringValueOrBuilder getActionButtonLabelOrBuilder() { + return getActionButtonLabel(); + } + + public static final int ACTION_HEADLINE_FIELD_NUMBER = 2; + private com.google.protobuf.StringValue actionHeadline_; + /** + *
+   * Additional text displayed with the CTA (call-to-action) button to give
+   * context and encourage clicking on the button.
+   * 
+ * + * .google.protobuf.StringValue action_headline = 2; + */ + public boolean hasActionHeadline() { + return actionHeadline_ != null; + } + /** + *
+   * Additional text displayed with the CTA (call-to-action) button to give
+   * context and encourage clicking on the button.
+   * 
+ * + * .google.protobuf.StringValue action_headline = 2; + */ + public com.google.protobuf.StringValue getActionHeadline() { + return actionHeadline_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : actionHeadline_; + } + /** + *
+   * Additional text displayed with the CTA (call-to-action) button to give
+   * context and encourage clicking on the button.
+   * 
+ * + * .google.protobuf.StringValue action_headline = 2; + */ + public com.google.protobuf.StringValueOrBuilder getActionHeadlineOrBuilder() { + return getActionHeadline(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (actionButtonLabel_ != null) { + output.writeMessage(1, getActionButtonLabel()); + } + if (actionHeadline_ != null) { + output.writeMessage(2, getActionHeadline()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (actionButtonLabel_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getActionButtonLabel()); + } + if (actionHeadline_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getActionHeadline()); + } + size += unknownFields.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.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo other = (com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo) obj; + + boolean result = true; + result = result && (hasActionButtonLabel() == other.hasActionButtonLabel()); + if (hasActionButtonLabel()) { + result = result && getActionButtonLabel() + .equals(other.getActionButtonLabel()); + } + result = result && (hasActionHeadline() == other.hasActionHeadline()); + if (hasActionHeadline()) { + result = result && getActionHeadline() + .equals(other.getActionHeadline()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasActionButtonLabel()) { + hash = (37 * hash) + ACTION_BUTTON_LABEL_FIELD_NUMBER; + hash = (53 * hash) + getActionButtonLabel().hashCode(); + } + if (hasActionHeadline()) { + hash = (37 * hash) + ACTION_HEADLINE_FIELD_NUMBER; + hash = (53 * hash) + getActionHeadline().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo 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.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo 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.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo 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.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo 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.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo 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; + } + /** + *
+   * Representation of video TrueView in-stream ad format (ad shown during video
+   * playback, often at beginning, which displays a skip button a few seconds into
+   * the video).
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo) + com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.AdTypeInfosProto.internal_static_google_ads_googleads_v0_common_VideoTrueViewInStreamAdInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.AdTypeInfosProto.internal_static_google_ads_googleads_v0_common_VideoTrueViewInStreamAdInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo.class, com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (actionButtonLabelBuilder_ == null) { + actionButtonLabel_ = null; + } else { + actionButtonLabel_ = null; + actionButtonLabelBuilder_ = null; + } + if (actionHeadlineBuilder_ == null) { + actionHeadline_ = null; + } else { + actionHeadline_ = null; + actionHeadlineBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.common.AdTypeInfosProto.internal_static_google_ads_googleads_v0_common_VideoTrueViewInStreamAdInfo_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo getDefaultInstanceForType() { + return com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo build() { + com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo buildPartial() { + com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo result = new com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo(this); + if (actionButtonLabelBuilder_ == null) { + result.actionButtonLabel_ = actionButtonLabel_; + } else { + result.actionButtonLabel_ = actionButtonLabelBuilder_.build(); + } + if (actionHeadlineBuilder_ == null) { + result.actionHeadline_ = actionHeadline_; + } else { + result.actionHeadline_ = actionHeadlineBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo) { + return mergeFrom((com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo other) { + if (other == com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo.getDefaultInstance()) return this; + if (other.hasActionButtonLabel()) { + mergeActionButtonLabel(other.getActionButtonLabel()); + } + if (other.hasActionHeadline()) { + mergeActionHeadline(other.getActionHeadline()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.StringValue actionButtonLabel_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> actionButtonLabelBuilder_; + /** + *
+     * Label on the CTA (call-to-action) button taking the user to the video ad's
+     * final URL.
+     * Required for TrueView for action campaigns, optional otherwise.
+     * 
+ * + * .google.protobuf.StringValue action_button_label = 1; + */ + public boolean hasActionButtonLabel() { + return actionButtonLabelBuilder_ != null || actionButtonLabel_ != null; + } + /** + *
+     * Label on the CTA (call-to-action) button taking the user to the video ad's
+     * final URL.
+     * Required for TrueView for action campaigns, optional otherwise.
+     * 
+ * + * .google.protobuf.StringValue action_button_label = 1; + */ + public com.google.protobuf.StringValue getActionButtonLabel() { + if (actionButtonLabelBuilder_ == null) { + return actionButtonLabel_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : actionButtonLabel_; + } else { + return actionButtonLabelBuilder_.getMessage(); + } + } + /** + *
+     * Label on the CTA (call-to-action) button taking the user to the video ad's
+     * final URL.
+     * Required for TrueView for action campaigns, optional otherwise.
+     * 
+ * + * .google.protobuf.StringValue action_button_label = 1; + */ + public Builder setActionButtonLabel(com.google.protobuf.StringValue value) { + if (actionButtonLabelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + actionButtonLabel_ = value; + onChanged(); + } else { + actionButtonLabelBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Label on the CTA (call-to-action) button taking the user to the video ad's
+     * final URL.
+     * Required for TrueView for action campaigns, optional otherwise.
+     * 
+ * + * .google.protobuf.StringValue action_button_label = 1; + */ + public Builder setActionButtonLabel( + com.google.protobuf.StringValue.Builder builderForValue) { + if (actionButtonLabelBuilder_ == null) { + actionButtonLabel_ = builderForValue.build(); + onChanged(); + } else { + actionButtonLabelBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Label on the CTA (call-to-action) button taking the user to the video ad's
+     * final URL.
+     * Required for TrueView for action campaigns, optional otherwise.
+     * 
+ * + * .google.protobuf.StringValue action_button_label = 1; + */ + public Builder mergeActionButtonLabel(com.google.protobuf.StringValue value) { + if (actionButtonLabelBuilder_ == null) { + if (actionButtonLabel_ != null) { + actionButtonLabel_ = + com.google.protobuf.StringValue.newBuilder(actionButtonLabel_).mergeFrom(value).buildPartial(); + } else { + actionButtonLabel_ = value; + } + onChanged(); + } else { + actionButtonLabelBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Label on the CTA (call-to-action) button taking the user to the video ad's
+     * final URL.
+     * Required for TrueView for action campaigns, optional otherwise.
+     * 
+ * + * .google.protobuf.StringValue action_button_label = 1; + */ + public Builder clearActionButtonLabel() { + if (actionButtonLabelBuilder_ == null) { + actionButtonLabel_ = null; + onChanged(); + } else { + actionButtonLabel_ = null; + actionButtonLabelBuilder_ = null; + } + + return this; + } + /** + *
+     * Label on the CTA (call-to-action) button taking the user to the video ad's
+     * final URL.
+     * Required for TrueView for action campaigns, optional otherwise.
+     * 
+ * + * .google.protobuf.StringValue action_button_label = 1; + */ + public com.google.protobuf.StringValue.Builder getActionButtonLabelBuilder() { + + onChanged(); + return getActionButtonLabelFieldBuilder().getBuilder(); + } + /** + *
+     * Label on the CTA (call-to-action) button taking the user to the video ad's
+     * final URL.
+     * Required for TrueView for action campaigns, optional otherwise.
+     * 
+ * + * .google.protobuf.StringValue action_button_label = 1; + */ + public com.google.protobuf.StringValueOrBuilder getActionButtonLabelOrBuilder() { + if (actionButtonLabelBuilder_ != null) { + return actionButtonLabelBuilder_.getMessageOrBuilder(); + } else { + return actionButtonLabel_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : actionButtonLabel_; + } + } + /** + *
+     * Label on the CTA (call-to-action) button taking the user to the video ad's
+     * final URL.
+     * Required for TrueView for action campaigns, optional otherwise.
+     * 
+ * + * .google.protobuf.StringValue action_button_label = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getActionButtonLabelFieldBuilder() { + if (actionButtonLabelBuilder_ == null) { + actionButtonLabelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getActionButtonLabel(), + getParentForChildren(), + isClean()); + actionButtonLabel_ = null; + } + return actionButtonLabelBuilder_; + } + + private com.google.protobuf.StringValue actionHeadline_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> actionHeadlineBuilder_; + /** + *
+     * Additional text displayed with the CTA (call-to-action) button to give
+     * context and encourage clicking on the button.
+     * 
+ * + * .google.protobuf.StringValue action_headline = 2; + */ + public boolean hasActionHeadline() { + return actionHeadlineBuilder_ != null || actionHeadline_ != null; + } + /** + *
+     * Additional text displayed with the CTA (call-to-action) button to give
+     * context and encourage clicking on the button.
+     * 
+ * + * .google.protobuf.StringValue action_headline = 2; + */ + public com.google.protobuf.StringValue getActionHeadline() { + if (actionHeadlineBuilder_ == null) { + return actionHeadline_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : actionHeadline_; + } else { + return actionHeadlineBuilder_.getMessage(); + } + } + /** + *
+     * Additional text displayed with the CTA (call-to-action) button to give
+     * context and encourage clicking on the button.
+     * 
+ * + * .google.protobuf.StringValue action_headline = 2; + */ + public Builder setActionHeadline(com.google.protobuf.StringValue value) { + if (actionHeadlineBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + actionHeadline_ = value; + onChanged(); + } else { + actionHeadlineBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Additional text displayed with the CTA (call-to-action) button to give
+     * context and encourage clicking on the button.
+     * 
+ * + * .google.protobuf.StringValue action_headline = 2; + */ + public Builder setActionHeadline( + com.google.protobuf.StringValue.Builder builderForValue) { + if (actionHeadlineBuilder_ == null) { + actionHeadline_ = builderForValue.build(); + onChanged(); + } else { + actionHeadlineBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Additional text displayed with the CTA (call-to-action) button to give
+     * context and encourage clicking on the button.
+     * 
+ * + * .google.protobuf.StringValue action_headline = 2; + */ + public Builder mergeActionHeadline(com.google.protobuf.StringValue value) { + if (actionHeadlineBuilder_ == null) { + if (actionHeadline_ != null) { + actionHeadline_ = + com.google.protobuf.StringValue.newBuilder(actionHeadline_).mergeFrom(value).buildPartial(); + } else { + actionHeadline_ = value; + } + onChanged(); + } else { + actionHeadlineBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Additional text displayed with the CTA (call-to-action) button to give
+     * context and encourage clicking on the button.
+     * 
+ * + * .google.protobuf.StringValue action_headline = 2; + */ + public Builder clearActionHeadline() { + if (actionHeadlineBuilder_ == null) { + actionHeadline_ = null; + onChanged(); + } else { + actionHeadline_ = null; + actionHeadlineBuilder_ = null; + } + + return this; + } + /** + *
+     * Additional text displayed with the CTA (call-to-action) button to give
+     * context and encourage clicking on the button.
+     * 
+ * + * .google.protobuf.StringValue action_headline = 2; + */ + public com.google.protobuf.StringValue.Builder getActionHeadlineBuilder() { + + onChanged(); + return getActionHeadlineFieldBuilder().getBuilder(); + } + /** + *
+     * Additional text displayed with the CTA (call-to-action) button to give
+     * context and encourage clicking on the button.
+     * 
+ * + * .google.protobuf.StringValue action_headline = 2; + */ + public com.google.protobuf.StringValueOrBuilder getActionHeadlineOrBuilder() { + if (actionHeadlineBuilder_ != null) { + return actionHeadlineBuilder_.getMessageOrBuilder(); + } else { + return actionHeadline_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : actionHeadline_; + } + } + /** + *
+     * Additional text displayed with the CTA (call-to-action) button to give
+     * context and encourage clicking on the button.
+     * 
+ * + * .google.protobuf.StringValue action_headline = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getActionHeadlineFieldBuilder() { + if (actionHeadlineBuilder_ == null) { + actionHeadlineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getActionHeadline(), + getParentForChildren(), + isClean()); + actionHeadline_ = null; + } + return actionHeadlineBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo) + private static final com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo(); + } + + public static com.google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VideoTrueViewInStreamAdInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VideoTrueViewInStreamAdInfo(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/VideoTrueViewInStreamAdInfoOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/VideoTrueViewInStreamAdInfoOrBuilder.java new file mode 100644 index 0000000000..92767ee00c --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/VideoTrueViewInStreamAdInfoOrBuilder.java @@ -0,0 +1,68 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/ad_type_infos.proto + +package com.google.ads.googleads.v0.common; + +public interface VideoTrueViewInStreamAdInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.common.VideoTrueViewInStreamAdInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Label on the CTA (call-to-action) button taking the user to the video ad's
+   * final URL.
+   * Required for TrueView for action campaigns, optional otherwise.
+   * 
+ * + * .google.protobuf.StringValue action_button_label = 1; + */ + boolean hasActionButtonLabel(); + /** + *
+   * Label on the CTA (call-to-action) button taking the user to the video ad's
+   * final URL.
+   * Required for TrueView for action campaigns, optional otherwise.
+   * 
+ * + * .google.protobuf.StringValue action_button_label = 1; + */ + com.google.protobuf.StringValue getActionButtonLabel(); + /** + *
+   * Label on the CTA (call-to-action) button taking the user to the video ad's
+   * final URL.
+   * Required for TrueView for action campaigns, optional otherwise.
+   * 
+ * + * .google.protobuf.StringValue action_button_label = 1; + */ + com.google.protobuf.StringValueOrBuilder getActionButtonLabelOrBuilder(); + + /** + *
+   * Additional text displayed with the CTA (call-to-action) button to give
+   * context and encourage clicking on the button.
+   * 
+ * + * .google.protobuf.StringValue action_headline = 2; + */ + boolean hasActionHeadline(); + /** + *
+   * Additional text displayed with the CTA (call-to-action) button to give
+   * context and encourage clicking on the button.
+   * 
+ * + * .google.protobuf.StringValue action_headline = 2; + */ + com.google.protobuf.StringValue getActionHeadline(); + /** + *
+   * Additional text displayed with the CTA (call-to-action) button to give
+   * context and encourage clicking on the button.
+   * 
+ * + * .google.protobuf.StringValue action_headline = 2; + */ + com.google.protobuf.StringValueOrBuilder getActionHeadlineOrBuilder(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/WebpageConditionInfo.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/WebpageConditionInfo.java new file mode 100644 index 0000000000..c6ae37cec1 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/WebpageConditionInfo.java @@ -0,0 +1,877 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/criteria.proto + +package com.google.ads.googleads.v0.common; + +/** + *
+ * Logical expression for targeting webpages of an advertiser's website.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.WebpageConditionInfo} + */ +public final class WebpageConditionInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.common.WebpageConditionInfo) + WebpageConditionInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use WebpageConditionInfo.newBuilder() to construct. + private WebpageConditionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WebpageConditionInfo() { + operand_ = 0; + operator_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WebpageConditionInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + operand_ = rawValue; + break; + } + case 16: { + int rawValue = input.readEnum(); + + operator_ = rawValue; + break; + } + case 26: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (argument_ != null) { + subBuilder = argument_.toBuilder(); + } + argument_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(argument_); + argument_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.CriteriaProto.internal_static_google_ads_googleads_v0_common_WebpageConditionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.CriteriaProto.internal_static_google_ads_googleads_v0_common_WebpageConditionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.WebpageConditionInfo.class, com.google.ads.googleads.v0.common.WebpageConditionInfo.Builder.class); + } + + public static final int OPERAND_FIELD_NUMBER = 1; + private int operand_; + /** + *
+   * Operand of webpage targeting condition.
+   * 
+ * + * .google.ads.googleads.v0.enums.WebpageConditionOperandEnum.WebpageConditionOperand operand = 1; + */ + public int getOperandValue() { + return operand_; + } + /** + *
+   * Operand of webpage targeting condition.
+   * 
+ * + * .google.ads.googleads.v0.enums.WebpageConditionOperandEnum.WebpageConditionOperand operand = 1; + */ + public com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum.WebpageConditionOperand getOperand() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum.WebpageConditionOperand result = com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum.WebpageConditionOperand.valueOf(operand_); + return result == null ? com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum.WebpageConditionOperand.UNRECOGNIZED : result; + } + + public static final int OPERATOR_FIELD_NUMBER = 2; + private int operator_; + /** + *
+   * Operator of webpage targeting condition.
+   * 
+ * + * .google.ads.googleads.v0.enums.WebpageConditionOperatorEnum.WebpageConditionOperator operator = 2; + */ + public int getOperatorValue() { + return operator_; + } + /** + *
+   * Operator of webpage targeting condition.
+   * 
+ * + * .google.ads.googleads.v0.enums.WebpageConditionOperatorEnum.WebpageConditionOperator operator = 2; + */ + public com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum.WebpageConditionOperator getOperator() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum.WebpageConditionOperator result = com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum.WebpageConditionOperator.valueOf(operator_); + return result == null ? com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum.WebpageConditionOperator.UNRECOGNIZED : result; + } + + public static final int ARGUMENT_FIELD_NUMBER = 3; + private com.google.protobuf.StringValue argument_; + /** + *
+   * Argument of webpage targeting condition.
+   * 
+ * + * .google.protobuf.StringValue argument = 3; + */ + public boolean hasArgument() { + return argument_ != null; + } + /** + *
+   * Argument of webpage targeting condition.
+   * 
+ * + * .google.protobuf.StringValue argument = 3; + */ + public com.google.protobuf.StringValue getArgument() { + return argument_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : argument_; + } + /** + *
+   * Argument of webpage targeting condition.
+   * 
+ * + * .google.protobuf.StringValue argument = 3; + */ + public com.google.protobuf.StringValueOrBuilder getArgumentOrBuilder() { + return getArgument(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (operand_ != com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum.WebpageConditionOperand.UNSPECIFIED.getNumber()) { + output.writeEnum(1, operand_); + } + if (operator_ != com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum.WebpageConditionOperator.UNSPECIFIED.getNumber()) { + output.writeEnum(2, operator_); + } + if (argument_ != null) { + output.writeMessage(3, getArgument()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (operand_ != com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum.WebpageConditionOperand.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, operand_); + } + if (operator_ != com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum.WebpageConditionOperator.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, operator_); + } + if (argument_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getArgument()); + } + size += unknownFields.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.ads.googleads.v0.common.WebpageConditionInfo)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.common.WebpageConditionInfo other = (com.google.ads.googleads.v0.common.WebpageConditionInfo) obj; + + boolean result = true; + result = result && operand_ == other.operand_; + result = result && operator_ == other.operator_; + result = result && (hasArgument() == other.hasArgument()); + if (hasArgument()) { + result = result && getArgument() + .equals(other.getArgument()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OPERAND_FIELD_NUMBER; + hash = (53 * hash) + operand_; + hash = (37 * hash) + OPERATOR_FIELD_NUMBER; + hash = (53 * hash) + operator_; + if (hasArgument()) { + hash = (37 * hash) + ARGUMENT_FIELD_NUMBER; + hash = (53 * hash) + getArgument().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.common.WebpageConditionInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.WebpageConditionInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.WebpageConditionInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.WebpageConditionInfo 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.ads.googleads.v0.common.WebpageConditionInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.WebpageConditionInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.WebpageConditionInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.WebpageConditionInfo 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.ads.googleads.v0.common.WebpageConditionInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.WebpageConditionInfo 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.ads.googleads.v0.common.WebpageConditionInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.WebpageConditionInfo 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.ads.googleads.v0.common.WebpageConditionInfo 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; + } + /** + *
+   * Logical expression for targeting webpages of an advertiser's website.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.WebpageConditionInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.common.WebpageConditionInfo) + com.google.ads.googleads.v0.common.WebpageConditionInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.CriteriaProto.internal_static_google_ads_googleads_v0_common_WebpageConditionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.CriteriaProto.internal_static_google_ads_googleads_v0_common_WebpageConditionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.WebpageConditionInfo.class, com.google.ads.googleads.v0.common.WebpageConditionInfo.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.common.WebpageConditionInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + operand_ = 0; + + operator_ = 0; + + if (argumentBuilder_ == null) { + argument_ = null; + } else { + argument_ = null; + argumentBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.common.CriteriaProto.internal_static_google_ads_googleads_v0_common_WebpageConditionInfo_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.WebpageConditionInfo getDefaultInstanceForType() { + return com.google.ads.googleads.v0.common.WebpageConditionInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.WebpageConditionInfo build() { + com.google.ads.googleads.v0.common.WebpageConditionInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.WebpageConditionInfo buildPartial() { + com.google.ads.googleads.v0.common.WebpageConditionInfo result = new com.google.ads.googleads.v0.common.WebpageConditionInfo(this); + result.operand_ = operand_; + result.operator_ = operator_; + if (argumentBuilder_ == null) { + result.argument_ = argument_; + } else { + result.argument_ = argumentBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.common.WebpageConditionInfo) { + return mergeFrom((com.google.ads.googleads.v0.common.WebpageConditionInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.common.WebpageConditionInfo other) { + if (other == com.google.ads.googleads.v0.common.WebpageConditionInfo.getDefaultInstance()) return this; + if (other.operand_ != 0) { + setOperandValue(other.getOperandValue()); + } + if (other.operator_ != 0) { + setOperatorValue(other.getOperatorValue()); + } + if (other.hasArgument()) { + mergeArgument(other.getArgument()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.common.WebpageConditionInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.common.WebpageConditionInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int operand_ = 0; + /** + *
+     * Operand of webpage targeting condition.
+     * 
+ * + * .google.ads.googleads.v0.enums.WebpageConditionOperandEnum.WebpageConditionOperand operand = 1; + */ + public int getOperandValue() { + return operand_; + } + /** + *
+     * Operand of webpage targeting condition.
+     * 
+ * + * .google.ads.googleads.v0.enums.WebpageConditionOperandEnum.WebpageConditionOperand operand = 1; + */ + public Builder setOperandValue(int value) { + operand_ = value; + onChanged(); + return this; + } + /** + *
+     * Operand of webpage targeting condition.
+     * 
+ * + * .google.ads.googleads.v0.enums.WebpageConditionOperandEnum.WebpageConditionOperand operand = 1; + */ + public com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum.WebpageConditionOperand getOperand() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum.WebpageConditionOperand result = com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum.WebpageConditionOperand.valueOf(operand_); + return result == null ? com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum.WebpageConditionOperand.UNRECOGNIZED : result; + } + /** + *
+     * Operand of webpage targeting condition.
+     * 
+ * + * .google.ads.googleads.v0.enums.WebpageConditionOperandEnum.WebpageConditionOperand operand = 1; + */ + public Builder setOperand(com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum.WebpageConditionOperand value) { + if (value == null) { + throw new NullPointerException(); + } + + operand_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Operand of webpage targeting condition.
+     * 
+ * + * .google.ads.googleads.v0.enums.WebpageConditionOperandEnum.WebpageConditionOperand operand = 1; + */ + public Builder clearOperand() { + + operand_ = 0; + onChanged(); + return this; + } + + private int operator_ = 0; + /** + *
+     * Operator of webpage targeting condition.
+     * 
+ * + * .google.ads.googleads.v0.enums.WebpageConditionOperatorEnum.WebpageConditionOperator operator = 2; + */ + public int getOperatorValue() { + return operator_; + } + /** + *
+     * Operator of webpage targeting condition.
+     * 
+ * + * .google.ads.googleads.v0.enums.WebpageConditionOperatorEnum.WebpageConditionOperator operator = 2; + */ + public Builder setOperatorValue(int value) { + operator_ = value; + onChanged(); + return this; + } + /** + *
+     * Operator of webpage targeting condition.
+     * 
+ * + * .google.ads.googleads.v0.enums.WebpageConditionOperatorEnum.WebpageConditionOperator operator = 2; + */ + public com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum.WebpageConditionOperator getOperator() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum.WebpageConditionOperator result = com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum.WebpageConditionOperator.valueOf(operator_); + return result == null ? com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum.WebpageConditionOperator.UNRECOGNIZED : result; + } + /** + *
+     * Operator of webpage targeting condition.
+     * 
+ * + * .google.ads.googleads.v0.enums.WebpageConditionOperatorEnum.WebpageConditionOperator operator = 2; + */ + public Builder setOperator(com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum.WebpageConditionOperator value) { + if (value == null) { + throw new NullPointerException(); + } + + operator_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Operator of webpage targeting condition.
+     * 
+ * + * .google.ads.googleads.v0.enums.WebpageConditionOperatorEnum.WebpageConditionOperator operator = 2; + */ + public Builder clearOperator() { + + operator_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.StringValue argument_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> argumentBuilder_; + /** + *
+     * Argument of webpage targeting condition.
+     * 
+ * + * .google.protobuf.StringValue argument = 3; + */ + public boolean hasArgument() { + return argumentBuilder_ != null || argument_ != null; + } + /** + *
+     * Argument of webpage targeting condition.
+     * 
+ * + * .google.protobuf.StringValue argument = 3; + */ + public com.google.protobuf.StringValue getArgument() { + if (argumentBuilder_ == null) { + return argument_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : argument_; + } else { + return argumentBuilder_.getMessage(); + } + } + /** + *
+     * Argument of webpage targeting condition.
+     * 
+ * + * .google.protobuf.StringValue argument = 3; + */ + public Builder setArgument(com.google.protobuf.StringValue value) { + if (argumentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + argument_ = value; + onChanged(); + } else { + argumentBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Argument of webpage targeting condition.
+     * 
+ * + * .google.protobuf.StringValue argument = 3; + */ + public Builder setArgument( + com.google.protobuf.StringValue.Builder builderForValue) { + if (argumentBuilder_ == null) { + argument_ = builderForValue.build(); + onChanged(); + } else { + argumentBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Argument of webpage targeting condition.
+     * 
+ * + * .google.protobuf.StringValue argument = 3; + */ + public Builder mergeArgument(com.google.protobuf.StringValue value) { + if (argumentBuilder_ == null) { + if (argument_ != null) { + argument_ = + com.google.protobuf.StringValue.newBuilder(argument_).mergeFrom(value).buildPartial(); + } else { + argument_ = value; + } + onChanged(); + } else { + argumentBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Argument of webpage targeting condition.
+     * 
+ * + * .google.protobuf.StringValue argument = 3; + */ + public Builder clearArgument() { + if (argumentBuilder_ == null) { + argument_ = null; + onChanged(); + } else { + argument_ = null; + argumentBuilder_ = null; + } + + return this; + } + /** + *
+     * Argument of webpage targeting condition.
+     * 
+ * + * .google.protobuf.StringValue argument = 3; + */ + public com.google.protobuf.StringValue.Builder getArgumentBuilder() { + + onChanged(); + return getArgumentFieldBuilder().getBuilder(); + } + /** + *
+     * Argument of webpage targeting condition.
+     * 
+ * + * .google.protobuf.StringValue argument = 3; + */ + public com.google.protobuf.StringValueOrBuilder getArgumentOrBuilder() { + if (argumentBuilder_ != null) { + return argumentBuilder_.getMessageOrBuilder(); + } else { + return argument_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : argument_; + } + } + /** + *
+     * Argument of webpage targeting condition.
+     * 
+ * + * .google.protobuf.StringValue argument = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getArgumentFieldBuilder() { + if (argumentBuilder_ == null) { + argumentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getArgument(), + getParentForChildren(), + isClean()); + argument_ = null; + } + return argumentBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.common.WebpageConditionInfo) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.common.WebpageConditionInfo) + private static final com.google.ads.googleads.v0.common.WebpageConditionInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.common.WebpageConditionInfo(); + } + + public static com.google.ads.googleads.v0.common.WebpageConditionInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebpageConditionInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebpageConditionInfo(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.common.WebpageConditionInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/WebpageConditionInfoOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/WebpageConditionInfoOrBuilder.java new file mode 100644 index 0000000000..b26a0a7dae --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/WebpageConditionInfoOrBuilder.java @@ -0,0 +1,68 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/criteria.proto + +package com.google.ads.googleads.v0.common; + +public interface WebpageConditionInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.common.WebpageConditionInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Operand of webpage targeting condition.
+   * 
+ * + * .google.ads.googleads.v0.enums.WebpageConditionOperandEnum.WebpageConditionOperand operand = 1; + */ + int getOperandValue(); + /** + *
+   * Operand of webpage targeting condition.
+   * 
+ * + * .google.ads.googleads.v0.enums.WebpageConditionOperandEnum.WebpageConditionOperand operand = 1; + */ + com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum.WebpageConditionOperand getOperand(); + + /** + *
+   * Operator of webpage targeting condition.
+   * 
+ * + * .google.ads.googleads.v0.enums.WebpageConditionOperatorEnum.WebpageConditionOperator operator = 2; + */ + int getOperatorValue(); + /** + *
+   * Operator of webpage targeting condition.
+   * 
+ * + * .google.ads.googleads.v0.enums.WebpageConditionOperatorEnum.WebpageConditionOperator operator = 2; + */ + com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum.WebpageConditionOperator getOperator(); + + /** + *
+   * Argument of webpage targeting condition.
+   * 
+ * + * .google.protobuf.StringValue argument = 3; + */ + boolean hasArgument(); + /** + *
+   * Argument of webpage targeting condition.
+   * 
+ * + * .google.protobuf.StringValue argument = 3; + */ + com.google.protobuf.StringValue getArgument(); + /** + *
+   * Argument of webpage targeting condition.
+   * 
+ * + * .google.protobuf.StringValue argument = 3; + */ + com.google.protobuf.StringValueOrBuilder getArgumentOrBuilder(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/WebpageInfo.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/WebpageInfo.java new file mode 100644 index 0000000000..251da3a7a0 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/WebpageInfo.java @@ -0,0 +1,1231 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/criteria.proto + +package com.google.ads.googleads.v0.common; + +/** + *
+ * Represents a criterion for targeting webpages of an advertiser's website.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.WebpageInfo} + */ +public final class WebpageInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.common.WebpageInfo) + WebpageInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use WebpageInfo.newBuilder() to construct. + private WebpageInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WebpageInfo() { + conditions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WebpageInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (criterionName_ != null) { + subBuilder = criterionName_.toBuilder(); + } + criterionName_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(criterionName_); + criterionName_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + conditions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + conditions_.add( + input.readMessage(com.google.ads.googleads.v0.common.WebpageConditionInfo.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.CriteriaProto.internal_static_google_ads_googleads_v0_common_WebpageInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.CriteriaProto.internal_static_google_ads_googleads_v0_common_WebpageInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.WebpageInfo.class, com.google.ads.googleads.v0.common.WebpageInfo.Builder.class); + } + + private int bitField0_; + public static final int CRITERION_NAME_FIELD_NUMBER = 1; + private com.google.protobuf.StringValue criterionName_; + /** + *
+   * The name of the criterion that is defined by this parameter. The name value
+   * will be used for identifying, sorting and filtering criteria with this type
+   * of parameters.
+   * This field is required for CREATE operations and is prohibited on UPDATE
+   * operations.
+   * 
+ * + * .google.protobuf.StringValue criterion_name = 1; + */ + public boolean hasCriterionName() { + return criterionName_ != null; + } + /** + *
+   * The name of the criterion that is defined by this parameter. The name value
+   * will be used for identifying, sorting and filtering criteria with this type
+   * of parameters.
+   * This field is required for CREATE operations and is prohibited on UPDATE
+   * operations.
+   * 
+ * + * .google.protobuf.StringValue criterion_name = 1; + */ + public com.google.protobuf.StringValue getCriterionName() { + return criterionName_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : criterionName_; + } + /** + *
+   * The name of the criterion that is defined by this parameter. The name value
+   * will be used for identifying, sorting and filtering criteria with this type
+   * of parameters.
+   * This field is required for CREATE operations and is prohibited on UPDATE
+   * operations.
+   * 
+ * + * .google.protobuf.StringValue criterion_name = 1; + */ + public com.google.protobuf.StringValueOrBuilder getCriterionNameOrBuilder() { + return getCriterionName(); + } + + public static final int CONDITIONS_FIELD_NUMBER = 2; + private java.util.List conditions_; + /** + *
+   * Conditions, or logical expressions, for webpage targeting. The list of
+   * webpage targeting conditions are and-ed together when evaluated
+   * for targeting.
+   * This field is required for CREATE operations and is prohibited on UPDATE
+   * operations.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.WebpageConditionInfo conditions = 2; + */ + public java.util.List getConditionsList() { + return conditions_; + } + /** + *
+   * Conditions, or logical expressions, for webpage targeting. The list of
+   * webpage targeting conditions are and-ed together when evaluated
+   * for targeting.
+   * This field is required for CREATE operations and is prohibited on UPDATE
+   * operations.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.WebpageConditionInfo conditions = 2; + */ + public java.util.List + getConditionsOrBuilderList() { + return conditions_; + } + /** + *
+   * Conditions, or logical expressions, for webpage targeting. The list of
+   * webpage targeting conditions are and-ed together when evaluated
+   * for targeting.
+   * This field is required for CREATE operations and is prohibited on UPDATE
+   * operations.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.WebpageConditionInfo conditions = 2; + */ + public int getConditionsCount() { + return conditions_.size(); + } + /** + *
+   * Conditions, or logical expressions, for webpage targeting. The list of
+   * webpage targeting conditions are and-ed together when evaluated
+   * for targeting.
+   * This field is required for CREATE operations and is prohibited on UPDATE
+   * operations.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.WebpageConditionInfo conditions = 2; + */ + public com.google.ads.googleads.v0.common.WebpageConditionInfo getConditions(int index) { + return conditions_.get(index); + } + /** + *
+   * Conditions, or logical expressions, for webpage targeting. The list of
+   * webpage targeting conditions are and-ed together when evaluated
+   * for targeting.
+   * This field is required for CREATE operations and is prohibited on UPDATE
+   * operations.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.WebpageConditionInfo conditions = 2; + */ + public com.google.ads.googleads.v0.common.WebpageConditionInfoOrBuilder getConditionsOrBuilder( + int index) { + return conditions_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (criterionName_ != null) { + output.writeMessage(1, getCriterionName()); + } + for (int i = 0; i < conditions_.size(); i++) { + output.writeMessage(2, conditions_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (criterionName_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCriterionName()); + } + for (int i = 0; i < conditions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, conditions_.get(i)); + } + size += unknownFields.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.ads.googleads.v0.common.WebpageInfo)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.common.WebpageInfo other = (com.google.ads.googleads.v0.common.WebpageInfo) obj; + + boolean result = true; + result = result && (hasCriterionName() == other.hasCriterionName()); + if (hasCriterionName()) { + result = result && getCriterionName() + .equals(other.getCriterionName()); + } + result = result && getConditionsList() + .equals(other.getConditionsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCriterionName()) { + hash = (37 * hash) + CRITERION_NAME_FIELD_NUMBER; + hash = (53 * hash) + getCriterionName().hashCode(); + } + if (getConditionsCount() > 0) { + hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getConditionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.common.WebpageInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.WebpageInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.WebpageInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.WebpageInfo 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.ads.googleads.v0.common.WebpageInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.common.WebpageInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.common.WebpageInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.WebpageInfo 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.ads.googleads.v0.common.WebpageInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.WebpageInfo 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.ads.googleads.v0.common.WebpageInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.common.WebpageInfo 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.ads.googleads.v0.common.WebpageInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Represents a criterion for targeting webpages of an advertiser's website.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.common.WebpageInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.common.WebpageInfo) + com.google.ads.googleads.v0.common.WebpageInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.common.CriteriaProto.internal_static_google_ads_googleads_v0_common_WebpageInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.common.CriteriaProto.internal_static_google_ads_googleads_v0_common_WebpageInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.common.WebpageInfo.class, com.google.ads.googleads.v0.common.WebpageInfo.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.common.WebpageInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getConditionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (criterionNameBuilder_ == null) { + criterionName_ = null; + } else { + criterionName_ = null; + criterionNameBuilder_ = null; + } + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + conditionsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.common.CriteriaProto.internal_static_google_ads_googleads_v0_common_WebpageInfo_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.WebpageInfo getDefaultInstanceForType() { + return com.google.ads.googleads.v0.common.WebpageInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.WebpageInfo build() { + com.google.ads.googleads.v0.common.WebpageInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.common.WebpageInfo buildPartial() { + com.google.ads.googleads.v0.common.WebpageInfo result = new com.google.ads.googleads.v0.common.WebpageInfo(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (criterionNameBuilder_ == null) { + result.criterionName_ = criterionName_; + } else { + result.criterionName_ = criterionNameBuilder_.build(); + } + if (conditionsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.conditions_ = conditions_; + } else { + result.conditions_ = conditionsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.common.WebpageInfo) { + return mergeFrom((com.google.ads.googleads.v0.common.WebpageInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.common.WebpageInfo other) { + if (other == com.google.ads.googleads.v0.common.WebpageInfo.getDefaultInstance()) return this; + if (other.hasCriterionName()) { + mergeCriterionName(other.getCriterionName()); + } + if (conditionsBuilder_ == null) { + if (!other.conditions_.isEmpty()) { + if (conditions_.isEmpty()) { + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureConditionsIsMutable(); + conditions_.addAll(other.conditions_); + } + onChanged(); + } + } else { + if (!other.conditions_.isEmpty()) { + if (conditionsBuilder_.isEmpty()) { + conditionsBuilder_.dispose(); + conditionsBuilder_ = null; + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000002); + conditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConditionsFieldBuilder() : null; + } else { + conditionsBuilder_.addAllMessages(other.conditions_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.common.WebpageInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.common.WebpageInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.StringValue criterionName_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> criterionNameBuilder_; + /** + *
+     * The name of the criterion that is defined by this parameter. The name value
+     * will be used for identifying, sorting and filtering criteria with this type
+     * of parameters.
+     * This field is required for CREATE operations and is prohibited on UPDATE
+     * operations.
+     * 
+ * + * .google.protobuf.StringValue criterion_name = 1; + */ + public boolean hasCriterionName() { + return criterionNameBuilder_ != null || criterionName_ != null; + } + /** + *
+     * The name of the criterion that is defined by this parameter. The name value
+     * will be used for identifying, sorting and filtering criteria with this type
+     * of parameters.
+     * This field is required for CREATE operations and is prohibited on UPDATE
+     * operations.
+     * 
+ * + * .google.protobuf.StringValue criterion_name = 1; + */ + public com.google.protobuf.StringValue getCriterionName() { + if (criterionNameBuilder_ == null) { + return criterionName_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : criterionName_; + } else { + return criterionNameBuilder_.getMessage(); + } + } + /** + *
+     * The name of the criterion that is defined by this parameter. The name value
+     * will be used for identifying, sorting and filtering criteria with this type
+     * of parameters.
+     * This field is required for CREATE operations and is prohibited on UPDATE
+     * operations.
+     * 
+ * + * .google.protobuf.StringValue criterion_name = 1; + */ + public Builder setCriterionName(com.google.protobuf.StringValue value) { + if (criterionNameBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + criterionName_ = value; + onChanged(); + } else { + criterionNameBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The name of the criterion that is defined by this parameter. The name value
+     * will be used for identifying, sorting and filtering criteria with this type
+     * of parameters.
+     * This field is required for CREATE operations and is prohibited on UPDATE
+     * operations.
+     * 
+ * + * .google.protobuf.StringValue criterion_name = 1; + */ + public Builder setCriterionName( + com.google.protobuf.StringValue.Builder builderForValue) { + if (criterionNameBuilder_ == null) { + criterionName_ = builderForValue.build(); + onChanged(); + } else { + criterionNameBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The name of the criterion that is defined by this parameter. The name value
+     * will be used for identifying, sorting and filtering criteria with this type
+     * of parameters.
+     * This field is required for CREATE operations and is prohibited on UPDATE
+     * operations.
+     * 
+ * + * .google.protobuf.StringValue criterion_name = 1; + */ + public Builder mergeCriterionName(com.google.protobuf.StringValue value) { + if (criterionNameBuilder_ == null) { + if (criterionName_ != null) { + criterionName_ = + com.google.protobuf.StringValue.newBuilder(criterionName_).mergeFrom(value).buildPartial(); + } else { + criterionName_ = value; + } + onChanged(); + } else { + criterionNameBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The name of the criterion that is defined by this parameter. The name value
+     * will be used for identifying, sorting and filtering criteria with this type
+     * of parameters.
+     * This field is required for CREATE operations and is prohibited on UPDATE
+     * operations.
+     * 
+ * + * .google.protobuf.StringValue criterion_name = 1; + */ + public Builder clearCriterionName() { + if (criterionNameBuilder_ == null) { + criterionName_ = null; + onChanged(); + } else { + criterionName_ = null; + criterionNameBuilder_ = null; + } + + return this; + } + /** + *
+     * The name of the criterion that is defined by this parameter. The name value
+     * will be used for identifying, sorting and filtering criteria with this type
+     * of parameters.
+     * This field is required for CREATE operations and is prohibited on UPDATE
+     * operations.
+     * 
+ * + * .google.protobuf.StringValue criterion_name = 1; + */ + public com.google.protobuf.StringValue.Builder getCriterionNameBuilder() { + + onChanged(); + return getCriterionNameFieldBuilder().getBuilder(); + } + /** + *
+     * The name of the criterion that is defined by this parameter. The name value
+     * will be used for identifying, sorting and filtering criteria with this type
+     * of parameters.
+     * This field is required for CREATE operations and is prohibited on UPDATE
+     * operations.
+     * 
+ * + * .google.protobuf.StringValue criterion_name = 1; + */ + public com.google.protobuf.StringValueOrBuilder getCriterionNameOrBuilder() { + if (criterionNameBuilder_ != null) { + return criterionNameBuilder_.getMessageOrBuilder(); + } else { + return criterionName_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : criterionName_; + } + } + /** + *
+     * The name of the criterion that is defined by this parameter. The name value
+     * will be used for identifying, sorting and filtering criteria with this type
+     * of parameters.
+     * This field is required for CREATE operations and is prohibited on UPDATE
+     * operations.
+     * 
+ * + * .google.protobuf.StringValue criterion_name = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getCriterionNameFieldBuilder() { + if (criterionNameBuilder_ == null) { + criterionNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getCriterionName(), + getParentForChildren(), + isClean()); + criterionName_ = null; + } + return criterionNameBuilder_; + } + + private java.util.List conditions_ = + java.util.Collections.emptyList(); + private void ensureConditionsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + conditions_ = new java.util.ArrayList(conditions_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.common.WebpageConditionInfo, com.google.ads.googleads.v0.common.WebpageConditionInfo.Builder, com.google.ads.googleads.v0.common.WebpageConditionInfoOrBuilder> conditionsBuilder_; + + /** + *
+     * Conditions, or logical expressions, for webpage targeting. The list of
+     * webpage targeting conditions are and-ed together when evaluated
+     * for targeting.
+     * This field is required for CREATE operations and is prohibited on UPDATE
+     * operations.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.WebpageConditionInfo conditions = 2; + */ + public java.util.List getConditionsList() { + if (conditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conditions_); + } else { + return conditionsBuilder_.getMessageList(); + } + } + /** + *
+     * Conditions, or logical expressions, for webpage targeting. The list of
+     * webpage targeting conditions are and-ed together when evaluated
+     * for targeting.
+     * This field is required for CREATE operations and is prohibited on UPDATE
+     * operations.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.WebpageConditionInfo conditions = 2; + */ + public int getConditionsCount() { + if (conditionsBuilder_ == null) { + return conditions_.size(); + } else { + return conditionsBuilder_.getCount(); + } + } + /** + *
+     * Conditions, or logical expressions, for webpage targeting. The list of
+     * webpage targeting conditions are and-ed together when evaluated
+     * for targeting.
+     * This field is required for CREATE operations and is prohibited on UPDATE
+     * operations.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.WebpageConditionInfo conditions = 2; + */ + public com.google.ads.googleads.v0.common.WebpageConditionInfo getConditions(int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); + } else { + return conditionsBuilder_.getMessage(index); + } + } + /** + *
+     * Conditions, or logical expressions, for webpage targeting. The list of
+     * webpage targeting conditions are and-ed together when evaluated
+     * for targeting.
+     * This field is required for CREATE operations and is prohibited on UPDATE
+     * operations.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.WebpageConditionInfo conditions = 2; + */ + public Builder setConditions( + int index, com.google.ads.googleads.v0.common.WebpageConditionInfo value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.set(index, value); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Conditions, or logical expressions, for webpage targeting. The list of
+     * webpage targeting conditions are and-ed together when evaluated
+     * for targeting.
+     * This field is required for CREATE operations and is prohibited on UPDATE
+     * operations.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.WebpageConditionInfo conditions = 2; + */ + public Builder setConditions( + int index, com.google.ads.googleads.v0.common.WebpageConditionInfo.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.set(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Conditions, or logical expressions, for webpage targeting. The list of
+     * webpage targeting conditions are and-ed together when evaluated
+     * for targeting.
+     * This field is required for CREATE operations and is prohibited on UPDATE
+     * operations.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.WebpageConditionInfo conditions = 2; + */ + public Builder addConditions(com.google.ads.googleads.v0.common.WebpageConditionInfo value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(value); + onChanged(); + } else { + conditionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Conditions, or logical expressions, for webpage targeting. The list of
+     * webpage targeting conditions are and-ed together when evaluated
+     * for targeting.
+     * This field is required for CREATE operations and is prohibited on UPDATE
+     * operations.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.WebpageConditionInfo conditions = 2; + */ + public Builder addConditions( + int index, com.google.ads.googleads.v0.common.WebpageConditionInfo value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(index, value); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Conditions, or logical expressions, for webpage targeting. The list of
+     * webpage targeting conditions are and-ed together when evaluated
+     * for targeting.
+     * This field is required for CREATE operations and is prohibited on UPDATE
+     * operations.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.WebpageConditionInfo conditions = 2; + */ + public Builder addConditions( + com.google.ads.googleads.v0.common.WebpageConditionInfo.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Conditions, or logical expressions, for webpage targeting. The list of
+     * webpage targeting conditions are and-ed together when evaluated
+     * for targeting.
+     * This field is required for CREATE operations and is prohibited on UPDATE
+     * operations.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.WebpageConditionInfo conditions = 2; + */ + public Builder addConditions( + int index, com.google.ads.googleads.v0.common.WebpageConditionInfo.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Conditions, or logical expressions, for webpage targeting. The list of
+     * webpage targeting conditions are and-ed together when evaluated
+     * for targeting.
+     * This field is required for CREATE operations and is prohibited on UPDATE
+     * operations.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.WebpageConditionInfo conditions = 2; + */ + public Builder addAllConditions( + java.lang.Iterable values) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, conditions_); + onChanged(); + } else { + conditionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Conditions, or logical expressions, for webpage targeting. The list of
+     * webpage targeting conditions are and-ed together when evaluated
+     * for targeting.
+     * This field is required for CREATE operations and is prohibited on UPDATE
+     * operations.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.WebpageConditionInfo conditions = 2; + */ + public Builder clearConditions() { + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + conditionsBuilder_.clear(); + } + return this; + } + /** + *
+     * Conditions, or logical expressions, for webpage targeting. The list of
+     * webpage targeting conditions are and-ed together when evaluated
+     * for targeting.
+     * This field is required for CREATE operations and is prohibited on UPDATE
+     * operations.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.WebpageConditionInfo conditions = 2; + */ + public Builder removeConditions(int index) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.remove(index); + onChanged(); + } else { + conditionsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Conditions, or logical expressions, for webpage targeting. The list of
+     * webpage targeting conditions are and-ed together when evaluated
+     * for targeting.
+     * This field is required for CREATE operations and is prohibited on UPDATE
+     * operations.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.WebpageConditionInfo conditions = 2; + */ + public com.google.ads.googleads.v0.common.WebpageConditionInfo.Builder getConditionsBuilder( + int index) { + return getConditionsFieldBuilder().getBuilder(index); + } + /** + *
+     * Conditions, or logical expressions, for webpage targeting. The list of
+     * webpage targeting conditions are and-ed together when evaluated
+     * for targeting.
+     * This field is required for CREATE operations and is prohibited on UPDATE
+     * operations.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.WebpageConditionInfo conditions = 2; + */ + public com.google.ads.googleads.v0.common.WebpageConditionInfoOrBuilder getConditionsOrBuilder( + int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); } else { + return conditionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Conditions, or logical expressions, for webpage targeting. The list of
+     * webpage targeting conditions are and-ed together when evaluated
+     * for targeting.
+     * This field is required for CREATE operations and is prohibited on UPDATE
+     * operations.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.WebpageConditionInfo conditions = 2; + */ + public java.util.List + getConditionsOrBuilderList() { + if (conditionsBuilder_ != null) { + return conditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conditions_); + } + } + /** + *
+     * Conditions, or logical expressions, for webpage targeting. The list of
+     * webpage targeting conditions are and-ed together when evaluated
+     * for targeting.
+     * This field is required for CREATE operations and is prohibited on UPDATE
+     * operations.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.WebpageConditionInfo conditions = 2; + */ + public com.google.ads.googleads.v0.common.WebpageConditionInfo.Builder addConditionsBuilder() { + return getConditionsFieldBuilder().addBuilder( + com.google.ads.googleads.v0.common.WebpageConditionInfo.getDefaultInstance()); + } + /** + *
+     * Conditions, or logical expressions, for webpage targeting. The list of
+     * webpage targeting conditions are and-ed together when evaluated
+     * for targeting.
+     * This field is required for CREATE operations and is prohibited on UPDATE
+     * operations.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.WebpageConditionInfo conditions = 2; + */ + public com.google.ads.googleads.v0.common.WebpageConditionInfo.Builder addConditionsBuilder( + int index) { + return getConditionsFieldBuilder().addBuilder( + index, com.google.ads.googleads.v0.common.WebpageConditionInfo.getDefaultInstance()); + } + /** + *
+     * Conditions, or logical expressions, for webpage targeting. The list of
+     * webpage targeting conditions are and-ed together when evaluated
+     * for targeting.
+     * This field is required for CREATE operations and is prohibited on UPDATE
+     * operations.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.WebpageConditionInfo conditions = 2; + */ + public java.util.List + getConditionsBuilderList() { + return getConditionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.common.WebpageConditionInfo, com.google.ads.googleads.v0.common.WebpageConditionInfo.Builder, com.google.ads.googleads.v0.common.WebpageConditionInfoOrBuilder> + getConditionsFieldBuilder() { + if (conditionsBuilder_ == null) { + conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.common.WebpageConditionInfo, com.google.ads.googleads.v0.common.WebpageConditionInfo.Builder, com.google.ads.googleads.v0.common.WebpageConditionInfoOrBuilder>( + conditions_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + conditions_ = null; + } + return conditionsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.common.WebpageInfo) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.common.WebpageInfo) + private static final com.google.ads.googleads.v0.common.WebpageInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.common.WebpageInfo(); + } + + public static com.google.ads.googleads.v0.common.WebpageInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebpageInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebpageInfo(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.common.WebpageInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/common/WebpageInfoOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/common/WebpageInfoOrBuilder.java new file mode 100644 index 0000000000..86d371d4c8 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/common/WebpageInfoOrBuilder.java @@ -0,0 +1,110 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/common/criteria.proto + +package com.google.ads.googleads.v0.common; + +public interface WebpageInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.common.WebpageInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of the criterion that is defined by this parameter. The name value
+   * will be used for identifying, sorting and filtering criteria with this type
+   * of parameters.
+   * This field is required for CREATE operations and is prohibited on UPDATE
+   * operations.
+   * 
+ * + * .google.protobuf.StringValue criterion_name = 1; + */ + boolean hasCriterionName(); + /** + *
+   * The name of the criterion that is defined by this parameter. The name value
+   * will be used for identifying, sorting and filtering criteria with this type
+   * of parameters.
+   * This field is required for CREATE operations and is prohibited on UPDATE
+   * operations.
+   * 
+ * + * .google.protobuf.StringValue criterion_name = 1; + */ + com.google.protobuf.StringValue getCriterionName(); + /** + *
+   * The name of the criterion that is defined by this parameter. The name value
+   * will be used for identifying, sorting and filtering criteria with this type
+   * of parameters.
+   * This field is required for CREATE operations and is prohibited on UPDATE
+   * operations.
+   * 
+ * + * .google.protobuf.StringValue criterion_name = 1; + */ + com.google.protobuf.StringValueOrBuilder getCriterionNameOrBuilder(); + + /** + *
+   * Conditions, or logical expressions, for webpage targeting. The list of
+   * webpage targeting conditions are and-ed together when evaluated
+   * for targeting.
+   * This field is required for CREATE operations and is prohibited on UPDATE
+   * operations.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.WebpageConditionInfo conditions = 2; + */ + java.util.List + getConditionsList(); + /** + *
+   * Conditions, or logical expressions, for webpage targeting. The list of
+   * webpage targeting conditions are and-ed together when evaluated
+   * for targeting.
+   * This field is required for CREATE operations and is prohibited on UPDATE
+   * operations.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.WebpageConditionInfo conditions = 2; + */ + com.google.ads.googleads.v0.common.WebpageConditionInfo getConditions(int index); + /** + *
+   * Conditions, or logical expressions, for webpage targeting. The list of
+   * webpage targeting conditions are and-ed together when evaluated
+   * for targeting.
+   * This field is required for CREATE operations and is prohibited on UPDATE
+   * operations.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.WebpageConditionInfo conditions = 2; + */ + int getConditionsCount(); + /** + *
+   * Conditions, or logical expressions, for webpage targeting. The list of
+   * webpage targeting conditions are and-ed together when evaluated
+   * for targeting.
+   * This field is required for CREATE operations and is prohibited on UPDATE
+   * operations.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.WebpageConditionInfo conditions = 2; + */ + java.util.List + getConditionsOrBuilderList(); + /** + *
+   * Conditions, or logical expressions, for webpage targeting. The list of
+   * webpage targeting conditions are and-ed together when evaluated
+   * for targeting.
+   * This field is required for CREATE operations and is prohibited on UPDATE
+   * operations.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.WebpageConditionInfo conditions = 2; + */ + com.google.ads.googleads.v0.common.WebpageConditionInfoOrBuilder getConditionsOrBuilder( + int index); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AccessReasonProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AccessReasonProto.java index 26c5ec136b..a18edaebcf 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AccessReasonProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AccessReasonProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "ms\"\205\001\n\020AccessReasonEnum\"q\n\014AccessReason\022" + "\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\t\n\005OWNED\020\002" + "\022\n\n\006SHARED\020\003\022\014\n\010LICENSED\020\004\022\016\n\nSUBSCRIBED" + - "\020\005\022\016\n\nAFFILIATED\020\006B\302\001\n!com.google.ads.go" + + "\020\005\022\016\n\nAFFILIATED\020\006B\346\001\n!com.google.ads.go" + "ogleads.v0.enumsB\021AccessReasonProtoP\001ZBg" + "oogle.golang.org/genproto/googleapis/ads" + "/googleads/v0/enums;enums\242\002\003GAA\252\002\035Google" + ".Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\Goo" + - "gleAds\\V0\\Enumsb\006proto3" + "gleAds\\V0\\Enums\352\002!Google::Ads::GoogleAds" + + "::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AccountBudgetProposalStatusProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AccountBudgetProposalStatusProto.java index 412a735ee2..2b7636e952 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AccountBudgetProposalStatusProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AccountBudgetProposalStatusProto.java @@ -34,13 +34,14 @@ public static void registerAllExtensions( "posalStatusEnum\"\206\001\n\033AccountBudgetProposa" + "lStatus\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\013\n" + "\007PENDING\020\002\022\021\n\rAPPROVED_HELD\020\003\022\014\n\010APPROVE" + - "D\020\004\022\r\n\tCANCELLED\020\005\022\014\n\010REJECTED\020\006B\321\001\n!com" + + "D\020\004\022\r\n\tCANCELLED\020\005\022\014\n\010REJECTED\020\006B\365\001\n!com" + ".google.ads.googleads.v0.enumsB AccountB" + "udgetProposalStatusProtoP\001ZBgoogle.golan" + "g.org/genproto/googleapis/ads/googleads/" + "v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.Google" + "Ads.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\E" + - "numsb\006proto3" + "nums\352\002!Google::Ads::GoogleAds::V0::Enums" + + "b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AccountBudgetProposalTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AccountBudgetProposalTypeProto.java index 0a69707da4..5faef1ba7f 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AccountBudgetProposalTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AccountBudgetProposalTypeProto.java @@ -33,13 +33,14 @@ public static void registerAllExtensions( "oogleads.v0.enums\"\207\001\n\035AccountBudgetPropo" + "salTypeEnum\"f\n\031AccountBudgetProposalType" + "\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\n\n\006CREATE" + - "\020\002\022\n\n\006UPDATE\020\003\022\007\n\003END\020\004\022\n\n\006REMOVE\020\005B\317\001\n!" + + "\020\002\022\n\n\006UPDATE\020\003\022\007\n\003END\020\004\022\n\n\006REMOVE\020\005B\363\001\n!" + "com.google.ads.googleads.v0.enumsB\036Accou" + "ntBudgetProposalTypeProtoP\001ZBgoogle.gola" + "ng.org/genproto/googleapis/ads/googleads" + "/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.Googl" + "eAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\" + - "Enumsb\006proto3" + "Enums\352\002!Google::Ads::GoogleAds::V0::Enum" + + "sb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AccountBudgetStatusProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AccountBudgetStatusProto.java index e88c97b829..e79b199894 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AccountBudgetStatusProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AccountBudgetStatusProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "s.v0.enums\"x\n\027AccountBudgetStatusEnum\"]\n" + "\023AccountBudgetStatus\022\017\n\013UNSPECIFIED\020\000\022\013\n" + "\007UNKNOWN\020\001\022\013\n\007PENDING\020\002\022\014\n\010APPROVED\020\003\022\r\n" + - "\tCANCELLED\020\004B\311\001\n!com.google.ads.googlead" + + "\tCANCELLED\020\004B\355\001\n!com.google.ads.googlead" + "s.v0.enumsB\030AccountBudgetStatusProtoP\001ZB" + "google.golang.org/genproto/googleapis/ad" + "s/googleads/v0/enums;enums\242\002\003GAA\252\002\035Googl" + "e.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\Go" + - "ogleAds\\V0\\Enumsb\006proto3" + "ogleAds\\V0\\Enums\352\002!Google::Ads::GoogleAd" + + "s::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdCustomizerPlaceholderFieldProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdCustomizerPlaceholderFieldProto.java index 61fcadc4d3..ff8dcd9e99 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdCustomizerPlaceholderFieldProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdCustomizerPlaceholderFieldProto.java @@ -34,12 +34,13 @@ public static void registerAllExtensions( "ceholderFieldEnum\"j\n\034AdCustomizerPlaceho" + "lderField\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022" + "\013\n\007INTEGER\020\002\022\t\n\005PRICE\020\003\022\010\n\004DATE\020\004\022\n\n\006STR" + - "ING\020\005B\322\001\n!com.google.ads.googleads.v0.en" + + "ING\020\005B\366\001\n!com.google.ads.googleads.v0.en" + "umsB!AdCustomizerPlaceholderFieldProtoP\001" + "ZBgoogle.golang.org/genproto/googleapis/" + "ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035Goo" + "gle.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\" + - "GoogleAds\\V0\\Enumsb\006proto3" + "GoogleAds\\V0\\Enums\352\002!Google::Ads::Google" + + "Ads::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdGroupAdRotationModeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdGroupAdRotationModeProto.java index 90f8b435bc..8d877de4de 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdGroupAdRotationModeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdGroupAdRotationModeProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "leads.v0.enums\"t\n\031AdGroupAdRotationModeE" + "num\"W\n\025AdGroupAdRotationMode\022\017\n\013UNSPECIF" + "IED\020\000\022\013\n\007UNKNOWN\020\001\022\014\n\010OPTIMIZE\020\002\022\022\n\016ROTA" + - "TE_FOREVER\020\003B\313\001\n!com.google.ads.googlead" + + "TE_FOREVER\020\003B\357\001\n!com.google.ads.googlead" + "s.v0.enumsB\032AdGroupAdRotationModeProtoP\001" + "ZBgoogle.golang.org/genproto/googleapis/" + "ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035Goo" + "gle.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\" + - "GoogleAds\\V0\\Enumsb\006proto3" + "GoogleAds\\V0\\Enums\352\002!Google::Ads::Google" + + "Ads::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdGroupAdStatusProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdGroupAdStatusProto.java index 239c4d367b..e3a92b0150 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdGroupAdStatusProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdGroupAdStatusProto.java @@ -32,13 +32,14 @@ public static void registerAllExtensions( "_ad_status.proto\022\035google.ads.googleads.v" + "0.enums\"l\n\023AdGroupAdStatusEnum\"U\n\017AdGrou" + "pAdStatus\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022" + - "\013\n\007ENABLED\020\002\022\n\n\006PAUSED\020\003\022\013\n\007REMOVED\020\004B\305\001" + + "\013\n\007ENABLED\020\002\022\n\n\006PAUSED\020\003\022\013\n\007REMOVED\020\004B\351\001" + "\n!com.google.ads.googleads.v0.enumsB\024AdG" + "roupAdStatusProtoP\001ZBgoogle.golang.org/g" + "enproto/googleapis/ads/googleads/v0/enum" + "s;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0." + - "Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enumsb\006p" + - "roto3" + "Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums\352\002!" + + "Google::Ads::GoogleAds::V0::Enumsb\006proto" + + "3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdGroupCriterionStatusProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdGroupCriterionStatusProto.java index 687a7fb030..a01b894019 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdGroupCriterionStatusProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdGroupCriterionStatusProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "leads.v0.enums\"z\n\032AdGroupCriterionStatus" + "Enum\"\\\n\026AdGroupCriterionStatus\022\017\n\013UNSPEC" + "IFIED\020\000\022\013\n\007UNKNOWN\020\001\022\013\n\007ENABLED\020\002\022\n\n\006PAU" + - "SED\020\003\022\013\n\007REMOVED\020\004B\314\001\n!com.google.ads.go" + + "SED\020\003\022\013\n\007REMOVED\020\004B\360\001\n!com.google.ads.go" + "ogleads.v0.enumsB\033AdGroupCriterionStatus" + "ProtoP\001ZBgoogle.golang.org/genproto/goog" + "leapis/ads/googleads/v0/enums;enums\242\002\003GA" + "A\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035Goog" + - "le\\Ads\\GoogleAds\\V0\\Enumsb\006proto3" + "le\\Ads\\GoogleAds\\V0\\Enums\352\002!Google::Ads:" + + ":GoogleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdGroupStatusProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdGroupStatusProto.java index 483b2391d2..cbb5014606 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdGroupStatusProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdGroupStatusProto.java @@ -32,12 +32,13 @@ public static void registerAllExtensions( "_status.proto\022\035google.ads.googleads.v0.e" + "nums\"h\n\021AdGroupStatusEnum\"S\n\rAdGroupStat" + "us\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\013\n\007ENAB" + - "LED\020\002\022\n\n\006PAUSED\020\003\022\013\n\007REMOVED\020\004B\303\001\n!com.g" + + "LED\020\002\022\n\n\006PAUSED\020\003\022\013\n\007REMOVED\020\004B\347\001\n!com.g" + "oogle.ads.googleads.v0.enumsB\022AdGroupSta" + "tusProtoP\001ZBgoogle.golang.org/genproto/g" + "oogleapis/ads/googleads/v0/enums;enums\242\002" + "\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035G" + - "oogle\\Ads\\GoogleAds\\V0\\Enumsb\006proto3" + "oogle\\Ads\\GoogleAds\\V0\\Enums\352\002!Google::A" + + "ds::GoogleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdGroupTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdGroupTypeProto.java index 2ccf5e9657..a31d8676e4 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdGroupTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdGroupTypeProto.java @@ -37,12 +37,13 @@ public static void registerAllExtensions( "PING_SMART_ADS\020\007\022\020\n\014VIDEO_BUMPER\020\010\022\035\n\031VI" + "DEO_TRUE_VIEW_IN_STREAM\020\t\022\036\n\032VIDEO_TRUE_" + "VIEW_IN_DISPLAY\020\n\022!\n\035VIDEO_NON_SKIPPABLE" + - "_IN_STREAM\020\013\022\023\n\017VIDEO_OUTSTREAM\020\014B\301\001\n!co" + + "_IN_STREAM\020\013\022\023\n\017VIDEO_OUTSTREAM\020\014B\345\001\n!co" + "m.google.ads.googleads.v0.enumsB\020AdGroup" + "TypeProtoP\001ZBgoogle.golang.org/genproto/" + "googleapis/ads/googleads/v0/enums;enums\242" + "\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035" + - "Google\\Ads\\GoogleAds\\V0\\Enumsb\006proto3" + "Google\\Ads\\GoogleAds\\V0\\Enums\352\002!Google::" + + "Ads::GoogleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdNetworkTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdNetworkTypeProto.java index e10b263405..bc773ee2e5 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdNetworkTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdNetworkTypeProto.java @@ -34,12 +34,13 @@ public static void registerAllExtensions( "Type\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\n\n\006SE" + "ARCH\020\002\022\023\n\017SEARCH_PARTNERS\020\003\022\013\n\007CONTENT\020\004" + "\022\022\n\016YOUTUBE_SEARCH\020\005\022\021\n\rYOUTUBE_WATCH\020\006\022" + - "\t\n\005MIXED\020\007B\303\001\n!com.google.ads.googleads." + + "\t\n\005MIXED\020\007B\347\001\n!com.google.ads.googleads." + "v0.enumsB\022AdNetworkTypeProtoP\001ZBgoogle.g" + "olang.org/genproto/googleapis/ads/google" + "ads/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.Go" + "ogleAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\" + - "V0\\Enumsb\006proto3" + "V0\\Enums\352\002!Google::Ads::GoogleAds::V0::E" + + "numsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdServingOptimizationStatusProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdServingOptimizationStatusProto.java index d447298493..24275e38f6 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdServingOptimizationStatusProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdServingOptimizationStatusProto.java @@ -35,12 +35,13 @@ public static void registerAllExtensions( "nStatus\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\014\n" + "\010OPTIMIZE\020\002\022\027\n\023CONVERSION_OPTIMIZE\020\003\022\n\n\006" + "ROTATE\020\004\022\027\n\023ROTATE_INDEFINITELY\020\005\022\017\n\013UNA" + - "VAILABLE\020\006B\321\001\n!com.google.ads.googleads." + + "VAILABLE\020\006B\365\001\n!com.google.ads.googleads." + "v0.enumsB AdServingOptimizationStatusPro" + "toP\001ZBgoogle.golang.org/genproto/googlea" + "pis/ads/googleads/v0/enums;enums\242\002\003GAA\252\002" + "\035Google.Ads.GoogleAds.V0.Enums\312\002\035Google\\" + - "Ads\\GoogleAds\\V0\\Enumsb\006proto3" + "Ads\\GoogleAds\\V0\\Enums\352\002!Google::Ads::Go" + + "ogleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdTypeProto.java index 99111554f7..d8ac8d0d47 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdTypeProto.java @@ -37,12 +37,13 @@ public static void registerAllExtensions( "XPANDED_DYNAMIC_SEARCH_AD\020\007\022\014\n\010HOTEL_AD\020" + "\010\022\025\n\021SHOPPING_SMART_AD\020\t\022\027\n\023SHOPPING_PRO" + "DUCT_AD\020\n\022\014\n\010VIDEO_AD\020\014\022\014\n\010GMAIL_AD\020\r\022\014\n" + - "\010IMAGE_AD\020\016B\274\001\n!com.google.ads.googleads" + + "\010IMAGE_AD\020\016B\340\001\n!com.google.ads.googleads" + ".v0.enumsB\013AdTypeProtoP\001ZBgoogle.golang." + "org/genproto/googleapis/ads/googleads/v0" + "/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAd" + "s.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enu" + - "msb\006proto3" + "ms\352\002!Google::Ads::GoogleAds::V0::Enumsb\006" + + "proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdvertisingChannelSubTypeEnum.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdvertisingChannelSubTypeEnum.java index c7f914f5aa..e06cad840d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdvertisingChannelSubTypeEnum.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdvertisingChannelSubTypeEnum.java @@ -166,6 +166,14 @@ public enum AdvertisingChannelSubType * VIDEO_OUTSTREAM = 9; */ VIDEO_OUTSTREAM(9), + /** + *
+     * Video TrueView for Action campaigns.
+     * 
+ * + * VIDEO_ACTION = 10; + */ + VIDEO_ACTION(10), UNRECOGNIZED(-1), ; @@ -249,6 +257,14 @@ public enum AdvertisingChannelSubType * VIDEO_OUTSTREAM = 9; */ public static final int VIDEO_OUTSTREAM_VALUE = 9; + /** + *
+     * Video TrueView for Action campaigns.
+     * 
+ * + * VIDEO_ACTION = 10; + */ + public static final int VIDEO_ACTION_VALUE = 10; public final int getNumber() { @@ -279,6 +295,7 @@ public static AdvertisingChannelSubType forNumber(int value) { case 7: return DISPLAY_GMAIL_AD; case 8: return DISPLAY_SMART_CAMPAIGN; case 9: return VIDEO_OUTSTREAM; + case 10: return VIDEO_ACTION; default: return null; } } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdvertisingChannelSubTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdvertisingChannelSubTypeProto.java index 05ae0440e6..671b2b487a 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdvertisingChannelSubTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdvertisingChannelSubTypeProto.java @@ -30,19 +30,21 @@ public static void registerAllExtensions( java.lang.String[] descriptorData = { "\n@google/ads/googleads/v0/enums/advertis" + "ing_channel_sub_type.proto\022\035google.ads.g" + - "oogleads.v0.enums\"\222\002\n\035AdvertisingChannel" + - "SubTypeEnum\"\360\001\n\031AdvertisingChannelSubTyp" + + "oogleads.v0.enums\"\244\002\n\035AdvertisingChannel" + + "SubTypeEnum\"\202\002\n\031AdvertisingChannelSubTyp" + "e\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\025\n\021SEARC" + "H_MOBILE_APP\020\002\022\026\n\022DISPLAY_MOBILE_APP\020\003\022\022" + "\n\016SEARCH_EXPRESS\020\004\022\023\n\017DISPLAY_EXPRESS\020\005\022" + "\026\n\022SHOPPING_SMART_ADS\020\006\022\024\n\020DISPLAY_GMAIL" + "_AD\020\007\022\032\n\026DISPLAY_SMART_CAMPAIGN\020\010\022\023\n\017VID" + - "EO_OUTSTREAM\020\tB\317\001\n!com.google.ads.google" + - "ads.v0.enumsB\036AdvertisingChannelSubTypeP" + - "rotoP\001ZBgoogle.golang.org/genproto/googl" + - "eapis/ads/googleads/v0/enums;enums\242\002\003GAA" + - "\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035Googl" + - "e\\Ads\\GoogleAds\\V0\\Enumsb\006proto3" + "EO_OUTSTREAM\020\t\022\020\n\014VIDEO_ACTION\020\nB\363\001\n!com" + + ".google.ads.googleads.v0.enumsB\036Advertis" + + "ingChannelSubTypeProtoP\001ZBgoogle.golang." + + "org/genproto/googleapis/ads/googleads/v0" + + "/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAd" + + "s.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enu" + + "ms\352\002!Google::Ads::GoogleAds::V0::Enumsb\006" + + "proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdvertisingChannelTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdvertisingChannelTypeProto.java index ffc47da9c4..3fac4c0dca 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdvertisingChannelTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AdvertisingChannelTypeProto.java @@ -34,12 +34,13 @@ public static void registerAllExtensions( "Enum\"s\n\026AdvertisingChannelType\022\017\n\013UNSPEC" + "IFIED\020\000\022\013\n\007UNKNOWN\020\001\022\n\n\006SEARCH\020\002\022\013\n\007DISP" + "LAY\020\003\022\014\n\010SHOPPING\020\004\022\t\n\005HOTEL\020\005\022\t\n\005VIDEO\020" + - "\006B\314\001\n!com.google.ads.googleads.v0.enumsB" + + "\006B\360\001\n!com.google.ads.googleads.v0.enumsB" + "\033AdvertisingChannelTypeProtoP\001ZBgoogle.g" + "olang.org/genproto/googleapis/ads/google" + "ads/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.Go" + "ogleAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\" + - "V0\\Enumsb\006proto3" + "V0\\Enums\352\002!Google::Ads::GoogleAds::V0::E" + + "numsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AffiliateLocationFeedRelationshipTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AffiliateLocationFeedRelationshipTypeProto.java index 62d6b112c2..343b520a5d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AffiliateLocationFeedRelationshipTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AffiliateLocationFeedRelationshipTypeProto.java @@ -34,12 +34,13 @@ public static void registerAllExtensions( "iateLocationFeedRelationshipTypeEnum\"[\n%" + "AffiliateLocationFeedRelationshipType\022\017\n" + "\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\024\n\020GENERAL_R" + - "ETAILER\020\002B\333\001\n!com.google.ads.googleads.v" + + "ETAILER\020\002B\377\001\n!com.google.ads.googleads.v" + "0.enumsB*AffiliateLocationFeedRelationsh" + "ipTypeProtoP\001ZBgoogle.golang.org/genprot" + "o/googleapis/ads/googleads/v0/enums;enum" + "s\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums\312" + - "\002\035Google\\Ads\\GoogleAds\\V0\\Enumsb\006proto3" + "\002\035Google\\Ads\\GoogleAds\\V0\\Enums\352\002!Google" + + "::Ads::GoogleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AgeRangeTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AgeRangeTypeProto.java index e193343d47..25da6ea094 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AgeRangeTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AgeRangeTypeProto.java @@ -36,12 +36,12 @@ public static void registerAllExtensions( "\017AGE_RANGE_35_44\020\333\331\036\022\025\n\017AGE_RANGE_45_54\020" + "\334\331\036\022\025\n\017AGE_RANGE_55_64\020\335\331\036\022\025\n\017AGE_RANGE_" + "65_UP\020\336\331\036\022\034\n\026AGE_RANGE_UNDETERMINED\020\277\341\036B" + - "\302\001\n!com.google.ads.googleads.v0.enumsB\021A" + + "\346\001\n!com.google.ads.googleads.v0.enumsB\021A" + "geRangeTypeProtoP\001ZBgoogle.golang.org/ge" + "nproto/googleapis/ads/googleads/v0/enums" + ";enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.E" + - "nums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enumsb\006pr" + - "oto3" + "nums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums\352\002!G" + + "oogle::Ads::GoogleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CampaignGroupStatusEnum.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AppPaymentModelTypeEnum.java similarity index 65% rename from google-ads/src/main/java/com/google/ads/googleads/v0/enums/CampaignGroupStatusEnum.java rename to google-ads/src/main/java/com/google/ads/googleads/v0/enums/AppPaymentModelTypeEnum.java index 53b55fa216..cd25500949 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CampaignGroupStatusEnum.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AppPaymentModelTypeEnum.java @@ -1,25 +1,25 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v0/enums/campaign_group_status.proto +// source: google/ads/googleads/v0/enums/app_payment_model_type.proto package com.google.ads.googleads.v0.enums; /** *
- * Message describing CampaignGroup statuses.
+ * Represents a criterion for targeting paid apps.
  * 
* - * Protobuf type {@code google.ads.googleads.v0.enums.CampaignGroupStatusEnum} + * Protobuf type {@code google.ads.googleads.v0.enums.AppPaymentModelTypeEnum} */ -public final class CampaignGroupStatusEnum extends +public final class AppPaymentModelTypeEnum extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.enums.CampaignGroupStatusEnum) - CampaignGroupStatusEnumOrBuilder { + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.enums.AppPaymentModelTypeEnum) + AppPaymentModelTypeEnumOrBuilder { private static final long serialVersionUID = 0L; - // Use CampaignGroupStatusEnum.newBuilder() to construct. - private CampaignGroupStatusEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use AppPaymentModelTypeEnum.newBuilder() to construct. + private AppPaymentModelTypeEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CampaignGroupStatusEnum() { + private AppPaymentModelTypeEnum() { } @java.lang.Override @@ -27,7 +27,7 @@ private CampaignGroupStatusEnum() { getUnknownFields() { return this.unknownFields; } - private CampaignGroupStatusEnum( + private AppPaymentModelTypeEnum( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -66,25 +66,25 @@ private CampaignGroupStatusEnum( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.googleads.v0.enums.CampaignGroupStatusProto.internal_static_google_ads_googleads_v0_enums_CampaignGroupStatusEnum_descriptor; + return com.google.ads.googleads.v0.enums.AppPaymentModelTypeProto.internal_static_google_ads_googleads_v0_enums_AppPaymentModelTypeEnum_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.googleads.v0.enums.CampaignGroupStatusProto.internal_static_google_ads_googleads_v0_enums_CampaignGroupStatusEnum_fieldAccessorTable + return com.google.ads.googleads.v0.enums.AppPaymentModelTypeProto.internal_static_google_ads_googleads_v0_enums_AppPaymentModelTypeEnum_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum.class, com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum.Builder.class); + com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum.class, com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum.Builder.class); } /** *
-   * Possible statuses of a CampaignGroup.
+   * Enum describing possible app payment models.
    * 
* - * Protobuf enum {@code google.ads.googleads.v0.enums.CampaignGroupStatusEnum.CampaignGroupStatus} + * Protobuf enum {@code google.ads.googleads.v0.enums.AppPaymentModelTypeEnum.AppPaymentModelType} */ - public enum CampaignGroupStatus + public enum AppPaymentModelType implements com.google.protobuf.ProtocolMessageEnum { /** *
@@ -104,20 +104,12 @@ public enum CampaignGroupStatus
     UNKNOWN(1),
     /**
      * 
-     * Campaign group is currently serving ads depending on budget information.
+     * Represents paid-for apps.
      * 
* - * ENABLED = 2; + * PAID = 30; */ - ENABLED(2), - /** - *
-     * Campaign group has been removed.
-     * 
- * - * REMOVED = 4; - */ - REMOVED(4), + PAID(30), UNRECOGNIZED(-1), ; @@ -139,20 +131,12 @@ public enum CampaignGroupStatus public static final int UNKNOWN_VALUE = 1; /** *
-     * Campaign group is currently serving ads depending on budget information.
-     * 
- * - * ENABLED = 2; - */ - public static final int ENABLED_VALUE = 2; - /** - *
-     * Campaign group has been removed.
+     * Represents paid-for apps.
      * 
* - * REMOVED = 4; + * PAID = 30; */ - public static final int REMOVED_VALUE = 4; + public static final int PAID_VALUE = 30; public final int getNumber() { @@ -167,29 +151,28 @@ public final int getNumber() { * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated - public static CampaignGroupStatus valueOf(int value) { + public static AppPaymentModelType valueOf(int value) { return forNumber(value); } - public static CampaignGroupStatus forNumber(int value) { + public static AppPaymentModelType forNumber(int value) { switch (value) { case 0: return UNSPECIFIED; case 1: return UNKNOWN; - case 2: return ENABLED; - case 4: return REMOVED; + case 30: return PAID; default: return null; } } - 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< - CampaignGroupStatus> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public CampaignGroupStatus findValueByNumber(int number) { - return CampaignGroupStatus.forNumber(number); + AppPaymentModelType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AppPaymentModelType findValueByNumber(int number) { + return AppPaymentModelType.forNumber(number); } }; @@ -203,12 +186,12 @@ public CampaignGroupStatus findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum.getDescriptor().getEnumTypes().get(0); + return com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum.getDescriptor().getEnumTypes().get(0); } - private static final CampaignGroupStatus[] VALUES = values(); + private static final AppPaymentModelType[] VALUES = values(); - public static CampaignGroupStatus valueOf( + public static AppPaymentModelType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( @@ -222,11 +205,11 @@ public static CampaignGroupStatus valueOf( private final int value; - private CampaignGroupStatus(int value) { + private AppPaymentModelType(int value) { this.value = value; } - // @@protoc_insertion_point(enum_scope:google.ads.googleads.v0.enums.CampaignGroupStatusEnum.CampaignGroupStatus) + // @@protoc_insertion_point(enum_scope:google.ads.googleads.v0.enums.AppPaymentModelTypeEnum.AppPaymentModelType) } private byte memoizedIsInitialized = -1; @@ -262,10 +245,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum)) { + if (!(obj instanceof com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum)) { return super.equals(obj); } - com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum other = (com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum) obj; + com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum other = (com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum) obj; boolean result = true; result = result && unknownFields.equals(other.unknownFields); @@ -284,69 +267,69 @@ public int hashCode() { return hash; } - public static com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum parseFrom( + public static com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum parseFrom( + public static com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum parseFrom( + public static com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum parseFrom( + public static com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum 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.ads.googleads.v0.enums.CampaignGroupStatusEnum parseFrom(byte[] data) + public static com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum parseFrom( + public static com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum parseFrom(java.io.InputStream input) + public static com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum parseFrom( + public static com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum 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.ads.googleads.v0.enums.CampaignGroupStatusEnum parseDelimitedFrom(java.io.InputStream input) + public static com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum parseDelimitedFrom( + public static com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum 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.ads.googleads.v0.enums.CampaignGroupStatusEnum parseFrom( + public static com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum parseFrom( + public static com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -359,7 +342,7 @@ public static com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum parseFro public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum prototype) { + public static Builder newBuilder(com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -376,29 +359,29 @@ protected Builder newBuilderForType( } /** *
-   * Message describing CampaignGroup statuses.
+   * Represents a criterion for targeting paid apps.
    * 
* - * Protobuf type {@code google.ads.googleads.v0.enums.CampaignGroupStatusEnum} + * Protobuf type {@code google.ads.googleads.v0.enums.AppPaymentModelTypeEnum} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.enums.CampaignGroupStatusEnum) - com.google.ads.googleads.v0.enums.CampaignGroupStatusEnumOrBuilder { + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.enums.AppPaymentModelTypeEnum) + com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnumOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.googleads.v0.enums.CampaignGroupStatusProto.internal_static_google_ads_googleads_v0_enums_CampaignGroupStatusEnum_descriptor; + return com.google.ads.googleads.v0.enums.AppPaymentModelTypeProto.internal_static_google_ads_googleads_v0_enums_AppPaymentModelTypeEnum_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.googleads.v0.enums.CampaignGroupStatusProto.internal_static_google_ads_googleads_v0_enums_CampaignGroupStatusEnum_fieldAccessorTable + return com.google.ads.googleads.v0.enums.AppPaymentModelTypeProto.internal_static_google_ads_googleads_v0_enums_AppPaymentModelTypeEnum_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum.class, com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum.Builder.class); + com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum.class, com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum.Builder.class); } - // Construct using com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum.newBuilder() + // Construct using com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -422,17 +405,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.googleads.v0.enums.CampaignGroupStatusProto.internal_static_google_ads_googleads_v0_enums_CampaignGroupStatusEnum_descriptor; + return com.google.ads.googleads.v0.enums.AppPaymentModelTypeProto.internal_static_google_ads_googleads_v0_enums_AppPaymentModelTypeEnum_descriptor; } @java.lang.Override - public com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum getDefaultInstanceForType() { - return com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum.getDefaultInstance(); + public com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum getDefaultInstanceForType() { + return com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum.getDefaultInstance(); } @java.lang.Override - public com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum build() { - com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum result = buildPartial(); + public com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum build() { + com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -440,8 +423,8 @@ public com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum build() { } @java.lang.Override - public com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum buildPartial() { - com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum result = new com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum(this); + public com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum buildPartial() { + com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum result = new com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum(this); onBuilt(); return result; } @@ -480,16 +463,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum) { - return mergeFrom((com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum)other); + if (other instanceof com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum) { + return mergeFrom((com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum other) { - if (other == com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum other) { + if (other == com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -505,11 +488,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum parsedMessage = null; + com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum) e.getUnfinishedMessage(); + parsedMessage = (com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -531,41 +514,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.enums.CampaignGroupStatusEnum) + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.enums.AppPaymentModelTypeEnum) } - // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.CampaignGroupStatusEnum) - private static final com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.AppPaymentModelTypeEnum) + private static final com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum(); + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum(); } - public static com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum getDefaultInstance() { + public static com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum 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 CampaignGroupStatusEnum parsePartialFrom( + public AppPaymentModelTypeEnum parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CampaignGroupStatusEnum(input, extensionRegistry); + return new AppPaymentModelTypeEnum(input, extensionRegistry); } }; - 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.ads.googleads.v0.enums.CampaignGroupStatusEnum getDefaultInstanceForType() { + public com.google.ads.googleads.v0.enums.AppPaymentModelTypeEnum getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AppPaymentModelTypeEnumOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AppPaymentModelTypeEnumOrBuilder.java new file mode 100644 index 0000000000..ec87763474 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AppPaymentModelTypeEnumOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/app_payment_model_type.proto + +package com.google.ads.googleads.v0.enums; + +public interface AppPaymentModelTypeEnumOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.enums.AppPaymentModelTypeEnum) + com.google.protobuf.MessageOrBuilder { +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AppPaymentModelTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AppPaymentModelTypeProto.java new file mode 100644 index 0000000000..4c1cfdeb99 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AppPaymentModelTypeProto.java @@ -0,0 +1,64 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/app_payment_model_type.proto + +package com.google.ads.googleads.v0.enums; + +public final class AppPaymentModelTypeProto { + private AppPaymentModelTypeProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_enums_AppPaymentModelTypeEnum_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_enums_AppPaymentModelTypeEnum_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n:google/ads/googleads/v0/enums/app_paym" + + "ent_model_type.proto\022\035google.ads.googlea" + + "ds.v0.enums\"X\n\027AppPaymentModelTypeEnum\"=" + + "\n\023AppPaymentModelType\022\017\n\013UNSPECIFIED\020\000\022\013" + + "\n\007UNKNOWN\020\001\022\010\n\004PAID\020\036B\355\001\n!com.google.ads" + + ".googleads.v0.enumsB\030AppPaymentModelType" + + "ProtoP\001ZBgoogle.golang.org/genproto/goog" + + "leapis/ads/googleads/v0/enums;enums\242\002\003GA" + + "A\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035Goog" + + "le\\Ads\\GoogleAds\\V0\\Enums\352\002!Google::Ads:" + + ":GoogleAds::V0::Enumsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_google_ads_googleads_v0_enums_AppPaymentModelTypeEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_googleads_v0_enums_AppPaymentModelTypeEnum_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_enums_AppPaymentModelTypeEnum_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AppPlaceholderFieldProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AppPlaceholderFieldProto.java index 6f21412d70..a88aaace95 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AppPlaceholderFieldProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AppPlaceholderFieldProto.java @@ -35,12 +35,13 @@ public static void registerAllExtensions( "\013\n\007UNKNOWN\020\001\022\t\n\005STORE\020\002\022\006\n\002ID\020\003\022\r\n\tLINK_" + "TEXT\020\004\022\007\n\003URL\020\005\022\016\n\nFINAL_URLS\020\006\022\025\n\021FINAL" + "_MOBILE_URLS\020\007\022\020\n\014TRACKING_URL\020\010\022\024\n\020FINA" + - "L_URL_SUFFIX\020\tB\311\001\n!com.google.ads.google" + + "L_URL_SUFFIX\020\tB\355\001\n!com.google.ads.google" + "ads.v0.enumsB\030AppPlaceholderFieldProtoP\001" + "ZBgoogle.golang.org/genproto/googleapis/" + "ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035Goo" + "gle.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\" + - "GoogleAds\\V0\\Enumsb\006proto3" + "GoogleAds\\V0\\Enums\352\002!Google::Ads::Google" + + "Ads::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AttributionModelProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AttributionModelProto.java index 32ba064e5a..a16d8fb31d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AttributionModelProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/AttributionModelProto.java @@ -38,12 +38,13 @@ public static void registerAllExtensions( "AR\020g\022(\n$GOOGLE_SEARCH_ATTRIBUTION_TIME_D" + "ECAY\020h\022,\n(GOOGLE_SEARCH_ATTRIBUTION_POSI" + "TION_BASED\020i\022)\n%GOOGLE_SEARCH_ATTRIBUTIO" + - "N_DATA_DRIVEN\020jB\306\001\n!com.google.ads.googl" + + "N_DATA_DRIVEN\020jB\352\001\n!com.google.ads.googl" + "eads.v0.enumsB\025AttributionModelProtoP\001ZB" + "google.golang.org/genproto/googleapis/ad" + "s/googleads/v0/enums;enums\242\002\003GAA\252\002\035Googl" + "e.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\Go" + - "ogleAds\\V0\\Enumsb\006proto3" + "ogleAds\\V0\\Enums\352\002!Google::Ads::GoogleAd" + + "s::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BidModifierSourceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BidModifierSourceProto.java index cf69644d14..04828e618b 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BidModifierSourceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BidModifierSourceProto.java @@ -32,13 +32,13 @@ public static void registerAllExtensions( "fier_source.proto\022\035google.ads.googleads." + "v0.enums\"f\n\025BidModifierSourceEnum\"M\n\021Bid" + "ModifierSource\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNO" + - "WN\020\001\022\014\n\010CAMPAIGN\020\002\022\014\n\010AD_GROUP\020\003B\307\001\n!com" + + "WN\020\001\022\014\n\010CAMPAIGN\020\002\022\014\n\010AD_GROUP\020\003B\353\001\n!com" + ".google.ads.googleads.v0.enumsB\026BidModif" + "ierSourceProtoP\001ZBgoogle.golang.org/genp" + "roto/googleapis/ads/googleads/v0/enums;e" + "nums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enu" + - "ms\312\002\035Google\\Ads\\GoogleAds\\V0\\Enumsb\006prot" + - "o3" + "ms\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums\352\002!Goo" + + "gle::Ads::GoogleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BiddingSourceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BiddingSourceProto.java index e26720aab3..61f015d0b9 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BiddingSourceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BiddingSourceProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "ums\"}\n\021BiddingSourceEnum\"h\n\rBiddingSourc" + "e\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\013\n\007ADGRO" + "UP\020\002\022\r\n\tCRITERION\020\003\022\035\n\031CAMPAIGN_BIDDING_" + - "STRATEGY\020\005B\303\001\n!com.google.ads.googleads." + + "STRATEGY\020\005B\347\001\n!com.google.ads.googleads." + "v0.enumsB\022BiddingSourceProtoP\001ZBgoogle.g" + "olang.org/genproto/googleapis/ads/google" + "ads/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.Go" + "ogleAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\" + - "V0\\Enumsb\006proto3" + "V0\\Enums\352\002!Google::Ads::GoogleAds::V0::E" + + "numsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BiddingStrategyTypeEnum.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BiddingStrategyTypeEnum.java index 312de4259d..dbcbc2a64b 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BiddingStrategyTypeEnum.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BiddingStrategyTypeEnum.java @@ -183,6 +183,16 @@ public enum BiddingStrategyType * TARGET_CPA = 6; */ TARGET_CPA(6), + /** + *
+     * Target CPM is an automated bid strategy that sets bids to help get
+     * as many impressions as possible at the target cost per one thousand
+     * impressions (CPM) you set.
+     * 
+ * + * TARGET_CPM = 14; + */ + TARGET_CPM(14), /** *
      * Target Outrank Share is an automated bidding strategy that sets bids
@@ -312,6 +322,16 @@ public enum BiddingStrategyType
      * TARGET_CPA = 6;
      */
     public static final int TARGET_CPA_VALUE = 6;
+    /**
+     * 
+     * Target CPM is an automated bid strategy that sets bids to help get
+     * as many impressions as possible at the target cost per one thousand
+     * impressions (CPM) you set.
+     * 
+ * + * TARGET_CPM = 14; + */ + public static final int TARGET_CPM_VALUE = 14; /** *
      * Target Outrank Share is an automated bidding strategy that sets bids
@@ -372,6 +392,7 @@ public static BiddingStrategyType forNumber(int value) {
         case 5: return PAGE_ONE_PROMOTED;
         case 12: return PERCENT_CPC;
         case 6: return TARGET_CPA;
+        case 14: return TARGET_CPM;
         case 7: return TARGET_OUTRANK_SHARE;
         case 8: return TARGET_ROAS;
         case 9: return TARGET_SPEND;
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BiddingStrategyTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BiddingStrategyTypeProto.java
index a5976d554d..4d3cd4eed9 100644
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BiddingStrategyTypeProto.java
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BiddingStrategyTypeProto.java
@@ -30,20 +30,21 @@ public static void registerAllExtensions(
     java.lang.String[] descriptorData = {
       "\n9google/ads/googleads/v0/enums/bidding_" +
       "strategy_type.proto\022\035google.ads.googlead" +
-      "s.v0.enums\"\277\002\n\027BiddingStrategyTypeEnum\"\243" +
+      "s.v0.enums\"\317\002\n\027BiddingStrategyTypeEnum\"\263" +
       "\002\n\023BiddingStrategyType\022\017\n\013UNSPECIFIED\020\000\022" +
       "\013\n\007UNKNOWN\020\001\022\020\n\014ENHANCED_CPC\020\002\022\016\n\nMANUAL" +
       "_CPC\020\003\022\016\n\nMANUAL_CPM\020\004\022\016\n\nMANUAL_CPV\020\r\022\030" +
       "\n\024MAXIMIZE_CONVERSIONS\020\n\022\035\n\031MAXIMIZE_CON" +
       "VERSION_VALUE\020\013\022\025\n\021PAGE_ONE_PROMOTED\020\005\022\017" +
-      "\n\013PERCENT_CPC\020\014\022\016\n\nTARGET_CPA\020\006\022\030\n\024TARGE" +
-      "T_OUTRANK_SHARE\020\007\022\017\n\013TARGET_ROAS\020\010\022\020\n\014TA" +
-      "RGET_SPEND\020\tB\311\001\n!com.google.ads.googlead" +
-      "s.v0.enumsB\030BiddingStrategyTypeProtoP\001ZB" +
-      "google.golang.org/genproto/googleapis/ad" +
-      "s/googleads/v0/enums;enums\242\002\003GAA\252\002\035Googl" +
-      "e.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\Go" +
-      "ogleAds\\V0\\Enumsb\006proto3"
+      "\n\013PERCENT_CPC\020\014\022\016\n\nTARGET_CPA\020\006\022\016\n\nTARGE" +
+      "T_CPM\020\016\022\030\n\024TARGET_OUTRANK_SHARE\020\007\022\017\n\013TAR" +
+      "GET_ROAS\020\010\022\020\n\014TARGET_SPEND\020\tB\355\001\n!com.goo" +
+      "gle.ads.googleads.v0.enumsB\030BiddingStrat" +
+      "egyTypeProtoP\001ZBgoogle.golang.org/genpro" +
+      "to/googleapis/ads/googleads/v0/enums;enu" +
+      "ms\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums" +
+      "\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums\352\002!Googl" +
+      "e::Ads::GoogleAds::V0::Enumsb\006proto3"
     };
     com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
         new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BillingSetupStatusProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BillingSetupStatusProto.java
index f130aec970..e9a2f90c51 100644
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BillingSetupStatusProto.java
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BillingSetupStatusProto.java
@@ -33,12 +33,13 @@ public static void registerAllExtensions(
       ".v0.enums\"\211\001\n\026BillingSetupStatusEnum\"o\n\022" +
       "BillingSetupStatus\022\017\n\013UNSPECIFIED\020\000\022\013\n\007U" +
       "NKNOWN\020\001\022\013\n\007PENDING\020\002\022\021\n\rAPPROVED_HELD\020\003" +
-      "\022\014\n\010APPROVED\020\004\022\r\n\tCANCELLED\020\005B\310\001\n!com.go" +
+      "\022\014\n\010APPROVED\020\004\022\r\n\tCANCELLED\020\005B\354\001\n!com.go" +
       "ogle.ads.googleads.v0.enumsB\027BillingSetu" +
       "pStatusProtoP\001ZBgoogle.golang.org/genpro" +
       "to/googleapis/ads/googleads/v0/enums;enu" +
       "ms\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums" +
-      "\312\002\035Google\\Ads\\GoogleAds\\V0\\Enumsb\006proto3"
+      "\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums\352\002!Googl" +
+      "e::Ads::GoogleAds::V0::Enumsb\006proto3"
     };
     com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
         new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BrandSafetySuitabilityEnum.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BrandSafetySuitabilityEnum.java
new file mode 100644
index 0000000000..58358b785a
--- /dev/null
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BrandSafetySuitabilityEnum.java
@@ -0,0 +1,630 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/ads/googleads/v0/enums/brand_safety_suitability.proto
+
+package com.google.ads.googleads.v0.enums;
+
+/**
+ * 
+ * Container for enum with 3-Tier brand safety suitability control.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum} + */ +public final class BrandSafetySuitabilityEnum extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum) + BrandSafetySuitabilityEnumOrBuilder { +private static final long serialVersionUID = 0L; + // Use BrandSafetySuitabilityEnum.newBuilder() to construct. + private BrandSafetySuitabilityEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BrandSafetySuitabilityEnum() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BrandSafetySuitabilityEnum( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.BrandSafetySuitabilityProto.internal_static_google_ads_googleads_v0_enums_BrandSafetySuitabilityEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.BrandSafetySuitabilityProto.internal_static_google_ads_googleads_v0_enums_BrandSafetySuitabilityEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum.class, com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum.Builder.class); + } + + /** + *
+   * 3-Tier brand safety suitability control.
+   * 
+ * + * Protobuf enum {@code google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability} + */ + public enum BrandSafetySuitability + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + UNKNOWN(1), + /** + *
+     * This option lets you show ads across all inventory on YouTube and video
+     * partners that meet our standards for monetization. This option may be an
+     * appropriate choice for brands that want maximum access to the full
+     * breadth of videos eligible for ads, including, for example, videos that
+     * have strong profanity in the context of comedy or a documentary, or
+     * excessive violence as featured in video games.
+     * 
+ * + * EXPANDED_INVENTORY = 2; + */ + EXPANDED_INVENTORY(2), + /** + *
+     * This option lets you show ads across a wide range of content that's
+     * appropriate for most brands, such as popular music videos, documentaries,
+     * and movie trailers. The content you can show ads on is based on YouTube's
+     * advertiser-friendly content guidelines that take into account, for
+     * example, the strength or frequency of profanity, or the appropriateness
+     * of subject matter like sensitive events. Ads won't show, for example, on
+     * content with repeated strong profanity, strong sexual content, or graphic
+     * violence.
+     * 
+ * + * STANDARD_INVENTORY = 3; + */ + STANDARD_INVENTORY(3), + /** + *
+     * This option lets you show ads on a reduced range of content that's
+     * appropriate for brands with particularly strict guidelines around
+     * inappropriate language and sexual suggestiveness; above and beyond what
+     * YouTube's advertiser-friendly content guidelines address. The videos
+     * accessible in this sensitive category meet heightened requirements,
+     * especially for inappropriate language and sexual suggestiveness. For
+     * example, your ads will be excluded from showing on some of YouTube's most
+     * popular music videos and other pop culture content across YouTube and
+     * Google video partners.
+     * 
+ * + * LIMITED_INVENTORY = 4; + */ + LIMITED_INVENTORY(4), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + public static final int UNKNOWN_VALUE = 1; + /** + *
+     * This option lets you show ads across all inventory on YouTube and video
+     * partners that meet our standards for monetization. This option may be an
+     * appropriate choice for brands that want maximum access to the full
+     * breadth of videos eligible for ads, including, for example, videos that
+     * have strong profanity in the context of comedy or a documentary, or
+     * excessive violence as featured in video games.
+     * 
+ * + * EXPANDED_INVENTORY = 2; + */ + public static final int EXPANDED_INVENTORY_VALUE = 2; + /** + *
+     * This option lets you show ads across a wide range of content that's
+     * appropriate for most brands, such as popular music videos, documentaries,
+     * and movie trailers. The content you can show ads on is based on YouTube's
+     * advertiser-friendly content guidelines that take into account, for
+     * example, the strength or frequency of profanity, or the appropriateness
+     * of subject matter like sensitive events. Ads won't show, for example, on
+     * content with repeated strong profanity, strong sexual content, or graphic
+     * violence.
+     * 
+ * + * STANDARD_INVENTORY = 3; + */ + public static final int STANDARD_INVENTORY_VALUE = 3; + /** + *
+     * This option lets you show ads on a reduced range of content that's
+     * appropriate for brands with particularly strict guidelines around
+     * inappropriate language and sexual suggestiveness; above and beyond what
+     * YouTube's advertiser-friendly content guidelines address. The videos
+     * accessible in this sensitive category meet heightened requirements,
+     * especially for inappropriate language and sexual suggestiveness. For
+     * example, your ads will be excluded from showing on some of YouTube's most
+     * popular music videos and other pop culture content across YouTube and
+     * Google video partners.
+     * 
+ * + * LIMITED_INVENTORY = 4; + */ + public static final int LIMITED_INVENTORY_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static BrandSafetySuitability valueOf(int value) { + return forNumber(value); + } + + public static BrandSafetySuitability forNumber(int value) { + switch (value) { + case 0: return UNSPECIFIED; + case 1: return UNKNOWN; + case 2: return EXPANDED_INVENTORY; + case 3: return STANDARD_INVENTORY; + case 4: return LIMITED_INVENTORY; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + BrandSafetySuitability> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BrandSafetySuitability findValueByNumber(int number) { + return BrandSafetySuitability.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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.ads.googleads.v0.enums.BrandSafetySuitabilityEnum.getDescriptor().getEnumTypes().get(0); + } + + private static final BrandSafetySuitability[] VALUES = values(); + + public static BrandSafetySuitability 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 BrandSafetySuitability(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability) + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.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.ads.googleads.v0.enums.BrandSafetySuitabilityEnum)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum other = (com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum 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.ads.googleads.v0.enums.BrandSafetySuitabilityEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum 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.ads.googleads.v0.enums.BrandSafetySuitabilityEnum parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum 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.ads.googleads.v0.enums.BrandSafetySuitabilityEnum parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum 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.ads.googleads.v0.enums.BrandSafetySuitabilityEnum 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; + } + /** + *
+   * Container for enum with 3-Tier brand safety suitability control.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum) + com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.BrandSafetySuitabilityProto.internal_static_google_ads_googleads_v0_enums_BrandSafetySuitabilityEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.BrandSafetySuitabilityProto.internal_static_google_ads_googleads_v0_enums_BrandSafetySuitabilityEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum.class, com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.enums.BrandSafetySuitabilityProto.internal_static_google_ads_googleads_v0_enums_BrandSafetySuitabilityEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum getDefaultInstanceForType() { + return com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum build() { + com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum buildPartial() { + com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum result = new com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum) { + return mergeFrom((com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum other) { + if (other == com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum) + private static final com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum(); + } + + public static com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BrandSafetySuitabilityEnum parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BrandSafetySuitabilityEnum(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.enums.BrandSafetySuitabilityEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BrandSafetySuitabilityEnumOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BrandSafetySuitabilityEnumOrBuilder.java new file mode 100644 index 0000000000..5730f4a75c --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BrandSafetySuitabilityEnumOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/brand_safety_suitability.proto + +package com.google.ads.googleads.v0.enums; + +public interface BrandSafetySuitabilityEnumOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum) + com.google.protobuf.MessageOrBuilder { +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BrandSafetySuitabilityProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BrandSafetySuitabilityProto.java new file mode 100644 index 0000000000..14d8b5499c --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BrandSafetySuitabilityProto.java @@ -0,0 +1,66 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/brand_safety_suitability.proto + +package com.google.ads.googleads.v0.enums; + +public final class BrandSafetySuitabilityProto { + private BrandSafetySuitabilityProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_enums_BrandSafetySuitabilityEnum_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_enums_BrandSafetySuitabilityEnum_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n + * Message describing Budget period. + *
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.BudgetPeriodEnum} + */ +public final class BudgetPeriodEnum extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.enums.BudgetPeriodEnum) + BudgetPeriodEnumOrBuilder { +private static final long serialVersionUID = 0L; + // Use BudgetPeriodEnum.newBuilder() to construct. + private BudgetPeriodEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BudgetPeriodEnum() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BudgetPeriodEnum( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.BudgetPeriodProto.internal_static_google_ads_googleads_v0_enums_BudgetPeriodEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.BudgetPeriodProto.internal_static_google_ads_googleads_v0_enums_BudgetPeriodEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.BudgetPeriodEnum.class, com.google.ads.googleads.v0.enums.BudgetPeriodEnum.Builder.class); + } + + /** + *
+   * Possible period of a Budget.
+   * 
+ * + * Protobuf enum {@code google.ads.googleads.v0.enums.BudgetPeriodEnum.BudgetPeriod} + */ + public enum BudgetPeriod + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + UNKNOWN(1), + /** + *
+     * Daily budget.
+     * 
+ * + * DAILY = 2; + */ + DAILY(2), + /** + *
+     * Custom budget.
+     * 
+ * + * CUSTOM = 3; + */ + CUSTOM(3), + /** + *
+     * Fixed daily budget.
+     * 
+ * + * FIXED_DAILY = 4; + */ + FIXED_DAILY(4), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + public static final int UNKNOWN_VALUE = 1; + /** + *
+     * Daily budget.
+     * 
+ * + * DAILY = 2; + */ + public static final int DAILY_VALUE = 2; + /** + *
+     * Custom budget.
+     * 
+ * + * CUSTOM = 3; + */ + public static final int CUSTOM_VALUE = 3; + /** + *
+     * Fixed daily budget.
+     * 
+ * + * FIXED_DAILY = 4; + */ + public static final int FIXED_DAILY_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static BudgetPeriod valueOf(int value) { + return forNumber(value); + } + + public static BudgetPeriod forNumber(int value) { + switch (value) { + case 0: return UNSPECIFIED; + case 1: return UNKNOWN; + case 2: return DAILY; + case 3: return CUSTOM; + case 4: return FIXED_DAILY; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + BudgetPeriod> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BudgetPeriod findValueByNumber(int number) { + return BudgetPeriod.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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.ads.googleads.v0.enums.BudgetPeriodEnum.getDescriptor().getEnumTypes().get(0); + } + + private static final BudgetPeriod[] VALUES = values(); + + public static BudgetPeriod 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 BudgetPeriod(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.googleads.v0.enums.BudgetPeriodEnum.BudgetPeriod) + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.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.ads.googleads.v0.enums.BudgetPeriodEnum)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.enums.BudgetPeriodEnum other = (com.google.ads.googleads.v0.enums.BudgetPeriodEnum) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.enums.BudgetPeriodEnum parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.BudgetPeriodEnum parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.BudgetPeriodEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.BudgetPeriodEnum 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.ads.googleads.v0.enums.BudgetPeriodEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.BudgetPeriodEnum parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.BudgetPeriodEnum parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.BudgetPeriodEnum 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.ads.googleads.v0.enums.BudgetPeriodEnum parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.BudgetPeriodEnum 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.ads.googleads.v0.enums.BudgetPeriodEnum parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.BudgetPeriodEnum 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.ads.googleads.v0.enums.BudgetPeriodEnum prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Message describing Budget period.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.BudgetPeriodEnum} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.enums.BudgetPeriodEnum) + com.google.ads.googleads.v0.enums.BudgetPeriodEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.BudgetPeriodProto.internal_static_google_ads_googleads_v0_enums_BudgetPeriodEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.BudgetPeriodProto.internal_static_google_ads_googleads_v0_enums_BudgetPeriodEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.BudgetPeriodEnum.class, com.google.ads.googleads.v0.enums.BudgetPeriodEnum.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.enums.BudgetPeriodEnum.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.enums.BudgetPeriodProto.internal_static_google_ads_googleads_v0_enums_BudgetPeriodEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.BudgetPeriodEnum getDefaultInstanceForType() { + return com.google.ads.googleads.v0.enums.BudgetPeriodEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.BudgetPeriodEnum build() { + com.google.ads.googleads.v0.enums.BudgetPeriodEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.BudgetPeriodEnum buildPartial() { + com.google.ads.googleads.v0.enums.BudgetPeriodEnum result = new com.google.ads.googleads.v0.enums.BudgetPeriodEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.enums.BudgetPeriodEnum) { + return mergeFrom((com.google.ads.googleads.v0.enums.BudgetPeriodEnum)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.enums.BudgetPeriodEnum other) { + if (other == com.google.ads.googleads.v0.enums.BudgetPeriodEnum.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.enums.BudgetPeriodEnum parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.enums.BudgetPeriodEnum) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.enums.BudgetPeriodEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.BudgetPeriodEnum) + private static final com.google.ads.googleads.v0.enums.BudgetPeriodEnum DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.enums.BudgetPeriodEnum(); + } + + public static com.google.ads.googleads.v0.enums.BudgetPeriodEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BudgetPeriodEnum parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BudgetPeriodEnum(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.enums.BudgetPeriodEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CampaignGroupStatusEnumOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BudgetPeriodEnumOrBuilder.java similarity index 56% rename from google-ads/src/main/java/com/google/ads/googleads/v0/enums/CampaignGroupStatusEnumOrBuilder.java rename to google-ads/src/main/java/com/google/ads/googleads/v0/enums/BudgetPeriodEnumOrBuilder.java index 3fbbc318d0..f8d625ba14 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CampaignGroupStatusEnumOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BudgetPeriodEnumOrBuilder.java @@ -1,9 +1,9 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v0/enums/campaign_group_status.proto +// source: google/ads/googleads/v0/enums/budget_period.proto package com.google.ads.googleads.v0.enums; -public interface CampaignGroupStatusEnumOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.enums.CampaignGroupStatusEnum) +public interface BudgetPeriodEnumOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.enums.BudgetPeriodEnum) com.google.protobuf.MessageOrBuilder { } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BudgetPeriodProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BudgetPeriodProto.java new file mode 100644 index 0000000000..452bb0634b --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BudgetPeriodProto.java @@ -0,0 +1,64 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/budget_period.proto + +package com.google.ads.googleads.v0.enums; + +public final class BudgetPeriodProto { + private BudgetPeriodProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_enums_BudgetPeriodEnum_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_enums_BudgetPeriodEnum_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n1google/ads/googleads/v0/enums/budget_p" + + "eriod.proto\022\035google.ads.googleads.v0.enu" + + "ms\"h\n\020BudgetPeriodEnum\"T\n\014BudgetPeriod\022\017" + + "\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\t\n\005DAILY\020\002\022" + + "\n\n\006CUSTOM\020\003\022\017\n\013FIXED_DAILY\020\004B\346\001\n!com.goo" + + "gle.ads.googleads.v0.enumsB\021BudgetPeriod" + + "ProtoP\001ZBgoogle.golang.org/genproto/goog" + + "leapis/ads/googleads/v0/enums;enums\242\002\003GA" + + "A\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035Goog" + + "le\\Ads\\GoogleAds\\V0\\Enums\352\002!Google::Ads:" + + ":GoogleAds::V0::Enumsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_google_ads_googleads_v0_enums_BudgetPeriodEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_googleads_v0_enums_BudgetPeriodEnum_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_enums_BudgetPeriodEnum_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BudgetStatusProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BudgetStatusProto.java index c7bd18c3d5..d528a28d6e 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BudgetStatusProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/BudgetStatusProto.java @@ -32,12 +32,13 @@ public static void registerAllExtensions( "tatus.proto\022\035google.ads.googleads.v0.enu" + "ms\"Z\n\020BudgetStatusEnum\"F\n\014BudgetStatus\022\017" + "\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\013\n\007ENABLED\020" + - "\002\022\013\n\007REMOVED\020\003B\302\001\n!com.google.ads.google" + + "\002\022\013\n\007REMOVED\020\003B\346\001\n!com.google.ads.google" + "ads.v0.enumsB\021BudgetStatusProtoP\001ZBgoogl" + "e.golang.org/genproto/googleapis/ads/goo" + "gleads/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads" + ".GoogleAds.V0.Enums\312\002\035Google\\Ads\\GoogleA" + - "ds\\V0\\Enumsb\006proto3" + "ds\\V0\\Enums\352\002!Google::Ads::GoogleAds::V0" + + "::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CallConversionReportingStateProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CallConversionReportingStateProto.java index 40ae297f17..2c70345ef6 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CallConversionReportingStateProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CallConversionReportingStateProto.java @@ -35,13 +35,14 @@ public static void registerAllExtensions( "rtingState\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001" + "\022\014\n\010DISABLED\020\002\022,\n(USE_ACCOUNT_LEVEL_CALL" + "_CONVERSION_ACTION\020\003\022-\n)USE_RESOURCE_LEV" + - "EL_CALL_CONVERSION_ACTION\020\004B\322\001\n!com.goog" + + "EL_CALL_CONVERSION_ACTION\020\004B\366\001\n!com.goog" + "le.ads.googleads.v0.enumsB!CallConversio" + "nReportingStateProtoP\001ZBgoogle.golang.or" + "g/genproto/googleapis/ads/googleads/v0/e" + "nums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds." + "V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums" + - "b\006proto3" + "\352\002!Google::Ads::GoogleAds::V0::Enumsb\006pr" + + "oto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CallPlaceholderFieldProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CallPlaceholderFieldProto.java index 4624e3a258..44a859adb5 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CallPlaceholderFieldProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CallPlaceholderFieldProto.java @@ -35,12 +35,13 @@ public static void registerAllExtensions( "\020\000\022\013\n\007UNKNOWN\020\001\022\020\n\014PHONE_NUMBER\020\002\022\020\n\014COU" + "NTRY_CODE\020\003\022\013\n\007TRACKED\020\004\022\026\n\022CONVERSION_T" + "YPE_ID\020\005\022\036\n\032CONVERSION_REPORTING_STATE\020\006" + - "B\312\001\n!com.google.ads.googleads.v0.enumsB\031" + + "B\356\001\n!com.google.ads.googleads.v0.enumsB\031" + "CallPlaceholderFieldProtoP\001ZBgoogle.gola" + "ng.org/genproto/googleapis/ads/googleads" + "/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.Googl" + "eAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\" + - "Enumsb\006proto3" + "Enums\352\002!Google::Ads::GoogleAds::V0::Enum" + + "sb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CalloutPlaceholderFieldProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CalloutPlaceholderFieldProto.java index 7e88492439..79c813066a 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CalloutPlaceholderFieldProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CalloutPlaceholderFieldProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "leads.v0.enums\"h\n\033CalloutPlaceholderFiel" + "dEnum\"I\n\027CalloutPlaceholderField\022\017\n\013UNSP" + "ECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\020\n\014CALLOUT_TEXT\020\002" + - "B\315\001\n!com.google.ads.googleads.v0.enumsB\034" + + "B\361\001\n!com.google.ads.googleads.v0.enumsB\034" + "CalloutPlaceholderFieldProtoP\001ZBgoogle.g" + "olang.org/genproto/googleapis/ads/google" + "ads/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.Go" + "ogleAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\" + - "V0\\Enumsb\006proto3" + "V0\\Enums\352\002!Google::Ads::GoogleAds::V0::E" + + "numsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CampaignServingStatusProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CampaignServingStatusProto.java index dc904ba669..bc48b25dab 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CampaignServingStatusProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CampaignServingStatusProto.java @@ -34,12 +34,13 @@ public static void registerAllExtensions( "um\"s\n\025CampaignServingStatus\022\017\n\013UNSPECIFI" + "ED\020\000\022\013\n\007UNKNOWN\020\001\022\013\n\007SERVING\020\002\022\010\n\004NONE\020\003" + "\022\t\n\005ENDED\020\004\022\013\n\007PENDING\020\005\022\r\n\tSUSPENDED\020\006B" + - "\313\001\n!com.google.ads.googleads.v0.enumsB\032C" + + "\357\001\n!com.google.ads.googleads.v0.enumsB\032C" + "ampaignServingStatusProtoP\001ZBgoogle.gola" + "ng.org/genproto/googleapis/ads/googleads" + "/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.Googl" + "eAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\" + - "Enumsb\006proto3" + "Enums\352\002!Google::Ads::GoogleAds::V0::Enum" + + "sb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CampaignSharedSetStatusProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CampaignSharedSetStatusProto.java index a1dceaee48..293b391912 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CampaignSharedSetStatusProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CampaignSharedSetStatusProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "gleads.v0.enums\"p\n\033CampaignSharedSetStat" + "usEnum\"Q\n\027CampaignSharedSetStatus\022\017\n\013UNS" + "PECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\013\n\007ENABLED\020\002\022\013\n\007" + - "REMOVED\020\003B\315\001\n!com.google.ads.googleads.v" + + "REMOVED\020\003B\361\001\n!com.google.ads.googleads.v" + "0.enumsB\034CampaignSharedSetStatusProtoP\001Z" + "Bgoogle.golang.org/genproto/googleapis/a" + "ds/googleads/v0/enums;enums\242\002\003GAA\252\002\035Goog" + "le.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\G" + - "oogleAds\\V0\\Enumsb\006proto3" + "oogleAds\\V0\\Enums\352\002!Google::Ads::GoogleA" + + "ds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CampaignStatusProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CampaignStatusProto.java index fbc7edb136..7384481ab0 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CampaignStatusProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CampaignStatusProto.java @@ -32,12 +32,13 @@ public static void registerAllExtensions( "_status.proto\022\035google.ads.googleads.v0.e" + "nums\"j\n\022CampaignStatusEnum\"T\n\016CampaignSt" + "atus\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\013\n\007EN" + - "ABLED\020\002\022\n\n\006PAUSED\020\003\022\013\n\007REMOVED\020\004B\304\001\n!com" + + "ABLED\020\002\022\n\n\006PAUSED\020\003\022\013\n\007REMOVED\020\004B\350\001\n!com" + ".google.ads.googleads.v0.enumsB\023Campaign" + "StatusProtoP\001ZBgoogle.golang.org/genprot" + "o/googleapis/ads/googleads/v0/enums;enum" + "s\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums\312" + - "\002\035Google\\Ads\\GoogleAds\\V0\\Enumsb\006proto3" + "\002\035Google\\Ads\\GoogleAds\\V0\\Enums\352\002!Google" + + "::Ads::GoogleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ChangeStatusOperationProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ChangeStatusOperationProto.java index 635998e173..1818990838 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ChangeStatusOperationProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ChangeStatusOperationProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "ads.v0.enums\"w\n\031ChangeStatusOperationEnu" + "m\"Z\n\025ChangeStatusOperation\022\017\n\013UNSPECIFIE" + "D\020\000\022\013\n\007UNKNOWN\020\001\022\t\n\005ADDED\020\002\022\013\n\007CHANGED\020\003" + - "\022\013\n\007REMOVED\020\004B\313\001\n!com.google.ads.googlea" + + "\022\013\n\007REMOVED\020\004B\357\001\n!com.google.ads.googlea" + "ds.v0.enumsB\032ChangeStatusOperationProtoP" + "\001ZBgoogle.golang.org/genproto/googleapis" + "/ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035Go" + "ogle.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads" + - "\\GoogleAds\\V0\\Enumsb\006proto3" + "\\GoogleAds\\V0\\Enums\352\002!Google::Ads::Googl" + + "eAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ChangeStatusResourceTypeEnum.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ChangeStatusResourceTypeEnum.java index 3ae0679536..e0aeaf6e96 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ChangeStatusResourceTypeEnum.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ChangeStatusResourceTypeEnum.java @@ -144,6 +144,22 @@ public enum ChangeStatusResourceType * CAMPAIGN_CRITERION = 7; */ CAMPAIGN_CRITERION(7), + /** + *
+     * A Feed resource change.
+     * 
+ * + * FEED = 9; + */ + FEED(9), + /** + *
+     * A FeedItem resource change.
+     * 
+ * + * FEED_ITEM = 10; + */ + FEED_ITEM(10), UNRECOGNIZED(-1), ; @@ -204,6 +220,22 @@ public enum ChangeStatusResourceType * CAMPAIGN_CRITERION = 7; */ public static final int CAMPAIGN_CRITERION_VALUE = 7; + /** + *
+     * A Feed resource change.
+     * 
+ * + * FEED = 9; + */ + public static final int FEED_VALUE = 9; + /** + *
+     * A FeedItem resource change.
+     * 
+ * + * FEED_ITEM = 10; + */ + public static final int FEED_ITEM_VALUE = 10; public final int getNumber() { @@ -231,6 +263,8 @@ public static ChangeStatusResourceType forNumber(int value) { case 5: return AD_GROUP_CRITERION; case 6: return CAMPAIGN; case 7: return CAMPAIGN_CRITERION; + case 9: return FEED; + case 10: return FEED_ITEM; default: return null; } } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ChangeStatusResourceTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ChangeStatusResourceTypeProto.java index 29cc66c53f..990cce366c 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ChangeStatusResourceTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ChangeStatusResourceTypeProto.java @@ -30,17 +30,18 @@ public static void registerAllExtensions( java.lang.String[] descriptorData = { "\n?google/ads/googleads/v0/enums/change_s" + "tatus_resource_type.proto\022\035google.ads.go" + - "ogleads.v0.enums\"\266\001\n\034ChangeStatusResourc" + - "eTypeEnum\"\225\001\n\030ChangeStatusResourceType\022\017" + + "ogleads.v0.enums\"\317\001\n\034ChangeStatusResourc" + + "eTypeEnum\"\256\001\n\030ChangeStatusResourceType\022\017" + "\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\014\n\010AD_GROUP" + "\020\003\022\017\n\013AD_GROUP_AD\020\004\022\026\n\022AD_GROUP_CRITERIO" + "N\020\005\022\014\n\010CAMPAIGN\020\006\022\026\n\022CAMPAIGN_CRITERION\020" + - "\007B\316\001\n!com.google.ads.googleads.v0.enumsB" + - "\035ChangeStatusResourceTypeProtoP\001ZBgoogle" + - ".golang.org/genproto/googleapis/ads/goog" + - "leads/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads." + - "GoogleAds.V0.Enums\312\002\035Google\\Ads\\GoogleAd" + - "s\\V0\\Enumsb\006proto3" + "\007\022\010\n\004FEED\020\t\022\r\n\tFEED_ITEM\020\nB\362\001\n!com.googl" + + "e.ads.googleads.v0.enumsB\035ChangeStatusRe" + + "sourceTypeProtoP\001ZBgoogle.golang.org/gen" + + "proto/googleapis/ads/googleads/v0/enums;" + + "enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.En" + + "ums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums\352\002!Go" + + "ogle::Ads::GoogleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ContentLabelTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ContentLabelTypeProto.java index f49992a12c..6635eff4d7 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ContentLabelTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ContentLabelTypeProto.java @@ -39,12 +39,13 @@ public static void registerAllExtensions( "EO_RATING_DV_PG\020\013\022\025\n\021VIDEO_RATING_DV_T\020\014" + "\022\026\n\022VIDEO_RATING_DV_MA\020\r\022\027\n\023VIDEO_NOT_YE" + "T_RATED\020\016\022\022\n\016EMBEDDED_VIDEO\020\017\022\030\n\024LIVE_ST" + - "REAMING_VIDEO\020\020B\306\001\n!com.google.ads.googl" + + "REAMING_VIDEO\020\020B\352\001\n!com.google.ads.googl" + "eads.v0.enumsB\025ContentLabelTypeProtoP\001ZB" + "google.golang.org/genproto/googleapis/ad" + "s/googleads/v0/enums;enums\242\002\003GAA\252\002\035Googl" + "e.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\Go" + - "ogleAds\\V0\\Enumsb\006proto3" + "ogleAds\\V0\\Enums\352\002!Google::Ads::GoogleAd" + + "s::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ConversionActionCategoryProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ConversionActionCategoryProto.java index 2f07233156..9d980999eb 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ConversionActionCategoryProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ConversionActionCategoryProto.java @@ -34,13 +34,13 @@ public static void registerAllExtensions( "goryEnum\"\206\001\n\030ConversionActionCategory\022\017\n" + "\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\013\n\007DEFAULT\020\002" + "\022\r\n\tPAGE_VIEW\020\003\022\014\n\010PURCHASE\020\004\022\n\n\006SIGNUP\020" + - "\005\022\010\n\004LEAD\020\006\022\014\n\010DOWNLOAD\020\007B\316\001\n!com.google" + + "\005\022\010\n\004LEAD\020\006\022\014\n\010DOWNLOAD\020\007B\362\001\n!com.google" + ".ads.googleads.v0.enumsB\035ConversionActio" + "nCategoryProtoP\001ZBgoogle.golang.org/genp" + "roto/googleapis/ads/googleads/v0/enums;e" + "nums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enu" + - "ms\312\002\035Google\\Ads\\GoogleAds\\V0\\Enumsb\006prot" + - "o3" + "ms\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums\352\002!Goo" + + "gle::Ads::GoogleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ConversionActionCountingTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ConversionActionCountingTypeProto.java index 8b5cf8d5eb..e94297bf3d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ConversionActionCountingTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ConversionActionCountingTypeProto.java @@ -33,13 +33,14 @@ public static void registerAllExtensions( "s.googleads.v0.enums\"\207\001\n ConversionActio" + "nCountingTypeEnum\"c\n\034ConversionActionCou" + "ntingType\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022" + - "\021\n\rONE_PER_CLICK\020\002\022\022\n\016MANY_PER_CLICK\020\003B\322" + + "\021\n\rONE_PER_CLICK\020\002\022\022\n\016MANY_PER_CLICK\020\003B\366" + "\001\n!com.google.ads.googleads.v0.enumsB!Co" + "nversionActionCountingTypeProtoP\001ZBgoogl" + "e.golang.org/genproto/googleapis/ads/goo" + "gleads/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads" + ".GoogleAds.V0.Enums\312\002\035Google\\Ads\\GoogleA" + - "ds\\V0\\Enumsb\006proto3" + "ds\\V0\\Enums\352\002!Google::Ads::GoogleAds::V0" + + "::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ConversionActionStatusProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ConversionActionStatusProto.java index d623ece42c..af811ad92c 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ConversionActionStatusProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ConversionActionStatusProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "eads.v0.enums\"z\n\032ConversionActionStatusE" + "num\"\\\n\026ConversionActionStatus\022\017\n\013UNSPECI" + "FIED\020\000\022\013\n\007UNKNOWN\020\001\022\013\n\007ENABLED\020\002\022\013\n\007REMO" + - "VED\020\003\022\n\n\006HIDDEN\020\004B\314\001\n!com.google.ads.goo" + + "VED\020\003\022\n\n\006HIDDEN\020\004B\360\001\n!com.google.ads.goo" + "gleads.v0.enumsB\033ConversionActionStatusP" + "rotoP\001ZBgoogle.golang.org/genproto/googl" + "eapis/ads/googleads/v0/enums;enums\242\002\003GAA" + "\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035Googl" + - "e\\Ads\\GoogleAds\\V0\\Enumsb\006proto3" + "e\\Ads\\GoogleAds\\V0\\Enums\352\002!Google::Ads::" + + "GoogleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ConversionActionTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ConversionActionTypeProto.java index adb6f4ac93..c404225b6a 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ConversionActionTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ConversionActionTypeProto.java @@ -36,12 +36,13 @@ public static void registerAllExtensions( "_CALL\020\003\022\030\n\024GOOGLE_PLAY_DOWNLOAD\020\004\022\037\n\033GOO" + "GLE_PLAY_IN_APP_PURCHASE\020\005\022\020\n\014UPLOAD_CAL" + "LS\020\006\022\021\n\rUPLOAD_CLICKS\020\007\022\013\n\007WEBPAGE\020\010\022\020\n\014" + - "WEBSITE_CALL\020\tB\312\001\n!com.google.ads.google" + + "WEBSITE_CALL\020\tB\356\001\n!com.google.ads.google" + "ads.v0.enumsB\031ConversionActionTypeProtoP" + "\001ZBgoogle.golang.org/genproto/googleapis" + "/ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035Go" + "ogle.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads" + - "\\GoogleAds\\V0\\Enumsb\006proto3" + "\\GoogleAds\\V0\\Enums\352\002!Google::Ads::Googl" + + "eAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ConversionAttributionEventTypeEnum.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ConversionAttributionEventTypeEnum.java new file mode 100644 index 0000000000..0ec32d01fa --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ConversionAttributionEventTypeEnum.java @@ -0,0 +1,573 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/conversion_attribution_event_type.proto + +package com.google.ads.googleads.v0.enums; + +/** + *
+ * Container for enum indicating the event type the conversion is attributed to.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum} + */ +public final class ConversionAttributionEventTypeEnum extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum) + ConversionAttributionEventTypeEnumOrBuilder { +private static final long serialVersionUID = 0L; + // Use ConversionAttributionEventTypeEnum.newBuilder() to construct. + private ConversionAttributionEventTypeEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ConversionAttributionEventTypeEnum() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ConversionAttributionEventTypeEnum( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeProto.internal_static_google_ads_googleads_v0_enums_ConversionAttributionEventTypeEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeProto.internal_static_google_ads_googleads_v0_enums_ConversionAttributionEventTypeEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum.class, com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum.Builder.class); + } + + /** + *
+   * The event type of conversions that are attributed to.
+   * 
+ * + * Protobuf enum {@code google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum.ConversionAttributionEventType} + */ + public enum ConversionAttributionEventType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + *
+     * Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + UNKNOWN(1), + /** + *
+     * The conversion is attributed to an impression.
+     * 
+ * + * IMPRESSION = 2; + */ + IMPRESSION(2), + /** + *
+     * The conversion is attributed to an interaction.
+     * 
+ * + * INTERACTION = 3; + */ + INTERACTION(3), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + *
+     * Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + public static final int UNKNOWN_VALUE = 1; + /** + *
+     * The conversion is attributed to an impression.
+     * 
+ * + * IMPRESSION = 2; + */ + public static final int IMPRESSION_VALUE = 2; + /** + *
+     * The conversion is attributed to an interaction.
+     * 
+ * + * INTERACTION = 3; + */ + public static final int INTERACTION_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ConversionAttributionEventType valueOf(int value) { + return forNumber(value); + } + + public static ConversionAttributionEventType forNumber(int value) { + switch (value) { + case 0: return UNSPECIFIED; + case 1: return UNKNOWN; + case 2: return IMPRESSION; + case 3: return INTERACTION; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ConversionAttributionEventType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ConversionAttributionEventType findValueByNumber(int number) { + return ConversionAttributionEventType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum.getDescriptor().getEnumTypes().get(0); + } + + private static final ConversionAttributionEventType[] VALUES = values(); + + public static ConversionAttributionEventType 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 ConversionAttributionEventType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum.ConversionAttributionEventType) + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.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.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum other = (com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum 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.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum 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.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum 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.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum 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.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum 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; + } + /** + *
+   * Container for enum indicating the event type the conversion is attributed to.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum) + com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeProto.internal_static_google_ads_googleads_v0_enums_ConversionAttributionEventTypeEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeProto.internal_static_google_ads_googleads_v0_enums_ConversionAttributionEventTypeEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum.class, com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeProto.internal_static_google_ads_googleads_v0_enums_ConversionAttributionEventTypeEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum getDefaultInstanceForType() { + return com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum build() { + com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum buildPartial() { + com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum result = new com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum) { + return mergeFrom((com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum other) { + if (other == com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum) + private static final com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum(); + } + + public static com.google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversionAttributionEventTypeEnum parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConversionAttributionEventTypeEnum(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ConversionAttributionEventTypeEnumOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ConversionAttributionEventTypeEnumOrBuilder.java new file mode 100644 index 0000000000..6adf0c3790 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ConversionAttributionEventTypeEnumOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/conversion_attribution_event_type.proto + +package com.google.ads.googleads.v0.enums; + +public interface ConversionAttributionEventTypeEnumOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.enums.ConversionAttributionEventTypeEnum) + com.google.protobuf.MessageOrBuilder { +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ConversionAttributionEventTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ConversionAttributionEventTypeProto.java new file mode 100644 index 0000000000..85cf034fc8 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ConversionAttributionEventTypeProto.java @@ -0,0 +1,66 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/conversion_attribution_event_type.proto + +package com.google.ads.googleads.v0.enums; + +public final class ConversionAttributionEventTypeProto { + private ConversionAttributionEventTypeProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_enums_ConversionAttributionEventTypeEnum_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_enums_ConversionAttributionEventTypeEnum_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nEgoogle/ads/googleads/v0/enums/conversi" + + "on_attribution_event_type.proto\022\035google." + + "ads.googleads.v0.enums\"\205\001\n\"ConversionAtt" + + "ributionEventTypeEnum\"_\n\036ConversionAttri" + + "butionEventType\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKN" + + "OWN\020\001\022\016\n\nIMPRESSION\020\002\022\017\n\013INTERACTION\020\003B\370" + + "\001\n!com.google.ads.googleads.v0.enumsB#Co" + + "nversionAttributionEventTypeProtoP\001ZBgoo" + + "gle.golang.org/genproto/googleapis/ads/g" + + "oogleads/v0/enums;enums\242\002\003GAA\252\002\035Google.A" + + "ds.GoogleAds.V0.Enums\312\002\035Google\\Ads\\Googl" + + "eAds\\V0\\Enums\352\002!Google::Ads::GoogleAds::" + + "V0::Enumsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_google_ads_googleads_v0_enums_ConversionAttributionEventTypeEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_googleads_v0_enums_ConversionAttributionEventTypeEnum_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_enums_ConversionAttributionEventTypeEnum_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CriterionCategoryChannelAvailabilityModeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CriterionCategoryChannelAvailabilityModeProto.java index 845159d88b..d5ac8dae48 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CriterionCategoryChannelAvailabilityModeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CriterionCategoryChannelAvailabilityModeProto.java @@ -36,13 +36,13 @@ public static void registerAllExtensions( "ityMode\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\020\n" + "\014ALL_CHANNELS\020\002\022!\n\035CHANNEL_TYPE_AND_ALL_" + "SUBTYPES\020\003\022$\n CHANNEL_TYPE_AND_SUBSET_SU" + - "BTYPES\020\004B\336\001\n!com.google.ads.googleads.v0" + + "BTYPES\020\004B\202\002\n!com.google.ads.googleads.v0" + ".enumsB-CriterionCategoryChannelAvailabi" + "lityModeProtoP\001ZBgoogle.golang.org/genpr" + "oto/googleapis/ads/googleads/v0/enums;en" + "ums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enum" + - "s\312\002\035Google\\Ads\\GoogleAds\\V0\\Enumsb\006proto" + - "3" + "s\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums\352\002!Goog" + + "le::Ads::GoogleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CriterionCategoryLocaleAvailabilityModeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CriterionCategoryLocaleAvailabilityModeProto.java index 6934cdd9f9..d4f29b7fab 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CriterionCategoryLocaleAvailabilityModeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CriterionCategoryLocaleAvailabilityModeProto.java @@ -36,13 +36,14 @@ public static void registerAllExtensions( "Mode\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\017\n\013AL" + "L_LOCALES\020\002\022\035\n\031COUNTRY_AND_ALL_LANGUAGES" + "\020\003\022\036\n\032LANGUAGE_AND_ALL_COUNTRIES\020\004\022\030\n\024CO" + - "UNTRY_AND_LANGUAGE\020\005B\335\001\n!com.google.ads." + + "UNTRY_AND_LANGUAGE\020\005B\201\002\n!com.google.ads." + "googleads.v0.enumsB,CriterionCategoryLoc" + "aleAvailabilityModeProtoP\001ZBgoogle.golan" + "g.org/genproto/googleapis/ads/googleads/" + "v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.Google" + "Ads.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\E" + - "numsb\006proto3" + "nums\352\002!Google::Ads::GoogleAds::V0::Enums" + + "b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CriterionTypeEnum.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CriterionTypeEnum.java index c525db68f1..a408c7394d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CriterionTypeEnum.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CriterionTypeEnum.java @@ -118,6 +118,14 @@ public enum CriterionType * PLACEMENT = 3; */ PLACEMENT(3), + /** + *
+     * Mobile application categories to target.
+     * 
+ * + * MOBILE_APP_CATEGORY = 4; + */ + MOBILE_APP_CATEGORY(4), /** *
      * Devices to target.
@@ -270,6 +278,30 @@ public enum CriterionType
      * USER_INTEREST = 24;
      */
     USER_INTEREST(24),
+    /**
+     * 
+     * Webpage criterion for dynamic search ads.
+     * 
+ * + * WEBPAGE = 25; + */ + WEBPAGE(25), + /** + *
+     * Operating system version.
+     * 
+ * + * OPERATING_SYSTEM_VERSION = 26; + */ + OPERATING_SYSTEM_VERSION(26), + /** + *
+     * App payment model.
+     * 
+ * + * APP_PAYMENT_MODEL = 27; + */ + APP_PAYMENT_MODEL(27), UNRECOGNIZED(-1), ; @@ -305,6 +337,14 @@ public enum CriterionType * PLACEMENT = 3; */ public static final int PLACEMENT_VALUE = 3; + /** + *
+     * Mobile application categories to target.
+     * 
+ * + * MOBILE_APP_CATEGORY = 4; + */ + public static final int MOBILE_APP_CATEGORY_VALUE = 4; /** *
      * Devices to target.
@@ -457,6 +497,30 @@ public enum CriterionType
      * USER_INTEREST = 24;
      */
     public static final int USER_INTEREST_VALUE = 24;
+    /**
+     * 
+     * Webpage criterion for dynamic search ads.
+     * 
+ * + * WEBPAGE = 25; + */ + public static final int WEBPAGE_VALUE = 25; + /** + *
+     * Operating system version.
+     * 
+ * + * OPERATING_SYSTEM_VERSION = 26; + */ + public static final int OPERATING_SYSTEM_VERSION_VALUE = 26; + /** + *
+     * App payment model.
+     * 
+ * + * APP_PAYMENT_MODEL = 27; + */ + public static final int APP_PAYMENT_MODEL_VALUE = 27; public final int getNumber() { @@ -481,6 +545,7 @@ public static CriterionType forNumber(int value) { case 1: return UNKNOWN; case 2: return KEYWORD; case 3: return PLACEMENT; + case 4: return MOBILE_APP_CATEGORY; case 6: return DEVICE; case 7: return LOCATION; case 8: return LISTING_GROUP; @@ -500,6 +565,9 @@ public static CriterionType forNumber(int value) { case 22: return CONTENT_LABEL; case 23: return CARRIER; case 24: return USER_INTEREST; + case 25: return WEBPAGE; + case 26: return OPERATING_SYSTEM_VERSION; + case 27: return APP_PAYMENT_MODEL; default: return null; } } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CriterionTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CriterionTypeProto.java index 87a4668ed7..d0b1710ed3 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CriterionTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CriterionTypeProto.java @@ -30,22 +30,25 @@ public static void registerAllExtensions( java.lang.String[] descriptorData = { "\n2google/ads/googleads/v0/enums/criterio" + "n_type.proto\022\035google.ads.googleads.v0.en" + - "ums\"\222\003\n\021CriterionTypeEnum\"\374\002\n\rCriterionT" + + "ums\"\355\003\n\021CriterionTypeEnum\"\327\003\n\rCriterionT" + "ype\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\013\n\007KEY" + - "WORD\020\002\022\r\n\tPLACEMENT\020\003\022\n\n\006DEVICE\020\006\022\014\n\010LOC" + - "ATION\020\007\022\021\n\rLISTING_GROUP\020\010\022\017\n\013AD_SCHEDUL" + - "E\020\t\022\r\n\tAGE_RANGE\020\n\022\n\n\006GENDER\020\013\022\020\n\014INCOME" + - "_RANGE\020\014\022\023\n\017PARENTAL_STATUS\020\r\022\021\n\rYOUTUBE" + - "_VIDEO\020\016\022\023\n\017YOUTUBE_CHANNEL\020\017\022\r\n\tUSER_LI" + - "ST\020\020\022\r\n\tPROXIMITY\020\021\022\t\n\005TOPIC\020\022\022\021\n\rLISTIN" + - "G_SCOPE\020\023\022\014\n\010LANGUAGE\020\024\022\014\n\010IP_BLOCK\020\025\022\021\n" + - "\rCONTENT_LABEL\020\026\022\013\n\007CARRIER\020\027\022\021\n\rUSER_IN" + - "TEREST\020\030B\303\001\n!com.google.ads.googleads.v0" + - ".enumsB\022CriterionTypeProtoP\001ZBgoogle.gol" + - "ang.org/genproto/googleapis/ads/googlead" + - "s/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.Goog" + - "leAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0" + - "\\Enumsb\006proto3" + "WORD\020\002\022\r\n\tPLACEMENT\020\003\022\027\n\023MOBILE_APP_CATE" + + "GORY\020\004\022\n\n\006DEVICE\020\006\022\014\n\010LOCATION\020\007\022\021\n\rLIST" + + "ING_GROUP\020\010\022\017\n\013AD_SCHEDULE\020\t\022\r\n\tAGE_RANG" + + "E\020\n\022\n\n\006GENDER\020\013\022\020\n\014INCOME_RANGE\020\014\022\023\n\017PAR" + + "ENTAL_STATUS\020\r\022\021\n\rYOUTUBE_VIDEO\020\016\022\023\n\017YOU" + + "TUBE_CHANNEL\020\017\022\r\n\tUSER_LIST\020\020\022\r\n\tPROXIMI" + + "TY\020\021\022\t\n\005TOPIC\020\022\022\021\n\rLISTING_SCOPE\020\023\022\014\n\010LA" + + "NGUAGE\020\024\022\014\n\010IP_BLOCK\020\025\022\021\n\rCONTENT_LABEL\020" + + "\026\022\013\n\007CARRIER\020\027\022\021\n\rUSER_INTEREST\020\030\022\013\n\007WEB" + + "PAGE\020\031\022\034\n\030OPERATING_SYSTEM_VERSION\020\032\022\025\n\021" + + "APP_PAYMENT_MODEL\020\033B\347\001\n!com.google.ads.g" + + "oogleads.v0.enumsB\022CriterionTypeProtoP\001Z" + + "Bgoogle.golang.org/genproto/googleapis/a" + + "ds/googleads/v0/enums;enums\242\002\003GAA\252\002\035Goog" + + "le.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\G" + + "oogleAds\\V0\\Enums\352\002!Google::Ads::GoogleA" + + "ds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CustomPlaceholderFieldProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CustomPlaceholderFieldProto.java index 0d710c6575..c00b86c5ec 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CustomPlaceholderFieldProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CustomPlaceholderFieldProto.java @@ -41,12 +41,13 @@ public static void registerAllExtensions( "\021FINAL_MOBILE_URLS\020\017\022\020\n\014TRACKING_URL\020\020\022\027" + "\n\023CONTEXTUAL_KEYWORDS\020\021\022\024\n\020ANDROID_APP_L" + "INK\020\022\022\017\n\013SIMILAR_IDS\020\023\022\020\n\014IOS_APP_LINK\020\024" + - "\022\024\n\020IOS_APP_STORE_ID\020\025B\314\001\n!com.google.ad" + + "\022\024\n\020IOS_APP_STORE_ID\020\025B\360\001\n!com.google.ad" + "s.googleads.v0.enumsB\033CustomPlaceholderF" + "ieldProtoP\001ZBgoogle.golang.org/genproto/" + "googleapis/ads/googleads/v0/enums;enums\242" + "\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035" + - "Google\\Ads\\GoogleAds\\V0\\Enumsb\006proto3" + "Google\\Ads\\GoogleAds\\V0\\Enums\352\002!Google::" + + "Ads::GoogleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CustomerMatchUploadKeyTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CustomerMatchUploadKeyTypeProto.java index 201221d734..17f70187ff 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CustomerMatchUploadKeyTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CustomerMatchUploadKeyTypeProto.java @@ -34,12 +34,13 @@ public static void registerAllExtensions( "oadKeyTypeEnum\"s\n\032CustomerMatchUploadKey" + "Type\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\020\n\014CO" + "NTACT_INFO\020\002\022\n\n\006CRM_ID\020\003\022\031\n\025MOBILE_ADVER" + - "TISING_ID\020\004B\320\001\n!com.google.ads.googleads" + + "TISING_ID\020\004B\364\001\n!com.google.ads.googleads" + ".v0.enumsB\037CustomerMatchUploadKeyTypePro" + "toP\001ZBgoogle.golang.org/genproto/googlea" + "pis/ads/googleads/v0/enums;enums\242\002\003GAA\252\002" + "\035Google.Ads.GoogleAds.V0.Enums\312\002\035Google\\" + - "Ads\\GoogleAds\\V0\\Enumsb\006proto3" + "Ads\\GoogleAds\\V0\\Enums\352\002!Google::Ads::Go" + + "ogleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/DataDrivenModelStatusProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/DataDrivenModelStatusProto.java index 4823d4552d..846d1228e3 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/DataDrivenModelStatusProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/DataDrivenModelStatusProto.java @@ -33,13 +33,14 @@ public static void registerAllExtensions( "eads.v0.enums\"\216\001\n\031DataDrivenModelStatusE" + "num\"q\n\025DataDrivenModelStatus\022\017\n\013UNSPECIF" + "IED\020\000\022\013\n\007UNKNOWN\020\001\022\r\n\tAVAILABLE\020\002\022\t\n\005STA" + - "LE\020\003\022\013\n\007EXPIRED\020\004\022\023\n\017NEVER_GENERATED\020\005B\313" + + "LE\020\003\022\013\n\007EXPIRED\020\004\022\023\n\017NEVER_GENERATED\020\005B\357" + "\001\n!com.google.ads.googleads.v0.enumsB\032Da" + "taDrivenModelStatusProtoP\001ZBgoogle.golan" + "g.org/genproto/googleapis/ads/googleads/" + "v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.Google" + "Ads.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\E" + - "numsb\006proto3" + "nums\352\002!Google::Ads::GoogleAds::V0::Enums" + + "b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/DayOfWeekProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/DayOfWeekProto.java index 4c677a50e3..bb39086686 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/DayOfWeekProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/DayOfWeekProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "\"\227\001\n\rDayOfWeekEnum\"\205\001\n\tDayOfWeek\022\017\n\013UNSP" + "ECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\n\n\006MONDAY\020\002\022\013\n\007TU" + "ESDAY\020\003\022\r\n\tWEDNESDAY\020\004\022\014\n\010THURSDAY\020\005\022\n\n\006" + - "FRIDAY\020\006\022\014\n\010SATURDAY\020\007\022\n\n\006SUNDAY\020\010B\277\001\n!c" + + "FRIDAY\020\006\022\014\n\010SATURDAY\020\007\022\n\n\006SUNDAY\020\010B\343\001\n!c" + "om.google.ads.googleads.v0.enumsB\016DayOfW" + "eekProtoP\001ZBgoogle.golang.org/genproto/g" + "oogleapis/ads/googleads/v0/enums;enums\242\002" + "\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035G" + - "oogle\\Ads\\GoogleAds\\V0\\Enumsb\006proto3" + "oogle\\Ads\\GoogleAds\\V0\\Enums\352\002!Google::A" + + "ds::GoogleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/DeviceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/DeviceProto.java index 7852bc0e6e..7685f528b6 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/DeviceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/DeviceProto.java @@ -32,12 +32,13 @@ public static void registerAllExtensions( "roto\022\035google.ads.googleads.v0.enums\"Y\n\nD" + "eviceEnum\"K\n\006Device\022\017\n\013UNSPECIFIED\020\000\022\013\n\007" + "UNKNOWN\020\001\022\n\n\006MOBILE\020\002\022\n\n\006TABLET\020\003\022\013\n\007DES" + - "KTOP\020\004B\274\001\n!com.google.ads.googleads.v0.e" + + "KTOP\020\004B\340\001\n!com.google.ads.googleads.v0.e" + "numsB\013DeviceProtoP\001ZBgoogle.golang.org/g" + "enproto/googleapis/ads/googleads/v0/enum" + "s;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0." + - "Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enumsb\006p" + - "roto3" + "Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums\352\002!" + + "Google::Ads::GoogleAds::V0::Enumsb\006proto" + + "3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/DisplayAdFormatSettingProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/DisplayAdFormatSettingProto.java index 4dcb93d2f3..5590b68d6d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/DisplayAdFormatSettingProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/DisplayAdFormatSettingProto.java @@ -33,13 +33,13 @@ public static void registerAllExtensions( "leads.v0.enums\"\201\001\n\032DisplayAdFormatSettin" + "gEnum\"c\n\026DisplayAdFormatSetting\022\017\n\013UNSPE" + "CIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\017\n\013ALL_FORMATS\020\002\022\016" + - "\n\nNON_NATIVE\020\003\022\n\n\006NATIVE\020\004B\314\001\n!com.googl" + + "\n\nNON_NATIVE\020\003\022\n\n\006NATIVE\020\004B\360\001\n!com.googl" + "e.ads.googleads.v0.enumsB\033DisplayAdForma" + "tSettingProtoP\001ZBgoogle.golang.org/genpr" + "oto/googleapis/ads/googleads/v0/enums;en" + "ums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enum" + - "s\312\002\035Google\\Ads\\GoogleAds\\V0\\Enumsb\006proto" + - "3" + "s\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums\352\002!Goog" + + "le::Ads::GoogleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/EducationPlaceholderFieldProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/EducationPlaceholderFieldProto.java index dec1a2d33e..9efba26cff 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/EducationPlaceholderFieldProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/EducationPlaceholderFieldProto.java @@ -41,13 +41,13 @@ public static void registerAllExtensions( "AL_MOBILE_URLS\020\014\022\020\n\014TRACKING_URL\020\r\022\027\n\023CO" + "NTEXTUAL_KEYWORDS\020\016\022\024\n\020ANDROID_APP_LINK\020" + "\017\022\027\n\023SIMILAR_PROGRAM_IDS\020\020\022\020\n\014IOS_APP_LI" + - "NK\020\021\022\024\n\020IOS_APP_STORE_ID\020\022B\317\001\n!com.googl" + + "NK\020\021\022\024\n\020IOS_APP_STORE_ID\020\022B\363\001\n!com.googl" + "e.ads.googleads.v0.enumsB\036EducationPlace" + "holderFieldProtoP\001ZBgoogle.golang.org/ge" + "nproto/googleapis/ads/googleads/v0/enums" + ";enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.E" + - "nums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enumsb\006pr" + - "oto3" + "nums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums\352\002!G" + + "oogle::Ads::GoogleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedAttributeTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedAttributeTypeProto.java index a66124b499..79a23129fc 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedAttributeTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedAttributeTypeProto.java @@ -36,13 +36,13 @@ public static void registerAllExtensions( "\004\022\013\n\007BOOLEAN\020\005\022\007\n\003URL\020\006\022\r\n\tDATE_TIME\020\007\022\016" + "\n\nINT64_LIST\020\010\022\017\n\013DOUBLE_LIST\020\t\022\017\n\013STRIN" + "G_LIST\020\n\022\020\n\014BOOLEAN_LIST\020\013\022\014\n\010URL_LIST\020\014" + - "\022\022\n\016DATE_TIME_LIST\020\r\022\t\n\005PRICE\020\016B\307\001\n!com." + + "\022\022\n\016DATE_TIME_LIST\020\r\022\t\n\005PRICE\020\016B\353\001\n!com." + "google.ads.googleads.v0.enumsB\026FeedAttri" + "buteTypeProtoP\001ZBgoogle.golang.org/genpr" + "oto/googleapis/ads/googleads/v0/enums;en" + "ums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enum" + - "s\312\002\035Google\\Ads\\GoogleAds\\V0\\Enumsb\006proto" + - "3" + "s\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums\352\002!Goog" + + "le::Ads::GoogleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedItemQualityApprovalStatusEnum.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedItemQualityApprovalStatusEnum.java new file mode 100644 index 0000000000..f42d4d87c5 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedItemQualityApprovalStatusEnum.java @@ -0,0 +1,577 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/feed_item_quality_approval_status.proto + +package com.google.ads.googleads.v0.enums; + +/** + *
+ * Container for enum describing possible quality evaluation approval statuses
+ * of a feed item.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum} + */ +public final class FeedItemQualityApprovalStatusEnum extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum) + FeedItemQualityApprovalStatusEnumOrBuilder { +private static final long serialVersionUID = 0L; + // Use FeedItemQualityApprovalStatusEnum.newBuilder() to construct. + private FeedItemQualityApprovalStatusEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FeedItemQualityApprovalStatusEnum() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FeedItemQualityApprovalStatusEnum( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusProto.internal_static_google_ads_googleads_v0_enums_FeedItemQualityApprovalStatusEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusProto.internal_static_google_ads_googleads_v0_enums_FeedItemQualityApprovalStatusEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum.class, com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum.Builder.class); + } + + /** + *
+   * The possible quality evaluation approval statuses of a feed item.
+   * 
+ * + * Protobuf enum {@code google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus} + */ + public enum FeedItemQualityApprovalStatus + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * No value has been specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + UNKNOWN(1), + /** + *
+     * Meets all quality expectations.
+     * 
+ * + * APPROVED = 2; + */ + APPROVED(2), + /** + *
+     * Does not meet some quality expectations. The specific reason is found in
+     * the quality_disapproval_reasons field.
+     * 
+ * + * DISAPPROVED = 3; + */ + DISAPPROVED(3), + UNRECOGNIZED(-1), + ; + + /** + *
+     * No value has been specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + public static final int UNKNOWN_VALUE = 1; + /** + *
+     * Meets all quality expectations.
+     * 
+ * + * APPROVED = 2; + */ + public static final int APPROVED_VALUE = 2; + /** + *
+     * Does not meet some quality expectations. The specific reason is found in
+     * the quality_disapproval_reasons field.
+     * 
+ * + * DISAPPROVED = 3; + */ + public static final int DISAPPROVED_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FeedItemQualityApprovalStatus valueOf(int value) { + return forNumber(value); + } + + public static FeedItemQualityApprovalStatus forNumber(int value) { + switch (value) { + case 0: return UNSPECIFIED; + case 1: return UNKNOWN; + case 2: return APPROVED; + case 3: return DISAPPROVED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + FeedItemQualityApprovalStatus> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FeedItemQualityApprovalStatus findValueByNumber(int number) { + return FeedItemQualityApprovalStatus.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum.getDescriptor().getEnumTypes().get(0); + } + + private static final FeedItemQualityApprovalStatus[] VALUES = values(); + + public static FeedItemQualityApprovalStatus 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 FeedItemQualityApprovalStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus) + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.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.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum other = (com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum 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.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum 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.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum 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.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum 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.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum 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; + } + /** + *
+   * Container for enum describing possible quality evaluation approval statuses
+   * of a feed item.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum) + com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusProto.internal_static_google_ads_googleads_v0_enums_FeedItemQualityApprovalStatusEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusProto.internal_static_google_ads_googleads_v0_enums_FeedItemQualityApprovalStatusEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum.class, com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusProto.internal_static_google_ads_googleads_v0_enums_FeedItemQualityApprovalStatusEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum getDefaultInstanceForType() { + return com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum build() { + com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum buildPartial() { + com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum result = new com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum) { + return mergeFrom((com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum other) { + if (other == com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum) + private static final com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum(); + } + + public static com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeedItemQualityApprovalStatusEnum parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeedItemQualityApprovalStatusEnum(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedItemQualityApprovalStatusEnumOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedItemQualityApprovalStatusEnumOrBuilder.java new file mode 100644 index 0000000000..bac204fa1e --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedItemQualityApprovalStatusEnumOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/feed_item_quality_approval_status.proto + +package com.google.ads.googleads.v0.enums; + +public interface FeedItemQualityApprovalStatusEnumOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum) + com.google.protobuf.MessageOrBuilder { +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedItemQualityApprovalStatusProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedItemQualityApprovalStatusProto.java new file mode 100644 index 0000000000..f8029c374c --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedItemQualityApprovalStatusProto.java @@ -0,0 +1,66 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/feed_item_quality_approval_status.proto + +package com.google.ads.googleads.v0.enums; + +public final class FeedItemQualityApprovalStatusProto { + private FeedItemQualityApprovalStatusProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_enums_FeedItemQualityApprovalStatusEnum_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_enums_FeedItemQualityApprovalStatusEnum_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nEgoogle/ads/googleads/v0/enums/feed_ite" + + "m_quality_approval_status.proto\022\035google." + + "ads.googleads.v0.enums\"\201\001\n!FeedItemQuali" + + "tyApprovalStatusEnum\"\\\n\035FeedItemQualityA" + + "pprovalStatus\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOW" + + "N\020\001\022\014\n\010APPROVED\020\002\022\017\n\013DISAPPROVED\020\003B\367\001\n!c" + + "om.google.ads.googleads.v0.enumsB\"FeedIt" + + "emQualityApprovalStatusProtoP\001ZBgoogle.g" + + "olang.org/genproto/googleapis/ads/google" + + "ads/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.Go" + + "ogleAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\" + + "V0\\Enums\352\002!Google::Ads::GoogleAds::V0::E" + + "numsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_google_ads_googleads_v0_enums_FeedItemQualityApprovalStatusEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_googleads_v0_enums_FeedItemQualityApprovalStatusEnum_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_enums_FeedItemQualityApprovalStatusEnum_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedItemQualityDisapprovalReasonEnum.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedItemQualityDisapprovalReasonEnum.java new file mode 100644 index 0000000000..6a5bb32784 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedItemQualityDisapprovalReasonEnum.java @@ -0,0 +1,847 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/feed_item_quality_disapproval_reason.proto + +package com.google.ads.googleads.v0.enums; + +/** + *
+ * Container for enum describing possible quality evaluation disapproval reasons
+ * of a feed item.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum} + */ +public final class FeedItemQualityDisapprovalReasonEnum extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum) + FeedItemQualityDisapprovalReasonEnumOrBuilder { +private static final long serialVersionUID = 0L; + // Use FeedItemQualityDisapprovalReasonEnum.newBuilder() to construct. + private FeedItemQualityDisapprovalReasonEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FeedItemQualityDisapprovalReasonEnum() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FeedItemQualityDisapprovalReasonEnum( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonProto.internal_static_google_ads_googleads_v0_enums_FeedItemQualityDisapprovalReasonEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonProto.internal_static_google_ads_googleads_v0_enums_FeedItemQualityDisapprovalReasonEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.class, com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.Builder.class); + } + + /** + *
+   * The possible quality evaluation disapproval reasons of a feed item.
+   * 
+ * + * Protobuf enum {@code google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason} + */ + public enum FeedItemQualityDisapprovalReason + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * No value has been specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + UNKNOWN(1), + /** + *
+     * Price contains repetitive headers.
+     * 
+ * + * PRICE_TABLE_REPETITIVE_HEADERS = 2; + */ + PRICE_TABLE_REPETITIVE_HEADERS(2), + /** + *
+     * Price contains repetitive description.
+     * 
+ * + * PRICE_TABLE_REPETITIVE_DESCRIPTION = 3; + */ + PRICE_TABLE_REPETITIVE_DESCRIPTION(3), + /** + *
+     * Price contains inconsistent items.
+     * 
+ * + * PRICE_TABLE_INCONSISTENT_ROWS = 4; + */ + PRICE_TABLE_INCONSISTENT_ROWS(4), + /** + *
+     * Price contains qualifiers in description.
+     * 
+ * + * PRICE_DESCRIPTION_HAS_PRICE_QUALIFIERS = 5; + */ + PRICE_DESCRIPTION_HAS_PRICE_QUALIFIERS(5), + /** + *
+     * Price contains an unsupported language.
+     * 
+ * + * PRICE_UNSUPPORTED_LANGUAGE = 6; + */ + PRICE_UNSUPPORTED_LANGUAGE(6), + /** + *
+     * Price item header is not relevant to the price type.
+     * 
+ * + * PRICE_TABLE_ROW_HEADER_TABLE_TYPE_MISMATCH = 7; + */ + PRICE_TABLE_ROW_HEADER_TABLE_TYPE_MISMATCH(7), + /** + *
+     * Price item header has promotional text.
+     * 
+ * + * PRICE_TABLE_ROW_HEADER_HAS_PROMOTIONAL_TEXT = 8; + */ + PRICE_TABLE_ROW_HEADER_HAS_PROMOTIONAL_TEXT(8), + /** + *
+     * Price item description is not relevant to the item header.
+     * 
+ * + * PRICE_TABLE_ROW_DESCRIPTION_NOT_RELEVANT = 9; + */ + PRICE_TABLE_ROW_DESCRIPTION_NOT_RELEVANT(9), + /** + *
+     * Price item description contains promotional text.
+     * 
+ * + * PRICE_TABLE_ROW_DESCRIPTION_HAS_PROMOTIONAL_TEXT = 10; + */ + PRICE_TABLE_ROW_DESCRIPTION_HAS_PROMOTIONAL_TEXT(10), + /** + *
+     * Price item header and description are repetitive.
+     * 
+ * + * PRICE_TABLE_ROW_HEADER_DESCRIPTION_REPETITIVE = 11; + */ + PRICE_TABLE_ROW_HEADER_DESCRIPTION_REPETITIVE(11), + /** + *
+     * Price item is in a foreign language, nonsense, or can't be rated.
+     * 
+ * + * PRICE_TABLE_ROW_UNRATEABLE = 12; + */ + PRICE_TABLE_ROW_UNRATEABLE(12), + /** + *
+     * Price item price is invalid or inaccurate.
+     * 
+ * + * PRICE_TABLE_ROW_PRICE_INVALID = 13; + */ + PRICE_TABLE_ROW_PRICE_INVALID(13), + /** + *
+     * Price item URL is invalid or irrelevant.
+     * 
+ * + * PRICE_TABLE_ROW_URL_INVALID = 14; + */ + PRICE_TABLE_ROW_URL_INVALID(14), + /** + *
+     * Price item header or description has price.
+     * 
+ * + * PRICE_HEADER_OR_DESCRIPTION_HAS_PRICE = 15; + */ + PRICE_HEADER_OR_DESCRIPTION_HAS_PRICE(15), + /** + *
+     * Structured snippet values do not match the header.
+     * 
+ * + * STRUCTURED_SNIPPETS_HEADER_POLICY_VIOLATED = 16; + */ + STRUCTURED_SNIPPETS_HEADER_POLICY_VIOLATED(16), + /** + *
+     * Structured snippet values are repeated.
+     * 
+ * + * STRUCTURED_SNIPPETS_REPEATED_VALUES = 17; + */ + STRUCTURED_SNIPPETS_REPEATED_VALUES(17), + /** + *
+     * Structured snippet values violate editorial guidelines like punctuation.
+     * 
+ * + * STRUCTURED_SNIPPETS_EDITORIAL_GUIDELINES = 18; + */ + STRUCTURED_SNIPPETS_EDITORIAL_GUIDELINES(18), + /** + *
+     * Structured snippet contain promotional text.
+     * 
+ * + * STRUCTURED_SNIPPETS_HAS_PROMOTIONAL_TEXT = 19; + */ + STRUCTURED_SNIPPETS_HAS_PROMOTIONAL_TEXT(19), + UNRECOGNIZED(-1), + ; + + /** + *
+     * No value has been specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + public static final int UNKNOWN_VALUE = 1; + /** + *
+     * Price contains repetitive headers.
+     * 
+ * + * PRICE_TABLE_REPETITIVE_HEADERS = 2; + */ + public static final int PRICE_TABLE_REPETITIVE_HEADERS_VALUE = 2; + /** + *
+     * Price contains repetitive description.
+     * 
+ * + * PRICE_TABLE_REPETITIVE_DESCRIPTION = 3; + */ + public static final int PRICE_TABLE_REPETITIVE_DESCRIPTION_VALUE = 3; + /** + *
+     * Price contains inconsistent items.
+     * 
+ * + * PRICE_TABLE_INCONSISTENT_ROWS = 4; + */ + public static final int PRICE_TABLE_INCONSISTENT_ROWS_VALUE = 4; + /** + *
+     * Price contains qualifiers in description.
+     * 
+ * + * PRICE_DESCRIPTION_HAS_PRICE_QUALIFIERS = 5; + */ + public static final int PRICE_DESCRIPTION_HAS_PRICE_QUALIFIERS_VALUE = 5; + /** + *
+     * Price contains an unsupported language.
+     * 
+ * + * PRICE_UNSUPPORTED_LANGUAGE = 6; + */ + public static final int PRICE_UNSUPPORTED_LANGUAGE_VALUE = 6; + /** + *
+     * Price item header is not relevant to the price type.
+     * 
+ * + * PRICE_TABLE_ROW_HEADER_TABLE_TYPE_MISMATCH = 7; + */ + public static final int PRICE_TABLE_ROW_HEADER_TABLE_TYPE_MISMATCH_VALUE = 7; + /** + *
+     * Price item header has promotional text.
+     * 
+ * + * PRICE_TABLE_ROW_HEADER_HAS_PROMOTIONAL_TEXT = 8; + */ + public static final int PRICE_TABLE_ROW_HEADER_HAS_PROMOTIONAL_TEXT_VALUE = 8; + /** + *
+     * Price item description is not relevant to the item header.
+     * 
+ * + * PRICE_TABLE_ROW_DESCRIPTION_NOT_RELEVANT = 9; + */ + public static final int PRICE_TABLE_ROW_DESCRIPTION_NOT_RELEVANT_VALUE = 9; + /** + *
+     * Price item description contains promotional text.
+     * 
+ * + * PRICE_TABLE_ROW_DESCRIPTION_HAS_PROMOTIONAL_TEXT = 10; + */ + public static final int PRICE_TABLE_ROW_DESCRIPTION_HAS_PROMOTIONAL_TEXT_VALUE = 10; + /** + *
+     * Price item header and description are repetitive.
+     * 
+ * + * PRICE_TABLE_ROW_HEADER_DESCRIPTION_REPETITIVE = 11; + */ + public static final int PRICE_TABLE_ROW_HEADER_DESCRIPTION_REPETITIVE_VALUE = 11; + /** + *
+     * Price item is in a foreign language, nonsense, or can't be rated.
+     * 
+ * + * PRICE_TABLE_ROW_UNRATEABLE = 12; + */ + public static final int PRICE_TABLE_ROW_UNRATEABLE_VALUE = 12; + /** + *
+     * Price item price is invalid or inaccurate.
+     * 
+ * + * PRICE_TABLE_ROW_PRICE_INVALID = 13; + */ + public static final int PRICE_TABLE_ROW_PRICE_INVALID_VALUE = 13; + /** + *
+     * Price item URL is invalid or irrelevant.
+     * 
+ * + * PRICE_TABLE_ROW_URL_INVALID = 14; + */ + public static final int PRICE_TABLE_ROW_URL_INVALID_VALUE = 14; + /** + *
+     * Price item header or description has price.
+     * 
+ * + * PRICE_HEADER_OR_DESCRIPTION_HAS_PRICE = 15; + */ + public static final int PRICE_HEADER_OR_DESCRIPTION_HAS_PRICE_VALUE = 15; + /** + *
+     * Structured snippet values do not match the header.
+     * 
+ * + * STRUCTURED_SNIPPETS_HEADER_POLICY_VIOLATED = 16; + */ + public static final int STRUCTURED_SNIPPETS_HEADER_POLICY_VIOLATED_VALUE = 16; + /** + *
+     * Structured snippet values are repeated.
+     * 
+ * + * STRUCTURED_SNIPPETS_REPEATED_VALUES = 17; + */ + public static final int STRUCTURED_SNIPPETS_REPEATED_VALUES_VALUE = 17; + /** + *
+     * Structured snippet values violate editorial guidelines like punctuation.
+     * 
+ * + * STRUCTURED_SNIPPETS_EDITORIAL_GUIDELINES = 18; + */ + public static final int STRUCTURED_SNIPPETS_EDITORIAL_GUIDELINES_VALUE = 18; + /** + *
+     * Structured snippet contain promotional text.
+     * 
+ * + * STRUCTURED_SNIPPETS_HAS_PROMOTIONAL_TEXT = 19; + */ + public static final int STRUCTURED_SNIPPETS_HAS_PROMOTIONAL_TEXT_VALUE = 19; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FeedItemQualityDisapprovalReason valueOf(int value) { + return forNumber(value); + } + + public static FeedItemQualityDisapprovalReason forNumber(int value) { + switch (value) { + case 0: return UNSPECIFIED; + case 1: return UNKNOWN; + case 2: return PRICE_TABLE_REPETITIVE_HEADERS; + case 3: return PRICE_TABLE_REPETITIVE_DESCRIPTION; + case 4: return PRICE_TABLE_INCONSISTENT_ROWS; + case 5: return PRICE_DESCRIPTION_HAS_PRICE_QUALIFIERS; + case 6: return PRICE_UNSUPPORTED_LANGUAGE; + case 7: return PRICE_TABLE_ROW_HEADER_TABLE_TYPE_MISMATCH; + case 8: return PRICE_TABLE_ROW_HEADER_HAS_PROMOTIONAL_TEXT; + case 9: return PRICE_TABLE_ROW_DESCRIPTION_NOT_RELEVANT; + case 10: return PRICE_TABLE_ROW_DESCRIPTION_HAS_PROMOTIONAL_TEXT; + case 11: return PRICE_TABLE_ROW_HEADER_DESCRIPTION_REPETITIVE; + case 12: return PRICE_TABLE_ROW_UNRATEABLE; + case 13: return PRICE_TABLE_ROW_PRICE_INVALID; + case 14: return PRICE_TABLE_ROW_URL_INVALID; + case 15: return PRICE_HEADER_OR_DESCRIPTION_HAS_PRICE; + case 16: return STRUCTURED_SNIPPETS_HEADER_POLICY_VIOLATED; + case 17: return STRUCTURED_SNIPPETS_REPEATED_VALUES; + case 18: return STRUCTURED_SNIPPETS_EDITORIAL_GUIDELINES; + case 19: return STRUCTURED_SNIPPETS_HAS_PROMOTIONAL_TEXT; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + FeedItemQualityDisapprovalReason> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FeedItemQualityDisapprovalReason findValueByNumber(int number) { + return FeedItemQualityDisapprovalReason.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.getDescriptor().getEnumTypes().get(0); + } + + private static final FeedItemQualityDisapprovalReason[] VALUES = values(); + + public static FeedItemQualityDisapprovalReason 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 FeedItemQualityDisapprovalReason(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason) + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.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.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum other = (com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum 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.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum 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.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum 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.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum 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.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum 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; + } + /** + *
+   * Container for enum describing possible quality evaluation disapproval reasons
+   * of a feed item.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum) + com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonProto.internal_static_google_ads_googleads_v0_enums_FeedItemQualityDisapprovalReasonEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonProto.internal_static_google_ads_googleads_v0_enums_FeedItemQualityDisapprovalReasonEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.class, com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonProto.internal_static_google_ads_googleads_v0_enums_FeedItemQualityDisapprovalReasonEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum getDefaultInstanceForType() { + return com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum build() { + com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum buildPartial() { + com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum result = new com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum) { + return mergeFrom((com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum other) { + if (other == com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum) + private static final com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum(); + } + + public static com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeedItemQualityDisapprovalReasonEnum parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeedItemQualityDisapprovalReasonEnum(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedItemQualityDisapprovalReasonEnumOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedItemQualityDisapprovalReasonEnumOrBuilder.java new file mode 100644 index 0000000000..997293964d --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedItemQualityDisapprovalReasonEnumOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/feed_item_quality_disapproval_reason.proto + +package com.google.ads.googleads.v0.enums; + +public interface FeedItemQualityDisapprovalReasonEnumOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum) + com.google.protobuf.MessageOrBuilder { +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedItemQualityDisapprovalReasonProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedItemQualityDisapprovalReasonProto.java new file mode 100644 index 0000000000..51f8d7eba7 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedItemQualityDisapprovalReasonProto.java @@ -0,0 +1,84 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/feed_item_quality_disapproval_reason.proto + +package com.google.ads.googleads.v0.enums; + +public final class FeedItemQualityDisapprovalReasonProto { + private FeedItemQualityDisapprovalReasonProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_enums_FeedItemQualityDisapprovalReasonEnum_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_enums_FeedItemQualityDisapprovalReasonEnum_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nHgoogle/ads/googleads/v0/enums/feed_ite" + + "m_quality_disapproval_reason.proto\022\035goog" + + "le.ads.googleads.v0.enums\"\340\006\n$FeedItemQu" + + "alityDisapprovalReasonEnum\"\267\006\n FeedItemQ" + + "ualityDisapprovalReason\022\017\n\013UNSPECIFIED\020\000" + + "\022\013\n\007UNKNOWN\020\001\022\"\n\036PRICE_TABLE_REPETITIVE_" + + "HEADERS\020\002\022&\n\"PRICE_TABLE_REPETITIVE_DESC" + + "RIPTION\020\003\022!\n\035PRICE_TABLE_INCONSISTENT_RO" + + "WS\020\004\022*\n&PRICE_DESCRIPTION_HAS_PRICE_QUAL" + + "IFIERS\020\005\022\036\n\032PRICE_UNSUPPORTED_LANGUAGE\020\006" + + "\022.\n*PRICE_TABLE_ROW_HEADER_TABLE_TYPE_MI" + + "SMATCH\020\007\022/\n+PRICE_TABLE_ROW_HEADER_HAS_P" + + "ROMOTIONAL_TEXT\020\010\022,\n(PRICE_TABLE_ROW_DES" + + "CRIPTION_NOT_RELEVANT\020\t\0224\n0PRICE_TABLE_R" + + "OW_DESCRIPTION_HAS_PROMOTIONAL_TEXT\020\n\0221\n" + + "-PRICE_TABLE_ROW_HEADER_DESCRIPTION_REPE" + + "TITIVE\020\013\022\036\n\032PRICE_TABLE_ROW_UNRATEABLE\020\014" + + "\022!\n\035PRICE_TABLE_ROW_PRICE_INVALID\020\r\022\037\n\033P" + + "RICE_TABLE_ROW_URL_INVALID\020\016\022)\n%PRICE_HE" + + "ADER_OR_DESCRIPTION_HAS_PRICE\020\017\022.\n*STRUC" + + "TURED_SNIPPETS_HEADER_POLICY_VIOLATED\020\020\022" + + "\'\n#STRUCTURED_SNIPPETS_REPEATED_VALUES\020\021" + + "\022,\n(STRUCTURED_SNIPPETS_EDITORIAL_GUIDEL" + + "INES\020\022\022,\n(STRUCTURED_SNIPPETS_HAS_PROMOT" + + "IONAL_TEXT\020\023B\372\001\n!com.google.ads.googlead" + + "s.v0.enumsB%FeedItemQualityDisapprovalRe" + + "asonProtoP\001ZBgoogle.golang.org/genproto/" + + "googleapis/ads/googleads/v0/enums;enums\242" + + "\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035" + + "Google\\Ads\\GoogleAds\\V0\\Enums\352\002!Google::" + + "Ads::GoogleAds::V0::Enumsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_google_ads_googleads_v0_enums_FeedItemQualityDisapprovalReasonEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_googleads_v0_enums_FeedItemQualityDisapprovalReasonEnum_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_enums_FeedItemQualityDisapprovalReasonEnum_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedItemStatusProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedItemStatusProto.java index ad6090ae0f..632223ffea 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedItemStatusProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedItemStatusProto.java @@ -32,12 +32,13 @@ public static void registerAllExtensions( "m_status.proto\022\035google.ads.googleads.v0." + "enums\"^\n\022FeedItemStatusEnum\"H\n\016FeedItemS" + "tatus\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\013\n\007E" + - "NABLED\020\002\022\013\n\007REMOVED\020\003B\304\001\n!com.google.ads" + + "NABLED\020\002\022\013\n\007REMOVED\020\003B\350\001\n!com.google.ads" + ".googleads.v0.enumsB\023FeedItemStatusProto" + "P\001ZBgoogle.golang.org/genproto/googleapi" + "s/ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035G" + "oogle.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ad" + - "s\\GoogleAds\\V0\\Enumsb\006proto3" + "s\\GoogleAds\\V0\\Enums\352\002!Google::Ads::Goog" + + "leAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedItemValidationStatusEnum.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedItemValidationStatusEnum.java new file mode 100644 index 0000000000..e6761b0368 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedItemValidationStatusEnum.java @@ -0,0 +1,590 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/feed_item_validation_status.proto + +package com.google.ads.googleads.v0.enums; + +/** + *
+ * Container for enum describing possible validation statuses of a feed item.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.FeedItemValidationStatusEnum} + */ +public final class FeedItemValidationStatusEnum extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.enums.FeedItemValidationStatusEnum) + FeedItemValidationStatusEnumOrBuilder { +private static final long serialVersionUID = 0L; + // Use FeedItemValidationStatusEnum.newBuilder() to construct. + private FeedItemValidationStatusEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FeedItemValidationStatusEnum() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FeedItemValidationStatusEnum( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.FeedItemValidationStatusProto.internal_static_google_ads_googleads_v0_enums_FeedItemValidationStatusEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.FeedItemValidationStatusProto.internal_static_google_ads_googleads_v0_enums_FeedItemValidationStatusEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum.class, com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum.Builder.class); + } + + /** + *
+   * The possible validation statuses of a feed item.
+   * 
+ * + * Protobuf enum {@code google.ads.googleads.v0.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus} + */ + public enum FeedItemValidationStatus + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * No value has been specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + UNKNOWN(1), + /** + *
+     * Validation pending.
+     * 
+ * + * PENDING = 2; + */ + PENDING(2), + /** + *
+     * An error was found.
+     * 
+ * + * INVALID = 3; + */ + INVALID(3), + /** + *
+     * Feed item is semantically well-formed.
+     * 
+ * + * VALID = 4; + */ + VALID(4), + UNRECOGNIZED(-1), + ; + + /** + *
+     * No value has been specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + public static final int UNKNOWN_VALUE = 1; + /** + *
+     * Validation pending.
+     * 
+ * + * PENDING = 2; + */ + public static final int PENDING_VALUE = 2; + /** + *
+     * An error was found.
+     * 
+ * + * INVALID = 3; + */ + public static final int INVALID_VALUE = 3; + /** + *
+     * Feed item is semantically well-formed.
+     * 
+ * + * VALID = 4; + */ + public static final int VALID_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FeedItemValidationStatus valueOf(int value) { + return forNumber(value); + } + + public static FeedItemValidationStatus forNumber(int value) { + switch (value) { + case 0: return UNSPECIFIED; + case 1: return UNKNOWN; + case 2: return PENDING; + case 3: return INVALID; + case 4: return VALID; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + FeedItemValidationStatus> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FeedItemValidationStatus findValueByNumber(int number) { + return FeedItemValidationStatus.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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.ads.googleads.v0.enums.FeedItemValidationStatusEnum.getDescriptor().getEnumTypes().get(0); + } + + private static final FeedItemValidationStatus[] VALUES = values(); + + public static FeedItemValidationStatus 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 FeedItemValidationStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.googleads.v0.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus) + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.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.ads.googleads.v0.enums.FeedItemValidationStatusEnum)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum other = (com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum 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.ads.googleads.v0.enums.FeedItemValidationStatusEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum 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.ads.googleads.v0.enums.FeedItemValidationStatusEnum parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum 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.ads.googleads.v0.enums.FeedItemValidationStatusEnum parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum 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.ads.googleads.v0.enums.FeedItemValidationStatusEnum 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; + } + /** + *
+   * Container for enum describing possible validation statuses of a feed item.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.FeedItemValidationStatusEnum} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.enums.FeedItemValidationStatusEnum) + com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.FeedItemValidationStatusProto.internal_static_google_ads_googleads_v0_enums_FeedItemValidationStatusEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.FeedItemValidationStatusProto.internal_static_google_ads_googleads_v0_enums_FeedItemValidationStatusEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum.class, com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.enums.FeedItemValidationStatusProto.internal_static_google_ads_googleads_v0_enums_FeedItemValidationStatusEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum getDefaultInstanceForType() { + return com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum build() { + com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum buildPartial() { + com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum result = new com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum) { + return mergeFrom((com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum other) { + if (other == com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.enums.FeedItemValidationStatusEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.FeedItemValidationStatusEnum) + private static final com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum(); + } + + public static com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeedItemValidationStatusEnum parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeedItemValidationStatusEnum(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.enums.FeedItemValidationStatusEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedItemValidationStatusEnumOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedItemValidationStatusEnumOrBuilder.java new file mode 100644 index 0000000000..7c2b74d884 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedItemValidationStatusEnumOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/feed_item_validation_status.proto + +package com.google.ads.googleads.v0.enums; + +public interface FeedItemValidationStatusEnumOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.enums.FeedItemValidationStatusEnum) + com.google.protobuf.MessageOrBuilder { +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedItemValidationStatusProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedItemValidationStatusProto.java new file mode 100644 index 0000000000..fa6b1d1265 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedItemValidationStatusProto.java @@ -0,0 +1,65 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/feed_item_validation_status.proto + +package com.google.ads.googleads.v0.enums; + +public final class FeedItemValidationStatusProto { + private FeedItemValidationStatusProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_enums_FeedItemValidationStatusEnum_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_enums_FeedItemValidationStatusEnum_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n?google/ads/googleads/v0/enums/feed_ite" + + "m_validation_status.proto\022\035google.ads.go" + + "ogleads.v0.enums\"}\n\034FeedItemValidationSt" + + "atusEnum\"]\n\030FeedItemValidationStatus\022\017\n\013" + + "UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\013\n\007PENDING\020\002\022" + + "\013\n\007INVALID\020\003\022\t\n\005VALID\020\004B\362\001\n!com.google.a" + + "ds.googleads.v0.enumsB\035FeedItemValidatio" + + "nStatusProtoP\001ZBgoogle.golang.org/genpro" + + "to/googleapis/ads/googleads/v0/enums;enu" + + "ms\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums" + + "\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums\352\002!Googl" + + "e::Ads::GoogleAds::V0::Enumsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_google_ads_googleads_v0_enums_FeedItemValidationStatusEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_googleads_v0_enums_FeedItemValidationStatusEnum_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_enums_FeedItemValidationStatusEnum_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedLinkStatusProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedLinkStatusProto.java index ecb82122cd..6773d0aa23 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedLinkStatusProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedLinkStatusProto.java @@ -32,12 +32,13 @@ public static void registerAllExtensions( "k_status.proto\022\035google.ads.googleads.v0." + "enums\"^\n\022FeedLinkStatusEnum\"H\n\016FeedLinkS" + "tatus\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\013\n\007E" + - "NABLED\020\002\022\013\n\007REMOVED\020\003B\304\001\n!com.google.ads" + + "NABLED\020\002\022\013\n\007REMOVED\020\003B\350\001\n!com.google.ads" + ".googleads.v0.enumsB\023FeedLinkStatusProto" + "P\001ZBgoogle.golang.org/genproto/googleapi" + "s/ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035G" + "oogle.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ad" + - "s\\GoogleAds\\V0\\Enumsb\006proto3" + "s\\GoogleAds\\V0\\Enums\352\002!Google::Ads::Goog" + + "leAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedMappingCriterionTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedMappingCriterionTypeProto.java index 1754187e5f..6a027c16c6 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedMappingCriterionTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedMappingCriterionTypeProto.java @@ -33,13 +33,14 @@ public static void registerAllExtensions( "ogleads.v0.enums\"\212\001\n\034FeedMappingCriterio" + "nTypeEnum\"j\n\030FeedMappingCriterionType\022\017\n" + "\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\035\n\031CAMPAIGN_" + - "LOCATION_TARGETS\020\002\022\021\n\rDSA_PAGE_FEED\020\003B\316\001" + + "LOCATION_TARGETS\020\002\022\021\n\rDSA_PAGE_FEED\020\003B\362\001" + "\n!com.google.ads.googleads.v0.enumsB\035Fee" + "dMappingCriterionTypeProtoP\001ZBgoogle.gol" + "ang.org/genproto/googleapis/ads/googlead" + "s/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.Goog" + "leAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0" + - "\\Enumsb\006proto3" + "\\Enums\352\002!Google::Ads::GoogleAds::V0::Enu" + + "msb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedMappingStatusProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedMappingStatusProto.java index cf93a5cae6..7974efc85b 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedMappingStatusProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedMappingStatusProto.java @@ -32,12 +32,13 @@ public static void registerAllExtensions( "ping_status.proto\022\035google.ads.googleads." + "v0.enums\"d\n\025FeedMappingStatusEnum\"K\n\021Fee" + "dMappingStatus\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNO" + - "WN\020\001\022\013\n\007ENABLED\020\002\022\013\n\007REMOVED\020\003B\307\001\n!com.g" + + "WN\020\001\022\013\n\007ENABLED\020\002\022\013\n\007REMOVED\020\003B\353\001\n!com.g" + "oogle.ads.googleads.v0.enumsB\026FeedMappin" + "gStatusProtoP\001ZBgoogle.golang.org/genpro" + "to/googleapis/ads/googleads/v0/enums;enu" + "ms\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums" + - "\312\002\035Google\\Ads\\GoogleAds\\V0\\Enumsb\006proto3" + "\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums\352\002!Googl" + + "e::Ads::GoogleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedOriginProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedOriginProto.java index e2e3071fc2..9a7cff09b4 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedOriginProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedOriginProto.java @@ -32,12 +32,13 @@ public static void registerAllExtensions( "gin.proto\022\035google.ads.googleads.v0.enums" + "\"R\n\016FeedOriginEnum\"@\n\nFeedOrigin\022\017\n\013UNSP" + "ECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\010\n\004USER\020\002\022\n\n\006GOOG" + - "LE\020\003B\300\001\n!com.google.ads.googleads.v0.enu" + + "LE\020\003B\344\001\n!com.google.ads.googleads.v0.enu" + "msB\017FeedOriginProtoP\001ZBgoogle.golang.org" + "/genproto/googleapis/ads/googleads/v0/en" + "ums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V" + - "0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enumsb" + - "\006proto3" + "0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums\352" + + "\002!Google::Ads::GoogleAds::V0::Enumsb\006pro" + + "to3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedStatusProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedStatusProto.java index 70f80d3d87..d00e153820 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedStatusProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FeedStatusProto.java @@ -32,12 +32,13 @@ public static void registerAllExtensions( "tus.proto\022\035google.ads.googleads.v0.enums" + "\"V\n\016FeedStatusEnum\"D\n\nFeedStatus\022\017\n\013UNSP" + "ECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\013\n\007ENABLED\020\002\022\013\n\007R" + - "EMOVED\020\003B\300\001\n!com.google.ads.googleads.v0" + + "EMOVED\020\003B\344\001\n!com.google.ads.googleads.v0" + ".enumsB\017FeedStatusProtoP\001ZBgoogle.golang" + ".org/genproto/googleapis/ads/googleads/v" + "0/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleA" + "ds.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\En" + - "umsb\006proto3" + "ums\352\002!Google::Ads::GoogleAds::V0::Enumsb" + + "\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FlightsPlaceholderFieldProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FlightsPlaceholderFieldProto.java index 8b57ae6e43..61f706616f 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FlightsPlaceholderFieldProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FlightsPlaceholderFieldProto.java @@ -41,12 +41,13 @@ public static void registerAllExtensions( "\n\021FINAL_MOBILE_URLS\020\r\022\020\n\014TRACKING_URL\020\016\022" + "\024\n\020ANDROID_APP_LINK\020\017\022\033\n\027SIMILAR_DESTINA" + "TION_IDS\020\020\022\020\n\014IOS_APP_LINK\020\021\022\024\n\020IOS_APP_" + - "STORE_ID\020\022B\315\001\n!com.google.ads.googleads." + + "STORE_ID\020\022B\361\001\n!com.google.ads.googleads." + "v0.enumsB\034FlightsPlaceholderFieldProtoP\001" + "ZBgoogle.golang.org/genproto/googleapis/" + "ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035Goo" + "gle.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\" + - "GoogleAds\\V0\\Enumsb\006proto3" + "GoogleAds\\V0\\Enums\352\002!Google::Ads::Google" + + "Ads::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FrequencyCapEventTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FrequencyCapEventTypeProto.java index 36868af9ab..7250948ffc 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FrequencyCapEventTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FrequencyCapEventTypeProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "eads.v0.enums\"r\n\031FrequencyCapEventTypeEn" + "um\"U\n\025FrequencyCapEventType\022\017\n\013UNSPECIFI" + "ED\020\000\022\013\n\007UNKNOWN\020\001\022\016\n\nIMPRESSION\020\002\022\016\n\nVID" + - "EO_VIEW\020\003B\313\001\n!com.google.ads.googleads.v" + + "EO_VIEW\020\003B\357\001\n!com.google.ads.googleads.v" + "0.enumsB\032FrequencyCapEventTypeProtoP\001ZBg" + "oogle.golang.org/genproto/googleapis/ads" + "/googleads/v0/enums;enums\242\002\003GAA\252\002\035Google" + ".Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\Goo" + - "gleAds\\V0\\Enumsb\006proto3" + "gleAds\\V0\\Enums\352\002!Google::Ads::GoogleAds" + + "::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FrequencyCapLevelProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FrequencyCapLevelProto.java index d2221b0692..dfbf1d3669 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FrequencyCapLevelProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FrequencyCapLevelProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "v0.enums\"w\n\025FrequencyCapLevelEnum\"^\n\021Fre" + "quencyCapLevel\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNO" + "WN\020\001\022\017\n\013AD_GROUP_AD\020\002\022\014\n\010AD_GROUP\020\003\022\014\n\010C" + - "AMPAIGN\020\004B\307\001\n!com.google.ads.googleads.v" + + "AMPAIGN\020\004B\353\001\n!com.google.ads.googleads.v" + "0.enumsB\026FrequencyCapLevelProtoP\001ZBgoogl" + "e.golang.org/genproto/googleapis/ads/goo" + "gleads/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads" + ".GoogleAds.V0.Enums\312\002\035Google\\Ads\\GoogleA" + - "ds\\V0\\Enumsb\006proto3" + "ds\\V0\\Enums\352\002!Google::Ads::GoogleAds::V0" + + "::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FrequencyCapTimeUnitProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FrequencyCapTimeUnitProto.java index 841102b568..0056ea4ebf 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FrequencyCapTimeUnitProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/FrequencyCapTimeUnitProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "ads.v0.enums\"n\n\030FrequencyCapTimeUnitEnum" + "\"R\n\024FrequencyCapTimeUnit\022\017\n\013UNSPECIFIED\020" + "\000\022\013\n\007UNKNOWN\020\001\022\007\n\003DAY\020\002\022\010\n\004WEEK\020\003\022\t\n\005MON" + - "TH\020\004B\312\001\n!com.google.ads.googleads.v0.enu" + + "TH\020\004B\356\001\n!com.google.ads.googleads.v0.enu" + "msB\031FrequencyCapTimeUnitProtoP\001ZBgoogle." + "golang.org/genproto/googleapis/ads/googl" + "eads/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.G" + "oogleAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds" + - "\\V0\\Enumsb\006proto3" + "\\V0\\Enums\352\002!Google::Ads::GoogleAds::V0::" + + "Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/GenderTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/GenderTypeProto.java index 3f176aaf63..79a3767070 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/GenderTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/GenderTypeProto.java @@ -32,12 +32,13 @@ public static void registerAllExtensions( "ype.proto\022\035google.ads.googleads.v0.enums" + "\"d\n\016GenderTypeEnum\"R\n\nGenderType\022\017\n\013UNSP" + "ECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\010\n\004MALE\020\n\022\n\n\006FEMA" + - "LE\020\013\022\020\n\014UNDETERMINED\020\024B\300\001\n!com.google.ad" + + "LE\020\013\022\020\n\014UNDETERMINED\020\024B\344\001\n!com.google.ad" + "s.googleads.v0.enumsB\017GenderTypeProtoP\001Z" + "Bgoogle.golang.org/genproto/googleapis/a" + "ds/googleads/v0/enums;enums\242\002\003GAA\252\002\035Goog" + "le.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\G" + - "oogleAds\\V0\\Enumsb\006proto3" + "oogleAds\\V0\\Enums\352\002!Google::Ads::GoogleA" + + "ds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/GeoTargetConstantStatusProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/GeoTargetConstantStatusProto.java index 77700b42b3..c07fa747eb 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/GeoTargetConstantStatusProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/GeoTargetConstantStatusProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "gleads.v0.enums\"x\n\033GeoTargetConstantStat" + "usEnum\"Y\n\027GeoTargetConstantStatus\022\017\n\013UNS" + "PECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\013\n\007ENABLED\020\002\022\023\n\017" + - "REMOVAL_PLANNED\020\003B\315\001\n!com.google.ads.goo" + + "REMOVAL_PLANNED\020\003B\361\001\n!com.google.ads.goo" + "gleads.v0.enumsB\034GeoTargetConstantStatus" + "ProtoP\001ZBgoogle.golang.org/genproto/goog" + "leapis/ads/googleads/v0/enums;enums\242\002\003GA" + "A\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035Goog" + - "le\\Ads\\GoogleAds\\V0\\Enumsb\006proto3" + "le\\Ads\\GoogleAds\\V0\\Enums\352\002!Google::Ads:" + + ":GoogleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/GeoTargetingRestrictionProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/GeoTargetingRestrictionProto.java index 738c5f71b1..92ea34e30f 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/GeoTargetingRestrictionProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/GeoTargetingRestrictionProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "leads.v0.enums\"p\n\033GeoTargetingRestrictio" + "nEnum\"Q\n\027GeoTargetingRestriction\022\017\n\013UNSP" + "ECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\030\n\024LOCATION_OF_PR" + - "ESENCE\020\002B\315\001\n!com.google.ads.googleads.v0" + + "ESENCE\020\002B\361\001\n!com.google.ads.googleads.v0" + ".enumsB\034GeoTargetingRestrictionProtoP\001ZB" + "google.golang.org/genproto/googleapis/ad" + "s/googleads/v0/enums;enums\242\002\003GAA\252\002\035Googl" + "e.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\Go" + - "ogleAds\\V0\\Enumsb\006proto3" + "ogleAds\\V0\\Enums\352\002!Google::Ads::GoogleAd" + + "s::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/GoogleAdsFieldCategoryProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/GoogleAdsFieldCategoryProto.java index 0bd858ad3e..0ea8b51988 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/GoogleAdsFieldCategoryProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/GoogleAdsFieldCategoryProto.java @@ -33,13 +33,14 @@ public static void registerAllExtensions( "leads.v0.enums\"\212\001\n\032GoogleAdsFieldCategor" + "yEnum\"l\n\026GoogleAdsFieldCategory\022\017\n\013UNSPE" + "CIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\014\n\010RESOURCE\020\002\022\r\n\tA" + - "TTRIBUTE\020\003\022\013\n\007SEGMENT\020\005\022\n\n\006METRIC\020\006B\314\001\n!" + + "TTRIBUTE\020\003\022\013\n\007SEGMENT\020\005\022\n\n\006METRIC\020\006B\360\001\n!" + "com.google.ads.googleads.v0.enumsB\033Googl" + "eAdsFieldCategoryProtoP\001ZBgoogle.golang." + "org/genproto/googleapis/ads/googleads/v0" + "/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAd" + "s.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enu" + - "msb\006proto3" + "ms\352\002!Google::Ads::GoogleAds::V0::Enumsb\006" + + "proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/GoogleAdsFieldDataTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/GoogleAdsFieldDataTypeProto.java index a5e6259889..503f001cb0 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/GoogleAdsFieldDataTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/GoogleAdsFieldDataTypeProto.java @@ -35,12 +35,13 @@ public static void registerAllExtensions( "PECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\013\n\007BOOLEAN\020\002\022\010\n\004" + "DATE\020\003\022\n\n\006DOUBLE\020\004\022\010\n\004ENUM\020\005\022\t\n\005FLOAT\020\006\022" + "\t\n\005INT32\020\007\022\t\n\005INT64\020\010\022\013\n\007MESSAGE\020\t\022\021\n\rRE" + - "SOURCE_NAME\020\n\022\n\n\006STRING\020\013B\314\001\n!com.google" + + "SOURCE_NAME\020\n\022\n\n\006STRING\020\013B\360\001\n!com.google" + ".ads.googleads.v0.enumsB\033GoogleAdsFieldD" + "ataTypeProtoP\001ZBgoogle.golang.org/genpro" + "to/googleapis/ads/googleads/v0/enums;enu" + "ms\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums" + - "\312\002\035Google\\Ads\\GoogleAds\\V0\\Enumsb\006proto3" + "\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums\352\002!Googl" + + "e::Ads::GoogleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/HotelDateSelectionTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/HotelDateSelectionTypeProto.java index 1ef5e0cc63..61cb63b817 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/HotelDateSelectionTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/HotelDateSelectionTypeProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "leads.v0.enums\"~\n\032HotelDateSelectionType" + "Enum\"`\n\026HotelDateSelectionType\022\017\n\013UNSPEC" + "IFIED\020\000\022\013\n\007UNKNOWN\020\001\022\025\n\021DEFAULT_SELECTIO" + - "N\0202\022\021\n\rUSER_SELECTED\0203B\314\001\n!com.google.ad" + + "N\0202\022\021\n\rUSER_SELECTED\0203B\360\001\n!com.google.ad" + "s.googleads.v0.enumsB\033HotelDateSelection" + "TypeProtoP\001ZBgoogle.golang.org/genproto/" + "googleapis/ads/googleads/v0/enums;enums\242" + "\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035" + - "Google\\Ads\\GoogleAds\\V0\\Enumsb\006proto3" + "Google\\Ads\\GoogleAds\\V0\\Enums\352\002!Google::" + + "Ads::GoogleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/HotelsPlaceholderFieldProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/HotelsPlaceholderFieldProto.java index 0d8c53b69d..075f122706 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/HotelsPlaceholderFieldProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/HotelsPlaceholderFieldProto.java @@ -41,13 +41,14 @@ public static void registerAllExtensions( "_KEYWORDS\020\016\022\016\n\nFINAL_URLS\020\017\022\025\n\021FINAL_MOB" + "ILE_URLS\020\020\022\020\n\014TRACKING_URL\020\021\022\024\n\020ANDROID_" + "APP_LINK\020\022\022\030\n\024SIMILAR_PROPERTY_IDS\020\023\022\020\n\014" + - "IOS_APP_LINK\020\024\022\024\n\020IOS_APP_STORE_ID\020\025B\314\001\n" + + "IOS_APP_LINK\020\024\022\024\n\020IOS_APP_STORE_ID\020\025B\360\001\n" + "!com.google.ads.googleads.v0.enumsB\033Hote" + "lsPlaceholderFieldProtoP\001ZBgoogle.golang" + ".org/genproto/googleapis/ads/googleads/v" + "0/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleA" + "ds.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\En" + - "umsb\006proto3" + "ums\352\002!Google::Ads::GoogleAds::V0::Enumsb" + + "\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/IncomeRangeTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/IncomeRangeTypeProto.java index d4cc3365ac..5e58a2c231 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/IncomeRangeTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/IncomeRangeTypeProto.java @@ -36,12 +36,13 @@ public static void registerAllExtensions( "E_50_60\020\262\220\037\022\030\n\022INCOME_RANGE_60_70\020\263\220\037\022\030\n" + "\022INCOME_RANGE_70_80\020\264\220\037\022\030\n\022INCOME_RANGE_" + "80_90\020\265\220\037\022\030\n\022INCOME_RANGE_90_UP\020\266\220\037\022\037\n\031I" + - "NCOME_RANGE_UNDETERMINED\020\260\220\037B\305\001\n!com.goo" + + "NCOME_RANGE_UNDETERMINED\020\260\220\037B\351\001\n!com.goo" + "gle.ads.googleads.v0.enumsB\024IncomeRangeT" + "ypeProtoP\001ZBgoogle.golang.org/genproto/g" + "oogleapis/ads/googleads/v0/enums;enums\242\002" + "\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035G" + - "oogle\\Ads\\GoogleAds\\V0\\Enumsb\006proto3" + "oogle\\Ads\\GoogleAds\\V0\\Enums\352\002!Google::A" + + "ds::GoogleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/InteractionEventTypeEnum.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/InteractionEventTypeEnum.java new file mode 100644 index 0000000000..9873ef5c9e --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/InteractionEventTypeEnum.java @@ -0,0 +1,619 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/interaction_event_type.proto + +package com.google.ads.googleads.v0.enums; + +/** + *
+ * Container for enum describing types of payable and free interactions.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.InteractionEventTypeEnum} + */ +public final class InteractionEventTypeEnum extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.enums.InteractionEventTypeEnum) + InteractionEventTypeEnumOrBuilder { +private static final long serialVersionUID = 0L; + // Use InteractionEventTypeEnum.newBuilder() to construct. + private InteractionEventTypeEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private InteractionEventTypeEnum() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private InteractionEventTypeEnum( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.InteractionEventTypeProto.internal_static_google_ads_googleads_v0_enums_InteractionEventTypeEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.InteractionEventTypeProto.internal_static_google_ads_googleads_v0_enums_InteractionEventTypeEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.InteractionEventTypeEnum.class, com.google.ads.googleads.v0.enums.InteractionEventTypeEnum.Builder.class); + } + + /** + *
+   * Enum describing possible types of payable and free interactions.
+   * 
+ * + * Protobuf enum {@code google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType} + */ + public enum InteractionEventType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + UNKNOWN(1), + /** + *
+     * Click to site. In most cases, this interaction navigates to an external
+     * location, usually the advertiser's landing page. This is also the default
+     * InteractionEventType for click events.
+     * 
+ * + * CLICK = 2; + */ + CLICK(2), + /** + *
+     * The user's expressed intent to engage with the ad in-place.
+     * 
+ * + * ENGAGEMENT = 3; + */ + ENGAGEMENT(3), + /** + *
+     * User viewed a video ad.
+     * 
+ * + * VIDEO_VIEW = 4; + */ + VIDEO_VIEW(4), + /** + *
+     * The default InteractionEventType for ad conversion events.
+     * This is used when an ad conversion row does NOT indicate
+     * that the free interactions (i.e., the ad conversions)
+     * should be 'promoted' and reported as part of the core metrics.
+     * These are simply other (ad) conversions.
+     * 
+ * + * NONE = 5; + */ + NONE(5), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + public static final int UNKNOWN_VALUE = 1; + /** + *
+     * Click to site. In most cases, this interaction navigates to an external
+     * location, usually the advertiser's landing page. This is also the default
+     * InteractionEventType for click events.
+     * 
+ * + * CLICK = 2; + */ + public static final int CLICK_VALUE = 2; + /** + *
+     * The user's expressed intent to engage with the ad in-place.
+     * 
+ * + * ENGAGEMENT = 3; + */ + public static final int ENGAGEMENT_VALUE = 3; + /** + *
+     * User viewed a video ad.
+     * 
+ * + * VIDEO_VIEW = 4; + */ + public static final int VIDEO_VIEW_VALUE = 4; + /** + *
+     * The default InteractionEventType for ad conversion events.
+     * This is used when an ad conversion row does NOT indicate
+     * that the free interactions (i.e., the ad conversions)
+     * should be 'promoted' and reported as part of the core metrics.
+     * These are simply other (ad) conversions.
+     * 
+ * + * NONE = 5; + */ + public static final int NONE_VALUE = 5; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static InteractionEventType valueOf(int value) { + return forNumber(value); + } + + public static InteractionEventType forNumber(int value) { + switch (value) { + case 0: return UNSPECIFIED; + case 1: return UNKNOWN; + case 2: return CLICK; + case 3: return ENGAGEMENT; + case 4: return VIDEO_VIEW; + case 5: return NONE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + InteractionEventType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public InteractionEventType findValueByNumber(int number) { + return InteractionEventType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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.ads.googleads.v0.enums.InteractionEventTypeEnum.getDescriptor().getEnumTypes().get(0); + } + + private static final InteractionEventType[] VALUES = values(); + + public static InteractionEventType 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 InteractionEventType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.googleads.v0.enums.InteractionEventTypeEnum.InteractionEventType) + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.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.ads.googleads.v0.enums.InteractionEventTypeEnum)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.enums.InteractionEventTypeEnum other = (com.google.ads.googleads.v0.enums.InteractionEventTypeEnum) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.enums.InteractionEventTypeEnum parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.InteractionEventTypeEnum parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.InteractionEventTypeEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.InteractionEventTypeEnum 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.ads.googleads.v0.enums.InteractionEventTypeEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.InteractionEventTypeEnum parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.InteractionEventTypeEnum parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.InteractionEventTypeEnum 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.ads.googleads.v0.enums.InteractionEventTypeEnum parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.InteractionEventTypeEnum 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.ads.googleads.v0.enums.InteractionEventTypeEnum parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.InteractionEventTypeEnum 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.ads.googleads.v0.enums.InteractionEventTypeEnum 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; + } + /** + *
+   * Container for enum describing types of payable and free interactions.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.InteractionEventTypeEnum} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.enums.InteractionEventTypeEnum) + com.google.ads.googleads.v0.enums.InteractionEventTypeEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.InteractionEventTypeProto.internal_static_google_ads_googleads_v0_enums_InteractionEventTypeEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.InteractionEventTypeProto.internal_static_google_ads_googleads_v0_enums_InteractionEventTypeEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.InteractionEventTypeEnum.class, com.google.ads.googleads.v0.enums.InteractionEventTypeEnum.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.enums.InteractionEventTypeEnum.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.enums.InteractionEventTypeProto.internal_static_google_ads_googleads_v0_enums_InteractionEventTypeEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.InteractionEventTypeEnum getDefaultInstanceForType() { + return com.google.ads.googleads.v0.enums.InteractionEventTypeEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.InteractionEventTypeEnum build() { + com.google.ads.googleads.v0.enums.InteractionEventTypeEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.InteractionEventTypeEnum buildPartial() { + com.google.ads.googleads.v0.enums.InteractionEventTypeEnum result = new com.google.ads.googleads.v0.enums.InteractionEventTypeEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.enums.InteractionEventTypeEnum) { + return mergeFrom((com.google.ads.googleads.v0.enums.InteractionEventTypeEnum)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.enums.InteractionEventTypeEnum other) { + if (other == com.google.ads.googleads.v0.enums.InteractionEventTypeEnum.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.enums.InteractionEventTypeEnum parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.enums.InteractionEventTypeEnum) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.enums.InteractionEventTypeEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.InteractionEventTypeEnum) + private static final com.google.ads.googleads.v0.enums.InteractionEventTypeEnum DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.enums.InteractionEventTypeEnum(); + } + + public static com.google.ads.googleads.v0.enums.InteractionEventTypeEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InteractionEventTypeEnum parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InteractionEventTypeEnum(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.enums.InteractionEventTypeEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/InteractionEventTypeEnumOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/InteractionEventTypeEnumOrBuilder.java new file mode 100644 index 0000000000..831acf2601 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/InteractionEventTypeEnumOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/interaction_event_type.proto + +package com.google.ads.googleads.v0.enums; + +public interface InteractionEventTypeEnumOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.enums.InteractionEventTypeEnum) + com.google.protobuf.MessageOrBuilder { +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/InteractionEventTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/InteractionEventTypeProto.java new file mode 100644 index 0000000000..50d279abdf --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/InteractionEventTypeProto.java @@ -0,0 +1,65 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/interaction_event_type.proto + +package com.google.ads.googleads.v0.enums; + +public final class InteractionEventTypeProto { + private InteractionEventTypeProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_enums_InteractionEventTypeEnum_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_enums_InteractionEventTypeEnum_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n:google/ads/googleads/v0/enums/interact" + + "ion_event_type.proto\022\035google.ads.googlea" + + "ds.v0.enums\"\205\001\n\030InteractionEventTypeEnum" + + "\"i\n\024InteractionEventType\022\017\n\013UNSPECIFIED\020" + + "\000\022\013\n\007UNKNOWN\020\001\022\t\n\005CLICK\020\002\022\016\n\nENGAGEMENT\020" + + "\003\022\016\n\nVIDEO_VIEW\020\004\022\010\n\004NONE\020\005B\356\001\n!com.goog" + + "le.ads.googleads.v0.enumsB\031InteractionEv" + + "entTypeProtoP\001ZBgoogle.golang.org/genpro" + + "to/googleapis/ads/googleads/v0/enums;enu" + + "ms\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums" + + "\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums\352\002!Googl" + + "e::Ads::GoogleAds::V0::Enumsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_google_ads_googleads_v0_enums_InteractionEventTypeEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_googleads_v0_enums_InteractionEventTypeEnum_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_enums_InteractionEventTypeEnum_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/InteractionTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/InteractionTypeProto.java index 6349eec790..02d38a54e7 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/InteractionTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/InteractionTypeProto.java @@ -32,12 +32,13 @@ public static void registerAllExtensions( "ion_type.proto\022\035google.ads.googleads.v0." + "enums\"R\n\023InteractionTypeEnum\";\n\017Interact" + "ionType\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\n\n" + - "\005CALLS\020\300>B\305\001\n!com.google.ads.googleads.v" + + "\005CALLS\020\300>B\351\001\n!com.google.ads.googleads.v" + "0.enumsB\024InteractionTypeProtoP\001ZBgoogle." + "golang.org/genproto/googleapis/ads/googl" + "eads/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.G" + "oogleAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds" + - "\\V0\\Enumsb\006proto3" + "\\V0\\Enums\352\002!Google::Ads::GoogleAds::V0::" + + "Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/JobsPlaceholderFieldProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/JobsPlaceholderFieldProto.java index 3024d18aa6..a5e9df0c1f 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/JobsPlaceholderFieldProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/JobsPlaceholderFieldProto.java @@ -39,12 +39,13 @@ public static void registerAllExtensions( "\020\013\022\016\n\nFINAL_URLS\020\014\022\025\n\021FINAL_MOBILE_URLS\020" + "\016\022\020\n\014TRACKING_URL\020\017\022\024\n\020ANDROID_APP_LINK\020" + "\020\022\023\n\017SIMILAR_JOB_IDS\020\021\022\020\n\014IOS_APP_LINK\020\022" + - "\022\024\n\020IOS_APP_STORE_ID\020\023B\312\001\n!com.google.ad" + + "\022\024\n\020IOS_APP_STORE_ID\020\023B\356\001\n!com.google.ad" + "s.googleads.v0.enumsB\031JobsPlaceholderFie" + "ldProtoP\001ZBgoogle.golang.org/genproto/go" + "ogleapis/ads/googleads/v0/enums;enums\242\002\003" + "GAA\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035Go" + - "ogle\\Ads\\GoogleAds\\V0\\Enumsb\006proto3" + "ogle\\Ads\\GoogleAds\\V0\\Enums\352\002!Google::Ad" + + "s::GoogleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/KeywordMatchTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/KeywordMatchTypeProto.java index 6c70223fb3..7bae54f315 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/KeywordMatchTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/KeywordMatchTypeProto.java @@ -32,13 +32,13 @@ public static void registerAllExtensions( "match_type.proto\022\035google.ads.googleads.v" + "0.enums\"j\n\024KeywordMatchTypeEnum\"R\n\020Keywo" + "rdMatchType\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020" + - "\001\022\t\n\005EXACT\020\002\022\n\n\006PHRASE\020\003\022\t\n\005BROAD\020\004B\306\001\n!" + + "\001\022\t\n\005EXACT\020\002\022\n\n\006PHRASE\020\003\022\t\n\005BROAD\020\004B\352\001\n!" + "com.google.ads.googleads.v0.enumsB\025Keywo" + "rdMatchTypeProtoP\001ZBgoogle.golang.org/ge" + "nproto/googleapis/ads/googleads/v0/enums" + ";enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.E" + - "nums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enumsb\006pr" + - "oto3" + "nums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums\352\002!G" + + "oogle::Ads::GoogleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/KeywordPlanCompetitionLevelProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/KeywordPlanCompetitionLevelProto.java index e06ac35a87..0366119755 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/KeywordPlanCompetitionLevelProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/KeywordPlanCompetitionLevelProto.java @@ -33,13 +33,14 @@ public static void registerAllExtensions( ".googleads.v0.enums\"}\n\037KeywordPlanCompet" + "itionLevelEnum\"Z\n\033KeywordPlanCompetition" + "Level\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\007\n\003L" + - "OW\020\002\022\n\n\006MEDIUM\020\003\022\010\n\004HIGH\020\004B\321\001\n!com.googl" + + "OW\020\002\022\n\n\006MEDIUM\020\003\022\010\n\004HIGH\020\004B\365\001\n!com.googl" + "e.ads.googleads.v0.enumsB KeywordPlanCom" + "petitionLevelProtoP\001ZBgoogle.golang.org/" + "genproto/googleapis/ads/googleads/v0/enu" + "ms;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0" + - ".Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enumsb\006" + - "proto3" + ".Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums\352\002" + + "!Google::Ads::GoogleAds::V0::Enumsb\006prot" + + "o3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/KeywordPlanForecastIntervalProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/KeywordPlanForecastIntervalProto.java index 4de9ca249d..60e074fbe3 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/KeywordPlanForecastIntervalProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/KeywordPlanForecastIntervalProto.java @@ -34,12 +34,13 @@ public static void registerAllExtensions( "astIntervalEnum\"l\n\033KeywordPlanForecastIn" + "terval\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\r\n\t" + "NEXT_WEEK\020\003\022\016\n\nNEXT_MONTH\020\004\022\020\n\014NEXT_QUAR" + - "TER\020\005B\321\001\n!com.google.ads.googleads.v0.en" + + "TER\020\005B\365\001\n!com.google.ads.googleads.v0.en" + "umsB KeywordPlanForecastIntervalProtoP\001Z" + "Bgoogle.golang.org/genproto/googleapis/a" + "ds/googleads/v0/enums;enums\242\002\003GAA\252\002\035Goog" + "le.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\G" + - "oogleAds\\V0\\Enumsb\006proto3" + "oogleAds\\V0\\Enums\352\002!Google::Ads::GoogleA" + + "ds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/KeywordPlanNetworkProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/KeywordPlanNetworkProto.java index 79516d4658..0a596a8bc9 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/KeywordPlanNetworkProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/KeywordPlanNetworkProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( ".v0.enums\"\177\n\026KeywordPlanNetworkEnum\"e\n\022K" + "eywordPlanNetwork\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UN" + "KNOWN\020\001\022\021\n\rGOOGLE_SEARCH\020\002\022\036\n\032GOOGLE_SEA" + - "RCH_AND_PARTNERS\020\003B\310\001\n!com.google.ads.go" + + "RCH_AND_PARTNERS\020\003B\354\001\n!com.google.ads.go" + "ogleads.v0.enumsB\027KeywordPlanNetworkProt" + "oP\001ZBgoogle.golang.org/genproto/googleap" + "is/ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035" + "Google.Ads.GoogleAds.V0.Enums\312\002\035Google\\A" + - "ds\\GoogleAds\\V0\\Enumsb\006proto3" + "ds\\GoogleAds\\V0\\Enums\352\002!Google::Ads::Goo" + + "gleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ListingCustomAttributeIndexProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ListingCustomAttributeIndexProto.java index bc36046478..5e7935a4ce 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ListingCustomAttributeIndexProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ListingCustomAttributeIndexProto.java @@ -35,13 +35,14 @@ public static void registerAllExtensions( "teIndex\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\026\n" + "\022CUSTOM_ATTRIBUTE_0\020\002\022\026\n\022CUSTOM_ATTRIBUT" + "E_1\020\003\022\026\n\022CUSTOM_ATTRIBUTE_2\020\004\022\026\n\022CUSTOM_" + - "ATTRIBUTE_3\020\005\022\026\n\022CUSTOM_ATTRIBUTE_4\020\006B\321\001" + + "ATTRIBUTE_3\020\005\022\026\n\022CUSTOM_ATTRIBUTE_4\020\006B\365\001" + "\n!com.google.ads.googleads.v0.enumsB Lis" + "tingCustomAttributeIndexProtoP\001ZBgoogle." + "golang.org/genproto/googleapis/ads/googl" + "eads/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.G" + "oogleAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds" + - "\\V0\\Enumsb\006proto3" + "\\V0\\Enums\352\002!Google::Ads::GoogleAds::V0::" + + "Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ListingGroupTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ListingGroupTypeProto.java index 84bad398e4..7ee42d5cb2 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ListingGroupTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ListingGroupTypeProto.java @@ -32,12 +32,13 @@ public static void registerAllExtensions( "group_type.proto\022\035google.ads.googleads.v" + "0.enums\"c\n\024ListingGroupTypeEnum\"K\n\020Listi" + "ngGroupType\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020" + - "\001\022\017\n\013SUBDIVISION\020\002\022\010\n\004UNIT\020\003B\306\001\n!com.goo" + + "\001\022\017\n\013SUBDIVISION\020\002\022\010\n\004UNIT\020\003B\352\001\n!com.goo" + "gle.ads.googleads.v0.enumsB\025ListingGroup" + "TypeProtoP\001ZBgoogle.golang.org/genproto/" + "googleapis/ads/googleads/v0/enums;enums\242" + "\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035" + - "Google\\Ads\\GoogleAds\\V0\\Enumsb\006proto3" + "Google\\Ads\\GoogleAds\\V0\\Enums\352\002!Google::" + + "Ads::GoogleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/LocalPlaceholderFieldProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/LocalPlaceholderFieldProto.java index f8285d74d7..0615dafe03 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/LocalPlaceholderFieldProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/LocalPlaceholderFieldProto.java @@ -41,12 +41,13 @@ public static void registerAllExtensions( "NAL_MOBILE_URLS\020\017\022\020\n\014TRACKING_URL\020\020\022\024\n\020A" + "NDROID_APP_LINK\020\021\022\024\n\020SIMILAR_DEAL_IDS\020\022\022" + "\020\n\014IOS_APP_LINK\020\023\022\024\n\020IOS_APP_STORE_ID\020\024B" + - "\313\001\n!com.google.ads.googleads.v0.enumsB\032L" + + "\357\001\n!com.google.ads.googleads.v0.enumsB\032L" + "ocalPlaceholderFieldProtoP\001ZBgoogle.gola" + "ng.org/genproto/googleapis/ads/googleads" + "/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.Googl" + "eAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\" + - "Enumsb\006proto3" + "Enums\352\002!Google::Ads::GoogleAds::V0::Enum" + + "sb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ManagerLinkStatusProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ManagerLinkStatusProto.java index d5863c3e89..38e139b389 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ManagerLinkStatusProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ManagerLinkStatusProto.java @@ -33,13 +33,13 @@ public static void registerAllExtensions( "v0.enums\"\214\001\n\025ManagerLinkStatusEnum\"s\n\021Ma" + "nagerLinkStatus\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKN" + "OWN\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010INACTIVE\020\003\022\013\n\007PENDI" + - "NG\020\004\022\013\n\007REFUSED\020\005\022\014\n\010CANCELED\020\006B\307\001\n!com." + + "NG\020\004\022\013\n\007REFUSED\020\005\022\014\n\010CANCELED\020\006B\353\001\n!com." + "google.ads.googleads.v0.enumsB\026ManagerLi" + "nkStatusProtoP\001ZBgoogle.golang.org/genpr" + "oto/googleapis/ads/googleads/v0/enums;en" + "ums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enum" + - "s\312\002\035Google\\Ads\\GoogleAds\\V0\\Enumsb\006proto" + - "3" + "s\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums\352\002!Goog" + + "le::Ads::GoogleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/MediaTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/MediaTypeProto.java index 04af5d8aa6..b50a8ed442 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/MediaTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/MediaTypeProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "\212\001\n\rMediaTypeEnum\"y\n\tMediaType\022\017\n\013UNSPEC" + "IFIED\020\000\022\013\n\007UNKNOWN\020\001\022\t\n\005IMAGE\020\002\022\010\n\004ICON\020" + "\003\022\020\n\014MEDIA_BUNDLE\020\004\022\t\n\005AUDIO\020\005\022\t\n\005VIDEO\020" + - "\006\022\021\n\rDYNAMIC_IMAGE\020\007B\277\001\n!com.google.ads." + + "\006\022\021\n\rDYNAMIC_IMAGE\020\007B\343\001\n!com.google.ads." + "googleads.v0.enumsB\016MediaTypeProtoP\001ZBgo" + "ogle.golang.org/genproto/googleapis/ads/" + "googleads/v0/enums;enums\242\002\003GAA\252\002\035Google." + "Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\Goog" + - "leAds\\V0\\Enumsb\006proto3" + "leAds\\V0\\Enums\352\002!Google::Ads::GoogleAds:" + + ":V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/MessagePlaceholderFieldProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/MessagePlaceholderFieldProto.java index aafd9af082..8df8467306 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/MessagePlaceholderFieldProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/MessagePlaceholderFieldProto.java @@ -35,12 +35,13 @@ public static void registerAllExtensions( "SPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\021\n\rBUSINESS_NAM" + "E\020\002\022\020\n\014COUNTRY_CODE\020\003\022\020\n\014PHONE_NUMBER\020\004\022" + "\032\n\026MESSAGE_EXTENSION_TEXT\020\005\022\020\n\014MESSAGE_T" + - "EXT\020\006B\315\001\n!com.google.ads.googleads.v0.en" + + "EXT\020\006B\361\001\n!com.google.ads.googleads.v0.en" + "umsB\034MessagePlaceholderFieldProtoP\001ZBgoo" + "gle.golang.org/genproto/googleapis/ads/g" + "oogleads/v0/enums;enums\242\002\003GAA\252\002\035Google.A" + "ds.GoogleAds.V0.Enums\312\002\035Google\\Ads\\Googl" + - "eAds\\V0\\Enumsb\006proto3" + "eAds\\V0\\Enums\352\002!Google::Ads::GoogleAds::" + + "V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/MimeTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/MimeTypeProto.java index eeaa346238..f12fe09c9c 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/MimeTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/MimeTypeProto.java @@ -35,12 +35,13 @@ public static void registerAllExtensions( "AGE_GIF\020\003\022\r\n\tIMAGE_PNG\020\004\022\t\n\005FLASH\020\005\022\r\n\tT" + "EXT_HTML\020\006\022\007\n\003PDF\020\007\022\n\n\006MSWORD\020\010\022\013\n\007MSEXC" + "EL\020\t\022\007\n\003RTF\020\n\022\r\n\tAUDIO_WAV\020\013\022\r\n\tAUDIO_MP" + - "3\020\014\022\020\n\014HTML5_AD_ZIP\020\rB\276\001\n!com.google.ads" + + "3\020\014\022\020\n\014HTML5_AD_ZIP\020\rB\342\001\n!com.google.ads" + ".googleads.v0.enumsB\rMimeTypeProtoP\001ZBgo" + "ogle.golang.org/genproto/googleapis/ads/" + "googleads/v0/enums;enums\242\002\003GAA\252\002\035Google." + "Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\Goog" + - "leAds\\V0\\Enumsb\006proto3" + "leAds\\V0\\Enums\352\002!Google::Ads::GoogleAds:" + + ":V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/MinuteOfHourProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/MinuteOfHourProto.java index 1ce246be0d..1019a3e091 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/MinuteOfHourProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/MinuteOfHourProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "ums\"s\n\020MinuteOfHourEnum\"_\n\014MinuteOfHour\022" + "\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\010\n\004ZERO\020\002\022" + "\013\n\007FIFTEEN\020\003\022\n\n\006THIRTY\020\004\022\016\n\nFORTY_FIVE\020\005" + - "B\302\001\n!com.google.ads.googleads.v0.enumsB\021" + + "B\346\001\n!com.google.ads.googleads.v0.enumsB\021" + "MinuteOfHourProtoP\001ZBgoogle.golang.org/g" + "enproto/googleapis/ads/googleads/v0/enum" + "s;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0." + - "Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enumsb\006p" + - "roto3" + "Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums\352\002!" + + "Google::Ads::GoogleAds::V0::Enumsb\006proto" + + "3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/MobileDeviceTypeEnum.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/MobileDeviceTypeEnum.java new file mode 100644 index 0000000000..602a59e3cc --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/MobileDeviceTypeEnum.java @@ -0,0 +1,573 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/mobile_device_type.proto + +package com.google.ads.googleads.v0.enums; + +/** + *
+ * Container for enum describing the types of mobile device.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.MobileDeviceTypeEnum} + */ +public final class MobileDeviceTypeEnum extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.enums.MobileDeviceTypeEnum) + MobileDeviceTypeEnumOrBuilder { +private static final long serialVersionUID = 0L; + // Use MobileDeviceTypeEnum.newBuilder() to construct. + private MobileDeviceTypeEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MobileDeviceTypeEnum() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MobileDeviceTypeEnum( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.MobileDeviceTypeProto.internal_static_google_ads_googleads_v0_enums_MobileDeviceTypeEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.MobileDeviceTypeProto.internal_static_google_ads_googleads_v0_enums_MobileDeviceTypeEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum.class, com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum.Builder.class); + } + + /** + *
+   * The type of mobile device.
+   * 
+ * + * Protobuf enum {@code google.ads.googleads.v0.enums.MobileDeviceTypeEnum.MobileDeviceType} + */ + public enum MobileDeviceType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + UNKNOWN(1), + /** + *
+     * Mobile phones.
+     * 
+ * + * MOBILE = 2; + */ + MOBILE(2), + /** + *
+     * Tablets.
+     * 
+ * + * TABLET = 3; + */ + TABLET(3), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + public static final int UNKNOWN_VALUE = 1; + /** + *
+     * Mobile phones.
+     * 
+ * + * MOBILE = 2; + */ + public static final int MOBILE_VALUE = 2; + /** + *
+     * Tablets.
+     * 
+ * + * TABLET = 3; + */ + public static final int TABLET_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MobileDeviceType valueOf(int value) { + return forNumber(value); + } + + public static MobileDeviceType forNumber(int value) { + switch (value) { + case 0: return UNSPECIFIED; + case 1: return UNKNOWN; + case 2: return MOBILE; + case 3: return TABLET; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + MobileDeviceType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MobileDeviceType findValueByNumber(int number) { + return MobileDeviceType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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.ads.googleads.v0.enums.MobileDeviceTypeEnum.getDescriptor().getEnumTypes().get(0); + } + + private static final MobileDeviceType[] VALUES = values(); + + public static MobileDeviceType 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 MobileDeviceType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.googleads.v0.enums.MobileDeviceTypeEnum.MobileDeviceType) + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.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.ads.googleads.v0.enums.MobileDeviceTypeEnum)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum other = (com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum 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.ads.googleads.v0.enums.MobileDeviceTypeEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum 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.ads.googleads.v0.enums.MobileDeviceTypeEnum parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum 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.ads.googleads.v0.enums.MobileDeviceTypeEnum parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum 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.ads.googleads.v0.enums.MobileDeviceTypeEnum 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; + } + /** + *
+   * Container for enum describing the types of mobile device.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.MobileDeviceTypeEnum} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.enums.MobileDeviceTypeEnum) + com.google.ads.googleads.v0.enums.MobileDeviceTypeEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.MobileDeviceTypeProto.internal_static_google_ads_googleads_v0_enums_MobileDeviceTypeEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.MobileDeviceTypeProto.internal_static_google_ads_googleads_v0_enums_MobileDeviceTypeEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum.class, com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.enums.MobileDeviceTypeProto.internal_static_google_ads_googleads_v0_enums_MobileDeviceTypeEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum getDefaultInstanceForType() { + return com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum build() { + com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum buildPartial() { + com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum result = new com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum) { + return mergeFrom((com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum other) { + if (other == com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.enums.MobileDeviceTypeEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.MobileDeviceTypeEnum) + private static final com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum(); + } + + public static com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MobileDeviceTypeEnum parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MobileDeviceTypeEnum(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.enums.MobileDeviceTypeEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/MobileDeviceTypeEnumOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/MobileDeviceTypeEnumOrBuilder.java new file mode 100644 index 0000000000..2fb1598882 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/MobileDeviceTypeEnumOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/mobile_device_type.proto + +package com.google.ads.googleads.v0.enums; + +public interface MobileDeviceTypeEnumOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.enums.MobileDeviceTypeEnum) + com.google.protobuf.MessageOrBuilder { +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/MobileDeviceTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/MobileDeviceTypeProto.java new file mode 100644 index 0000000000..d9bcb8c8a8 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/MobileDeviceTypeProto.java @@ -0,0 +1,64 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/mobile_device_type.proto + +package com.google.ads.googleads.v0.enums; + +public final class MobileDeviceTypeProto { + private MobileDeviceTypeProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_enums_MobileDeviceTypeEnum_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_enums_MobileDeviceTypeEnum_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n6google/ads/googleads/v0/enums/mobile_d" + + "evice_type.proto\022\035google.ads.googleads.v" + + "0.enums\"`\n\024MobileDeviceTypeEnum\"H\n\020Mobil" + + "eDeviceType\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020" + + "\001\022\n\n\006MOBILE\020\002\022\n\n\006TABLET\020\003B\352\001\n!com.google" + + ".ads.googleads.v0.enumsB\025MobileDeviceTyp" + + "eProtoP\001ZBgoogle.golang.org/genproto/goo" + + "gleapis/ads/googleads/v0/enums;enums\242\002\003G" + + "AA\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035Goo" + + "gle\\Ads\\GoogleAds\\V0\\Enums\352\002!Google::Ads" + + "::GoogleAds::V0::Enumsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_google_ads_googleads_v0_enums_MobileDeviceTypeEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_googleads_v0_enums_MobileDeviceTypeEnum_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_enums_MobileDeviceTypeEnum_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/MonthOfYearProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/MonthOfYearProto.java index feb5dbc58e..c2e11d2a8a 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/MonthOfYearProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/MonthOfYearProto.java @@ -35,12 +35,13 @@ public static void registerAllExtensions( "\002\022\014\n\010FEBRUARY\020\003\022\t\n\005MARCH\020\004\022\t\n\005APRIL\020\005\022\007\n" + "\003MAY\020\006\022\010\n\004JUNE\020\007\022\010\n\004JULY\020\010\022\n\n\006AUGUST\020\t\022\r" + "\n\tSEPTEMBER\020\n\022\013\n\007OCTOBER\020\013\022\014\n\010NOVEMBER\020\014" + - "\022\014\n\010DECEMBER\020\rB\301\001\n!com.google.ads.google" + + "\022\014\n\010DECEMBER\020\rB\345\001\n!com.google.ads.google" + "ads.v0.enumsB\020MonthOfYearProtoP\001ZBgoogle" + ".golang.org/genproto/googleapis/ads/goog" + "leads/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads." + "GoogleAds.V0.Enums\312\002\035Google\\Ads\\GoogleAd" + - "s\\V0\\Enumsb\006proto3" + "s\\V0\\Enums\352\002!Google::Ads::GoogleAds::V0:" + + ":Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/OperatingSystemVersionOperatorTypeEnum.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/OperatingSystemVersionOperatorTypeEnum.java new file mode 100644 index 0000000000..74ea39c353 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/OperatingSystemVersionOperatorTypeEnum.java @@ -0,0 +1,573 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/operating_system_version_operator_type.proto + +package com.google.ads.googleads.v0.enums; + +/** + *
+ * Container for enum describing the type of OS operators.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum} + */ +public final class OperatingSystemVersionOperatorTypeEnum extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum) + OperatingSystemVersionOperatorTypeEnumOrBuilder { +private static final long serialVersionUID = 0L; + // Use OperatingSystemVersionOperatorTypeEnum.newBuilder() to construct. + private OperatingSystemVersionOperatorTypeEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OperatingSystemVersionOperatorTypeEnum() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private OperatingSystemVersionOperatorTypeEnum( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeProto.internal_static_google_ads_googleads_v0_enums_OperatingSystemVersionOperatorTypeEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeProto.internal_static_google_ads_googleads_v0_enums_OperatingSystemVersionOperatorTypeEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum.class, com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum.Builder.class); + } + + /** + *
+   * The type of operating system version.
+   * 
+ * + * Protobuf enum {@code google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType} + */ + public enum OperatingSystemVersionOperatorType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + UNKNOWN(1), + /** + *
+     * Equals to the specified version.
+     * 
+ * + * EQUALS_TO = 2; + */ + EQUALS_TO(2), + /** + *
+     * Greater than or equals to the specified version.
+     * 
+ * + * GREATER_THAN_EQUALS_TO = 4; + */ + GREATER_THAN_EQUALS_TO(4), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + public static final int UNKNOWN_VALUE = 1; + /** + *
+     * Equals to the specified version.
+     * 
+ * + * EQUALS_TO = 2; + */ + public static final int EQUALS_TO_VALUE = 2; + /** + *
+     * Greater than or equals to the specified version.
+     * 
+ * + * GREATER_THAN_EQUALS_TO = 4; + */ + public static final int GREATER_THAN_EQUALS_TO_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OperatingSystemVersionOperatorType valueOf(int value) { + return forNumber(value); + } + + public static OperatingSystemVersionOperatorType forNumber(int value) { + switch (value) { + case 0: return UNSPECIFIED; + case 1: return UNKNOWN; + case 2: return EQUALS_TO; + case 4: return GREATER_THAN_EQUALS_TO; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + OperatingSystemVersionOperatorType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public OperatingSystemVersionOperatorType findValueByNumber(int number) { + return OperatingSystemVersionOperatorType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum.getDescriptor().getEnumTypes().get(0); + } + + private static final OperatingSystemVersionOperatorType[] VALUES = values(); + + public static OperatingSystemVersionOperatorType 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 OperatingSystemVersionOperatorType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType) + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.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.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum other = (com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum 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.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum 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.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum 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.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum 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.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum 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; + } + /** + *
+   * Container for enum describing the type of OS operators.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum) + com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeProto.internal_static_google_ads_googleads_v0_enums_OperatingSystemVersionOperatorTypeEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeProto.internal_static_google_ads_googleads_v0_enums_OperatingSystemVersionOperatorTypeEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum.class, com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeProto.internal_static_google_ads_googleads_v0_enums_OperatingSystemVersionOperatorTypeEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum getDefaultInstanceForType() { + return com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum build() { + com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum buildPartial() { + com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum result = new com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum) { + return mergeFrom((com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum other) { + if (other == com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum) + private static final com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum(); + } + + public static com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperatingSystemVersionOperatorTypeEnum parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperatingSystemVersionOperatorTypeEnum(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/OperatingSystemVersionOperatorTypeEnumOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/OperatingSystemVersionOperatorTypeEnumOrBuilder.java new file mode 100644 index 0000000000..0fab8cebdb --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/OperatingSystemVersionOperatorTypeEnumOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/operating_system_version_operator_type.proto + +package com.google.ads.googleads.v0.enums; + +public interface OperatingSystemVersionOperatorTypeEnumOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum) + com.google.protobuf.MessageOrBuilder { +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CampaignGroupStatusProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/OperatingSystemVersionOperatorTypeProto.java similarity index 56% rename from google-ads/src/main/java/com/google/ads/googleads/v0/enums/CampaignGroupStatusProto.java rename to google-ads/src/main/java/com/google/ads/googleads/v0/enums/OperatingSystemVersionOperatorTypeProto.java index 50c0fbe83a..43a8b23089 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/CampaignGroupStatusProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/OperatingSystemVersionOperatorTypeProto.java @@ -1,10 +1,10 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v0/enums/campaign_group_status.proto +// source: google/ads/googleads/v0/enums/operating_system_version_operator_type.proto package com.google.ads.googleads.v0.enums; -public final class CampaignGroupStatusProto { - private CampaignGroupStatusProto() {} +public final class OperatingSystemVersionOperatorTypeProto { + private OperatingSystemVersionOperatorTypeProto() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -15,10 +15,10 @@ public static void registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_googleads_v0_enums_CampaignGroupStatusEnum_descriptor; + internal_static_google_ads_googleads_v0_enums_OperatingSystemVersionOperatorTypeEnum_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_googleads_v0_enums_CampaignGroupStatusEnum_fieldAccessorTable; + internal_static_google_ads_googleads_v0_enums_OperatingSystemVersionOperatorTypeEnum_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -28,17 +28,20 @@ public static void registerAllExtensions( descriptor; static { java.lang.String[] descriptorData = { - "\n9google/ads/googleads/v0/enums/campaign" + - "_group_status.proto\022\035google.ads.googlead" + - "s.v0.enums\"h\n\027CampaignGroupStatusEnum\"M\n" + - "\023CampaignGroupStatus\022\017\n\013UNSPECIFIED\020\000\022\013\n" + - "\007UNKNOWN\020\001\022\013\n\007ENABLED\020\002\022\013\n\007REMOVED\020\004B\311\001\n" + - "!com.google.ads.googleads.v0.enumsB\030Camp" + - "aignGroupStatusProtoP\001ZBgoogle.golang.or" + + "\nJgoogle/ads/googleads/v0/enums/operatin" + + "g_system_version_operator_type.proto\022\035go" + + "ogle.ads.googleads.v0.enums\"\227\001\n&Operatin" + + "gSystemVersionOperatorTypeEnum\"m\n\"Operat" + + "ingSystemVersionOperatorType\022\017\n\013UNSPECIF" + + "IED\020\000\022\013\n\007UNKNOWN\020\001\022\r\n\tEQUALS_TO\020\002\022\032\n\026GRE" + + "ATER_THAN_EQUALS_TO\020\004B\374\001\n!com.google.ads" + + ".googleads.v0.enumsB\'OperatingSystemVers" + + "ionOperatorTypeProtoP\001ZBgoogle.golang.or" + "g/genproto/googleapis/ads/googleads/v0/e" + "nums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds." + "V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums" + - "b\006proto3" + "\352\002!Google::Ads::GoogleAds::V0::Enumsb\006pr" + + "oto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -52,11 +55,11 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); - internal_static_google_ads_googleads_v0_enums_CampaignGroupStatusEnum_descriptor = + internal_static_google_ads_googleads_v0_enums_OperatingSystemVersionOperatorTypeEnum_descriptor = getDescriptor().getMessageTypes().get(0); - internal_static_google_ads_googleads_v0_enums_CampaignGroupStatusEnum_fieldAccessorTable = new + internal_static_google_ads_googleads_v0_enums_OperatingSystemVersionOperatorTypeEnum_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_googleads_v0_enums_CampaignGroupStatusEnum_descriptor, + internal_static_google_ads_googleads_v0_enums_OperatingSystemVersionOperatorTypeEnum_descriptor, new java.lang.String[] { }); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PageOnePromotedStrategyGoalProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PageOnePromotedStrategyGoalProto.java index 64a70b809a..45f39239d8 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PageOnePromotedStrategyGoalProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PageOnePromotedStrategyGoalProto.java @@ -33,13 +33,14 @@ public static void registerAllExtensions( "s.googleads.v0.enums\"\207\001\n\037PageOnePromoted" + "StrategyGoalEnum\"d\n\033PageOnePromotedStrat" + "egyGoal\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\016\n" + - "\nFIRST_PAGE\020\002\022\027\n\023FIRST_PAGE_PROMOTED\020\003B\321" + + "\nFIRST_PAGE\020\002\022\027\n\023FIRST_PAGE_PROMOTED\020\003B\365" + "\001\n!com.google.ads.googleads.v0.enumsB Pa" + "geOnePromotedStrategyGoalProtoP\001ZBgoogle" + ".golang.org/genproto/googleapis/ads/goog" + "leads/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads." + "GoogleAds.V0.Enums\312\002\035Google\\Ads\\GoogleAd" + - "s\\V0\\Enumsb\006proto3" + "s\\V0\\Enums\352\002!Google::Ads::GoogleAds::V0:" + + ":Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ParentalStatusTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ParentalStatusTypeProto.java index d3f9064f54..7b727845af 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ParentalStatusTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ParentalStatusTypeProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( ".v0.enums\"\177\n\026ParentalStatusTypeEnum\"e\n\022P" + "arentalStatusType\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UN" + "KNOWN\020\001\022\013\n\006PARENT\020\254\002\022\021\n\014NOT_A_PARENT\020\255\002\022" + - "\021\n\014UNDETERMINED\020\256\002B\310\001\n!com.google.ads.go" + + "\021\n\014UNDETERMINED\020\256\002B\354\001\n!com.google.ads.go" + "ogleads.v0.enumsB\027ParentalStatusTypeProt" + "oP\001ZBgoogle.golang.org/genproto/googleap" + "is/ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035" + "Google.Ads.GoogleAds.V0.Enums\312\002\035Google\\A" + - "ds\\GoogleAds\\V0\\Enumsb\006proto3" + "ds\\GoogleAds\\V0\\Enums\352\002!Google::Ads::Goo" + + "gleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PlaceholderTypeEnum.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PlaceholderTypeEnum.java index bf076a9dbb..b390016394 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PlaceholderTypeEnum.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PlaceholderTypeEnum.java @@ -104,7 +104,8 @@ public enum PlaceholderType UNKNOWN(1), /** *
-     * Sitelink.
+     * Lets you show links in your ad to pages from your website, including the
+     * main landing page.
      * 
* * SITELINK = 2; @@ -112,7 +113,8 @@ public enum PlaceholderType SITELINK(2), /** *
-     * Call.
+     * Lets you attach a phone number to an ad, allowing customers to call
+     * directly from the ad.
      * 
* * CALL = 3; @@ -120,7 +122,8 @@ public enum PlaceholderType CALL(3), /** *
-     * App.
+     * Lets you provide users with a link that points to a mobile app in
+     * addition to a website.
      * 
* * APP = 4; @@ -128,7 +131,11 @@ public enum PlaceholderType APP(4), /** *
-     * Location.
+     * Lets you show locations of businesses from your Google My Business
+     * account in your ad. This helps people find your locations by showing your
+     * ads with your address, a map to your location, or the distance to your
+     * business. This extension type is useful to draw customers to your
+     * brick-and-mortar location.
      * 
* * LOCATION = 5; @@ -136,7 +143,8 @@ public enum PlaceholderType LOCATION(5), /** *
-     * Affiliate location.
+     * If you sell your product through retail chains, affiliate location
+     * extensions let you show nearby stores that carry your products.
      * 
* * AFFILIATE_LOCATION = 6; @@ -144,7 +152,10 @@ public enum PlaceholderType AFFILIATE_LOCATION(6), /** *
-     * Callout.
+     * Lets you include additional text with your search ads that provide
+     * detailed information about your business, including products and services
+     * you offer. Callouts appear in ads at the top and bottom of Google search
+     * results.
      * 
* * CALLOUT = 7; @@ -152,7 +163,9 @@ public enum PlaceholderType CALLOUT(7), /** *
-     * Structured snippet.
+     * Lets you add more info to your ad, specific to some predefined categories
+     * such as types, brands, styles, etc. A minimum of 3 text (SNIPPETS) values
+     * are required.
      * 
* * STRUCTURED_SNIPPET = 8; @@ -160,7 +173,9 @@ public enum PlaceholderType STRUCTURED_SNIPPET(8), /** *
-     * Message.
+     * Allows users to see your ad, click an icon, and contact you directly by
+     * text message. With one tap on your ad, people can contact you to book an
+     * appointment, get a quote, ask for information, or request a service.
      * 
* * MESSAGE = 9; @@ -168,7 +183,8 @@ public enum PlaceholderType MESSAGE(9), /** *
-     * Price.
+     * Lets you display prices for a list of items along with your ads. A price
+     * feed is composed of three to eight price table rows.
      * 
* * PRICE = 10; @@ -176,7 +192,8 @@ public enum PlaceholderType PRICE(10), /** *
-     * Promotion.
+     * Allows you to highlight sales and other promotions that let users see how
+     * they can save by buying now.
      * 
* * PROMOTION = 11; @@ -184,7 +201,8 @@ public enum PlaceholderType PROMOTION(11), /** *
-     * Ad customizer.
+     * Lets you dynamically inject custom data into the title and description
+     * of your ads.
      * 
* * AD_CUSTOMIZER = 12; @@ -192,7 +210,7 @@ public enum PlaceholderType AD_CUSTOMIZER(12), /** *
-     * Dynamic education.
+     * Indicates that this feed is for education dynamic remarketing.
      * 
* * DYNAMIC_EDUCATION = 13; @@ -200,7 +218,7 @@ public enum PlaceholderType DYNAMIC_EDUCATION(13), /** *
-     * Dynamic flights.
+     * Indicates that this feed is for flight dynamic remarketing.
      * 
* * DYNAMIC_FLIGHT = 14; @@ -208,7 +226,9 @@ public enum PlaceholderType DYNAMIC_FLIGHT(14), /** *
-     * Dynamic custom.
+     * Indicates that this feed is for a custom dynamic remarketing type. Use
+     * this only if the other business types don't apply to your products or
+     * services.
      * 
* * DYNAMIC_CUSTOM = 15; @@ -216,7 +236,7 @@ public enum PlaceholderType DYNAMIC_CUSTOM(15), /** *
-     * Dynamic hotels.
+     * Indicates that this feed is for hotels and rentals dynamic remarketing.
      * 
* * DYNAMIC_HOTEL = 16; @@ -224,7 +244,7 @@ public enum PlaceholderType DYNAMIC_HOTEL(16), /** *
-     * Dynamic real estate.
+     * Indicates that this feed is for real estate dynamic remarketing.
      * 
* * DYNAMIC_REAL_ESTATE = 17; @@ -232,7 +252,7 @@ public enum PlaceholderType DYNAMIC_REAL_ESTATE(17), /** *
-     * Dynamic travel.
+     * Indicates that this feed is for travel dynamic remarketing.
      * 
* * DYNAMIC_TRAVEL = 18; @@ -240,7 +260,7 @@ public enum PlaceholderType DYNAMIC_TRAVEL(18), /** *
-     * Dynamic local.
+     * Indicates that this feed is for local deals dynamic remarketing.
      * 
* * DYNAMIC_LOCAL = 19; @@ -248,7 +268,7 @@ public enum PlaceholderType DYNAMIC_LOCAL(19), /** *
-     * Dynamic jobs.
+     * Indicates that this feed is for job dynamic remarketing.
      * 
* * DYNAMIC_JOB = 20; @@ -275,7 +295,8 @@ public enum PlaceholderType public static final int UNKNOWN_VALUE = 1; /** *
-     * Sitelink.
+     * Lets you show links in your ad to pages from your website, including the
+     * main landing page.
      * 
* * SITELINK = 2; @@ -283,7 +304,8 @@ public enum PlaceholderType public static final int SITELINK_VALUE = 2; /** *
-     * Call.
+     * Lets you attach a phone number to an ad, allowing customers to call
+     * directly from the ad.
      * 
* * CALL = 3; @@ -291,7 +313,8 @@ public enum PlaceholderType public static final int CALL_VALUE = 3; /** *
-     * App.
+     * Lets you provide users with a link that points to a mobile app in
+     * addition to a website.
      * 
* * APP = 4; @@ -299,7 +322,11 @@ public enum PlaceholderType public static final int APP_VALUE = 4; /** *
-     * Location.
+     * Lets you show locations of businesses from your Google My Business
+     * account in your ad. This helps people find your locations by showing your
+     * ads with your address, a map to your location, or the distance to your
+     * business. This extension type is useful to draw customers to your
+     * brick-and-mortar location.
      * 
* * LOCATION = 5; @@ -307,7 +334,8 @@ public enum PlaceholderType public static final int LOCATION_VALUE = 5; /** *
-     * Affiliate location.
+     * If you sell your product through retail chains, affiliate location
+     * extensions let you show nearby stores that carry your products.
      * 
* * AFFILIATE_LOCATION = 6; @@ -315,7 +343,10 @@ public enum PlaceholderType public static final int AFFILIATE_LOCATION_VALUE = 6; /** *
-     * Callout.
+     * Lets you include additional text with your search ads that provide
+     * detailed information about your business, including products and services
+     * you offer. Callouts appear in ads at the top and bottom of Google search
+     * results.
      * 
* * CALLOUT = 7; @@ -323,7 +354,9 @@ public enum PlaceholderType public static final int CALLOUT_VALUE = 7; /** *
-     * Structured snippet.
+     * Lets you add more info to your ad, specific to some predefined categories
+     * such as types, brands, styles, etc. A minimum of 3 text (SNIPPETS) values
+     * are required.
      * 
* * STRUCTURED_SNIPPET = 8; @@ -331,7 +364,9 @@ public enum PlaceholderType public static final int STRUCTURED_SNIPPET_VALUE = 8; /** *
-     * Message.
+     * Allows users to see your ad, click an icon, and contact you directly by
+     * text message. With one tap on your ad, people can contact you to book an
+     * appointment, get a quote, ask for information, or request a service.
      * 
* * MESSAGE = 9; @@ -339,7 +374,8 @@ public enum PlaceholderType public static final int MESSAGE_VALUE = 9; /** *
-     * Price.
+     * Lets you display prices for a list of items along with your ads. A price
+     * feed is composed of three to eight price table rows.
      * 
* * PRICE = 10; @@ -347,7 +383,8 @@ public enum PlaceholderType public static final int PRICE_VALUE = 10; /** *
-     * Promotion.
+     * Allows you to highlight sales and other promotions that let users see how
+     * they can save by buying now.
      * 
* * PROMOTION = 11; @@ -355,7 +392,8 @@ public enum PlaceholderType public static final int PROMOTION_VALUE = 11; /** *
-     * Ad customizer.
+     * Lets you dynamically inject custom data into the title and description
+     * of your ads.
      * 
* * AD_CUSTOMIZER = 12; @@ -363,7 +401,7 @@ public enum PlaceholderType public static final int AD_CUSTOMIZER_VALUE = 12; /** *
-     * Dynamic education.
+     * Indicates that this feed is for education dynamic remarketing.
      * 
* * DYNAMIC_EDUCATION = 13; @@ -371,7 +409,7 @@ public enum PlaceholderType public static final int DYNAMIC_EDUCATION_VALUE = 13; /** *
-     * Dynamic flights.
+     * Indicates that this feed is for flight dynamic remarketing.
      * 
* * DYNAMIC_FLIGHT = 14; @@ -379,7 +417,9 @@ public enum PlaceholderType public static final int DYNAMIC_FLIGHT_VALUE = 14; /** *
-     * Dynamic custom.
+     * Indicates that this feed is for a custom dynamic remarketing type. Use
+     * this only if the other business types don't apply to your products or
+     * services.
      * 
* * DYNAMIC_CUSTOM = 15; @@ -387,7 +427,7 @@ public enum PlaceholderType public static final int DYNAMIC_CUSTOM_VALUE = 15; /** *
-     * Dynamic hotels.
+     * Indicates that this feed is for hotels and rentals dynamic remarketing.
      * 
* * DYNAMIC_HOTEL = 16; @@ -395,7 +435,7 @@ public enum PlaceholderType public static final int DYNAMIC_HOTEL_VALUE = 16; /** *
-     * Dynamic real estate.
+     * Indicates that this feed is for real estate dynamic remarketing.
      * 
* * DYNAMIC_REAL_ESTATE = 17; @@ -403,7 +443,7 @@ public enum PlaceholderType public static final int DYNAMIC_REAL_ESTATE_VALUE = 17; /** *
-     * Dynamic travel.
+     * Indicates that this feed is for travel dynamic remarketing.
      * 
* * DYNAMIC_TRAVEL = 18; @@ -411,7 +451,7 @@ public enum PlaceholderType public static final int DYNAMIC_TRAVEL_VALUE = 18; /** *
-     * Dynamic local.
+     * Indicates that this feed is for local deals dynamic remarketing.
      * 
* * DYNAMIC_LOCAL = 19; @@ -419,7 +459,7 @@ public enum PlaceholderType public static final int DYNAMIC_LOCAL_VALUE = 19; /** *
-     * Dynamic jobs.
+     * Indicates that this feed is for job dynamic remarketing.
      * 
* * DYNAMIC_JOB = 20; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PlaceholderTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PlaceholderTypeProto.java index b7e8a5e9fe..ec05a5d1df 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PlaceholderTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PlaceholderTypeProto.java @@ -40,12 +40,13 @@ public static void registerAllExtensions( "FLIGHT\020\016\022\022\n\016DYNAMIC_CUSTOM\020\017\022\021\n\rDYNAMIC_" + "HOTEL\020\020\022\027\n\023DYNAMIC_REAL_ESTATE\020\021\022\022\n\016DYNA" + "MIC_TRAVEL\020\022\022\021\n\rDYNAMIC_LOCAL\020\023\022\017\n\013DYNAM" + - "IC_JOB\020\024B\305\001\n!com.google.ads.googleads.v0" + + "IC_JOB\020\024B\351\001\n!com.google.ads.googleads.v0" + ".enumsB\024PlaceholderTypeProtoP\001ZBgoogle.g" + "olang.org/genproto/googleapis/ads/google" + "ads/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.Go" + "ogleAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\" + - "V0\\Enumsb\006proto3" + "V0\\Enums\352\002!Google::Ads::GoogleAds::V0::E" + + "numsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PolicyApprovalStatusProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PolicyApprovalStatusProto.java index 5e501a0df2..3f3c8f43f3 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PolicyApprovalStatusProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PolicyApprovalStatusProto.java @@ -34,12 +34,13 @@ public static void registerAllExtensions( "\"\204\001\n\024PolicyApprovalStatus\022\017\n\013UNSPECIFIED" + "\020\000\022\013\n\007UNKNOWN\020\001\022\017\n\013DISAPPROVED\020\002\022\024\n\020APPR" + "OVED_LIMITED\020\003\022\014\n\010APPROVED\020\004\022\031\n\025AREA_OF_" + - "INTEREST_ONLY\020\005B\312\001\n!com.google.ads.googl" + + "INTEREST_ONLY\020\005B\356\001\n!com.google.ads.googl" + "eads.v0.enumsB\031PolicyApprovalStatusProto" + "P\001ZBgoogle.golang.org/genproto/googleapi" + "s/ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035G" + "oogle.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ad" + - "s\\GoogleAds\\V0\\Enumsb\006proto3" + "s\\GoogleAds\\V0\\Enums\352\002!Google::Ads::Goog" + + "leAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PolicyReviewStatusProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PolicyReviewStatusProto.java index 2e65b5168e..1e81b15048 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PolicyReviewStatusProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PolicyReviewStatusProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( ".v0.enums\"\204\001\n\026PolicyReviewStatusEnum\"j\n\022" + "PolicyReviewStatus\022\017\n\013UNSPECIFIED\020\000\022\013\n\007U" + "NKNOWN\020\001\022\026\n\022REVIEW_IN_PROGRESS\020\002\022\014\n\010REVI" + - "EWED\020\003\022\020\n\014UNDER_APPEAL\020\004B\310\001\n!com.google." + + "EWED\020\003\022\020\n\014UNDER_APPEAL\020\004B\354\001\n!com.google." + "ads.googleads.v0.enumsB\027PolicyReviewStat" + "usProtoP\001ZBgoogle.golang.org/genproto/go" + "ogleapis/ads/googleads/v0/enums;enums\242\002\003" + "GAA\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035Go" + - "ogle\\Ads\\GoogleAds\\V0\\Enumsb\006proto3" + "ogle\\Ads\\GoogleAds\\V0\\Enums\352\002!Google::Ad" + + "s::GoogleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PolicyTopicEntryTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PolicyTopicEntryTypeProto.java index a670d201a7..2782331648 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PolicyTopicEntryTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PolicyTopicEntryTypeProto.java @@ -34,12 +34,13 @@ public static void registerAllExtensions( "m\"\215\001\n\024PolicyTopicEntryType\022\017\n\013UNSPECIFIE" + "D\020\000\022\013\n\007UNKNOWN\020\001\022\016\n\nPROHIBITED\020\002\022\013\n\007LIMI" + "TED\020\004\022\017\n\013DESCRIPTIVE\020\005\022\016\n\nBROADENING\020\006\022\031" + - "\n\025AREA_OF_INTEREST_ONLY\020\007B\312\001\n!com.google" + + "\n\025AREA_OF_INTEREST_ONLY\020\007B\356\001\n!com.google" + ".ads.googleads.v0.enumsB\031PolicyTopicEntr" + "yTypeProtoP\001ZBgoogle.golang.org/genproto" + "/googleapis/ads/googleads/v0/enums;enums" + "\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002" + - "\035Google\\Ads\\GoogleAds\\V0\\Enumsb\006proto3" + "\035Google\\Ads\\GoogleAds\\V0\\Enums\352\002!Google:" + + ":Ads::GoogleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PolicyTopicEvidenceDestinationMismatchUrlTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PolicyTopicEvidenceDestinationMismatchUrlTypeProto.java index eb377fd2bd..9ca3206545 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PolicyTopicEvidenceDestinationMismatchUrlTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PolicyTopicEvidenceDestinationMismatchUrlTypeProto.java @@ -36,13 +36,14 @@ public static void registerAllExtensions( "stinationMismatchUrlType\022\017\n\013UNSPECIFIED\020" + "\000\022\013\n\007UNKNOWN\020\001\022\017\n\013DISPLAY_URL\020\002\022\r\n\tFINAL" + "_URL\020\003\022\024\n\020FINAL_MOBILE_URL\020\004\022\020\n\014TRACKING" + - "_URL\020\005\022\027\n\023MOBILE_TRACKING_URL\020\006B\343\001\n!com." + + "_URL\020\005\022\027\n\023MOBILE_TRACKING_URL\020\006B\207\002\n!com." + "google.ads.googleads.v0.enumsB2PolicyTop" + "icEvidenceDestinationMismatchUrlTypeProt" + "oP\001ZBgoogle.golang.org/genproto/googleap" + "is/ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035" + "Google.Ads.GoogleAds.V0.Enums\312\002\035Google\\A" + - "ds\\GoogleAds\\V0\\Enumsb\006proto3" + "ds\\GoogleAds\\V0\\Enums\352\002!Google::Ads::Goo" + + "gleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PreferredContentTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PreferredContentTypeProto.java index c708659cb8..cf544bcd30 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PreferredContentTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PreferredContentTypeProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "ds.v0.enums\"j\n\030PreferredContentTypeEnum\"" + "N\n\024PreferredContentType\022\017\n\013UNSPECIFIED\020\000" + "\022\013\n\007UNKNOWN\020\001\022\030\n\023YOUTUBE_TOP_CONTENT\020\220\003B" + - "\312\001\n!com.google.ads.googleads.v0.enumsB\031P" + + "\356\001\n!com.google.ads.googleads.v0.enumsB\031P" + "referredContentTypeProtoP\001ZBgoogle.golan" + "g.org/genproto/googleapis/ads/googleads/" + "v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.Google" + "Ads.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\E" + - "numsb\006proto3" + "nums\352\002!Google::Ads::GoogleAds::V0::Enums" + + "b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PricePlaceholderFieldProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PricePlaceholderFieldProto.java index ac44c8bfb1..b76c12fa97 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PricePlaceholderFieldProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PricePlaceholderFieldProto.java @@ -61,13 +61,14 @@ public static void registerAllExtensions( "_FINAL_MOBILE_URLS\020\301\005\022\022\n\rITEM_8_HEADER\020\240" + "\006\022\027\n\022ITEM_8_DESCRIPTION\020\241\006\022\021\n\014ITEM_8_PRI" + "CE\020\242\006\022\020\n\013ITEM_8_UNIT\020\243\006\022\026\n\021ITEM_8_FINAL_" + - "URLS\020\244\006\022\035\n\030ITEM_8_FINAL_MOBILE_URLS\020\245\006B\313" + + "URLS\020\244\006\022\035\n\030ITEM_8_FINAL_MOBILE_URLS\020\245\006B\357" + "\001\n!com.google.ads.googleads.v0.enumsB\032Pr" + "icePlaceholderFieldProtoP\001ZBgoogle.golan" + "g.org/genproto/googleapis/ads/googleads/" + "v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.Google" + "Ads.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\E" + - "numsb\006proto3" + "nums\352\002!Google::Ads::GoogleAds::V0::Enums" + + "b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ProductChannelExclusivityProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ProductChannelExclusivityProto.java index 9fbc718c1f..33427b074c 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ProductChannelExclusivityProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ProductChannelExclusivityProto.java @@ -33,13 +33,14 @@ public static void registerAllExtensions( "ogleads.v0.enums\"\201\001\n\035ProductChannelExclu" + "sivityEnum\"`\n\031ProductChannelExclusivity\022" + "\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\022\n\016SINGLE_" + - "CHANNEL\020\002\022\021\n\rMULTI_CHANNEL\020\003B\317\001\n!com.goo" + + "CHANNEL\020\002\022\021\n\rMULTI_CHANNEL\020\003B\363\001\n!com.goo" + "gle.ads.googleads.v0.enumsB\036ProductChann" + "elExclusivityProtoP\001ZBgoogle.golang.org/" + "genproto/googleapis/ads/googleads/v0/enu" + "ms;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0" + - ".Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enumsb\006" + - "proto3" + ".Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums\352\002" + + "!Google::Ads::GoogleAds::V0::Enumsb\006prot" + + "o3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ProductChannelProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ProductChannelProto.java index cb50579881..ab10d58ce3 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ProductChannelProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ProductChannelProto.java @@ -32,12 +32,13 @@ public static void registerAllExtensions( "channel.proto\022\035google.ads.googleads.v0.e" + "nums\"[\n\022ProductChannelEnum\"E\n\016ProductCha" + "nnel\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\n\n\006ON" + - "LINE\020\002\022\t\n\005LOCAL\020\003B\304\001\n!com.google.ads.goo" + + "LINE\020\002\022\t\n\005LOCAL\020\003B\350\001\n!com.google.ads.goo" + "gleads.v0.enumsB\023ProductChannelProtoP\001ZB" + "google.golang.org/genproto/googleapis/ad" + "s/googleads/v0/enums;enums\242\002\003GAA\252\002\035Googl" + "e.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\Go" + - "ogleAds\\V0\\Enumsb\006proto3" + "ogleAds\\V0\\Enums\352\002!Google::Ads::GoogleAd" + + "s::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ProductConditionProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ProductConditionProto.java index 62ebee49d6..dbfd2969d2 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ProductConditionProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ProductConditionProto.java @@ -32,13 +32,14 @@ public static void registerAllExtensions( "condition.proto\022\035google.ads.googleads.v0" + ".enums\"l\n\024ProductConditionEnum\"T\n\020Produc" + "tCondition\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001" + - "\022\007\n\003NEW\020\003\022\017\n\013REFURBISHED\020\004\022\010\n\004USED\020\005B\306\001\n" + + "\022\007\n\003NEW\020\003\022\017\n\013REFURBISHED\020\004\022\010\n\004USED\020\005B\352\001\n" + "!com.google.ads.googleads.v0.enumsB\025Prod" + "uctConditionProtoP\001ZBgoogle.golang.org/g" + "enproto/googleapis/ads/googleads/v0/enum" + "s;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0." + - "Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enumsb\006p" + - "roto3" + "Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums\352\002!" + + "Google::Ads::GoogleAds::V0::Enumsb\006proto" + + "3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ProductTypeLevelProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ProductTypeLevelProto.java index b769db19eb..fa99e837ff 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ProductTypeLevelProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ProductTypeLevelProto.java @@ -34,12 +34,13 @@ public static void registerAllExtensions( "ductTypeLevel\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOW" + "N\020\001\022\023\n\017PRODUCT_TYPE_L1\020\002\022\023\n\017PRODUCT_TYPE" + "_L2\020\003\022\023\n\017PRODUCT_TYPE_L3\020\004\022\023\n\017PRODUCT_TY" + - "PE_L4\020\005\022\023\n\017PRODUCT_TYPE_L5\020\006B\306\001\n!com.goo" + + "PE_L4\020\005\022\023\n\017PRODUCT_TYPE_L5\020\006B\352\001\n!com.goo" + "gle.ads.googleads.v0.enumsB\025ProductTypeL" + "evelProtoP\001ZBgoogle.golang.org/genproto/" + "googleapis/ads/googleads/v0/enums;enums\242" + "\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035" + - "Google\\Ads\\GoogleAds\\V0\\Enumsb\006proto3" + "Google\\Ads\\GoogleAds\\V0\\Enums\352\002!Google::" + + "Ads::GoogleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PromotionPlaceholderFieldProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PromotionPlaceholderFieldProto.java index ad171e6077..0ddf116bd1 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PromotionPlaceholderFieldProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/PromotionPlaceholderFieldProto.java @@ -39,13 +39,13 @@ public static void registerAllExtensions( "\n\017PROMOTION_START\020\010\022\021\n\rPROMOTION_END\020\t\022\014" + "\n\010OCCASION\020\n\022\016\n\nFINAL_URLS\020\013\022\025\n\021FINAL_MO" + "BILE_URLS\020\014\022\020\n\014TRACKING_URL\020\r\022\014\n\010LANGUAG" + - "E\020\016\022\024\n\020FINAL_URL_SUFFIX\020\017B\317\001\n!com.google" + + "E\020\016\022\024\n\020FINAL_URL_SUFFIX\020\017B\363\001\n!com.google" + ".ads.googleads.v0.enumsB\036PromotionPlaceh" + "olderFieldProtoP\001ZBgoogle.golang.org/gen" + "proto/googleapis/ads/googleads/v0/enums;" + "enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.En" + - "ums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enumsb\006pro" + - "to3" + "ums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums\352\002!Go" + + "ogle::Ads::GoogleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ProximityRadiusUnitsProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ProximityRadiusUnitsProto.java index e9b2409e40..cc72703f46 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ProximityRadiusUnitsProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/ProximityRadiusUnitsProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "ds.v0.enums\"k\n\030ProximityRadiusUnitsEnum\"" + "O\n\024ProximityRadiusUnits\022\017\n\013UNSPECIFIED\020\000" + "\022\013\n\007UNKNOWN\020\001\022\t\n\005MILES\020\002\022\016\n\nKILOMETERS\020\003" + - "B\312\001\n!com.google.ads.googleads.v0.enumsB\031" + + "B\356\001\n!com.google.ads.googleads.v0.enumsB\031" + "ProximityRadiusUnitsProtoP\001ZBgoogle.gola" + "ng.org/genproto/googleapis/ads/googleads" + "/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.Googl" + "eAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\" + - "Enumsb\006proto3" + "Enums\352\002!Google::Ads::GoogleAds::V0::Enum" + + "sb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/QualityScoreBucketProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/QualityScoreBucketProto.java index d4b66c4117..e128cda365 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/QualityScoreBucketProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/QualityScoreBucketProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( ".v0.enums\"\177\n\026QualityScoreBucketEnum\"e\n\022Q" + "ualityScoreBucket\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UN" + "KNOWN\020\001\022\021\n\rBELOW_AVERAGE\020\002\022\013\n\007AVERAGE\020\003\022" + - "\021\n\rABOVE_AVERAGE\020\004B\310\001\n!com.google.ads.go" + + "\021\n\rABOVE_AVERAGE\020\004B\354\001\n!com.google.ads.go" + "ogleads.v0.enumsB\027QualityScoreBucketProt" + "oP\001ZBgoogle.golang.org/genproto/googleap" + "is/ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035" + "Google.Ads.GoogleAds.V0.Enums\312\002\035Google\\A" + - "ds\\GoogleAds\\V0\\Enumsb\006proto3" + "ds\\GoogleAds\\V0\\Enums\352\002!Google::Ads::Goo" + + "gleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/RealEstatePlaceholderFieldProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/RealEstatePlaceholderFieldProto.java index b2561e5ce9..df747a22b9 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/RealEstatePlaceholderFieldProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/RealEstatePlaceholderFieldProto.java @@ -41,12 +41,13 @@ public static void registerAllExtensions( "\n\021FINAL_MOBILE_URLS\020\016\022\020\n\014TRACKING_URL\020\017\022" + "\024\n\020ANDROID_APP_LINK\020\020\022\027\n\023SIMILAR_LISTING" + "_IDS\020\021\022\020\n\014IOS_APP_LINK\020\022\022\024\n\020IOS_APP_STOR" + - "E_ID\020\023B\320\001\n!com.google.ads.googleads.v0.e" + + "E_ID\020\023B\364\001\n!com.google.ads.googleads.v0.e" + "numsB\037RealEstatePlaceholderFieldProtoP\001Z" + "Bgoogle.golang.org/genproto/googleapis/a" + "ds/googleads/v0/enums;enums\242\002\003GAA\252\002\035Goog" + "le.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\G" + - "oogleAds\\V0\\Enumsb\006proto3" + "oogleAds\\V0\\Enums\352\002!Google::Ads::GoogleA" + + "ds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/RecommendationTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/RecommendationTypeProto.java index 53820db93e..7839bd27a7 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/RecommendationTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/RecommendationTypeProto.java @@ -37,12 +37,13 @@ public static void registerAllExtensions( "\n\033MAXIMIZE_CONVERSIONS_OPT_IN\020\006\022\027\n\023ENHAN" + "CED_CPC_OPT_IN\020\007\022\032\n\026SEARCH_PARTNERS_OPT_" + "IN\020\010\022\032\n\026MAXIMIZE_CLICKS_OPT_IN\020\t\022\030\n\024OPTI" + - "MIZE_AD_ROTATION\020\nB\310\001\n!com.google.ads.go" + + "MIZE_AD_ROTATION\020\nB\354\001\n!com.google.ads.go" + "ogleads.v0.enumsB\027RecommendationTypeProt" + "oP\001ZBgoogle.golang.org/genproto/googleap" + "is/ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035" + "Google.Ads.GoogleAds.V0.Enums\312\002\035Google\\A" + - "ds\\GoogleAds\\V0\\Enumsb\006proto3" + "ds\\GoogleAds\\V0\\Enums\352\002!Google::Ads::Goo" + + "gleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/SearchTermMatchTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/SearchTermMatchTypeProto.java index febb210432..3d10bf64b4 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/SearchTermMatchTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/SearchTermMatchTypeProto.java @@ -34,12 +34,13 @@ public static void registerAllExtensions( "v\n\023SearchTermMatchType\022\017\n\013UNSPECIFIED\020\000\022" + "\013\n\007UNKNOWN\020\001\022\t\n\005BROAD\020\002\022\t\n\005EXACT\020\003\022\n\n\006PH" + "RASE\020\004\022\016\n\nNEAR_EXACT\020\005\022\017\n\013NEAR_PHRASE\020\006B" + - "\311\001\n!com.google.ads.googleads.v0.enumsB\030S" + + "\355\001\n!com.google.ads.googleads.v0.enumsB\030S" + "earchTermMatchTypeProtoP\001ZBgoogle.golang" + ".org/genproto/googleapis/ads/googleads/v" + "0/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleA" + "ds.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\En" + - "umsb\006proto3" + "ums\352\002!Google::Ads::GoogleAds::V0::Enumsb" + + "\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/SearchTermTargetingStatusProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/SearchTermTargetingStatusProto.java index a13c6a1a3e..a17fd0c20f 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/SearchTermTargetingStatusProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/SearchTermTargetingStatusProto.java @@ -34,12 +34,13 @@ public static void registerAllExtensions( "gStatusEnum\"p\n\031SearchTermTargetingStatus" + "\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\t\n\005ADDED\020" + "\002\022\014\n\010EXCLUDED\020\003\022\022\n\016ADDED_EXCLUDED\020\004\022\010\n\004N" + - "ONE\020\005B\317\001\n!com.google.ads.googleads.v0.en" + + "ONE\020\005B\363\001\n!com.google.ads.googleads.v0.en" + "umsB\036SearchTermTargetingStatusProtoP\001ZBg" + "oogle.golang.org/genproto/googleapis/ads" + "/googleads/v0/enums;enums\242\002\003GAA\252\002\035Google" + ".Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\Goo" + - "gleAds\\V0\\Enumsb\006proto3" + "gleAds\\V0\\Enums\352\002!Google::Ads::GoogleAds" + + "::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/SharedSetStatusProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/SharedSetStatusProto.java index 06ea169416..acd92e3224 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/SharedSetStatusProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/SharedSetStatusProto.java @@ -32,12 +32,13 @@ public static void registerAllExtensions( "et_status.proto\022\035google.ads.googleads.v0" + ".enums\"`\n\023SharedSetStatusEnum\"I\n\017SharedS" + "etStatus\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\013" + - "\n\007ENABLED\020\002\022\013\n\007REMOVED\020\003B\305\001\n!com.google." + + "\n\007ENABLED\020\002\022\013\n\007REMOVED\020\003B\351\001\n!com.google." + "ads.googleads.v0.enumsB\024SharedSetStatusP" + "rotoP\001ZBgoogle.golang.org/genproto/googl" + "eapis/ads/googleads/v0/enums;enums\242\002\003GAA" + "\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035Googl" + - "e\\Ads\\GoogleAds\\V0\\Enumsb\006proto3" + "e\\Ads\\GoogleAds\\V0\\Enums\352\002!Google::Ads::" + + "GoogleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/SharedSetTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/SharedSetTypeProto.java index dc1df89b8b..b0a774d616 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/SharedSetTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/SharedSetTypeProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "nums\"r\n\021SharedSetTypeEnum\"]\n\rSharedSetTy" + "pe\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\025\n\021NEGA" + "TIVE_KEYWORDS\020\002\022\027\n\023NEGATIVE_PLACEMENTS\020\003" + - "B\303\001\n!com.google.ads.googleads.v0.enumsB\022" + + "B\347\001\n!com.google.ads.googleads.v0.enumsB\022" + "SharedSetTypeProtoP\001ZBgoogle.golang.org/" + "genproto/googleapis/ads/googleads/v0/enu" + "ms;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0" + - ".Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enumsb\006" + - "proto3" + ".Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums\352\002" + + "!Google::Ads::GoogleAds::V0::Enumsb\006prot" + + "o3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/SitelinkPlaceholderFieldProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/SitelinkPlaceholderFieldProto.java index 9096f38f82..67e533cb8b 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/SitelinkPlaceholderFieldProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/SitelinkPlaceholderFieldProto.java @@ -35,12 +35,13 @@ public static void registerAllExtensions( "\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\010\n\004TEXT\020\002\022\n\n" + "\006LINE_1\020\003\022\n\n\006LINE_2\020\004\022\016\n\nFINAL_URLS\020\005\022\025\n" + "\021FINAL_MOBILE_URLS\020\006\022\020\n\014TRACKING_URL\020\007\022\024" + - "\n\020FINAL_URL_SUFFIX\020\010B\316\001\n!com.google.ads." + + "\n\020FINAL_URL_SUFFIX\020\010B\362\001\n!com.google.ads." + "googleads.v0.enumsB\035SitelinkPlaceholderF" + "ieldProtoP\001ZBgoogle.golang.org/genproto/" + "googleapis/ads/googleads/v0/enums;enums\242" + "\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035" + - "Google\\Ads\\GoogleAds\\V0\\Enumsb\006proto3" + "Google\\Ads\\GoogleAds\\V0\\Enums\352\002!Google::" + + "Ads::GoogleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/SlotProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/SlotProto.java index ca52e00d6c..28d597e14c 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/SlotProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/SlotProto.java @@ -34,12 +34,13 @@ public static void registerAllExtensions( "OWN\020\001\022\017\n\013SEARCH_SIDE\020\002\022\016\n\nSEARCH_TOP\020\003\022\020" + "\n\014SEARCH_OTHER\020\004\022\013\n\007CONTENT\020\005\022\026\n\022SEARCH_" + "PARTNER_TOP\020\006\022\030\n\024SEARCH_PARTNER_OTHER\020\007\022" + - "\t\n\005MIXED\020\010B\272\001\n!com.google.ads.googleads." + + "\t\n\005MIXED\020\010B\336\001\n!com.google.ads.googleads." + "v0.enumsB\tSlotProtoP\001ZBgoogle.golang.org" + "/genproto/googleapis/ads/googleads/v0/en" + "ums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V" + - "0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enumsb" + - "\006proto3" + "0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums\352" + + "\002!Google::Ads::GoogleAds::V0::Enumsb\006pro" + + "to3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/SpendingLimitTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/SpendingLimitTypeProto.java index 7ba674b58d..c558b1c371 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/SpendingLimitTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/SpendingLimitTypeProto.java @@ -32,12 +32,13 @@ public static void registerAllExtensions( "_limit_type.proto\022\035google.ads.googleads." + "v0.enums\"X\n\025SpendingLimitTypeEnum\"?\n\021Spe" + "ndingLimitType\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNO" + - "WN\020\001\022\014\n\010INFINITE\020\002B\307\001\n!com.google.ads.go" + + "WN\020\001\022\014\n\010INFINITE\020\002B\353\001\n!com.google.ads.go" + "ogleads.v0.enumsB\026SpendingLimitTypeProto" + "P\001ZBgoogle.golang.org/genproto/googleapi" + "s/ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035G" + "oogle.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ad" + - "s\\GoogleAds\\V0\\Enumsb\006proto3" + "s\\GoogleAds\\V0\\Enums\352\002!Google::Ads::Goog" + + "leAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/StructuredSnippetPlaceholderFieldProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/StructuredSnippetPlaceholderFieldProto.java index f635490d0d..67961ed6d0 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/StructuredSnippetPlaceholderFieldProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/StructuredSnippetPlaceholderFieldProto.java @@ -34,12 +34,13 @@ public static void registerAllExtensions( "SnippetPlaceholderFieldEnum\"[\n!Structure" + "dSnippetPlaceholderField\022\017\n\013UNSPECIFIED\020" + "\000\022\013\n\007UNKNOWN\020\001\022\n\n\006HEADER\020\002\022\014\n\010SNIPPETS\020\003" + - "B\327\001\n!com.google.ads.googleads.v0.enumsB&" + + "B\373\001\n!com.google.ads.googleads.v0.enumsB&" + "StructuredSnippetPlaceholderFieldProtoP\001" + "ZBgoogle.golang.org/genproto/googleapis/" + "ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035Goo" + "gle.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\" + - "GoogleAds\\V0\\Enumsb\006proto3" + "GoogleAds\\V0\\Enums\352\002!Google::Ads::Google" + + "Ads::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/TargetCpaOptInRecommendationGoalProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/TargetCpaOptInRecommendationGoalProto.java index 1cf51d573f..861a65e980 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/TargetCpaOptInRecommendationGoalProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/TargetCpaOptInRecommendationGoalProto.java @@ -35,12 +35,13 @@ public static void registerAllExtensions( "aOptInRecommendationGoal\022\017\n\013UNSPECIFIED\020" + "\000\022\013\n\007UNKNOWN\020\001\022\r\n\tSAME_COST\020\002\022\024\n\020SAME_CO" + "NVERSIONS\020\003\022\014\n\010SAME_CPA\020\004\022\017\n\013CLOSEST_CPA" + - "\020\005B\326\001\n!com.google.ads.googleads.v0.enums" + + "\020\005B\372\001\n!com.google.ads.googleads.v0.enums" + "B%TargetCpaOptInRecommendationGoalProtoP" + "\001ZBgoogle.golang.org/genproto/googleapis" + "/ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035Go" + "ogle.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads" + - "\\GoogleAds\\V0\\Enumsb\006proto3" + "\\GoogleAds\\V0\\Enums\352\002!Google::Ads::Googl" + + "eAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/TargetingDimensionProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/TargetingDimensionProto.java index 9884f73b03..087b40fdc3 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/TargetingDimensionProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/TargetingDimensionProto.java @@ -35,12 +35,13 @@ public static void registerAllExtensions( "NKNOWN\020\001\022\013\n\007KEYWORD\020\002\022\014\n\010AUDIENCE\020\003\022\t\n\005T" + "OPIC\020\004\022\n\n\006GENDER\020\005\022\r\n\tAGE_RANGE\020\006\022\r\n\tPLA" + "CEMENT\020\007\022\023\n\017PARENTAL_STATUS\020\010\022\020\n\014INCOME_" + - "RANGE\020\tB\310\001\n!com.google.ads.googleads.v0." + + "RANGE\020\tB\354\001\n!com.google.ads.googleads.v0." + "enumsB\027TargetingDimensionProtoP\001ZBgoogle" + ".golang.org/genproto/googleapis/ads/goog" + "leads/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads." + "GoogleAds.V0.Enums\312\002\035Google\\Ads\\GoogleAd" + - "s\\V0\\Enumsb\006proto3" + "s\\V0\\Enums\352\002!Google::Ads::GoogleAds::V0:" + + ":Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/TimeTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/TimeTypeProto.java index 541283ede5..d2f82d4500 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/TimeTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/TimeTypeProto.java @@ -31,12 +31,13 @@ public static void registerAllExtensions( "\n-google/ads/googleads/v0/enums/time_typ" + "e.proto\022\035google.ads.googleads.v0.enums\"N" + "\n\014TimeTypeEnum\">\n\010TimeType\022\017\n\013UNSPECIFIE" + - "D\020\000\022\013\n\007UNKNOWN\020\001\022\007\n\003NOW\020\002\022\013\n\007FOREVER\020\003B\276" + + "D\020\000\022\013\n\007UNKNOWN\020\001\022\007\n\003NOW\020\002\022\013\n\007FOREVER\020\003B\342" + "\001\n!com.google.ads.googleads.v0.enumsB\rTi" + "meTypeProtoP\001ZBgoogle.golang.org/genprot" + "o/googleapis/ads/googleads/v0/enums;enum" + "s\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enums\312" + - "\002\035Google\\Ads\\GoogleAds\\V0\\Enumsb\006proto3" + "\002\035Google\\Ads\\GoogleAds\\V0\\Enums\352\002!Google" + + "::Ads::GoogleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/TrackingCodePageFormatProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/TrackingCodePageFormatProto.java index 658c00072b..5dbb66a045 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/TrackingCodePageFormatProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/TrackingCodePageFormatProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "leads.v0.enums\"g\n\032TrackingCodePageFormat" + "Enum\"I\n\026TrackingCodePageFormat\022\017\n\013UNSPEC" + "IFIED\020\000\022\013\n\007UNKNOWN\020\001\022\010\n\004HTML\020\002\022\007\n\003AMP\020\003B" + - "\314\001\n!com.google.ads.googleads.v0.enumsB\033T" + + "\360\001\n!com.google.ads.googleads.v0.enumsB\033T" + "rackingCodePageFormatProtoP\001ZBgoogle.gol" + "ang.org/genproto/googleapis/ads/googlead" + "s/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.Goog" + "leAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0" + - "\\Enumsb\006proto3" + "\\Enums\352\002!Google::Ads::GoogleAds::V0::Enu" + + "msb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/TrackingCodeTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/TrackingCodeTypeProto.java index 2548fbbd54..d644a0cc29 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/TrackingCodeTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/TrackingCodeTypeProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "0.enums\"}\n\024TrackingCodeTypeEnum\"e\n\020Track" + "ingCodeType\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020" + "\001\022\013\n\007WEBPAGE\020\002\022\023\n\017WEBPAGE_ONCLICK\020\003\022\021\n\rC" + - "LICK_TO_CALL\020\004B\306\001\n!com.google.ads.google" + + "LICK_TO_CALL\020\004B\352\001\n!com.google.ads.google" + "ads.v0.enumsB\025TrackingCodeTypeProtoP\001ZBg" + "oogle.golang.org/genproto/googleapis/ads" + "/googleads/v0/enums;enums\242\002\003GAA\252\002\035Google" + ".Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\Goo" + - "gleAds\\V0\\Enumsb\006proto3" + "gleAds\\V0\\Enums\352\002!Google::Ads::GoogleAds" + + "::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/TravelPlaceholderFieldProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/TravelPlaceholderFieldProto.java index 635941d721..7e42cc420a 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/TravelPlaceholderFieldProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/TravelPlaceholderFieldProto.java @@ -42,12 +42,13 @@ public static void registerAllExtensions( "NAL_MOBILE_URLS\020\020\022\020\n\014TRACKING_URL\020\021\022\024\n\020A" + "NDROID_APP_LINK\020\022\022\033\n\027SIMILAR_DESTINATION" + "_IDS\020\023\022\020\n\014IOS_APP_LINK\020\024\022\024\n\020IOS_APP_STOR" + - "E_ID\020\025B\314\001\n!com.google.ads.googleads.v0.e" + + "E_ID\020\025B\360\001\n!com.google.ads.googleads.v0.e" + "numsB\033TravelPlaceholderFieldProtoP\001ZBgoo" + "gle.golang.org/genproto/googleapis/ads/g" + "oogleads/v0/enums;enums\242\002\003GAA\252\002\035Google.A" + "ds.GoogleAds.V0.Enums\312\002\035Google\\Ads\\Googl" + - "eAds\\V0\\Enumsb\006proto3" + "eAds\\V0\\Enums\352\002!Google::Ads::GoogleAds::" + + "V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserInterestTaxonomyTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserInterestTaxonomyTypeProto.java index 6d80c05959..f0e40ae549 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserInterestTaxonomyTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserInterestTaxonomyTypeProto.java @@ -35,12 +35,13 @@ public static void registerAllExtensions( "\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\014\n\010AFFINITY" + "\020\002\022\r\n\tIN_MARKET\020\003\022\033\n\027MOBILE_APP_INSTALL_" + "USER\020\004\022\020\n\014VERTICAL_GEO\020\005\022\030\n\024NEW_SMART_PH" + - "ONE_USER\020\006B\316\001\n!com.google.ads.googleads." + + "ONE_USER\020\006B\362\001\n!com.google.ads.googleads." + "v0.enumsB\035UserInterestTaxonomyTypeProtoP" + "\001ZBgoogle.golang.org/genproto/googleapis" + "/ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035Go" + "ogle.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads" + - "\\GoogleAds\\V0\\Enumsb\006proto3" + "\\GoogleAds\\V0\\Enums\352\002!Google::Ads::Googl" + + "eAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListAccessStatusProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListAccessStatusProto.java index 282aad2a07..e23fd1bb25 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListAccessStatusProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListAccessStatusProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "ads.v0.enums\"k\n\030UserListAccessStatusEnum" + "\"O\n\024UserListAccessStatus\022\017\n\013UNSPECIFIED\020" + "\000\022\013\n\007UNKNOWN\020\001\022\013\n\007ENABLED\020\002\022\014\n\010DISABLED\020" + - "\003B\312\001\n!com.google.ads.googleads.v0.enumsB" + + "\003B\356\001\n!com.google.ads.googleads.v0.enumsB" + "\031UserListAccessStatusProtoP\001ZBgoogle.gol" + "ang.org/genproto/googleapis/ads/googlead" + "s/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.Goog" + "leAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0" + - "\\Enumsb\006proto3" + "\\Enums\352\002!Google::Ads::GoogleAds::V0::Enu" + + "msb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListClosingReasonProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListClosingReasonProto.java index df1ac551b6..3fc8875f7b 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListClosingReasonProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListClosingReasonProto.java @@ -32,13 +32,13 @@ public static void registerAllExtensions( "t_closing_reason.proto\022\035google.ads.googl" + "eads.v0.enums\"^\n\031UserListClosingReasonEn" + "um\"A\n\025UserListClosingReason\022\017\n\013UNSPECIFI" + - "ED\020\000\022\013\n\007UNKNOWN\020\001\022\n\n\006UNUSED\020\002B\313\001\n!com.go" + + "ED\020\000\022\013\n\007UNKNOWN\020\001\022\n\n\006UNUSED\020\002B\357\001\n!com.go" + "ogle.ads.googleads.v0.enumsB\032UserListClo" + "singReasonProtoP\001ZBgoogle.golang.org/gen" + "proto/googleapis/ads/googleads/v0/enums;" + "enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.En" + - "ums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enumsb\006pro" + - "to3" + "ums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums\352\002!Go" + + "ogle::Ads::GoogleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListCombinedRuleOperatorEnum.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListCombinedRuleOperatorEnum.java new file mode 100644 index 0000000000..7eee802930 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListCombinedRuleOperatorEnum.java @@ -0,0 +1,573 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/user_list_combined_rule_operator.proto + +package com.google.ads.googleads.v0.enums; + +/** + *
+ * Logical operator connecting two rules.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum} + */ +public final class UserListCombinedRuleOperatorEnum extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum) + UserListCombinedRuleOperatorEnumOrBuilder { +private static final long serialVersionUID = 0L; + // Use UserListCombinedRuleOperatorEnum.newBuilder() to construct. + private UserListCombinedRuleOperatorEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UserListCombinedRuleOperatorEnum() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserListCombinedRuleOperatorEnum( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorProto.internal_static_google_ads_googleads_v0_enums_UserListCombinedRuleOperatorEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorProto.internal_static_google_ads_googleads_v0_enums_UserListCombinedRuleOperatorEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum.class, com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum.Builder.class); + } + + /** + *
+   * Enum describing possible user list combined rule operators.
+   * 
+ * + * Protobuf enum {@code google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator} + */ + public enum UserListCombinedRuleOperator + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + UNKNOWN(1), + /** + *
+     * A AND B.
+     * 
+ * + * AND = 2; + */ + AND(2), + /** + *
+     * A AND NOT B.
+     * 
+ * + * AND_NOT = 3; + */ + AND_NOT(3), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + public static final int UNKNOWN_VALUE = 1; + /** + *
+     * A AND B.
+     * 
+ * + * AND = 2; + */ + public static final int AND_VALUE = 2; + /** + *
+     * A AND NOT B.
+     * 
+ * + * AND_NOT = 3; + */ + public static final int AND_NOT_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static UserListCombinedRuleOperator valueOf(int value) { + return forNumber(value); + } + + public static UserListCombinedRuleOperator forNumber(int value) { + switch (value) { + case 0: return UNSPECIFIED; + case 1: return UNKNOWN; + case 2: return AND; + case 3: return AND_NOT; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + UserListCombinedRuleOperator> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public UserListCombinedRuleOperator findValueByNumber(int number) { + return UserListCombinedRuleOperator.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum.getDescriptor().getEnumTypes().get(0); + } + + private static final UserListCombinedRuleOperator[] VALUES = values(); + + public static UserListCombinedRuleOperator 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 UserListCombinedRuleOperator(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator) + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.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.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum other = (com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum 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.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum 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.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum 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.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum 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.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum 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; + } + /** + *
+   * Logical operator connecting two rules.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum) + com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorProto.internal_static_google_ads_googleads_v0_enums_UserListCombinedRuleOperatorEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorProto.internal_static_google_ads_googleads_v0_enums_UserListCombinedRuleOperatorEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum.class, com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorProto.internal_static_google_ads_googleads_v0_enums_UserListCombinedRuleOperatorEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum getDefaultInstanceForType() { + return com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum build() { + com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum buildPartial() { + com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum result = new com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum) { + return mergeFrom((com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum other) { + if (other == com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum) + private static final com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum(); + } + + public static com.google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserListCombinedRuleOperatorEnum parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserListCombinedRuleOperatorEnum(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListCombinedRuleOperatorEnumOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListCombinedRuleOperatorEnumOrBuilder.java new file mode 100644 index 0000000000..3ca310a26a --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListCombinedRuleOperatorEnumOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/user_list_combined_rule_operator.proto + +package com.google.ads.googleads.v0.enums; + +public interface UserListCombinedRuleOperatorEnumOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.enums.UserListCombinedRuleOperatorEnum) + com.google.protobuf.MessageOrBuilder { +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListCombinedRuleOperatorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListCombinedRuleOperatorProto.java new file mode 100644 index 0000000000..966a18801b --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListCombinedRuleOperatorProto.java @@ -0,0 +1,65 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/user_list_combined_rule_operator.proto + +package com.google.ads.googleads.v0.enums; + +public final class UserListCombinedRuleOperatorProto { + private UserListCombinedRuleOperatorProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_enums_UserListCombinedRuleOperatorEnum_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_enums_UserListCombinedRuleOperatorEnum_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nDgoogle/ads/googleads/v0/enums/user_lis" + + "t_combined_rule_operator.proto\022\035google.a" + + "ds.googleads.v0.enums\"v\n UserListCombine" + + "dRuleOperatorEnum\"R\n\034UserListCombinedRul" + + "eOperator\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022" + + "\007\n\003AND\020\002\022\013\n\007AND_NOT\020\003B\366\001\n!com.google.ads" + + ".googleads.v0.enumsB!UserListCombinedRul" + + "eOperatorProtoP\001ZBgoogle.golang.org/genp" + + "roto/googleapis/ads/googleads/v0/enums;e" + + "nums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enu" + + "ms\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums\352\002!Goo" + + "gle::Ads::GoogleAds::V0::Enumsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_google_ads_googleads_v0_enums_UserListCombinedRuleOperatorEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_googleads_v0_enums_UserListCombinedRuleOperatorEnum_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_enums_UserListCombinedRuleOperatorEnum_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListCrmDataSourceTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListCrmDataSourceTypeProto.java index 3683534937..746a527529 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListCrmDataSourceTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListCrmDataSourceTypeProto.java @@ -34,13 +34,14 @@ public static void registerAllExtensions( "ourceTypeEnum\"\205\001\n\031UserListCrmDataSourceT" + "ype\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\017\n\013FIR" + "ST_PARTY\020\002\022\035\n\031THIRD_PARTY_CREDIT_BUREAU\020" + - "\003\022\032\n\026THIRD_PARTY_VOTER_FILE\020\004B\317\001\n!com.go" + + "\003\022\032\n\026THIRD_PARTY_VOTER_FILE\020\004B\363\001\n!com.go" + "ogle.ads.googleads.v0.enumsB\036UserListCrm" + "DataSourceTypeProtoP\001ZBgoogle.golang.org" + "/genproto/googleapis/ads/googleads/v0/en" + "ums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V" + - "0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enumsb" + - "\006proto3" + "0.Enums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums\352" + + "\002!Google::Ads::GoogleAds::V0::Enumsb\006pro" + + "to3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListDateRuleItemOperatorEnum.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListDateRuleItemOperatorEnum.java new file mode 100644 index 0000000000..25f0102fb7 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListDateRuleItemOperatorEnum.java @@ -0,0 +1,607 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/user_list_date_rule_item_operator.proto + +package com.google.ads.googleads.v0.enums; + +/** + *
+ * Supported rule operator for date type.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum} + */ +public final class UserListDateRuleItemOperatorEnum extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum) + UserListDateRuleItemOperatorEnumOrBuilder { +private static final long serialVersionUID = 0L; + // Use UserListDateRuleItemOperatorEnum.newBuilder() to construct. + private UserListDateRuleItemOperatorEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UserListDateRuleItemOperatorEnum() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserListDateRuleItemOperatorEnum( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorProto.internal_static_google_ads_googleads_v0_enums_UserListDateRuleItemOperatorEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorProto.internal_static_google_ads_googleads_v0_enums_UserListDateRuleItemOperatorEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum.class, com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum.Builder.class); + } + + /** + *
+   * Enum describing possible user list date rule item operators.
+   * 
+ * + * Protobuf enum {@code google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator} + */ + public enum UserListDateRuleItemOperator + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + UNKNOWN(1), + /** + *
+     * Equals.
+     * 
+ * + * EQUALS = 2; + */ + EQUALS(2), + /** + *
+     * Not Equals.
+     * 
+ * + * NOT_EQUALS = 3; + */ + NOT_EQUALS(3), + /** + *
+     * Before.
+     * 
+ * + * BEFORE = 4; + */ + BEFORE(4), + /** + *
+     * After.
+     * 
+ * + * AFTER = 5; + */ + AFTER(5), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + public static final int UNKNOWN_VALUE = 1; + /** + *
+     * Equals.
+     * 
+ * + * EQUALS = 2; + */ + public static final int EQUALS_VALUE = 2; + /** + *
+     * Not Equals.
+     * 
+ * + * NOT_EQUALS = 3; + */ + public static final int NOT_EQUALS_VALUE = 3; + /** + *
+     * Before.
+     * 
+ * + * BEFORE = 4; + */ + public static final int BEFORE_VALUE = 4; + /** + *
+     * After.
+     * 
+ * + * AFTER = 5; + */ + public static final int AFTER_VALUE = 5; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static UserListDateRuleItemOperator valueOf(int value) { + return forNumber(value); + } + + public static UserListDateRuleItemOperator forNumber(int value) { + switch (value) { + case 0: return UNSPECIFIED; + case 1: return UNKNOWN; + case 2: return EQUALS; + case 3: return NOT_EQUALS; + case 4: return BEFORE; + case 5: return AFTER; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + UserListDateRuleItemOperator> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public UserListDateRuleItemOperator findValueByNumber(int number) { + return UserListDateRuleItemOperator.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum.getDescriptor().getEnumTypes().get(0); + } + + private static final UserListDateRuleItemOperator[] VALUES = values(); + + public static UserListDateRuleItemOperator 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 UserListDateRuleItemOperator(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator) + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.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.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum other = (com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum 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.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum 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.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum 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.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum 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.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum 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; + } + /** + *
+   * Supported rule operator for date type.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum) + com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorProto.internal_static_google_ads_googleads_v0_enums_UserListDateRuleItemOperatorEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorProto.internal_static_google_ads_googleads_v0_enums_UserListDateRuleItemOperatorEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum.class, com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorProto.internal_static_google_ads_googleads_v0_enums_UserListDateRuleItemOperatorEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum getDefaultInstanceForType() { + return com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum build() { + com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum buildPartial() { + com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum result = new com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum) { + return mergeFrom((com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum other) { + if (other == com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum) + private static final com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum(); + } + + public static com.google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserListDateRuleItemOperatorEnum parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserListDateRuleItemOperatorEnum(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListDateRuleItemOperatorEnumOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListDateRuleItemOperatorEnumOrBuilder.java new file mode 100644 index 0000000000..8292384582 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListDateRuleItemOperatorEnumOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/user_list_date_rule_item_operator.proto + +package com.google.ads.googleads.v0.enums; + +public interface UserListDateRuleItemOperatorEnumOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.enums.UserListDateRuleItemOperatorEnum) + com.google.protobuf.MessageOrBuilder { +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListDateRuleItemOperatorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListDateRuleItemOperatorProto.java new file mode 100644 index 0000000000..837aaf6d28 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListDateRuleItemOperatorProto.java @@ -0,0 +1,66 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/user_list_date_rule_item_operator.proto + +package com.google.ads.googleads.v0.enums; + +public final class UserListDateRuleItemOperatorProto { + private UserListDateRuleItemOperatorProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_enums_UserListDateRuleItemOperatorEnum_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_enums_UserListDateRuleItemOperatorEnum_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nEgoogle/ads/googleads/v0/enums/user_lis" + + "t_date_rule_item_operator.proto\022\035google." + + "ads.googleads.v0.enums\"\223\001\n UserListDateR" + + "uleItemOperatorEnum\"o\n\034UserListDateRuleI" + + "temOperator\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020" + + "\001\022\n\n\006EQUALS\020\002\022\016\n\nNOT_EQUALS\020\003\022\n\n\006BEFORE\020" + + "\004\022\t\n\005AFTER\020\005B\366\001\n!com.google.ads.googlead" + + "s.v0.enumsB!UserListDateRuleItemOperator" + + "ProtoP\001ZBgoogle.golang.org/genproto/goog" + + "leapis/ads/googleads/v0/enums;enums\242\002\003GA" + + "A\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035Goog" + + "le\\Ads\\GoogleAds\\V0\\Enums\352\002!Google::Ads:" + + ":GoogleAds::V0::Enumsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_google_ads_googleads_v0_enums_UserListDateRuleItemOperatorEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_googleads_v0_enums_UserListDateRuleItemOperatorEnum_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_enums_UserListDateRuleItemOperatorEnum_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListLogicalRuleOperatorEnum.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListLogicalRuleOperatorEnum.java new file mode 100644 index 0000000000..df294e8080 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListLogicalRuleOperatorEnum.java @@ -0,0 +1,590 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/user_list_logical_rule_operator.proto + +package com.google.ads.googleads.v0.enums; + +/** + *
+ * The logical operator of the rule.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum} + */ +public final class UserListLogicalRuleOperatorEnum extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum) + UserListLogicalRuleOperatorEnumOrBuilder { +private static final long serialVersionUID = 0L; + // Use UserListLogicalRuleOperatorEnum.newBuilder() to construct. + private UserListLogicalRuleOperatorEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UserListLogicalRuleOperatorEnum() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserListLogicalRuleOperatorEnum( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorProto.internal_static_google_ads_googleads_v0_enums_UserListLogicalRuleOperatorEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorProto.internal_static_google_ads_googleads_v0_enums_UserListLogicalRuleOperatorEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum.class, com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum.Builder.class); + } + + /** + *
+   * Enum describing possible user list logical rule operators.
+   * 
+ * + * Protobuf enum {@code google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum.UserListLogicalRuleOperator} + */ + public enum UserListLogicalRuleOperator + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + UNKNOWN(1), + /** + *
+     * And - all of the operands.
+     * 
+ * + * ALL = 2; + */ + ALL(2), + /** + *
+     * Or - at least one of the operands.
+     * 
+ * + * ANY = 3; + */ + ANY(3), + /** + *
+     * Not - none of the operands.
+     * 
+ * + * NONE = 4; + */ + NONE(4), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + public static final int UNKNOWN_VALUE = 1; + /** + *
+     * And - all of the operands.
+     * 
+ * + * ALL = 2; + */ + public static final int ALL_VALUE = 2; + /** + *
+     * Or - at least one of the operands.
+     * 
+ * + * ANY = 3; + */ + public static final int ANY_VALUE = 3; + /** + *
+     * Not - none of the operands.
+     * 
+ * + * NONE = 4; + */ + public static final int NONE_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static UserListLogicalRuleOperator valueOf(int value) { + return forNumber(value); + } + + public static UserListLogicalRuleOperator forNumber(int value) { + switch (value) { + case 0: return UNSPECIFIED; + case 1: return UNKNOWN; + case 2: return ALL; + case 3: return ANY; + case 4: return NONE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + UserListLogicalRuleOperator> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public UserListLogicalRuleOperator findValueByNumber(int number) { + return UserListLogicalRuleOperator.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum.getDescriptor().getEnumTypes().get(0); + } + + private static final UserListLogicalRuleOperator[] VALUES = values(); + + public static UserListLogicalRuleOperator 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 UserListLogicalRuleOperator(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum.UserListLogicalRuleOperator) + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.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.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum other = (com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum 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.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum 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.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum 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.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum 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.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum 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; + } + /** + *
+   * The logical operator of the rule.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum) + com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorProto.internal_static_google_ads_googleads_v0_enums_UserListLogicalRuleOperatorEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorProto.internal_static_google_ads_googleads_v0_enums_UserListLogicalRuleOperatorEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum.class, com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorProto.internal_static_google_ads_googleads_v0_enums_UserListLogicalRuleOperatorEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum getDefaultInstanceForType() { + return com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum build() { + com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum buildPartial() { + com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum result = new com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum) { + return mergeFrom((com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum other) { + if (other == com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum) + private static final com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum(); + } + + public static com.google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserListLogicalRuleOperatorEnum parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserListLogicalRuleOperatorEnum(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListLogicalRuleOperatorEnumOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListLogicalRuleOperatorEnumOrBuilder.java new file mode 100644 index 0000000000..303c1446c2 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListLogicalRuleOperatorEnumOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/user_list_logical_rule_operator.proto + +package com.google.ads.googleads.v0.enums; + +public interface UserListLogicalRuleOperatorEnumOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.enums.UserListLogicalRuleOperatorEnum) + com.google.protobuf.MessageOrBuilder { +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListLogicalRuleOperatorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListLogicalRuleOperatorProto.java new file mode 100644 index 0000000000..cb49a99f65 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListLogicalRuleOperatorProto.java @@ -0,0 +1,65 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/user_list_logical_rule_operator.proto + +package com.google.ads.googleads.v0.enums; + +public final class UserListLogicalRuleOperatorProto { + private UserListLogicalRuleOperatorProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_enums_UserListLogicalRuleOperatorEnum_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_enums_UserListLogicalRuleOperatorEnum_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nCgoogle/ads/googleads/v0/enums/user_lis" + + "t_logical_rule_operator.proto\022\035google.ad" + + "s.googleads.v0.enums\"z\n\037UserListLogicalR" + + "uleOperatorEnum\"W\n\033UserListLogicalRuleOp" + + "erator\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\007\n\003" + + "ALL\020\002\022\007\n\003ANY\020\003\022\010\n\004NONE\020\004B\365\001\n!com.google." + + "ads.googleads.v0.enumsB UserListLogicalR" + + "uleOperatorProtoP\001ZBgoogle.golang.org/ge" + + "nproto/googleapis/ads/googleads/v0/enums" + + ";enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.E" + + "nums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums\352\002!G" + + "oogle::Ads::GoogleAds::V0::Enumsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_google_ads_googleads_v0_enums_UserListLogicalRuleOperatorEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_googleads_v0_enums_UserListLogicalRuleOperatorEnum_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_enums_UserListLogicalRuleOperatorEnum_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListMembershipStatusProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListMembershipStatusProto.java index 4d661cd800..e765ac570d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListMembershipStatusProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListMembershipStatusProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "ogleads.v0.enums\"n\n\034UserListMembershipSt" + "atusEnum\"N\n\030UserListMembershipStatus\022\017\n\013" + "UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\010\n\004OPEN\020\002\022\n\n\006" + - "CLOSED\020\003B\316\001\n!com.google.ads.googleads.v0" + + "CLOSED\020\003B\362\001\n!com.google.ads.googleads.v0" + ".enumsB\035UserListMembershipStatusProtoP\001Z" + "Bgoogle.golang.org/genproto/googleapis/a" + "ds/googleads/v0/enums;enums\242\002\003GAA\252\002\035Goog" + "le.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\G" + - "oogleAds\\V0\\Enumsb\006proto3" + "oogleAds\\V0\\Enums\352\002!Google::Ads::GoogleA" + + "ds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListNumberRuleItemOperatorEnum.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListNumberRuleItemOperatorEnum.java new file mode 100644 index 0000000000..34a7ad5aea --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListNumberRuleItemOperatorEnum.java @@ -0,0 +1,641 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/user_list_number_rule_item_operator.proto + +package com.google.ads.googleads.v0.enums; + +/** + *
+ * Supported rule operator for number type.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum} + */ +public final class UserListNumberRuleItemOperatorEnum extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum) + UserListNumberRuleItemOperatorEnumOrBuilder { +private static final long serialVersionUID = 0L; + // Use UserListNumberRuleItemOperatorEnum.newBuilder() to construct. + private UserListNumberRuleItemOperatorEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UserListNumberRuleItemOperatorEnum() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserListNumberRuleItemOperatorEnum( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorProto.internal_static_google_ads_googleads_v0_enums_UserListNumberRuleItemOperatorEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorProto.internal_static_google_ads_googleads_v0_enums_UserListNumberRuleItemOperatorEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum.class, com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum.Builder.class); + } + + /** + *
+   * Enum describing possible user list number rule item operators.
+   * 
+ * + * Protobuf enum {@code google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum.UserListNumberRuleItemOperator} + */ + public enum UserListNumberRuleItemOperator + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + UNKNOWN(1), + /** + *
+     * Greater than.
+     * 
+ * + * GREATER_THAN = 2; + */ + GREATER_THAN(2), + /** + *
+     * Greater than or equal.
+     * 
+ * + * GREATER_THAN_OR_EQUAL = 3; + */ + GREATER_THAN_OR_EQUAL(3), + /** + *
+     * Equals.
+     * 
+ * + * EQUALS = 4; + */ + EQUALS(4), + /** + *
+     * Not equals.
+     * 
+ * + * NOT_EQUALS = 5; + */ + NOT_EQUALS(5), + /** + *
+     * Less than.
+     * 
+ * + * LESS_THAN = 6; + */ + LESS_THAN(6), + /** + *
+     * Less than or equal.
+     * 
+ * + * LESS_THAN_OR_EQUAL = 7; + */ + LESS_THAN_OR_EQUAL(7), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + public static final int UNKNOWN_VALUE = 1; + /** + *
+     * Greater than.
+     * 
+ * + * GREATER_THAN = 2; + */ + public static final int GREATER_THAN_VALUE = 2; + /** + *
+     * Greater than or equal.
+     * 
+ * + * GREATER_THAN_OR_EQUAL = 3; + */ + public static final int GREATER_THAN_OR_EQUAL_VALUE = 3; + /** + *
+     * Equals.
+     * 
+ * + * EQUALS = 4; + */ + public static final int EQUALS_VALUE = 4; + /** + *
+     * Not equals.
+     * 
+ * + * NOT_EQUALS = 5; + */ + public static final int NOT_EQUALS_VALUE = 5; + /** + *
+     * Less than.
+     * 
+ * + * LESS_THAN = 6; + */ + public static final int LESS_THAN_VALUE = 6; + /** + *
+     * Less than or equal.
+     * 
+ * + * LESS_THAN_OR_EQUAL = 7; + */ + public static final int LESS_THAN_OR_EQUAL_VALUE = 7; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static UserListNumberRuleItemOperator valueOf(int value) { + return forNumber(value); + } + + public static UserListNumberRuleItemOperator forNumber(int value) { + switch (value) { + case 0: return UNSPECIFIED; + case 1: return UNKNOWN; + case 2: return GREATER_THAN; + case 3: return GREATER_THAN_OR_EQUAL; + case 4: return EQUALS; + case 5: return NOT_EQUALS; + case 6: return LESS_THAN; + case 7: return LESS_THAN_OR_EQUAL; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + UserListNumberRuleItemOperator> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public UserListNumberRuleItemOperator findValueByNumber(int number) { + return UserListNumberRuleItemOperator.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum.getDescriptor().getEnumTypes().get(0); + } + + private static final UserListNumberRuleItemOperator[] VALUES = values(); + + public static UserListNumberRuleItemOperator 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 UserListNumberRuleItemOperator(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum.UserListNumberRuleItemOperator) + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.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.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum other = (com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum 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.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum 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.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum 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.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum 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.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum 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; + } + /** + *
+   * Supported rule operator for number type.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum) + com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorProto.internal_static_google_ads_googleads_v0_enums_UserListNumberRuleItemOperatorEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorProto.internal_static_google_ads_googleads_v0_enums_UserListNumberRuleItemOperatorEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum.class, com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorProto.internal_static_google_ads_googleads_v0_enums_UserListNumberRuleItemOperatorEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum getDefaultInstanceForType() { + return com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum build() { + com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum buildPartial() { + com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum result = new com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum) { + return mergeFrom((com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum other) { + if (other == com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum) + private static final com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum(); + } + + public static com.google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserListNumberRuleItemOperatorEnum parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserListNumberRuleItemOperatorEnum(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListNumberRuleItemOperatorEnumOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListNumberRuleItemOperatorEnumOrBuilder.java new file mode 100644 index 0000000000..32dbd56f00 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListNumberRuleItemOperatorEnumOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/user_list_number_rule_item_operator.proto + +package com.google.ads.googleads.v0.enums; + +public interface UserListNumberRuleItemOperatorEnumOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.enums.UserListNumberRuleItemOperatorEnum) + com.google.protobuf.MessageOrBuilder { +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListNumberRuleItemOperatorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListNumberRuleItemOperatorProto.java new file mode 100644 index 0000000000..b1248d622c --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListNumberRuleItemOperatorProto.java @@ -0,0 +1,68 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/user_list_number_rule_item_operator.proto + +package com.google.ads.googleads.v0.enums; + +public final class UserListNumberRuleItemOperatorProto { + private UserListNumberRuleItemOperatorProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_enums_UserListNumberRuleItemOperatorEnum_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_enums_UserListNumberRuleItemOperatorEnum_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nGgoogle/ads/googleads/v0/enums/user_lis" + + "t_number_rule_item_operator.proto\022\035googl" + + "e.ads.googleads.v0.enums\"\325\001\n\"UserListNum" + + "berRuleItemOperatorEnum\"\256\001\n\036UserListNumb" + + "erRuleItemOperator\022\017\n\013UNSPECIFIED\020\000\022\013\n\007U" + + "NKNOWN\020\001\022\020\n\014GREATER_THAN\020\002\022\031\n\025GREATER_TH" + + "AN_OR_EQUAL\020\003\022\n\n\006EQUALS\020\004\022\016\n\nNOT_EQUALS\020" + + "\005\022\r\n\tLESS_THAN\020\006\022\026\n\022LESS_THAN_OR_EQUAL\020\007" + + "B\370\001\n!com.google.ads.googleads.v0.enumsB#" + + "UserListNumberRuleItemOperatorProtoP\001ZBg" + + "oogle.golang.org/genproto/googleapis/ads" + + "/googleads/v0/enums;enums\242\002\003GAA\252\002\035Google" + + ".Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\Goo" + + "gleAds\\V0\\Enums\352\002!Google::Ads::GoogleAds" + + "::V0::Enumsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_google_ads_googleads_v0_enums_UserListNumberRuleItemOperatorEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_googleads_v0_enums_UserListNumberRuleItemOperatorEnum_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_enums_UserListNumberRuleItemOperatorEnum_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListPrepopulationStatusEnum.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListPrepopulationStatusEnum.java new file mode 100644 index 0000000000..15cc5839b2 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListPrepopulationStatusEnum.java @@ -0,0 +1,590 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/user_list_prepopulation_status.proto + +package com.google.ads.googleads.v0.enums; + +/** + *
+ * Indicates status of prepopulation based on the rule.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum} + */ +public final class UserListPrepopulationStatusEnum extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum) + UserListPrepopulationStatusEnumOrBuilder { +private static final long serialVersionUID = 0L; + // Use UserListPrepopulationStatusEnum.newBuilder() to construct. + private UserListPrepopulationStatusEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UserListPrepopulationStatusEnum() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserListPrepopulationStatusEnum( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.UserListPrepopulationStatusProto.internal_static_google_ads_googleads_v0_enums_UserListPrepopulationStatusEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.UserListPrepopulationStatusProto.internal_static_google_ads_googleads_v0_enums_UserListPrepopulationStatusEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum.class, com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum.Builder.class); + } + + /** + *
+   * Enum describing possible user list prepopulation status.
+   * 
+ * + * Protobuf enum {@code google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum.UserListPrepopulationStatus} + */ + public enum UserListPrepopulationStatus + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + UNKNOWN(1), + /** + *
+     * Prepopoulation is being requested.
+     * 
+ * + * REQUESTED = 2; + */ + REQUESTED(2), + /** + *
+     * Prepopulation is finished.
+     * 
+ * + * FINISHED = 3; + */ + FINISHED(3), + /** + *
+     * Prepopulation failed.
+     * 
+ * + * FAILED = 4; + */ + FAILED(4), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + public static final int UNKNOWN_VALUE = 1; + /** + *
+     * Prepopoulation is being requested.
+     * 
+ * + * REQUESTED = 2; + */ + public static final int REQUESTED_VALUE = 2; + /** + *
+     * Prepopulation is finished.
+     * 
+ * + * FINISHED = 3; + */ + public static final int FINISHED_VALUE = 3; + /** + *
+     * Prepopulation failed.
+     * 
+ * + * FAILED = 4; + */ + public static final int FAILED_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static UserListPrepopulationStatus valueOf(int value) { + return forNumber(value); + } + + public static UserListPrepopulationStatus forNumber(int value) { + switch (value) { + case 0: return UNSPECIFIED; + case 1: return UNKNOWN; + case 2: return REQUESTED; + case 3: return FINISHED; + case 4: return FAILED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + UserListPrepopulationStatus> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public UserListPrepopulationStatus findValueByNumber(int number) { + return UserListPrepopulationStatus.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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.ads.googleads.v0.enums.UserListPrepopulationStatusEnum.getDescriptor().getEnumTypes().get(0); + } + + private static final UserListPrepopulationStatus[] VALUES = values(); + + public static UserListPrepopulationStatus 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 UserListPrepopulationStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum.UserListPrepopulationStatus) + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.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.ads.googleads.v0.enums.UserListPrepopulationStatusEnum)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum other = (com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum 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.ads.googleads.v0.enums.UserListPrepopulationStatusEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum 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.ads.googleads.v0.enums.UserListPrepopulationStatusEnum parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum 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.ads.googleads.v0.enums.UserListPrepopulationStatusEnum parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum 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.ads.googleads.v0.enums.UserListPrepopulationStatusEnum 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; + } + /** + *
+   * Indicates status of prepopulation based on the rule.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum) + com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.UserListPrepopulationStatusProto.internal_static_google_ads_googleads_v0_enums_UserListPrepopulationStatusEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.UserListPrepopulationStatusProto.internal_static_google_ads_googleads_v0_enums_UserListPrepopulationStatusEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum.class, com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.enums.UserListPrepopulationStatusProto.internal_static_google_ads_googleads_v0_enums_UserListPrepopulationStatusEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum getDefaultInstanceForType() { + return com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum build() { + com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum buildPartial() { + com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum result = new com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum) { + return mergeFrom((com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum other) { + if (other == com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum) + private static final com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum(); + } + + public static com.google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserListPrepopulationStatusEnum parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserListPrepopulationStatusEnum(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.enums.UserListPrepopulationStatusEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListPrepopulationStatusEnumOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListPrepopulationStatusEnumOrBuilder.java new file mode 100644 index 0000000000..ac88556b4b --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListPrepopulationStatusEnumOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/user_list_prepopulation_status.proto + +package com.google.ads.googleads.v0.enums; + +public interface UserListPrepopulationStatusEnumOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.enums.UserListPrepopulationStatusEnum) + com.google.protobuf.MessageOrBuilder { +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListPrepopulationStatusProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListPrepopulationStatusProto.java new file mode 100644 index 0000000000..93b56fff24 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListPrepopulationStatusProto.java @@ -0,0 +1,66 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/user_list_prepopulation_status.proto + +package com.google.ads.googleads.v0.enums; + +public final class UserListPrepopulationStatusProto { + private UserListPrepopulationStatusProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_enums_UserListPrepopulationStatusEnum_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_enums_UserListPrepopulationStatusEnum_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nBgoogle/ads/googleads/v0/enums/user_lis" + + "t_prepopulation_status.proto\022\035google.ads" + + ".googleads.v0.enums\"\207\001\n\037UserListPrepopul" + + "ationStatusEnum\"d\n\033UserListPrepopulation" + + "Status\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\r\n\t" + + "REQUESTED\020\002\022\014\n\010FINISHED\020\003\022\n\n\006FAILED\020\004B\365\001" + + "\n!com.google.ads.googleads.v0.enumsB Use" + + "rListPrepopulationStatusProtoP\001ZBgoogle." + + "golang.org/genproto/googleapis/ads/googl" + + "eads/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.G" + + "oogleAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds" + + "\\V0\\Enums\352\002!Google::Ads::GoogleAds::V0::" + + "Enumsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_google_ads_googleads_v0_enums_UserListPrepopulationStatusEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_googleads_v0_enums_UserListPrepopulationStatusEnum_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_enums_UserListPrepopulationStatusEnum_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListRuleTypeEnum.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListRuleTypeEnum.java new file mode 100644 index 0000000000..80066e9bea --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListRuleTypeEnum.java @@ -0,0 +1,573 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/user_list_rule_type.proto + +package com.google.ads.googleads.v0.enums; + +/** + *
+ * Rule based user list rule type.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.UserListRuleTypeEnum} + */ +public final class UserListRuleTypeEnum extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.enums.UserListRuleTypeEnum) + UserListRuleTypeEnumOrBuilder { +private static final long serialVersionUID = 0L; + // Use UserListRuleTypeEnum.newBuilder() to construct. + private UserListRuleTypeEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UserListRuleTypeEnum() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserListRuleTypeEnum( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.UserListRuleTypeProto.internal_static_google_ads_googleads_v0_enums_UserListRuleTypeEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.UserListRuleTypeProto.internal_static_google_ads_googleads_v0_enums_UserListRuleTypeEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.UserListRuleTypeEnum.class, com.google.ads.googleads.v0.enums.UserListRuleTypeEnum.Builder.class); + } + + /** + *
+   * Enum describing possible user list rule types.
+   * 
+ * + * Protobuf enum {@code google.ads.googleads.v0.enums.UserListRuleTypeEnum.UserListRuleType} + */ + public enum UserListRuleType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + UNKNOWN(1), + /** + *
+     * Conjunctive normal form.
+     * 
+ * + * AND_OF_ORS = 2; + */ + AND_OF_ORS(2), + /** + *
+     * Disjunctive normal form.
+     * 
+ * + * OR_OF_ANDS = 3; + */ + OR_OF_ANDS(3), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + public static final int UNKNOWN_VALUE = 1; + /** + *
+     * Conjunctive normal form.
+     * 
+ * + * AND_OF_ORS = 2; + */ + public static final int AND_OF_ORS_VALUE = 2; + /** + *
+     * Disjunctive normal form.
+     * 
+ * + * OR_OF_ANDS = 3; + */ + public static final int OR_OF_ANDS_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static UserListRuleType valueOf(int value) { + return forNumber(value); + } + + public static UserListRuleType forNumber(int value) { + switch (value) { + case 0: return UNSPECIFIED; + case 1: return UNKNOWN; + case 2: return AND_OF_ORS; + case 3: return OR_OF_ANDS; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + UserListRuleType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public UserListRuleType findValueByNumber(int number) { + return UserListRuleType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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.ads.googleads.v0.enums.UserListRuleTypeEnum.getDescriptor().getEnumTypes().get(0); + } + + private static final UserListRuleType[] VALUES = values(); + + public static UserListRuleType 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 UserListRuleType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.googleads.v0.enums.UserListRuleTypeEnum.UserListRuleType) + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.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.ads.googleads.v0.enums.UserListRuleTypeEnum)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.enums.UserListRuleTypeEnum other = (com.google.ads.googleads.v0.enums.UserListRuleTypeEnum) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.enums.UserListRuleTypeEnum parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.UserListRuleTypeEnum parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.UserListRuleTypeEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.UserListRuleTypeEnum 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.ads.googleads.v0.enums.UserListRuleTypeEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.UserListRuleTypeEnum parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.UserListRuleTypeEnum parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.UserListRuleTypeEnum 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.ads.googleads.v0.enums.UserListRuleTypeEnum parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.UserListRuleTypeEnum 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.ads.googleads.v0.enums.UserListRuleTypeEnum parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.UserListRuleTypeEnum 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.ads.googleads.v0.enums.UserListRuleTypeEnum 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; + } + /** + *
+   * Rule based user list rule type.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.UserListRuleTypeEnum} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.enums.UserListRuleTypeEnum) + com.google.ads.googleads.v0.enums.UserListRuleTypeEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.UserListRuleTypeProto.internal_static_google_ads_googleads_v0_enums_UserListRuleTypeEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.UserListRuleTypeProto.internal_static_google_ads_googleads_v0_enums_UserListRuleTypeEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.UserListRuleTypeEnum.class, com.google.ads.googleads.v0.enums.UserListRuleTypeEnum.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.enums.UserListRuleTypeEnum.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.enums.UserListRuleTypeProto.internal_static_google_ads_googleads_v0_enums_UserListRuleTypeEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.UserListRuleTypeEnum getDefaultInstanceForType() { + return com.google.ads.googleads.v0.enums.UserListRuleTypeEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.UserListRuleTypeEnum build() { + com.google.ads.googleads.v0.enums.UserListRuleTypeEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.UserListRuleTypeEnum buildPartial() { + com.google.ads.googleads.v0.enums.UserListRuleTypeEnum result = new com.google.ads.googleads.v0.enums.UserListRuleTypeEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.enums.UserListRuleTypeEnum) { + return mergeFrom((com.google.ads.googleads.v0.enums.UserListRuleTypeEnum)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.enums.UserListRuleTypeEnum other) { + if (other == com.google.ads.googleads.v0.enums.UserListRuleTypeEnum.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.enums.UserListRuleTypeEnum parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.enums.UserListRuleTypeEnum) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.enums.UserListRuleTypeEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.UserListRuleTypeEnum) + private static final com.google.ads.googleads.v0.enums.UserListRuleTypeEnum DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.enums.UserListRuleTypeEnum(); + } + + public static com.google.ads.googleads.v0.enums.UserListRuleTypeEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserListRuleTypeEnum parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserListRuleTypeEnum(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.enums.UserListRuleTypeEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListRuleTypeEnumOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListRuleTypeEnumOrBuilder.java new file mode 100644 index 0000000000..4511b148a2 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListRuleTypeEnumOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/user_list_rule_type.proto + +package com.google.ads.googleads.v0.enums; + +public interface UserListRuleTypeEnumOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.enums.UserListRuleTypeEnum) + com.google.protobuf.MessageOrBuilder { +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListRuleTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListRuleTypeProto.java new file mode 100644 index 0000000000..11f9d88b4c --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListRuleTypeProto.java @@ -0,0 +1,64 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/user_list_rule_type.proto + +package com.google.ads.googleads.v0.enums; + +public final class UserListRuleTypeProto { + private UserListRuleTypeProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_enums_UserListRuleTypeEnum_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_enums_UserListRuleTypeEnum_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n7google/ads/googleads/v0/enums/user_lis" + + "t_rule_type.proto\022\035google.ads.googleads." + + "v0.enums\"h\n\024UserListRuleTypeEnum\"P\n\020User" + + "ListRuleType\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN" + + "\020\001\022\016\n\nAND_OF_ORS\020\002\022\016\n\nOR_OF_ANDS\020\003B\352\001\n!c" + + "om.google.ads.googleads.v0.enumsB\025UserLi" + + "stRuleTypeProtoP\001ZBgoogle.golang.org/gen" + + "proto/googleapis/ads/googleads/v0/enums;" + + "enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.En" + + "ums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums\352\002!Go" + + "ogle::Ads::GoogleAds::V0::Enumsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_google_ads_googleads_v0_enums_UserListRuleTypeEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_googleads_v0_enums_UserListRuleTypeEnum_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_enums_UserListRuleTypeEnum_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListSizeRangeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListSizeRangeProto.java index d205785fee..415f1548d4 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListSizeRangeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListSizeRangeProto.java @@ -46,13 +46,13 @@ public static void registerAllExtensions( "N_TO_TEN_MILLION\020\r\022!\n\035TEN_MILLION_TO_TWE" + "NTY_MILLION\020\016\022$\n TWENTY_MILLION_TO_THIRT" + "Y_MILLION\020\017\022#\n\037THIRTY_MILLION_TO_FIFTY_M" + - "ILLION\020\020\022\026\n\022OVER_FIFTY_MILLION\020\021B\307\001\n!com" + + "ILLION\020\020\022\026\n\022OVER_FIFTY_MILLION\020\021B\353\001\n!com" + ".google.ads.googleads.v0.enumsB\026UserList" + "SizeRangeProtoP\001ZBgoogle.golang.org/genp" + "roto/googleapis/ads/googleads/v0/enums;e" + "nums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.Enu" + - "ms\312\002\035Google\\Ads\\GoogleAds\\V0\\Enumsb\006prot" + - "o3" + "ms\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums\352\002!Goo" + + "gle::Ads::GoogleAds::V0::Enumsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListStringRuleItemOperatorEnum.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListStringRuleItemOperatorEnum.java new file mode 100644 index 0000000000..a5b2a87378 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListStringRuleItemOperatorEnum.java @@ -0,0 +1,675 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/user_list_string_rule_item_operator.proto + +package com.google.ads.googleads.v0.enums; + +/** + *
+ * Supported rule operator for string type.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum} + */ +public final class UserListStringRuleItemOperatorEnum extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum) + UserListStringRuleItemOperatorEnumOrBuilder { +private static final long serialVersionUID = 0L; + // Use UserListStringRuleItemOperatorEnum.newBuilder() to construct. + private UserListStringRuleItemOperatorEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UserListStringRuleItemOperatorEnum() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserListStringRuleItemOperatorEnum( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorProto.internal_static_google_ads_googleads_v0_enums_UserListStringRuleItemOperatorEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorProto.internal_static_google_ads_googleads_v0_enums_UserListStringRuleItemOperatorEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum.class, com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum.Builder.class); + } + + /** + *
+   * Enum describing possible user list string rule item operators.
+   * 
+ * + * Protobuf enum {@code google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum.UserListStringRuleItemOperator} + */ + public enum UserListStringRuleItemOperator + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + UNKNOWN(1), + /** + *
+     * Contains.
+     * 
+ * + * CONTAINS = 2; + */ + CONTAINS(2), + /** + *
+     * Equals.
+     * 
+ * + * EQUALS = 3; + */ + EQUALS(3), + /** + *
+     * Starts with.
+     * 
+ * + * STARTS_WITH = 4; + */ + STARTS_WITH(4), + /** + *
+     * Ends with.
+     * 
+ * + * ENDS_WITH = 5; + */ + ENDS_WITH(5), + /** + *
+     * Not equals.
+     * 
+ * + * NOT_EQUALS = 6; + */ + NOT_EQUALS(6), + /** + *
+     * Not contains.
+     * 
+ * + * NOT_CONTAINS = 7; + */ + NOT_CONTAINS(7), + /** + *
+     * Not starts with.
+     * 
+ * + * NOT_STARTS_WITH = 8; + */ + NOT_STARTS_WITH(8), + /** + *
+     * Not ends with.
+     * 
+ * + * NOT_ENDS_WITH = 9; + */ + NOT_ENDS_WITH(9), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + public static final int UNKNOWN_VALUE = 1; + /** + *
+     * Contains.
+     * 
+ * + * CONTAINS = 2; + */ + public static final int CONTAINS_VALUE = 2; + /** + *
+     * Equals.
+     * 
+ * + * EQUALS = 3; + */ + public static final int EQUALS_VALUE = 3; + /** + *
+     * Starts with.
+     * 
+ * + * STARTS_WITH = 4; + */ + public static final int STARTS_WITH_VALUE = 4; + /** + *
+     * Ends with.
+     * 
+ * + * ENDS_WITH = 5; + */ + public static final int ENDS_WITH_VALUE = 5; + /** + *
+     * Not equals.
+     * 
+ * + * NOT_EQUALS = 6; + */ + public static final int NOT_EQUALS_VALUE = 6; + /** + *
+     * Not contains.
+     * 
+ * + * NOT_CONTAINS = 7; + */ + public static final int NOT_CONTAINS_VALUE = 7; + /** + *
+     * Not starts with.
+     * 
+ * + * NOT_STARTS_WITH = 8; + */ + public static final int NOT_STARTS_WITH_VALUE = 8; + /** + *
+     * Not ends with.
+     * 
+ * + * NOT_ENDS_WITH = 9; + */ + public static final int NOT_ENDS_WITH_VALUE = 9; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static UserListStringRuleItemOperator valueOf(int value) { + return forNumber(value); + } + + public static UserListStringRuleItemOperator forNumber(int value) { + switch (value) { + case 0: return UNSPECIFIED; + case 1: return UNKNOWN; + case 2: return CONTAINS; + case 3: return EQUALS; + case 4: return STARTS_WITH; + case 5: return ENDS_WITH; + case 6: return NOT_EQUALS; + case 7: return NOT_CONTAINS; + case 8: return NOT_STARTS_WITH; + case 9: return NOT_ENDS_WITH; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + UserListStringRuleItemOperator> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public UserListStringRuleItemOperator findValueByNumber(int number) { + return UserListStringRuleItemOperator.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum.getDescriptor().getEnumTypes().get(0); + } + + private static final UserListStringRuleItemOperator[] VALUES = values(); + + public static UserListStringRuleItemOperator 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 UserListStringRuleItemOperator(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum.UserListStringRuleItemOperator) + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.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.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum other = (com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum 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.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum 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.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum 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.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum 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.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum 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; + } + /** + *
+   * Supported rule operator for string type.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum) + com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorProto.internal_static_google_ads_googleads_v0_enums_UserListStringRuleItemOperatorEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorProto.internal_static_google_ads_googleads_v0_enums_UserListStringRuleItemOperatorEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum.class, com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorProto.internal_static_google_ads_googleads_v0_enums_UserListStringRuleItemOperatorEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum getDefaultInstanceForType() { + return com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum build() { + com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum buildPartial() { + com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum result = new com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum) { + return mergeFrom((com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum other) { + if (other == com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum) + private static final com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum(); + } + + public static com.google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserListStringRuleItemOperatorEnum parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserListStringRuleItemOperatorEnum(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListStringRuleItemOperatorEnumOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListStringRuleItemOperatorEnumOrBuilder.java new file mode 100644 index 0000000000..e78e3dd97a --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListStringRuleItemOperatorEnumOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/user_list_string_rule_item_operator.proto + +package com.google.ads.googleads.v0.enums; + +public interface UserListStringRuleItemOperatorEnumOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.enums.UserListStringRuleItemOperatorEnum) + com.google.protobuf.MessageOrBuilder { +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListStringRuleItemOperatorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListStringRuleItemOperatorProto.java new file mode 100644 index 0000000000..09b3cd64ed --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListStringRuleItemOperatorProto.java @@ -0,0 +1,68 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/user_list_string_rule_item_operator.proto + +package com.google.ads.googleads.v0.enums; + +public final class UserListStringRuleItemOperatorProto { + private UserListStringRuleItemOperatorProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_enums_UserListStringRuleItemOperatorEnum_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_enums_UserListStringRuleItemOperatorEnum_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nGgoogle/ads/googleads/v0/enums/user_lis" + + "t_string_rule_item_operator.proto\022\035googl" + + "e.ads.googleads.v0.enums\"\351\001\n\"UserListStr" + + "ingRuleItemOperatorEnum\"\302\001\n\036UserListStri" + + "ngRuleItemOperator\022\017\n\013UNSPECIFIED\020\000\022\013\n\007U" + + "NKNOWN\020\001\022\014\n\010CONTAINS\020\002\022\n\n\006EQUALS\020\003\022\017\n\013ST" + + "ARTS_WITH\020\004\022\r\n\tENDS_WITH\020\005\022\016\n\nNOT_EQUALS" + + "\020\006\022\020\n\014NOT_CONTAINS\020\007\022\023\n\017NOT_STARTS_WITH\020" + + "\010\022\021\n\rNOT_ENDS_WITH\020\tB\370\001\n!com.google.ads." + + "googleads.v0.enumsB#UserListStringRuleIt" + + "emOperatorProtoP\001ZBgoogle.golang.org/gen" + + "proto/googleapis/ads/googleads/v0/enums;" + + "enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V0.En" + + "ums\312\002\035Google\\Ads\\GoogleAds\\V0\\Enums\352\002!Go" + + "ogle::Ads::GoogleAds::V0::Enumsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_google_ads_googleads_v0_enums_UserListStringRuleItemOperatorEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_googleads_v0_enums_UserListStringRuleItemOperatorEnum_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_enums_UserListStringRuleItemOperatorEnum_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListTypeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListTypeProto.java index 25b100d122..adf6d83b7d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListTypeProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/UserListTypeProto.java @@ -34,12 +34,13 @@ public static void registerAllExtensions( "e\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\017\n\013REMAR" + "KETING\020\002\022\013\n\007LOGICAL\020\003\022\030\n\024EXTERNAL_REMARK" + "ETING\020\004\022\016\n\nRULE_BASED\020\005\022\013\n\007SIMILAR\020\006\022\r\n\t" + - "CRM_BASED\020\007B\302\001\n!com.google.ads.googleads" + + "CRM_BASED\020\007B\346\001\n!com.google.ads.googleads" + ".v0.enumsB\021UserListTypeProtoP\001ZBgoogle.g" + "olang.org/genproto/googleapis/ads/google" + "ads/v0/enums;enums\242\002\003GAA\252\002\035Google.Ads.Go" + "ogleAds.V0.Enums\312\002\035Google\\Ads\\GoogleAds\\" + - "V0\\Enumsb\006proto3" + "V0\\Enums\352\002!Google::Ads::GoogleAds::V0::E" + + "numsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/VanityPharmaDisplayUrlModeEnum.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/VanityPharmaDisplayUrlModeEnum.java new file mode 100644 index 0000000000..210000ca46 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/VanityPharmaDisplayUrlModeEnum.java @@ -0,0 +1,573 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/vanity_pharma_display_url_mode.proto + +package com.google.ads.googleads.v0.enums; + +/** + *
+ * The display mode for vanity pharma URLs.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum} + */ +public final class VanityPharmaDisplayUrlModeEnum extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum) + VanityPharmaDisplayUrlModeEnumOrBuilder { +private static final long serialVersionUID = 0L; + // Use VanityPharmaDisplayUrlModeEnum.newBuilder() to construct. + private VanityPharmaDisplayUrlModeEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private VanityPharmaDisplayUrlModeEnum() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private VanityPharmaDisplayUrlModeEnum( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeProto.internal_static_google_ads_googleads_v0_enums_VanityPharmaDisplayUrlModeEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeProto.internal_static_google_ads_googleads_v0_enums_VanityPharmaDisplayUrlModeEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum.class, com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum.Builder.class); + } + + /** + *
+   * Enum describing possible display modes for vanity pharma URLs.
+   * 
+ * + * Protobuf enum {@code google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode} + */ + public enum VanityPharmaDisplayUrlMode + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + UNKNOWN(1), + /** + *
+     * Replace vanity pharma URL with manufacturer website url.
+     * 
+ * + * MANUFACTURER_WEBSITE_URL = 2; + */ + MANUFACTURER_WEBSITE_URL(2), + /** + *
+     * Replace vanity pharma URL with description of the website.
+     * 
+ * + * WEBSITE_DESCRIPTION = 3; + */ + WEBSITE_DESCRIPTION(3), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + public static final int UNKNOWN_VALUE = 1; + /** + *
+     * Replace vanity pharma URL with manufacturer website url.
+     * 
+ * + * MANUFACTURER_WEBSITE_URL = 2; + */ + public static final int MANUFACTURER_WEBSITE_URL_VALUE = 2; + /** + *
+     * Replace vanity pharma URL with description of the website.
+     * 
+ * + * WEBSITE_DESCRIPTION = 3; + */ + public static final int WEBSITE_DESCRIPTION_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static VanityPharmaDisplayUrlMode valueOf(int value) { + return forNumber(value); + } + + public static VanityPharmaDisplayUrlMode forNumber(int value) { + switch (value) { + case 0: return UNSPECIFIED; + case 1: return UNKNOWN; + case 2: return MANUFACTURER_WEBSITE_URL; + case 3: return WEBSITE_DESCRIPTION; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + VanityPharmaDisplayUrlMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public VanityPharmaDisplayUrlMode findValueByNumber(int number) { + return VanityPharmaDisplayUrlMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum.getDescriptor().getEnumTypes().get(0); + } + + private static final VanityPharmaDisplayUrlMode[] VALUES = values(); + + public static VanityPharmaDisplayUrlMode 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 VanityPharmaDisplayUrlMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode) + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.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.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum other = (com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum 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.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum 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.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum 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.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum 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.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum 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; + } + /** + *
+   * The display mode for vanity pharma URLs.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum) + com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeProto.internal_static_google_ads_googleads_v0_enums_VanityPharmaDisplayUrlModeEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeProto.internal_static_google_ads_googleads_v0_enums_VanityPharmaDisplayUrlModeEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum.class, com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeProto.internal_static_google_ads_googleads_v0_enums_VanityPharmaDisplayUrlModeEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum getDefaultInstanceForType() { + return com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum build() { + com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum buildPartial() { + com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum result = new com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum) { + return mergeFrom((com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum other) { + if (other == com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum) + private static final com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum(); + } + + public static com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VanityPharmaDisplayUrlModeEnum parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VanityPharmaDisplayUrlModeEnum(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/VanityPharmaDisplayUrlModeEnumOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/VanityPharmaDisplayUrlModeEnumOrBuilder.java new file mode 100644 index 0000000000..6cc16b5776 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/VanityPharmaDisplayUrlModeEnumOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/vanity_pharma_display_url_mode.proto + +package com.google.ads.googleads.v0.enums; + +public interface VanityPharmaDisplayUrlModeEnumOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum) + com.google.protobuf.MessageOrBuilder { +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/VanityPharmaDisplayUrlModeProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/VanityPharmaDisplayUrlModeProto.java new file mode 100644 index 0000000000..018c8757cf --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/VanityPharmaDisplayUrlModeProto.java @@ -0,0 +1,66 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/vanity_pharma_display_url_mode.proto + +package com.google.ads.googleads.v0.enums; + +public final class VanityPharmaDisplayUrlModeProto { + private VanityPharmaDisplayUrlModeProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_enums_VanityPharmaDisplayUrlModeEnum_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_enums_VanityPharmaDisplayUrlModeEnum_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nBgoogle/ads/googleads/v0/enums/vanity_p" + + "harma_display_url_mode.proto\022\035google.ads" + + ".googleads.v0.enums\"\223\001\n\036VanityPharmaDisp" + + "layUrlModeEnum\"q\n\032VanityPharmaDisplayUrl" + + "Mode\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\034\n\030MA" + + "NUFACTURER_WEBSITE_URL\020\002\022\027\n\023WEBSITE_DESC" + + "RIPTION\020\003B\364\001\n!com.google.ads.googleads.v" + + "0.enumsB\037VanityPharmaDisplayUrlModeProto" + + "P\001ZBgoogle.golang.org/genproto/googleapi" + + "s/ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035G" + + "oogle.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ad" + + "s\\GoogleAds\\V0\\Enums\352\002!Google::Ads::Goog" + + "leAds::V0::Enumsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_google_ads_googleads_v0_enums_VanityPharmaDisplayUrlModeEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_googleads_v0_enums_VanityPharmaDisplayUrlModeEnum_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_enums_VanityPharmaDisplayUrlModeEnum_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/VanityPharmaTextEnum.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/VanityPharmaTextEnum.java new file mode 100644 index 0000000000..3c94cf26f5 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/VanityPharmaTextEnum.java @@ -0,0 +1,757 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/vanity_pharma_text.proto + +package com.google.ads.googleads.v0.enums; + +/** + *
+ * The text that will be displayed in display URL of the text ad when website
+ * description is the selected display mode for vanity pharma URLs.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.VanityPharmaTextEnum} + */ +public final class VanityPharmaTextEnum extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.enums.VanityPharmaTextEnum) + VanityPharmaTextEnumOrBuilder { +private static final long serialVersionUID = 0L; + // Use VanityPharmaTextEnum.newBuilder() to construct. + private VanityPharmaTextEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private VanityPharmaTextEnum() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private VanityPharmaTextEnum( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.VanityPharmaTextProto.internal_static_google_ads_googleads_v0_enums_VanityPharmaTextEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.VanityPharmaTextProto.internal_static_google_ads_googleads_v0_enums_VanityPharmaTextEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.VanityPharmaTextEnum.class, com.google.ads.googleads.v0.enums.VanityPharmaTextEnum.Builder.class); + } + + /** + *
+   * Enum describing possible text.
+   * 
+ * + * Protobuf enum {@code google.ads.googleads.v0.enums.VanityPharmaTextEnum.VanityPharmaText} + */ + public enum VanityPharmaText + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + UNKNOWN(1), + /** + *
+     * Prescription treatment website with website content in English.
+     * 
+ * + * PRESCRIPTION_TREATMENT_WEBSITE_EN = 2; + */ + PRESCRIPTION_TREATMENT_WEBSITE_EN(2), + /** + *
+     * Prescription treatment website with website content in Spanish
+     * (Sitio de tratamientos con receta).
+     * 
+ * + * PRESCRIPTION_TREATMENT_WEBSITE_ES = 3; + */ + PRESCRIPTION_TREATMENT_WEBSITE_ES(3), + /** + *
+     * Prescription device website with website content in English.
+     * 
+ * + * PRESCRIPTION_DEVICE_WEBSITE_EN = 4; + */ + PRESCRIPTION_DEVICE_WEBSITE_EN(4), + /** + *
+     * Prescription device website with website content in Spanish (Sitio de
+     * dispositivos con receta).
+     * 
+ * + * PRESCRIPTION_DEVICE_WEBSITE_ES = 5; + */ + PRESCRIPTION_DEVICE_WEBSITE_ES(5), + /** + *
+     * Medical device website with website content in English.
+     * 
+ * + * MEDICAL_DEVICE_WEBSITE_EN = 6; + */ + MEDICAL_DEVICE_WEBSITE_EN(6), + /** + *
+     * Medical device website with website content in Spanish (Sitio de
+     * dispositivos médicos).
+     * 
+ * + * MEDICAL_DEVICE_WEBSITE_ES = 7; + */ + MEDICAL_DEVICE_WEBSITE_ES(7), + /** + *
+     * Preventative treatment website with website content in English.
+     * 
+ * + * PREVENTATIVE_TREATMENT_WEBSITE_EN = 8; + */ + PREVENTATIVE_TREATMENT_WEBSITE_EN(8), + /** + *
+     * Preventative treatment website with website content in Spanish (Sitio de
+     * tratamientos preventivos).
+     * 
+ * + * PREVENTATIVE_TREATMENT_WEBSITE_ES = 9; + */ + PREVENTATIVE_TREATMENT_WEBSITE_ES(9), + /** + *
+     * Prescription contraception website with website content in English.
+     * 
+ * + * PRESCRIPTION_CONTRACEPTION_WEBSITE_EN = 10; + */ + PRESCRIPTION_CONTRACEPTION_WEBSITE_EN(10), + /** + *
+     * Prescription contraception website with website content in Spanish (Sitio
+     * de anticonceptivos con receta).
+     * 
+ * + * PRESCRIPTION_CONTRACEPTION_WEBSITE_ES = 11; + */ + PRESCRIPTION_CONTRACEPTION_WEBSITE_ES(11), + /** + *
+     * Prescription vaccine website with website content in English.
+     * 
+ * + * PRESCRIPTION_VACCINE_WEBSITE_EN = 12; + */ + PRESCRIPTION_VACCINE_WEBSITE_EN(12), + /** + *
+     * Prescription vaccine website with website content in Spanish (Sitio de
+     * vacunas con receta).
+     * 
+ * + * PRESCRIPTION_VACCINE_WEBSITE_ES = 13; + */ + PRESCRIPTION_VACCINE_WEBSITE_ES(13), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + public static final int UNKNOWN_VALUE = 1; + /** + *
+     * Prescription treatment website with website content in English.
+     * 
+ * + * PRESCRIPTION_TREATMENT_WEBSITE_EN = 2; + */ + public static final int PRESCRIPTION_TREATMENT_WEBSITE_EN_VALUE = 2; + /** + *
+     * Prescription treatment website with website content in Spanish
+     * (Sitio de tratamientos con receta).
+     * 
+ * + * PRESCRIPTION_TREATMENT_WEBSITE_ES = 3; + */ + public static final int PRESCRIPTION_TREATMENT_WEBSITE_ES_VALUE = 3; + /** + *
+     * Prescription device website with website content in English.
+     * 
+ * + * PRESCRIPTION_DEVICE_WEBSITE_EN = 4; + */ + public static final int PRESCRIPTION_DEVICE_WEBSITE_EN_VALUE = 4; + /** + *
+     * Prescription device website with website content in Spanish (Sitio de
+     * dispositivos con receta).
+     * 
+ * + * PRESCRIPTION_DEVICE_WEBSITE_ES = 5; + */ + public static final int PRESCRIPTION_DEVICE_WEBSITE_ES_VALUE = 5; + /** + *
+     * Medical device website with website content in English.
+     * 
+ * + * MEDICAL_DEVICE_WEBSITE_EN = 6; + */ + public static final int MEDICAL_DEVICE_WEBSITE_EN_VALUE = 6; + /** + *
+     * Medical device website with website content in Spanish (Sitio de
+     * dispositivos médicos).
+     * 
+ * + * MEDICAL_DEVICE_WEBSITE_ES = 7; + */ + public static final int MEDICAL_DEVICE_WEBSITE_ES_VALUE = 7; + /** + *
+     * Preventative treatment website with website content in English.
+     * 
+ * + * PREVENTATIVE_TREATMENT_WEBSITE_EN = 8; + */ + public static final int PREVENTATIVE_TREATMENT_WEBSITE_EN_VALUE = 8; + /** + *
+     * Preventative treatment website with website content in Spanish (Sitio de
+     * tratamientos preventivos).
+     * 
+ * + * PREVENTATIVE_TREATMENT_WEBSITE_ES = 9; + */ + public static final int PREVENTATIVE_TREATMENT_WEBSITE_ES_VALUE = 9; + /** + *
+     * Prescription contraception website with website content in English.
+     * 
+ * + * PRESCRIPTION_CONTRACEPTION_WEBSITE_EN = 10; + */ + public static final int PRESCRIPTION_CONTRACEPTION_WEBSITE_EN_VALUE = 10; + /** + *
+     * Prescription contraception website with website content in Spanish (Sitio
+     * de anticonceptivos con receta).
+     * 
+ * + * PRESCRIPTION_CONTRACEPTION_WEBSITE_ES = 11; + */ + public static final int PRESCRIPTION_CONTRACEPTION_WEBSITE_ES_VALUE = 11; + /** + *
+     * Prescription vaccine website with website content in English.
+     * 
+ * + * PRESCRIPTION_VACCINE_WEBSITE_EN = 12; + */ + public static final int PRESCRIPTION_VACCINE_WEBSITE_EN_VALUE = 12; + /** + *
+     * Prescription vaccine website with website content in Spanish (Sitio de
+     * vacunas con receta).
+     * 
+ * + * PRESCRIPTION_VACCINE_WEBSITE_ES = 13; + */ + public static final int PRESCRIPTION_VACCINE_WEBSITE_ES_VALUE = 13; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static VanityPharmaText valueOf(int value) { + return forNumber(value); + } + + public static VanityPharmaText forNumber(int value) { + switch (value) { + case 0: return UNSPECIFIED; + case 1: return UNKNOWN; + case 2: return PRESCRIPTION_TREATMENT_WEBSITE_EN; + case 3: return PRESCRIPTION_TREATMENT_WEBSITE_ES; + case 4: return PRESCRIPTION_DEVICE_WEBSITE_EN; + case 5: return PRESCRIPTION_DEVICE_WEBSITE_ES; + case 6: return MEDICAL_DEVICE_WEBSITE_EN; + case 7: return MEDICAL_DEVICE_WEBSITE_ES; + case 8: return PREVENTATIVE_TREATMENT_WEBSITE_EN; + case 9: return PREVENTATIVE_TREATMENT_WEBSITE_ES; + case 10: return PRESCRIPTION_CONTRACEPTION_WEBSITE_EN; + case 11: return PRESCRIPTION_CONTRACEPTION_WEBSITE_ES; + case 12: return PRESCRIPTION_VACCINE_WEBSITE_EN; + case 13: return PRESCRIPTION_VACCINE_WEBSITE_ES; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + VanityPharmaText> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public VanityPharmaText findValueByNumber(int number) { + return VanityPharmaText.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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.ads.googleads.v0.enums.VanityPharmaTextEnum.getDescriptor().getEnumTypes().get(0); + } + + private static final VanityPharmaText[] VALUES = values(); + + public static VanityPharmaText 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 VanityPharmaText(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.googleads.v0.enums.VanityPharmaTextEnum.VanityPharmaText) + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.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.ads.googleads.v0.enums.VanityPharmaTextEnum)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.enums.VanityPharmaTextEnum other = (com.google.ads.googleads.v0.enums.VanityPharmaTextEnum) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.enums.VanityPharmaTextEnum parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.VanityPharmaTextEnum parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.VanityPharmaTextEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.VanityPharmaTextEnum 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.ads.googleads.v0.enums.VanityPharmaTextEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.VanityPharmaTextEnum parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.VanityPharmaTextEnum parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.VanityPharmaTextEnum 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.ads.googleads.v0.enums.VanityPharmaTextEnum parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.VanityPharmaTextEnum 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.ads.googleads.v0.enums.VanityPharmaTextEnum parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.VanityPharmaTextEnum 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.ads.googleads.v0.enums.VanityPharmaTextEnum 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; + } + /** + *
+   * The text that will be displayed in display URL of the text ad when website
+   * description is the selected display mode for vanity pharma URLs.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.VanityPharmaTextEnum} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.enums.VanityPharmaTextEnum) + com.google.ads.googleads.v0.enums.VanityPharmaTextEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.VanityPharmaTextProto.internal_static_google_ads_googleads_v0_enums_VanityPharmaTextEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.VanityPharmaTextProto.internal_static_google_ads_googleads_v0_enums_VanityPharmaTextEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.VanityPharmaTextEnum.class, com.google.ads.googleads.v0.enums.VanityPharmaTextEnum.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.enums.VanityPharmaTextEnum.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.enums.VanityPharmaTextProto.internal_static_google_ads_googleads_v0_enums_VanityPharmaTextEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.VanityPharmaTextEnum getDefaultInstanceForType() { + return com.google.ads.googleads.v0.enums.VanityPharmaTextEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.VanityPharmaTextEnum build() { + com.google.ads.googleads.v0.enums.VanityPharmaTextEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.VanityPharmaTextEnum buildPartial() { + com.google.ads.googleads.v0.enums.VanityPharmaTextEnum result = new com.google.ads.googleads.v0.enums.VanityPharmaTextEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.enums.VanityPharmaTextEnum) { + return mergeFrom((com.google.ads.googleads.v0.enums.VanityPharmaTextEnum)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.enums.VanityPharmaTextEnum other) { + if (other == com.google.ads.googleads.v0.enums.VanityPharmaTextEnum.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.enums.VanityPharmaTextEnum parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.enums.VanityPharmaTextEnum) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.enums.VanityPharmaTextEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.VanityPharmaTextEnum) + private static final com.google.ads.googleads.v0.enums.VanityPharmaTextEnum DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.enums.VanityPharmaTextEnum(); + } + + public static com.google.ads.googleads.v0.enums.VanityPharmaTextEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VanityPharmaTextEnum parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VanityPharmaTextEnum(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.enums.VanityPharmaTextEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/VanityPharmaTextEnumOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/VanityPharmaTextEnumOrBuilder.java new file mode 100644 index 0000000000..552c4c2136 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/VanityPharmaTextEnumOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/vanity_pharma_text.proto + +package com.google.ads.googleads.v0.enums; + +public interface VanityPharmaTextEnumOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.enums.VanityPharmaTextEnum) + com.google.protobuf.MessageOrBuilder { +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/VanityPharmaTextProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/VanityPharmaTextProto.java new file mode 100644 index 0000000000..0ef216e2f5 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/VanityPharmaTextProto.java @@ -0,0 +1,75 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/vanity_pharma_text.proto + +package com.google.ads.googleads.v0.enums; + +public final class VanityPharmaTextProto { + private VanityPharmaTextProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_enums_VanityPharmaTextEnum_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_enums_VanityPharmaTextEnum_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n6google/ads/googleads/v0/enums/vanity_p" + + "harma_text.proto\022\035google.ads.googleads.v" + + "0.enums\"\213\004\n\024VanityPharmaTextEnum\"\362\003\n\020Van" + + "ityPharmaText\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOW" + + "N\020\001\022%\n!PRESCRIPTION_TREATMENT_WEBSITE_EN" + + "\020\002\022%\n!PRESCRIPTION_TREATMENT_WEBSITE_ES\020" + + "\003\022\"\n\036PRESCRIPTION_DEVICE_WEBSITE_EN\020\004\022\"\n" + + "\036PRESCRIPTION_DEVICE_WEBSITE_ES\020\005\022\035\n\031MED" + + "ICAL_DEVICE_WEBSITE_EN\020\006\022\035\n\031MEDICAL_DEVI" + + "CE_WEBSITE_ES\020\007\022%\n!PREVENTATIVE_TREATMEN" + + "T_WEBSITE_EN\020\010\022%\n!PREVENTATIVE_TREATMENT" + + "_WEBSITE_ES\020\t\022)\n%PRESCRIPTION_CONTRACEPT" + + "ION_WEBSITE_EN\020\n\022)\n%PRESCRIPTION_CONTRAC" + + "EPTION_WEBSITE_ES\020\013\022#\n\037PRESCRIPTION_VACC" + + "INE_WEBSITE_EN\020\014\022#\n\037PRESCRIPTION_VACCINE" + + "_WEBSITE_ES\020\rB\352\001\n!com.google.ads.googlea" + + "ds.v0.enumsB\025VanityPharmaTextProtoP\001ZBgo" + + "ogle.golang.org/genproto/googleapis/ads/" + + "googleads/v0/enums;enums\242\002\003GAA\252\002\035Google." + + "Ads.GoogleAds.V0.Enums\312\002\035Google\\Ads\\Goog" + + "leAds\\V0\\Enums\352\002!Google::Ads::GoogleAds:" + + ":V0::Enumsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_google_ads_googleads_v0_enums_VanityPharmaTextEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_googleads_v0_enums_VanityPharmaTextEnum_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_enums_VanityPharmaTextEnum_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/WebpageConditionOperandEnum.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/WebpageConditionOperandEnum.java new file mode 100644 index 0000000000..f1c820bead --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/WebpageConditionOperandEnum.java @@ -0,0 +1,624 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/webpage_condition_operand.proto + +package com.google.ads.googleads.v0.enums; + +/** + *
+ * Container for enum describing webpage condition operand in webpage criterion.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.WebpageConditionOperandEnum} + */ +public final class WebpageConditionOperandEnum extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.enums.WebpageConditionOperandEnum) + WebpageConditionOperandEnumOrBuilder { +private static final long serialVersionUID = 0L; + // Use WebpageConditionOperandEnum.newBuilder() to construct. + private WebpageConditionOperandEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WebpageConditionOperandEnum() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WebpageConditionOperandEnum( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.WebpageConditionOperandProto.internal_static_google_ads_googleads_v0_enums_WebpageConditionOperandEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.WebpageConditionOperandProto.internal_static_google_ads_googleads_v0_enums_WebpageConditionOperandEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum.class, com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum.Builder.class); + } + + /** + *
+   * The webpage condition operand in webpage criterion.
+   * 
+ * + * Protobuf enum {@code google.ads.googleads.v0.enums.WebpageConditionOperandEnum.WebpageConditionOperand} + */ + public enum WebpageConditionOperand + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + UNKNOWN(1), + /** + *
+     * Operand denoting a webpage URL targeting condition.
+     * 
+ * + * URL = 2; + */ + URL(2), + /** + *
+     * Operand denoting a webpage category targeting condition.
+     * 
+ * + * CATEGORY = 3; + */ + CATEGORY(3), + /** + *
+     * Operand denoting a webpage title targeting condition.
+     * 
+ * + * PAGE_TITLE = 4; + */ + PAGE_TITLE(4), + /** + *
+     * Operand denoting a webpage content targeting condition.
+     * 
+ * + * PAGE_CONTENT = 5; + */ + PAGE_CONTENT(5), + /** + *
+     * Operand denoting a webpage custom label targeting condition.
+     * 
+ * + * CUSTOM_LABEL = 6; + */ + CUSTOM_LABEL(6), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + public static final int UNKNOWN_VALUE = 1; + /** + *
+     * Operand denoting a webpage URL targeting condition.
+     * 
+ * + * URL = 2; + */ + public static final int URL_VALUE = 2; + /** + *
+     * Operand denoting a webpage category targeting condition.
+     * 
+ * + * CATEGORY = 3; + */ + public static final int CATEGORY_VALUE = 3; + /** + *
+     * Operand denoting a webpage title targeting condition.
+     * 
+ * + * PAGE_TITLE = 4; + */ + public static final int PAGE_TITLE_VALUE = 4; + /** + *
+     * Operand denoting a webpage content targeting condition.
+     * 
+ * + * PAGE_CONTENT = 5; + */ + public static final int PAGE_CONTENT_VALUE = 5; + /** + *
+     * Operand denoting a webpage custom label targeting condition.
+     * 
+ * + * CUSTOM_LABEL = 6; + */ + public static final int CUSTOM_LABEL_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static WebpageConditionOperand valueOf(int value) { + return forNumber(value); + } + + public static WebpageConditionOperand forNumber(int value) { + switch (value) { + case 0: return UNSPECIFIED; + case 1: return UNKNOWN; + case 2: return URL; + case 3: return CATEGORY; + case 4: return PAGE_TITLE; + case 5: return PAGE_CONTENT; + case 6: return CUSTOM_LABEL; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + WebpageConditionOperand> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public WebpageConditionOperand findValueByNumber(int number) { + return WebpageConditionOperand.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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.ads.googleads.v0.enums.WebpageConditionOperandEnum.getDescriptor().getEnumTypes().get(0); + } + + private static final WebpageConditionOperand[] VALUES = values(); + + public static WebpageConditionOperand 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 WebpageConditionOperand(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.googleads.v0.enums.WebpageConditionOperandEnum.WebpageConditionOperand) + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.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.ads.googleads.v0.enums.WebpageConditionOperandEnum)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum other = (com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum 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.ads.googleads.v0.enums.WebpageConditionOperandEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum 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.ads.googleads.v0.enums.WebpageConditionOperandEnum parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum 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.ads.googleads.v0.enums.WebpageConditionOperandEnum parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum 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.ads.googleads.v0.enums.WebpageConditionOperandEnum 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; + } + /** + *
+   * Container for enum describing webpage condition operand in webpage criterion.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.WebpageConditionOperandEnum} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.enums.WebpageConditionOperandEnum) + com.google.ads.googleads.v0.enums.WebpageConditionOperandEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.WebpageConditionOperandProto.internal_static_google_ads_googleads_v0_enums_WebpageConditionOperandEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.WebpageConditionOperandProto.internal_static_google_ads_googleads_v0_enums_WebpageConditionOperandEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum.class, com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.enums.WebpageConditionOperandProto.internal_static_google_ads_googleads_v0_enums_WebpageConditionOperandEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum getDefaultInstanceForType() { + return com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum build() { + com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum buildPartial() { + com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum result = new com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum) { + return mergeFrom((com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum other) { + if (other == com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.enums.WebpageConditionOperandEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.WebpageConditionOperandEnum) + private static final com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum(); + } + + public static com.google.ads.googleads.v0.enums.WebpageConditionOperandEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebpageConditionOperandEnum parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebpageConditionOperandEnum(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.enums.WebpageConditionOperandEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/WebpageConditionOperandEnumOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/WebpageConditionOperandEnumOrBuilder.java new file mode 100644 index 0000000000..c813f0221f --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/WebpageConditionOperandEnumOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/webpage_condition_operand.proto + +package com.google.ads.googleads.v0.enums; + +public interface WebpageConditionOperandEnumOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.enums.WebpageConditionOperandEnum) + com.google.protobuf.MessageOrBuilder { +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/WebpageConditionOperandProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/WebpageConditionOperandProto.java new file mode 100644 index 0000000000..919fa52ef0 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/WebpageConditionOperandProto.java @@ -0,0 +1,66 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/webpage_condition_operand.proto + +package com.google.ads.googleads.v0.enums; + +public final class WebpageConditionOperandProto { + private WebpageConditionOperandProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_enums_WebpageConditionOperandEnum_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_enums_WebpageConditionOperandEnum_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n=google/ads/googleads/v0/enums/webpage_" + + "condition_operand.proto\022\035google.ads.goog" + + "leads.v0.enums\"\242\001\n\033WebpageConditionOpera" + + "ndEnum\"\202\001\n\027WebpageConditionOperand\022\017\n\013UN" + + "SPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\007\n\003URL\020\002\022\014\n\010CAT" + + "EGORY\020\003\022\016\n\nPAGE_TITLE\020\004\022\020\n\014PAGE_CONTENT\020" + + "\005\022\020\n\014CUSTOM_LABEL\020\006B\361\001\n!com.google.ads.g" + + "oogleads.v0.enumsB\034WebpageConditionOpera" + + "ndProtoP\001ZBgoogle.golang.org/genproto/go" + + "ogleapis/ads/googleads/v0/enums;enums\242\002\003" + + "GAA\252\002\035Google.Ads.GoogleAds.V0.Enums\312\002\035Go" + + "ogle\\Ads\\GoogleAds\\V0\\Enums\352\002!Google::Ad" + + "s::GoogleAds::V0::Enumsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_google_ads_googleads_v0_enums_WebpageConditionOperandEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_googleads_v0_enums_WebpageConditionOperandEnum_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_enums_WebpageConditionOperandEnum_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/WebpageConditionOperatorEnum.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/WebpageConditionOperatorEnum.java new file mode 100644 index 0000000000..d46346902c --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/WebpageConditionOperatorEnum.java @@ -0,0 +1,575 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/webpage_condition_operator.proto + +package com.google.ads.googleads.v0.enums; + +/** + *
+ * Container for enum describing webpage condition operator in webpage
+ * criterion.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.WebpageConditionOperatorEnum} + */ +public final class WebpageConditionOperatorEnum extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.enums.WebpageConditionOperatorEnum) + WebpageConditionOperatorEnumOrBuilder { +private static final long serialVersionUID = 0L; + // Use WebpageConditionOperatorEnum.newBuilder() to construct. + private WebpageConditionOperatorEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WebpageConditionOperatorEnum() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WebpageConditionOperatorEnum( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.WebpageConditionOperatorProto.internal_static_google_ads_googleads_v0_enums_WebpageConditionOperatorEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.WebpageConditionOperatorProto.internal_static_google_ads_googleads_v0_enums_WebpageConditionOperatorEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum.class, com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum.Builder.class); + } + + /** + *
+   * The webpage condition operator in webpage criterion.
+   * 
+ * + * Protobuf enum {@code google.ads.googleads.v0.enums.WebpageConditionOperatorEnum.WebpageConditionOperator} + */ + public enum WebpageConditionOperator + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Not specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + UNKNOWN(1), + /** + *
+     * The argument web condition is equal to the compared web condition.
+     * 
+ * + * EQUALS = 2; + */ + EQUALS(2), + /** + *
+     * The argument web condition is part of the compared web condition.
+     * 
+ * + * CONTAINS = 3; + */ + CONTAINS(3), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Not specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + public static final int UNKNOWN_VALUE = 1; + /** + *
+     * The argument web condition is equal to the compared web condition.
+     * 
+ * + * EQUALS = 2; + */ + public static final int EQUALS_VALUE = 2; + /** + *
+     * The argument web condition is part of the compared web condition.
+     * 
+ * + * CONTAINS = 3; + */ + public static final int CONTAINS_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static WebpageConditionOperator valueOf(int value) { + return forNumber(value); + } + + public static WebpageConditionOperator forNumber(int value) { + switch (value) { + case 0: return UNSPECIFIED; + case 1: return UNKNOWN; + case 2: return EQUALS; + case 3: return CONTAINS; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + WebpageConditionOperator> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public WebpageConditionOperator findValueByNumber(int number) { + return WebpageConditionOperator.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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.ads.googleads.v0.enums.WebpageConditionOperatorEnum.getDescriptor().getEnumTypes().get(0); + } + + private static final WebpageConditionOperator[] VALUES = values(); + + public static WebpageConditionOperator 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 WebpageConditionOperator(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.googleads.v0.enums.WebpageConditionOperatorEnum.WebpageConditionOperator) + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.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.ads.googleads.v0.enums.WebpageConditionOperatorEnum)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum other = (com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum 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.ads.googleads.v0.enums.WebpageConditionOperatorEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum 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.ads.googleads.v0.enums.WebpageConditionOperatorEnum parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum 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.ads.googleads.v0.enums.WebpageConditionOperatorEnum parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum 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.ads.googleads.v0.enums.WebpageConditionOperatorEnum 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; + } + /** + *
+   * Container for enum describing webpage condition operator in webpage
+   * criterion.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.enums.WebpageConditionOperatorEnum} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.enums.WebpageConditionOperatorEnum) + com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.enums.WebpageConditionOperatorProto.internal_static_google_ads_googleads_v0_enums_WebpageConditionOperatorEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.enums.WebpageConditionOperatorProto.internal_static_google_ads_googleads_v0_enums_WebpageConditionOperatorEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum.class, com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.enums.WebpageConditionOperatorProto.internal_static_google_ads_googleads_v0_enums_WebpageConditionOperatorEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum getDefaultInstanceForType() { + return com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum build() { + com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum buildPartial() { + com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum result = new com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum) { + return mergeFrom((com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum other) { + if (other == com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.enums.WebpageConditionOperatorEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.enums.WebpageConditionOperatorEnum) + private static final com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum(); + } + + public static com.google.ads.googleads.v0.enums.WebpageConditionOperatorEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebpageConditionOperatorEnum parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebpageConditionOperatorEnum(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.enums.WebpageConditionOperatorEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/WebpageConditionOperatorEnumOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/WebpageConditionOperatorEnumOrBuilder.java new file mode 100644 index 0000000000..10cc2b4a57 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/WebpageConditionOperatorEnumOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/webpage_condition_operator.proto + +package com.google.ads.googleads.v0.enums; + +public interface WebpageConditionOperatorEnumOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.enums.WebpageConditionOperatorEnum) + com.google.protobuf.MessageOrBuilder { +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/enums/WebpageConditionOperatorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/WebpageConditionOperatorProto.java new file mode 100644 index 0000000000..5a83bc3cf0 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/enums/WebpageConditionOperatorProto.java @@ -0,0 +1,65 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/enums/webpage_condition_operator.proto + +package com.google.ads.googleads.v0.enums; + +public final class WebpageConditionOperatorProto { + private WebpageConditionOperatorProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_enums_WebpageConditionOperatorEnum_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_enums_WebpageConditionOperatorEnum_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n>google/ads/googleads/v0/enums/webpage_" + + "condition_operator.proto\022\035google.ads.goo" + + "gleads.v0.enums\"r\n\034WebpageConditionOpera" + + "torEnum\"R\n\030WebpageConditionOperator\022\017\n\013U" + + "NSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\n\n\006EQUALS\020\002\022\014\n" + + "\010CONTAINS\020\003B\362\001\n!com.google.ads.googleads" + + ".v0.enumsB\035WebpageConditionOperatorProto" + + "P\001ZBgoogle.golang.org/genproto/googleapi" + + "s/ads/googleads/v0/enums;enums\242\002\003GAA\252\002\035G" + + "oogle.Ads.GoogleAds.V0.Enums\312\002\035Google\\Ad" + + "s\\GoogleAds\\V0\\Enums\352\002!Google::Ads::Goog" + + "leAds::V0::Enumsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_google_ads_googleads_v0_enums_WebpageConditionOperatorEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_googleads_v0_enums_WebpageConditionOperatorEnum_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_enums_WebpageConditionOperatorEnum_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AccountBudgetProposalErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AccountBudgetProposalErrorProto.java index 51d3f557fc..51a0c11b17 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AccountBudgetProposalErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AccountBudgetProposalErrorProto.java @@ -51,13 +51,14 @@ public static void registerAllExtensions( "PDATE_IS_NO_OP\020\023\022#\n\037END_TIME_MUST_FOLLOW" + "_START_TIME\020\024\0225\n1BUDGET_DATE_RANGE_INCOM" + "PATIBLE_WITH_BILLING_SETUP\020\025\022\022\n\016NOT_AUTH" + - "ORIZED\020\026\022\031\n\025INVALID_BILLING_SETUP\020\027B\325\001\n\"" + + "ORIZED\020\026\022\031\n\025INVALID_BILLING_SETUP\020\027B\372\001\n\"" + "com.google.ads.googleads.v0.errorsB\037Acco" + "untBudgetProposalErrorProtoP\001ZDgoogle.go" + "lang.org/genproto/googleapis/ads/googlea" + "ds/v0/errors;errors\242\002\003GAA\252\002\036Google.Ads.G" + "oogleAds.V0.Errors\312\002\036Google\\Ads\\GoogleAd" + - "s\\V0\\Errorsb\006proto3" + "s\\V0\\Errors\352\002\"Google::Ads::GoogleAds::V0" + + "::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdCustomizerErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdCustomizerErrorProto.java index 05b2159e5e..11388e3147 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdCustomizerErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdCustomizerErrorProto.java @@ -36,12 +36,13 @@ public static void registerAllExtensions( "T\020\002\022\032\n\026COUNTDOWN_DATE_IN_PAST\020\003\022\034\n\030COUNT" + "DOWN_INVALID_LOCALE\020\004\022\'\n#COUNTDOWN_INVAL" + "ID_START_DAYS_BEFORE\020\005\022\025\n\021UNKNOWN_USER_L" + - "IST\020\006B\314\001\n\"com.google.ads.googleads.v0.er" + + "IST\020\006B\361\001\n\"com.google.ads.googleads.v0.er" + "rorsB\026AdCustomizerErrorProtoP\001ZDgoogle.g" + "olang.org/genproto/googleapis/ads/google" + "ads/v0/errors;errors\242\002\003GAA\252\002\036Google.Ads." + "GoogleAds.V0.Errors\312\002\036Google\\Ads\\GoogleA" + - "ds\\V0\\Errorsb\006proto3" + "ds\\V0\\Errors\352\002\"Google::Ads::GoogleAds::V" + + "0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdErrorProto.java index ef935563b3..dfcbfeb25e 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdErrorProto.java @@ -134,12 +134,13 @@ public static void registerAllExtensions( "\177\022#\n\036CANNOT_SET_PATH2_WITHOUT_PATH1\020\200\001\0223" + "\n.MISSING_DYNAMIC_SEARCH_ADS_SETTING_DOM" + "AIN_NAME\020\201\001\022\'\n\"INCOMPATIBLE_WITH_RESTRIC" + - "TION_TYPE\020\202\001B\302\001\n\"com.google.ads.googlead" + + "TION_TYPE\020\202\001B\347\001\n\"com.google.ads.googlead" + "s.v0.errorsB\014AdErrorProtoP\001ZDgoogle.gola" + "ng.org/genproto/googleapis/ads/googleads" + "/v0/errors;errors\242\002\003GAA\252\002\036Google.Ads.Goo" + "gleAds.V0.Errors\312\002\036Google\\Ads\\GoogleAds\\" + - "V0\\Errorsb\006proto3" + "V0\\Errors\352\002\"Google::Ads::GoogleAds::V0::" + + "Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdGroupAdErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdGroupAdErrorProto.java index 9b1e9c5065..0bcb419937 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdGroupAdErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdGroupAdErrorProto.java @@ -38,12 +38,13 @@ public static void registerAllExtensions( "_ON_REMOVED_ADGROUPAD\020\005\022 \n\034CANNOT_CREATE" + "_DEPRECATED_ADS\020\006\022\032\n\026CANNOT_CREATE_TEXT_" + "ADS\020\007\022\017\n\013EMPTY_FIELD\020\010\022\'\n#RESOURCE_REFER" + - "ENCED_IN_MULTIPLE_OPS\020\tB\311\001\n\"com.google.a" + + "ENCED_IN_MULTIPLE_OPS\020\tB\356\001\n\"com.google.a" + "ds.googleads.v0.errorsB\023AdGroupAdErrorPr" + "otoP\001ZDgoogle.golang.org/genproto/google" + "apis/ads/googleads/v0/errors;errors\242\002\003GA" + "A\252\002\036Google.Ads.GoogleAds.V0.Errors\312\002\036Goo" + - "gle\\Ads\\GoogleAds\\V0\\Errorsb\006proto3" + "gle\\Ads\\GoogleAds\\V0\\Errors\352\002\"Google::Ad" + + "s::GoogleAds::V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdGroupBidModifierErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdGroupBidModifierErrorProto.java index dff727771e..4dfa3f23a2 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdGroupBidModifierErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdGroupBidModifierErrorProto.java @@ -35,12 +35,13 @@ public static void registerAllExtensions( "\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\036\n\032CRITERIO" + "N_ID_NOT_SUPPORTED\020\002\022=\n9CANNOT_OVERRIDE_" + "OPTED_OUT_CAMPAIGN_CRITERION_BID_MODIFIE" + - "R\020\003B\322\001\n\"com.google.ads.googleads.v0.erro" + + "R\020\003B\367\001\n\"com.google.ads.googleads.v0.erro" + "rsB\034AdGroupBidModifierErrorProtoP\001ZDgoog" + "le.golang.org/genproto/googleapis/ads/go" + "ogleads/v0/errors;errors\242\002\003GAA\252\002\036Google." + "Ads.GoogleAds.V0.Errors\312\002\036Google\\Ads\\Goo" + - "gleAds\\V0\\Errorsb\006proto3" + "gleAds\\V0\\Errors\352\002\"Google::Ads::GoogleAd" + + "s::V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdGroupCriterionErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdGroupCriterionErrorProto.java index 4fdd3b68ed..0a9adbec1b 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdGroupCriterionErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdGroupCriterionErrorProto.java @@ -71,12 +71,13 @@ public static void registerAllExtensions( "_EXIST\020,\022#\n\037LISTING_GROUP_CANNOT_BE_REMO" + "VED\020-\022\036\n\032INVALID_LISTING_GROUP_TYPE\020.\022*\n" + "&LISTING_GROUP_ADD_MAY_ONLY_USE_TEMP_ID\020" + - "/B\320\001\n\"com.google.ads.googleads.v0.errors" + + "/B\365\001\n\"com.google.ads.googleads.v0.errors" + "B\032AdGroupCriterionErrorProtoP\001ZDgoogle.g" + "olang.org/genproto/googleapis/ads/google" + "ads/v0/errors;errors\242\002\003GAA\252\002\036Google.Ads." + "GoogleAds.V0.Errors\312\002\036Google\\Ads\\GoogleA" + - "ds\\V0\\Errorsb\006proto3" + "ds\\V0\\Errors\352\002\"Google::Ads::GoogleAds::V" + + "0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdGroupErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdGroupErrorProto.java index 62335bb4ac..d7ed960c49 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdGroupErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdGroupErrorProto.java @@ -43,13 +43,13 @@ public static void registerAllExtensions( "DVERTISING_CHANNEL_TYPE\020\014\0229\n5ADGROUP_TYP" + "E_NOT_SUPPORTED_FOR_CAMPAIGN_SALES_COUNT" + "RY\020\r\022B\n>CANNOT_ADD_ADGROUP_OF_TYPE_DSA_T" + - "O_CAMPAIGN_WITHOUT_DSA_SETTING\020\016B\307\001\n\"com" + + "O_CAMPAIGN_WITHOUT_DSA_SETTING\020\016B\354\001\n\"com" + ".google.ads.googleads.v0.errorsB\021AdGroup" + "ErrorProtoP\001ZDgoogle.golang.org/genproto" + "/googleapis/ads/googleads/v0/errors;erro" + "rs\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V0.Error" + - "s\312\002\036Google\\Ads\\GoogleAds\\V0\\Errorsb\006prot" + - "o3" + "s\312\002\036Google\\Ads\\GoogleAds\\V0\\Errors\352\002\"Goo" + + "gle::Ads::GoogleAds::V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdGroupFeedErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdGroupFeedErrorProto.java index 9612e67d99..a44eeef9cf 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdGroupFeedErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdGroupFeedErrorProto.java @@ -39,12 +39,13 @@ public static void registerAllExtensions( "EED\020\005\022\034\n\030INVALID_PLACEHOLDER_TYPE\020\006\022,\n(M" + "ISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE\020" + "\007\022&\n\"NO_EXISTING_LOCATION_CUSTOMER_FEED\020" + - "\010B\313\001\n\"com.google.ads.googleads.v0.errors" + + "\010B\360\001\n\"com.google.ads.googleads.v0.errors" + "B\025AdGroupFeedErrorProtoP\001ZDgoogle.golang" + ".org/genproto/googleapis/ads/googleads/v" + "0/errors;errors\242\002\003GAA\252\002\036Google.Ads.Googl" + "eAds.V0.Errors\312\002\036Google\\Ads\\GoogleAds\\V0" + - "\\Errorsb\006proto3" + "\\Errors\352\002\"Google::Ads::GoogleAds::V0::Er" + + "rorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CampaignGroupErrorEnum.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdParameterErrorEnum.java similarity index 62% rename from google-ads/src/main/java/com/google/ads/googleads/v0/errors/CampaignGroupErrorEnum.java rename to google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdParameterErrorEnum.java index c30d5c083f..2e5c87fb4c 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CampaignGroupErrorEnum.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdParameterErrorEnum.java @@ -1,25 +1,25 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v0/errors/campaign_group_error.proto +// source: google/ads/googleads/v0/errors/ad_parameter_error.proto package com.google.ads.googleads.v0.errors; /** *
- * Container for enum describing possible campaign group errors.
+ * Container for enum describing possible ad parameter errors.
  * 
* - * Protobuf type {@code google.ads.googleads.v0.errors.CampaignGroupErrorEnum} + * Protobuf type {@code google.ads.googleads.v0.errors.AdParameterErrorEnum} */ -public final class CampaignGroupErrorEnum extends +public final class AdParameterErrorEnum extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.errors.CampaignGroupErrorEnum) - CampaignGroupErrorEnumOrBuilder { + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.errors.AdParameterErrorEnum) + AdParameterErrorEnumOrBuilder { private static final long serialVersionUID = 0L; - // Use CampaignGroupErrorEnum.newBuilder() to construct. - private CampaignGroupErrorEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use AdParameterErrorEnum.newBuilder() to construct. + private AdParameterErrorEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CampaignGroupErrorEnum() { + private AdParameterErrorEnum() { } @java.lang.Override @@ -27,7 +27,7 @@ private CampaignGroupErrorEnum() { getUnknownFields() { return this.unknownFields; } - private CampaignGroupErrorEnum( + private AdParameterErrorEnum( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -66,25 +66,25 @@ private CampaignGroupErrorEnum( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.googleads.v0.errors.CampaignGroupErrorProto.internal_static_google_ads_googleads_v0_errors_CampaignGroupErrorEnum_descriptor; + return com.google.ads.googleads.v0.errors.AdParameterErrorProto.internal_static_google_ads_googleads_v0_errors_AdParameterErrorEnum_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.googleads.v0.errors.CampaignGroupErrorProto.internal_static_google_ads_googleads_v0_errors_CampaignGroupErrorEnum_fieldAccessorTable + return com.google.ads.googleads.v0.errors.AdParameterErrorProto.internal_static_google_ads_googleads_v0_errors_AdParameterErrorEnum_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum.class, com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum.Builder.class); + com.google.ads.googleads.v0.errors.AdParameterErrorEnum.class, com.google.ads.googleads.v0.errors.AdParameterErrorEnum.Builder.class); } /** *
-   * Enum describing possible campaign group errors.
+   * Enum describing possible ad parameter errors.
    * 
* - * Protobuf enum {@code google.ads.googleads.v0.errors.CampaignGroupErrorEnum.CampaignGroupError} + * Protobuf enum {@code google.ads.googleads.v0.errors.AdParameterErrorEnum.AdParameterError} */ - public enum CampaignGroupError + public enum AdParameterError implements com.google.protobuf.ProtocolMessageEnum { /** *
@@ -104,29 +104,20 @@ public enum CampaignGroupError
     UNKNOWN(1),
     /**
      * 
-     * CampaignGroup was removed with ENABLED or PAUSED Campaigns associated
-     * with it.
+     * The ad group criterion must be a keyword criterion.
      * 
* - * CANNOT_REMOVE_CAMPAIGN_GROUP_WITH_ENABLED_OR_PAUSED_CAMPAIGNS = 2; + * AD_GROUP_CRITERION_MUST_BE_KEYWORD = 2; */ - CANNOT_REMOVE_CAMPAIGN_GROUP_WITH_ENABLED_OR_PAUSED_CAMPAIGNS(2), + AD_GROUP_CRITERION_MUST_BE_KEYWORD(2), /** *
-     * CampaignGroup with the given name already exists.
+     * The insertion text is invalid.
      * 
* - * DUPLICATE_NAME = 3; + * INVALID_INSERTION_TEXT_FORMAT = 3; */ - DUPLICATE_NAME(3), - /** - *
-     * Cannot modify a removed campaign group.
-     * 
- * - * CANNOT_MODIFY_REMOVED_CAMPAIGN_GROUP = 4; - */ - CANNOT_MODIFY_REMOVED_CAMPAIGN_GROUP(4), + INVALID_INSERTION_TEXT_FORMAT(3), UNRECOGNIZED(-1), ; @@ -148,29 +139,20 @@ public enum CampaignGroupError public static final int UNKNOWN_VALUE = 1; /** *
-     * CampaignGroup was removed with ENABLED or PAUSED Campaigns associated
-     * with it.
-     * 
- * - * CANNOT_REMOVE_CAMPAIGN_GROUP_WITH_ENABLED_OR_PAUSED_CAMPAIGNS = 2; - */ - public static final int CANNOT_REMOVE_CAMPAIGN_GROUP_WITH_ENABLED_OR_PAUSED_CAMPAIGNS_VALUE = 2; - /** - *
-     * CampaignGroup with the given name already exists.
+     * The ad group criterion must be a keyword criterion.
      * 
* - * DUPLICATE_NAME = 3; + * AD_GROUP_CRITERION_MUST_BE_KEYWORD = 2; */ - public static final int DUPLICATE_NAME_VALUE = 3; + public static final int AD_GROUP_CRITERION_MUST_BE_KEYWORD_VALUE = 2; /** *
-     * Cannot modify a removed campaign group.
+     * The insertion text is invalid.
      * 
* - * CANNOT_MODIFY_REMOVED_CAMPAIGN_GROUP = 4; + * INVALID_INSERTION_TEXT_FORMAT = 3; */ - public static final int CANNOT_MODIFY_REMOVED_CAMPAIGN_GROUP_VALUE = 4; + public static final int INVALID_INSERTION_TEXT_FORMAT_VALUE = 3; public final int getNumber() { @@ -185,30 +167,29 @@ public final int getNumber() { * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated - public static CampaignGroupError valueOf(int value) { + public static AdParameterError valueOf(int value) { return forNumber(value); } - public static CampaignGroupError forNumber(int value) { + public static AdParameterError forNumber(int value) { switch (value) { case 0: return UNSPECIFIED; case 1: return UNKNOWN; - case 2: return CANNOT_REMOVE_CAMPAIGN_GROUP_WITH_ENABLED_OR_PAUSED_CAMPAIGNS; - case 3: return DUPLICATE_NAME; - case 4: return CANNOT_MODIFY_REMOVED_CAMPAIGN_GROUP; + case 2: return AD_GROUP_CRITERION_MUST_BE_KEYWORD; + case 3: return INVALID_INSERTION_TEXT_FORMAT; default: return null; } } - 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< - CampaignGroupError> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public CampaignGroupError findValueByNumber(int number) { - return CampaignGroupError.forNumber(number); + AdParameterError> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AdParameterError findValueByNumber(int number) { + return AdParameterError.forNumber(number); } }; @@ -222,12 +203,12 @@ public CampaignGroupError findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum.getDescriptor().getEnumTypes().get(0); + return com.google.ads.googleads.v0.errors.AdParameterErrorEnum.getDescriptor().getEnumTypes().get(0); } - private static final CampaignGroupError[] VALUES = values(); + private static final AdParameterError[] VALUES = values(); - public static CampaignGroupError valueOf( + public static AdParameterError valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( @@ -241,11 +222,11 @@ public static CampaignGroupError valueOf( private final int value; - private CampaignGroupError(int value) { + private AdParameterError(int value) { this.value = value; } - // @@protoc_insertion_point(enum_scope:google.ads.googleads.v0.errors.CampaignGroupErrorEnum.CampaignGroupError) + // @@protoc_insertion_point(enum_scope:google.ads.googleads.v0.errors.AdParameterErrorEnum.AdParameterError) } private byte memoizedIsInitialized = -1; @@ -281,10 +262,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum)) { + if (!(obj instanceof com.google.ads.googleads.v0.errors.AdParameterErrorEnum)) { return super.equals(obj); } - com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum other = (com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum) obj; + com.google.ads.googleads.v0.errors.AdParameterErrorEnum other = (com.google.ads.googleads.v0.errors.AdParameterErrorEnum) obj; boolean result = true; result = result && unknownFields.equals(other.unknownFields); @@ -303,69 +284,69 @@ public int hashCode() { return hash; } - public static com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum parseFrom( + public static com.google.ads.googleads.v0.errors.AdParameterErrorEnum parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum parseFrom( + public static com.google.ads.googleads.v0.errors.AdParameterErrorEnum parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum parseFrom( + public static com.google.ads.googleads.v0.errors.AdParameterErrorEnum parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum parseFrom( + public static com.google.ads.googleads.v0.errors.AdParameterErrorEnum 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.ads.googleads.v0.errors.CampaignGroupErrorEnum parseFrom(byte[] data) + public static com.google.ads.googleads.v0.errors.AdParameterErrorEnum parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum parseFrom( + public static com.google.ads.googleads.v0.errors.AdParameterErrorEnum parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum parseFrom(java.io.InputStream input) + public static com.google.ads.googleads.v0.errors.AdParameterErrorEnum parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum parseFrom( + public static com.google.ads.googleads.v0.errors.AdParameterErrorEnum 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.ads.googleads.v0.errors.CampaignGroupErrorEnum parseDelimitedFrom(java.io.InputStream input) + public static com.google.ads.googleads.v0.errors.AdParameterErrorEnum parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum parseDelimitedFrom( + public static com.google.ads.googleads.v0.errors.AdParameterErrorEnum 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.ads.googleads.v0.errors.CampaignGroupErrorEnum parseFrom( + public static com.google.ads.googleads.v0.errors.AdParameterErrorEnum parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum parseFrom( + public static com.google.ads.googleads.v0.errors.AdParameterErrorEnum parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -378,7 +359,7 @@ public static com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum parseFro public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum prototype) { + public static Builder newBuilder(com.google.ads.googleads.v0.errors.AdParameterErrorEnum prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -395,29 +376,29 @@ protected Builder newBuilderForType( } /** *
-   * Container for enum describing possible campaign group errors.
+   * Container for enum describing possible ad parameter errors.
    * 
* - * Protobuf type {@code google.ads.googleads.v0.errors.CampaignGroupErrorEnum} + * Protobuf type {@code google.ads.googleads.v0.errors.AdParameterErrorEnum} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.errors.CampaignGroupErrorEnum) - com.google.ads.googleads.v0.errors.CampaignGroupErrorEnumOrBuilder { + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.errors.AdParameterErrorEnum) + com.google.ads.googleads.v0.errors.AdParameterErrorEnumOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.googleads.v0.errors.CampaignGroupErrorProto.internal_static_google_ads_googleads_v0_errors_CampaignGroupErrorEnum_descriptor; + return com.google.ads.googleads.v0.errors.AdParameterErrorProto.internal_static_google_ads_googleads_v0_errors_AdParameterErrorEnum_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.googleads.v0.errors.CampaignGroupErrorProto.internal_static_google_ads_googleads_v0_errors_CampaignGroupErrorEnum_fieldAccessorTable + return com.google.ads.googleads.v0.errors.AdParameterErrorProto.internal_static_google_ads_googleads_v0_errors_AdParameterErrorEnum_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum.class, com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum.Builder.class); + com.google.ads.googleads.v0.errors.AdParameterErrorEnum.class, com.google.ads.googleads.v0.errors.AdParameterErrorEnum.Builder.class); } - // Construct using com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum.newBuilder() + // Construct using com.google.ads.googleads.v0.errors.AdParameterErrorEnum.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -441,17 +422,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.googleads.v0.errors.CampaignGroupErrorProto.internal_static_google_ads_googleads_v0_errors_CampaignGroupErrorEnum_descriptor; + return com.google.ads.googleads.v0.errors.AdParameterErrorProto.internal_static_google_ads_googleads_v0_errors_AdParameterErrorEnum_descriptor; } @java.lang.Override - public com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum getDefaultInstanceForType() { - return com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum.getDefaultInstance(); + public com.google.ads.googleads.v0.errors.AdParameterErrorEnum getDefaultInstanceForType() { + return com.google.ads.googleads.v0.errors.AdParameterErrorEnum.getDefaultInstance(); } @java.lang.Override - public com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum build() { - com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum result = buildPartial(); + public com.google.ads.googleads.v0.errors.AdParameterErrorEnum build() { + com.google.ads.googleads.v0.errors.AdParameterErrorEnum result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -459,8 +440,8 @@ public com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum build() { } @java.lang.Override - public com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum buildPartial() { - com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum result = new com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum(this); + public com.google.ads.googleads.v0.errors.AdParameterErrorEnum buildPartial() { + com.google.ads.googleads.v0.errors.AdParameterErrorEnum result = new com.google.ads.googleads.v0.errors.AdParameterErrorEnum(this); onBuilt(); return result; } @@ -499,16 +480,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum) { - return mergeFrom((com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum)other); + if (other instanceof com.google.ads.googleads.v0.errors.AdParameterErrorEnum) { + return mergeFrom((com.google.ads.googleads.v0.errors.AdParameterErrorEnum)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum other) { - if (other == com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.ads.googleads.v0.errors.AdParameterErrorEnum other) { + if (other == com.google.ads.googleads.v0.errors.AdParameterErrorEnum.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -524,11 +505,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum parsedMessage = null; + com.google.ads.googleads.v0.errors.AdParameterErrorEnum parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum) e.getUnfinishedMessage(); + parsedMessage = (com.google.ads.googleads.v0.errors.AdParameterErrorEnum) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -550,41 +531,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.errors.CampaignGroupErrorEnum) + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.errors.AdParameterErrorEnum) } - // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.errors.CampaignGroupErrorEnum) - private static final com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.errors.AdParameterErrorEnum) + private static final com.google.ads.googleads.v0.errors.AdParameterErrorEnum DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum(); + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.errors.AdParameterErrorEnum(); } - public static com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum getDefaultInstance() { + public static com.google.ads.googleads.v0.errors.AdParameterErrorEnum 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 CampaignGroupErrorEnum parsePartialFrom( + public AdParameterErrorEnum parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CampaignGroupErrorEnum(input, extensionRegistry); + return new AdParameterErrorEnum(input, extensionRegistry); } }; - 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.ads.googleads.v0.errors.CampaignGroupErrorEnum getDefaultInstanceForType() { + public com.google.ads.googleads.v0.errors.AdParameterErrorEnum getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CampaignGroupErrorEnumOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdParameterErrorEnumOrBuilder.java similarity index 56% rename from google-ads/src/main/java/com/google/ads/googleads/v0/errors/CampaignGroupErrorEnumOrBuilder.java rename to google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdParameterErrorEnumOrBuilder.java index 07a2adfa1d..b18e641c30 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CampaignGroupErrorEnumOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdParameterErrorEnumOrBuilder.java @@ -1,9 +1,9 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v0/errors/campaign_group_error.proto +// source: google/ads/googleads/v0/errors/ad_parameter_error.proto package com.google.ads.googleads.v0.errors; -public interface CampaignGroupErrorEnumOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.errors.CampaignGroupErrorEnum) +public interface AdParameterErrorEnumOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.errors.AdParameterErrorEnum) com.google.protobuf.MessageOrBuilder { } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdParameterErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdParameterErrorProto.java new file mode 100644 index 0000000000..1572f00f76 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdParameterErrorProto.java @@ -0,0 +1,66 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/errors/ad_parameter_error.proto + +package com.google.ads.googleads.v0.errors; + +public final class AdParameterErrorProto { + private AdParameterErrorProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_errors_AdParameterErrorEnum_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_errors_AdParameterErrorEnum_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n7google/ads/googleads/v0/errors/ad_para" + + "meter_error.proto\022\036google.ads.googleads." + + "v0.errors\"\223\001\n\024AdParameterErrorEnum\"{\n\020Ad" + + "ParameterError\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNO" + + "WN\020\001\022&\n\"AD_GROUP_CRITERION_MUST_BE_KEYWO" + + "RD\020\002\022!\n\035INVALID_INSERTION_TEXT_FORMAT\020\003B" + + "\360\001\n\"com.google.ads.googleads.v0.errorsB\025" + + "AdParameterErrorProtoP\001ZDgoogle.golang.o" + + "rg/genproto/googleapis/ads/googleads/v0/" + + "errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleA" + + "ds.V0.Errors\312\002\036Google\\Ads\\GoogleAds\\V0\\E" + + "rrors\352\002\"Google::Ads::GoogleAds::V0::Erro" + + "rsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_google_ads_googleads_v0_errors_AdParameterErrorEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_googleads_v0_errors_AdParameterErrorEnum_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_errors_AdParameterErrorEnum_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdSharingErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdSharingErrorProto.java index f48b62c50e..37a9f377f8 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdSharingErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdSharingErrorProto.java @@ -34,12 +34,13 @@ public static void registerAllExtensions( "ringError\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022" + " \n\034AD_GROUP_ALREADY_CONTAINS_AD\020\002\022\"\n\036INC" + "OMPATIBLE_AD_UNDER_AD_GROUP\020\003\022\034\n\030CANNOT_" + - "SHARE_INACTIVE_AD\020\004B\311\001\n\"com.google.ads.g" + + "SHARE_INACTIVE_AD\020\004B\356\001\n\"com.google.ads.g" + "oogleads.v0.errorsB\023AdSharingErrorProtoP" + "\001ZDgoogle.golang.org/genproto/googleapis" + "/ads/googleads/v0/errors;errors\242\002\003GAA\252\002\036" + "Google.Ads.GoogleAds.V0.Errors\312\002\036Google\\" + - "Ads\\GoogleAds\\V0\\Errorsb\006proto3" + "Ads\\GoogleAds\\V0\\Errors\352\002\"Google::Ads::G" + + "oogleAds::V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdxErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdxErrorProto.java index 0417e36176..4d1fe18116 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdxErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AdxErrorProto.java @@ -32,12 +32,13 @@ public static void registerAllExtensions( "or.proto\022\036google.ads.googleads.v0.errors" + "\"Q\n\014AdxErrorEnum\"A\n\010AdxError\022\017\n\013UNSPECIF" + "IED\020\000\022\013\n\007UNKNOWN\020\001\022\027\n\023UNSUPPORTED_FEATUR" + - "E\020\002B\303\001\n\"com.google.ads.googleads.v0.erro" + + "E\020\002B\350\001\n\"com.google.ads.googleads.v0.erro" + "rsB\rAdxErrorProtoP\001ZDgoogle.golang.org/g" + "enproto/googleapis/ads/googleads/v0/erro" + "rs;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V" + "0.Errors\312\002\036Google\\Ads\\GoogleAds\\V0\\Error" + - "sb\006proto3" + "s\352\002\"Google::Ads::GoogleAds::V0::Errorsb\006" + + "proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AuthenticationErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AuthenticationErrorProto.java index 3506c19a89..b59ca97a64 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AuthenticationErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AuthenticationErrorProto.java @@ -45,13 +45,14 @@ public static void registerAllExtensions( "TH_TOKEN_HEADER_INVALID\020\023\022\030\n\024LOGIN_COOKI" + "E_INVALID\020\024\022\023\n\017USER_ID_INVALID\020\026\022&\n\"TWO_" + "STEP_VERIFICATION_NOT_ENROLLED\020\027\022$\n ADVA" + - "NCED_PROTECTION_NOT_ENROLLED\020\030B\316\001\n\"com.g" + + "NCED_PROTECTION_NOT_ENROLLED\020\030B\363\001\n\"com.g" + "oogle.ads.googleads.v0.errorsB\030Authentic" + "ationErrorProtoP\001ZDgoogle.golang.org/gen" + "proto/googleapis/ads/googleads/v0/errors" + ";errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V0." + - "Errors\312\002\036Google\\Ads\\GoogleAds\\V0\\Errorsb" + - "\006proto3" + "Errors\312\002\036Google\\Ads\\GoogleAds\\V0\\Errors\352" + + "\002\"Google::Ads::GoogleAds::V0::Errorsb\006pr" + + "oto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AuthorizationErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AuthorizationErrorProto.java index 356d53547e..f428b8d454 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AuthorizationErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/AuthorizationErrorProto.java @@ -37,12 +37,13 @@ public static void registerAllExtensions( "EVELOPER_TOKEN_PROHIBITED\020\004\022\024\n\020PROJECT_D" + "ISABLED\020\005\022\027\n\023AUTHORIZATION_ERROR\020\006\022\030\n\024AC" + "TION_NOT_PERMITTED\020\007\022\025\n\021INCOMPLETE_SIGNU" + - "P\020\010B\315\001\n\"com.google.ads.googleads.v0.erro" + + "P\020\010B\362\001\n\"com.google.ads.googleads.v0.erro" + "rsB\027AuthorizationErrorProtoP\001ZDgoogle.go" + "lang.org/genproto/googleapis/ads/googlea" + "ds/v0/errors;errors\242\002\003GAA\252\002\036Google.Ads.G" + "oogleAds.V0.Errors\312\002\036Google\\Ads\\GoogleAd" + - "s\\V0\\Errorsb\006proto3" + "s\\V0\\Errors\352\002\"Google::Ads::GoogleAds::V0" + + "::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/BiddingErrorEnum.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/BiddingErrorEnum.java index b96a3548c9..4d87f22b3a 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/BiddingErrorEnum.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/BiddingErrorEnum.java @@ -267,6 +267,14 @@ public enum BiddingError * INVALID_DOMAIN_NAME = 33; */ INVALID_DOMAIN_NAME(33), + /** + *
+     * The field is not compatible with payment mode.
+     * 
+ * + * NOT_COMPATIBLE_WITH_PAYMENT_MODE = 34; + */ + NOT_COMPATIBLE_WITH_PAYMENT_MODE(34), UNRECOGNIZED(-1), ; @@ -451,6 +459,14 @@ public enum BiddingError * INVALID_DOMAIN_NAME = 33; */ public static final int INVALID_DOMAIN_NAME_VALUE = 33; + /** + *
+     * The field is not compatible with payment mode.
+     * 
+ * + * NOT_COMPATIBLE_WITH_PAYMENT_MODE = 34; + */ + public static final int NOT_COMPATIBLE_WITH_PAYMENT_MODE_VALUE = 34; public final int getNumber() { @@ -493,6 +509,7 @@ public static BiddingError forNumber(int value) { case 31: return BID_TOO_BIG; case 32: return BID_TOO_MANY_FRACTIONAL_DIGITS; case 33: return INVALID_DOMAIN_NAME; + case 34: return NOT_COMPATIBLE_WITH_PAYMENT_MODE; default: return null; } } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/BiddingErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/BiddingErrorProto.java index a1662d109a..71dfd3edcd 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/BiddingErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/BiddingErrorProto.java @@ -30,7 +30,7 @@ public static void registerAllExtensions( java.lang.String[] descriptorData = { "\n2google/ads/googleads/v0/errors/bidding" + "_error.proto\022\036google.ads.googleads.v0.er" + - "rors\"\271\007\n\020BiddingErrorEnum\"\244\007\n\014BiddingErr" + + "rors\"\337\007\n\020BiddingErrorEnum\"\312\007\n\014BiddingErr" + "or\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022+\n\'BIDD" + "ING_STRATEGY_TRANSITION_NOT_ALLOWED\020\002\022.\n" + "*CANNOT_ATTACH_BIDDING_STRATEGY_TO_CAMPA" + @@ -54,12 +54,14 @@ public static void registerAllExtensions( "YPE_ADGROUP_CRITERION\020\035\022\021\n\rBID_TOO_SMALL" + "\020\036\022\017\n\013BID_TOO_BIG\020\037\022\"\n\036BID_TOO_MANY_FRAC" + "TIONAL_DIGITS\020 \022\027\n\023INVALID_DOMAIN_NAME\020!" + - "B\307\001\n\"com.google.ads.googleads.v0.errorsB" + - "\021BiddingErrorProtoP\001ZDgoogle.golang.org/" + - "genproto/googleapis/ads/googleads/v0/err" + - "ors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds." + - "V0.Errors\312\002\036Google\\Ads\\GoogleAds\\V0\\Erro" + - "rsb\006proto3" + "\022$\n NOT_COMPATIBLE_WITH_PAYMENT_MODE\020\"B\354" + + "\001\n\"com.google.ads.googleads.v0.errorsB\021B" + + "iddingErrorProtoP\001ZDgoogle.golang.org/ge" + + "nproto/googleapis/ads/googleads/v0/error" + + "s;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V0" + + ".Errors\312\002\036Google\\Ads\\GoogleAds\\V0\\Errors" + + "\352\002\"Google::Ads::GoogleAds::V0::Errorsb\006p" + + "roto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/BiddingStrategyErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/BiddingStrategyErrorProto.java index 42a55a538b..5cfc532928 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/BiddingStrategyErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/BiddingStrategyErrorProto.java @@ -35,13 +35,14 @@ public static void registerAllExtensions( "ED\020\000\022\013\n\007UNKNOWN\020\001\022\022\n\016DUPLICATE_NAME\020\002\022\'\n" + "#CANNOT_CHANGE_BIDDING_STRATEGY_TYPE\020\003\022%" + "\n!CANNOT_REMOVE_ASSOCIATED_STRATEGY\020\004\022\"\n" + - "\036BIDDING_STRATEGY_NOT_SUPPORTED\020\005B\317\001\n\"co" + + "\036BIDDING_STRATEGY_NOT_SUPPORTED\020\005B\364\001\n\"co" + "m.google.ads.googleads.v0.errorsB\031Biddin" + "gStrategyErrorProtoP\001ZDgoogle.golang.org" + "/genproto/googleapis/ads/googleads/v0/er" + "rors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds" + ".V0.Errors\312\002\036Google\\Ads\\GoogleAds\\V0\\Err" + - "orsb\006proto3" + "ors\352\002\"Google::Ads::GoogleAds::V0::Errors" + + "b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/BillingSetupErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/BillingSetupErrorProto.java index 9623822d4d..2c9c444c37 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/BillingSetupErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/BillingSetupErrorProto.java @@ -46,12 +46,13 @@ public static void registerAllExtensions( "\n\032PAYMENTS_PROFILE_NOT_FOUND\020\r\022\036\n\032PAYMEN" + "TS_ACCOUNT_NOT_FOUND\020\016\022\037\n\033PAYMENTS_PROFI" + "LE_INELIGIBLE\020\017\022\037\n\033PAYMENTS_ACCOUNT_INEL" + - "IGIBLE\020\020B\314\001\n\"com.google.ads.googleads.v0" + + "IGIBLE\020\020B\361\001\n\"com.google.ads.googleads.v0" + ".errorsB\026BillingSetupErrorProtoP\001ZDgoogl" + "e.golang.org/genproto/googleapis/ads/goo" + "gleads/v0/errors;errors\242\002\003GAA\252\002\036Google.A" + "ds.GoogleAds.V0.Errors\312\002\036Google\\Ads\\Goog" + - "leAds\\V0\\Errorsb\006proto3" + "leAds\\V0\\Errors\352\002\"Google::Ads::GoogleAds" + + "::V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CampaignBudgetErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CampaignBudgetErrorProto.java index 1428d57d77..f492bbebb3 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CampaignBudgetErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CampaignBudgetErrorProto.java @@ -48,13 +48,14 @@ public static void registerAllExtensions( "CY\020\014\022/\n+MONEY_AMOUNT_LESS_THAN_CURRENCY_" + "MINIMUM_CPC\020\r\022\032\n\026MONEY_AMOUNT_TOO_LARGE\020" + "\016\022\031\n\025NEGATIVE_MONEY_AMOUNT\020\017\022)\n%NON_MULT" + - "IPLE_OF_MINIMUM_CURRENCY_UNIT\020\020B\316\001\n\"com." + + "IPLE_OF_MINIMUM_CURRENCY_UNIT\020\020B\363\001\n\"com." + "google.ads.googleads.v0.errorsB\030Campaign" + "BudgetErrorProtoP\001ZDgoogle.golang.org/ge" + "nproto/googleapis/ads/googleads/v0/error" + "s;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V0" + ".Errors\312\002\036Google\\Ads\\GoogleAds\\V0\\Errors" + - "b\006proto3" + "\352\002\"Google::Ads::GoogleAds::V0::Errorsb\006p" + + "roto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CampaignCriterionErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CampaignCriterionErrorProto.java index bb5c9b9bcd..e2cf1bccda 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CampaignCriterionErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CampaignCriterionErrorProto.java @@ -43,12 +43,13 @@ public static void registerAllExtensions( "GN_SALES_COUNTRY_NOT_SUPPORTED_FOR_SALES" + "_CHANNEL\020\n\022\035\n\031CANNOT_ADD_EXISTING_FIELD\020" + "\013\022$\n CANNOT_UPDATE_NEGATIVE_CRITERION\020\014B" + - "\321\001\n\"com.google.ads.googleads.v0.errorsB\033" + + "\366\001\n\"com.google.ads.googleads.v0.errorsB\033" + "CampaignCriterionErrorProtoP\001ZDgoogle.go" + "lang.org/genproto/googleapis/ads/googlea" + "ds/v0/errors;errors\242\002\003GAA\252\002\036Google.Ads.G" + "oogleAds.V0.Errors\312\002\036Google\\Ads\\GoogleAd" + - "s\\V0\\Errorsb\006proto3" + "s\\V0\\Errors\352\002\"Google::Ads::GoogleAds::V0" + + "::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CampaignErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CampaignErrorProto.java index cadcfc1eaa..676adc7094 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CampaignErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CampaignErrorProto.java @@ -69,12 +69,13 @@ public static void registerAllExtensions( "\n\033INVALID_HOTEL_CUSTOMER_LINK\020&\022\031\n\025MISSI" + "NG_HOTEL_SETTING\020\'\022B\n>CANNOT_USE_SHARED_" + "CAMPAIGN_BUDGET_WHILE_PART_OF_CAMPAIGN_G" + - "ROUP\020(B\310\001\n\"com.google.ads.googleads.v0.e" + + "ROUP\020(B\355\001\n\"com.google.ads.googleads.v0.e" + "rrorsB\022CampaignErrorProtoP\001ZDgoogle.gola" + "ng.org/genproto/googleapis/ads/googleads" + "/v0/errors;errors\242\002\003GAA\252\002\036Google.Ads.Goo" + "gleAds.V0.Errors\312\002\036Google\\Ads\\GoogleAds\\" + - "V0\\Errorsb\006proto3" + "V0\\Errors\352\002\"Google::Ads::GoogleAds::V0::" + + "Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CampaignFeedErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CampaignFeedErrorProto.java index 4eed716e73..102f78e2dd 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CampaignFeedErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CampaignFeedErrorProto.java @@ -38,12 +38,13 @@ public static void registerAllExtensions( "TING_CAMPAIGN_FEED\020\005\022\'\n#CANNOT_MODIFY_RE" + "MOVED_CAMPAIGN_FEED\020\006\022\034\n\030INVALID_PLACEHO" + "LDER_TYPE\020\007\022,\n(MISSING_FEEDMAPPING_FOR_P" + - "LACEHOLDER_TYPE\020\010B\314\001\n\"com.google.ads.goo" + + "LACEHOLDER_TYPE\020\010B\361\001\n\"com.google.ads.goo" + "gleads.v0.errorsB\026CampaignFeedErrorProto" + "P\001ZDgoogle.golang.org/genproto/googleapi" + "s/ads/googleads/v0/errors;errors\242\002\003GAA\252\002" + "\036Google.Ads.GoogleAds.V0.Errors\312\002\036Google" + - "\\Ads\\GoogleAds\\V0\\Errorsb\006proto3" + "\\Ads\\GoogleAds\\V0\\Errors\352\002\"Google::Ads::" + + "GoogleAds::V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CampaignSharedSetErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CampaignSharedSetErrorProto.java index 7554c3172b..7c2c611c3c 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CampaignSharedSetErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CampaignSharedSetErrorProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "gleads.v0.errors\"r\n\032CampaignSharedSetErr" + "orEnum\"T\n\026CampaignSharedSetError\022\017\n\013UNSP" + "ECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\034\n\030SHARED_SET_ACC" + - "ESS_DENIED\020\002B\321\001\n\"com.google.ads.googlead" + + "ESS_DENIED\020\002B\366\001\n\"com.google.ads.googlead" + "s.v0.errorsB\033CampaignSharedSetErrorProto" + "P\001ZDgoogle.golang.org/genproto/googleapi" + "s/ads/googleads/v0/errors;errors\242\002\003GAA\252\002" + "\036Google.Ads.GoogleAds.V0.Errors\312\002\036Google" + - "\\Ads\\GoogleAds\\V0\\Errorsb\006proto3" + "\\Ads\\GoogleAds\\V0\\Errors\352\002\"Google::Ads::" + + "GoogleAds::V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ChangeStatusErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ChangeStatusErrorProto.java index 27cfe248a7..3fd4f36d4c 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ChangeStatusErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ChangeStatusErrorProto.java @@ -32,13 +32,14 @@ public static void registerAllExtensions( "status_error.proto\022\036google.ads.googleads" + ".v0.errors\"b\n\025ChangeStatusErrorEnum\"I\n\021C" + "hangeStatusError\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNK" + - "NOWN\020\001\022\026\n\022START_DATE_TOO_OLD\020\003B\314\001\n\"com.g" + + "NOWN\020\001\022\026\n\022START_DATE_TOO_OLD\020\003B\361\001\n\"com.g" + "oogle.ads.googleads.v0.errorsB\026ChangeSta" + "tusErrorProtoP\001ZDgoogle.golang.org/genpr" + "oto/googleapis/ads/googleads/v0/errors;e" + "rrors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V0.Er" + - "rors\312\002\036Google\\Ads\\GoogleAds\\V0\\Errorsb\006p" + - "roto3" + "rors\312\002\036Google\\Ads\\GoogleAds\\V0\\Errors\352\002\"" + + "Google::Ads::GoogleAds::V0::Errorsb\006prot" + + "o3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CollectionSizeErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CollectionSizeErrorProto.java index 2ea4c9ba24..211353661b 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CollectionSizeErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CollectionSizeErrorProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "ds.v0.errors\"i\n\027CollectionSizeErrorEnum\"" + "N\n\023CollectionSizeError\022\017\n\013UNSPECIFIED\020\000\022" + "\013\n\007UNKNOWN\020\001\022\013\n\007TOO_FEW\020\002\022\014\n\010TOO_MANY\020\003B" + - "\316\001\n\"com.google.ads.googleads.v0.errorsB\030" + + "\363\001\n\"com.google.ads.googleads.v0.errorsB\030" + "CollectionSizeErrorProtoP\001ZDgoogle.golan" + "g.org/genproto/googleapis/ads/googleads/" + "v0/errors;errors\242\002\003GAA\252\002\036Google.Ads.Goog" + "leAds.V0.Errors\312\002\036Google\\Ads\\GoogleAds\\V" + - "0\\Errorsb\006proto3" + "0\\Errors\352\002\"Google::Ads::GoogleAds::V0::E" + + "rrorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ContextErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ContextErrorProto.java index 7729383ad8..9c40018535 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ContextErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ContextErrorProto.java @@ -34,12 +34,13 @@ public static void registerAllExtensions( "or\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\'\n#OPER" + "ATION_NOT_PERMITTED_FOR_CONTEXT\020\002\0220\n,OPE" + "RATION_NOT_PERMITTED_FOR_REMOVED_RESOURC" + - "E\020\003B\307\001\n\"com.google.ads.googleads.v0.erro" + + "E\020\003B\354\001\n\"com.google.ads.googleads.v0.erro" + "rsB\021ContextErrorProtoP\001ZDgoogle.golang.o" + "rg/genproto/googleapis/ads/googleads/v0/" + "errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleA" + "ds.V0.Errors\312\002\036Google\\Ads\\GoogleAds\\V0\\E" + - "rrorsb\006proto3" + "rrors\352\002\"Google::Ads::GoogleAds::V0::Erro" + + "rsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ConversionActionErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ConversionActionErrorProto.java index 5ee9041142..5f030bd424 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ConversionActionErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ConversionActionErrorProto.java @@ -39,13 +39,13 @@ public static void registerAllExtensions( "L_ACTION\020\005\022)\n%DATA_DRIVEN_MODEL_WAS_NEVE" + "R_GENERATED\020\006\022\035\n\031DATA_DRIVEN_MODEL_EXPIR" + "ED\020\007\022\033\n\027DATA_DRIVEN_MODEL_STALE\020\010\022\035\n\031DAT" + - "A_DRIVEN_MODEL_UNKNOWN\020\tB\320\001\n\"com.google." + + "A_DRIVEN_MODEL_UNKNOWN\020\tB\365\001\n\"com.google." + "ads.googleads.v0.errorsB\032ConversionActio" + "nErrorProtoP\001ZDgoogle.golang.org/genprot" + "o/googleapis/ads/googleads/v0/errors;err" + "ors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V0.Erro" + - "rs\312\002\036Google\\Ads\\GoogleAds\\V0\\Errorsb\006pro" + - "to3" + "rs\312\002\036Google\\Ads\\GoogleAds\\V0\\Errors\352\002\"Go" + + "ogle::Ads::GoogleAds::V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CriterionErrorEnum.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CriterionErrorEnum.java index ee1e521338..4873ff1ab8 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CriterionErrorEnum.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CriterionErrorEnum.java @@ -798,6 +798,96 @@ public enum CriterionError * FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING = 84; */ FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING(84), + /** + *
+     * The combination of operand and operator in webpage condition is invalid.
+     * 
+ * + * INVALID_WEBPAGE_CONDITION = 85; + */ + INVALID_WEBPAGE_CONDITION(85), + /** + *
+     * The URL of webpage condition is invalid.
+     * 
+ * + * INVALID_WEBPAGE_CONDITION_URL = 86; + */ + INVALID_WEBPAGE_CONDITION_URL(86), + /** + *
+     * The URL of webpage condition cannot be empty or contain white space.
+     * 
+ * + * WEBPAGE_CONDITION_URL_CANNOT_BE_EMPTY = 87; + */ + WEBPAGE_CONDITION_URL_CANNOT_BE_EMPTY(87), + /** + *
+     * The URL of webpage condition contains an unsupported protocol.
+     * 
+ * + * WEBPAGE_CONDITION_URL_UNSUPPORTED_PROTOCOL = 88; + */ + WEBPAGE_CONDITION_URL_UNSUPPORTED_PROTOCOL(88), + /** + *
+     * The URL of webpage condition cannot be an IP address.
+     * 
+ * + * WEBPAGE_CONDITION_URL_CANNOT_BE_IP_ADDRESS = 89; + */ + WEBPAGE_CONDITION_URL_CANNOT_BE_IP_ADDRESS(89), + /** + *
+     * The domain of the URL is not consistent with the domain in campaign
+     * setting.
+     * 
+ * + * WEBPAGE_CONDITION_URL_DOMAIN_NOT_CONSISTENT_WITH_CAMPAIGN_SETTING = 90; + */ + WEBPAGE_CONDITION_URL_DOMAIN_NOT_CONSISTENT_WITH_CAMPAIGN_SETTING(90), + /** + *
+     * The URL of webpage condition cannot be a public suffix itself.
+     * 
+ * + * WEBPAGE_CONDITION_URL_CANNOT_BE_PUBLIC_SUFFIX = 91; + */ + WEBPAGE_CONDITION_URL_CANNOT_BE_PUBLIC_SUFFIX(91), + /** + *
+     * The URL of webpage condition has an invalid public suffix.
+     * 
+ * + * WEBPAGE_CONDITION_URL_INVALID_PUBLIC_SUFFIX = 92; + */ + WEBPAGE_CONDITION_URL_INVALID_PUBLIC_SUFFIX(92), + /** + *
+     * Value track parameter is not supported in webpage condition URL.
+     * 
+ * + * WEBPAGE_CONDITION_URL_VALUE_TRACK_VALUE_NOT_SUPPORTED = 93; + */ + WEBPAGE_CONDITION_URL_VALUE_TRACK_VALUE_NOT_SUPPORTED(93), + /** + *
+     * Only one URL-EQUALS webpage condition is allowed in a webpage
+     * criterion and it cannot be combined with other conditions.
+     * 
+ * + * WEBPAGE_CRITERION_URL_EQUALS_CAN_HAVE_ONLY_ONE_CONDITION = 94; + */ + WEBPAGE_CRITERION_URL_EQUALS_CAN_HAVE_ONLY_ONE_CONDITION(94), + /** + *
+     * A webpage criterion cannot be added to a non-DSA ad group.
+     * 
+ * + * WEBPAGE_CRITERION_NOT_SUPPORTED_ON_NON_DSA_AD_GROUP = 95; + */ + WEBPAGE_CRITERION_NOT_SUPPORTED_ON_NON_DSA_AD_GROUP(95), UNRECOGNIZED(-1), ; @@ -1513,6 +1603,96 @@ public enum CriterionError * FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING = 84; */ public static final int FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING_VALUE = 84; + /** + *
+     * The combination of operand and operator in webpage condition is invalid.
+     * 
+ * + * INVALID_WEBPAGE_CONDITION = 85; + */ + public static final int INVALID_WEBPAGE_CONDITION_VALUE = 85; + /** + *
+     * The URL of webpage condition is invalid.
+     * 
+ * + * INVALID_WEBPAGE_CONDITION_URL = 86; + */ + public static final int INVALID_WEBPAGE_CONDITION_URL_VALUE = 86; + /** + *
+     * The URL of webpage condition cannot be empty or contain white space.
+     * 
+ * + * WEBPAGE_CONDITION_URL_CANNOT_BE_EMPTY = 87; + */ + public static final int WEBPAGE_CONDITION_URL_CANNOT_BE_EMPTY_VALUE = 87; + /** + *
+     * The URL of webpage condition contains an unsupported protocol.
+     * 
+ * + * WEBPAGE_CONDITION_URL_UNSUPPORTED_PROTOCOL = 88; + */ + public static final int WEBPAGE_CONDITION_URL_UNSUPPORTED_PROTOCOL_VALUE = 88; + /** + *
+     * The URL of webpage condition cannot be an IP address.
+     * 
+ * + * WEBPAGE_CONDITION_URL_CANNOT_BE_IP_ADDRESS = 89; + */ + public static final int WEBPAGE_CONDITION_URL_CANNOT_BE_IP_ADDRESS_VALUE = 89; + /** + *
+     * The domain of the URL is not consistent with the domain in campaign
+     * setting.
+     * 
+ * + * WEBPAGE_CONDITION_URL_DOMAIN_NOT_CONSISTENT_WITH_CAMPAIGN_SETTING = 90; + */ + public static final int WEBPAGE_CONDITION_URL_DOMAIN_NOT_CONSISTENT_WITH_CAMPAIGN_SETTING_VALUE = 90; + /** + *
+     * The URL of webpage condition cannot be a public suffix itself.
+     * 
+ * + * WEBPAGE_CONDITION_URL_CANNOT_BE_PUBLIC_SUFFIX = 91; + */ + public static final int WEBPAGE_CONDITION_URL_CANNOT_BE_PUBLIC_SUFFIX_VALUE = 91; + /** + *
+     * The URL of webpage condition has an invalid public suffix.
+     * 
+ * + * WEBPAGE_CONDITION_URL_INVALID_PUBLIC_SUFFIX = 92; + */ + public static final int WEBPAGE_CONDITION_URL_INVALID_PUBLIC_SUFFIX_VALUE = 92; + /** + *
+     * Value track parameter is not supported in webpage condition URL.
+     * 
+ * + * WEBPAGE_CONDITION_URL_VALUE_TRACK_VALUE_NOT_SUPPORTED = 93; + */ + public static final int WEBPAGE_CONDITION_URL_VALUE_TRACK_VALUE_NOT_SUPPORTED_VALUE = 93; + /** + *
+     * Only one URL-EQUALS webpage condition is allowed in a webpage
+     * criterion and it cannot be combined with other conditions.
+     * 
+ * + * WEBPAGE_CRITERION_URL_EQUALS_CAN_HAVE_ONLY_ONE_CONDITION = 94; + */ + public static final int WEBPAGE_CRITERION_URL_EQUALS_CAN_HAVE_ONLY_ONE_CONDITION_VALUE = 94; + /** + *
+     * A webpage criterion cannot be added to a non-DSA ad group.
+     * 
+ * + * WEBPAGE_CRITERION_NOT_SUPPORTED_ON_NON_DSA_AD_GROUP = 95; + */ + public static final int WEBPAGE_CRITERION_NOT_SUPPORTED_ON_NON_DSA_AD_GROUP_VALUE = 95; public final int getNumber() { @@ -1618,6 +1798,17 @@ public static CriterionError forNumber(int value) { case 82: return HOTEL_LENGTH_OF_STAY_OVERLAPS_WITH_EXISTING_CRITERION; case 83: return HOTEL_ADVANCE_BOOKING_WINDOW_OVERLAPS_WITH_EXISTING_CRITERION; case 84: return FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING; + case 85: return INVALID_WEBPAGE_CONDITION; + case 86: return INVALID_WEBPAGE_CONDITION_URL; + case 87: return WEBPAGE_CONDITION_URL_CANNOT_BE_EMPTY; + case 88: return WEBPAGE_CONDITION_URL_UNSUPPORTED_PROTOCOL; + case 89: return WEBPAGE_CONDITION_URL_CANNOT_BE_IP_ADDRESS; + case 90: return WEBPAGE_CONDITION_URL_DOMAIN_NOT_CONSISTENT_WITH_CAMPAIGN_SETTING; + case 91: return WEBPAGE_CONDITION_URL_CANNOT_BE_PUBLIC_SUFFIX; + case 92: return WEBPAGE_CONDITION_URL_INVALID_PUBLIC_SUFFIX; + case 93: return WEBPAGE_CONDITION_URL_VALUE_TRACK_VALUE_NOT_SUPPORTED; + case 94: return WEBPAGE_CRITERION_URL_EQUALS_CAN_HAVE_ONLY_ONE_CONDITION; + case 95: return WEBPAGE_CRITERION_NOT_SUPPORTED_ON_NON_DSA_AD_GROUP; default: return null; } } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CriterionErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CriterionErrorProto.java index 1690328191..f9a1524af2 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CriterionErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CriterionErrorProto.java @@ -30,7 +30,7 @@ public static void registerAllExtensions( java.lang.String[] descriptorData = { "\n4google/ads/googleads/v0/errors/criteri" + "on_error.proto\022\036google.ads.googleads.v0." + - "errors\"\240\030\n\022CriterionErrorEnum\"\211\030\n\016Criter" + + "errors\"\312\034\n\022CriterionErrorEnum\"\263\034\n\016Criter" + "ionError\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\032" + "\n\026CONCRETE_TYPE_REQUIRED\020\002\022\035\n\031INVALID_EX" + "CLUDED_CATEGORY\020\003\022\030\n\024INVALID_KEYWORD_TEX" + @@ -107,13 +107,27 @@ public static void registerAllExtensions( "TAY_OVERLAPS_WITH_EXISTING_CRITERION\020R\022A" + "\n=HOTEL_ADVANCE_BOOKING_WINDOW_OVERLAPS_" + "WITH_EXISTING_CRITERION\020S\022.\n*FIELD_INCOM" + - "PATIBLE_WITH_NEGATIVE_TARGETING\020TB\311\001\n\"co" + - "m.google.ads.googleads.v0.errorsB\023Criter" + - "ionErrorProtoP\001ZDgoogle.golang.org/genpr" + - "oto/googleapis/ads/googleads/v0/errors;e" + - "rrors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V0.Er" + - "rors\312\002\036Google\\Ads\\GoogleAds\\V0\\Errorsb\006p" + - "roto3" + "PATIBLE_WITH_NEGATIVE_TARGETING\020T\022\035\n\031INV" + + "ALID_WEBPAGE_CONDITION\020U\022!\n\035INVALID_WEBP" + + "AGE_CONDITION_URL\020V\022)\n%WEBPAGE_CONDITION" + + "_URL_CANNOT_BE_EMPTY\020W\022.\n*WEBPAGE_CONDIT" + + "ION_URL_UNSUPPORTED_PROTOCOL\020X\022.\n*WEBPAG" + + "E_CONDITION_URL_CANNOT_BE_IP_ADDRESS\020Y\022E" + + "\nAWEBPAGE_CONDITION_URL_DOMAIN_NOT_CONSI" + + "STENT_WITH_CAMPAIGN_SETTING\020Z\0221\n-WEBPAGE" + + "_CONDITION_URL_CANNOT_BE_PUBLIC_SUFFIX\020[" + + "\022/\n+WEBPAGE_CONDITION_URL_INVALID_PUBLIC" + + "_SUFFIX\020\\\0229\n5WEBPAGE_CONDITION_URL_VALUE" + + "_TRACK_VALUE_NOT_SUPPORTED\020]\022<\n8WEBPAGE_" + + "CRITERION_URL_EQUALS_CAN_HAVE_ONLY_ONE_C" + + "ONDITION\020^\0227\n3WEBPAGE_CRITERION_NOT_SUPP" + + "ORTED_ON_NON_DSA_AD_GROUP\020_B\356\001\n\"com.goog" + + "le.ads.googleads.v0.errorsB\023CriterionErr" + + "orProtoP\001ZDgoogle.golang.org/genproto/go" + + "ogleapis/ads/googleads/v0/errors;errors\242" + + "\002\003GAA\252\002\036Google.Ads.GoogleAds.V0.Errors\312\002" + + "\036Google\\Ads\\GoogleAds\\V0\\Errors\352\002\"Google" + + "::Ads::GoogleAds::V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CustomerClientLinkErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CustomerClientLinkErrorProto.java index a9799b4aee..8974ba7b5f 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CustomerClientLinkErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CustomerClientLinkErrorProto.java @@ -39,13 +39,14 @@ public static void registerAllExtensions( "O_MANY_ACCOUNTS\020\005\022#\n\037CLIENT_HAS_TOO_MANY" + "_INVITATIONS\020\006\022*\n&CANNOT_HIDE_OR_UNHIDE_" + "MANAGER_ACCOUNTS\020\007\022-\n)CUSTOMER_HAS_TOO_M" + - "ANY_ACCOUNTS_AT_MANAGER\020\010B\322\001\n\"com.google" + + "ANY_ACCOUNTS_AT_MANAGER\020\010B\367\001\n\"com.google" + ".ads.googleads.v0.errorsB\034CustomerClient" + "LinkErrorProtoP\001ZDgoogle.golang.org/genp" + "roto/googleapis/ads/googleads/v0/errors;" + "errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V0.E" + - "rrors\312\002\036Google\\Ads\\GoogleAds\\V0\\Errorsb\006" + - "proto3" + "rrors\312\002\036Google\\Ads\\GoogleAds\\V0\\Errors\352\002" + + "\"Google::Ads::GoogleAds::V0::Errorsb\006pro" + + "to3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CustomerErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CustomerErrorProto.java index 8894bcea49..1e42624858 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CustomerErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CustomerErrorProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "rrors\"x\n\021CustomerErrorEnum\"c\n\rCustomerEr" + "ror\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\034\n\030STA" + "TUS_CHANGE_DISALLOWED\020\002\022\026\n\022ACCOUNT_NOT_S" + - "ET_UP\020\003B\310\001\n\"com.google.ads.googleads.v0." + + "ET_UP\020\003B\355\001\n\"com.google.ads.googleads.v0." + "errorsB\022CustomerErrorProtoP\001ZDgoogle.gol" + "ang.org/genproto/googleapis/ads/googlead" + "s/v0/errors;errors\242\002\003GAA\252\002\036Google.Ads.Go" + "ogleAds.V0.Errors\312\002\036Google\\Ads\\GoogleAds" + - "\\V0\\Errorsb\006proto3" + "\\V0\\Errors\352\002\"Google::Ads::GoogleAds::V0:" + + ":Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CustomerFeedErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CustomerFeedErrorProto.java index 12462c6dcb..bd017f7be2 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CustomerFeedErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CustomerFeedErrorProto.java @@ -39,13 +39,13 @@ public static void registerAllExtensions( "MOVED_CUSTOMER_FEED\020\005\022\034\n\030INVALID_PLACEHO" + "LDER_TYPE\020\006\022,\n(MISSING_FEEDMAPPING_FOR_P" + "LACEHOLDER_TYPE\020\007\0221\n-PLACEHOLDER_TYPE_NO" + - "T_ALLOWED_ON_CUSTOMER_FEED\020\010B\314\001\n\"com.goo" + + "T_ALLOWED_ON_CUSTOMER_FEED\020\010B\361\001\n\"com.goo" + "gle.ads.googleads.v0.errorsB\026CustomerFee" + "dErrorProtoP\001ZDgoogle.golang.org/genprot" + "o/googleapis/ads/googleads/v0/errors;err" + "ors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V0.Erro" + - "rs\312\002\036Google\\Ads\\GoogleAds\\V0\\Errorsb\006pro" + - "to3" + "rs\312\002\036Google\\Ads\\GoogleAds\\V0\\Errors\352\002\"Go" + + "ogle::Ads::GoogleAds::V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CustomerManagerLinkErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CustomerManagerLinkErrorProto.java index c0c056b909..d092eff753 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CustomerManagerLinkErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CustomerManagerLinkErrorProto.java @@ -40,13 +40,14 @@ public static void registerAllExtensions( "EMOVE_LAST_CLIENT_ACCOUNT_OWNER\020\006\022+\n\'CAN" + "NOT_CHANGE_ROLE_BY_NON_ACCOUNT_OWNER\020\007\0222" + "\n.CANNOT_CHANGE_ROLE_FOR_NON_ACTIVE_LINK" + - "_ACCOUNT\020\010\022\031\n\025DUPLICATE_CHILD_FOUND\020\tB\323\001" + + "_ACCOUNT\020\010\022\031\n\025DUPLICATE_CHILD_FOUND\020\tB\370\001" + "\n\"com.google.ads.googleads.v0.errorsB\035Cu" + "stomerManagerLinkErrorProtoP\001ZDgoogle.go" + "lang.org/genproto/googleapis/ads/googlea" + "ds/v0/errors;errors\242\002\003GAA\252\002\036Google.Ads.G" + "oogleAds.V0.Errors\312\002\036Google\\Ads\\GoogleAd" + - "s\\V0\\Errorsb\006proto3" + "s\\V0\\Errors\352\002\"Google::Ads::GoogleAds::V0" + + "::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/DatabaseErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/DatabaseErrorProto.java index a0a9131314..ba9422a0a2 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/DatabaseErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/DatabaseErrorProto.java @@ -32,12 +32,13 @@ public static void registerAllExtensions( "e_error.proto\022\036google.ads.googleads.v0.e" + "rrors\"_\n\021DatabaseErrorEnum\"J\n\rDatabaseEr" + "ror\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\033\n\027CON" + - "CURRENT_MODIFICATION\020\002B\310\001\n\"com.google.ad" + + "CURRENT_MODIFICATION\020\002B\355\001\n\"com.google.ad" + "s.googleads.v0.errorsB\022DatabaseErrorProt" + "oP\001ZDgoogle.golang.org/genproto/googleap" + "is/ads/googleads/v0/errors;errors\242\002\003GAA\252" + "\002\036Google.Ads.GoogleAds.V0.Errors\312\002\036Googl" + - "e\\Ads\\GoogleAds\\V0\\Errorsb\006proto3" + "e\\Ads\\GoogleAds\\V0\\Errors\352\002\"Google::Ads:" + + ":GoogleAds::V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/DateErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/DateErrorProto.java index 564199e90c..5d5027152c 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/DateErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/DateErrorProto.java @@ -40,12 +40,13 @@ public static void registerAllExtensions( "N_MAXIMUM_DATE\020\010\0223\n/DATE_RANGE_MINIMUM_D" + "ATE_LATER_THAN_MAXIMUM_DATE\020\t\0222\n.DATE_RA" + "NGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL\020" + - "\nB\304\001\n\"com.google.ads.googleads.v0.errors" + + "\nB\351\001\n\"com.google.ads.googleads.v0.errors" + "B\016DateErrorProtoP\001ZDgoogle.golang.org/ge" + "nproto/googleapis/ads/googleads/v0/error" + "s;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V0" + ".Errors\312\002\036Google\\Ads\\GoogleAds\\V0\\Errors" + - "b\006proto3" + "\352\002\"Google::Ads::GoogleAds::V0::Errorsb\006p" + + "roto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/DateRangeErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/DateRangeErrorProto.java index 3d6570b550..01e0e22c19 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/DateRangeErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/DateRangeErrorProto.java @@ -36,12 +36,13 @@ public static void registerAllExtensions( "D_DATE\020\003\022\033\n\027CANNOT_SET_DATE_TO_PAST\020\004\022 \n" + "\034AFTER_MAXIMUM_ALLOWABLE_DATE\020\005\022/\n+CANNO" + "T_MODIFY_START_DATE_IF_ALREADY_STARTED\020\006" + - "B\311\001\n\"com.google.ads.googleads.v0.errorsB" + + "B\356\001\n\"com.google.ads.googleads.v0.errorsB" + "\023DateRangeErrorProtoP\001ZDgoogle.golang.or" + "g/genproto/googleapis/ads/googleads/v0/e" + "rrors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAd" + "s.V0.Errors\312\002\036Google\\Ads\\GoogleAds\\V0\\Er" + - "rorsb\006proto3" + "rors\352\002\"Google::Ads::GoogleAds::V0::Error" + + "sb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/DistinctErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/DistinctErrorProto.java index 5d1d441307..56acc8eb96 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/DistinctErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/DistinctErrorProto.java @@ -32,13 +32,14 @@ public static void registerAllExtensions( "t_error.proto\022\036google.ads.googleads.v0.e" + "rrors\"m\n\021DistinctErrorEnum\"X\n\rDistinctEr" + "ror\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\025\n\021DUP" + - "LICATE_ELEMENT\020\002\022\022\n\016DUPLICATE_TYPE\020\003B\310\001\n" + + "LICATE_ELEMENT\020\002\022\022\n\016DUPLICATE_TYPE\020\003B\355\001\n" + "\"com.google.ads.googleads.v0.errorsB\022Dis" + "tinctErrorProtoP\001ZDgoogle.golang.org/gen" + "proto/googleapis/ads/googleads/v0/errors" + ";errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V0." + - "Errors\312\002\036Google\\Ads\\GoogleAds\\V0\\Errorsb" + - "\006proto3" + "Errors\312\002\036Google\\Ads\\GoogleAds\\V0\\Errors\352" + + "\002\"Google::Ads::GoogleAds::V0::Errorsb\006pr" + + "oto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/EnumErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/EnumErrorProto.java index 425bd41d89..169ef56d1b 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/EnumErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/EnumErrorProto.java @@ -32,12 +32,13 @@ public static void registerAllExtensions( "ror.proto\022\036google.ads.googleads.v0.error" + "s\"X\n\rEnumErrorEnum\"G\n\tEnumError\022\017\n\013UNSPE" + "CIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\034\n\030ENUM_VALUE_NOT_" + - "PERMITTED\020\003B\304\001\n\"com.google.ads.googleads" + + "PERMITTED\020\003B\351\001\n\"com.google.ads.googleads" + ".v0.errorsB\016EnumErrorProtoP\001ZDgoogle.gol" + "ang.org/genproto/googleapis/ads/googlead" + "s/v0/errors;errors\242\002\003GAA\252\002\036Google.Ads.Go" + "ogleAds.V0.Errors\312\002\036Google\\Ads\\GoogleAds" + - "\\V0\\Errorsb\006proto3" + "\\V0\\Errors\352\002\"Google::Ads::GoogleAds::V0:" + + ":Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ErrorCode.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ErrorCode.java index ec37cbcbfe..535cee86a8 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ErrorCode.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ErrorCode.java @@ -390,12 +390,6 @@ private ErrorCode( errorCode_ = rawValue; break; } - case 552: { - int rawValue = input.readEnum(); - errorCodeCase_ = 69; - errorCode_ = rawValue; - break; - } case 560: { int rawValue = input.readEnum(); errorCodeCase_ = 70; @@ -528,6 +522,30 @@ private ErrorCode( errorCode_ = rawValue; break; } + case 808: { + int rawValue = input.readEnum(); + errorCodeCase_ = 101; + errorCode_ = rawValue; + break; + } + case 816: { + int rawValue = input.readEnum(); + errorCodeCase_ = 102; + errorCode_ = rawValue; + break; + } + case 824: { + int rawValue = input.readEnum(); + errorCodeCase_ = 103; + errorCode_ = rawValue; + break; + } + case 840: { + int rawValue = input.readEnum(); + errorCodeCase_ = 105; + errorCode_ = rawValue; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -623,7 +641,6 @@ public enum ErrorCodeCase HEADER_ERROR(66), DATABASE_ERROR(67), POLICY_FINDING_ERROR(68), - CAMPAIGN_GROUP_ERROR(69), ENUM_ERROR(70), KEYWORD_PLAN_ERROR(71), KEYWORD_PLAN_CAMPAIGN_ERROR(72), @@ -644,6 +661,10 @@ public enum ErrorCodeCase CUSTOMER_FEED_ERROR(93), AD_GROUP_FEED_ERROR(94), CAMPAIGN_FEED_ERROR(96), + AD_PARAMETER_ERROR(101), + FEED_ITEM_VALIDATION_ERROR(102), + EXTENSION_SETTING_ERROR(103), + POLICY_VIOLATION_ERROR(105), ERRORCODE_NOT_SET(0); private final int value; private ErrorCodeCase(int value) { @@ -718,7 +739,6 @@ public static ErrorCodeCase forNumber(int value) { case 66: return HEADER_ERROR; case 67: return DATABASE_ERROR; case 68: return POLICY_FINDING_ERROR; - case 69: return CAMPAIGN_GROUP_ERROR; case 70: return ENUM_ERROR; case 71: return KEYWORD_PLAN_ERROR; case 72: return KEYWORD_PLAN_CAMPAIGN_ERROR; @@ -739,6 +759,10 @@ public static ErrorCodeCase forNumber(int value) { case 93: return CUSTOMER_FEED_ERROR; case 94: return AD_GROUP_FEED_ERROR; case 96: return CAMPAIGN_FEED_ERROR; + case 101: return AD_PARAMETER_ERROR; + case 102: return FEED_ITEM_VALIDATION_ERROR; + case 103: return EXTENSION_SETTING_ERROR; + case 105: return POLICY_VIOLATION_ERROR; case 0: return ERRORCODE_NOT_SET; default: return null; } @@ -2583,37 +2607,6 @@ public com.google.ads.googleads.v0.errors.PolicyFindingErrorEnum.PolicyFindingEr return com.google.ads.googleads.v0.errors.PolicyFindingErrorEnum.PolicyFindingError.UNSPECIFIED; } - public static final int CAMPAIGN_GROUP_ERROR_FIELD_NUMBER = 69; - /** - *
-   * The reasons for campaign group error.
-   * 
- * - * .google.ads.googleads.v0.errors.CampaignGroupErrorEnum.CampaignGroupError campaign_group_error = 69; - */ - public int getCampaignGroupErrorValue() { - if (errorCodeCase_ == 69) { - return (java.lang.Integer) errorCode_; - } - return 0; - } - /** - *
-   * The reasons for campaign group error.
-   * 
- * - * .google.ads.googleads.v0.errors.CampaignGroupErrorEnum.CampaignGroupError campaign_group_error = 69; - */ - public com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum.CampaignGroupError getCampaignGroupError() { - if (errorCodeCase_ == 69) { - @SuppressWarnings("deprecation") - com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum.CampaignGroupError result = com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum.CampaignGroupError.valueOf( - (java.lang.Integer) errorCode_); - return result == null ? com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum.CampaignGroupError.UNRECOGNIZED : result; - } - return com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum.CampaignGroupError.UNSPECIFIED; - } - public static final int ENUM_ERROR_FIELD_NUMBER = 70; /** *
@@ -3234,6 +3227,130 @@ public com.google.ads.googleads.v0.errors.CampaignFeedErrorEnum.CampaignFeedErro
     return com.google.ads.googleads.v0.errors.CampaignFeedErrorEnum.CampaignFeedError.UNSPECIFIED;
   }
 
+  public static final int AD_PARAMETER_ERROR_FIELD_NUMBER = 101;
+  /**
+   * 
+   * The reasons for the ad parameter error
+   * 
+ * + * .google.ads.googleads.v0.errors.AdParameterErrorEnum.AdParameterError ad_parameter_error = 101; + */ + public int getAdParameterErrorValue() { + if (errorCodeCase_ == 101) { + return (java.lang.Integer) errorCode_; + } + return 0; + } + /** + *
+   * The reasons for the ad parameter error
+   * 
+ * + * .google.ads.googleads.v0.errors.AdParameterErrorEnum.AdParameterError ad_parameter_error = 101; + */ + public com.google.ads.googleads.v0.errors.AdParameterErrorEnum.AdParameterError getAdParameterError() { + if (errorCodeCase_ == 101) { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.errors.AdParameterErrorEnum.AdParameterError result = com.google.ads.googleads.v0.errors.AdParameterErrorEnum.AdParameterError.valueOf( + (java.lang.Integer) errorCode_); + return result == null ? com.google.ads.googleads.v0.errors.AdParameterErrorEnum.AdParameterError.UNRECOGNIZED : result; + } + return com.google.ads.googleads.v0.errors.AdParameterErrorEnum.AdParameterError.UNSPECIFIED; + } + + public static final int FEED_ITEM_VALIDATION_ERROR_FIELD_NUMBER = 102; + /** + *
+   * The reasons for the feed item validation error
+   * 
+ * + * .google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError feed_item_validation_error = 102; + */ + public int getFeedItemValidationErrorValue() { + if (errorCodeCase_ == 102) { + return (java.lang.Integer) errorCode_; + } + return 0; + } + /** + *
+   * The reasons for the feed item validation error
+   * 
+ * + * .google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError feed_item_validation_error = 102; + */ + public com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError getFeedItemValidationError() { + if (errorCodeCase_ == 102) { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError result = com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError.valueOf( + (java.lang.Integer) errorCode_); + return result == null ? com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError.UNRECOGNIZED : result; + } + return com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError.UNSPECIFIED; + } + + public static final int EXTENSION_SETTING_ERROR_FIELD_NUMBER = 103; + /** + *
+   * The reasons for the extension setting error
+   * 
+ * + * .google.ads.googleads.v0.errors.ExtensionSettingErrorEnum.ExtensionSettingError extension_setting_error = 103; + */ + public int getExtensionSettingErrorValue() { + if (errorCodeCase_ == 103) { + return (java.lang.Integer) errorCode_; + } + return 0; + } + /** + *
+   * The reasons for the extension setting error
+   * 
+ * + * .google.ads.googleads.v0.errors.ExtensionSettingErrorEnum.ExtensionSettingError extension_setting_error = 103; + */ + public com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum.ExtensionSettingError getExtensionSettingError() { + if (errorCodeCase_ == 103) { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum.ExtensionSettingError result = com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum.ExtensionSettingError.valueOf( + (java.lang.Integer) errorCode_); + return result == null ? com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum.ExtensionSettingError.UNRECOGNIZED : result; + } + return com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum.ExtensionSettingError.UNSPECIFIED; + } + + public static final int POLICY_VIOLATION_ERROR_FIELD_NUMBER = 105; + /** + *
+   * The reasons for the policy violation error
+   * 
+ * + * .google.ads.googleads.v0.errors.PolicyViolationErrorEnum.PolicyViolationError policy_violation_error = 105; + */ + public int getPolicyViolationErrorValue() { + if (errorCodeCase_ == 105) { + return (java.lang.Integer) errorCode_; + } + return 0; + } + /** + *
+   * The reasons for the policy violation error
+   * 
+ * + * .google.ads.googleads.v0.errors.PolicyViolationErrorEnum.PolicyViolationError policy_violation_error = 105; + */ + public com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum.PolicyViolationError getPolicyViolationError() { + if (errorCodeCase_ == 105) { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum.PolicyViolationError result = com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum.PolicyViolationError.valueOf( + (java.lang.Integer) errorCode_); + return result == null ? com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum.PolicyViolationError.UNRECOGNIZED : result; + } + return com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum.PolicyViolationError.UNSPECIFIED; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -3419,9 +3536,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (errorCodeCase_ == 68) { output.writeEnum(68, ((java.lang.Integer) errorCode_)); } - if (errorCodeCase_ == 69) { - output.writeEnum(69, ((java.lang.Integer) errorCode_)); - } if (errorCodeCase_ == 70) { output.writeEnum(70, ((java.lang.Integer) errorCode_)); } @@ -3488,6 +3602,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (errorCodeCase_ == 96) { output.writeEnum(96, ((java.lang.Integer) errorCode_)); } + if (errorCodeCase_ == 101) { + output.writeEnum(101, ((java.lang.Integer) errorCode_)); + } + if (errorCodeCase_ == 102) { + output.writeEnum(102, ((java.lang.Integer) errorCode_)); + } + if (errorCodeCase_ == 103) { + output.writeEnum(103, ((java.lang.Integer) errorCode_)); + } + if (errorCodeCase_ == 105) { + output.writeEnum(105, ((java.lang.Integer) errorCode_)); + } unknownFields.writeTo(output); } @@ -3725,10 +3851,6 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(68, ((java.lang.Integer) errorCode_)); } - if (errorCodeCase_ == 69) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(69, ((java.lang.Integer) errorCode_)); - } if (errorCodeCase_ == 70) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(70, ((java.lang.Integer) errorCode_)); @@ -3817,6 +3939,22 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(96, ((java.lang.Integer) errorCode_)); } + if (errorCodeCase_ == 101) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(101, ((java.lang.Integer) errorCode_)); + } + if (errorCodeCase_ == 102) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(102, ((java.lang.Integer) errorCode_)); + } + if (errorCodeCase_ == 103) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(103, ((java.lang.Integer) errorCode_)); + } + if (errorCodeCase_ == 105) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(105, ((java.lang.Integer) errorCode_)); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -4073,10 +4211,6 @@ public boolean equals(final java.lang.Object obj) { result = result && getPolicyFindingErrorValue() == other.getPolicyFindingErrorValue(); break; - case 69: - result = result && getCampaignGroupErrorValue() - == other.getCampaignGroupErrorValue(); - break; case 70: result = result && getEnumErrorValue() == other.getEnumErrorValue(); @@ -4157,6 +4291,22 @@ public boolean equals(final java.lang.Object obj) { result = result && getCampaignFeedErrorValue() == other.getCampaignFeedErrorValue(); break; + case 101: + result = result && getAdParameterErrorValue() + == other.getAdParameterErrorValue(); + break; + case 102: + result = result && getFeedItemValidationErrorValue() + == other.getFeedItemValidationErrorValue(); + break; + case 103: + result = result && getExtensionSettingErrorValue() + == other.getExtensionSettingErrorValue(); + break; + case 105: + result = result && getPolicyViolationErrorValue() + == other.getPolicyViolationErrorValue(); + break; case 0: default: } @@ -4408,10 +4558,6 @@ public int hashCode() { hash = (37 * hash) + POLICY_FINDING_ERROR_FIELD_NUMBER; hash = (53 * hash) + getPolicyFindingErrorValue(); break; - case 69: - hash = (37 * hash) + CAMPAIGN_GROUP_ERROR_FIELD_NUMBER; - hash = (53 * hash) + getCampaignGroupErrorValue(); - break; case 70: hash = (37 * hash) + ENUM_ERROR_FIELD_NUMBER; hash = (53 * hash) + getEnumErrorValue(); @@ -4492,6 +4638,22 @@ public int hashCode() { hash = (37 * hash) + CAMPAIGN_FEED_ERROR_FIELD_NUMBER; hash = (53 * hash) + getCampaignFeedErrorValue(); break; + case 101: + hash = (37 * hash) + AD_PARAMETER_ERROR_FIELD_NUMBER; + hash = (53 * hash) + getAdParameterErrorValue(); + break; + case 102: + hash = (37 * hash) + FEED_ITEM_VALIDATION_ERROR_FIELD_NUMBER; + hash = (53 * hash) + getFeedItemValidationErrorValue(); + break; + case 103: + hash = (37 * hash) + EXTENSION_SETTING_ERROR_FIELD_NUMBER; + hash = (53 * hash) + getExtensionSettingErrorValue(); + break; + case 105: + hash = (37 * hash) + POLICY_VIOLATION_ERROR_FIELD_NUMBER; + hash = (53 * hash) + getPolicyViolationErrorValue(); + break; case 0: default: } @@ -4837,9 +4999,6 @@ public com.google.ads.googleads.v0.errors.ErrorCode buildPartial() { if (errorCodeCase_ == 68) { result.errorCode_ = errorCode_; } - if (errorCodeCase_ == 69) { - result.errorCode_ = errorCode_; - } if (errorCodeCase_ == 70) { result.errorCode_ = errorCode_; } @@ -4900,6 +5059,18 @@ public com.google.ads.googleads.v0.errors.ErrorCode buildPartial() { if (errorCodeCase_ == 96) { result.errorCode_ = errorCode_; } + if (errorCodeCase_ == 101) { + result.errorCode_ = errorCode_; + } + if (errorCodeCase_ == 102) { + result.errorCode_ = errorCode_; + } + if (errorCodeCase_ == 103) { + result.errorCode_ = errorCode_; + } + if (errorCodeCase_ == 105) { + result.errorCode_ = errorCode_; + } result.errorCodeCase_ = errorCodeCase_; onBuilt(); return result; @@ -5186,10 +5357,6 @@ public Builder mergeFrom(com.google.ads.googleads.v0.errors.ErrorCode other) { setPolicyFindingErrorValue(other.getPolicyFindingErrorValue()); break; } - case CAMPAIGN_GROUP_ERROR: { - setCampaignGroupErrorValue(other.getCampaignGroupErrorValue()); - break; - } case ENUM_ERROR: { setEnumErrorValue(other.getEnumErrorValue()); break; @@ -5270,6 +5437,22 @@ public Builder mergeFrom(com.google.ads.googleads.v0.errors.ErrorCode other) { setCampaignFeedErrorValue(other.getCampaignFeedErrorValue()); break; } + case AD_PARAMETER_ERROR: { + setAdParameterErrorValue(other.getAdParameterErrorValue()); + break; + } + case FEED_ITEM_VALIDATION_ERROR: { + setFeedItemValidationErrorValue(other.getFeedItemValidationErrorValue()); + break; + } + case EXTENSION_SETTING_ERROR: { + setExtensionSettingErrorValue(other.getExtensionSettingErrorValue()); + break; + } + case POLICY_VIOLATION_ERROR: { + setPolicyViolationErrorValue(other.getPolicyViolationErrorValue()); + break; + } case ERRORCODE_NOT_SET: { break; } @@ -9684,80 +9867,6 @@ public Builder clearPolicyFindingError() { return this; } - /** - *
-     * The reasons for campaign group error.
-     * 
- * - * .google.ads.googleads.v0.errors.CampaignGroupErrorEnum.CampaignGroupError campaign_group_error = 69; - */ - public int getCampaignGroupErrorValue() { - if (errorCodeCase_ == 69) { - return ((java.lang.Integer) errorCode_).intValue(); - } - return 0; - } - /** - *
-     * The reasons for campaign group error.
-     * 
- * - * .google.ads.googleads.v0.errors.CampaignGroupErrorEnum.CampaignGroupError campaign_group_error = 69; - */ - public Builder setCampaignGroupErrorValue(int value) { - errorCodeCase_ = 69; - errorCode_ = value; - onChanged(); - return this; - } - /** - *
-     * The reasons for campaign group error.
-     * 
- * - * .google.ads.googleads.v0.errors.CampaignGroupErrorEnum.CampaignGroupError campaign_group_error = 69; - */ - public com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum.CampaignGroupError getCampaignGroupError() { - if (errorCodeCase_ == 69) { - @SuppressWarnings("deprecation") - com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum.CampaignGroupError result = com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum.CampaignGroupError.valueOf( - (java.lang.Integer) errorCode_); - return result == null ? com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum.CampaignGroupError.UNRECOGNIZED : result; - } - return com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum.CampaignGroupError.UNSPECIFIED; - } - /** - *
-     * The reasons for campaign group error.
-     * 
- * - * .google.ads.googleads.v0.errors.CampaignGroupErrorEnum.CampaignGroupError campaign_group_error = 69; - */ - public Builder setCampaignGroupError(com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum.CampaignGroupError value) { - if (value == null) { - throw new NullPointerException(); - } - errorCodeCase_ = 69; - errorCode_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * The reasons for campaign group error.
-     * 
- * - * .google.ads.googleads.v0.errors.CampaignGroupErrorEnum.CampaignGroupError campaign_group_error = 69; - */ - public Builder clearCampaignGroupError() { - if (errorCodeCase_ == 69) { - errorCodeCase_ = 0; - errorCode_ = null; - onChanged(); - } - return this; - } - /** *
      * The reason for enum error.
@@ -11237,6 +11346,302 @@ public Builder clearCampaignFeedError() {
       }
       return this;
     }
+
+    /**
+     * 
+     * The reasons for the ad parameter error
+     * 
+ * + * .google.ads.googleads.v0.errors.AdParameterErrorEnum.AdParameterError ad_parameter_error = 101; + */ + public int getAdParameterErrorValue() { + if (errorCodeCase_ == 101) { + return ((java.lang.Integer) errorCode_).intValue(); + } + return 0; + } + /** + *
+     * The reasons for the ad parameter error
+     * 
+ * + * .google.ads.googleads.v0.errors.AdParameterErrorEnum.AdParameterError ad_parameter_error = 101; + */ + public Builder setAdParameterErrorValue(int value) { + errorCodeCase_ = 101; + errorCode_ = value; + onChanged(); + return this; + } + /** + *
+     * The reasons for the ad parameter error
+     * 
+ * + * .google.ads.googleads.v0.errors.AdParameterErrorEnum.AdParameterError ad_parameter_error = 101; + */ + public com.google.ads.googleads.v0.errors.AdParameterErrorEnum.AdParameterError getAdParameterError() { + if (errorCodeCase_ == 101) { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.errors.AdParameterErrorEnum.AdParameterError result = com.google.ads.googleads.v0.errors.AdParameterErrorEnum.AdParameterError.valueOf( + (java.lang.Integer) errorCode_); + return result == null ? com.google.ads.googleads.v0.errors.AdParameterErrorEnum.AdParameterError.UNRECOGNIZED : result; + } + return com.google.ads.googleads.v0.errors.AdParameterErrorEnum.AdParameterError.UNSPECIFIED; + } + /** + *
+     * The reasons for the ad parameter error
+     * 
+ * + * .google.ads.googleads.v0.errors.AdParameterErrorEnum.AdParameterError ad_parameter_error = 101; + */ + public Builder setAdParameterError(com.google.ads.googleads.v0.errors.AdParameterErrorEnum.AdParameterError value) { + if (value == null) { + throw new NullPointerException(); + } + errorCodeCase_ = 101; + errorCode_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The reasons for the ad parameter error
+     * 
+ * + * .google.ads.googleads.v0.errors.AdParameterErrorEnum.AdParameterError ad_parameter_error = 101; + */ + public Builder clearAdParameterError() { + if (errorCodeCase_ == 101) { + errorCodeCase_ = 0; + errorCode_ = null; + onChanged(); + } + return this; + } + + /** + *
+     * The reasons for the feed item validation error
+     * 
+ * + * .google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError feed_item_validation_error = 102; + */ + public int getFeedItemValidationErrorValue() { + if (errorCodeCase_ == 102) { + return ((java.lang.Integer) errorCode_).intValue(); + } + return 0; + } + /** + *
+     * The reasons for the feed item validation error
+     * 
+ * + * .google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError feed_item_validation_error = 102; + */ + public Builder setFeedItemValidationErrorValue(int value) { + errorCodeCase_ = 102; + errorCode_ = value; + onChanged(); + return this; + } + /** + *
+     * The reasons for the feed item validation error
+     * 
+ * + * .google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError feed_item_validation_error = 102; + */ + public com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError getFeedItemValidationError() { + if (errorCodeCase_ == 102) { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError result = com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError.valueOf( + (java.lang.Integer) errorCode_); + return result == null ? com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError.UNRECOGNIZED : result; + } + return com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError.UNSPECIFIED; + } + /** + *
+     * The reasons for the feed item validation error
+     * 
+ * + * .google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError feed_item_validation_error = 102; + */ + public Builder setFeedItemValidationError(com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError value) { + if (value == null) { + throw new NullPointerException(); + } + errorCodeCase_ = 102; + errorCode_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The reasons for the feed item validation error
+     * 
+ * + * .google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError feed_item_validation_error = 102; + */ + public Builder clearFeedItemValidationError() { + if (errorCodeCase_ == 102) { + errorCodeCase_ = 0; + errorCode_ = null; + onChanged(); + } + return this; + } + + /** + *
+     * The reasons for the extension setting error
+     * 
+ * + * .google.ads.googleads.v0.errors.ExtensionSettingErrorEnum.ExtensionSettingError extension_setting_error = 103; + */ + public int getExtensionSettingErrorValue() { + if (errorCodeCase_ == 103) { + return ((java.lang.Integer) errorCode_).intValue(); + } + return 0; + } + /** + *
+     * The reasons for the extension setting error
+     * 
+ * + * .google.ads.googleads.v0.errors.ExtensionSettingErrorEnum.ExtensionSettingError extension_setting_error = 103; + */ + public Builder setExtensionSettingErrorValue(int value) { + errorCodeCase_ = 103; + errorCode_ = value; + onChanged(); + return this; + } + /** + *
+     * The reasons for the extension setting error
+     * 
+ * + * .google.ads.googleads.v0.errors.ExtensionSettingErrorEnum.ExtensionSettingError extension_setting_error = 103; + */ + public com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum.ExtensionSettingError getExtensionSettingError() { + if (errorCodeCase_ == 103) { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum.ExtensionSettingError result = com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum.ExtensionSettingError.valueOf( + (java.lang.Integer) errorCode_); + return result == null ? com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum.ExtensionSettingError.UNRECOGNIZED : result; + } + return com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum.ExtensionSettingError.UNSPECIFIED; + } + /** + *
+     * The reasons for the extension setting error
+     * 
+ * + * .google.ads.googleads.v0.errors.ExtensionSettingErrorEnum.ExtensionSettingError extension_setting_error = 103; + */ + public Builder setExtensionSettingError(com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum.ExtensionSettingError value) { + if (value == null) { + throw new NullPointerException(); + } + errorCodeCase_ = 103; + errorCode_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The reasons for the extension setting error
+     * 
+ * + * .google.ads.googleads.v0.errors.ExtensionSettingErrorEnum.ExtensionSettingError extension_setting_error = 103; + */ + public Builder clearExtensionSettingError() { + if (errorCodeCase_ == 103) { + errorCodeCase_ = 0; + errorCode_ = null; + onChanged(); + } + return this; + } + + /** + *
+     * The reasons for the policy violation error
+     * 
+ * + * .google.ads.googleads.v0.errors.PolicyViolationErrorEnum.PolicyViolationError policy_violation_error = 105; + */ + public int getPolicyViolationErrorValue() { + if (errorCodeCase_ == 105) { + return ((java.lang.Integer) errorCode_).intValue(); + } + return 0; + } + /** + *
+     * The reasons for the policy violation error
+     * 
+ * + * .google.ads.googleads.v0.errors.PolicyViolationErrorEnum.PolicyViolationError policy_violation_error = 105; + */ + public Builder setPolicyViolationErrorValue(int value) { + errorCodeCase_ = 105; + errorCode_ = value; + onChanged(); + return this; + } + /** + *
+     * The reasons for the policy violation error
+     * 
+ * + * .google.ads.googleads.v0.errors.PolicyViolationErrorEnum.PolicyViolationError policy_violation_error = 105; + */ + public com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum.PolicyViolationError getPolicyViolationError() { + if (errorCodeCase_ == 105) { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum.PolicyViolationError result = com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum.PolicyViolationError.valueOf( + (java.lang.Integer) errorCode_); + return result == null ? com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum.PolicyViolationError.UNRECOGNIZED : result; + } + return com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum.PolicyViolationError.UNSPECIFIED; + } + /** + *
+     * The reasons for the policy violation error
+     * 
+ * + * .google.ads.googleads.v0.errors.PolicyViolationErrorEnum.PolicyViolationError policy_violation_error = 105; + */ + public Builder setPolicyViolationError(com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum.PolicyViolationError value) { + if (value == null) { + throw new NullPointerException(); + } + errorCodeCase_ = 105; + errorCode_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The reasons for the policy violation error
+     * 
+ * + * .google.ads.googleads.v0.errors.PolicyViolationErrorEnum.PolicyViolationError policy_violation_error = 105; + */ + public Builder clearPolicyViolationError() { + if (errorCodeCase_ == 105) { + errorCodeCase_ = 0; + errorCode_ = null; + onChanged(); + } + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ErrorCodeOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ErrorCodeOrBuilder.java index 75178ebc74..5395c91444 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ErrorCodeOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ErrorCodeOrBuilder.java @@ -1010,23 +1010,6 @@ public interface ErrorCodeOrBuilder extends */ com.google.ads.googleads.v0.errors.PolicyFindingErrorEnum.PolicyFindingError getPolicyFindingError(); - /** - *
-   * The reasons for campaign group error.
-   * 
- * - * .google.ads.googleads.v0.errors.CampaignGroupErrorEnum.CampaignGroupError campaign_group_error = 69; - */ - int getCampaignGroupErrorValue(); - /** - *
-   * The reasons for campaign group error.
-   * 
- * - * .google.ads.googleads.v0.errors.CampaignGroupErrorEnum.CampaignGroupError campaign_group_error = 69; - */ - com.google.ads.googleads.v0.errors.CampaignGroupErrorEnum.CampaignGroupError getCampaignGroupError(); - /** *
    * The reason for enum error.
@@ -1367,5 +1350,73 @@ public interface ErrorCodeOrBuilder extends
    */
   com.google.ads.googleads.v0.errors.CampaignFeedErrorEnum.CampaignFeedError getCampaignFeedError();
 
+  /**
+   * 
+   * The reasons for the ad parameter error
+   * 
+ * + * .google.ads.googleads.v0.errors.AdParameterErrorEnum.AdParameterError ad_parameter_error = 101; + */ + int getAdParameterErrorValue(); + /** + *
+   * The reasons for the ad parameter error
+   * 
+ * + * .google.ads.googleads.v0.errors.AdParameterErrorEnum.AdParameterError ad_parameter_error = 101; + */ + com.google.ads.googleads.v0.errors.AdParameterErrorEnum.AdParameterError getAdParameterError(); + + /** + *
+   * The reasons for the feed item validation error
+   * 
+ * + * .google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError feed_item_validation_error = 102; + */ + int getFeedItemValidationErrorValue(); + /** + *
+   * The reasons for the feed item validation error
+   * 
+ * + * .google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError feed_item_validation_error = 102; + */ + com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError getFeedItemValidationError(); + + /** + *
+   * The reasons for the extension setting error
+   * 
+ * + * .google.ads.googleads.v0.errors.ExtensionSettingErrorEnum.ExtensionSettingError extension_setting_error = 103; + */ + int getExtensionSettingErrorValue(); + /** + *
+   * The reasons for the extension setting error
+   * 
+ * + * .google.ads.googleads.v0.errors.ExtensionSettingErrorEnum.ExtensionSettingError extension_setting_error = 103; + */ + com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum.ExtensionSettingError getExtensionSettingError(); + + /** + *
+   * The reasons for the policy violation error
+   * 
+ * + * .google.ads.googleads.v0.errors.PolicyViolationErrorEnum.PolicyViolationError policy_violation_error = 105; + */ + int getPolicyViolationErrorValue(); + /** + *
+   * The reasons for the policy violation error
+   * 
+ * + * .google.ads.googleads.v0.errors.PolicyViolationErrorEnum.PolicyViolationError policy_violation_error = 105; + */ + com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum.PolicyViolationError getPolicyViolationError(); + public com.google.ads.googleads.v0.errors.ErrorCode.ErrorCodeCase getErrorCodeCase(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ErrorLocation.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ErrorLocation.java index 0c67215f3d..d043658393 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ErrorLocation.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ErrorLocation.java @@ -47,23 +47,10 @@ private ErrorLocation( case 0: done = true; break; - case 10: { - com.google.protobuf.Int64Value.Builder subBuilder = null; - if (operationIndex_ != null) { - subBuilder = operationIndex_.toBuilder(); - } - operationIndex_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(operationIndex_); - operationIndex_ = subBuilder.buildPartial(); - } - - break; - } case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { fieldPathElements_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000001; } fieldPathElements_.add( input.readMessage(com.google.ads.googleads.v0.errors.ErrorLocation.FieldPathElement.parser(), extensionRegistry)); @@ -84,7 +71,7 @@ private ErrorLocation( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { fieldPathElements_ = java.util.Collections.unmodifiableList(fieldPathElements_); } this.unknownFields = unknownFields.build(); @@ -952,40 +939,6 @@ public com.google.ads.googleads.v0.errors.ErrorLocation.FieldPathElement getDefa } - private int bitField0_; - public static final int OPERATION_INDEX_FIELD_NUMBER = 1; - private com.google.protobuf.Int64Value operationIndex_; - /** - *
-   * The mutate operation that failed
-   * 
- * - * .google.protobuf.Int64Value operation_index = 1; - */ - public boolean hasOperationIndex() { - return operationIndex_ != null; - } - /** - *
-   * The mutate operation that failed
-   * 
- * - * .google.protobuf.Int64Value operation_index = 1; - */ - public com.google.protobuf.Int64Value getOperationIndex() { - return operationIndex_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : operationIndex_; - } - /** - *
-   * The mutate operation that failed
-   * 
- * - * .google.protobuf.Int64Value operation_index = 1; - */ - public com.google.protobuf.Int64ValueOrBuilder getOperationIndexOrBuilder() { - return getOperationIndex(); - } - public static final int FIELD_PATH_ELEMENTS_FIELD_NUMBER = 2; private java.util.List fieldPathElements_; /** @@ -1055,9 +1008,6 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (operationIndex_ != null) { - output.writeMessage(1, getOperationIndex()); - } for (int i = 0; i < fieldPathElements_.size(); i++) { output.writeMessage(2, fieldPathElements_.get(i)); } @@ -1070,10 +1020,6 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (operationIndex_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getOperationIndex()); - } for (int i = 0; i < fieldPathElements_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, fieldPathElements_.get(i)); @@ -1094,11 +1040,6 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.googleads.v0.errors.ErrorLocation other = (com.google.ads.googleads.v0.errors.ErrorLocation) obj; boolean result = true; - result = result && (hasOperationIndex() == other.hasOperationIndex()); - if (hasOperationIndex()) { - result = result && getOperationIndex() - .equals(other.getOperationIndex()); - } result = result && getFieldPathElementsList() .equals(other.getFieldPathElementsList()); result = result && unknownFields.equals(other.unknownFields); @@ -1112,10 +1053,6 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasOperationIndex()) { - hash = (37 * hash) + OPERATION_INDEX_FIELD_NUMBER; - hash = (53 * hash) + getOperationIndex().hashCode(); - } if (getFieldPathElementsCount() > 0) { hash = (37 * hash) + FIELD_PATH_ELEMENTS_FIELD_NUMBER; hash = (53 * hash) + getFieldPathElementsList().hashCode(); @@ -1258,15 +1195,9 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - if (operationIndexBuilder_ == null) { - operationIndex_ = null; - } else { - operationIndex_ = null; - operationIndexBuilder_ = null; - } if (fieldPathElementsBuilder_ == null) { fieldPathElements_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { fieldPathElementsBuilder_.clear(); } @@ -1297,22 +1228,15 @@ public com.google.ads.googleads.v0.errors.ErrorLocation build() { public com.google.ads.googleads.v0.errors.ErrorLocation buildPartial() { com.google.ads.googleads.v0.errors.ErrorLocation result = new com.google.ads.googleads.v0.errors.ErrorLocation(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (operationIndexBuilder_ == null) { - result.operationIndex_ = operationIndex_; - } else { - result.operationIndex_ = operationIndexBuilder_.build(); - } if (fieldPathElementsBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { fieldPathElements_ = java.util.Collections.unmodifiableList(fieldPathElements_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } result.fieldPathElements_ = fieldPathElements_; } else { result.fieldPathElements_ = fieldPathElementsBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -1361,14 +1285,11 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.ads.googleads.v0.errors.ErrorLocation other) { if (other == com.google.ads.googleads.v0.errors.ErrorLocation.getDefaultInstance()) return this; - if (other.hasOperationIndex()) { - mergeOperationIndex(other.getOperationIndex()); - } if (fieldPathElementsBuilder_ == null) { if (!other.fieldPathElements_.isEmpty()) { if (fieldPathElements_.isEmpty()) { fieldPathElements_ = other.fieldPathElements_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFieldPathElementsIsMutable(); fieldPathElements_.addAll(other.fieldPathElements_); @@ -1381,7 +1302,7 @@ public Builder mergeFrom(com.google.ads.googleads.v0.errors.ErrorLocation other) fieldPathElementsBuilder_.dispose(); fieldPathElementsBuilder_ = null; fieldPathElements_ = other.fieldPathElements_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); fieldPathElementsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFieldPathElementsFieldBuilder() : null; @@ -1420,165 +1341,12 @@ public Builder mergeFrom( } private int bitField0_; - private com.google.protobuf.Int64Value operationIndex_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> operationIndexBuilder_; - /** - *
-     * The mutate operation that failed
-     * 
- * - * .google.protobuf.Int64Value operation_index = 1; - */ - public boolean hasOperationIndex() { - return operationIndexBuilder_ != null || operationIndex_ != null; - } - /** - *
-     * The mutate operation that failed
-     * 
- * - * .google.protobuf.Int64Value operation_index = 1; - */ - public com.google.protobuf.Int64Value getOperationIndex() { - if (operationIndexBuilder_ == null) { - return operationIndex_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : operationIndex_; - } else { - return operationIndexBuilder_.getMessage(); - } - } - /** - *
-     * The mutate operation that failed
-     * 
- * - * .google.protobuf.Int64Value operation_index = 1; - */ - public Builder setOperationIndex(com.google.protobuf.Int64Value value) { - if (operationIndexBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - operationIndex_ = value; - onChanged(); - } else { - operationIndexBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * The mutate operation that failed
-     * 
- * - * .google.protobuf.Int64Value operation_index = 1; - */ - public Builder setOperationIndex( - com.google.protobuf.Int64Value.Builder builderForValue) { - if (operationIndexBuilder_ == null) { - operationIndex_ = builderForValue.build(); - onChanged(); - } else { - operationIndexBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * The mutate operation that failed
-     * 
- * - * .google.protobuf.Int64Value operation_index = 1; - */ - public Builder mergeOperationIndex(com.google.protobuf.Int64Value value) { - if (operationIndexBuilder_ == null) { - if (operationIndex_ != null) { - operationIndex_ = - com.google.protobuf.Int64Value.newBuilder(operationIndex_).mergeFrom(value).buildPartial(); - } else { - operationIndex_ = value; - } - onChanged(); - } else { - operationIndexBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * The mutate operation that failed
-     * 
- * - * .google.protobuf.Int64Value operation_index = 1; - */ - public Builder clearOperationIndex() { - if (operationIndexBuilder_ == null) { - operationIndex_ = null; - onChanged(); - } else { - operationIndex_ = null; - operationIndexBuilder_ = null; - } - - return this; - } - /** - *
-     * The mutate operation that failed
-     * 
- * - * .google.protobuf.Int64Value operation_index = 1; - */ - public com.google.protobuf.Int64Value.Builder getOperationIndexBuilder() { - - onChanged(); - return getOperationIndexFieldBuilder().getBuilder(); - } - /** - *
-     * The mutate operation that failed
-     * 
- * - * .google.protobuf.Int64Value operation_index = 1; - */ - public com.google.protobuf.Int64ValueOrBuilder getOperationIndexOrBuilder() { - if (operationIndexBuilder_ != null) { - return operationIndexBuilder_.getMessageOrBuilder(); - } else { - return operationIndex_ == null ? - com.google.protobuf.Int64Value.getDefaultInstance() : operationIndex_; - } - } - /** - *
-     * The mutate operation that failed
-     * 
- * - * .google.protobuf.Int64Value operation_index = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> - getOperationIndexFieldBuilder() { - if (operationIndexBuilder_ == null) { - operationIndexBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( - getOperationIndex(), - getParentForChildren(), - isClean()); - operationIndex_ = null; - } - return operationIndexBuilder_; - } - private java.util.List fieldPathElements_ = java.util.Collections.emptyList(); private void ensureFieldPathElementsIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { fieldPathElements_ = new java.util.ArrayList(fieldPathElements_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } @@ -1772,7 +1540,7 @@ public Builder addAllFieldPathElements( public Builder clearFieldPathElements() { if (fieldPathElementsBuilder_ == null) { fieldPathElements_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { fieldPathElementsBuilder_.clear(); @@ -1877,7 +1645,7 @@ public com.google.ads.googleads.v0.errors.ErrorLocation.FieldPathElement.Builder fieldPathElementsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v0.errors.ErrorLocation.FieldPathElement, com.google.ads.googleads.v0.errors.ErrorLocation.FieldPathElement.Builder, com.google.ads.googleads.v0.errors.ErrorLocation.FieldPathElementOrBuilder>( fieldPathElements_, - ((bitField0_ & 0x00000002) == 0x00000002), + ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); fieldPathElements_ = null; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ErrorLocationOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ErrorLocationOrBuilder.java index 704341e62e..e046d561ba 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ErrorLocationOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ErrorLocationOrBuilder.java @@ -7,31 +7,6 @@ public interface ErrorLocationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.errors.ErrorLocation) com.google.protobuf.MessageOrBuilder { - /** - *
-   * The mutate operation that failed
-   * 
- * - * .google.protobuf.Int64Value operation_index = 1; - */ - boolean hasOperationIndex(); - /** - *
-   * The mutate operation that failed
-   * 
- * - * .google.protobuf.Int64Value operation_index = 1; - */ - com.google.protobuf.Int64Value getOperationIndex(); - /** - *
-   * The mutate operation that failed
-   * 
- * - * .google.protobuf.Int64Value operation_index = 1; - */ - com.google.protobuf.Int64ValueOrBuilder getOperationIndexOrBuilder(); - /** *
    * A field path that indicates which field was invalid in the request.
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ErrorsProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ErrorsProto.java
index 0b41de4fc3..0e80e322cc 100644
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ErrorsProto.java
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ErrorsProto.java
@@ -78,350 +78,363 @@ public static void registerAllExtensions(
       "ads/v0/errors/ad_group_criterion_error.p" +
       "roto\0323google/ads/googleads/v0/errors/ad_" +
       "group_error.proto\0328google/ads/googleads/" +
-      "v0/errors/ad_group_feed_error.proto\0325goo" +
-      "gle/ads/googleads/v0/errors/ad_sharing_e" +
-      "rror.proto\032.google/ads/googleads/v0/erro" +
-      "rs/adx_error.proto\0329google/ads/googleads" +
-      "/v0/errors/authentication_error.proto\0328g" +
-      "oogle/ads/googleads/v0/errors/authorizat" +
-      "ion_error.proto\0322google/ads/googleads/v0" +
-      "/errors/bidding_error.proto\032;google/ads/" +
-      "googleads/v0/errors/bidding_strategy_err" +
-      "or.proto\0328google/ads/googleads/v0/errors" +
-      "/billing_setup_error.proto\032:google/ads/g" +
-      "oogleads/v0/errors/campaign_budget_error" +
-      ".proto\032=google/ads/googleads/v0/errors/c" +
-      "ampaign_criterion_error.proto\0323google/ad" +
-      "s/googleads/v0/errors/campaign_error.pro" +
-      "to\0328google/ads/googleads/v0/errors/campa" +
-      "ign_feed_error.proto\0329google/ads/googlea" +
-      "ds/v0/errors/campaign_group_error.proto\032" +
-      ">google/ads/googleads/v0/errors/campaign" +
-      "_shared_set_error.proto\0328google/ads/goog" +
-      "leads/v0/errors/change_status_error.prot" +
-      "o\032:google/ads/googleads/v0/errors/collec" +
-      "tion_size_error.proto\0322google/ads/google" +
-      "ads/v0/errors/context_error.proto\032g" +
+      "oogle/ads/googleads/v0/errors/campaign_s" +
+      "hared_set_error.proto\0328google/ads/google" +
+      "ads/v0/errors/change_status_error.proto\032" +
+      ":google/ads/googleads/v0/errors/collecti" +
+      "on_size_error.proto\0322google/ads/googlead" +
+      "s/v0/errors/context_error.proto\032\n\006errors\030\001 \003(\0132..google.ad" +
-      "s.googleads.v0.errors.GoogleAdsError\"\230\002\n" +
-      "\016GoogleAdsError\022=\n\nerror_code\030\001 \001(\0132).go" +
-      "ogle.ads.googleads.v0.errors.ErrorCode\022\017" +
-      "\n\007message\030\002 \001(\t\0226\n\007trigger\030\003 \001(\0132%.googl" +
-      "e.ads.googleads.v0.common.Value\022?\n\010locat" +
-      "ion\030\004 \001(\0132-.google.ads.googleads.v0.erro" +
-      "rs.ErrorLocation\022=\n\007details\030\005 \001(\0132,.goog" +
-      "le.ads.googleads.v0.errors.ErrorDetails\"" +
-      "\241@\n\tErrorCode\022V\n\rrequest_error\030\001 \001(\0162=.g" +
-      "oogle.ads.googleads.v0.errors.RequestErr" +
-      "orEnum.RequestErrorH\000\022o\n\026bidding_strateg" +
-      "y_error\030\002 \001(\0162M.google.ads.googleads.v0." +
-      "errors.BiddingStrategyErrorEnum.BiddingS" +
-      "trategyErrorH\000\022Z\n\017url_field_error\030\003 \001(\0162" +
-      "?.google.ads.googleads.v0.errors.UrlFiel" +
-      "dErrorEnum.UrlFieldErrorH\000\022i\n\024list_opera" +
-      "tion_error\030\004 \001(\0162I.google.ads.googleads." +
-      "v0.errors.ListOperationErrorEnum.ListOpe" +
-      "rationErrorH\000\022P\n\013query_error\030\005 \001(\01629.goo" +
-      "gle.ads.googleads.v0.errors.QueryErrorEn" +
-      "um.QueryErrorH\000\022S\n\014mutate_error\030\007 \001(\0162;." +
-      "google.ads.googleads.v0.errors.MutateErr" +
-      "orEnum.MutateErrorH\000\022]\n\020field_mask_error" +
-      "\030\010 \001(\0162A.google.ads.googleads.v0.errors." +
-      "FieldMaskErrorEnum.FieldMaskErrorH\000\022h\n\023a" +
-      "uthorization_error\030\t \001(\0162I.google.ads.go" +
-      "ogleads.v0.errors.AuthorizationErrorEnum" +
-      ".AuthorizationErrorH\000\022Y\n\016internal_error\030" +
-      "\n \001(\0162?.google.ads.googleads.v0.errors.I" +
-      "nternalErrorEnum.InternalErrorH\000\022P\n\013quot" +
-      "a_error\030\013 \001(\01629.google.ads.googleads.v0." +
-      "errors.QuotaErrorEnum.QuotaErrorH\000\022G\n\010ad" +
-      "_error\030\014 \001(\01623.google.ads.googleads.v0.e" +
-      "rrors.AdErrorEnum.AdErrorH\000\022W\n\016ad_group_" +
-      "error\030\r \001(\0162=.google.ads.googleads.v0.er" +
-      "rors.AdGroupErrorEnum.AdGroupErrorH\000\022l\n\025" +
-      "campaign_budget_error\030\016 \001(\0162K.google.ads" +
-      ".googleads.v0.errors.CampaignBudgetError" +
-      "Enum.CampaignBudgetErrorH\000\022Y\n\016campaign_e" +
-      "rror\030\017 \001(\0162?.google.ads.googleads.v0.err" +
-      "ors.CampaignErrorEnum.CampaignErrorH\000\022k\n" +
-      "\024authentication_error\030\021 \001(\0162K.google.ads" +
-      ".googleads.v0.errors.AuthenticationError" +
-      "Enum.AuthenticationErrorH\000\022s\n\030ad_group_c" +
-      "riterion_error\030\022 \001(\0162O.google.ads.google" +
-      "ads.v0.errors.AdGroupCriterionErrorEnum." +
-      "AdGroupCriterionErrorH\000\022f\n\023ad_customizer" +
-      "_error\030\023 \001(\0162G.google.ads.googleads.v0.e" +
-      "rrors.AdCustomizerErrorEnum.AdCustomizer" +
-      "ErrorH\000\022^\n\021ad_group_ad_error\030\025 \001(\0162A.goo" +
-      "gle.ads.googleads.v0.errors.AdGroupAdErr" +
-      "orEnum.AdGroupAdErrorH\000\022]\n\020ad_sharing_er" +
-      "ror\030\030 \001(\0162A.google.ads.googleads.v0.erro" +
-      "rs.AdSharingErrorEnum.AdSharingErrorH\000\022J" +
-      "\n\tadx_error\030\031 \001(\01625.google.ads.googleads" +
-      ".v0.errors.AdxErrorEnum.AdxErrorH\000\022V\n\rbi" +
-      "dding_error\030\032 \001(\0162=.google.ads.googleads" +
-      ".v0.errors.BiddingErrorEnum.BiddingError" +
-      "H\000\022u\n\030campaign_criterion_error\030\035 \001(\0162Q.g" +
-      "oogle.ads.googleads.v0.errors.CampaignCr" +
-      "iterionErrorEnum.CampaignCriterionErrorH" +
-      "\000\022l\n\025collection_size_error\030\037 \001(\0162K.googl" +
-      "e.ads.googleads.v0.errors.CollectionSize" +
-      "ErrorEnum.CollectionSizeErrorH\000\022\\\n\017crite" +
-      "rion_error\030  \001(\0162A.google.ads.googleads." +
-      "v0.errors.CriterionErrorEnum.CriterionEr" +
-      "rorH\000\022Y\n\016customer_error\030Z \001(\0162?.google.a" +
-      "ds.googleads.v0.errors.CustomerErrorEnum" +
-      ".CustomerErrorH\000\022M\n\ndate_error\030! \001(\01627.g" +
-      "oogle.ads.googleads.v0.errors.DateErrorE" +
-      "num.DateErrorH\000\022]\n\020date_range_error\030\" \001(" +
-      "\0162A.google.ads.googleads.v0.errors.DateR" +
-      "angeErrorEnum.DateRangeErrorH\000\022Y\n\016distin" +
-      "ct_error\030# \001(\0162?.google.ads.googleads.v0" +
-      ".errors.DistinctErrorEnum.DistinctErrorH" +
-      "\000\022\205\001\n\036feed_attribute_reference_error\030$ \001" +
-      "(\0162[.google.ads.googleads.v0.errors.Feed" +
-      "AttributeReferenceErrorEnum.FeedAttribut" +
-      "eReferenceErrorH\000\022Y\n\016function_error\030% \001(" +
-      "\0162?.google.ads.googleads.v0.errors.Funct" +
-      "ionErrorEnum.FunctionErrorH\000\022o\n\026function" +
-      "_parsing_error\030& \001(\0162M.google.ads.google" +
-      "ads.v0.errors.FunctionParsingErrorEnum.F" +
-      "unctionParsingErrorH\000\022G\n\010id_error\030\' \001(\0162" +
-      "3.google.ads.googleads.v0.errors.IdError" +
-      "Enum.IdErrorH\000\022P\n\013image_error\030( \001(\01629.go" +
-      "ogle.ads.googleads.v0.errors.ImageErrorE" +
-      "num.ImageErrorH\000\022c\n\022media_bundle_error\030*" +
-      " \001(\0162E.google.ads.googleads.v0.errors.Me" +
-      "diaBundleErrorEnum.MediaBundleErrorH\000\022]\n" +
-      "\020media_file_error\030V \001(\0162A.google.ads.goo" +
-      "gleads.v0.errors.MediaFileErrorEnum.Medi" +
-      "aFileErrorH\000\022_\n\020multiplier_error\030, \001(\0162C" +
-      ".google.ads.googleads.v0.errors.Multipli" +
-      "erErrorEnum.MultiplierErrorH\000\022|\n\033new_res" +
-      "ource_creation_error\030- \001(\0162U.google.ads." +
-      "googleads.v0.errors.NewResourceCreationE" +
-      "rrorEnum.NewResourceCreationErrorH\000\022Z\n\017n" +
-      "ot_empty_error\030. \001(\0162?.google.ads.google" +
-      "ads.v0.errors.NotEmptyErrorEnum.NotEmpty" +
-      "ErrorH\000\022M\n\nnull_error\030/ \001(\01627.google.ads" +
-      ".googleads.v0.errors.NullErrorEnum.NullE" +
-      "rrorH\000\022Y\n\016operator_error\0300 \001(\0162?.google." +
-      "ads.googleads.v0.errors.OperatorErrorEnu" +
-      "m.OperatorErrorH\000\022P\n\013range_error\0301 \001(\01629" +
-      ".google.ads.googleads.v0.errors.RangeErr" +
-      "orEnum.RangeErrorH\000\022k\n\024recommendation_er" +
-      "ror\030: \001(\0162K.google.ads.googleads.v0.erro" +
-      "rs.RecommendationErrorEnum.Recommendatio" +
-      "nErrorH\000\022`\n\021region_code_error\0303 \001(\0162C.go" +
-      "ogle.ads.googleads.v0.errors.RegionCodeE" +
-      "rrorEnum.RegionCodeErrorH\000\022V\n\rsetting_er" +
-      "ror\0304 \001(\0162=.google.ads.googleads.v0.erro" +
-      "rs.SettingErrorEnum.SettingErrorH\000\022f\n\023st" +
-      "ring_format_error\0305 \001(\0162G.google.ads.goo" +
-      "gleads.v0.errors.StringFormatErrorEnum.S" +
-      "tringFormatErrorH\000\022f\n\023string_length_erro" +
-      "r\0306 \001(\0162G.google.ads.googleads.v0.errors" +
-      ".StringLengthErrorEnum.StringLengthError" +
-      "H\000\022\202\001\n\035operation_access_denied_error\0307 \001" +
-      "(\0162Y.google.ads.googleads.v0.errors.Oper" +
-      "ationAccessDeniedErrorEnum.OperationAcce" +
-      "ssDeniedErrorH\000\022\177\n\034resource_access_denie" +
-      "d_error\0308 \001(\0162W.google.ads.googleads.v0." +
-      "errors.ResourceAccessDeniedErrorEnum.Res" +
-      "ourceAccessDeniedErrorH\000\022\222\001\n#resource_co" +
-      "unt_limit_exceeded_error\0309 \001(\0162c.google." +
-      "ads.googleads.v0.errors.ResourceCountLim" +
-      "itExceededErrorEnum.ResourceCountLimitEx" +
-      "ceededErrorH\000\022z\n\033ad_group_bid_modifier_e" +
-      "rror\030; \001(\0162S.google.ads.googleads.v0.err" +
-      "ors.AdGroupBidModifierErrorEnum.AdGroupB" +
-      "idModifierErrorH\000\022V\n\rcontext_error\030< \001(\016" +
-      "2=.google.ads.googleads.v0.errors.Contex" +
-      "tErrorEnum.ContextErrorH\000\022P\n\013field_error" +
-      "\030= \001(\01629.google.ads.googleads.v0.errors." +
-      "FieldErrorEnum.FieldErrorH\000\022]\n\020shared_se" +
-      "t_error\030> \001(\0162A.google.ads.googleads.v0." +
-      "errors.SharedSetErrorEnum.SharedSetError" +
-      "H\000\022o\n\026shared_criterion_error\030? \001(\0162M.goo" +
-      "gle.ads.googleads.v0.errors.SharedCriter" +
-      "ionErrorEnum.SharedCriterionErrorH\000\022v\n\031c" +
-      "ampaign_shared_set_error\030@ \001(\0162Q.google." +
-      "ads.googleads.v0.errors.CampaignSharedSe" +
-      "tErrorEnum.CampaignSharedSetErrorH\000\022r\n\027c" +
-      "onversion_action_error\030A \001(\0162O.google.ad" +
-      "s.googleads.v0.errors.ConversionActionEr" +
-      "rorEnum.ConversionActionErrorH\000\022S\n\014heade" +
-      "r_error\030B \001(\0162;.google.ads.googleads.v0." +
-      "errors.HeaderErrorEnum.HeaderErrorH\000\022Y\n\016" +
-      "database_error\030C \001(\0162?.google.ads.google" +
-      "ads.v0.errors.DatabaseErrorEnum.Database" +
-      "ErrorH\000\022i\n\024policy_finding_error\030D \001(\0162I." +
-      "google.ads.googleads.v0.errors.PolicyFin" +
-      "dingErrorEnum.PolicyFindingErrorH\000\022i\n\024ca" +
-      "mpaign_group_error\030E \001(\0162I.google.ads.go" +
-      "ogleads.v0.errors.CampaignGroupErrorEnum" +
-      ".CampaignGroupErrorH\000\022M\n\nenum_error\030F \001(" +
-      "\01627.google.ads.googleads.v0.errors.EnumE" +
-      "rrorEnum.EnumErrorH\000\022c\n\022keyword_plan_err" +
-      "or\030G \001(\0162E.google.ads.googleads.v0.error" +
-      "s.KeywordPlanErrorEnum.KeywordPlanErrorH" +
-      "\000\022|\n\033keyword_plan_campaign_error\030H \001(\0162U" +
-      ".google.ads.googleads.v0.errors.KeywordP" +
-      "lanCampaignErrorEnum.KeywordPlanCampaign" +
-      "ErrorH\000\022\222\001\n#keyword_plan_negative_keywor" +
-      "d_error\030I \001(\0162c.google.ads.googleads.v0." +
-      "errors.KeywordPlanNegativeKeywordErrorEn" +
-      "um.KeywordPlanNegativeKeywordErrorH\000\022z\n\033" +
-      "keyword_plan_ad_group_error\030J \001(\0162S.goog" +
-      "le.ads.googleads.v0.errors.KeywordPlanAd" +
-      "GroupErrorEnum.KeywordPlanAdGroupErrorH\000" +
-      "\022y\n\032keyword_plan_keyword_error\030K \001(\0162S.g" +
-      "oogle.ads.googleads.v0.errors.KeywordPla" +
-      "nKeywordErrorEnum.KeywordPlanKeywordErro" +
-      "rH\000\022p\n\027keyword_plan_idea_error\030L \001(\0162M.g" +
-      "oogle.ads.googleads.v0.errors.KeywordPla" +
-      "nIdeaErrorEnum.KeywordPlanIdeaErrorH\000\022\202\001" +
-      "\n\035account_budget_proposal_error\030M \001(\0162Y." +
-      "google.ads.googleads.v0.errors.AccountBu" +
-      "dgetProposalErrorEnum.AccountBudgetPropo" +
-      "salErrorH\000\022Z\n\017user_list_error\030N \001(\0162?.go" +
-      "ogle.ads.googleads.v0.errors.UserListErr" +
-      "orEnum.UserListErrorH\000\022f\n\023change_status_" +
-      "error\030O \001(\0162G.google.ads.googleads.v0.er" +
-      "rors.ChangeStatusErrorEnum.ChangeStatusE" +
-      "rrorH\000\022M\n\nfeed_error\030P \001(\01627.google.ads." +
-      "googleads.v0.errors.FeedErrorEnum.FeedEr" +
-      "rorH\000\022\225\001\n$geo_target_constant_suggestion" +
-      "_error\030Q \001(\0162e.google.ads.googleads.v0.e" +
-      "rrors.GeoTargetConstantSuggestionErrorEn" +
-      "um.GeoTargetConstantSuggestionErrorH\000\022Z\n" +
-      "\017feed_item_error\030S \001(\0162?.google.ads.goog" +
-      "leads.v0.errors.FeedItemErrorEnum.FeedIt" +
-      "emErrorH\000\022f\n\023billing_setup_error\030W \001(\0162G" +
-      ".google.ads.googleads.v0.errors.BillingS" +
-      "etupErrorEnum.BillingSetupErrorH\000\022y\n\032cus" +
-      "tomer_client_link_error\030X \001(\0162S.google.a" +
-      "ds.googleads.v0.errors.CustomerClientLin" +
-      "kErrorEnum.CustomerClientLinkErrorH\000\022|\n\033" +
-      "customer_manager_link_error\030[ \001(\0162U.goog" +
-      "le.ads.googleads.v0.errors.CustomerManag" +
-      "erLinkErrorEnum.CustomerManagerLinkError" +
-      "H\000\022c\n\022feed_mapping_error\030\\ \001(\0162E.google." +
-      "ads.googleads.v0.errors.FeedMappingError" +
-      "Enum.FeedMappingErrorH\000\022f\n\023customer_feed" +
-      "_error\030] \001(\0162G.google.ads.googleads.v0.e" +
-      "rrors.CustomerFeedErrorEnum.CustomerFeed" +
-      "ErrorH\000\022d\n\023ad_group_feed_error\030^ \001(\0162E.g" +
-      "oogle.ads.googleads.v0.errors.AdGroupFee" +
-      "dErrorEnum.AdGroupFeedErrorH\000\022f\n\023campaig" +
-      "n_feed_error\030` \001(\0162G.google.ads.googlead" +
-      "s.v0.errors.CampaignFeedErrorEnum.Campai" +
-      "gnFeedErrorH\000B\014\n\nerror_code\"\366\001\n\rErrorLoc" +
-      "ation\0224\n\017operation_index\030\001 \001(\0132\033.google." +
-      "protobuf.Int64Value\022[\n\023field_path_elemen" +
-      "ts\030\002 \003(\0132>.google.ads.googleads.v0.error" +
-      "s.ErrorLocation.FieldPathElement\032R\n\020Fiel" +
-      "dPathElement\022\022\n\nfield_name\030\001 \001(\t\022*\n\005inde" +
-      "x\030\002 \001(\0132\033.google.protobuf.Int64Value\"\336\001\n" +
-      "\014ErrorDetails\022\036\n\026unpublished_error_code\030" +
-      "\001 \001(\t\022X\n\030policy_violation_details\030\002 \001(\0132" +
-      "6.google.ads.googleads.v0.errors.PolicyV" +
-      "iolationDetails\022T\n\026policy_finding_detail" +
-      "s\030\003 \001(\01324.google.ads.googleads.v0.errors" +
-      ".PolicyFindingDetails\"\263\001\n\026PolicyViolatio" +
-      "nDetails\022#\n\033external_policy_description\030" +
-      "\002 \001(\t\022?\n\003key\030\004 \001(\01322.google.ads.googlead" +
-      "s.v0.common.PolicyViolationKey\022\034\n\024extern" +
-      "al_policy_name\030\005 \001(\t\022\025\n\ris_exemptible\030\006 " +
-      "\001(\010\"f\n\024PolicyFindingDetails\022N\n\024policy_to" +
-      "pic_entries\030\001 \003(\01320.google.ads.googleads" +
-      ".v0.common.PolicyTopicEntryB\301\001\n\"com.goog" +
-      "le.ads.googleads.v0.errorsB\013ErrorsProtoP" +
-      "\001ZDgoogle.golang.org/genproto/googleapis" +
-      "/ads/googleads/v0/errors;errors\242\002\003GAA\252\002\036" +
-      "Google.Ads.GoogleAds.V0.Errors\312\002\036Google\\" +
-      "Ads\\GoogleAds\\V0\\Errorsb\006proto3"
+      "rors/user_list_error.proto\032\036google/proto" +
+      "buf/wrappers.proto\"R\n\020GoogleAdsFailure\022>" +
+      "\n\006errors\030\001 \003(\0132..google.ads.googleads.v0" +
+      ".errors.GoogleAdsError\"\230\002\n\016GoogleAdsErro" +
+      "r\022=\n\nerror_code\030\001 \001(\0132).google.ads.googl" +
+      "eads.v0.errors.ErrorCode\022\017\n\007message\030\002 \001(" +
+      "\t\0226\n\007trigger\030\003 \001(\0132%.google.ads.googlead" +
+      "s.v0.common.Value\022?\n\010location\030\004 \001(\0132-.go" +
+      "ogle.ads.googleads.v0.errors.ErrorLocati" +
+      "on\022=\n\007details\030\005 \001(\0132,.google.ads.googlea" +
+      "ds.v0.errors.ErrorDetails\"\373B\n\tErrorCode\022" +
+      "V\n\rrequest_error\030\001 \001(\0162=.google.ads.goog" +
+      "leads.v0.errors.RequestErrorEnum.Request" +
+      "ErrorH\000\022o\n\026bidding_strategy_error\030\002 \001(\0162" +
+      "M.google.ads.googleads.v0.errors.Bidding" +
+      "StrategyErrorEnum.BiddingStrategyErrorH\000" +
+      "\022Z\n\017url_field_error\030\003 \001(\0162?.google.ads.g" +
+      "oogleads.v0.errors.UrlFieldErrorEnum.Url" +
+      "FieldErrorH\000\022i\n\024list_operation_error\030\004 \001" +
+      "(\0162I.google.ads.googleads.v0.errors.List" +
+      "OperationErrorEnum.ListOperationErrorH\000\022" +
+      "P\n\013query_error\030\005 \001(\01629.google.ads.google" +
+      "ads.v0.errors.QueryErrorEnum.QueryErrorH" +
+      "\000\022S\n\014mutate_error\030\007 \001(\0162;.google.ads.goo" +
+      "gleads.v0.errors.MutateErrorEnum.MutateE" +
+      "rrorH\000\022]\n\020field_mask_error\030\010 \001(\0162A.googl" +
+      "e.ads.googleads.v0.errors.FieldMaskError" +
+      "Enum.FieldMaskErrorH\000\022h\n\023authorization_e" +
+      "rror\030\t \001(\0162I.google.ads.googleads.v0.err" +
+      "ors.AuthorizationErrorEnum.Authorization" +
+      "ErrorH\000\022Y\n\016internal_error\030\n \001(\0162?.google" +
+      ".ads.googleads.v0.errors.InternalErrorEn" +
+      "um.InternalErrorH\000\022P\n\013quota_error\030\013 \001(\0162" +
+      "9.google.ads.googleads.v0.errors.QuotaEr" +
+      "rorEnum.QuotaErrorH\000\022G\n\010ad_error\030\014 \001(\01623" +
+      ".google.ads.googleads.v0.errors.AdErrorE" +
+      "num.AdErrorH\000\022W\n\016ad_group_error\030\r \001(\0162=." +
+      "google.ads.googleads.v0.errors.AdGroupEr" +
+      "rorEnum.AdGroupErrorH\000\022l\n\025campaign_budge" +
+      "t_error\030\016 \001(\0162K.google.ads.googleads.v0." +
+      "errors.CampaignBudgetErrorEnum.CampaignB" +
+      "udgetErrorH\000\022Y\n\016campaign_error\030\017 \001(\0162?.g" +
+      "oogle.ads.googleads.v0.errors.CampaignEr" +
+      "rorEnum.CampaignErrorH\000\022k\n\024authenticatio" +
+      "n_error\030\021 \001(\0162K.google.ads.googleads.v0." +
+      "errors.AuthenticationErrorEnum.Authentic" +
+      "ationErrorH\000\022s\n\030ad_group_criterion_error" +
+      "\030\022 \001(\0162O.google.ads.googleads.v0.errors." +
+      "AdGroupCriterionErrorEnum.AdGroupCriteri" +
+      "onErrorH\000\022f\n\023ad_customizer_error\030\023 \001(\0162G" +
+      ".google.ads.googleads.v0.errors.AdCustom" +
+      "izerErrorEnum.AdCustomizerErrorH\000\022^\n\021ad_" +
+      "group_ad_error\030\025 \001(\0162A.google.ads.google" +
+      "ads.v0.errors.AdGroupAdErrorEnum.AdGroup" +
+      "AdErrorH\000\022]\n\020ad_sharing_error\030\030 \001(\0162A.go" +
+      "ogle.ads.googleads.v0.errors.AdSharingEr" +
+      "rorEnum.AdSharingErrorH\000\022J\n\tadx_error\030\031 " +
+      "\001(\01625.google.ads.googleads.v0.errors.Adx" +
+      "ErrorEnum.AdxErrorH\000\022V\n\rbidding_error\030\032 " +
+      "\001(\0162=.google.ads.googleads.v0.errors.Bid" +
+      "dingErrorEnum.BiddingErrorH\000\022u\n\030campaign" +
+      "_criterion_error\030\035 \001(\0162Q.google.ads.goog" +
+      "leads.v0.errors.CampaignCriterionErrorEn" +
+      "um.CampaignCriterionErrorH\000\022l\n\025collectio" +
+      "n_size_error\030\037 \001(\0162K.google.ads.googlead" +
+      "s.v0.errors.CollectionSizeErrorEnum.Coll" +
+      "ectionSizeErrorH\000\022\\\n\017criterion_error\030  \001" +
+      "(\0162A.google.ads.googleads.v0.errors.Crit" +
+      "erionErrorEnum.CriterionErrorH\000\022Y\n\016custo" +
+      "mer_error\030Z \001(\0162?.google.ads.googleads.v" +
+      "0.errors.CustomerErrorEnum.CustomerError" +
+      "H\000\022M\n\ndate_error\030! \001(\01627.google.ads.goog" +
+      "leads.v0.errors.DateErrorEnum.DateErrorH" +
+      "\000\022]\n\020date_range_error\030\" \001(\0162A.google.ads" +
+      ".googleads.v0.errors.DateRangeErrorEnum." +
+      "DateRangeErrorH\000\022Y\n\016distinct_error\030# \001(\016" +
+      "2?.google.ads.googleads.v0.errors.Distin" +
+      "ctErrorEnum.DistinctErrorH\000\022\205\001\n\036feed_att" +
+      "ribute_reference_error\030$ \001(\0162[.google.ad" +
+      "s.googleads.v0.errors.FeedAttributeRefer" +
+      "enceErrorEnum.FeedAttributeReferenceErro" +
+      "rH\000\022Y\n\016function_error\030% \001(\0162?.google.ads" +
+      ".googleads.v0.errors.FunctionErrorEnum.F" +
+      "unctionErrorH\000\022o\n\026function_parsing_error" +
+      "\030& \001(\0162M.google.ads.googleads.v0.errors." +
+      "FunctionParsingErrorEnum.FunctionParsing" +
+      "ErrorH\000\022G\n\010id_error\030\' \001(\01623.google.ads.g" +
+      "oogleads.v0.errors.IdErrorEnum.IdErrorH\000" +
+      "\022P\n\013image_error\030( \001(\01629.google.ads.googl" +
+      "eads.v0.errors.ImageErrorEnum.ImageError" +
+      "H\000\022c\n\022media_bundle_error\030* \001(\0162E.google." +
+      "ads.googleads.v0.errors.MediaBundleError" +
+      "Enum.MediaBundleErrorH\000\022]\n\020media_file_er" +
+      "ror\030V \001(\0162A.google.ads.googleads.v0.erro" +
+      "rs.MediaFileErrorEnum.MediaFileErrorH\000\022_" +
+      "\n\020multiplier_error\030, \001(\0162C.google.ads.go" +
+      "ogleads.v0.errors.MultiplierErrorEnum.Mu" +
+      "ltiplierErrorH\000\022|\n\033new_resource_creation" +
+      "_error\030- \001(\0162U.google.ads.googleads.v0.e" +
+      "rrors.NewResourceCreationErrorEnum.NewRe" +
+      "sourceCreationErrorH\000\022Z\n\017not_empty_error" +
+      "\030. \001(\0162?.google.ads.googleads.v0.errors." +
+      "NotEmptyErrorEnum.NotEmptyErrorH\000\022M\n\nnul" +
+      "l_error\030/ \001(\01627.google.ads.googleads.v0." +
+      "errors.NullErrorEnum.NullErrorH\000\022Y\n\016oper" +
+      "ator_error\0300 \001(\0162?.google.ads.googleads." +
+      "v0.errors.OperatorErrorEnum.OperatorErro" +
+      "rH\000\022P\n\013range_error\0301 \001(\01629.google.ads.go" +
+      "ogleads.v0.errors.RangeErrorEnum.RangeEr" +
+      "rorH\000\022k\n\024recommendation_error\030: \001(\0162K.go" +
+      "ogle.ads.googleads.v0.errors.Recommendat" +
+      "ionErrorEnum.RecommendationErrorH\000\022`\n\021re" +
+      "gion_code_error\0303 \001(\0162C.google.ads.googl" +
+      "eads.v0.errors.RegionCodeErrorEnum.Regio" +
+      "nCodeErrorH\000\022V\n\rsetting_error\0304 \001(\0162=.go" +
+      "ogle.ads.googleads.v0.errors.SettingErro" +
+      "rEnum.SettingErrorH\000\022f\n\023string_format_er" +
+      "ror\0305 \001(\0162G.google.ads.googleads.v0.erro" +
+      "rs.StringFormatErrorEnum.StringFormatErr" +
+      "orH\000\022f\n\023string_length_error\0306 \001(\0162G.goog" +
+      "le.ads.googleads.v0.errors.StringLengthE" +
+      "rrorEnum.StringLengthErrorH\000\022\202\001\n\035operati" +
+      "on_access_denied_error\0307 \001(\0162Y.google.ad" +
+      "s.googleads.v0.errors.OperationAccessDen" +
+      "iedErrorEnum.OperationAccessDeniedErrorH" +
+      "\000\022\177\n\034resource_access_denied_error\0308 \001(\0162" +
+      "W.google.ads.googleads.v0.errors.Resourc" +
+      "eAccessDeniedErrorEnum.ResourceAccessDen" +
+      "iedErrorH\000\022\222\001\n#resource_count_limit_exce" +
+      "eded_error\0309 \001(\0162c.google.ads.googleads." +
+      "v0.errors.ResourceCountLimitExceededErro" +
+      "rEnum.ResourceCountLimitExceededErrorH\000\022" +
+      "z\n\033ad_group_bid_modifier_error\030; \001(\0162S.g" +
+      "oogle.ads.googleads.v0.errors.AdGroupBid" +
+      "ModifierErrorEnum.AdGroupBidModifierErro" +
+      "rH\000\022V\n\rcontext_error\030< \001(\0162=.google.ads." +
+      "googleads.v0.errors.ContextErrorEnum.Con" +
+      "textErrorH\000\022P\n\013field_error\030= \001(\01629.googl" +
+      "e.ads.googleads.v0.errors.FieldErrorEnum" +
+      ".FieldErrorH\000\022]\n\020shared_set_error\030> \001(\0162" +
+      "A.google.ads.googleads.v0.errors.SharedS" +
+      "etErrorEnum.SharedSetErrorH\000\022o\n\026shared_c" +
+      "riterion_error\030? \001(\0162M.google.ads.google" +
+      "ads.v0.errors.SharedCriterionErrorEnum.S" +
+      "haredCriterionErrorH\000\022v\n\031campaign_shared" +
+      "_set_error\030@ \001(\0162Q.google.ads.googleads." +
+      "v0.errors.CampaignSharedSetErrorEnum.Cam" +
+      "paignSharedSetErrorH\000\022r\n\027conversion_acti" +
+      "on_error\030A \001(\0162O.google.ads.googleads.v0" +
+      ".errors.ConversionActionErrorEnum.Conver" +
+      "sionActionErrorH\000\022S\n\014header_error\030B \001(\0162" +
+      ";.google.ads.googleads.v0.errors.HeaderE" +
+      "rrorEnum.HeaderErrorH\000\022Y\n\016database_error" +
+      "\030C \001(\0162?.google.ads.googleads.v0.errors." +
+      "DatabaseErrorEnum.DatabaseErrorH\000\022i\n\024pol" +
+      "icy_finding_error\030D \001(\0162I.google.ads.goo" +
+      "gleads.v0.errors.PolicyFindingErrorEnum." +
+      "PolicyFindingErrorH\000\022M\n\nenum_error\030F \001(\016" +
+      "27.google.ads.googleads.v0.errors.EnumEr" +
+      "rorEnum.EnumErrorH\000\022c\n\022keyword_plan_erro" +
+      "r\030G \001(\0162E.google.ads.googleads.v0.errors" +
+      ".KeywordPlanErrorEnum.KeywordPlanErrorH\000" +
+      "\022|\n\033keyword_plan_campaign_error\030H \001(\0162U." +
+      "google.ads.googleads.v0.errors.KeywordPl" +
+      "anCampaignErrorEnum.KeywordPlanCampaignE" +
+      "rrorH\000\022\222\001\n#keyword_plan_negative_keyword" +
+      "_error\030I \001(\0162c.google.ads.googleads.v0.e" +
+      "rrors.KeywordPlanNegativeKeywordErrorEnu" +
+      "m.KeywordPlanNegativeKeywordErrorH\000\022z\n\033k" +
+      "eyword_plan_ad_group_error\030J \001(\0162S.googl" +
+      "e.ads.googleads.v0.errors.KeywordPlanAdG" +
+      "roupErrorEnum.KeywordPlanAdGroupErrorH\000\022" +
+      "y\n\032keyword_plan_keyword_error\030K \001(\0162S.go" +
+      "ogle.ads.googleads.v0.errors.KeywordPlan" +
+      "KeywordErrorEnum.KeywordPlanKeywordError" +
+      "H\000\022p\n\027keyword_plan_idea_error\030L \001(\0162M.go" +
+      "ogle.ads.googleads.v0.errors.KeywordPlan" +
+      "IdeaErrorEnum.KeywordPlanIdeaErrorH\000\022\202\001\n" +
+      "\035account_budget_proposal_error\030M \001(\0162Y.g" +
+      "oogle.ads.googleads.v0.errors.AccountBud" +
+      "getProposalErrorEnum.AccountBudgetPropos" +
+      "alErrorH\000\022Z\n\017user_list_error\030N \001(\0162?.goo" +
+      "gle.ads.googleads.v0.errors.UserListErro" +
+      "rEnum.UserListErrorH\000\022f\n\023change_status_e" +
+      "rror\030O \001(\0162G.google.ads.googleads.v0.err" +
+      "ors.ChangeStatusErrorEnum.ChangeStatusEr" +
+      "rorH\000\022M\n\nfeed_error\030P \001(\01627.google.ads.g" +
+      "oogleads.v0.errors.FeedErrorEnum.FeedErr" +
+      "orH\000\022\225\001\n$geo_target_constant_suggestion_" +
+      "error\030Q \001(\0162e.google.ads.googleads.v0.er" +
+      "rors.GeoTargetConstantSuggestionErrorEnu" +
+      "m.GeoTargetConstantSuggestionErrorH\000\022Z\n\017" +
+      "feed_item_error\030S \001(\0162?.google.ads.googl" +
+      "eads.v0.errors.FeedItemErrorEnum.FeedIte" +
+      "mErrorH\000\022f\n\023billing_setup_error\030W \001(\0162G." +
+      "google.ads.googleads.v0.errors.BillingSe" +
+      "tupErrorEnum.BillingSetupErrorH\000\022y\n\032cust" +
+      "omer_client_link_error\030X \001(\0162S.google.ad" +
+      "s.googleads.v0.errors.CustomerClientLink" +
+      "ErrorEnum.CustomerClientLinkErrorH\000\022|\n\033c" +
+      "ustomer_manager_link_error\030[ \001(\0162U.googl" +
+      "e.ads.googleads.v0.errors.CustomerManage" +
+      "rLinkErrorEnum.CustomerManagerLinkErrorH" +
+      "\000\022c\n\022feed_mapping_error\030\\ \001(\0162E.google.a" +
+      "ds.googleads.v0.errors.FeedMappingErrorE" +
+      "num.FeedMappingErrorH\000\022f\n\023customer_feed_" +
+      "error\030] \001(\0162G.google.ads.googleads.v0.er" +
+      "rors.CustomerFeedErrorEnum.CustomerFeedE" +
+      "rrorH\000\022d\n\023ad_group_feed_error\030^ \001(\0162E.go" +
+      "ogle.ads.googleads.v0.errors.AdGroupFeed" +
+      "ErrorEnum.AdGroupFeedErrorH\000\022f\n\023campaign" +
+      "_feed_error\030` \001(\0162G.google.ads.googleads" +
+      ".v0.errors.CampaignFeedErrorEnum.Campaig" +
+      "nFeedErrorH\000\022c\n\022ad_parameter_error\030e \001(\016" +
+      "2E.google.ads.googleads.v0.errors.AdPara" +
+      "meterErrorEnum.AdParameterErrorH\000\022y\n\032fee" +
+      "d_item_validation_error\030f \001(\0162S.google.a" +
+      "ds.googleads.v0.errors.FeedItemValidatio" +
+      "nErrorEnum.FeedItemValidationErrorH\000\022r\n\027" +
+      "extension_setting_error\030g \001(\0162O.google.a" +
+      "ds.googleads.v0.errors.ExtensionSettingE" +
+      "rrorEnum.ExtensionSettingErrorH\000\022o\n\026poli" +
+      "cy_violation_error\030i \001(\0162M.google.ads.go" +
+      "ogleads.v0.errors.PolicyViolationErrorEn" +
+      "um.PolicyViolationErrorH\000B\014\n\nerror_code\"" +
+      "\300\001\n\rErrorLocation\022[\n\023field_path_elements" +
+      "\030\002 \003(\0132>.google.ads.googleads.v0.errors." +
+      "ErrorLocation.FieldPathElement\032R\n\020FieldP" +
+      "athElement\022\022\n\nfield_name\030\001 \001(\t\022*\n\005index\030" +
+      "\002 \001(\0132\033.google.protobuf.Int64Value\"\336\001\n\014E" +
+      "rrorDetails\022\036\n\026unpublished_error_code\030\001 " +
+      "\001(\t\022X\n\030policy_violation_details\030\002 \001(\01326." +
+      "google.ads.googleads.v0.errors.PolicyVio" +
+      "lationDetails\022T\n\026policy_finding_details\030" +
+      "\003 \001(\01324.google.ads.googleads.v0.errors.P" +
+      "olicyFindingDetails\"\263\001\n\026PolicyViolationD" +
+      "etails\022#\n\033external_policy_description\030\002 " +
+      "\001(\t\022?\n\003key\030\004 \001(\01322.google.ads.googleads." +
+      "v0.common.PolicyViolationKey\022\034\n\024external" +
+      "_policy_name\030\005 \001(\t\022\025\n\ris_exemptible\030\006 \001(" +
+      "\010\"f\n\024PolicyFindingDetails\022N\n\024policy_topi" +
+      "c_entries\030\001 \003(\01320.google.ads.googleads.v" +
+      "0.common.PolicyTopicEntryB\346\001\n\"com.google" +
+      ".ads.googleads.v0.errorsB\013ErrorsProtoP\001Z" +
+      "Dgoogle.golang.org/genproto/googleapis/a" +
+      "ds/googleads/v0/errors;errors\242\002\003GAA\252\002\036Go" +
+      "ogle.Ads.GoogleAds.V0.Errors\312\002\036Google\\Ad" +
+      "s\\GoogleAds\\V0\\Errors\352\002\"Google::Ads::Goo" +
+      "gleAds::V0::Errorsb\006proto3"
     };
     com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
         new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
@@ -444,6 +457,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
           com.google.ads.googleads.v0.errors.AdGroupCriterionErrorProto.getDescriptor(),
           com.google.ads.googleads.v0.errors.AdGroupErrorProto.getDescriptor(),
           com.google.ads.googleads.v0.errors.AdGroupFeedErrorProto.getDescriptor(),
+          com.google.ads.googleads.v0.errors.AdParameterErrorProto.getDescriptor(),
           com.google.ads.googleads.v0.errors.AdSharingErrorProto.getDescriptor(),
           com.google.ads.googleads.v0.errors.AdxErrorProto.getDescriptor(),
           com.google.ads.googleads.v0.errors.AuthenticationErrorProto.getDescriptor(),
@@ -455,7 +469,6 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
           com.google.ads.googleads.v0.errors.CampaignCriterionErrorProto.getDescriptor(),
           com.google.ads.googleads.v0.errors.CampaignErrorProto.getDescriptor(),
           com.google.ads.googleads.v0.errors.CampaignFeedErrorProto.getDescriptor(),
-          com.google.ads.googleads.v0.errors.CampaignGroupErrorProto.getDescriptor(),
           com.google.ads.googleads.v0.errors.CampaignSharedSetErrorProto.getDescriptor(),
           com.google.ads.googleads.v0.errors.ChangeStatusErrorProto.getDescriptor(),
           com.google.ads.googleads.v0.errors.CollectionSizeErrorProto.getDescriptor(),
@@ -471,9 +484,11 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
           com.google.ads.googleads.v0.errors.DateRangeErrorProto.getDescriptor(),
           com.google.ads.googleads.v0.errors.DistinctErrorProto.getDescriptor(),
           com.google.ads.googleads.v0.errors.EnumErrorProto.getDescriptor(),
+          com.google.ads.googleads.v0.errors.ExtensionSettingErrorProto.getDescriptor(),
           com.google.ads.googleads.v0.errors.FeedAttributeReferenceErrorProto.getDescriptor(),
           com.google.ads.googleads.v0.errors.FeedErrorProto.getDescriptor(),
           com.google.ads.googleads.v0.errors.FeedItemErrorProto.getDescriptor(),
+          com.google.ads.googleads.v0.errors.FeedItemValidationErrorProto.getDescriptor(),
           com.google.ads.googleads.v0.errors.FeedMappingErrorProto.getDescriptor(),
           com.google.ads.googleads.v0.errors.FieldErrorProto.getDescriptor(),
           com.google.ads.googleads.v0.errors.FieldMaskErrorProto.getDescriptor(),
@@ -501,6 +516,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
           com.google.ads.googleads.v0.errors.OperationAccessDeniedErrorProto.getDescriptor(),
           com.google.ads.googleads.v0.errors.OperatorErrorProto.getDescriptor(),
           com.google.ads.googleads.v0.errors.PolicyFindingErrorProto.getDescriptor(),
+          com.google.ads.googleads.v0.errors.PolicyViolationErrorProto.getDescriptor(),
           com.google.ads.googleads.v0.errors.QueryErrorProto.getDescriptor(),
           com.google.ads.googleads.v0.errors.QuotaErrorProto.getDescriptor(),
           com.google.ads.googleads.v0.errors.RangeErrorProto.getDescriptor(),
@@ -535,13 +551,13 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
     internal_static_google_ads_googleads_v0_errors_ErrorCode_fieldAccessorTable = new
       com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
         internal_static_google_ads_googleads_v0_errors_ErrorCode_descriptor,
-        new java.lang.String[] { "RequestError", "BiddingStrategyError", "UrlFieldError", "ListOperationError", "QueryError", "MutateError", "FieldMaskError", "AuthorizationError", "InternalError", "QuotaError", "AdError", "AdGroupError", "CampaignBudgetError", "CampaignError", "AuthenticationError", "AdGroupCriterionError", "AdCustomizerError", "AdGroupAdError", "AdSharingError", "AdxError", "BiddingError", "CampaignCriterionError", "CollectionSizeError", "CriterionError", "CustomerError", "DateError", "DateRangeError", "DistinctError", "FeedAttributeReferenceError", "FunctionError", "FunctionParsingError", "IdError", "ImageError", "MediaBundleError", "MediaFileError", "MultiplierError", "NewResourceCreationError", "NotEmptyError", "NullError", "OperatorError", "RangeError", "RecommendationError", "RegionCodeError", "SettingError", "StringFormatError", "StringLengthError", "OperationAccessDeniedError", "ResourceAccessDeniedError", "ResourceCountLimitExceededError", "AdGroupBidModifierError", "ContextError", "FieldError", "SharedSetError", "SharedCriterionError", "CampaignSharedSetError", "ConversionActionError", "HeaderError", "DatabaseError", "PolicyFindingError", "CampaignGroupError", "EnumError", "KeywordPlanError", "KeywordPlanCampaignError", "KeywordPlanNegativeKeywordError", "KeywordPlanAdGroupError", "KeywordPlanKeywordError", "KeywordPlanIdeaError", "AccountBudgetProposalError", "UserListError", "ChangeStatusError", "FeedError", "GeoTargetConstantSuggestionError", "FeedItemError", "BillingSetupError", "CustomerClientLinkError", "CustomerManagerLinkError", "FeedMappingError", "CustomerFeedError", "AdGroupFeedError", "CampaignFeedError", "ErrorCode", });
+        new java.lang.String[] { "RequestError", "BiddingStrategyError", "UrlFieldError", "ListOperationError", "QueryError", "MutateError", "FieldMaskError", "AuthorizationError", "InternalError", "QuotaError", "AdError", "AdGroupError", "CampaignBudgetError", "CampaignError", "AuthenticationError", "AdGroupCriterionError", "AdCustomizerError", "AdGroupAdError", "AdSharingError", "AdxError", "BiddingError", "CampaignCriterionError", "CollectionSizeError", "CriterionError", "CustomerError", "DateError", "DateRangeError", "DistinctError", "FeedAttributeReferenceError", "FunctionError", "FunctionParsingError", "IdError", "ImageError", "MediaBundleError", "MediaFileError", "MultiplierError", "NewResourceCreationError", "NotEmptyError", "NullError", "OperatorError", "RangeError", "RecommendationError", "RegionCodeError", "SettingError", "StringFormatError", "StringLengthError", "OperationAccessDeniedError", "ResourceAccessDeniedError", "ResourceCountLimitExceededError", "AdGroupBidModifierError", "ContextError", "FieldError", "SharedSetError", "SharedCriterionError", "CampaignSharedSetError", "ConversionActionError", "HeaderError", "DatabaseError", "PolicyFindingError", "EnumError", "KeywordPlanError", "KeywordPlanCampaignError", "KeywordPlanNegativeKeywordError", "KeywordPlanAdGroupError", "KeywordPlanKeywordError", "KeywordPlanIdeaError", "AccountBudgetProposalError", "UserListError", "ChangeStatusError", "FeedError", "GeoTargetConstantSuggestionError", "FeedItemError", "BillingSetupError", "CustomerClientLinkError", "CustomerManagerLinkError", "FeedMappingError", "CustomerFeedError", "AdGroupFeedError", "CampaignFeedError", "AdParameterError", "FeedItemValidationError", "ExtensionSettingError", "PolicyViolationError", "ErrorCode", });
     internal_static_google_ads_googleads_v0_errors_ErrorLocation_descriptor =
       getDescriptor().getMessageTypes().get(3);
     internal_static_google_ads_googleads_v0_errors_ErrorLocation_fieldAccessorTable = new
       com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
         internal_static_google_ads_googleads_v0_errors_ErrorLocation_descriptor,
-        new java.lang.String[] { "OperationIndex", "FieldPathElements", });
+        new java.lang.String[] { "FieldPathElements", });
     internal_static_google_ads_googleads_v0_errors_ErrorLocation_FieldPathElement_descriptor =
       internal_static_google_ads_googleads_v0_errors_ErrorLocation_descriptor.getNestedTypes().get(0);
     internal_static_google_ads_googleads_v0_errors_ErrorLocation_FieldPathElement_fieldAccessorTable = new
@@ -576,6 +592,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
     com.google.ads.googleads.v0.errors.AdGroupCriterionErrorProto.getDescriptor();
     com.google.ads.googleads.v0.errors.AdGroupErrorProto.getDescriptor();
     com.google.ads.googleads.v0.errors.AdGroupFeedErrorProto.getDescriptor();
+    com.google.ads.googleads.v0.errors.AdParameterErrorProto.getDescriptor();
     com.google.ads.googleads.v0.errors.AdSharingErrorProto.getDescriptor();
     com.google.ads.googleads.v0.errors.AdxErrorProto.getDescriptor();
     com.google.ads.googleads.v0.errors.AuthenticationErrorProto.getDescriptor();
@@ -587,7 +604,6 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
     com.google.ads.googleads.v0.errors.CampaignCriterionErrorProto.getDescriptor();
     com.google.ads.googleads.v0.errors.CampaignErrorProto.getDescriptor();
     com.google.ads.googleads.v0.errors.CampaignFeedErrorProto.getDescriptor();
-    com.google.ads.googleads.v0.errors.CampaignGroupErrorProto.getDescriptor();
     com.google.ads.googleads.v0.errors.CampaignSharedSetErrorProto.getDescriptor();
     com.google.ads.googleads.v0.errors.ChangeStatusErrorProto.getDescriptor();
     com.google.ads.googleads.v0.errors.CollectionSizeErrorProto.getDescriptor();
@@ -603,9 +619,11 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
     com.google.ads.googleads.v0.errors.DateRangeErrorProto.getDescriptor();
     com.google.ads.googleads.v0.errors.DistinctErrorProto.getDescriptor();
     com.google.ads.googleads.v0.errors.EnumErrorProto.getDescriptor();
+    com.google.ads.googleads.v0.errors.ExtensionSettingErrorProto.getDescriptor();
     com.google.ads.googleads.v0.errors.FeedAttributeReferenceErrorProto.getDescriptor();
     com.google.ads.googleads.v0.errors.FeedErrorProto.getDescriptor();
     com.google.ads.googleads.v0.errors.FeedItemErrorProto.getDescriptor();
+    com.google.ads.googleads.v0.errors.FeedItemValidationErrorProto.getDescriptor();
     com.google.ads.googleads.v0.errors.FeedMappingErrorProto.getDescriptor();
     com.google.ads.googleads.v0.errors.FieldErrorProto.getDescriptor();
     com.google.ads.googleads.v0.errors.FieldMaskErrorProto.getDescriptor();
@@ -633,6 +651,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
     com.google.ads.googleads.v0.errors.OperationAccessDeniedErrorProto.getDescriptor();
     com.google.ads.googleads.v0.errors.OperatorErrorProto.getDescriptor();
     com.google.ads.googleads.v0.errors.PolicyFindingErrorProto.getDescriptor();
+    com.google.ads.googleads.v0.errors.PolicyViolationErrorProto.getDescriptor();
     com.google.ads.googleads.v0.errors.QueryErrorProto.getDescriptor();
     com.google.ads.googleads.v0.errors.QuotaErrorProto.getDescriptor();
     com.google.ads.googleads.v0.errors.RangeErrorProto.getDescriptor();
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ExtensionSettingErrorEnum.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ExtensionSettingErrorEnum.java
new file mode 100644
index 0000000000..88dba14fb1
--- /dev/null
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ExtensionSettingErrorEnum.java
@@ -0,0 +1,1648 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/ads/googleads/v0/errors/extension_setting_error.proto
+
+package com.google.ads.googleads.v0.errors;
+
+/**
+ * 
+ * Container for enum describing validation errors of extension settings.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.errors.ExtensionSettingErrorEnum} + */ +public final class ExtensionSettingErrorEnum extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.errors.ExtensionSettingErrorEnum) + ExtensionSettingErrorEnumOrBuilder { +private static final long serialVersionUID = 0L; + // Use ExtensionSettingErrorEnum.newBuilder() to construct. + private ExtensionSettingErrorEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExtensionSettingErrorEnum() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExtensionSettingErrorEnum( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.errors.ExtensionSettingErrorProto.internal_static_google_ads_googleads_v0_errors_ExtensionSettingErrorEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.errors.ExtensionSettingErrorProto.internal_static_google_ads_googleads_v0_errors_ExtensionSettingErrorEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum.class, com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum.Builder.class); + } + + /** + *
+   * Enum describing possible extension setting errors.
+   * 
+ * + * Protobuf enum {@code google.ads.googleads.v0.errors.ExtensionSettingErrorEnum.ExtensionSettingError} + */ + public enum ExtensionSettingError + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Enum unspecified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + *
+     * The received error code is not known in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + UNKNOWN(1), + /** + *
+     * A platform restriction was provided without input extensions or existing
+     * extensions.
+     * 
+ * + * EXTENSIONS_REQUIRED = 2; + */ + EXTENSIONS_REQUIRED(2), + /** + *
+     * The provided feed type does not correspond to the provided extensions.
+     * 
+ * + * FEED_TYPE_EXTENSION_TYPE_MISMATCH = 3; + */ + FEED_TYPE_EXTENSION_TYPE_MISMATCH(3), + /** + *
+     * The provided feed type cannot be used.
+     * 
+ * + * INVALID_FEED_TYPE = 4; + */ + INVALID_FEED_TYPE(4), + /** + *
+     * The provided feed type cannot be used at the customer level.
+     * 
+ * + * INVALID_FEED_TYPE_FOR_CUSTOMER_EXTENSION_SETTING = 5; + */ + INVALID_FEED_TYPE_FOR_CUSTOMER_EXTENSION_SETTING(5), + /** + *
+     * Cannot change a feed item field on a CREATE operation.
+     * 
+ * + * CANNOT_CHANGE_FEED_ITEM_ON_CREATE = 6; + */ + CANNOT_CHANGE_FEED_ITEM_ON_CREATE(6), + /** + *
+     * Cannot update an extension that is not already in this setting.
+     * 
+ * + * CANNOT_UPDATE_NEWLY_CREATED_EXTENSION = 7; + */ + CANNOT_UPDATE_NEWLY_CREATED_EXTENSION(7), + /** + *
+     * There is no existing AdGroupExtensionSetting for this type.
+     * 
+ * + * NO_EXISTING_AD_GROUP_EXTENSION_SETTING_FOR_TYPE = 8; + */ + NO_EXISTING_AD_GROUP_EXTENSION_SETTING_FOR_TYPE(8), + /** + *
+     * There is no existing CampaignExtensionSetting for this type.
+     * 
+ * + * NO_EXISTING_CAMPAIGN_EXTENSION_SETTING_FOR_TYPE = 9; + */ + NO_EXISTING_CAMPAIGN_EXTENSION_SETTING_FOR_TYPE(9), + /** + *
+     * There is no existing CustomerExtensionSetting for this type.
+     * 
+ * + * NO_EXISTING_CUSTOMER_EXTENSION_SETTING_FOR_TYPE = 10; + */ + NO_EXISTING_CUSTOMER_EXTENSION_SETTING_FOR_TYPE(10), + /** + *
+     * The AdGroupExtensionSetting already exists. UPDATE should be used to
+     * modify the existing AdGroupExtensionSetting.
+     * 
+ * + * AD_GROUP_EXTENSION_SETTING_ALREADY_EXISTS = 11; + */ + AD_GROUP_EXTENSION_SETTING_ALREADY_EXISTS(11), + /** + *
+     * The CampaignExtensionSetting already exists. UPDATE should be used to
+     * modify the existing CampaignExtensionSetting.
+     * 
+ * + * CAMPAIGN_EXTENSION_SETTING_ALREADY_EXISTS = 12; + */ + CAMPAIGN_EXTENSION_SETTING_ALREADY_EXISTS(12), + /** + *
+     * The CustomerExtensionSetting already exists. UPDATE should be used to
+     * modify the existing CustomerExtensionSetting.
+     * 
+ * + * CUSTOMER_EXTENSION_SETTING_ALREADY_EXISTS = 13; + */ + CUSTOMER_EXTENSION_SETTING_ALREADY_EXISTS(13), + /** + *
+     * An active ad group feed already exists for this place holder type.
+     * 
+ * + * AD_GROUP_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 14; + */ + AD_GROUP_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE(14), + /** + *
+     * An active campaign feed already exists for this place holder type.
+     * 
+ * + * CAMPAIGN_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 15; + */ + CAMPAIGN_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE(15), + /** + *
+     * An active customer feed already exists for this place holder type.
+     * 
+ * + * CUSTOMER_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 16; + */ + CUSTOMER_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE(16), + /** + *
+     * Value is not within the accepted range.
+     * 
+ * + * VALUE_OUT_OF_RANGE = 17; + */ + VALUE_OUT_OF_RANGE(17), + /** + *
+     * Cannot simultaneously set specified field with final urls.
+     * 
+ * + * CANNOT_SET_FIELD_WITH_FINAL_URLS = 18; + */ + CANNOT_SET_FIELD_WITH_FINAL_URLS(18), + /** + *
+     * Must set field with final urls.
+     * 
+ * + * FINAL_URLS_NOT_SET = 19; + */ + FINAL_URLS_NOT_SET(19), + /** + *
+     * Phone number for a call extension is invalid.
+     * 
+ * + * INVALID_PHONE_NUMBER = 20; + */ + INVALID_PHONE_NUMBER(20), + /** + *
+     * Phone number for a call extension is not supported for the given country
+     * code.
+     * 
+ * + * PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY = 21; + */ + PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY(21), + /** + *
+     * A carrier specific number in short format is not allowed for call
+     * extensions.
+     * 
+ * + * CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED = 22; + */ + CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED(22), + /** + *
+     * Premium rate numbers are not allowed for call extensions.
+     * 
+ * + * PREMIUM_RATE_NUMBER_NOT_ALLOWED = 23; + */ + PREMIUM_RATE_NUMBER_NOT_ALLOWED(23), + /** + *
+     * Phone number type for a call extension is not allowed.
+     * 
+ * + * DISALLOWED_NUMBER_TYPE = 24; + */ + DISALLOWED_NUMBER_TYPE(24), + /** + *
+     * Phone number for a call extension does not meet domestic format
+     * requirements.
+     * 
+ * + * INVALID_DOMESTIC_PHONE_NUMBER_FORMAT = 25; + */ + INVALID_DOMESTIC_PHONE_NUMBER_FORMAT(25), + /** + *
+     * Vanity phone numbers (i.e. those including letters) are not allowed for
+     * call extensions.
+     * 
+ * + * VANITY_PHONE_NUMBER_NOT_ALLOWED = 26; + */ + VANITY_PHONE_NUMBER_NOT_ALLOWED(26), + /** + *
+     * Country code provided for a call extension is invalid.
+     * 
+ * + * INVALID_COUNTRY_CODE = 27; + */ + INVALID_COUNTRY_CODE(27), + /** + *
+     * Call conversion type id provided for a call extension is invalid.
+     * 
+ * + * INVALID_CALL_CONVERSION_TYPE_ID = 28; + */ + INVALID_CALL_CONVERSION_TYPE_ID(28), + /** + *
+     * For a call extension, the customer is not whitelisted for call tracking.
+     * 
+ * + * CUSTOMER_NOT_WHITELISTED_FOR_CALLTRACKING = 29; + */ + CUSTOMER_NOT_WHITELISTED_FOR_CALLTRACKING(29), + /** + *
+     * Call tracking is not supported for the given country for a call
+     * extension.
+     * 
+ * + * CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY = 30; + */ + CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY(30), + /** + *
+     * App id provided for an app extension is invalid.
+     * 
+ * + * INVALID_APP_ID = 31; + */ + INVALID_APP_ID(31), + /** + *
+     * Quotation marks present in the review text for a review extension.
+     * 
+ * + * QUOTES_IN_REVIEW_EXTENSION_SNIPPET = 32; + */ + QUOTES_IN_REVIEW_EXTENSION_SNIPPET(32), + /** + *
+     * Hyphen character present in the review text for a review extension.
+     * 
+ * + * HYPHENS_IN_REVIEW_EXTENSION_SNIPPET = 33; + */ + HYPHENS_IN_REVIEW_EXTENSION_SNIPPET(33), + /** + *
+     * A blacklisted review source name or url was provided for a review
+     * extension.
+     * 
+ * + * REVIEW_EXTENSION_SOURCE_NOT_ELIGIBLE = 34; + */ + REVIEW_EXTENSION_SOURCE_NOT_ELIGIBLE(34), + /** + *
+     * Review source name should not be found in the review text.
+     * 
+ * + * SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT = 35; + */ + SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT(35), + /** + *
+     * Field must be set.
+     * 
+ * + * MISSING_FIELD = 36; + */ + MISSING_FIELD(36), + /** + *
+     * Inconsistent currency codes.
+     * 
+ * + * INCONSISTENT_CURRENCY_CODES = 37; + */ + INCONSISTENT_CURRENCY_CODES(37), + /** + *
+     * Price extension cannot have duplicated headers.
+     * 
+ * + * PRICE_EXTENSION_HAS_DUPLICATED_HEADERS = 38; + */ + PRICE_EXTENSION_HAS_DUPLICATED_HEADERS(38), + /** + *
+     * Price item cannot have duplicated header and description.
+     * 
+ * + * PRICE_ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION = 39; + */ + PRICE_ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION(39), + /** + *
+     * Price extension has too few items
+     * 
+ * + * PRICE_EXTENSION_HAS_TOO_FEW_ITEMS = 40; + */ + PRICE_EXTENSION_HAS_TOO_FEW_ITEMS(40), + /** + *
+     * Price extension has too many items
+     * 
+ * + * PRICE_EXTENSION_HAS_TOO_MANY_ITEMS = 41; + */ + PRICE_EXTENSION_HAS_TOO_MANY_ITEMS(41), + /** + *
+     * The input value is not currently supported.
+     * 
+ * + * UNSUPPORTED_VALUE = 42; + */ + UNSUPPORTED_VALUE(42), + /** + *
+     * Unknown or unsupported device preference.
+     * 
+ * + * INVALID_DEVICE_PREFERENCE = 43; + */ + INVALID_DEVICE_PREFERENCE(43), + /** + *
+     * Invalid feed item schedule end time (i.e., endHour = 24 and
+     * endMinute != 0).
+     * 
+ * + * INVALID_SCHEDULE_END = 45; + */ + INVALID_SCHEDULE_END(45), + /** + *
+     * Date time zone does not match the account's time zone.
+     * 
+ * + * DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE = 47; + */ + DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE(47), + /** + *
+     * Overlapping feed item schedule times (e.g., 7-10AM and 8-11AM) are not
+     * allowed.
+     * 
+ * + * OVERLAPPING_SCHEDULES_NOT_ALLOWED = 48; + */ + OVERLAPPING_SCHEDULES_NOT_ALLOWED(48), + /** + *
+     * Feed item schedule end time must be after start time.
+     * 
+ * + * SCHEDULE_END_NOT_AFTER_START = 49; + */ + SCHEDULE_END_NOT_AFTER_START(49), + /** + *
+     * There are too many feed item schedules per day.
+     * 
+ * + * TOO_MANY_SCHEDULES_PER_DAY = 50; + */ + TOO_MANY_SCHEDULES_PER_DAY(50), + /** + *
+     * Cannot edit the same extension feed item more than once in the same
+     * request.
+     * 
+ * + * DUPLICATE_EXTENSION_FEED_ITEM_EDIT = 51; + */ + DUPLICATE_EXTENSION_FEED_ITEM_EDIT(51), + /** + *
+     * Invalid structured snippet header.
+     * 
+ * + * INVALID_SNIPPETS_HEADER = 52; + */ + INVALID_SNIPPETS_HEADER(52), + /** + *
+     * Phone number with call tracking enabled is not supported for the
+     * specified country.
+     * 
+ * + * PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY = 53; + */ + PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY(53), + /** + *
+     * The targeted adgroup must belong to the targeted campaign.
+     * 
+ * + * CAMPAIGN_TARGETING_MISMATCH = 54; + */ + CAMPAIGN_TARGETING_MISMATCH(54), + /** + *
+     * The feed used by the ExtensionSetting is removed and cannot be operated
+     * on. Remove the ExtensionSetting to allow a new one to be created using
+     * an active feed.
+     * 
+ * + * CANNOT_OPERATE_ON_REMOVED_FEED = 55; + */ + CANNOT_OPERATE_ON_REMOVED_FEED(55), + /** + *
+     * The ExtensionFeedItem type is required for this operation.
+     * 
+ * + * EXTENSION_TYPE_REQUIRED = 56; + */ + EXTENSION_TYPE_REQUIRED(56), + /** + *
+     * The matching function that links the extension feed to the customer,
+     * campaign, or ad group is not compatible with the ExtensionSetting
+     * services.
+     * 
+ * + * INCOMPATIBLE_UNDERLYING_MATCHING_FUNCTION = 57; + */ + INCOMPATIBLE_UNDERLYING_MATCHING_FUNCTION(57), + /** + *
+     * Start date must be before end date.
+     * 
+ * + * START_DATE_AFTER_END_DATE = 58; + */ + START_DATE_AFTER_END_DATE(58), + /** + *
+     * Input price is not in a valid format.
+     * 
+ * + * INVALID_PRICE_FORMAT = 59; + */ + INVALID_PRICE_FORMAT(59), + /** + *
+     * The promotion time is invalid.
+     * 
+ * + * PROMOTION_INVALID_TIME = 60; + */ + PROMOTION_INVALID_TIME(60), + /** + *
+     * Cannot set both percent discount and money discount fields.
+     * 
+ * + * PROMOTION_CANNOT_SET_PERCENT_DISCOUNT_AND_MONEY_DISCOUNT = 61; + */ + PROMOTION_CANNOT_SET_PERCENT_DISCOUNT_AND_MONEY_DISCOUNT(61), + /** + *
+     * Cannot set both promotion code and orders over amount fields.
+     * 
+ * + * PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT = 62; + */ + PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT(62), + /** + *
+     * This field has too many decimal places specified.
+     * 
+ * + * TOO_MANY_DECIMAL_PLACES_SPECIFIED = 63; + */ + TOO_MANY_DECIMAL_PLACES_SPECIFIED(63), + /** + *
+     * The language code is not valid.
+     * 
+ * + * INVALID_LANGUAGE_CODE = 64; + */ + INVALID_LANGUAGE_CODE(64), + /** + *
+     * The language is not supported.
+     * 
+ * + * UNSUPPORTED_LANGUAGE = 65; + */ + UNSUPPORTED_LANGUAGE(65), + /** + *
+     * Customer hasn't consented for call recording, which is required for
+     * adding/updating call extensions.
+     * 
+ * + * CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED = 66; + */ + CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED(66), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Enum unspecified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + *
+     * The received error code is not known in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + public static final int UNKNOWN_VALUE = 1; + /** + *
+     * A platform restriction was provided without input extensions or existing
+     * extensions.
+     * 
+ * + * EXTENSIONS_REQUIRED = 2; + */ + public static final int EXTENSIONS_REQUIRED_VALUE = 2; + /** + *
+     * The provided feed type does not correspond to the provided extensions.
+     * 
+ * + * FEED_TYPE_EXTENSION_TYPE_MISMATCH = 3; + */ + public static final int FEED_TYPE_EXTENSION_TYPE_MISMATCH_VALUE = 3; + /** + *
+     * The provided feed type cannot be used.
+     * 
+ * + * INVALID_FEED_TYPE = 4; + */ + public static final int INVALID_FEED_TYPE_VALUE = 4; + /** + *
+     * The provided feed type cannot be used at the customer level.
+     * 
+ * + * INVALID_FEED_TYPE_FOR_CUSTOMER_EXTENSION_SETTING = 5; + */ + public static final int INVALID_FEED_TYPE_FOR_CUSTOMER_EXTENSION_SETTING_VALUE = 5; + /** + *
+     * Cannot change a feed item field on a CREATE operation.
+     * 
+ * + * CANNOT_CHANGE_FEED_ITEM_ON_CREATE = 6; + */ + public static final int CANNOT_CHANGE_FEED_ITEM_ON_CREATE_VALUE = 6; + /** + *
+     * Cannot update an extension that is not already in this setting.
+     * 
+ * + * CANNOT_UPDATE_NEWLY_CREATED_EXTENSION = 7; + */ + public static final int CANNOT_UPDATE_NEWLY_CREATED_EXTENSION_VALUE = 7; + /** + *
+     * There is no existing AdGroupExtensionSetting for this type.
+     * 
+ * + * NO_EXISTING_AD_GROUP_EXTENSION_SETTING_FOR_TYPE = 8; + */ + public static final int NO_EXISTING_AD_GROUP_EXTENSION_SETTING_FOR_TYPE_VALUE = 8; + /** + *
+     * There is no existing CampaignExtensionSetting for this type.
+     * 
+ * + * NO_EXISTING_CAMPAIGN_EXTENSION_SETTING_FOR_TYPE = 9; + */ + public static final int NO_EXISTING_CAMPAIGN_EXTENSION_SETTING_FOR_TYPE_VALUE = 9; + /** + *
+     * There is no existing CustomerExtensionSetting for this type.
+     * 
+ * + * NO_EXISTING_CUSTOMER_EXTENSION_SETTING_FOR_TYPE = 10; + */ + public static final int NO_EXISTING_CUSTOMER_EXTENSION_SETTING_FOR_TYPE_VALUE = 10; + /** + *
+     * The AdGroupExtensionSetting already exists. UPDATE should be used to
+     * modify the existing AdGroupExtensionSetting.
+     * 
+ * + * AD_GROUP_EXTENSION_SETTING_ALREADY_EXISTS = 11; + */ + public static final int AD_GROUP_EXTENSION_SETTING_ALREADY_EXISTS_VALUE = 11; + /** + *
+     * The CampaignExtensionSetting already exists. UPDATE should be used to
+     * modify the existing CampaignExtensionSetting.
+     * 
+ * + * CAMPAIGN_EXTENSION_SETTING_ALREADY_EXISTS = 12; + */ + public static final int CAMPAIGN_EXTENSION_SETTING_ALREADY_EXISTS_VALUE = 12; + /** + *
+     * The CustomerExtensionSetting already exists. UPDATE should be used to
+     * modify the existing CustomerExtensionSetting.
+     * 
+ * + * CUSTOMER_EXTENSION_SETTING_ALREADY_EXISTS = 13; + */ + public static final int CUSTOMER_EXTENSION_SETTING_ALREADY_EXISTS_VALUE = 13; + /** + *
+     * An active ad group feed already exists for this place holder type.
+     * 
+ * + * AD_GROUP_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 14; + */ + public static final int AD_GROUP_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE_VALUE = 14; + /** + *
+     * An active campaign feed already exists for this place holder type.
+     * 
+ * + * CAMPAIGN_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 15; + */ + public static final int CAMPAIGN_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE_VALUE = 15; + /** + *
+     * An active customer feed already exists for this place holder type.
+     * 
+ * + * CUSTOMER_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 16; + */ + public static final int CUSTOMER_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE_VALUE = 16; + /** + *
+     * Value is not within the accepted range.
+     * 
+ * + * VALUE_OUT_OF_RANGE = 17; + */ + public static final int VALUE_OUT_OF_RANGE_VALUE = 17; + /** + *
+     * Cannot simultaneously set specified field with final urls.
+     * 
+ * + * CANNOT_SET_FIELD_WITH_FINAL_URLS = 18; + */ + public static final int CANNOT_SET_FIELD_WITH_FINAL_URLS_VALUE = 18; + /** + *
+     * Must set field with final urls.
+     * 
+ * + * FINAL_URLS_NOT_SET = 19; + */ + public static final int FINAL_URLS_NOT_SET_VALUE = 19; + /** + *
+     * Phone number for a call extension is invalid.
+     * 
+ * + * INVALID_PHONE_NUMBER = 20; + */ + public static final int INVALID_PHONE_NUMBER_VALUE = 20; + /** + *
+     * Phone number for a call extension is not supported for the given country
+     * code.
+     * 
+ * + * PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY = 21; + */ + public static final int PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY_VALUE = 21; + /** + *
+     * A carrier specific number in short format is not allowed for call
+     * extensions.
+     * 
+ * + * CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED = 22; + */ + public static final int CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED_VALUE = 22; + /** + *
+     * Premium rate numbers are not allowed for call extensions.
+     * 
+ * + * PREMIUM_RATE_NUMBER_NOT_ALLOWED = 23; + */ + public static final int PREMIUM_RATE_NUMBER_NOT_ALLOWED_VALUE = 23; + /** + *
+     * Phone number type for a call extension is not allowed.
+     * 
+ * + * DISALLOWED_NUMBER_TYPE = 24; + */ + public static final int DISALLOWED_NUMBER_TYPE_VALUE = 24; + /** + *
+     * Phone number for a call extension does not meet domestic format
+     * requirements.
+     * 
+ * + * INVALID_DOMESTIC_PHONE_NUMBER_FORMAT = 25; + */ + public static final int INVALID_DOMESTIC_PHONE_NUMBER_FORMAT_VALUE = 25; + /** + *
+     * Vanity phone numbers (i.e. those including letters) are not allowed for
+     * call extensions.
+     * 
+ * + * VANITY_PHONE_NUMBER_NOT_ALLOWED = 26; + */ + public static final int VANITY_PHONE_NUMBER_NOT_ALLOWED_VALUE = 26; + /** + *
+     * Country code provided for a call extension is invalid.
+     * 
+ * + * INVALID_COUNTRY_CODE = 27; + */ + public static final int INVALID_COUNTRY_CODE_VALUE = 27; + /** + *
+     * Call conversion type id provided for a call extension is invalid.
+     * 
+ * + * INVALID_CALL_CONVERSION_TYPE_ID = 28; + */ + public static final int INVALID_CALL_CONVERSION_TYPE_ID_VALUE = 28; + /** + *
+     * For a call extension, the customer is not whitelisted for call tracking.
+     * 
+ * + * CUSTOMER_NOT_WHITELISTED_FOR_CALLTRACKING = 29; + */ + public static final int CUSTOMER_NOT_WHITELISTED_FOR_CALLTRACKING_VALUE = 29; + /** + *
+     * Call tracking is not supported for the given country for a call
+     * extension.
+     * 
+ * + * CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY = 30; + */ + public static final int CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY_VALUE = 30; + /** + *
+     * App id provided for an app extension is invalid.
+     * 
+ * + * INVALID_APP_ID = 31; + */ + public static final int INVALID_APP_ID_VALUE = 31; + /** + *
+     * Quotation marks present in the review text for a review extension.
+     * 
+ * + * QUOTES_IN_REVIEW_EXTENSION_SNIPPET = 32; + */ + public static final int QUOTES_IN_REVIEW_EXTENSION_SNIPPET_VALUE = 32; + /** + *
+     * Hyphen character present in the review text for a review extension.
+     * 
+ * + * HYPHENS_IN_REVIEW_EXTENSION_SNIPPET = 33; + */ + public static final int HYPHENS_IN_REVIEW_EXTENSION_SNIPPET_VALUE = 33; + /** + *
+     * A blacklisted review source name or url was provided for a review
+     * extension.
+     * 
+ * + * REVIEW_EXTENSION_SOURCE_NOT_ELIGIBLE = 34; + */ + public static final int REVIEW_EXTENSION_SOURCE_NOT_ELIGIBLE_VALUE = 34; + /** + *
+     * Review source name should not be found in the review text.
+     * 
+ * + * SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT = 35; + */ + public static final int SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT_VALUE = 35; + /** + *
+     * Field must be set.
+     * 
+ * + * MISSING_FIELD = 36; + */ + public static final int MISSING_FIELD_VALUE = 36; + /** + *
+     * Inconsistent currency codes.
+     * 
+ * + * INCONSISTENT_CURRENCY_CODES = 37; + */ + public static final int INCONSISTENT_CURRENCY_CODES_VALUE = 37; + /** + *
+     * Price extension cannot have duplicated headers.
+     * 
+ * + * PRICE_EXTENSION_HAS_DUPLICATED_HEADERS = 38; + */ + public static final int PRICE_EXTENSION_HAS_DUPLICATED_HEADERS_VALUE = 38; + /** + *
+     * Price item cannot have duplicated header and description.
+     * 
+ * + * PRICE_ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION = 39; + */ + public static final int PRICE_ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION_VALUE = 39; + /** + *
+     * Price extension has too few items
+     * 
+ * + * PRICE_EXTENSION_HAS_TOO_FEW_ITEMS = 40; + */ + public static final int PRICE_EXTENSION_HAS_TOO_FEW_ITEMS_VALUE = 40; + /** + *
+     * Price extension has too many items
+     * 
+ * + * PRICE_EXTENSION_HAS_TOO_MANY_ITEMS = 41; + */ + public static final int PRICE_EXTENSION_HAS_TOO_MANY_ITEMS_VALUE = 41; + /** + *
+     * The input value is not currently supported.
+     * 
+ * + * UNSUPPORTED_VALUE = 42; + */ + public static final int UNSUPPORTED_VALUE_VALUE = 42; + /** + *
+     * Unknown or unsupported device preference.
+     * 
+ * + * INVALID_DEVICE_PREFERENCE = 43; + */ + public static final int INVALID_DEVICE_PREFERENCE_VALUE = 43; + /** + *
+     * Invalid feed item schedule end time (i.e., endHour = 24 and
+     * endMinute != 0).
+     * 
+ * + * INVALID_SCHEDULE_END = 45; + */ + public static final int INVALID_SCHEDULE_END_VALUE = 45; + /** + *
+     * Date time zone does not match the account's time zone.
+     * 
+ * + * DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE = 47; + */ + public static final int DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE_VALUE = 47; + /** + *
+     * Overlapping feed item schedule times (e.g., 7-10AM and 8-11AM) are not
+     * allowed.
+     * 
+ * + * OVERLAPPING_SCHEDULES_NOT_ALLOWED = 48; + */ + public static final int OVERLAPPING_SCHEDULES_NOT_ALLOWED_VALUE = 48; + /** + *
+     * Feed item schedule end time must be after start time.
+     * 
+ * + * SCHEDULE_END_NOT_AFTER_START = 49; + */ + public static final int SCHEDULE_END_NOT_AFTER_START_VALUE = 49; + /** + *
+     * There are too many feed item schedules per day.
+     * 
+ * + * TOO_MANY_SCHEDULES_PER_DAY = 50; + */ + public static final int TOO_MANY_SCHEDULES_PER_DAY_VALUE = 50; + /** + *
+     * Cannot edit the same extension feed item more than once in the same
+     * request.
+     * 
+ * + * DUPLICATE_EXTENSION_FEED_ITEM_EDIT = 51; + */ + public static final int DUPLICATE_EXTENSION_FEED_ITEM_EDIT_VALUE = 51; + /** + *
+     * Invalid structured snippet header.
+     * 
+ * + * INVALID_SNIPPETS_HEADER = 52; + */ + public static final int INVALID_SNIPPETS_HEADER_VALUE = 52; + /** + *
+     * Phone number with call tracking enabled is not supported for the
+     * specified country.
+     * 
+ * + * PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY = 53; + */ + public static final int PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY_VALUE = 53; + /** + *
+     * The targeted adgroup must belong to the targeted campaign.
+     * 
+ * + * CAMPAIGN_TARGETING_MISMATCH = 54; + */ + public static final int CAMPAIGN_TARGETING_MISMATCH_VALUE = 54; + /** + *
+     * The feed used by the ExtensionSetting is removed and cannot be operated
+     * on. Remove the ExtensionSetting to allow a new one to be created using
+     * an active feed.
+     * 
+ * + * CANNOT_OPERATE_ON_REMOVED_FEED = 55; + */ + public static final int CANNOT_OPERATE_ON_REMOVED_FEED_VALUE = 55; + /** + *
+     * The ExtensionFeedItem type is required for this operation.
+     * 
+ * + * EXTENSION_TYPE_REQUIRED = 56; + */ + public static final int EXTENSION_TYPE_REQUIRED_VALUE = 56; + /** + *
+     * The matching function that links the extension feed to the customer,
+     * campaign, or ad group is not compatible with the ExtensionSetting
+     * services.
+     * 
+ * + * INCOMPATIBLE_UNDERLYING_MATCHING_FUNCTION = 57; + */ + public static final int INCOMPATIBLE_UNDERLYING_MATCHING_FUNCTION_VALUE = 57; + /** + *
+     * Start date must be before end date.
+     * 
+ * + * START_DATE_AFTER_END_DATE = 58; + */ + public static final int START_DATE_AFTER_END_DATE_VALUE = 58; + /** + *
+     * Input price is not in a valid format.
+     * 
+ * + * INVALID_PRICE_FORMAT = 59; + */ + public static final int INVALID_PRICE_FORMAT_VALUE = 59; + /** + *
+     * The promotion time is invalid.
+     * 
+ * + * PROMOTION_INVALID_TIME = 60; + */ + public static final int PROMOTION_INVALID_TIME_VALUE = 60; + /** + *
+     * Cannot set both percent discount and money discount fields.
+     * 
+ * + * PROMOTION_CANNOT_SET_PERCENT_DISCOUNT_AND_MONEY_DISCOUNT = 61; + */ + public static final int PROMOTION_CANNOT_SET_PERCENT_DISCOUNT_AND_MONEY_DISCOUNT_VALUE = 61; + /** + *
+     * Cannot set both promotion code and orders over amount fields.
+     * 
+ * + * PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT = 62; + */ + public static final int PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT_VALUE = 62; + /** + *
+     * This field has too many decimal places specified.
+     * 
+ * + * TOO_MANY_DECIMAL_PLACES_SPECIFIED = 63; + */ + public static final int TOO_MANY_DECIMAL_PLACES_SPECIFIED_VALUE = 63; + /** + *
+     * The language code is not valid.
+     * 
+ * + * INVALID_LANGUAGE_CODE = 64; + */ + public static final int INVALID_LANGUAGE_CODE_VALUE = 64; + /** + *
+     * The language is not supported.
+     * 
+ * + * UNSUPPORTED_LANGUAGE = 65; + */ + public static final int UNSUPPORTED_LANGUAGE_VALUE = 65; + /** + *
+     * Customer hasn't consented for call recording, which is required for
+     * adding/updating call extensions.
+     * 
+ * + * CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED = 66; + */ + public static final int CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED_VALUE = 66; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ExtensionSettingError valueOf(int value) { + return forNumber(value); + } + + public static ExtensionSettingError forNumber(int value) { + switch (value) { + case 0: return UNSPECIFIED; + case 1: return UNKNOWN; + case 2: return EXTENSIONS_REQUIRED; + case 3: return FEED_TYPE_EXTENSION_TYPE_MISMATCH; + case 4: return INVALID_FEED_TYPE; + case 5: return INVALID_FEED_TYPE_FOR_CUSTOMER_EXTENSION_SETTING; + case 6: return CANNOT_CHANGE_FEED_ITEM_ON_CREATE; + case 7: return CANNOT_UPDATE_NEWLY_CREATED_EXTENSION; + case 8: return NO_EXISTING_AD_GROUP_EXTENSION_SETTING_FOR_TYPE; + case 9: return NO_EXISTING_CAMPAIGN_EXTENSION_SETTING_FOR_TYPE; + case 10: return NO_EXISTING_CUSTOMER_EXTENSION_SETTING_FOR_TYPE; + case 11: return AD_GROUP_EXTENSION_SETTING_ALREADY_EXISTS; + case 12: return CAMPAIGN_EXTENSION_SETTING_ALREADY_EXISTS; + case 13: return CUSTOMER_EXTENSION_SETTING_ALREADY_EXISTS; + case 14: return AD_GROUP_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE; + case 15: return CAMPAIGN_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE; + case 16: return CUSTOMER_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE; + case 17: return VALUE_OUT_OF_RANGE; + case 18: return CANNOT_SET_FIELD_WITH_FINAL_URLS; + case 19: return FINAL_URLS_NOT_SET; + case 20: return INVALID_PHONE_NUMBER; + case 21: return PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY; + case 22: return CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED; + case 23: return PREMIUM_RATE_NUMBER_NOT_ALLOWED; + case 24: return DISALLOWED_NUMBER_TYPE; + case 25: return INVALID_DOMESTIC_PHONE_NUMBER_FORMAT; + case 26: return VANITY_PHONE_NUMBER_NOT_ALLOWED; + case 27: return INVALID_COUNTRY_CODE; + case 28: return INVALID_CALL_CONVERSION_TYPE_ID; + case 29: return CUSTOMER_NOT_WHITELISTED_FOR_CALLTRACKING; + case 30: return CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY; + case 31: return INVALID_APP_ID; + case 32: return QUOTES_IN_REVIEW_EXTENSION_SNIPPET; + case 33: return HYPHENS_IN_REVIEW_EXTENSION_SNIPPET; + case 34: return REVIEW_EXTENSION_SOURCE_NOT_ELIGIBLE; + case 35: return SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT; + case 36: return MISSING_FIELD; + case 37: return INCONSISTENT_CURRENCY_CODES; + case 38: return PRICE_EXTENSION_HAS_DUPLICATED_HEADERS; + case 39: return PRICE_ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION; + case 40: return PRICE_EXTENSION_HAS_TOO_FEW_ITEMS; + case 41: return PRICE_EXTENSION_HAS_TOO_MANY_ITEMS; + case 42: return UNSUPPORTED_VALUE; + case 43: return INVALID_DEVICE_PREFERENCE; + case 45: return INVALID_SCHEDULE_END; + case 47: return DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE; + case 48: return OVERLAPPING_SCHEDULES_NOT_ALLOWED; + case 49: return SCHEDULE_END_NOT_AFTER_START; + case 50: return TOO_MANY_SCHEDULES_PER_DAY; + case 51: return DUPLICATE_EXTENSION_FEED_ITEM_EDIT; + case 52: return INVALID_SNIPPETS_HEADER; + case 53: return PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY; + case 54: return CAMPAIGN_TARGETING_MISMATCH; + case 55: return CANNOT_OPERATE_ON_REMOVED_FEED; + case 56: return EXTENSION_TYPE_REQUIRED; + case 57: return INCOMPATIBLE_UNDERLYING_MATCHING_FUNCTION; + case 58: return START_DATE_AFTER_END_DATE; + case 59: return INVALID_PRICE_FORMAT; + case 60: return PROMOTION_INVALID_TIME; + case 61: return PROMOTION_CANNOT_SET_PERCENT_DISCOUNT_AND_MONEY_DISCOUNT; + case 62: return PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT; + case 63: return TOO_MANY_DECIMAL_PLACES_SPECIFIED; + case 64: return INVALID_LANGUAGE_CODE; + case 65: return UNSUPPORTED_LANGUAGE; + case 66: return CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ExtensionSettingError> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExtensionSettingError findValueByNumber(int number) { + return ExtensionSettingError.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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.ads.googleads.v0.errors.ExtensionSettingErrorEnum.getDescriptor().getEnumTypes().get(0); + } + + private static final ExtensionSettingError[] VALUES = values(); + + public static ExtensionSettingError 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 ExtensionSettingError(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.googleads.v0.errors.ExtensionSettingErrorEnum.ExtensionSettingError) + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.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.ads.googleads.v0.errors.ExtensionSettingErrorEnum)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum other = (com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum 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.ads.googleads.v0.errors.ExtensionSettingErrorEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum 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.ads.googleads.v0.errors.ExtensionSettingErrorEnum parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum 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.ads.googleads.v0.errors.ExtensionSettingErrorEnum parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum 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.ads.googleads.v0.errors.ExtensionSettingErrorEnum 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; + } + /** + *
+   * Container for enum describing validation errors of extension settings.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.errors.ExtensionSettingErrorEnum} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.errors.ExtensionSettingErrorEnum) + com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.errors.ExtensionSettingErrorProto.internal_static_google_ads_googleads_v0_errors_ExtensionSettingErrorEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.errors.ExtensionSettingErrorProto.internal_static_google_ads_googleads_v0_errors_ExtensionSettingErrorEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum.class, com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.errors.ExtensionSettingErrorProto.internal_static_google_ads_googleads_v0_errors_ExtensionSettingErrorEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum getDefaultInstanceForType() { + return com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum build() { + com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum buildPartial() { + com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum result = new com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum) { + return mergeFrom((com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum other) { + if (other == com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.errors.ExtensionSettingErrorEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.errors.ExtensionSettingErrorEnum) + private static final com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum(); + } + + public static com.google.ads.googleads.v0.errors.ExtensionSettingErrorEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExtensionSettingErrorEnum parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExtensionSettingErrorEnum(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.errors.ExtensionSettingErrorEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ExtensionSettingErrorEnumOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ExtensionSettingErrorEnumOrBuilder.java new file mode 100644 index 0000000000..f76434d3f3 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ExtensionSettingErrorEnumOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/errors/extension_setting_error.proto + +package com.google.ads.googleads.v0.errors; + +public interface ExtensionSettingErrorEnumOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.errors.ExtensionSettingErrorEnum) + com.google.protobuf.MessageOrBuilder { +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ExtensionSettingErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ExtensionSettingErrorProto.java new file mode 100644 index 0000000000..8ce9947117 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ExtensionSettingErrorProto.java @@ -0,0 +1,126 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/errors/extension_setting_error.proto + +package com.google.ads.googleads.v0.errors; + +public final class ExtensionSettingErrorProto { + private ExtensionSettingErrorProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_errors_ExtensionSettingErrorEnum_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_errors_ExtensionSettingErrorEnum_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\n:P" + + "ROMOTION_CANNOT_SET_PROMOTION_CODE_AND_O" + + "RDERS_OVER_AMOUNT\020>\022%\n!TOO_MANY_DECIMAL_" + + "PLACES_SPECIFIED\020?\022\031\n\025INVALID_LANGUAGE_C" + + "ODE\020@\022\030\n\024UNSUPPORTED_LANGUAGE\020A\0220\n,CUSTO" + + "MER_CONSENT_FOR_CALL_RECORDING_REQUIRED\020" + + "BB\365\001\n\"com.google.ads.googleads.v0.errors" + + "B\032ExtensionSettingErrorProtoP\001ZDgoogle.g" + + "olang.org/genproto/googleapis/ads/google" + + "ads/v0/errors;errors\242\002\003GAA\252\002\036Google.Ads." + + "GoogleAds.V0.Errors\312\002\036Google\\Ads\\GoogleA" + + "ds\\V0\\Errors\352\002\"Google::Ads::GoogleAds::V" + + "0::Errorsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_google_ads_googleads_v0_errors_ExtensionSettingErrorEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_googleads_v0_errors_ExtensionSettingErrorEnum_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_errors_ExtensionSettingErrorEnum_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FeedAttributeReferenceErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FeedAttributeReferenceErrorProto.java index 266eed4b51..81559aa8b7 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FeedAttributeReferenceErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FeedAttributeReferenceErrorProto.java @@ -35,12 +35,13 @@ public static void registerAllExtensions( "enceError\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022" + "!\n\035CANNOT_REFERENCE_DELETED_FEED\020\002\022\025\n\021IN" + "VALID_FEED_NAME\020\003\022\037\n\033INVALID_FEED_ATTRIB" + - "UTE_NAME\020\004B\326\001\n\"com.google.ads.googleads." + + "UTE_NAME\020\004B\373\001\n\"com.google.ads.googleads." + "v0.errorsB FeedAttributeReferenceErrorPr" + "otoP\001ZDgoogle.golang.org/genproto/google" + "apis/ads/googleads/v0/errors;errors\242\002\003GA" + "A\252\002\036Google.Ads.GoogleAds.V0.Errors\312\002\036Goo" + - "gle\\Ads\\GoogleAds\\V0\\Errorsb\006proto3" + "gle\\Ads\\GoogleAds\\V0\\Errors\352\002\"Google::Ad" + + "s::GoogleAds::V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FeedErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FeedErrorProto.java index d353097f50..f5c5ce4549 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FeedErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FeedErrorProto.java @@ -48,12 +48,13 @@ public static void registerAllExtensions( "\n\023TOO_MANY_ATTRIBUTES\020\021\022\034\n\030INVALID_BUSIN" + "ESS_ACCOUNT\020\022\0223\n/BUSINESS_ACCOUNT_CANNOT" + "_ACCESS_LOCATION_ACCOUNT\020\023\022\036\n\032INVALID_AF" + - "FILIATE_CHAIN_ID\020\024B\304\001\n\"com.google.ads.go" + + "FILIATE_CHAIN_ID\020\024B\351\001\n\"com.google.ads.go" + "ogleads.v0.errorsB\016FeedErrorProtoP\001ZDgoo" + "gle.golang.org/genproto/googleapis/ads/g" + "oogleads/v0/errors;errors\242\002\003GAA\252\002\036Google" + ".Ads.GoogleAds.V0.Errors\312\002\036Google\\Ads\\Go" + - "ogleAds\\V0\\Errorsb\006proto3" + "ogleAds\\V0\\Errors\352\002\"Google::Ads::GoogleA" + + "ds::V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FeedItemErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FeedItemErrorProto.java index 3db0876601..d66736849f 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FeedItemErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FeedItemErrorProto.java @@ -40,12 +40,13 @@ public static void registerAllExtensions( "ES\020\007\022\035\n\031KEY_ATTRIBUTES_NOT_UNIQUE\020\010\022%\n!C" + "ANNOT_MODIFY_KEY_ATTRIBUTE_VALUE\020\t\022,\n(SI" + "ZE_TOO_LARGE_FOR_MULTI_VALUE_ATTRIBUTE\020\n" + - "B\310\001\n\"com.google.ads.googleads.v0.errorsB" + + "B\355\001\n\"com.google.ads.googleads.v0.errorsB" + "\022FeedItemErrorProtoP\001ZDgoogle.golang.org" + "/genproto/googleapis/ads/googleads/v0/er" + "rors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds" + ".V0.Errors\312\002\036Google\\Ads\\GoogleAds\\V0\\Err" + - "orsb\006proto3" + "ors\352\002\"Google::Ads::GoogleAds::V0::Errors" + + "b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FeedItemValidationErrorEnum.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FeedItemValidationErrorEnum.java new file mode 100644 index 0000000000..640f0f6a57 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FeedItemValidationErrorEnum.java @@ -0,0 +1,2086 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/errors/feed_item_validation_error.proto + +package com.google.ads.googleads.v0.errors; + +/** + *
+ * Container for enum describing possible validation errors of a feed item.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.errors.FeedItemValidationErrorEnum} + */ +public final class FeedItemValidationErrorEnum extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.errors.FeedItemValidationErrorEnum) + FeedItemValidationErrorEnumOrBuilder { +private static final long serialVersionUID = 0L; + // Use FeedItemValidationErrorEnum.newBuilder() to construct. + private FeedItemValidationErrorEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FeedItemValidationErrorEnum() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FeedItemValidationErrorEnum( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.errors.FeedItemValidationErrorProto.internal_static_google_ads_googleads_v0_errors_FeedItemValidationErrorEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.errors.FeedItemValidationErrorProto.internal_static_google_ads_googleads_v0_errors_FeedItemValidationErrorEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.class, com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.Builder.class); + } + + /** + *
+   * The possible validation errors of a feed item.
+   * 
+ * + * Protobuf enum {@code google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError} + */ + public enum FeedItemValidationError + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * No value has been specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + UNKNOWN(1), + /** + *
+     * String is too short.
+     * 
+ * + * STRING_TOO_SHORT = 2; + */ + STRING_TOO_SHORT(2), + /** + *
+     * String is too long.
+     * 
+ * + * STRING_TOO_LONG = 3; + */ + STRING_TOO_LONG(3), + /** + *
+     * Value is not provided.
+     * 
+ * + * VALUE_NOT_SPECIFIED = 4; + */ + VALUE_NOT_SPECIFIED(4), + /** + *
+     * Phone number format is invalid for region.
+     * 
+ * + * INVALID_DOMESTIC_PHONE_NUMBER_FORMAT = 5; + */ + INVALID_DOMESTIC_PHONE_NUMBER_FORMAT(5), + /** + *
+     * String does not represent a phone number.
+     * 
+ * + * INVALID_PHONE_NUMBER = 6; + */ + INVALID_PHONE_NUMBER(6), + /** + *
+     * Phone number format is not compatible with country code.
+     * 
+ * + * PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY = 7; + */ + PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY(7), + /** + *
+     * Premium rate number is not allowed.
+     * 
+ * + * PREMIUM_RATE_NUMBER_NOT_ALLOWED = 8; + */ + PREMIUM_RATE_NUMBER_NOT_ALLOWED(8), + /** + *
+     * Phone number type is not allowed.
+     * 
+ * + * DISALLOWED_NUMBER_TYPE = 9; + */ + DISALLOWED_NUMBER_TYPE(9), + /** + *
+     * Specified value is outside of the valid range.
+     * 
+ * + * VALUE_OUT_OF_RANGE = 10; + */ + VALUE_OUT_OF_RANGE(10), + /** + *
+     * Call tracking is not supported in the selected country.
+     * 
+ * + * CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY = 11; + */ + CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY(11), + /** + *
+     * Customer is not whitelisted for call tracking.
+     * 
+ * + * CUSTOMER_NOT_WHITELISTED_FOR_CALLTRACKING = 12; + */ + CUSTOMER_NOT_WHITELISTED_FOR_CALLTRACKING(12), + /** + *
+     * Country code is invalid.
+     * 
+ * + * INVALID_COUNTRY_CODE = 13; + */ + INVALID_COUNTRY_CODE(13), + /** + *
+     * The specified mobile app id is invalid.
+     * 
+ * + * INVALID_APP_ID = 14; + */ + INVALID_APP_ID(14), + /** + *
+     * Some required field attributes are missing.
+     * 
+ * + * MISSING_ATTRIBUTES_FOR_FIELDS = 15; + */ + MISSING_ATTRIBUTES_FOR_FIELDS(15), + /** + *
+     * Invalid email button type for email extension.
+     * 
+ * + * INVALID_TYPE_ID = 16; + */ + INVALID_TYPE_ID(16), + /** + *
+     * Email address is invalid.
+     * 
+ * + * INVALID_EMAIL_ADDRESS = 17; + */ + INVALID_EMAIL_ADDRESS(17), + /** + *
+     * The HTTPS URL in email extension is invalid.
+     * 
+ * + * INVALID_HTTPS_URL = 18; + */ + INVALID_HTTPS_URL(18), + /** + *
+     * Delivery address is missing from email extension.
+     * 
+ * + * MISSING_DELIVERY_ADDRESS = 19; + */ + MISSING_DELIVERY_ADDRESS(19), + /** + *
+     * FeedItem scheduling start date comes after end date.
+     * 
+ * + * START_DATE_AFTER_END_DATE = 20; + */ + START_DATE_AFTER_END_DATE(20), + /** + *
+     * FeedItem scheduling start time is missing.
+     * 
+ * + * MISSING_FEED_ITEM_START_TIME = 21; + */ + MISSING_FEED_ITEM_START_TIME(21), + /** + *
+     * FeedItem scheduling end time is missing.
+     * 
+ * + * MISSING_FEED_ITEM_END_TIME = 22; + */ + MISSING_FEED_ITEM_END_TIME(22), + /** + *
+     * Cannot compute system attributes on a FeedItem that has no FeedItemId.
+     * 
+ * + * MISSING_FEED_ITEM_ID = 23; + */ + MISSING_FEED_ITEM_ID(23), + /** + *
+     * Call extension vanity phone numbers are not supported.
+     * 
+ * + * VANITY_PHONE_NUMBER_NOT_ALLOWED = 24; + */ + VANITY_PHONE_NUMBER_NOT_ALLOWED(24), + /** + *
+     * Invalid review text.
+     * 
+ * + * INVALID_REVIEW_EXTENSION_SNIPPET = 25; + */ + INVALID_REVIEW_EXTENSION_SNIPPET(25), + /** + *
+     * Invalid format for numeric value in ad parameter.
+     * 
+ * + * INVALID_NUMBER_FORMAT = 26; + */ + INVALID_NUMBER_FORMAT(26), + /** + *
+     * Invalid format for date value in ad parameter.
+     * 
+ * + * INVALID_DATE_FORMAT = 27; + */ + INVALID_DATE_FORMAT(27), + /** + *
+     * Invalid format for price value in ad parameter.
+     * 
+ * + * INVALID_PRICE_FORMAT = 28; + */ + INVALID_PRICE_FORMAT(28), + /** + *
+     * Unrecognized type given for value in ad parameter.
+     * 
+ * + * UNKNOWN_PLACEHOLDER_FIELD = 29; + */ + UNKNOWN_PLACEHOLDER_FIELD(29), + /** + *
+     * Enhanced sitelinks must have both description lines specified.
+     * 
+ * + * MISSING_ENHANCED_SITELINK_DESCRIPTION_LINE = 30; + */ + MISSING_ENHANCED_SITELINK_DESCRIPTION_LINE(30), + /** + *
+     * Review source is ineligible.
+     * 
+ * + * REVIEW_EXTENSION_SOURCE_INELIGIBLE = 31; + */ + REVIEW_EXTENSION_SOURCE_INELIGIBLE(31), + /** + *
+     * Review text cannot contain hyphens or dashes.
+     * 
+ * + * HYPHENS_IN_REVIEW_EXTENSION_SNIPPET = 32; + */ + HYPHENS_IN_REVIEW_EXTENSION_SNIPPET(32), + /** + *
+     * Review text cannot contain double quote characters.
+     * 
+ * + * DOUBLE_QUOTES_IN_REVIEW_EXTENSION_SNIPPET = 33; + */ + DOUBLE_QUOTES_IN_REVIEW_EXTENSION_SNIPPET(33), + /** + *
+     * Review text cannot contain quote characters.
+     * 
+ * + * QUOTES_IN_REVIEW_EXTENSION_SNIPPET = 34; + */ + QUOTES_IN_REVIEW_EXTENSION_SNIPPET(34), + /** + *
+     * Parameters are encoded in the wrong format.
+     * 
+ * + * INVALID_FORM_ENCODED_PARAMS = 35; + */ + INVALID_FORM_ENCODED_PARAMS(35), + /** + *
+     * URL parameter name must contain only letters, numbers, underscores, and
+     * dashes.
+     * 
+ * + * INVALID_URL_PARAMETER_NAME = 36; + */ + INVALID_URL_PARAMETER_NAME(36), + /** + *
+     * Cannot find address location.
+     * 
+ * + * NO_GEOCODING_RESULT = 37; + */ + NO_GEOCODING_RESULT(37), + /** + *
+     * Review extension text has source name.
+     * 
+ * + * SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT = 38; + */ + SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT(38), + /** + *
+     * Some phone numbers can be shorter than usual. Some of these short numbers
+     * are carrier-specific, and we disallow those in ad extensions because they
+     * will not be available to all users.
+     * 
+ * + * CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED = 39; + */ + CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED(39), + /** + *
+     * Triggered when a request references a placeholder field id that does not
+     * exist.
+     * 
+ * + * INVALID_PLACEHOLDER_FIELD_ID = 40; + */ + INVALID_PLACEHOLDER_FIELD_ID(40), + /** + *
+     * URL contains invalid ValueTrack tags or format.
+     * 
+ * + * INVALID_URL_TAG = 41; + */ + INVALID_URL_TAG(41), + /** + *
+     * Provided list exceeds acceptable size.
+     * 
+ * + * LIST_TOO_LONG = 42; + */ + LIST_TOO_LONG(42), + /** + *
+     * Certain combinations of attributes aren't allowed to be specified in the
+     * same feed item.
+     * 
+ * + * INVALID_ATTRIBUTES_COMBINATION = 43; + */ + INVALID_ATTRIBUTES_COMBINATION(43), + /** + *
+     * An attribute has the same value repeatedly.
+     * 
+ * + * DUPLICATE_VALUES = 44; + */ + DUPLICATE_VALUES(44), + /** + *
+     * Advertisers can link a conversion action with a phone number to indicate
+     * that sufficiently long calls forwarded to that phone number should be
+     * counted as conversions of the specified type.  This is an error message
+     * indicating that the conversion action specified is invalid (e.g., the
+     * conversion action does not exist within the appropriate Google Ads
+     * account, or it is a type of conversion not appropriate to phone call
+     * conversions).
+     * 
+ * + * INVALID_CALL_CONVERSION_ACTION_ID = 45; + */ + INVALID_CALL_CONVERSION_ACTION_ID(45), + /** + *
+     * Tracking template requires final url to be set.
+     * 
+ * + * CANNOT_SET_WITHOUT_FINAL_URLS = 46; + */ + CANNOT_SET_WITHOUT_FINAL_URLS(46), + /** + *
+     * An app id was provided that doesn't exist in the given app store.
+     * 
+ * + * APP_ID_DOESNT_EXIST_IN_APP_STORE = 47; + */ + APP_ID_DOESNT_EXIST_IN_APP_STORE(47), + /** + *
+     * Invalid U2 final url.
+     * 
+ * + * INVALID_FINAL_URL = 48; + */ + INVALID_FINAL_URL(48), + /** + *
+     * Invalid U2 tracking url.
+     * 
+ * + * INVALID_TRACKING_URL = 49; + */ + INVALID_TRACKING_URL(49), + /** + *
+     * Final URL should start from App download URL.
+     * 
+ * + * INVALID_FINAL_URL_FOR_APP_DOWNLOAD_URL = 50; + */ + INVALID_FINAL_URL_FOR_APP_DOWNLOAD_URL(50), + /** + *
+     * List provided is too short.
+     * 
+ * + * LIST_TOO_SHORT = 51; + */ + LIST_TOO_SHORT(51), + /** + *
+     * User Action field has invalid value.
+     * 
+ * + * INVALID_USER_ACTION = 52; + */ + INVALID_USER_ACTION(52), + /** + *
+     * Type field has invalid value.
+     * 
+ * + * INVALID_TYPE_NAME = 53; + */ + INVALID_TYPE_NAME(53), + /** + *
+     * Change status for event is invalid.
+     * 
+ * + * INVALID_EVENT_CHANGE_STATUS = 54; + */ + INVALID_EVENT_CHANGE_STATUS(54), + /** + *
+     * The header of a structured snippets extension is not one of the valid
+     * headers.
+     * 
+ * + * INVALID_SNIPPETS_HEADER = 55; + */ + INVALID_SNIPPETS_HEADER(55), + /** + *
+     * Android app link is not formatted correctly
+     * 
+ * + * INVALID_ANDROID_APP_LINK = 56; + */ + INVALID_ANDROID_APP_LINK(56), + /** + *
+     * Phone number incompatible with call tracking for country.
+     * 
+ * + * NUMBER_TYPE_WITH_CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY = 57; + */ + NUMBER_TYPE_WITH_CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY(57), + /** + *
+     * The input is identical to a reserved keyword
+     * 
+ * + * RESERVED_KEYWORD_OTHER = 58; + */ + RESERVED_KEYWORD_OTHER(58), + /** + *
+     * Each option label in the message extension must be unique.
+     * 
+ * + * DUPLICATE_OPTION_LABELS = 59; + */ + DUPLICATE_OPTION_LABELS(59), + /** + *
+     * Each option prefill in the message extension must be unique.
+     * 
+ * + * DUPLICATE_OPTION_PREFILLS = 60; + */ + DUPLICATE_OPTION_PREFILLS(60), + /** + *
+     * In message extensions, the number of optional labels and optional
+     * prefills must be the same.
+     * 
+ * + * UNEQUAL_LIST_LENGTHS = 61; + */ + UNEQUAL_LIST_LENGTHS(61), + /** + *
+     * All currency codes in an ad extension must be the same.
+     * 
+ * + * INCONSISTENT_CURRENCY_CODES = 62; + */ + INCONSISTENT_CURRENCY_CODES(62), + /** + *
+     * Headers in price extension are not unique.
+     * 
+ * + * PRICE_EXTENSION_HAS_DUPLICATED_HEADERS = 63; + */ + PRICE_EXTENSION_HAS_DUPLICATED_HEADERS(63), + /** + *
+     * Header and description in an item are the same.
+     * 
+ * + * ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION = 64; + */ + ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION(64), + /** + *
+     * Price extension has too few items.
+     * 
+ * + * PRICE_EXTENSION_HAS_TOO_FEW_ITEMS = 65; + */ + PRICE_EXTENSION_HAS_TOO_FEW_ITEMS(65), + /** + *
+     * The given value is not supported.
+     * 
+ * + * UNSUPPORTED_VALUE = 66; + */ + UNSUPPORTED_VALUE(66), + /** + *
+     * Invalid final mobile url.
+     * 
+ * + * INVALID_FINAL_MOBILE_URL = 67; + */ + INVALID_FINAL_MOBILE_URL(67), + /** + *
+     * The given string value of Label contains invalid characters
+     * 
+ * + * INVALID_KEYWORDLESS_AD_RULE_LABEL = 68; + */ + INVALID_KEYWORDLESS_AD_RULE_LABEL(68), + /** + *
+     * The given URL contains value track parameters.
+     * 
+ * + * VALUE_TRACK_PARAMETER_NOT_SUPPORTED = 69; + */ + VALUE_TRACK_PARAMETER_NOT_SUPPORTED(69), + /** + *
+     * The given value is not supported in the selected language of an
+     * extension.
+     * 
+ * + * UNSUPPORTED_VALUE_IN_SELECTED_LANGUAGE = 70; + */ + UNSUPPORTED_VALUE_IN_SELECTED_LANGUAGE(70), + /** + *
+     * The iOS app link is not formatted correctly.
+     * 
+ * + * INVALID_IOS_APP_LINK = 71; + */ + INVALID_IOS_APP_LINK(71), + /** + *
+     * iOS app link or iOS app store id is missing.
+     * 
+ * + * MISSING_IOS_APP_LINK_OR_IOS_APP_STORE_ID = 72; + */ + MISSING_IOS_APP_LINK_OR_IOS_APP_STORE_ID(72), + /** + *
+     * Promotion time is invalid.
+     * 
+ * + * PROMOTION_INVALID_TIME = 73; + */ + PROMOTION_INVALID_TIME(73), + /** + *
+     * Both the percent off and money amount off fields are set.
+     * 
+ * + * PROMOTION_CANNOT_SET_PERCENT_OFF_AND_MONEY_AMOUNT_OFF = 74; + */ + PROMOTION_CANNOT_SET_PERCENT_OFF_AND_MONEY_AMOUNT_OFF(74), + /** + *
+     * Both the promotion code and orders over amount fields are set.
+     * 
+ * + * PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT = 75; + */ + PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT(75), + /** + *
+     * Too many decimal places are specified.
+     * 
+ * + * TOO_MANY_DECIMAL_PLACES_SPECIFIED = 76; + */ + TOO_MANY_DECIMAL_PLACES_SPECIFIED(76), + /** + *
+     * Ad Customizers are present and not allowed.
+     * 
+ * + * AD_CUSTOMIZERS_NOT_ALLOWED = 77; + */ + AD_CUSTOMIZERS_NOT_ALLOWED(77), + /** + *
+     * Language code is not valid.
+     * 
+ * + * INVALID_LANGUAGE_CODE = 78; + */ + INVALID_LANGUAGE_CODE(78), + /** + *
+     * Language is not supported.
+     * 
+ * + * UNSUPPORTED_LANGUAGE = 79; + */ + UNSUPPORTED_LANGUAGE(79), + /** + *
+     * IF Function is present and not allowed.
+     * 
+ * + * IF_FUNCTION_NOT_ALLOWED = 80; + */ + IF_FUNCTION_NOT_ALLOWED(80), + /** + *
+     * Final url suffix is not valid.
+     * 
+ * + * INVALID_FINAL_URL_SUFFIX = 81; + */ + INVALID_FINAL_URL_SUFFIX(81), + /** + *
+     * Final url suffix contains an invalid tag.
+     * 
+ * + * INVALID_TAG_IN_FINAL_URL_SUFFIX = 82; + */ + INVALID_TAG_IN_FINAL_URL_SUFFIX(82), + /** + *
+     * Final url suffix is formatted incorrectly.
+     * 
+ * + * INVALID_FINAL_URL_SUFFIX_FORMAT = 83; + */ + INVALID_FINAL_URL_SUFFIX_FORMAT(83), + /** + *
+     * Consent for call recording, which is required for the use of call
+     * extensions, was not provided by the advertiser.
+     * 
+ * + * CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED = 84; + */ + CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED(84), + /** + *
+     * Multiple message delivery options are set.
+     * 
+ * + * ONLY_ONE_DELIVERY_OPTION_IS_ALLOWED = 85; + */ + ONLY_ONE_DELIVERY_OPTION_IS_ALLOWED(85), + /** + *
+     * No message delivery option is set.
+     * 
+ * + * NO_DELIVERY_OPTION_IS_SET = 86; + */ + NO_DELIVERY_OPTION_IS_SET(86), + /** + *
+     * String value of conversion reporting state field is not valid.
+     * 
+ * + * INVALID_CONVERSION_REPORTING_STATE = 87; + */ + INVALID_CONVERSION_REPORTING_STATE(87), + /** + *
+     * Image size is not right.
+     * 
+ * + * IMAGE_SIZE_WRONG = 88; + */ + IMAGE_SIZE_WRONG(88), + /** + *
+     * Email delivery is not supported in the country specified in the country
+     * code field.
+     * 
+ * + * EMAIL_DELIVERY_NOT_AVAILABLE_IN_COUNTRY = 89; + */ + EMAIL_DELIVERY_NOT_AVAILABLE_IN_COUNTRY(89), + /** + *
+     * Auto reply is not supported in the country specified in the country code
+     * field.
+     * 
+ * + * AUTO_REPLY_NOT_AVAILABLE_IN_COUNTRY = 90; + */ + AUTO_REPLY_NOT_AVAILABLE_IN_COUNTRY(90), + UNRECOGNIZED(-1), + ; + + /** + *
+     * No value has been specified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + *
+     * Used for return value only. Represents value unknown in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + public static final int UNKNOWN_VALUE = 1; + /** + *
+     * String is too short.
+     * 
+ * + * STRING_TOO_SHORT = 2; + */ + public static final int STRING_TOO_SHORT_VALUE = 2; + /** + *
+     * String is too long.
+     * 
+ * + * STRING_TOO_LONG = 3; + */ + public static final int STRING_TOO_LONG_VALUE = 3; + /** + *
+     * Value is not provided.
+     * 
+ * + * VALUE_NOT_SPECIFIED = 4; + */ + public static final int VALUE_NOT_SPECIFIED_VALUE = 4; + /** + *
+     * Phone number format is invalid for region.
+     * 
+ * + * INVALID_DOMESTIC_PHONE_NUMBER_FORMAT = 5; + */ + public static final int INVALID_DOMESTIC_PHONE_NUMBER_FORMAT_VALUE = 5; + /** + *
+     * String does not represent a phone number.
+     * 
+ * + * INVALID_PHONE_NUMBER = 6; + */ + public static final int INVALID_PHONE_NUMBER_VALUE = 6; + /** + *
+     * Phone number format is not compatible with country code.
+     * 
+ * + * PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY = 7; + */ + public static final int PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY_VALUE = 7; + /** + *
+     * Premium rate number is not allowed.
+     * 
+ * + * PREMIUM_RATE_NUMBER_NOT_ALLOWED = 8; + */ + public static final int PREMIUM_RATE_NUMBER_NOT_ALLOWED_VALUE = 8; + /** + *
+     * Phone number type is not allowed.
+     * 
+ * + * DISALLOWED_NUMBER_TYPE = 9; + */ + public static final int DISALLOWED_NUMBER_TYPE_VALUE = 9; + /** + *
+     * Specified value is outside of the valid range.
+     * 
+ * + * VALUE_OUT_OF_RANGE = 10; + */ + public static final int VALUE_OUT_OF_RANGE_VALUE = 10; + /** + *
+     * Call tracking is not supported in the selected country.
+     * 
+ * + * CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY = 11; + */ + public static final int CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY_VALUE = 11; + /** + *
+     * Customer is not whitelisted for call tracking.
+     * 
+ * + * CUSTOMER_NOT_WHITELISTED_FOR_CALLTRACKING = 12; + */ + public static final int CUSTOMER_NOT_WHITELISTED_FOR_CALLTRACKING_VALUE = 12; + /** + *
+     * Country code is invalid.
+     * 
+ * + * INVALID_COUNTRY_CODE = 13; + */ + public static final int INVALID_COUNTRY_CODE_VALUE = 13; + /** + *
+     * The specified mobile app id is invalid.
+     * 
+ * + * INVALID_APP_ID = 14; + */ + public static final int INVALID_APP_ID_VALUE = 14; + /** + *
+     * Some required field attributes are missing.
+     * 
+ * + * MISSING_ATTRIBUTES_FOR_FIELDS = 15; + */ + public static final int MISSING_ATTRIBUTES_FOR_FIELDS_VALUE = 15; + /** + *
+     * Invalid email button type for email extension.
+     * 
+ * + * INVALID_TYPE_ID = 16; + */ + public static final int INVALID_TYPE_ID_VALUE = 16; + /** + *
+     * Email address is invalid.
+     * 
+ * + * INVALID_EMAIL_ADDRESS = 17; + */ + public static final int INVALID_EMAIL_ADDRESS_VALUE = 17; + /** + *
+     * The HTTPS URL in email extension is invalid.
+     * 
+ * + * INVALID_HTTPS_URL = 18; + */ + public static final int INVALID_HTTPS_URL_VALUE = 18; + /** + *
+     * Delivery address is missing from email extension.
+     * 
+ * + * MISSING_DELIVERY_ADDRESS = 19; + */ + public static final int MISSING_DELIVERY_ADDRESS_VALUE = 19; + /** + *
+     * FeedItem scheduling start date comes after end date.
+     * 
+ * + * START_DATE_AFTER_END_DATE = 20; + */ + public static final int START_DATE_AFTER_END_DATE_VALUE = 20; + /** + *
+     * FeedItem scheduling start time is missing.
+     * 
+ * + * MISSING_FEED_ITEM_START_TIME = 21; + */ + public static final int MISSING_FEED_ITEM_START_TIME_VALUE = 21; + /** + *
+     * FeedItem scheduling end time is missing.
+     * 
+ * + * MISSING_FEED_ITEM_END_TIME = 22; + */ + public static final int MISSING_FEED_ITEM_END_TIME_VALUE = 22; + /** + *
+     * Cannot compute system attributes on a FeedItem that has no FeedItemId.
+     * 
+ * + * MISSING_FEED_ITEM_ID = 23; + */ + public static final int MISSING_FEED_ITEM_ID_VALUE = 23; + /** + *
+     * Call extension vanity phone numbers are not supported.
+     * 
+ * + * VANITY_PHONE_NUMBER_NOT_ALLOWED = 24; + */ + public static final int VANITY_PHONE_NUMBER_NOT_ALLOWED_VALUE = 24; + /** + *
+     * Invalid review text.
+     * 
+ * + * INVALID_REVIEW_EXTENSION_SNIPPET = 25; + */ + public static final int INVALID_REVIEW_EXTENSION_SNIPPET_VALUE = 25; + /** + *
+     * Invalid format for numeric value in ad parameter.
+     * 
+ * + * INVALID_NUMBER_FORMAT = 26; + */ + public static final int INVALID_NUMBER_FORMAT_VALUE = 26; + /** + *
+     * Invalid format for date value in ad parameter.
+     * 
+ * + * INVALID_DATE_FORMAT = 27; + */ + public static final int INVALID_DATE_FORMAT_VALUE = 27; + /** + *
+     * Invalid format for price value in ad parameter.
+     * 
+ * + * INVALID_PRICE_FORMAT = 28; + */ + public static final int INVALID_PRICE_FORMAT_VALUE = 28; + /** + *
+     * Unrecognized type given for value in ad parameter.
+     * 
+ * + * UNKNOWN_PLACEHOLDER_FIELD = 29; + */ + public static final int UNKNOWN_PLACEHOLDER_FIELD_VALUE = 29; + /** + *
+     * Enhanced sitelinks must have both description lines specified.
+     * 
+ * + * MISSING_ENHANCED_SITELINK_DESCRIPTION_LINE = 30; + */ + public static final int MISSING_ENHANCED_SITELINK_DESCRIPTION_LINE_VALUE = 30; + /** + *
+     * Review source is ineligible.
+     * 
+ * + * REVIEW_EXTENSION_SOURCE_INELIGIBLE = 31; + */ + public static final int REVIEW_EXTENSION_SOURCE_INELIGIBLE_VALUE = 31; + /** + *
+     * Review text cannot contain hyphens or dashes.
+     * 
+ * + * HYPHENS_IN_REVIEW_EXTENSION_SNIPPET = 32; + */ + public static final int HYPHENS_IN_REVIEW_EXTENSION_SNIPPET_VALUE = 32; + /** + *
+     * Review text cannot contain double quote characters.
+     * 
+ * + * DOUBLE_QUOTES_IN_REVIEW_EXTENSION_SNIPPET = 33; + */ + public static final int DOUBLE_QUOTES_IN_REVIEW_EXTENSION_SNIPPET_VALUE = 33; + /** + *
+     * Review text cannot contain quote characters.
+     * 
+ * + * QUOTES_IN_REVIEW_EXTENSION_SNIPPET = 34; + */ + public static final int QUOTES_IN_REVIEW_EXTENSION_SNIPPET_VALUE = 34; + /** + *
+     * Parameters are encoded in the wrong format.
+     * 
+ * + * INVALID_FORM_ENCODED_PARAMS = 35; + */ + public static final int INVALID_FORM_ENCODED_PARAMS_VALUE = 35; + /** + *
+     * URL parameter name must contain only letters, numbers, underscores, and
+     * dashes.
+     * 
+ * + * INVALID_URL_PARAMETER_NAME = 36; + */ + public static final int INVALID_URL_PARAMETER_NAME_VALUE = 36; + /** + *
+     * Cannot find address location.
+     * 
+ * + * NO_GEOCODING_RESULT = 37; + */ + public static final int NO_GEOCODING_RESULT_VALUE = 37; + /** + *
+     * Review extension text has source name.
+     * 
+ * + * SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT = 38; + */ + public static final int SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT_VALUE = 38; + /** + *
+     * Some phone numbers can be shorter than usual. Some of these short numbers
+     * are carrier-specific, and we disallow those in ad extensions because they
+     * will not be available to all users.
+     * 
+ * + * CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED = 39; + */ + public static final int CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED_VALUE = 39; + /** + *
+     * Triggered when a request references a placeholder field id that does not
+     * exist.
+     * 
+ * + * INVALID_PLACEHOLDER_FIELD_ID = 40; + */ + public static final int INVALID_PLACEHOLDER_FIELD_ID_VALUE = 40; + /** + *
+     * URL contains invalid ValueTrack tags or format.
+     * 
+ * + * INVALID_URL_TAG = 41; + */ + public static final int INVALID_URL_TAG_VALUE = 41; + /** + *
+     * Provided list exceeds acceptable size.
+     * 
+ * + * LIST_TOO_LONG = 42; + */ + public static final int LIST_TOO_LONG_VALUE = 42; + /** + *
+     * Certain combinations of attributes aren't allowed to be specified in the
+     * same feed item.
+     * 
+ * + * INVALID_ATTRIBUTES_COMBINATION = 43; + */ + public static final int INVALID_ATTRIBUTES_COMBINATION_VALUE = 43; + /** + *
+     * An attribute has the same value repeatedly.
+     * 
+ * + * DUPLICATE_VALUES = 44; + */ + public static final int DUPLICATE_VALUES_VALUE = 44; + /** + *
+     * Advertisers can link a conversion action with a phone number to indicate
+     * that sufficiently long calls forwarded to that phone number should be
+     * counted as conversions of the specified type.  This is an error message
+     * indicating that the conversion action specified is invalid (e.g., the
+     * conversion action does not exist within the appropriate Google Ads
+     * account, or it is a type of conversion not appropriate to phone call
+     * conversions).
+     * 
+ * + * INVALID_CALL_CONVERSION_ACTION_ID = 45; + */ + public static final int INVALID_CALL_CONVERSION_ACTION_ID_VALUE = 45; + /** + *
+     * Tracking template requires final url to be set.
+     * 
+ * + * CANNOT_SET_WITHOUT_FINAL_URLS = 46; + */ + public static final int CANNOT_SET_WITHOUT_FINAL_URLS_VALUE = 46; + /** + *
+     * An app id was provided that doesn't exist in the given app store.
+     * 
+ * + * APP_ID_DOESNT_EXIST_IN_APP_STORE = 47; + */ + public static final int APP_ID_DOESNT_EXIST_IN_APP_STORE_VALUE = 47; + /** + *
+     * Invalid U2 final url.
+     * 
+ * + * INVALID_FINAL_URL = 48; + */ + public static final int INVALID_FINAL_URL_VALUE = 48; + /** + *
+     * Invalid U2 tracking url.
+     * 
+ * + * INVALID_TRACKING_URL = 49; + */ + public static final int INVALID_TRACKING_URL_VALUE = 49; + /** + *
+     * Final URL should start from App download URL.
+     * 
+ * + * INVALID_FINAL_URL_FOR_APP_DOWNLOAD_URL = 50; + */ + public static final int INVALID_FINAL_URL_FOR_APP_DOWNLOAD_URL_VALUE = 50; + /** + *
+     * List provided is too short.
+     * 
+ * + * LIST_TOO_SHORT = 51; + */ + public static final int LIST_TOO_SHORT_VALUE = 51; + /** + *
+     * User Action field has invalid value.
+     * 
+ * + * INVALID_USER_ACTION = 52; + */ + public static final int INVALID_USER_ACTION_VALUE = 52; + /** + *
+     * Type field has invalid value.
+     * 
+ * + * INVALID_TYPE_NAME = 53; + */ + public static final int INVALID_TYPE_NAME_VALUE = 53; + /** + *
+     * Change status for event is invalid.
+     * 
+ * + * INVALID_EVENT_CHANGE_STATUS = 54; + */ + public static final int INVALID_EVENT_CHANGE_STATUS_VALUE = 54; + /** + *
+     * The header of a structured snippets extension is not one of the valid
+     * headers.
+     * 
+ * + * INVALID_SNIPPETS_HEADER = 55; + */ + public static final int INVALID_SNIPPETS_HEADER_VALUE = 55; + /** + *
+     * Android app link is not formatted correctly
+     * 
+ * + * INVALID_ANDROID_APP_LINK = 56; + */ + public static final int INVALID_ANDROID_APP_LINK_VALUE = 56; + /** + *
+     * Phone number incompatible with call tracking for country.
+     * 
+ * + * NUMBER_TYPE_WITH_CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY = 57; + */ + public static final int NUMBER_TYPE_WITH_CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY_VALUE = 57; + /** + *
+     * The input is identical to a reserved keyword
+     * 
+ * + * RESERVED_KEYWORD_OTHER = 58; + */ + public static final int RESERVED_KEYWORD_OTHER_VALUE = 58; + /** + *
+     * Each option label in the message extension must be unique.
+     * 
+ * + * DUPLICATE_OPTION_LABELS = 59; + */ + public static final int DUPLICATE_OPTION_LABELS_VALUE = 59; + /** + *
+     * Each option prefill in the message extension must be unique.
+     * 
+ * + * DUPLICATE_OPTION_PREFILLS = 60; + */ + public static final int DUPLICATE_OPTION_PREFILLS_VALUE = 60; + /** + *
+     * In message extensions, the number of optional labels and optional
+     * prefills must be the same.
+     * 
+ * + * UNEQUAL_LIST_LENGTHS = 61; + */ + public static final int UNEQUAL_LIST_LENGTHS_VALUE = 61; + /** + *
+     * All currency codes in an ad extension must be the same.
+     * 
+ * + * INCONSISTENT_CURRENCY_CODES = 62; + */ + public static final int INCONSISTENT_CURRENCY_CODES_VALUE = 62; + /** + *
+     * Headers in price extension are not unique.
+     * 
+ * + * PRICE_EXTENSION_HAS_DUPLICATED_HEADERS = 63; + */ + public static final int PRICE_EXTENSION_HAS_DUPLICATED_HEADERS_VALUE = 63; + /** + *
+     * Header and description in an item are the same.
+     * 
+ * + * ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION = 64; + */ + public static final int ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION_VALUE = 64; + /** + *
+     * Price extension has too few items.
+     * 
+ * + * PRICE_EXTENSION_HAS_TOO_FEW_ITEMS = 65; + */ + public static final int PRICE_EXTENSION_HAS_TOO_FEW_ITEMS_VALUE = 65; + /** + *
+     * The given value is not supported.
+     * 
+ * + * UNSUPPORTED_VALUE = 66; + */ + public static final int UNSUPPORTED_VALUE_VALUE = 66; + /** + *
+     * Invalid final mobile url.
+     * 
+ * + * INVALID_FINAL_MOBILE_URL = 67; + */ + public static final int INVALID_FINAL_MOBILE_URL_VALUE = 67; + /** + *
+     * The given string value of Label contains invalid characters
+     * 
+ * + * INVALID_KEYWORDLESS_AD_RULE_LABEL = 68; + */ + public static final int INVALID_KEYWORDLESS_AD_RULE_LABEL_VALUE = 68; + /** + *
+     * The given URL contains value track parameters.
+     * 
+ * + * VALUE_TRACK_PARAMETER_NOT_SUPPORTED = 69; + */ + public static final int VALUE_TRACK_PARAMETER_NOT_SUPPORTED_VALUE = 69; + /** + *
+     * The given value is not supported in the selected language of an
+     * extension.
+     * 
+ * + * UNSUPPORTED_VALUE_IN_SELECTED_LANGUAGE = 70; + */ + public static final int UNSUPPORTED_VALUE_IN_SELECTED_LANGUAGE_VALUE = 70; + /** + *
+     * The iOS app link is not formatted correctly.
+     * 
+ * + * INVALID_IOS_APP_LINK = 71; + */ + public static final int INVALID_IOS_APP_LINK_VALUE = 71; + /** + *
+     * iOS app link or iOS app store id is missing.
+     * 
+ * + * MISSING_IOS_APP_LINK_OR_IOS_APP_STORE_ID = 72; + */ + public static final int MISSING_IOS_APP_LINK_OR_IOS_APP_STORE_ID_VALUE = 72; + /** + *
+     * Promotion time is invalid.
+     * 
+ * + * PROMOTION_INVALID_TIME = 73; + */ + public static final int PROMOTION_INVALID_TIME_VALUE = 73; + /** + *
+     * Both the percent off and money amount off fields are set.
+     * 
+ * + * PROMOTION_CANNOT_SET_PERCENT_OFF_AND_MONEY_AMOUNT_OFF = 74; + */ + public static final int PROMOTION_CANNOT_SET_PERCENT_OFF_AND_MONEY_AMOUNT_OFF_VALUE = 74; + /** + *
+     * Both the promotion code and orders over amount fields are set.
+     * 
+ * + * PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT = 75; + */ + public static final int PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT_VALUE = 75; + /** + *
+     * Too many decimal places are specified.
+     * 
+ * + * TOO_MANY_DECIMAL_PLACES_SPECIFIED = 76; + */ + public static final int TOO_MANY_DECIMAL_PLACES_SPECIFIED_VALUE = 76; + /** + *
+     * Ad Customizers are present and not allowed.
+     * 
+ * + * AD_CUSTOMIZERS_NOT_ALLOWED = 77; + */ + public static final int AD_CUSTOMIZERS_NOT_ALLOWED_VALUE = 77; + /** + *
+     * Language code is not valid.
+     * 
+ * + * INVALID_LANGUAGE_CODE = 78; + */ + public static final int INVALID_LANGUAGE_CODE_VALUE = 78; + /** + *
+     * Language is not supported.
+     * 
+ * + * UNSUPPORTED_LANGUAGE = 79; + */ + public static final int UNSUPPORTED_LANGUAGE_VALUE = 79; + /** + *
+     * IF Function is present and not allowed.
+     * 
+ * + * IF_FUNCTION_NOT_ALLOWED = 80; + */ + public static final int IF_FUNCTION_NOT_ALLOWED_VALUE = 80; + /** + *
+     * Final url suffix is not valid.
+     * 
+ * + * INVALID_FINAL_URL_SUFFIX = 81; + */ + public static final int INVALID_FINAL_URL_SUFFIX_VALUE = 81; + /** + *
+     * Final url suffix contains an invalid tag.
+     * 
+ * + * INVALID_TAG_IN_FINAL_URL_SUFFIX = 82; + */ + public static final int INVALID_TAG_IN_FINAL_URL_SUFFIX_VALUE = 82; + /** + *
+     * Final url suffix is formatted incorrectly.
+     * 
+ * + * INVALID_FINAL_URL_SUFFIX_FORMAT = 83; + */ + public static final int INVALID_FINAL_URL_SUFFIX_FORMAT_VALUE = 83; + /** + *
+     * Consent for call recording, which is required for the use of call
+     * extensions, was not provided by the advertiser.
+     * 
+ * + * CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED = 84; + */ + public static final int CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED_VALUE = 84; + /** + *
+     * Multiple message delivery options are set.
+     * 
+ * + * ONLY_ONE_DELIVERY_OPTION_IS_ALLOWED = 85; + */ + public static final int ONLY_ONE_DELIVERY_OPTION_IS_ALLOWED_VALUE = 85; + /** + *
+     * No message delivery option is set.
+     * 
+ * + * NO_DELIVERY_OPTION_IS_SET = 86; + */ + public static final int NO_DELIVERY_OPTION_IS_SET_VALUE = 86; + /** + *
+     * String value of conversion reporting state field is not valid.
+     * 
+ * + * INVALID_CONVERSION_REPORTING_STATE = 87; + */ + public static final int INVALID_CONVERSION_REPORTING_STATE_VALUE = 87; + /** + *
+     * Image size is not right.
+     * 
+ * + * IMAGE_SIZE_WRONG = 88; + */ + public static final int IMAGE_SIZE_WRONG_VALUE = 88; + /** + *
+     * Email delivery is not supported in the country specified in the country
+     * code field.
+     * 
+ * + * EMAIL_DELIVERY_NOT_AVAILABLE_IN_COUNTRY = 89; + */ + public static final int EMAIL_DELIVERY_NOT_AVAILABLE_IN_COUNTRY_VALUE = 89; + /** + *
+     * Auto reply is not supported in the country specified in the country code
+     * field.
+     * 
+ * + * AUTO_REPLY_NOT_AVAILABLE_IN_COUNTRY = 90; + */ + public static final int AUTO_REPLY_NOT_AVAILABLE_IN_COUNTRY_VALUE = 90; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FeedItemValidationError valueOf(int value) { + return forNumber(value); + } + + public static FeedItemValidationError forNumber(int value) { + switch (value) { + case 0: return UNSPECIFIED; + case 1: return UNKNOWN; + case 2: return STRING_TOO_SHORT; + case 3: return STRING_TOO_LONG; + case 4: return VALUE_NOT_SPECIFIED; + case 5: return INVALID_DOMESTIC_PHONE_NUMBER_FORMAT; + case 6: return INVALID_PHONE_NUMBER; + case 7: return PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY; + case 8: return PREMIUM_RATE_NUMBER_NOT_ALLOWED; + case 9: return DISALLOWED_NUMBER_TYPE; + case 10: return VALUE_OUT_OF_RANGE; + case 11: return CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY; + case 12: return CUSTOMER_NOT_WHITELISTED_FOR_CALLTRACKING; + case 13: return INVALID_COUNTRY_CODE; + case 14: return INVALID_APP_ID; + case 15: return MISSING_ATTRIBUTES_FOR_FIELDS; + case 16: return INVALID_TYPE_ID; + case 17: return INVALID_EMAIL_ADDRESS; + case 18: return INVALID_HTTPS_URL; + case 19: return MISSING_DELIVERY_ADDRESS; + case 20: return START_DATE_AFTER_END_DATE; + case 21: return MISSING_FEED_ITEM_START_TIME; + case 22: return MISSING_FEED_ITEM_END_TIME; + case 23: return MISSING_FEED_ITEM_ID; + case 24: return VANITY_PHONE_NUMBER_NOT_ALLOWED; + case 25: return INVALID_REVIEW_EXTENSION_SNIPPET; + case 26: return INVALID_NUMBER_FORMAT; + case 27: return INVALID_DATE_FORMAT; + case 28: return INVALID_PRICE_FORMAT; + case 29: return UNKNOWN_PLACEHOLDER_FIELD; + case 30: return MISSING_ENHANCED_SITELINK_DESCRIPTION_LINE; + case 31: return REVIEW_EXTENSION_SOURCE_INELIGIBLE; + case 32: return HYPHENS_IN_REVIEW_EXTENSION_SNIPPET; + case 33: return DOUBLE_QUOTES_IN_REVIEW_EXTENSION_SNIPPET; + case 34: return QUOTES_IN_REVIEW_EXTENSION_SNIPPET; + case 35: return INVALID_FORM_ENCODED_PARAMS; + case 36: return INVALID_URL_PARAMETER_NAME; + case 37: return NO_GEOCODING_RESULT; + case 38: return SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT; + case 39: return CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED; + case 40: return INVALID_PLACEHOLDER_FIELD_ID; + case 41: return INVALID_URL_TAG; + case 42: return LIST_TOO_LONG; + case 43: return INVALID_ATTRIBUTES_COMBINATION; + case 44: return DUPLICATE_VALUES; + case 45: return INVALID_CALL_CONVERSION_ACTION_ID; + case 46: return CANNOT_SET_WITHOUT_FINAL_URLS; + case 47: return APP_ID_DOESNT_EXIST_IN_APP_STORE; + case 48: return INVALID_FINAL_URL; + case 49: return INVALID_TRACKING_URL; + case 50: return INVALID_FINAL_URL_FOR_APP_DOWNLOAD_URL; + case 51: return LIST_TOO_SHORT; + case 52: return INVALID_USER_ACTION; + case 53: return INVALID_TYPE_NAME; + case 54: return INVALID_EVENT_CHANGE_STATUS; + case 55: return INVALID_SNIPPETS_HEADER; + case 56: return INVALID_ANDROID_APP_LINK; + case 57: return NUMBER_TYPE_WITH_CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY; + case 58: return RESERVED_KEYWORD_OTHER; + case 59: return DUPLICATE_OPTION_LABELS; + case 60: return DUPLICATE_OPTION_PREFILLS; + case 61: return UNEQUAL_LIST_LENGTHS; + case 62: return INCONSISTENT_CURRENCY_CODES; + case 63: return PRICE_EXTENSION_HAS_DUPLICATED_HEADERS; + case 64: return ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION; + case 65: return PRICE_EXTENSION_HAS_TOO_FEW_ITEMS; + case 66: return UNSUPPORTED_VALUE; + case 67: return INVALID_FINAL_MOBILE_URL; + case 68: return INVALID_KEYWORDLESS_AD_RULE_LABEL; + case 69: return VALUE_TRACK_PARAMETER_NOT_SUPPORTED; + case 70: return UNSUPPORTED_VALUE_IN_SELECTED_LANGUAGE; + case 71: return INVALID_IOS_APP_LINK; + case 72: return MISSING_IOS_APP_LINK_OR_IOS_APP_STORE_ID; + case 73: return PROMOTION_INVALID_TIME; + case 74: return PROMOTION_CANNOT_SET_PERCENT_OFF_AND_MONEY_AMOUNT_OFF; + case 75: return PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT; + case 76: return TOO_MANY_DECIMAL_PLACES_SPECIFIED; + case 77: return AD_CUSTOMIZERS_NOT_ALLOWED; + case 78: return INVALID_LANGUAGE_CODE; + case 79: return UNSUPPORTED_LANGUAGE; + case 80: return IF_FUNCTION_NOT_ALLOWED; + case 81: return INVALID_FINAL_URL_SUFFIX; + case 82: return INVALID_TAG_IN_FINAL_URL_SUFFIX; + case 83: return INVALID_FINAL_URL_SUFFIX_FORMAT; + case 84: return CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED; + case 85: return ONLY_ONE_DELIVERY_OPTION_IS_ALLOWED; + case 86: return NO_DELIVERY_OPTION_IS_SET; + case 87: return INVALID_CONVERSION_REPORTING_STATE; + case 88: return IMAGE_SIZE_WRONG; + case 89: return EMAIL_DELIVERY_NOT_AVAILABLE_IN_COUNTRY; + case 90: return AUTO_REPLY_NOT_AVAILABLE_IN_COUNTRY; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + FeedItemValidationError> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FeedItemValidationError findValueByNumber(int number) { + return FeedItemValidationError.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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.ads.googleads.v0.errors.FeedItemValidationErrorEnum.getDescriptor().getEnumTypes().get(0); + } + + private static final FeedItemValidationError[] VALUES = values(); + + public static FeedItemValidationError 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 FeedItemValidationError(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError) + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.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.ads.googleads.v0.errors.FeedItemValidationErrorEnum)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum other = (com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum 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.ads.googleads.v0.errors.FeedItemValidationErrorEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum 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.ads.googleads.v0.errors.FeedItemValidationErrorEnum parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum 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.ads.googleads.v0.errors.FeedItemValidationErrorEnum parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum 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.ads.googleads.v0.errors.FeedItemValidationErrorEnum 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; + } + /** + *
+   * Container for enum describing possible validation errors of a feed item.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.errors.FeedItemValidationErrorEnum} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.errors.FeedItemValidationErrorEnum) + com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.errors.FeedItemValidationErrorProto.internal_static_google_ads_googleads_v0_errors_FeedItemValidationErrorEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.errors.FeedItemValidationErrorProto.internal_static_google_ads_googleads_v0_errors_FeedItemValidationErrorEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.class, com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.errors.FeedItemValidationErrorProto.internal_static_google_ads_googleads_v0_errors_FeedItemValidationErrorEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum getDefaultInstanceForType() { + return com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum build() { + com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum buildPartial() { + com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum result = new com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum) { + return mergeFrom((com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum other) { + if (other == com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.errors.FeedItemValidationErrorEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.errors.FeedItemValidationErrorEnum) + private static final com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum(); + } + + public static com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeedItemValidationErrorEnum parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeedItemValidationErrorEnum(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.errors.FeedItemValidationErrorEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FeedItemValidationErrorEnumOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FeedItemValidationErrorEnumOrBuilder.java new file mode 100644 index 0000000000..787f3588a2 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FeedItemValidationErrorEnumOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/errors/feed_item_validation_error.proto + +package com.google.ads.googleads.v0.errors; + +public interface FeedItemValidationErrorEnumOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.errors.FeedItemValidationErrorEnum) + com.google.protobuf.MessageOrBuilder { +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FeedItemValidationErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FeedItemValidationErrorProto.java new file mode 100644 index 0000000000..e01c50e3c5 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FeedItemValidationErrorProto.java @@ -0,0 +1,140 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/errors/feed_item_validation_error.proto + +package com.google.ads.googleads.v0.errors; + +public final class FeedItemValidationErrorProto { + private FeedItemValidationErrorProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_errors_FeedItemValidationErrorEnum_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_errors_FeedItemValidationErrorEnum_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n?google/ads/googleads/v0/errors/feed_it" + + "em_validation_error.proto\022\036google.ads.go" + + "ogleads.v0.errors\"\226\030\n\033FeedItemValidation" + + "ErrorEnum\"\366\027\n\027FeedItemValidationError\022\017\n" + + "\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\024\n\020STRING_TO" + + "O_SHORT\020\002\022\023\n\017STRING_TOO_LONG\020\003\022\027\n\023VALUE_" + + "NOT_SPECIFIED\020\004\022(\n$INVALID_DOMESTIC_PHON" + + "E_NUMBER_FORMAT\020\005\022\030\n\024INVALID_PHONE_NUMBE" + + "R\020\006\022*\n&PHONE_NUMBER_NOT_SUPPORTED_FOR_CO" + + "UNTRY\020\007\022#\n\037PREMIUM_RATE_NUMBER_NOT_ALLOW" + + "ED\020\010\022\032\n\026DISALLOWED_NUMBER_TYPE\020\t\022\026\n\022VALU" + + "E_OUT_OF_RANGE\020\n\022*\n&CALLTRACKING_NOT_SUP" + + "PORTED_FOR_COUNTRY\020\013\022-\n)CUSTOMER_NOT_WHI" + + "TELISTED_FOR_CALLTRACKING\020\014\022\030\n\024INVALID_C" + + "OUNTRY_CODE\020\r\022\022\n\016INVALID_APP_ID\020\016\022!\n\035MIS" + + "SING_ATTRIBUTES_FOR_FIELDS\020\017\022\023\n\017INVALID_" + + "TYPE_ID\020\020\022\031\n\025INVALID_EMAIL_ADDRESS\020\021\022\025\n\021" + + "INVALID_HTTPS_URL\020\022\022\034\n\030MISSING_DELIVERY_" + + "ADDRESS\020\023\022\035\n\031START_DATE_AFTER_END_DATE\020\024" + + "\022 \n\034MISSING_FEED_ITEM_START_TIME\020\025\022\036\n\032MI" + + "SSING_FEED_ITEM_END_TIME\020\026\022\030\n\024MISSING_FE" + + "ED_ITEM_ID\020\027\022#\n\037VANITY_PHONE_NUMBER_NOT_" + + "ALLOWED\020\030\022$\n INVALID_REVIEW_EXTENSION_SN" + + "IPPET\020\031\022\031\n\025INVALID_NUMBER_FORMAT\020\032\022\027\n\023IN" + + "VALID_DATE_FORMAT\020\033\022\030\n\024INVALID_PRICE_FOR" + + "MAT\020\034\022\035\n\031UNKNOWN_PLACEHOLDER_FIELD\020\035\022.\n*" + + "MISSING_ENHANCED_SITELINK_DESCRIPTION_LI" + + "NE\020\036\022&\n\"REVIEW_EXTENSION_SOURCE_INELIGIB" + + "LE\020\037\022\'\n#HYPHENS_IN_REVIEW_EXTENSION_SNIP" + + "PET\020 \022-\n)DOUBLE_QUOTES_IN_REVIEW_EXTENSI" + + "ON_SNIPPET\020!\022&\n\"QUOTES_IN_REVIEW_EXTENSI" + + "ON_SNIPPET\020\"\022\037\n\033INVALID_FORM_ENCODED_PAR" + + "AMS\020#\022\036\n\032INVALID_URL_PARAMETER_NAME\020$\022\027\n" + + "\023NO_GEOCODING_RESULT\020%\022(\n$SOURCE_NAME_IN" + + "_REVIEW_EXTENSION_TEXT\020&\022-\n)CARRIER_SPEC" + + "IFIC_SHORT_NUMBER_NOT_ALLOWED\020\'\022 \n\034INVAL" + + "ID_PLACEHOLDER_FIELD_ID\020(\022\023\n\017INVALID_URL" + + "_TAG\020)\022\021\n\rLIST_TOO_LONG\020*\022\"\n\036INVALID_ATT" + + "RIBUTES_COMBINATION\020+\022\024\n\020DUPLICATE_VALUE" + + "S\020,\022%\n!INVALID_CALL_CONVERSION_ACTION_ID" + + "\020-\022!\n\035CANNOT_SET_WITHOUT_FINAL_URLS\020.\022$\n" + + " APP_ID_DOESNT_EXIST_IN_APP_STORE\020/\022\025\n\021I" + + "NVALID_FINAL_URL\0200\022\030\n\024INVALID_TRACKING_U" + + "RL\0201\022*\n&INVALID_FINAL_URL_FOR_APP_DOWNLO" + + "AD_URL\0202\022\022\n\016LIST_TOO_SHORT\0203\022\027\n\023INVALID_" + + "USER_ACTION\0204\022\025\n\021INVALID_TYPE_NAME\0205\022\037\n\033" + + "INVALID_EVENT_CHANGE_STATUS\0206\022\033\n\027INVALID" + + "_SNIPPETS_HEADER\0207\022\034\n\030INVALID_ANDROID_AP" + + "P_LINK\0208\022;\n7NUMBER_TYPE_WITH_CALLTRACKIN" + + "G_NOT_SUPPORTED_FOR_COUNTRY\0209\022\032\n\026RESERVE" + + "D_KEYWORD_OTHER\020:\022\033\n\027DUPLICATE_OPTION_LA" + + "BELS\020;\022\035\n\031DUPLICATE_OPTION_PREFILLS\020<\022\030\n" + + "\024UNEQUAL_LIST_LENGTHS\020=\022\037\n\033INCONSISTENT_" + + "CURRENCY_CODES\020>\022*\n&PRICE_EXTENSION_HAS_" + + "DUPLICATED_HEADERS\020?\022.\n*ITEM_HAS_DUPLICA" + + "TED_HEADER_AND_DESCRIPTION\020@\022%\n!PRICE_EX" + + "TENSION_HAS_TOO_FEW_ITEMS\020A\022\025\n\021UNSUPPORT" + + "ED_VALUE\020B\022\034\n\030INVALID_FINAL_MOBILE_URL\020C" + + "\022%\n!INVALID_KEYWORDLESS_AD_RULE_LABEL\020D\022" + + "\'\n#VALUE_TRACK_PARAMETER_NOT_SUPPORTED\020E" + + "\022*\n&UNSUPPORTED_VALUE_IN_SELECTED_LANGUA" + + "GE\020F\022\030\n\024INVALID_IOS_APP_LINK\020G\022,\n(MISSIN" + + "G_IOS_APP_LINK_OR_IOS_APP_STORE_ID\020H\022\032\n\026" + + "PROMOTION_INVALID_TIME\020I\0229\n5PROMOTION_CA" + + "NNOT_SET_PERCENT_OFF_AND_MONEY_AMOUNT_OF" + + "F\020J\022>\n:PROMOTION_CANNOT_SET_PROMOTION_CO" + + "DE_AND_ORDERS_OVER_AMOUNT\020K\022%\n!TOO_MANY_" + + "DECIMAL_PLACES_SPECIFIED\020L\022\036\n\032AD_CUSTOMI" + + "ZERS_NOT_ALLOWED\020M\022\031\n\025INVALID_LANGUAGE_C" + + "ODE\020N\022\030\n\024UNSUPPORTED_LANGUAGE\020O\022\033\n\027IF_FU" + + "NCTION_NOT_ALLOWED\020P\022\034\n\030INVALID_FINAL_UR" + + "L_SUFFIX\020Q\022#\n\037INVALID_TAG_IN_FINAL_URL_S" + + "UFFIX\020R\022#\n\037INVALID_FINAL_URL_SUFFIX_FORM" + + "AT\020S\0220\n,CUSTOMER_CONSENT_FOR_CALL_RECORD" + + "ING_REQUIRED\020T\022\'\n#ONLY_ONE_DELIVERY_OPTI" + + "ON_IS_ALLOWED\020U\022\035\n\031NO_DELIVERY_OPTION_IS" + + "_SET\020V\022&\n\"INVALID_CONVERSION_REPORTING_S" + + "TATE\020W\022\024\n\020IMAGE_SIZE_WRONG\020X\022+\n\'EMAIL_DE" + + "LIVERY_NOT_AVAILABLE_IN_COUNTRY\020Y\022\'\n#AUT" + + "O_REPLY_NOT_AVAILABLE_IN_COUNTRY\020ZB\367\001\n\"c" + + "om.google.ads.googleads.v0.errorsB\034FeedI" + + "temValidationErrorProtoP\001ZDgoogle.golang" + + ".org/genproto/googleapis/ads/googleads/v" + + "0/errors;errors\242\002\003GAA\252\002\036Google.Ads.Googl" + + "eAds.V0.Errors\312\002\036Google\\Ads\\GoogleAds\\V0" + + "\\Errors\352\002\"Google::Ads::GoogleAds::V0::Er" + + "rorsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_google_ads_googleads_v0_errors_FeedItemValidationErrorEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_googleads_v0_errors_FeedItemValidationErrorEnum_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_errors_FeedItemValidationErrorEnum_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FeedMappingErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FeedMappingErrorProto.java index d3f3e10d45..cc1aa52b1c 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FeedMappingErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FeedMappingErrorProto.java @@ -48,13 +48,14 @@ public static void registerAllExtensions( "T_MODIFY_MAPPINGS_FOR_TYPED_FEED\020\020\022:\n6IN" + "VALID_PLACEHOLDER_TYPE_FOR_NON_SYSTEM_GE" + "NERATED_FEED\020\021\022;\n7INVALID_PLACEHOLDER_TY" + - "PE_FOR_SYSTEM_GENERATED_FEED_TYPE\020\022B\313\001\n\"" + + "PE_FOR_SYSTEM_GENERATED_FEED_TYPE\020\022B\360\001\n\"" + "com.google.ads.googleads.v0.errorsB\025Feed" + "MappingErrorProtoP\001ZDgoogle.golang.org/g" + "enproto/googleapis/ads/googleads/v0/erro" + "rs;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V" + "0.Errors\312\002\036Google\\Ads\\GoogleAds\\V0\\Error" + - "sb\006proto3" + "s\352\002\"Google::Ads::GoogleAds::V0::Errorsb\006" + + "proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FieldErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FieldErrorProto.java index 1816653dfd..948456f95f 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FieldErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FieldErrorProto.java @@ -35,12 +35,13 @@ public static void registerAllExtensions( "\022\023\n\017IMMUTABLE_FIELD\020\003\022\021\n\rINVALID_VALUE\020\004" + "\022\027\n\023VALUE_MUST_BE_UNSET\020\005\022\032\n\026REQUIRED_NO" + "NEMPTY_LIST\020\006\022\033\n\027FIELD_CANNOT_BE_CLEARED" + - "\020\007B\305\001\n\"com.google.ads.googleads.v0.error" + + "\020\007B\352\001\n\"com.google.ads.googleads.v0.error" + "sB\017FieldErrorProtoP\001ZDgoogle.golang.org/" + "genproto/googleapis/ads/googleads/v0/err" + "ors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds." + "V0.Errors\312\002\036Google\\Ads\\GoogleAds\\V0\\Erro" + - "rsb\006proto3" + "rs\352\002\"Google::Ads::GoogleAds::V0::Errorsb" + + "\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FieldMaskErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FieldMaskErrorProto.java index d0bc95de6e..9dcf268950 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FieldMaskErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FieldMaskErrorProto.java @@ -34,12 +34,13 @@ public static void registerAllExtensions( "MaskError\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022" + "\026\n\022FIELD_MASK_MISSING\020\005\022\032\n\026FIELD_MASK_NO" + "T_ALLOWED\020\004\022\023\n\017FIELD_NOT_FOUND\020\002\022\027\n\023FIEL" + - "D_HAS_SUBFIELDS\020\003B\311\001\n\"com.google.ads.goo" + + "D_HAS_SUBFIELDS\020\003B\356\001\n\"com.google.ads.goo" + "gleads.v0.errorsB\023FieldMaskErrorProtoP\001Z" + "Dgoogle.golang.org/genproto/googleapis/a" + "ds/googleads/v0/errors;errors\242\002\003GAA\252\002\036Go" + "ogle.Ads.GoogleAds.V0.Errors\312\002\036Google\\Ad" + - "s\\GoogleAds\\V0\\Errorsb\006proto3" + "s\\GoogleAds\\V0\\Errors\352\002\"Google::Ads::Goo" + + "gleAds::V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FunctionErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FunctionErrorProto.java index 045cf9d009..ec617f07ab 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FunctionErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FunctionErrorProto.java @@ -44,12 +44,13 @@ public static void registerAllExtensions( "ND_VALUE\020\r\022\023\n\017INVALID_NESTING\020\016\022#\n\037MULTI" + "PLE_FEED_IDS_NOT_SUPPORTED\020\017\022/\n+INVALID_" + "FUNCTION_FOR_FEED_WITH_FIXED_SCHEMA\020\020\022\032\n" + - "\026INVALID_ATTRIBUTE_NAME\020\021B\310\001\n\"com.google" + + "\026INVALID_ATTRIBUTE_NAME\020\021B\355\001\n\"com.google" + ".ads.googleads.v0.errorsB\022FunctionErrorP" + "rotoP\001ZDgoogle.golang.org/genproto/googl" + "eapis/ads/googleads/v0/errors;errors\242\002\003G" + "AA\252\002\036Google.Ads.GoogleAds.V0.Errors\312\002\036Go" + - "ogle\\Ads\\GoogleAds\\V0\\Errorsb\006proto3" + "ogle\\Ads\\GoogleAds\\V0\\Errors\352\002\"Google::A" + + "ds::GoogleAds::V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FunctionParsingErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FunctionParsingErrorProto.java index 1d2f81ac0f..cbd44195c6 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FunctionParsingErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/FunctionParsingErrorProto.java @@ -40,12 +40,13 @@ public static void registerAllExtensions( "RAND\020\010\022\031\n\025INVALID_OPERATOR_NAME\020\t\022/\n+FEE" + "D_ATTRIBUTE_OPERAND_ARGUMENT_NOT_INTEGER" + "\020\n\022\017\n\013NO_OPERANDS\020\013\022\025\n\021TOO_MANY_OPERANDS" + - "\020\014B\317\001\n\"com.google.ads.googleads.v0.error" + + "\020\014B\364\001\n\"com.google.ads.googleads.v0.error" + "sB\031FunctionParsingErrorProtoP\001ZDgoogle.g" + "olang.org/genproto/googleapis/ads/google" + "ads/v0/errors;errors\242\002\003GAA\252\002\036Google.Ads." + "GoogleAds.V0.Errors\312\002\036Google\\Ads\\GoogleA" + - "ds\\V0\\Errorsb\006proto3" + "ds\\V0\\Errors\352\002\"Google::Ads::GoogleAds::V" + + "0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/GeoTargetConstantSuggestionErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/GeoTargetConstantSuggestionErrorProto.java index 2bd50de0e1..d0a134976f 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/GeoTargetConstantSuggestionErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/GeoTargetConstantSuggestionErrorProto.java @@ -36,12 +36,13 @@ public static void registerAllExtensions( "\020\000\022\013\n\007UNKNOWN\020\001\022\034\n\030LOCATION_NAME_SIZE_LI" + "MIT\020\002\022\027\n\023LOCATION_NAME_LIMIT\020\003\022\030\n\024INVALI" + "D_COUNTRY_CODE\020\004\022\034\n\030REQUEST_PARAMETERS_U" + - "NSET\020\005B\333\001\n\"com.google.ads.googleads.v0.e" + + "NSET\020\005B\200\002\n\"com.google.ads.googleads.v0.e" + "rrorsB%GeoTargetConstantSuggestionErrorP" + "rotoP\001ZDgoogle.golang.org/genproto/googl" + "eapis/ads/googleads/v0/errors;errors\242\002\003G" + "AA\252\002\036Google.Ads.GoogleAds.V0.Errors\312\002\036Go" + - "ogle\\Ads\\GoogleAds\\V0\\Errorsb\006proto3" + "ogle\\Ads\\GoogleAds\\V0\\Errors\352\002\"Google::A" + + "ds::GoogleAds::V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/HeaderErrorEnum.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/HeaderErrorEnum.java index ca27782422..084bc5bd55 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/HeaderErrorEnum.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/HeaderErrorEnum.java @@ -110,14 +110,6 @@ public enum HeaderError * INVALID_LOGIN_CUSTOMER_ID = 3; */ INVALID_LOGIN_CUSTOMER_ID(3), - /** - *
-     * One or more task headers could not be parsed.
-     * 
- * - * MALFORMED_TASK_INFO = 4; - */ - MALFORMED_TASK_INFO(4), UNRECOGNIZED(-1), ; @@ -145,14 +137,6 @@ public enum HeaderError * INVALID_LOGIN_CUSTOMER_ID = 3; */ public static final int INVALID_LOGIN_CUSTOMER_ID_VALUE = 3; - /** - *
-     * One or more task headers could not be parsed.
-     * 
- * - * MALFORMED_TASK_INFO = 4; - */ - public static final int MALFORMED_TASK_INFO_VALUE = 4; public final int getNumber() { @@ -176,7 +160,6 @@ public static HeaderError forNumber(int value) { case 0: return UNSPECIFIED; case 1: return UNKNOWN; case 3: return INVALID_LOGIN_CUSTOMER_ID; - case 4: return MALFORMED_TASK_INFO; default: return null; } } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/HeaderErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/HeaderErrorProto.java index 8f3fcf0fd3..b8cb471d81 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/HeaderErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/HeaderErrorProto.java @@ -30,15 +30,15 @@ public static void registerAllExtensions( java.lang.String[] descriptorData = { "\n1google/ads/googleads/v0/errors/header_" + "error.proto\022\036google.ads.googleads.v0.err" + - "ors\"v\n\017HeaderErrorEnum\"c\n\013HeaderError\022\017\n" + + "ors\"]\n\017HeaderErrorEnum\"J\n\013HeaderError\022\017\n" + "\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\035\n\031INVALID_L" + - "OGIN_CUSTOMER_ID\020\003\022\027\n\023MALFORMED_TASK_INF" + - "O\020\004B\306\001\n\"com.google.ads.googleads.v0.erro" + - "rsB\020HeaderErrorProtoP\001ZDgoogle.golang.or" + - "g/genproto/googleapis/ads/googleads/v0/e" + - "rrors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAd" + - "s.V0.Errors\312\002\036Google\\Ads\\GoogleAds\\V0\\Er" + - "rorsb\006proto3" + "OGIN_CUSTOMER_ID\020\003B\353\001\n\"com.google.ads.go" + + "ogleads.v0.errorsB\020HeaderErrorProtoP\001ZDg" + + "oogle.golang.org/genproto/googleapis/ads" + + "/googleads/v0/errors;errors\242\002\003GAA\252\002\036Goog" + + "le.Ads.GoogleAds.V0.Errors\312\002\036Google\\Ads\\" + + "GoogleAds\\V0\\Errors\352\002\"Google::Ads::Googl" + + "eAds::V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/IdErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/IdErrorProto.java index 366cb27374..fd2252f0cc 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/IdErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/IdErrorProto.java @@ -31,12 +31,13 @@ public static void registerAllExtensions( "\n-google/ads/googleads/v0/errors/id_erro" + "r.proto\022\036google.ads.googleads.v0.errors\"" + "E\n\013IdErrorEnum\"6\n\007IdError\022\017\n\013UNSPECIFIED" + - "\020\000\022\013\n\007UNKNOWN\020\001\022\r\n\tNOT_FOUND\020\002B\302\001\n\"com.g" + + "\020\000\022\013\n\007UNKNOWN\020\001\022\r\n\tNOT_FOUND\020\002B\347\001\n\"com.g" + "oogle.ads.googleads.v0.errorsB\014IdErrorPr" + "otoP\001ZDgoogle.golang.org/genproto/google" + "apis/ads/googleads/v0/errors;errors\242\002\003GA" + "A\252\002\036Google.Ads.GoogleAds.V0.Errors\312\002\036Goo" + - "gle\\Ads\\GoogleAds\\V0\\Errorsb\006proto3" + "gle\\Ads\\GoogleAds\\V0\\Errors\352\002\"Google::Ad" + + "s::GoogleAds::V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ImageErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ImageErrorProto.java index d2f37cc465..5d6a868f0f 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ImageErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ImageErrorProto.java @@ -56,12 +56,13 @@ public static void registerAllExtensions( "\030\n\024IMAGE_DATA_TOO_LARGE\020\"\022\032\n\026IMAGE_PROCE" + "SSING_ERROR\020#\022\023\n\017IMAGE_TOO_SMALL\020$\022\021\n\rIN" + "VALID_INPUT\020%\022\030\n\024PROBLEM_READING_FILE\020&B" + - "\305\001\n\"com.google.ads.googleads.v0.errorsB\017" + + "\352\001\n\"com.google.ads.googleads.v0.errorsB\017" + "ImageErrorProtoP\001ZDgoogle.golang.org/gen" + "proto/googleapis/ads/googleads/v0/errors" + ";errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V0." + - "Errors\312\002\036Google\\Ads\\GoogleAds\\V0\\Errorsb" + - "\006proto3" + "Errors\312\002\036Google\\Ads\\GoogleAds\\V0\\Errors\352" + + "\002\"Google::Ads::GoogleAds::V0::Errorsb\006pr" + + "oto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/InternalErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/InternalErrorProto.java index 5a2d5cbd16..a39bd585b0 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/InternalErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/InternalErrorProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "rrors\"\211\001\n\021InternalErrorEnum\"t\n\rInternalE" + "rror\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\022\n\016IN" + "TERNAL_ERROR\020\002\022\034\n\030ERROR_CODE_NOT_PUBLISH" + - "ED\020\003\022\023\n\017TRANSIENT_ERROR\020\004B\310\001\n\"com.google" + + "ED\020\003\022\023\n\017TRANSIENT_ERROR\020\004B\355\001\n\"com.google" + ".ads.googleads.v0.errorsB\022InternalErrorP" + "rotoP\001ZDgoogle.golang.org/genproto/googl" + "eapis/ads/googleads/v0/errors;errors\242\002\003G" + "AA\252\002\036Google.Ads.GoogleAds.V0.Errors\312\002\036Go" + - "ogle\\Ads\\GoogleAds\\V0\\Errorsb\006proto3" + "ogle\\Ads\\GoogleAds\\V0\\Errors\352\002\"Google::A" + + "ds::GoogleAds::V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/KeywordPlanAdGroupErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/KeywordPlanAdGroupErrorProto.java index cd5a3843a4..007b19e002 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/KeywordPlanAdGroupErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/KeywordPlanAdGroupErrorProto.java @@ -33,13 +33,14 @@ public static void registerAllExtensions( "oogleads.v0.errors\"|\n\033KeywordPlanAdGroup" + "ErrorEnum\"]\n\027KeywordPlanAdGroupError\022\017\n\013" + "UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\020\n\014INVALID_NA" + - "ME\020\002\022\022\n\016DUPLICATE_NAME\020\003B\322\001\n\"com.google." + + "ME\020\002\022\022\n\016DUPLICATE_NAME\020\003B\367\001\n\"com.google." + "ads.googleads.v0.errorsB\034KeywordPlanAdGr" + "oupErrorProtoP\001ZDgoogle.golang.org/genpr" + "oto/googleapis/ads/googleads/v0/errors;e" + "rrors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V0.Er" + - "rors\312\002\036Google\\Ads\\GoogleAds\\V0\\Errorsb\006p" + - "roto3" + "rors\312\002\036Google\\Ads\\GoogleAds\\V0\\Errors\352\002\"" + + "Google::Ads::GoogleAds::V0::Errorsb\006prot" + + "o3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/KeywordPlanCampaignErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/KeywordPlanCampaignErrorProto.java index b4e6227433..d28cb77f68 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/KeywordPlanCampaignErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/KeywordPlanCampaignErrorProto.java @@ -35,12 +35,13 @@ public static void registerAllExtensions( "\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\020\n\014INVALI" + "D_NAME\020\002\022\025\n\021INVALID_LANGUAGES\020\003\022\020\n\014INVAL" + "ID_GEOS\020\004\022\022\n\016DUPLICATE_NAME\020\005\022\025\n\021MAX_GEO" + - "S_EXCEEDED\020\006B\323\001\n\"com.google.ads.googlead" + + "S_EXCEEDED\020\006B\370\001\n\"com.google.ads.googlead" + "s.v0.errorsB\035KeywordPlanCampaignErrorPro" + "toP\001ZDgoogle.golang.org/genproto/googlea" + "pis/ads/googleads/v0/errors;errors\242\002\003GAA" + "\252\002\036Google.Ads.GoogleAds.V0.Errors\312\002\036Goog" + - "le\\Ads\\GoogleAds\\V0\\Errorsb\006proto3" + "le\\Ads\\GoogleAds\\V0\\Errors\352\002\"Google::Ads" + + "::GoogleAds::V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/KeywordPlanErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/KeywordPlanErrorProto.java index 6f853603aa..3dc731649b 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/KeywordPlanErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/KeywordPlanErrorProto.java @@ -41,13 +41,13 @@ public static void registerAllExtensions( "WORD_PLAN_NOT_ENABLED\020\n\022\032\n\026KEYWORD_PLAN_" + "NOT_FOUND\020\013\022\017\n\013MISSING_BID\020\r\022\033\n\027MISSING_" + "FORECAST_PERIOD\020\016\022\037\n\033INVALID_FORECAST_DA" + - "TE_RANGE\020\017\022\020\n\014INVALID_NAME\020\020B\313\001\n\"com.goo" + + "TE_RANGE\020\017\022\020\n\014INVALID_NAME\020\020B\360\001\n\"com.goo" + "gle.ads.googleads.v0.errorsB\025KeywordPlan" + "ErrorProtoP\001ZDgoogle.golang.org/genproto" + "/googleapis/ads/googleads/v0/errors;erro" + "rs\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V0.Error" + - "s\312\002\036Google\\Ads\\GoogleAds\\V0\\Errorsb\006prot" + - "o3" + "s\312\002\036Google\\Ads\\GoogleAds\\V0\\Errors\352\002\"Goo" + + "gle::Ads::GoogleAds::V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/KeywordPlanIdeaErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/KeywordPlanIdeaErrorProto.java index 4df96da82a..846a094184 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/KeywordPlanIdeaErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/KeywordPlanIdeaErrorProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "eads.v0.errors\"x\n\030KeywordPlanIdeaErrorEn" + "um\"\\\n\024KeywordPlanIdeaError\022\017\n\013UNSPECIFIE" + "D\020\000\022\013\n\007UNKNOWN\020\001\022\023\n\017URL_CRAWL_ERROR\020\002\022\021\n" + - "\rINVALID_VALUE\020\003B\317\001\n\"com.google.ads.goog" + + "\rINVALID_VALUE\020\003B\364\001\n\"com.google.ads.goog" + "leads.v0.errorsB\031KeywordPlanIdeaErrorPro" + "toP\001ZDgoogle.golang.org/genproto/googlea" + "pis/ads/googleads/v0/errors;errors\242\002\003GAA" + "\252\002\036Google.Ads.GoogleAds.V0.Errors\312\002\036Goog" + - "le\\Ads\\GoogleAds\\V0\\Errorsb\006proto3" + "le\\Ads\\GoogleAds\\V0\\Errors\352\002\"Google::Ads" + + "::GoogleAds::V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/KeywordPlanKeywordErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/KeywordPlanKeywordErrorProto.java index c1aac46c24..fcb431f1d8 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/KeywordPlanKeywordErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/KeywordPlanKeywordErrorProto.java @@ -36,13 +36,14 @@ public static void registerAllExtensions( "EYWORD_MATCH_TYPE\020\002\022\025\n\021DUPLICATE_KEYWORD" + "\020\003\022\031\n\025KEYWORD_TEXT_TOO_LONG\020\004\022\035\n\031KEYWORD" + "_HAS_INVALID_CHARS\020\005\022\036\n\032KEYWORD_HAS_TOO_" + - "MANY_WORDS\020\006\022\030\n\024INVALID_KEYWORD_TEXT\020\007B\322" + + "MANY_WORDS\020\006\022\030\n\024INVALID_KEYWORD_TEXT\020\007B\367" + "\001\n\"com.google.ads.googleads.v0.errorsB\034K" + "eywordPlanKeywordErrorProtoP\001ZDgoogle.go" + "lang.org/genproto/googleapis/ads/googlea" + "ds/v0/errors;errors\242\002\003GAA\252\002\036Google.Ads.G" + "oogleAds.V0.Errors\312\002\036Google\\Ads\\GoogleAd" + - "s\\V0\\Errorsb\006proto3" + "s\\V0\\Errors\352\002\"Google::Ads::GoogleAds::V0" + + "::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/KeywordPlanNegativeKeywordErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/KeywordPlanNegativeKeywordErrorProto.java index 0f562b2769..6afcdf5a04 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/KeywordPlanNegativeKeywordErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/KeywordPlanNegativeKeywordErrorProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "le.ads.googleads.v0.errors\"f\n#KeywordPla" + "nNegativeKeywordErrorEnum\"?\n\037KeywordPlan" + "NegativeKeywordError\022\017\n\013UNSPECIFIED\020\000\022\013\n" + - "\007UNKNOWN\020\001B\332\001\n\"com.google.ads.googleads." + + "\007UNKNOWN\020\001B\377\001\n\"com.google.ads.googleads." + "v0.errorsB$KeywordPlanNegativeKeywordErr" + "orProtoP\001ZDgoogle.golang.org/genproto/go" + "ogleapis/ads/googleads/v0/errors;errors\242" + "\002\003GAA\252\002\036Google.Ads.GoogleAds.V0.Errors\312\002" + - "\036Google\\Ads\\GoogleAds\\V0\\Errorsb\006proto3" + "\036Google\\Ads\\GoogleAds\\V0\\Errors\352\002\"Google" + + "::Ads::GoogleAds::V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ListOperationErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ListOperationErrorProto.java index 71c74b899a..12cb9be186 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ListOperationErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ListOperationErrorProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "s.v0.errors\"~\n\026ListOperationErrorEnum\"d\n" + "\022ListOperationError\022\017\n\013UNSPECIFIED\020\000\022\013\n\007" + "UNKNOWN\020\001\022\032\n\026REQUIRED_FIELD_MISSING\020\007\022\024\n" + - "\020DUPLICATE_VALUES\020\010B\315\001\n\"com.google.ads.g" + + "\020DUPLICATE_VALUES\020\010B\362\001\n\"com.google.ads.g" + "oogleads.v0.errorsB\027ListOperationErrorPr" + "otoP\001ZDgoogle.golang.org/genproto/google" + "apis/ads/googleads/v0/errors;errors\242\002\003GA" + "A\252\002\036Google.Ads.GoogleAds.V0.Errors\312\002\036Goo" + - "gle\\Ads\\GoogleAds\\V0\\Errorsb\006proto3" + "gle\\Ads\\GoogleAds\\V0\\Errors\352\002\"Google::Ad" + + "s::GoogleAds::V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/MediaBundleErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/MediaBundleErrorProto.java index 40207c068d..6738118f26 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/MediaBundleErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/MediaBundleErrorProto.java @@ -47,13 +47,13 @@ public static void registerAllExtensions( "UNSUPPORTED_GOOGLE_WEB_DESIGNER_ENVIRONM" + "ENT\020\025\022\035\n\031UNSUPPORTED_HTML5_FEATURE\020\026\022)\n%" + "URL_IN_MEDIA_BUNDLE_NOT_SSL_COMPLIANT\020\027\022" + - "\033\n\027CUSTOM_EXIT_NOT_ALLOWED\020\030B\313\001\n\"com.goo" + + "\033\n\027CUSTOM_EXIT_NOT_ALLOWED\020\030B\360\001\n\"com.goo" + "gle.ads.googleads.v0.errorsB\025MediaBundle" + "ErrorProtoP\001ZDgoogle.golang.org/genproto" + "/googleapis/ads/googleads/v0/errors;erro" + "rs\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V0.Error" + - "s\312\002\036Google\\Ads\\GoogleAds\\V0\\Errorsb\006prot" + - "o3" + "s\312\002\036Google\\Ads\\GoogleAds\\V0\\Errors\352\002\"Goo" + + "gle::Ads::GoogleAds::V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/MediaFileErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/MediaFileErrorProto.java index d6a2710ff8..bb9b8c1775 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/MediaFileErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/MediaFileErrorProto.java @@ -50,12 +50,13 @@ public static void registerAllExtensions( "RTED_TYPE\020\025\022 \n\034YOU_TUBE_SERVICE_UNAVAILA" + "BLE\020\026\022,\n(YOU_TUBE_VIDEO_HAS_NON_POSITIVE" + "_DURATION\020\027\022\034\n\030YOU_TUBE_VIDEO_NOT_FOUND\020" + - "\030B\311\001\n\"com.google.ads.googleads.v0.errors" + + "\030B\356\001\n\"com.google.ads.googleads.v0.errors" + "B\023MediaFileErrorProtoP\001ZDgoogle.golang.o" + "rg/genproto/googleapis/ads/googleads/v0/" + "errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleA" + "ds.V0.Errors\312\002\036Google\\Ads\\GoogleAds\\V0\\E" + - "rrorsb\006proto3" + "rrors\352\002\"Google::Ads::GoogleAds::V0::Erro" + + "rsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/MultiplierErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/MultiplierErrorProto.java index ac92f973a8..2f9c18b19b 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/MultiplierErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/MultiplierErrorProto.java @@ -45,12 +45,13 @@ public static void registerAllExtensions( "D_MAX_ALLOWED_BID\020\013\0221\n-BID_LESS_THAN_MIN" + "_ALLOWED_BID_WITH_MULTIPLIER\020\014\0221\n-MULTIP" + "LIER_AND_BIDDING_STRATEGY_TYPE_MISMATCH\020" + - "\rB\312\001\n\"com.google.ads.googleads.v0.errors" + + "\rB\357\001\n\"com.google.ads.googleads.v0.errors" + "B\024MultiplierErrorProtoP\001ZDgoogle.golang." + "org/genproto/googleapis/ads/googleads/v0" + "/errors;errors\242\002\003GAA\252\002\036Google.Ads.Google" + "Ads.V0.Errors\312\002\036Google\\Ads\\GoogleAds\\V0\\" + - "Errorsb\006proto3" + "Errors\352\002\"Google::Ads::GoogleAds::V0::Err" + + "orsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/MutateErrorEnum.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/MutateErrorEnum.java index a9ea484199..24c2c07473 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/MutateErrorEnum.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/MutateErrorEnum.java @@ -135,6 +135,14 @@ public enum MutateError * MUTATE_NOT_ALLOWED = 9; */ MUTATE_NOT_ALLOWED(9), + /** + *
+     * The resource isn't in Google Ads. It belongs to another ads system.
+     * 
+ * + * RESOURCE_NOT_IN_GOOGLE_ADS = 10; + */ + RESOURCE_NOT_IN_GOOGLE_ADS(10), UNRECOGNIZED(-1), ; @@ -187,6 +195,14 @@ public enum MutateError * MUTATE_NOT_ALLOWED = 9; */ public static final int MUTATE_NOT_ALLOWED_VALUE = 9; + /** + *
+     * The resource isn't in Google Ads. It belongs to another ads system.
+     * 
+ * + * RESOURCE_NOT_IN_GOOGLE_ADS = 10; + */ + public static final int RESOURCE_NOT_IN_GOOGLE_ADS_VALUE = 10; public final int getNumber() { @@ -213,6 +229,7 @@ public static MutateError forNumber(int value) { case 7: return ID_EXISTS_IN_MULTIPLE_MUTATES; case 8: return INCONSISTENT_FIELD_VALUES; case 9: return MUTATE_NOT_ALLOWED; + case 10: return RESOURCE_NOT_IN_GOOGLE_ADS; default: return null; } } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/MutateErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/MutateErrorProto.java index 051789d1b8..edb0b3a943 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/MutateErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/MutateErrorProto.java @@ -30,16 +30,18 @@ public static void registerAllExtensions( java.lang.String[] descriptorData = { "\n1google/ads/googleads/v0/errors/mutate_" + "error.proto\022\036google.ads.googleads.v0.err" + - "ors\"\261\001\n\017MutateErrorEnum\"\235\001\n\013MutateError\022" + + "ors\"\321\001\n\017MutateErrorEnum\"\275\001\n\013MutateError\022" + "\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\026\n\022RESOURC" + "E_NOT_FOUND\020\003\022!\n\035ID_EXISTS_IN_MULTIPLE_M" + "UTATES\020\007\022\035\n\031INCONSISTENT_FIELD_VALUES\020\010\022" + - "\026\n\022MUTATE_NOT_ALLOWED\020\tB\306\001\n\"com.google.a" + - "ds.googleads.v0.errorsB\020MutateErrorProto" + - "P\001ZDgoogle.golang.org/genproto/googleapi" + - "s/ads/googleads/v0/errors;errors\242\002\003GAA\252\002" + - "\036Google.Ads.GoogleAds.V0.Errors\312\002\036Google" + - "\\Ads\\GoogleAds\\V0\\Errorsb\006proto3" + "\026\n\022MUTATE_NOT_ALLOWED\020\t\022\036\n\032RESOURCE_NOT_" + + "IN_GOOGLE_ADS\020\nB\353\001\n\"com.google.ads.googl" + + "eads.v0.errorsB\020MutateErrorProtoP\001ZDgoog" + + "le.golang.org/genproto/googleapis/ads/go" + + "ogleads/v0/errors;errors\242\002\003GAA\252\002\036Google." + + "Ads.GoogleAds.V0.Errors\312\002\036Google\\Ads\\Goo" + + "gleAds\\V0\\Errors\352\002\"Google::Ads::GoogleAd" + + "s::V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/NewResourceCreationErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/NewResourceCreationErrorProto.java index f7752ab6e1..990ce3b4bb 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/NewResourceCreationErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/NewResourceCreationErrorProto.java @@ -34,13 +34,14 @@ public static void registerAllExtensions( "onErrorEnum\"\217\001\n\030NewResourceCreationError" + "\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\034\n\030CANNOT" + "_SET_ID_FOR_CREATE\020\002\022\026\n\022DUPLICATE_TEMP_I" + - "DS\020\003\022\037\n\033TEMP_ID_RESOURCE_HAD_ERRORS\020\004B\323\001" + + "DS\020\003\022\037\n\033TEMP_ID_RESOURCE_HAD_ERRORS\020\004B\370\001" + "\n\"com.google.ads.googleads.v0.errorsB\035Ne" + "wResourceCreationErrorProtoP\001ZDgoogle.go" + "lang.org/genproto/googleapis/ads/googlea" + "ds/v0/errors;errors\242\002\003GAA\252\002\036Google.Ads.G" + "oogleAds.V0.Errors\312\002\036Google\\Ads\\GoogleAd" + - "s\\V0\\Errorsb\006proto3" + "s\\V0\\Errors\352\002\"Google::Ads::GoogleAds::V0" + + "::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/NotEmptyErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/NotEmptyErrorProto.java index 0e173f5b33..bad4fb45eb 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/NotEmptyErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/NotEmptyErrorProto.java @@ -32,12 +32,13 @@ public static void registerAllExtensions( "ty_error.proto\022\036google.ads.googleads.v0." + "errors\"R\n\021NotEmptyErrorEnum\"=\n\rNotEmptyE" + "rror\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\016\n\nEM" + - "PTY_LIST\020\002B\310\001\n\"com.google.ads.googleads." + + "PTY_LIST\020\002B\355\001\n\"com.google.ads.googleads." + "v0.errorsB\022NotEmptyErrorProtoP\001ZDgoogle." + "golang.org/genproto/googleapis/ads/googl" + "eads/v0/errors;errors\242\002\003GAA\252\002\036Google.Ads" + ".GoogleAds.V0.Errors\312\002\036Google\\Ads\\Google" + - "Ads\\V0\\Errorsb\006proto3" + "Ads\\V0\\Errors\352\002\"Google::Ads::GoogleAds::" + + "V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/NullErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/NullErrorProto.java index 9104b0fbf2..1e2b89a891 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/NullErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/NullErrorProto.java @@ -32,12 +32,13 @@ public static void registerAllExtensions( "ror.proto\022\036google.ads.googleads.v0.error" + "s\"L\n\rNullErrorEnum\";\n\tNullError\022\017\n\013UNSPE" + "CIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\020\n\014NULL_CONTENT\020\002B" + - "\304\001\n\"com.google.ads.googleads.v0.errorsB\016" + + "\351\001\n\"com.google.ads.googleads.v0.errorsB\016" + "NullErrorProtoP\001ZDgoogle.golang.org/genp" + "roto/googleapis/ads/googleads/v0/errors;" + "errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V0.E" + - "rrors\312\002\036Google\\Ads\\GoogleAds\\V0\\Errorsb\006" + - "proto3" + "rrors\312\002\036Google\\Ads\\GoogleAds\\V0\\Errors\352\002" + + "\"Google::Ads::GoogleAds::V0::Errorsb\006pro" + + "to3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/OperationAccessDeniedErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/OperationAccessDeniedErrorProto.java index ed598e8258..6a905800f1 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/OperationAccessDeniedErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/OperationAccessDeniedErrorProto.java @@ -42,13 +42,14 @@ public static void registerAllExtensions( "ED_NOT_PERMITTED\020\010\0220\n,OPERATION_NOT_PERM" + "ITTED_FOR_REMOVED_RESOURCE\020\t\022-\n)OPERATIO" + "N_NOT_PERMITTED_FOR_AD_GROUP_TYPE\020\n\022%\n!M" + - "UTATE_NOT_PERMITTED_FOR_CUSTOMER\020\013B\325\001\n\"c" + + "UTATE_NOT_PERMITTED_FOR_CUSTOMER\020\013B\372\001\n\"c" + "om.google.ads.googleads.v0.errorsB\037Opera" + "tionAccessDeniedErrorProtoP\001ZDgoogle.gol" + "ang.org/genproto/googleapis/ads/googlead" + "s/v0/errors;errors\242\002\003GAA\252\002\036Google.Ads.Go" + "ogleAds.V0.Errors\312\002\036Google\\Ads\\GoogleAds" + - "\\V0\\Errorsb\006proto3" + "\\V0\\Errors\352\002\"Google::Ads::GoogleAds::V0:" + + ":Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/OperatorErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/OperatorErrorProto.java index e0e36c8ac4..21dca6844e 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/OperatorErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/OperatorErrorProto.java @@ -32,12 +32,13 @@ public static void registerAllExtensions( "r_error.proto\022\036google.ads.googleads.v0.e" + "rrors\"^\n\021OperatorErrorEnum\"I\n\rOperatorEr" + "ror\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\032\n\026OPE" + - "RATOR_NOT_SUPPORTED\020\002B\310\001\n\"com.google.ads" + + "RATOR_NOT_SUPPORTED\020\002B\355\001\n\"com.google.ads" + ".googleads.v0.errorsB\022OperatorErrorProto" + "P\001ZDgoogle.golang.org/genproto/googleapi" + "s/ads/googleads/v0/errors;errors\242\002\003GAA\252\002" + "\036Google.Ads.GoogleAds.V0.Errors\312\002\036Google" + - "\\Ads\\GoogleAds\\V0\\Errorsb\006proto3" + "\\Ads\\GoogleAds\\V0\\Errors\352\002\"Google::Ads::" + + "GoogleAds::V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/PolicyFindingErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/PolicyFindingErrorProto.java index 80915e9ccf..5e9eeda0d4 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/PolicyFindingErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/PolicyFindingErrorProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "s.v0.errors\"|\n\026PolicyFindingErrorEnum\"b\n" + "\022PolicyFindingError\022\017\n\013UNSPECIFIED\020\000\022\013\n\007" + "UNKNOWN\020\001\022\022\n\016POLICY_FINDING\020\002\022\032\n\026POLICY_" + - "TOPIC_NOT_FOUND\020\003B\315\001\n\"com.google.ads.goo" + + "TOPIC_NOT_FOUND\020\003B\362\001\n\"com.google.ads.goo" + "gleads.v0.errorsB\027PolicyFindingErrorProt" + "oP\001ZDgoogle.golang.org/genproto/googleap" + "is/ads/googleads/v0/errors;errors\242\002\003GAA\252" + "\002\036Google.Ads.GoogleAds.V0.Errors\312\002\036Googl" + - "e\\Ads\\GoogleAds\\V0\\Errorsb\006proto3" + "e\\Ads\\GoogleAds\\V0\\Errors\352\002\"Google::Ads:" + + ":GoogleAds::V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/PolicyViolationErrorEnum.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/PolicyViolationErrorEnum.java new file mode 100644 index 0000000000..d1fe486b5c --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/PolicyViolationErrorEnum.java @@ -0,0 +1,556 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/errors/policy_violation_error.proto + +package com.google.ads.googleads.v0.errors; + +/** + *
+ * Container for enum describing possible policy violation errors.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.errors.PolicyViolationErrorEnum} + */ +public final class PolicyViolationErrorEnum extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.errors.PolicyViolationErrorEnum) + PolicyViolationErrorEnumOrBuilder { +private static final long serialVersionUID = 0L; + // Use PolicyViolationErrorEnum.newBuilder() to construct. + private PolicyViolationErrorEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PolicyViolationErrorEnum() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PolicyViolationErrorEnum( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.errors.PolicyViolationErrorProto.internal_static_google_ads_googleads_v0_errors_PolicyViolationErrorEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.errors.PolicyViolationErrorProto.internal_static_google_ads_googleads_v0_errors_PolicyViolationErrorEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum.class, com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum.Builder.class); + } + + /** + *
+   * Enum describing possible policy violation errors.
+   * 
+ * + * Protobuf enum {@code google.ads.googleads.v0.errors.PolicyViolationErrorEnum.PolicyViolationError} + */ + public enum PolicyViolationError + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Enum unspecified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + *
+     * The received error code is not known in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + UNKNOWN(1), + /** + *
+     * A policy was violated. See PolicyViolationDetails for more detail.
+     * 
+ * + * POLICY_ERROR = 2; + */ + POLICY_ERROR(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Enum unspecified.
+     * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + *
+     * The received error code is not known in this version.
+     * 
+ * + * UNKNOWN = 1; + */ + public static final int UNKNOWN_VALUE = 1; + /** + *
+     * A policy was violated. See PolicyViolationDetails for more detail.
+     * 
+ * + * POLICY_ERROR = 2; + */ + public static final int POLICY_ERROR_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; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PolicyViolationError valueOf(int value) { + return forNumber(value); + } + + public static PolicyViolationError forNumber(int value) { + switch (value) { + case 0: return UNSPECIFIED; + case 1: return UNKNOWN; + case 2: return POLICY_ERROR; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + PolicyViolationError> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PolicyViolationError findValueByNumber(int number) { + return PolicyViolationError.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + 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.ads.googleads.v0.errors.PolicyViolationErrorEnum.getDescriptor().getEnumTypes().get(0); + } + + private static final PolicyViolationError[] VALUES = values(); + + public static PolicyViolationError 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 PolicyViolationError(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.googleads.v0.errors.PolicyViolationErrorEnum.PolicyViolationError) + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.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.ads.googleads.v0.errors.PolicyViolationErrorEnum)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum other = (com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum 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.ads.googleads.v0.errors.PolicyViolationErrorEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum 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.ads.googleads.v0.errors.PolicyViolationErrorEnum parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum 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.ads.googleads.v0.errors.PolicyViolationErrorEnum parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum 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.ads.googleads.v0.errors.PolicyViolationErrorEnum 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; + } + /** + *
+   * Container for enum describing possible policy violation errors.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.errors.PolicyViolationErrorEnum} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.errors.PolicyViolationErrorEnum) + com.google.ads.googleads.v0.errors.PolicyViolationErrorEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.errors.PolicyViolationErrorProto.internal_static_google_ads_googleads_v0_errors_PolicyViolationErrorEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.errors.PolicyViolationErrorProto.internal_static_google_ads_googleads_v0_errors_PolicyViolationErrorEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum.class, com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.errors.PolicyViolationErrorProto.internal_static_google_ads_googleads_v0_errors_PolicyViolationErrorEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum getDefaultInstanceForType() { + return com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum build() { + com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum buildPartial() { + com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum result = new com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum) { + return mergeFrom((com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum other) { + if (other == com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.errors.PolicyViolationErrorEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.errors.PolicyViolationErrorEnum) + private static final com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum(); + } + + public static com.google.ads.googleads.v0.errors.PolicyViolationErrorEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyViolationErrorEnum parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PolicyViolationErrorEnum(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.errors.PolicyViolationErrorEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/PolicyViolationErrorEnumOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/PolicyViolationErrorEnumOrBuilder.java new file mode 100644 index 0000000000..fb79356b74 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/PolicyViolationErrorEnumOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/errors/policy_violation_error.proto + +package com.google.ads.googleads.v0.errors; + +public interface PolicyViolationErrorEnumOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.errors.PolicyViolationErrorEnum) + com.google.protobuf.MessageOrBuilder { +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CampaignGroupErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/PolicyViolationErrorProto.java similarity index 53% rename from google-ads/src/main/java/com/google/ads/googleads/v0/errors/CampaignGroupErrorProto.java rename to google-ads/src/main/java/com/google/ads/googleads/v0/errors/PolicyViolationErrorProto.java index d046fca9b2..0a211fc9ab 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/CampaignGroupErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/PolicyViolationErrorProto.java @@ -1,10 +1,10 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v0/errors/campaign_group_error.proto +// source: google/ads/googleads/v0/errors/policy_violation_error.proto package com.google.ads.googleads.v0.errors; -public final class CampaignGroupErrorProto { - private CampaignGroupErrorProto() {} +public final class PolicyViolationErrorProto { + private PolicyViolationErrorProto() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -15,10 +15,10 @@ public static void registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_googleads_v0_errors_CampaignGroupErrorEnum_descriptor; + internal_static_google_ads_googleads_v0_errors_PolicyViolationErrorEnum_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_googleads_v0_errors_CampaignGroupErrorEnum_fieldAccessorTable; + internal_static_google_ads_googleads_v0_errors_PolicyViolationErrorEnum_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -28,19 +28,18 @@ public static void registerAllExtensions( descriptor; static { java.lang.String[] descriptorData = { - "\n9google/ads/googleads/v0/errors/campaig" + - "n_group_error.proto\022\036google.ads.googlead" + - "s.v0.errors\"\316\001\n\026CampaignGroupErrorEnum\"\263" + - "\001\n\022CampaignGroupError\022\017\n\013UNSPECIFIED\020\000\022\013" + - "\n\007UNKNOWN\020\001\022A\n=CANNOT_REMOVE_CAMPAIGN_GR" + - "OUP_WITH_ENABLED_OR_PAUSED_CAMPAIGNS\020\002\022\022" + - "\n\016DUPLICATE_NAME\020\003\022(\n$CANNOT_MODIFY_REMO" + - "VED_CAMPAIGN_GROUP\020\004B\315\001\n\"com.google.ads." + - "googleads.v0.errorsB\027CampaignGroupErrorP" + - "rotoP\001ZDgoogle.golang.org/genproto/googl" + - "eapis/ads/googleads/v0/errors;errors\242\002\003G" + - "AA\252\002\036Google.Ads.GoogleAds.V0.Errors\312\002\036Go" + - "ogle\\Ads\\GoogleAds\\V0\\Errorsb\006proto3" + "\n;google/ads/googleads/v0/errors/policy_" + + "violation_error.proto\022\036google.ads.google" + + "ads.v0.errors\"b\n\030PolicyViolationErrorEnu" + + "m\"F\n\024PolicyViolationError\022\017\n\013UNSPECIFIED" + + "\020\000\022\013\n\007UNKNOWN\020\001\022\020\n\014POLICY_ERROR\020\002B\364\001\n\"co" + + "m.google.ads.googleads.v0.errorsB\031Policy" + + "ViolationErrorProtoP\001ZDgoogle.golang.org" + + "/genproto/googleapis/ads/googleads/v0/er" + + "rors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds" + + ".V0.Errors\312\002\036Google\\Ads\\GoogleAds\\V0\\Err" + + "ors\352\002\"Google::Ads::GoogleAds::V0::Errors" + + "b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -54,11 +53,11 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); - internal_static_google_ads_googleads_v0_errors_CampaignGroupErrorEnum_descriptor = + internal_static_google_ads_googleads_v0_errors_PolicyViolationErrorEnum_descriptor = getDescriptor().getMessageTypes().get(0); - internal_static_google_ads_googleads_v0_errors_CampaignGroupErrorEnum_fieldAccessorTable = new + internal_static_google_ads_googleads_v0_errors_PolicyViolationErrorEnum_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_googleads_v0_errors_CampaignGroupErrorEnum_descriptor, + internal_static_google_ads_googleads_v0_errors_PolicyViolationErrorEnum_descriptor, new java.lang.String[] { }); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/QueryErrorEnum.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/QueryErrorEnum.java index e4e3b0c3a6..802f5c2446 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/QueryErrorEnum.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/QueryErrorEnum.java @@ -506,6 +506,16 @@ public enum QueryError * UNEXPECTED_INPUT = 11; */ UNEXPECTED_INPUT(11), + /** + *
+     * Metrics cannot be requested for a manager account. To retrieve metrics,
+     * issue separate requests against each client account under the manager
+     * account.
+     * 
+ * + * REQUESTED_METRICS_FOR_MANAGER = 59; + */ + REQUESTED_METRICS_FOR_MANAGER(59), UNRECOGNIZED(-1), ; @@ -929,6 +939,16 @@ public enum QueryError * UNEXPECTED_INPUT = 11; */ public static final int UNEXPECTED_INPUT_VALUE = 11; + /** + *
+     * Metrics cannot be requested for a manager account. To retrieve metrics,
+     * issue separate requests against each client account under the manager
+     * account.
+     * 
+ * + * REQUESTED_METRICS_FOR_MANAGER = 59; + */ + public static final int REQUESTED_METRICS_FOR_MANAGER_VALUE = 59; public final int getNumber() { @@ -1000,6 +1020,7 @@ public static QueryError forNumber(int value) { case 47: return UNEXPECTED_FROM_CLAUSE; case 32: return UNRECOGNIZED_FIELD; case 11: return UNEXPECTED_INPUT; + case 59: return REQUESTED_METRICS_FOR_MANAGER; default: return null; } } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/QueryErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/QueryErrorProto.java index df49e7e8a3..0a72cc7a01 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/QueryErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/QueryErrorProto.java @@ -30,7 +30,7 @@ public static void registerAllExtensions( java.lang.String[] descriptorData = { "\n0google/ads/googleads/v0/errors/query_e" + "rror.proto\022\036google.ads.googleads.v0.erro" + - "rs\"\344\014\n\016QueryErrorEnum\"\321\014\n\nQueryError\022\017\n\013" + + "rs\"\207\r\n\016QueryErrorEnum\"\364\014\n\nQueryError\022\017\n\013" + "UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\017\n\013QUERY_ERRO" + "R\0202\022\025\n\021BAD_ENUM_CONSTANT\020\022\022\027\n\023BAD_ESCAPE" + "_SEQUENCE\020\007\022\022\n\016BAD_FIELD_NAME\020\014\022\023\n\017BAD_L" + @@ -71,12 +71,14 @@ public static void registerAllExtensions( "OO_MANY_SEGMENTS\020\"\022\033\n\027UNEXPECTED_END_OF_" + "QUERY\020\t\022\032\n\026UNEXPECTED_FROM_CLAUSE\020/\022\026\n\022U" + "NRECOGNIZED_FIELD\020 \022\024\n\020UNEXPECTED_INPUT\020" + - "\013B\305\001\n\"com.google.ads.googleads.v0.errors" + - "B\017QueryErrorProtoP\001ZDgoogle.golang.org/g" + - "enproto/googleapis/ads/googleads/v0/erro" + - "rs;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V" + - "0.Errors\312\002\036Google\\Ads\\GoogleAds\\V0\\Error" + - "sb\006proto3" + "\013\022!\n\035REQUESTED_METRICS_FOR_MANAGER\020;B\352\001\n" + + "\"com.google.ads.googleads.v0.errorsB\017Que" + + "ryErrorProtoP\001ZDgoogle.golang.org/genpro" + + "to/googleapis/ads/googleads/v0/errors;er" + + "rors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V0.Err" + + "ors\312\002\036Google\\Ads\\GoogleAds\\V0\\Errors\352\002\"G" + + "oogle::Ads::GoogleAds::V0::Errorsb\006proto" + + "3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/QuotaErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/QuotaErrorProto.java index e10b2d0555..8a47d822e3 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/QuotaErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/QuotaErrorProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "rs\"\217\001\n\016QuotaErrorEnum\"}\n\nQuotaError\022\017\n\013U" + "NSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\026\n\022RESOURCE_EX" + "HAUSTED\020\002\022\025\n\021ACCESS_PROHIBITED\020\003\022\"\n\036RESO" + - "URCE_TEMPORARILY_EXHAUSTED\020\004B\305\001\n\"com.goo" + + "URCE_TEMPORARILY_EXHAUSTED\020\004B\352\001\n\"com.goo" + "gle.ads.googleads.v0.errorsB\017QuotaErrorP" + "rotoP\001ZDgoogle.golang.org/genproto/googl" + "eapis/ads/googleads/v0/errors;errors\242\002\003G" + "AA\252\002\036Google.Ads.GoogleAds.V0.Errors\312\002\036Go" + - "ogle\\Ads\\GoogleAds\\V0\\Errorsb\006proto3" + "ogle\\Ads\\GoogleAds\\V0\\Errors\352\002\"Google::A" + + "ds::GoogleAds::V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/RangeErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/RangeErrorProto.java index 7da467cccc..b60c423327 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/RangeErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/RangeErrorProto.java @@ -32,12 +32,13 @@ public static void registerAllExtensions( "rror.proto\022\036google.ads.googleads.v0.erro" + "rs\"W\n\016RangeErrorEnum\"E\n\nRangeError\022\017\n\013UN" + "SPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\013\n\007TOO_LOW\020\002\022\014\n" + - "\010TOO_HIGH\020\003B\305\001\n\"com.google.ads.googleads" + + "\010TOO_HIGH\020\003B\352\001\n\"com.google.ads.googleads" + ".v0.errorsB\017RangeErrorProtoP\001ZDgoogle.go" + "lang.org/genproto/googleapis/ads/googlea" + "ds/v0/errors;errors\242\002\003GAA\252\002\036Google.Ads.G" + "oogleAds.V0.Errors\312\002\036Google\\Ads\\GoogleAd" + - "s\\V0\\Errorsb\006proto3" + "s\\V0\\Errors\352\002\"Google::Ads::GoogleAds::V0" + + "::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/RecommendationErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/RecommendationErrorProto.java index e94ba9b5fb..cf95affc2a 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/RecommendationErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/RecommendationErrorProto.java @@ -41,12 +41,13 @@ public static void registerAllExtensions( "OO_MANY_OPERATIONS\020\n\022\021\n\rNO_OPERATIONS\020\013\022" + "!\n\035DIFFERENT_TYPES_NOT_SUPPORTED\020\014\022\033\n\027DU" + "PLICATE_RESOURCE_NAME\020\r\022$\n RECOMMENDATIO" + - "N_ALREADY_DISMISSED\020\016B\316\001\n\"com.google.ads" + + "N_ALREADY_DISMISSED\020\016B\363\001\n\"com.google.ads" + ".googleads.v0.errorsB\030RecommendationErro" + "rProtoP\001ZDgoogle.golang.org/genproto/goo" + "gleapis/ads/googleads/v0/errors;errors\242\002" + "\003GAA\252\002\036Google.Ads.GoogleAds.V0.Errors\312\002\036" + - "Google\\Ads\\GoogleAds\\V0\\Errorsb\006proto3" + "Google\\Ads\\GoogleAds\\V0\\Errors\352\002\"Google:" + + ":Ads::GoogleAds::V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/RegionCodeErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/RegionCodeErrorProto.java index f363111903..0725e91a6d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/RegionCodeErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/RegionCodeErrorProto.java @@ -32,12 +32,13 @@ public static void registerAllExtensions( "code_error.proto\022\036google.ads.googleads.v" + "0.errors\"_\n\023RegionCodeErrorEnum\"H\n\017Regio" + "nCodeError\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001" + - "\022\027\n\023INVALID_REGION_CODE\020\002B\312\001\n\"com.google" + + "\022\027\n\023INVALID_REGION_CODE\020\002B\357\001\n\"com.google" + ".ads.googleads.v0.errorsB\024RegionCodeErro" + "rProtoP\001ZDgoogle.golang.org/genproto/goo" + "gleapis/ads/googleads/v0/errors;errors\242\002" + "\003GAA\252\002\036Google.Ads.GoogleAds.V0.Errors\312\002\036" + - "Google\\Ads\\GoogleAds\\V0\\Errorsb\006proto3" + "Google\\Ads\\GoogleAds\\V0\\Errors\352\002\"Google:" + + ":Ads::GoogleAds::V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/RequestErrorEnum.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/RequestErrorEnum.java index 6b3a0af8dd..6eddfd206a 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/RequestErrorEnum.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/RequestErrorEnum.java @@ -233,6 +233,14 @@ public enum RequestError * LOGIN_CUSTOMER_ID_PARAMETER_MISSING = 20; */ LOGIN_CUSTOMER_ID_PARAMETER_MISSING(20), + /** + *
+     * page_token is set in the validate only request
+     * 
+ * + * VALIDATE_ONLY_REQUEST_HAS_PAGE_TOKEN = 21; + */ + VALIDATE_ONLY_REQUEST_HAS_PAGE_TOKEN(21), UNRECOGNIZED(-1), ; @@ -383,6 +391,14 @@ public enum RequestError * LOGIN_CUSTOMER_ID_PARAMETER_MISSING = 20; */ public static final int LOGIN_CUSTOMER_ID_PARAMETER_MISSING_VALUE = 20; + /** + *
+     * page_token is set in the validate only request
+     * 
+ * + * VALIDATE_ONLY_REQUEST_HAS_PAGE_TOKEN = 21; + */ + public static final int VALIDATE_ONLY_REQUEST_HAS_PAGE_TOKEN_VALUE = 21; public final int getNumber() { @@ -421,6 +437,7 @@ public static RequestError forNumber(int value) { case 18: return INVALID_ENUM_VALUE; case 19: return DEVELOPER_TOKEN_PARAMETER_MISSING; case 20: return LOGIN_CUSTOMER_ID_PARAMETER_MISSING; + case 21: return VALIDATE_ONLY_REQUEST_HAS_PAGE_TOKEN; default: return null; } } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/RequestErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/RequestErrorProto.java index 5bd2ccad3f..d32382836c 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/RequestErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/RequestErrorProto.java @@ -30,7 +30,7 @@ public static void registerAllExtensions( java.lang.String[] descriptorData = { "\n2google/ads/googleads/v0/errors/request" + "_error.proto\022\036google.ads.googleads.v0.er" + - "rors\"\214\004\n\020RequestErrorEnum\"\367\003\n\014RequestErr" + + "rors\"\266\004\n\020RequestErrorEnum\"\241\004\n\014RequestErr" + "or\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\031\n\025RESO" + "URCE_NAME_MISSING\020\003\022\033\n\027RESOURCE_NAME_MAL" + "FORMED\020\004\022\023\n\017BAD_RESOURCE_ID\020\021\022\027\n\023INVALID" + @@ -43,12 +43,14 @@ public static void registerAllExtensions( "NNOT_MODIFY_FOREIGN_FIELD\020\017\022\026\n\022INVALID_E" + "NUM_VALUE\020\022\022%\n!DEVELOPER_TOKEN_PARAMETER" + "_MISSING\020\023\022\'\n#LOGIN_CUSTOMER_ID_PARAMETE" + - "R_MISSING\020\024B\307\001\n\"com.google.ads.googleads" + - ".v0.errorsB\021RequestErrorProtoP\001ZDgoogle." + - "golang.org/genproto/googleapis/ads/googl" + - "eads/v0/errors;errors\242\002\003GAA\252\002\036Google.Ads" + - ".GoogleAds.V0.Errors\312\002\036Google\\Ads\\Google" + - "Ads\\V0\\Errorsb\006proto3" + "R_MISSING\020\024\022(\n$VALIDATE_ONLY_REQUEST_HAS" + + "_PAGE_TOKEN\020\025B\354\001\n\"com.google.ads.googlea" + + "ds.v0.errorsB\021RequestErrorProtoP\001ZDgoogl" + + "e.golang.org/genproto/googleapis/ads/goo" + + "gleads/v0/errors;errors\242\002\003GAA\252\002\036Google.A" + + "ds.GoogleAds.V0.Errors\312\002\036Google\\Ads\\Goog" + + "leAds\\V0\\Errors\352\002\"Google::Ads::GoogleAds" + + "::V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ResourceAccessDeniedErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ResourceAccessDeniedErrorProto.java index f03cfd567d..7604811780 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ResourceAccessDeniedErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ResourceAccessDeniedErrorProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( "googleads.v0.errors\"s\n\035ResourceAccessDen" + "iedErrorEnum\"R\n\031ResourceAccessDeniedErro" + "r\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\027\n\023WRITE" + - "_ACCESS_DENIED\020\003B\324\001\n\"com.google.ads.goog" + + "_ACCESS_DENIED\020\003B\371\001\n\"com.google.ads.goog" + "leads.v0.errorsB\036ResourceAccessDeniedErr" + "orProtoP\001ZDgoogle.golang.org/genproto/go" + "ogleapis/ads/googleads/v0/errors;errors\242" + "\002\003GAA\252\002\036Google.Ads.GoogleAds.V0.Errors\312\002" + - "\036Google\\Ads\\GoogleAds\\V0\\Errorsb\006proto3" + "\036Google\\Ads\\GoogleAds\\V0\\Errors\352\002\"Google" + + "::Ads::GoogleAds::V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ResourceCountLimitExceededErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ResourceCountLimitExceededErrorProto.java index d52227f54c..14a263311f 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ResourceCountLimitExceededErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/ResourceCountLimitExceededErrorProto.java @@ -38,12 +38,13 @@ public static void registerAllExtensions( "UP_AD_LIMIT\020\005\022\034\n\030AD_GROUP_CRITERION_LIMI" + "T\020\006\022\024\n\020SHARED_SET_LIMIT\020\007\022\033\n\027MATCHING_FU" + "NCTION_LIMIT\020\010\022\037\n\033RESPONSE_ROW_LIMIT_EXC" + - "EEDED\020\tB\332\001\n\"com.google.ads.googleads.v0." + + "EEDED\020\tB\377\001\n\"com.google.ads.googleads.v0." + "errorsB$ResourceCountLimitExceededErrorP" + "rotoP\001ZDgoogle.golang.org/genproto/googl" + "eapis/ads/googleads/v0/errors;errors\242\002\003G" + "AA\252\002\036Google.Ads.GoogleAds.V0.Errors\312\002\036Go" + - "ogle\\Ads\\GoogleAds\\V0\\Errorsb\006proto3" + "ogle\\Ads\\GoogleAds\\V0\\Errors\352\002\"Google::A" + + "ds::GoogleAds::V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/SettingErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/SettingErrorProto.java index bdb557aca2..8de8d93ece 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/SettingErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/SettingErrorProto.java @@ -57,12 +57,13 @@ public static void registerAllExtensions( "O_MANY_IMAGE_MEDIA_IDS_IN_UNIVERSAL_APP_" + "CAMPAIGN\020\021\0221\n-MEDIA_INCOMPATIBLE_FOR_UNI" + "VERSAL_APP_CAMPAIGN\020\022\022\036\n\032TOO_MANY_EXCLAM" + - "ATION_MARKS\020\023B\307\001\n\"com.google.ads.googlea" + + "ATION_MARKS\020\023B\354\001\n\"com.google.ads.googlea" + "ds.v0.errorsB\021SettingErrorProtoP\001ZDgoogl" + "e.golang.org/genproto/googleapis/ads/goo" + "gleads/v0/errors;errors\242\002\003GAA\252\002\036Google.A" + "ds.GoogleAds.V0.Errors\312\002\036Google\\Ads\\Goog" + - "leAds\\V0\\Errorsb\006proto3" + "leAds\\V0\\Errors\352\002\"Google::Ads::GoogleAds" + + "::V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/SharedCriterionErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/SharedCriterionErrorProto.java index 69c5efbc63..23ec600d87 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/SharedCriterionErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/SharedCriterionErrorProto.java @@ -33,13 +33,14 @@ public static void registerAllExtensions( "ads.v0.errors\"\204\001\n\030SharedCriterionErrorEn" + "um\"h\n\024SharedCriterionError\022\017\n\013UNSPECIFIE" + "D\020\000\022\013\n\007UNKNOWN\020\001\0222\n.CRITERION_TYPE_NOT_A" + - "LLOWED_FOR_SHARED_SET_TYPE\020\002B\317\001\n\"com.goo" + + "LLOWED_FOR_SHARED_SET_TYPE\020\002B\364\001\n\"com.goo" + "gle.ads.googleads.v0.errorsB\031SharedCrite" + "rionErrorProtoP\001ZDgoogle.golang.org/genp" + "roto/googleapis/ads/googleads/v0/errors;" + "errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V0.E" + - "rrors\312\002\036Google\\Ads\\GoogleAds\\V0\\Errorsb\006" + - "proto3" + "rrors\312\002\036Google\\Ads\\GoogleAds\\V0\\Errors\352\002" + + "\"Google::Ads::GoogleAds::V0::Errorsb\006pro" + + "to3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/SharedSetErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/SharedSetErrorProto.java index ea7e21870a..430c28c2a9 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/SharedSetErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/SharedSetErrorProto.java @@ -34,13 +34,14 @@ public static void registerAllExtensions( "dSetError\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022" + "2\n.CUSTOMER_CANNOT_CREATE_SHARED_SET_OF_" + "THIS_TYPE\020\002\022\022\n\016DUPLICATE_NAME\020\003\022\026\n\022SHARE" + - "D_SET_REMOVED\020\004\022\025\n\021SHARED_SET_IN_USE\020\005B\311" + + "D_SET_REMOVED\020\004\022\025\n\021SHARED_SET_IN_USE\020\005B\356" + "\001\n\"com.google.ads.googleads.v0.errorsB\023S" + "haredSetErrorProtoP\001ZDgoogle.golang.org/" + "genproto/googleapis/ads/googleads/v0/err" + "ors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds." + "V0.Errors\312\002\036Google\\Ads\\GoogleAds\\V0\\Erro" + - "rsb\006proto3" + "rs\352\002\"Google::Ads::GoogleAds::V0::Errorsb" + + "\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/StringFormatErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/StringFormatErrorProto.java index cd975b2919..97bd588fb9 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/StringFormatErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/StringFormatErrorProto.java @@ -33,12 +33,13 @@ public static void registerAllExtensions( ".v0.errors\"q\n\025StringFormatErrorEnum\"X\n\021S" + "tringFormatError\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNK" + "NOWN\020\001\022\021\n\rILLEGAL_CHARS\020\002\022\022\n\016INVALID_FOR" + - "MAT\020\003B\314\001\n\"com.google.ads.googleads.v0.er" + + "MAT\020\003B\361\001\n\"com.google.ads.googleads.v0.er" + "rorsB\026StringFormatErrorProtoP\001ZDgoogle.g" + "olang.org/genproto/googleapis/ads/google" + "ads/v0/errors;errors\242\002\003GAA\252\002\036Google.Ads." + "GoogleAds.V0.Errors\312\002\036Google\\Ads\\GoogleA" + - "ds\\V0\\Errorsb\006proto3" + "ds\\V0\\Errors\352\002\"Google::Ads::GoogleAds::V" + + "0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/StringLengthErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/StringLengthErrorProto.java index 6bebe8c225..9cc3aa6bda 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/StringLengthErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/StringLengthErrorProto.java @@ -32,13 +32,14 @@ public static void registerAllExtensions( "length_error.proto\022\036google.ads.googleads" + ".v0.errors\"g\n\025StringLengthErrorEnum\"N\n\021S" + "tringLengthError\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNK" + - "NOWN\020\001\022\r\n\tTOO_SHORT\020\002\022\014\n\010TOO_LONG\020\003B\314\001\n\"" + + "NOWN\020\001\022\r\n\tTOO_SHORT\020\002\022\014\n\010TOO_LONG\020\003B\361\001\n\"" + "com.google.ads.googleads.v0.errorsB\026Stri" + "ngLengthErrorProtoP\001ZDgoogle.golang.org/" + "genproto/googleapis/ads/googleads/v0/err" + "ors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds." + "V0.Errors\312\002\036Google\\Ads\\GoogleAds\\V0\\Erro" + - "rsb\006proto3" + "rs\352\002\"Google::Ads::GoogleAds::V0::Errorsb" + + "\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/UrlFieldErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/UrlFieldErrorProto.java index a8743b39e4..e3bca7e0e6 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/UrlFieldErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/UrlFieldErrorProto.java @@ -75,12 +75,13 @@ public static void registerAllExtensions( "RMED\0202\022#\n\037INVALID_TAG_IN_FINAL_URL_SUFFI" + "X\0203\022\034\n\030INVALID_TOP_LEVEL_DOMAIN\0205\022\036\n\032MAL" + "FORMED_TOP_LEVEL_DOMAIN\0206\022\021\n\rMALFORMED_U" + - "RL\0207\022\020\n\014MISSING_HOST\0208B\310\001\n\"com.google.ad" + + "RL\0207\022\020\n\014MISSING_HOST\0208B\355\001\n\"com.google.ad" + "s.googleads.v0.errorsB\022UrlFieldErrorProt" + "oP\001ZDgoogle.golang.org/genproto/googleap" + "is/ads/googleads/v0/errors;errors\242\002\003GAA\252" + "\002\036Google.Ads.GoogleAds.V0.Errors\312\002\036Googl" + - "e\\Ads\\GoogleAds\\V0\\Errorsb\006proto3" + "e\\Ads\\GoogleAds\\V0\\Errors\352\002\"Google::Ads:" + + ":GoogleAds::V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/UserListErrorEnum.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/UserListErrorEnum.java index 482d41a4e2..82b8738c29 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/UserListErrorEnum.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/UserListErrorEnum.java @@ -217,7 +217,8 @@ public enum UserListError OWNERSHIP_REQUIRED_FOR_SET(15), /** *
-     * The user list of the type is not mutable.
+     * Creating user list without setting type in oneof user_list field, or
+     * creating/updating read-only user list types is not allowed.
      * 
* * USER_LIST_MUTATE_NOT_SUPPORTED = 16; @@ -291,6 +292,31 @@ public enum UserListError * ADVERTISER_NOT_WHITELISTED_FOR_USING_UPLOADED_DATA = 33; */ ADVERTISER_NOT_WHITELISTED_FOR_USING_UPLOADED_DATA(33), + /** + *
+     * The provided rule_type is not supported for the user list.
+     * 
+ * + * RULE_TYPE_IS_NOT_SUPPORTED = 34; + */ + RULE_TYPE_IS_NOT_SUPPORTED(34), + /** + *
+     * Similar user list cannot be used as a logical user list operand.
+     * 
+ * + * CAN_NOT_ADD_A_SIMILAR_USERLIST_AS_LOGICAL_LIST_OPERAND = 35; + */ + CAN_NOT_ADD_A_SIMILAR_USERLIST_AS_LOGICAL_LIST_OPERAND(35), + /** + *
+     * Logical user list should not have a mix of CRM based user list and other
+     * types of lists in its rules.
+     * 
+ * + * CAN_NOT_MIX_CRM_BASED_IN_LOGICAL_LIST_WITH_OTHER_LISTS = 36; + */ + CAN_NOT_MIX_CRM_BASED_IN_LOGICAL_LIST_WITH_OTHER_LISTS(36), UNRECOGNIZED(-1), ; @@ -425,7 +451,8 @@ public enum UserListError public static final int OWNERSHIP_REQUIRED_FOR_SET_VALUE = 15; /** *
-     * The user list of the type is not mutable.
+     * Creating user list without setting type in oneof user_list field, or
+     * creating/updating read-only user list types is not allowed.
      * 
* * USER_LIST_MUTATE_NOT_SUPPORTED = 16; @@ -499,6 +526,31 @@ public enum UserListError * ADVERTISER_NOT_WHITELISTED_FOR_USING_UPLOADED_DATA = 33; */ public static final int ADVERTISER_NOT_WHITELISTED_FOR_USING_UPLOADED_DATA_VALUE = 33; + /** + *
+     * The provided rule_type is not supported for the user list.
+     * 
+ * + * RULE_TYPE_IS_NOT_SUPPORTED = 34; + */ + public static final int RULE_TYPE_IS_NOT_SUPPORTED_VALUE = 34; + /** + *
+     * Similar user list cannot be used as a logical user list operand.
+     * 
+ * + * CAN_NOT_ADD_A_SIMILAR_USERLIST_AS_LOGICAL_LIST_OPERAND = 35; + */ + public static final int CAN_NOT_ADD_A_SIMILAR_USERLIST_AS_LOGICAL_LIST_OPERAND_VALUE = 35; + /** + *
+     * Logical user list should not have a mix of CRM based user list and other
+     * types of lists in its rules.
+     * 
+ * + * CAN_NOT_MIX_CRM_BASED_IN_LOGICAL_LIST_WITH_OTHER_LISTS = 36; + */ + public static final int CAN_NOT_MIX_CRM_BASED_IN_LOGICAL_LIST_WITH_OTHER_LISTS_VALUE = 36; public final int getNumber() { @@ -544,6 +596,9 @@ public static UserListError forNumber(int value) { case 31: return APP_ID_NOT_SET; case 32: return USERLIST_NAME_IS_RESERVED_FOR_SYSTEM_LIST; case 33: return ADVERTISER_NOT_WHITELISTED_FOR_USING_UPLOADED_DATA; + case 34: return RULE_TYPE_IS_NOT_SUPPORTED; + case 35: return CAN_NOT_ADD_A_SIMILAR_USERLIST_AS_LOGICAL_LIST_OPERAND; + case 36: return CAN_NOT_MIX_CRM_BASED_IN_LOGICAL_LIST_WITH_OTHER_LISTS; default: return null; } } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/UserListErrorProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/UserListErrorProto.java index c460717ddd..b792da9e43 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/errors/UserListErrorProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/errors/UserListErrorProto.java @@ -30,7 +30,7 @@ public static void registerAllExtensions( java.lang.String[] descriptorData = { "\n4google/ads/googleads/v0/errors/user_li" + "st_error.proto\022\036google.ads.googleads.v0." + - "errors\"\324\006\n\021UserListErrorEnum\"\276\006\n\rUserLis" + + "errors\"\354\007\n\021UserListErrorEnum\"\326\007\n\rUserLis" + "tError\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\0227\n3" + "EXTERNAL_REMARKETING_USER_LIST_MUTATE_NO" + "T_SUPPORTED\020\002\022\032\n\026CONCRETE_TYPE_REQUIRED\020" + @@ -51,12 +51,17 @@ public static void registerAllExtensions( "BLE_RECORD_COUNT\020\036\022\022\n\016APP_ID_NOT_SET\020\037\022-" + "\n)USERLIST_NAME_IS_RESERVED_FOR_SYSTEM_L" + "IST\020 \0226\n2ADVERTISER_NOT_WHITELISTED_FOR_" + - "USING_UPLOADED_DATA\020!B\310\001\n\"com.google.ads" + - ".googleads.v0.errorsB\022UserListErrorProto" + - "P\001ZDgoogle.golang.org/genproto/googleapi" + - "s/ads/googleads/v0/errors;errors\242\002\003GAA\252\002" + - "\036Google.Ads.GoogleAds.V0.Errors\312\002\036Google" + - "\\Ads\\GoogleAds\\V0\\Errorsb\006proto3" + "USING_UPLOADED_DATA\020!\022\036\n\032RULE_TYPE_IS_NO" + + "T_SUPPORTED\020\"\022:\n6CAN_NOT_ADD_A_SIMILAR_U" + + "SERLIST_AS_LOGICAL_LIST_OPERAND\020#\022:\n6CAN" + + "_NOT_MIX_CRM_BASED_IN_LOGICAL_LIST_WITH_" + + "OTHER_LISTS\020$B\355\001\n\"com.google.ads.googlea" + + "ds.v0.errorsB\022UserListErrorProtoP\001ZDgoog" + + "le.golang.org/genproto/googleapis/ads/go" + + "ogleads/v0/errors;errors\242\002\003GAA\252\002\036Google." + + "Ads.GoogleAds.V0.Errors\312\002\036Google\\Ads\\Goo" + + "gleAds\\V0\\Errors\352\002\"Google::Ads::GoogleAd" + + "s::V0::Errorsb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AccountBudgetProposalProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AccountBudgetProposalProto.java index 0bb47de05b..030dd77969 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AccountBudgetProposalProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AccountBudgetProposalProto.java @@ -80,12 +80,13 @@ public static void registerAllExtensions( "mitTypeH\004B\025\n\023proposed_start_timeB\023\n\021prop" + "osed_end_timeB\023\n\021approved_end_timeB\031\n\027pr" + "oposed_spending_limitB\031\n\027approved_spendi" + - "ng_limitB\337\001\n%com.google.ads.googleads.v0" + + "ng_limitB\207\002\n%com.google.ads.googleads.v0" + ".resourcesB\032AccountBudgetProposalProtoP\001" + "ZJgoogle.golang.org/genproto/googleapis/" + "ads/googleads/v0/resources;resources\242\002\003G" + "AA\252\002!Google.Ads.GoogleAds.V0.Resources\312\002" + - "!Google\\Ads\\GoogleAds\\V0\\Resourcesb\006prot" + + "!Google\\Ads\\GoogleAds\\V0\\Resources\352\002%Goo" + + "gle::Ads::GoogleAds::V0::Resourcesb\006prot" + "o3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AccountBudgetProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AccountBudgetProto.java index 24c7a92091..01fc088509 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AccountBudgetProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AccountBudgetProto.java @@ -104,12 +104,13 @@ public static void registerAllExtensions( "\n\016spending_limitB\023\n\021proposed_end_timeB\023\n" + "\021approved_end_timeB\031\n\027proposed_spending_" + "limitB\031\n\027approved_spending_limitB\031\n\027adju" + - "sted_spending_limitB\327\001\n%com.google.ads.g" + + "sted_spending_limitB\377\001\n%com.google.ads.g" + "oogleads.v0.resourcesB\022AccountBudgetProt" + "oP\001ZJgoogle.golang.org/genproto/googleap" + "is/ads/googleads/v0/resources;resources\242" + "\002\003GAA\252\002!Google.Ads.GoogleAds.V0.Resource" + - "s\312\002!Google\\Ads\\GoogleAds\\V0\\Resourcesb\006p" + + "s\312\002!Google\\Ads\\GoogleAds\\V0\\Resources\352\002%" + + "Google::Ads::GoogleAds::V0::Resourcesb\006p" + "roto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/Ad.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/Ad.java index 1131563a10..411456a0b8 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/Ad.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/Ad.java @@ -309,6 +309,20 @@ private Ad( break; } + case 194: { + com.google.ads.googleads.v0.common.VideoAdInfo.Builder subBuilder = null; + if (adDataCase_ == 24) { + subBuilder = ((com.google.ads.googleads.v0.common.VideoAdInfo) adData_).toBuilder(); + } + adData_ = + input.readMessage(com.google.ads.googleads.v0.common.VideoAdInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.ads.googleads.v0.common.VideoAdInfo) adData_); + adData_ = subBuilder.buildPartial(); + } + adDataCase_ = 24; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -366,6 +380,7 @@ public enum AdDataCase SHOPPING_PRODUCT_AD(18), GMAIL_AD(21), IMAGE_AD(22), + VIDEO_AD(24), ADDATA_NOT_SET(0); private final int value; private AdDataCase(int value) { @@ -392,6 +407,7 @@ public static AdDataCase forNumber(int value) { case 18: return SHOPPING_PRODUCT_AD; case 21: return GMAIL_AD; case 22: return IMAGE_AD; + case 24: return VIDEO_AD; case 0: return ADDATA_NOT_SET; default: return null; } @@ -1259,6 +1275,44 @@ public com.google.ads.googleads.v0.common.ImageAdInfoOrBuilder getImageAdOrBuild return com.google.ads.googleads.v0.common.ImageAdInfo.getDefaultInstance(); } + public static final int VIDEO_AD_FIELD_NUMBER = 24; + /** + *
+   * Details pertaining to a Video ad.
+   * 
+ * + * .google.ads.googleads.v0.common.VideoAdInfo video_ad = 24; + */ + public boolean hasVideoAd() { + return adDataCase_ == 24; + } + /** + *
+   * Details pertaining to a Video ad.
+   * 
+ * + * .google.ads.googleads.v0.common.VideoAdInfo video_ad = 24; + */ + public com.google.ads.googleads.v0.common.VideoAdInfo getVideoAd() { + if (adDataCase_ == 24) { + return (com.google.ads.googleads.v0.common.VideoAdInfo) adData_; + } + return com.google.ads.googleads.v0.common.VideoAdInfo.getDefaultInstance(); + } + /** + *
+   * Details pertaining to a Video ad.
+   * 
+ * + * .google.ads.googleads.v0.common.VideoAdInfo video_ad = 24; + */ + public com.google.ads.googleads.v0.common.VideoAdInfoOrBuilder getVideoAdOrBuilder() { + if (adDataCase_ == 24) { + return (com.google.ads.googleads.v0.common.VideoAdInfo) adData_; + } + return com.google.ads.googleads.v0.common.VideoAdInfo.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -1336,6 +1390,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (name_ != null) { output.writeMessage(23, getName()); } + if (adDataCase_ == 24) { + output.writeMessage(24, (com.google.ads.googleads.v0.common.VideoAdInfo) adData_); + } unknownFields.writeTo(output); } @@ -1429,6 +1486,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(23, getName()); } + if (adDataCase_ == 24) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(24, (com.google.ads.googleads.v0.common.VideoAdInfo) adData_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1526,6 +1587,10 @@ public boolean equals(final java.lang.Object obj) { result = result && getImageAd() .equals(other.getImageAd()); break; + case 24: + result = result && getVideoAd() + .equals(other.getVideoAd()); + break; case 0: default: } @@ -1621,6 +1686,10 @@ public int hashCode() { hash = (37 * hash) + IMAGE_AD_FIELD_NUMBER; hash = (53 * hash) + getImageAd().hashCode(); break; + case 24: + hash = (37 * hash) + VIDEO_AD_FIELD_NUMBER; + hash = (53 * hash) + getVideoAd().hashCode(); + break; case 0: default: } @@ -1977,6 +2046,13 @@ public com.google.ads.googleads.v0.resources.Ad buildPartial() { result.adData_ = imageAdBuilder_.build(); } } + if (adDataCase_ == 24) { + if (videoAdBuilder_ == null) { + result.adData_ = adData_; + } else { + result.adData_ = videoAdBuilder_.build(); + } + } result.bitField0_ = to_bitField0_; result.adDataCase_ = adDataCase_; onBuilt(); @@ -2171,6 +2247,10 @@ public Builder mergeFrom(com.google.ads.googleads.v0.resources.Ad other) { mergeImageAd(other.getImageAd()); break; } + case VIDEO_AD: { + mergeVideoAd(other.getVideoAd()); + break; + } case ADDATA_NOT_SET: { break; } @@ -6111,6 +6191,178 @@ public com.google.ads.googleads.v0.common.ImageAdInfoOrBuilder getImageAdOrBuild onChanged();; return imageAdBuilder_; } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.VideoAdInfo, com.google.ads.googleads.v0.common.VideoAdInfo.Builder, com.google.ads.googleads.v0.common.VideoAdInfoOrBuilder> videoAdBuilder_; + /** + *
+     * Details pertaining to a Video ad.
+     * 
+ * + * .google.ads.googleads.v0.common.VideoAdInfo video_ad = 24; + */ + public boolean hasVideoAd() { + return adDataCase_ == 24; + } + /** + *
+     * Details pertaining to a Video ad.
+     * 
+ * + * .google.ads.googleads.v0.common.VideoAdInfo video_ad = 24; + */ + public com.google.ads.googleads.v0.common.VideoAdInfo getVideoAd() { + if (videoAdBuilder_ == null) { + if (adDataCase_ == 24) { + return (com.google.ads.googleads.v0.common.VideoAdInfo) adData_; + } + return com.google.ads.googleads.v0.common.VideoAdInfo.getDefaultInstance(); + } else { + if (adDataCase_ == 24) { + return videoAdBuilder_.getMessage(); + } + return com.google.ads.googleads.v0.common.VideoAdInfo.getDefaultInstance(); + } + } + /** + *
+     * Details pertaining to a Video ad.
+     * 
+ * + * .google.ads.googleads.v0.common.VideoAdInfo video_ad = 24; + */ + public Builder setVideoAd(com.google.ads.googleads.v0.common.VideoAdInfo value) { + if (videoAdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + adData_ = value; + onChanged(); + } else { + videoAdBuilder_.setMessage(value); + } + adDataCase_ = 24; + return this; + } + /** + *
+     * Details pertaining to a Video ad.
+     * 
+ * + * .google.ads.googleads.v0.common.VideoAdInfo video_ad = 24; + */ + public Builder setVideoAd( + com.google.ads.googleads.v0.common.VideoAdInfo.Builder builderForValue) { + if (videoAdBuilder_ == null) { + adData_ = builderForValue.build(); + onChanged(); + } else { + videoAdBuilder_.setMessage(builderForValue.build()); + } + adDataCase_ = 24; + return this; + } + /** + *
+     * Details pertaining to a Video ad.
+     * 
+ * + * .google.ads.googleads.v0.common.VideoAdInfo video_ad = 24; + */ + public Builder mergeVideoAd(com.google.ads.googleads.v0.common.VideoAdInfo value) { + if (videoAdBuilder_ == null) { + if (adDataCase_ == 24 && + adData_ != com.google.ads.googleads.v0.common.VideoAdInfo.getDefaultInstance()) { + adData_ = com.google.ads.googleads.v0.common.VideoAdInfo.newBuilder((com.google.ads.googleads.v0.common.VideoAdInfo) adData_) + .mergeFrom(value).buildPartial(); + } else { + adData_ = value; + } + onChanged(); + } else { + if (adDataCase_ == 24) { + videoAdBuilder_.mergeFrom(value); + } + videoAdBuilder_.setMessage(value); + } + adDataCase_ = 24; + return this; + } + /** + *
+     * Details pertaining to a Video ad.
+     * 
+ * + * .google.ads.googleads.v0.common.VideoAdInfo video_ad = 24; + */ + public Builder clearVideoAd() { + if (videoAdBuilder_ == null) { + if (adDataCase_ == 24) { + adDataCase_ = 0; + adData_ = null; + onChanged(); + } + } else { + if (adDataCase_ == 24) { + adDataCase_ = 0; + adData_ = null; + } + videoAdBuilder_.clear(); + } + return this; + } + /** + *
+     * Details pertaining to a Video ad.
+     * 
+ * + * .google.ads.googleads.v0.common.VideoAdInfo video_ad = 24; + */ + public com.google.ads.googleads.v0.common.VideoAdInfo.Builder getVideoAdBuilder() { + return getVideoAdFieldBuilder().getBuilder(); + } + /** + *
+     * Details pertaining to a Video ad.
+     * 
+ * + * .google.ads.googleads.v0.common.VideoAdInfo video_ad = 24; + */ + public com.google.ads.googleads.v0.common.VideoAdInfoOrBuilder getVideoAdOrBuilder() { + if ((adDataCase_ == 24) && (videoAdBuilder_ != null)) { + return videoAdBuilder_.getMessageOrBuilder(); + } else { + if (adDataCase_ == 24) { + return (com.google.ads.googleads.v0.common.VideoAdInfo) adData_; + } + return com.google.ads.googleads.v0.common.VideoAdInfo.getDefaultInstance(); + } + } + /** + *
+     * Details pertaining to a Video ad.
+     * 
+ * + * .google.ads.googleads.v0.common.VideoAdInfo video_ad = 24; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.VideoAdInfo, com.google.ads.googleads.v0.common.VideoAdInfo.Builder, com.google.ads.googleads.v0.common.VideoAdInfoOrBuilder> + getVideoAdFieldBuilder() { + if (videoAdBuilder_ == null) { + if (!(adDataCase_ == 24)) { + adData_ = com.google.ads.googleads.v0.common.VideoAdInfo.getDefaultInstance(); + } + videoAdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.VideoAdInfo, com.google.ads.googleads.v0.common.VideoAdInfo.Builder, com.google.ads.googleads.v0.common.VideoAdInfoOrBuilder>( + (com.google.ads.googleads.v0.common.VideoAdInfo) adData_, + getParentForChildren(), + isClean()); + adData_ = null; + } + adDataCase_ = 24; + onChanged();; + return videoAdBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroup.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroup.java index 9760624997..4d55028e40 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroup.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroup.java @@ -26,6 +26,8 @@ private AdGroup() { adRotationMode_ = 0; urlCustomParameters_ = java.util.Collections.emptyList(); displayCustomBidDimension_ = 0; + effectiveTargetCpaSource_ = 0; + effectiveTargetRoasSource_ = 0; } @java.lang.Override @@ -157,19 +159,6 @@ private AdGroup( break; } - case 130: { - com.google.protobuf.Int64Value.Builder subBuilder = null; - if (cpaBidMicros_ != null) { - subBuilder = cpaBidMicros_.toBuilder(); - } - cpaBidMicros_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cpaBidMicros_); - cpaBidMicros_ = subBuilder.buildPartial(); - } - - break; - } case 138: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (cpvBidMicros_ != null) { @@ -183,19 +172,6 @@ private AdGroup( break; } - case 154: { - com.google.protobuf.DoubleValue.Builder subBuilder = null; - if (targetRoasOverride_ != null) { - subBuilder = targetRoasOverride_.toBuilder(); - } - targetRoasOverride_ = input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(targetRoasOverride_); - targetRoasOverride_ = subBuilder.buildPartial(); - } - - break; - } case 162: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (percentCpcBidMicros_ != null) { @@ -247,6 +223,96 @@ private AdGroup( break; } + case 202: { + com.google.ads.googleads.v0.common.TargetingSetting.Builder subBuilder = null; + if (targetingSetting_ != null) { + subBuilder = targetingSetting_.toBuilder(); + } + targetingSetting_ = input.readMessage(com.google.ads.googleads.v0.common.TargetingSetting.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(targetingSetting_); + targetingSetting_ = subBuilder.buildPartial(); + } + + break; + } + case 210: { + com.google.protobuf.Int64Value.Builder subBuilder = null; + if (targetCpmMicros_ != null) { + subBuilder = targetCpmMicros_.toBuilder(); + } + targetCpmMicros_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(targetCpmMicros_); + targetCpmMicros_ = subBuilder.buildPartial(); + } + + break; + } + case 218: { + com.google.protobuf.Int64Value.Builder subBuilder = null; + if (targetCpaMicros_ != null) { + subBuilder = targetCpaMicros_.toBuilder(); + } + targetCpaMicros_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(targetCpaMicros_); + targetCpaMicros_ = subBuilder.buildPartial(); + } + + break; + } + case 226: { + com.google.protobuf.Int64Value.Builder subBuilder = null; + if (effectiveTargetCpaMicros_ != null) { + subBuilder = effectiveTargetCpaMicros_.toBuilder(); + } + effectiveTargetCpaMicros_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(effectiveTargetCpaMicros_); + effectiveTargetCpaMicros_ = subBuilder.buildPartial(); + } + + break; + } + case 232: { + int rawValue = input.readEnum(); + + effectiveTargetCpaSource_ = rawValue; + break; + } + case 242: { + com.google.protobuf.DoubleValue.Builder subBuilder = null; + if (targetRoas_ != null) { + subBuilder = targetRoas_.toBuilder(); + } + targetRoas_ = input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(targetRoas_); + targetRoas_ = subBuilder.buildPartial(); + } + + break; + } + case 250: { + com.google.protobuf.DoubleValue.Builder subBuilder = null; + if (effectiveTargetRoas_ != null) { + subBuilder = effectiveTargetRoas_.toBuilder(); + } + effectiveTargetRoas_ = input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(effectiveTargetRoas_); + effectiveTargetRoas_ = subBuilder.buildPartial(); + } + + break; + } + case 256: { + int rawValue = input.readEnum(); + + effectiveTargetRoasSource_ = rawValue; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -677,37 +743,37 @@ public com.google.protobuf.Int64ValueOrBuilder getCpmBidMicrosOrBuilder() { return getCpmBidMicros(); } - public static final int CPA_BID_MICROS_FIELD_NUMBER = 16; - private com.google.protobuf.Int64Value cpaBidMicros_; + public static final int TARGET_CPA_MICROS_FIELD_NUMBER = 27; + private com.google.protobuf.Int64Value targetCpaMicros_; /** *
-   * The target cost-per-acquisition (conversion) bid.
+   * The target CPA (cost-per-acquisition).
    * 
* - * .google.protobuf.Int64Value cpa_bid_micros = 16; + * .google.protobuf.Int64Value target_cpa_micros = 27; */ - public boolean hasCpaBidMicros() { - return cpaBidMicros_ != null; + public boolean hasTargetCpaMicros() { + return targetCpaMicros_ != null; } /** *
-   * The target cost-per-acquisition (conversion) bid.
+   * The target CPA (cost-per-acquisition).
    * 
* - * .google.protobuf.Int64Value cpa_bid_micros = 16; + * .google.protobuf.Int64Value target_cpa_micros = 27; */ - public com.google.protobuf.Int64Value getCpaBidMicros() { - return cpaBidMicros_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : cpaBidMicros_; + public com.google.protobuf.Int64Value getTargetCpaMicros() { + return targetCpaMicros_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : targetCpaMicros_; } /** *
-   * The target cost-per-acquisition (conversion) bid.
+   * The target CPA (cost-per-acquisition).
    * 
* - * .google.protobuf.Int64Value cpa_bid_micros = 16; + * .google.protobuf.Int64Value target_cpa_micros = 27; */ - public com.google.protobuf.Int64ValueOrBuilder getCpaBidMicrosOrBuilder() { - return getCpaBidMicros(); + public com.google.protobuf.Int64ValueOrBuilder getTargetCpaMicrosOrBuilder() { + return getTargetCpaMicros(); } public static final int CPV_BID_MICROS_FIELD_NUMBER = 17; @@ -743,46 +809,82 @@ public com.google.protobuf.Int64ValueOrBuilder getCpvBidMicrosOrBuilder() { return getCpvBidMicros(); } - public static final int TARGET_ROAS_OVERRIDE_FIELD_NUMBER = 19; - private com.google.protobuf.DoubleValue targetRoasOverride_; + public static final int TARGET_CPM_MICROS_FIELD_NUMBER = 26; + private com.google.protobuf.Int64Value targetCpmMicros_; + /** + *
+   * Average amount in micros that the advertiser is willing to pay for every
+   * thousand times the ad is shown.
+   * 
+ * + * .google.protobuf.Int64Value target_cpm_micros = 26; + */ + public boolean hasTargetCpmMicros() { + return targetCpmMicros_ != null; + } + /** + *
+   * Average amount in micros that the advertiser is willing to pay for every
+   * thousand times the ad is shown.
+   * 
+ * + * .google.protobuf.Int64Value target_cpm_micros = 26; + */ + public com.google.protobuf.Int64Value getTargetCpmMicros() { + return targetCpmMicros_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : targetCpmMicros_; + } + /** + *
+   * Average amount in micros that the advertiser is willing to pay for every
+   * thousand times the ad is shown.
+   * 
+ * + * .google.protobuf.Int64Value target_cpm_micros = 26; + */ + public com.google.protobuf.Int64ValueOrBuilder getTargetCpmMicrosOrBuilder() { + return getTargetCpmMicros(); + } + + public static final int TARGET_ROAS_FIELD_NUMBER = 30; + private com.google.protobuf.DoubleValue targetRoas_; /** *
-   * The target return on ad spend (ROAS) override. If the ad group's campaign
+   * The target ROAS (return-on-ad-spend) override. If the ad group's campaign
    * bidding strategy is a standard Target ROAS strategy, then this field
    * overrides the target ROAS specified in the campaign's bidding strategy.
    * Otherwise, this value is ignored.
    * 
* - * .google.protobuf.DoubleValue target_roas_override = 19; + * .google.protobuf.DoubleValue target_roas = 30; */ - public boolean hasTargetRoasOverride() { - return targetRoasOverride_ != null; + public boolean hasTargetRoas() { + return targetRoas_ != null; } /** *
-   * The target return on ad spend (ROAS) override. If the ad group's campaign
+   * The target ROAS (return-on-ad-spend) override. If the ad group's campaign
    * bidding strategy is a standard Target ROAS strategy, then this field
    * overrides the target ROAS specified in the campaign's bidding strategy.
    * Otherwise, this value is ignored.
    * 
* - * .google.protobuf.DoubleValue target_roas_override = 19; + * .google.protobuf.DoubleValue target_roas = 30; */ - public com.google.protobuf.DoubleValue getTargetRoasOverride() { - return targetRoasOverride_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : targetRoasOverride_; + public com.google.protobuf.DoubleValue getTargetRoas() { + return targetRoas_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : targetRoas_; } /** *
-   * The target return on ad spend (ROAS) override. If the ad group's campaign
+   * The target ROAS (return-on-ad-spend) override. If the ad group's campaign
    * bidding strategy is a standard Target ROAS strategy, then this field
    * overrides the target ROAS specified in the campaign's bidding strategy.
    * Otherwise, this value is ignored.
    * 
* - * .google.protobuf.DoubleValue target_roas_override = 19; + * .google.protobuf.DoubleValue target_roas = 30; */ - public com.google.protobuf.DoubleValueOrBuilder getTargetRoasOverrideOrBuilder() { - return getTargetRoasOverride(); + public com.google.protobuf.DoubleValueOrBuilder getTargetRoasOrBuilder() { + return getTargetRoas(); } public static final int PERCENT_CPC_BID_MICROS_FIELD_NUMBER = 20; @@ -919,6 +1021,165 @@ public com.google.protobuf.StringValueOrBuilder getFinalUrlSuffixOrBuilder() { return getFinalUrlSuffix(); } + public static final int TARGETING_SETTING_FIELD_NUMBER = 25; + private com.google.ads.googleads.v0.common.TargetingSetting targetingSetting_; + /** + *
+   * Setting for targeting related features.
+   * 
+ * + * .google.ads.googleads.v0.common.TargetingSetting targeting_setting = 25; + */ + public boolean hasTargetingSetting() { + return targetingSetting_ != null; + } + /** + *
+   * Setting for targeting related features.
+   * 
+ * + * .google.ads.googleads.v0.common.TargetingSetting targeting_setting = 25; + */ + public com.google.ads.googleads.v0.common.TargetingSetting getTargetingSetting() { + return targetingSetting_ == null ? com.google.ads.googleads.v0.common.TargetingSetting.getDefaultInstance() : targetingSetting_; + } + /** + *
+   * Setting for targeting related features.
+   * 
+ * + * .google.ads.googleads.v0.common.TargetingSetting targeting_setting = 25; + */ + public com.google.ads.googleads.v0.common.TargetingSettingOrBuilder getTargetingSettingOrBuilder() { + return getTargetingSetting(); + } + + public static final int EFFECTIVE_TARGET_CPA_MICROS_FIELD_NUMBER = 28; + private com.google.protobuf.Int64Value effectiveTargetCpaMicros_; + /** + *
+   * The effective target CPA (cost-per-acquisition).
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value effective_target_cpa_micros = 28; + */ + public boolean hasEffectiveTargetCpaMicros() { + return effectiveTargetCpaMicros_ != null; + } + /** + *
+   * The effective target CPA (cost-per-acquisition).
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value effective_target_cpa_micros = 28; + */ + public com.google.protobuf.Int64Value getEffectiveTargetCpaMicros() { + return effectiveTargetCpaMicros_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : effectiveTargetCpaMicros_; + } + /** + *
+   * The effective target CPA (cost-per-acquisition).
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value effective_target_cpa_micros = 28; + */ + public com.google.protobuf.Int64ValueOrBuilder getEffectiveTargetCpaMicrosOrBuilder() { + return getEffectiveTargetCpaMicros(); + } + + public static final int EFFECTIVE_TARGET_CPA_SOURCE_FIELD_NUMBER = 29; + private int effectiveTargetCpaSource_; + /** + *
+   * Source of the effective target CPA.
+   * This field is read-only.
+   * 
+ * + * .google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource effective_target_cpa_source = 29; + */ + public int getEffectiveTargetCpaSourceValue() { + return effectiveTargetCpaSource_; + } + /** + *
+   * Source of the effective target CPA.
+   * This field is read-only.
+   * 
+ * + * .google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource effective_target_cpa_source = 29; + */ + public com.google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource getEffectiveTargetCpaSource() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource result = com.google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource.valueOf(effectiveTargetCpaSource_); + return result == null ? com.google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource.UNRECOGNIZED : result; + } + + public static final int EFFECTIVE_TARGET_ROAS_FIELD_NUMBER = 31; + private com.google.protobuf.DoubleValue effectiveTargetRoas_; + /** + *
+   * The effective target ROAS (return-on-ad-spend).
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.DoubleValue effective_target_roas = 31; + */ + public boolean hasEffectiveTargetRoas() { + return effectiveTargetRoas_ != null; + } + /** + *
+   * The effective target ROAS (return-on-ad-spend).
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.DoubleValue effective_target_roas = 31; + */ + public com.google.protobuf.DoubleValue getEffectiveTargetRoas() { + return effectiveTargetRoas_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : effectiveTargetRoas_; + } + /** + *
+   * The effective target ROAS (return-on-ad-spend).
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.DoubleValue effective_target_roas = 31; + */ + public com.google.protobuf.DoubleValueOrBuilder getEffectiveTargetRoasOrBuilder() { + return getEffectiveTargetRoas(); + } + + public static final int EFFECTIVE_TARGET_ROAS_SOURCE_FIELD_NUMBER = 32; + private int effectiveTargetRoasSource_; + /** + *
+   * Source of the effective target ROAS.
+   * This field is read-only.
+   * 
+ * + * .google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource effective_target_roas_source = 32; + */ + public int getEffectiveTargetRoasSourceValue() { + return effectiveTargetRoasSource_; + } + /** + *
+   * Source of the effective target ROAS.
+   * This field is read-only.
+   * 
+ * + * .google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource effective_target_roas_source = 32; + */ + public com.google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource getEffectiveTargetRoasSource() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource result = com.google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource.valueOf(effectiveTargetRoasSource_); + return result == null ? com.google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -963,15 +1224,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (cpmBidMicros_ != null) { output.writeMessage(15, getCpmBidMicros()); } - if (cpaBidMicros_ != null) { - output.writeMessage(16, getCpaBidMicros()); - } if (cpvBidMicros_ != null) { output.writeMessage(17, getCpvBidMicros()); } - if (targetRoasOverride_ != null) { - output.writeMessage(19, getTargetRoasOverride()); - } if (percentCpcBidMicros_ != null) { output.writeMessage(20, getPercentCpcBidMicros()); } @@ -987,6 +1242,30 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (finalUrlSuffix_ != null) { output.writeMessage(24, getFinalUrlSuffix()); } + if (targetingSetting_ != null) { + output.writeMessage(25, getTargetingSetting()); + } + if (targetCpmMicros_ != null) { + output.writeMessage(26, getTargetCpmMicros()); + } + if (targetCpaMicros_ != null) { + output.writeMessage(27, getTargetCpaMicros()); + } + if (effectiveTargetCpaMicros_ != null) { + output.writeMessage(28, getEffectiveTargetCpaMicros()); + } + if (effectiveTargetCpaSource_ != com.google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource.UNSPECIFIED.getNumber()) { + output.writeEnum(29, effectiveTargetCpaSource_); + } + if (targetRoas_ != null) { + output.writeMessage(30, getTargetRoas()); + } + if (effectiveTargetRoas_ != null) { + output.writeMessage(31, getEffectiveTargetRoas()); + } + if (effectiveTargetRoasSource_ != com.google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource.UNSPECIFIED.getNumber()) { + output.writeEnum(32, effectiveTargetRoasSource_); + } unknownFields.writeTo(output); } @@ -1035,18 +1314,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, getCpmBidMicros()); } - if (cpaBidMicros_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getCpaBidMicros()); - } if (cpvBidMicros_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, getCpvBidMicros()); } - if (targetRoasOverride_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, getTargetRoasOverride()); - } if (percentCpcBidMicros_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(20, getPercentCpcBidMicros()); @@ -1067,6 +1338,38 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(24, getFinalUrlSuffix()); } + if (targetingSetting_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(25, getTargetingSetting()); + } + if (targetCpmMicros_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(26, getTargetCpmMicros()); + } + if (targetCpaMicros_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(27, getTargetCpaMicros()); + } + if (effectiveTargetCpaMicros_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(28, getEffectiveTargetCpaMicros()); + } + if (effectiveTargetCpaSource_ != com.google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(29, effectiveTargetCpaSource_); + } + if (targetRoas_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(30, getTargetRoas()); + } + if (effectiveTargetRoas_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(31, getEffectiveTargetRoas()); + } + if (effectiveTargetRoasSource_ != com.google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(32, effectiveTargetRoasSource_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1120,20 +1423,25 @@ public boolean equals(final java.lang.Object obj) { result = result && getCpmBidMicros() .equals(other.getCpmBidMicros()); } - result = result && (hasCpaBidMicros() == other.hasCpaBidMicros()); - if (hasCpaBidMicros()) { - result = result && getCpaBidMicros() - .equals(other.getCpaBidMicros()); + result = result && (hasTargetCpaMicros() == other.hasTargetCpaMicros()); + if (hasTargetCpaMicros()) { + result = result && getTargetCpaMicros() + .equals(other.getTargetCpaMicros()); } result = result && (hasCpvBidMicros() == other.hasCpvBidMicros()); if (hasCpvBidMicros()) { result = result && getCpvBidMicros() .equals(other.getCpvBidMicros()); } - result = result && (hasTargetRoasOverride() == other.hasTargetRoasOverride()); - if (hasTargetRoasOverride()) { - result = result && getTargetRoasOverride() - .equals(other.getTargetRoasOverride()); + result = result && (hasTargetCpmMicros() == other.hasTargetCpmMicros()); + if (hasTargetCpmMicros()) { + result = result && getTargetCpmMicros() + .equals(other.getTargetCpmMicros()); + } + result = result && (hasTargetRoas() == other.hasTargetRoas()); + if (hasTargetRoas()) { + result = result && getTargetRoas() + .equals(other.getTargetRoas()); } result = result && (hasPercentCpcBidMicros() == other.hasPercentCpcBidMicros()); if (hasPercentCpcBidMicros()) { @@ -1151,6 +1459,23 @@ public boolean equals(final java.lang.Object obj) { result = result && getFinalUrlSuffix() .equals(other.getFinalUrlSuffix()); } + result = result && (hasTargetingSetting() == other.hasTargetingSetting()); + if (hasTargetingSetting()) { + result = result && getTargetingSetting() + .equals(other.getTargetingSetting()); + } + result = result && (hasEffectiveTargetCpaMicros() == other.hasEffectiveTargetCpaMicros()); + if (hasEffectiveTargetCpaMicros()) { + result = result && getEffectiveTargetCpaMicros() + .equals(other.getEffectiveTargetCpaMicros()); + } + result = result && effectiveTargetCpaSource_ == other.effectiveTargetCpaSource_; + result = result && (hasEffectiveTargetRoas() == other.hasEffectiveTargetRoas()); + if (hasEffectiveTargetRoas()) { + result = result && getEffectiveTargetRoas() + .equals(other.getEffectiveTargetRoas()); + } + result = result && effectiveTargetRoasSource_ == other.effectiveTargetRoasSource_; result = result && unknownFields.equals(other.unknownFields); return result; } @@ -1198,17 +1523,21 @@ public int hashCode() { hash = (37 * hash) + CPM_BID_MICROS_FIELD_NUMBER; hash = (53 * hash) + getCpmBidMicros().hashCode(); } - if (hasCpaBidMicros()) { - hash = (37 * hash) + CPA_BID_MICROS_FIELD_NUMBER; - hash = (53 * hash) + getCpaBidMicros().hashCode(); + if (hasTargetCpaMicros()) { + hash = (37 * hash) + TARGET_CPA_MICROS_FIELD_NUMBER; + hash = (53 * hash) + getTargetCpaMicros().hashCode(); } if (hasCpvBidMicros()) { hash = (37 * hash) + CPV_BID_MICROS_FIELD_NUMBER; hash = (53 * hash) + getCpvBidMicros().hashCode(); } - if (hasTargetRoasOverride()) { - hash = (37 * hash) + TARGET_ROAS_OVERRIDE_FIELD_NUMBER; - hash = (53 * hash) + getTargetRoasOverride().hashCode(); + if (hasTargetCpmMicros()) { + hash = (37 * hash) + TARGET_CPM_MICROS_FIELD_NUMBER; + hash = (53 * hash) + getTargetCpmMicros().hashCode(); + } + if (hasTargetRoas()) { + hash = (37 * hash) + TARGET_ROAS_FIELD_NUMBER; + hash = (53 * hash) + getTargetRoas().hashCode(); } if (hasPercentCpcBidMicros()) { hash = (37 * hash) + PERCENT_CPC_BID_MICROS_FIELD_NUMBER; @@ -1224,6 +1553,22 @@ public int hashCode() { hash = (37 * hash) + FINAL_URL_SUFFIX_FIELD_NUMBER; hash = (53 * hash) + getFinalUrlSuffix().hashCode(); } + if (hasTargetingSetting()) { + hash = (37 * hash) + TARGETING_SETTING_FIELD_NUMBER; + hash = (53 * hash) + getTargetingSetting().hashCode(); + } + if (hasEffectiveTargetCpaMicros()) { + hash = (37 * hash) + EFFECTIVE_TARGET_CPA_MICROS_FIELD_NUMBER; + hash = (53 * hash) + getEffectiveTargetCpaMicros().hashCode(); + } + hash = (37 * hash) + EFFECTIVE_TARGET_CPA_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + effectiveTargetCpaSource_; + if (hasEffectiveTargetRoas()) { + hash = (37 * hash) + EFFECTIVE_TARGET_ROAS_FIELD_NUMBER; + hash = (53 * hash) + getEffectiveTargetRoas().hashCode(); + } + hash = (37 * hash) + EFFECTIVE_TARGET_ROAS_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + effectiveTargetRoasSource_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1412,11 +1757,11 @@ public Builder clear() { cpmBidMicros_ = null; cpmBidMicrosBuilder_ = null; } - if (cpaBidMicrosBuilder_ == null) { - cpaBidMicros_ = null; + if (targetCpaMicrosBuilder_ == null) { + targetCpaMicros_ = null; } else { - cpaBidMicros_ = null; - cpaBidMicrosBuilder_ = null; + targetCpaMicros_ = null; + targetCpaMicrosBuilder_ = null; } if (cpvBidMicrosBuilder_ == null) { cpvBidMicros_ = null; @@ -1424,11 +1769,17 @@ public Builder clear() { cpvBidMicros_ = null; cpvBidMicrosBuilder_ = null; } - if (targetRoasOverrideBuilder_ == null) { - targetRoasOverride_ = null; + if (targetCpmMicrosBuilder_ == null) { + targetCpmMicros_ = null; + } else { + targetCpmMicros_ = null; + targetCpmMicrosBuilder_ = null; + } + if (targetRoasBuilder_ == null) { + targetRoas_ = null; } else { - targetRoasOverride_ = null; - targetRoasOverrideBuilder_ = null; + targetRoas_ = null; + targetRoasBuilder_ = null; } if (percentCpcBidMicrosBuilder_ == null) { percentCpcBidMicros_ = null; @@ -1450,6 +1801,28 @@ public Builder clear() { finalUrlSuffix_ = null; finalUrlSuffixBuilder_ = null; } + if (targetingSettingBuilder_ == null) { + targetingSetting_ = null; + } else { + targetingSetting_ = null; + targetingSettingBuilder_ = null; + } + if (effectiveTargetCpaMicrosBuilder_ == null) { + effectiveTargetCpaMicros_ = null; + } else { + effectiveTargetCpaMicros_ = null; + effectiveTargetCpaMicrosBuilder_ = null; + } + effectiveTargetCpaSource_ = 0; + + if (effectiveTargetRoasBuilder_ == null) { + effectiveTargetRoas_ = null; + } else { + effectiveTargetRoas_ = null; + effectiveTargetRoasBuilder_ = null; + } + effectiveTargetRoasSource_ = 0; + return this; } @@ -1521,20 +1894,25 @@ public com.google.ads.googleads.v0.resources.AdGroup buildPartial() { } else { result.cpmBidMicros_ = cpmBidMicrosBuilder_.build(); } - if (cpaBidMicrosBuilder_ == null) { - result.cpaBidMicros_ = cpaBidMicros_; + if (targetCpaMicrosBuilder_ == null) { + result.targetCpaMicros_ = targetCpaMicros_; } else { - result.cpaBidMicros_ = cpaBidMicrosBuilder_.build(); + result.targetCpaMicros_ = targetCpaMicrosBuilder_.build(); } if (cpvBidMicrosBuilder_ == null) { result.cpvBidMicros_ = cpvBidMicros_; } else { result.cpvBidMicros_ = cpvBidMicrosBuilder_.build(); } - if (targetRoasOverrideBuilder_ == null) { - result.targetRoasOverride_ = targetRoasOverride_; + if (targetCpmMicrosBuilder_ == null) { + result.targetCpmMicros_ = targetCpmMicros_; + } else { + result.targetCpmMicros_ = targetCpmMicrosBuilder_.build(); + } + if (targetRoasBuilder_ == null) { + result.targetRoas_ = targetRoas_; } else { - result.targetRoasOverride_ = targetRoasOverrideBuilder_.build(); + result.targetRoas_ = targetRoasBuilder_.build(); } if (percentCpcBidMicrosBuilder_ == null) { result.percentCpcBidMicros_ = percentCpcBidMicros_; @@ -1552,6 +1930,23 @@ public com.google.ads.googleads.v0.resources.AdGroup buildPartial() { } else { result.finalUrlSuffix_ = finalUrlSuffixBuilder_.build(); } + if (targetingSettingBuilder_ == null) { + result.targetingSetting_ = targetingSetting_; + } else { + result.targetingSetting_ = targetingSettingBuilder_.build(); + } + if (effectiveTargetCpaMicrosBuilder_ == null) { + result.effectiveTargetCpaMicros_ = effectiveTargetCpaMicros_; + } else { + result.effectiveTargetCpaMicros_ = effectiveTargetCpaMicrosBuilder_.build(); + } + result.effectiveTargetCpaSource_ = effectiveTargetCpaSource_; + if (effectiveTargetRoasBuilder_ == null) { + result.effectiveTargetRoas_ = effectiveTargetRoas_; + } else { + result.effectiveTargetRoas_ = effectiveTargetRoasBuilder_.build(); + } + result.effectiveTargetRoasSource_ = effectiveTargetRoasSource_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -1658,14 +2053,17 @@ public Builder mergeFrom(com.google.ads.googleads.v0.resources.AdGroup other) { if (other.hasCpmBidMicros()) { mergeCpmBidMicros(other.getCpmBidMicros()); } - if (other.hasCpaBidMicros()) { - mergeCpaBidMicros(other.getCpaBidMicros()); + if (other.hasTargetCpaMicros()) { + mergeTargetCpaMicros(other.getTargetCpaMicros()); } if (other.hasCpvBidMicros()) { mergeCpvBidMicros(other.getCpvBidMicros()); } - if (other.hasTargetRoasOverride()) { - mergeTargetRoasOverride(other.getTargetRoasOverride()); + if (other.hasTargetCpmMicros()) { + mergeTargetCpmMicros(other.getTargetCpmMicros()); + } + if (other.hasTargetRoas()) { + mergeTargetRoas(other.getTargetRoas()); } if (other.hasPercentCpcBidMicros()) { mergePercentCpcBidMicros(other.getPercentCpcBidMicros()); @@ -1679,6 +2077,21 @@ public Builder mergeFrom(com.google.ads.googleads.v0.resources.AdGroup other) { if (other.hasFinalUrlSuffix()) { mergeFinalUrlSuffix(other.getFinalUrlSuffix()); } + if (other.hasTargetingSetting()) { + mergeTargetingSetting(other.getTargetingSetting()); + } + if (other.hasEffectiveTargetCpaMicros()) { + mergeEffectiveTargetCpaMicros(other.getEffectiveTargetCpaMicros()); + } + if (other.effectiveTargetCpaSource_ != 0) { + setEffectiveTargetCpaSourceValue(other.getEffectiveTargetCpaSourceValue()); + } + if (other.hasEffectiveTargetRoas()) { + mergeEffectiveTargetRoas(other.getEffectiveTargetRoas()); + } + if (other.effectiveTargetRoasSource_ != 0) { + setEffectiveTargetRoasSourceValue(other.getEffectiveTargetRoasSourceValue()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -3296,157 +3709,157 @@ public com.google.protobuf.Int64ValueOrBuilder getCpmBidMicrosOrBuilder() { return cpmBidMicrosBuilder_; } - private com.google.protobuf.Int64Value cpaBidMicros_ = null; + private com.google.protobuf.Int64Value targetCpaMicros_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> cpaBidMicrosBuilder_; + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> targetCpaMicrosBuilder_; /** *
-     * The target cost-per-acquisition (conversion) bid.
+     * The target CPA (cost-per-acquisition).
      * 
* - * .google.protobuf.Int64Value cpa_bid_micros = 16; + * .google.protobuf.Int64Value target_cpa_micros = 27; */ - public boolean hasCpaBidMicros() { - return cpaBidMicrosBuilder_ != null || cpaBidMicros_ != null; + public boolean hasTargetCpaMicros() { + return targetCpaMicrosBuilder_ != null || targetCpaMicros_ != null; } /** *
-     * The target cost-per-acquisition (conversion) bid.
+     * The target CPA (cost-per-acquisition).
      * 
* - * .google.protobuf.Int64Value cpa_bid_micros = 16; + * .google.protobuf.Int64Value target_cpa_micros = 27; */ - public com.google.protobuf.Int64Value getCpaBidMicros() { - if (cpaBidMicrosBuilder_ == null) { - return cpaBidMicros_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : cpaBidMicros_; + public com.google.protobuf.Int64Value getTargetCpaMicros() { + if (targetCpaMicrosBuilder_ == null) { + return targetCpaMicros_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : targetCpaMicros_; } else { - return cpaBidMicrosBuilder_.getMessage(); + return targetCpaMicrosBuilder_.getMessage(); } } /** *
-     * The target cost-per-acquisition (conversion) bid.
+     * The target CPA (cost-per-acquisition).
      * 
* - * .google.protobuf.Int64Value cpa_bid_micros = 16; + * .google.protobuf.Int64Value target_cpa_micros = 27; */ - public Builder setCpaBidMicros(com.google.protobuf.Int64Value value) { - if (cpaBidMicrosBuilder_ == null) { + public Builder setTargetCpaMicros(com.google.protobuf.Int64Value value) { + if (targetCpaMicrosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - cpaBidMicros_ = value; + targetCpaMicros_ = value; onChanged(); } else { - cpaBidMicrosBuilder_.setMessage(value); + targetCpaMicrosBuilder_.setMessage(value); } return this; } /** *
-     * The target cost-per-acquisition (conversion) bid.
+     * The target CPA (cost-per-acquisition).
      * 
* - * .google.protobuf.Int64Value cpa_bid_micros = 16; + * .google.protobuf.Int64Value target_cpa_micros = 27; */ - public Builder setCpaBidMicros( + public Builder setTargetCpaMicros( com.google.protobuf.Int64Value.Builder builderForValue) { - if (cpaBidMicrosBuilder_ == null) { - cpaBidMicros_ = builderForValue.build(); + if (targetCpaMicrosBuilder_ == null) { + targetCpaMicros_ = builderForValue.build(); onChanged(); } else { - cpaBidMicrosBuilder_.setMessage(builderForValue.build()); + targetCpaMicrosBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The target cost-per-acquisition (conversion) bid.
+     * The target CPA (cost-per-acquisition).
      * 
* - * .google.protobuf.Int64Value cpa_bid_micros = 16; + * .google.protobuf.Int64Value target_cpa_micros = 27; */ - public Builder mergeCpaBidMicros(com.google.protobuf.Int64Value value) { - if (cpaBidMicrosBuilder_ == null) { - if (cpaBidMicros_ != null) { - cpaBidMicros_ = - com.google.protobuf.Int64Value.newBuilder(cpaBidMicros_).mergeFrom(value).buildPartial(); + public Builder mergeTargetCpaMicros(com.google.protobuf.Int64Value value) { + if (targetCpaMicrosBuilder_ == null) { + if (targetCpaMicros_ != null) { + targetCpaMicros_ = + com.google.protobuf.Int64Value.newBuilder(targetCpaMicros_).mergeFrom(value).buildPartial(); } else { - cpaBidMicros_ = value; + targetCpaMicros_ = value; } onChanged(); } else { - cpaBidMicrosBuilder_.mergeFrom(value); + targetCpaMicrosBuilder_.mergeFrom(value); } return this; } /** *
-     * The target cost-per-acquisition (conversion) bid.
+     * The target CPA (cost-per-acquisition).
      * 
* - * .google.protobuf.Int64Value cpa_bid_micros = 16; + * .google.protobuf.Int64Value target_cpa_micros = 27; */ - public Builder clearCpaBidMicros() { - if (cpaBidMicrosBuilder_ == null) { - cpaBidMicros_ = null; + public Builder clearTargetCpaMicros() { + if (targetCpaMicrosBuilder_ == null) { + targetCpaMicros_ = null; onChanged(); } else { - cpaBidMicros_ = null; - cpaBidMicrosBuilder_ = null; + targetCpaMicros_ = null; + targetCpaMicrosBuilder_ = null; } return this; } /** *
-     * The target cost-per-acquisition (conversion) bid.
+     * The target CPA (cost-per-acquisition).
      * 
* - * .google.protobuf.Int64Value cpa_bid_micros = 16; + * .google.protobuf.Int64Value target_cpa_micros = 27; */ - public com.google.protobuf.Int64Value.Builder getCpaBidMicrosBuilder() { + public com.google.protobuf.Int64Value.Builder getTargetCpaMicrosBuilder() { onChanged(); - return getCpaBidMicrosFieldBuilder().getBuilder(); + return getTargetCpaMicrosFieldBuilder().getBuilder(); } /** *
-     * The target cost-per-acquisition (conversion) bid.
+     * The target CPA (cost-per-acquisition).
      * 
* - * .google.protobuf.Int64Value cpa_bid_micros = 16; + * .google.protobuf.Int64Value target_cpa_micros = 27; */ - public com.google.protobuf.Int64ValueOrBuilder getCpaBidMicrosOrBuilder() { - if (cpaBidMicrosBuilder_ != null) { - return cpaBidMicrosBuilder_.getMessageOrBuilder(); + public com.google.protobuf.Int64ValueOrBuilder getTargetCpaMicrosOrBuilder() { + if (targetCpaMicrosBuilder_ != null) { + return targetCpaMicrosBuilder_.getMessageOrBuilder(); } else { - return cpaBidMicros_ == null ? - com.google.protobuf.Int64Value.getDefaultInstance() : cpaBidMicros_; + return targetCpaMicros_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : targetCpaMicros_; } } /** *
-     * The target cost-per-acquisition (conversion) bid.
+     * The target CPA (cost-per-acquisition).
      * 
* - * .google.protobuf.Int64Value cpa_bid_micros = 16; + * .google.protobuf.Int64Value target_cpa_micros = 27; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> - getCpaBidMicrosFieldBuilder() { - if (cpaBidMicrosBuilder_ == null) { - cpaBidMicrosBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getTargetCpaMicrosFieldBuilder() { + if (targetCpaMicrosBuilder_ == null) { + targetCpaMicrosBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( - getCpaBidMicros(), + getTargetCpaMicros(), getParentForChildren(), isClean()); - cpaBidMicros_ = null; + targetCpaMicros_ = null; } - return cpaBidMicrosBuilder_; + return targetCpaMicrosBuilder_; } private com.google.protobuf.Int64Value cpvBidMicros_ = null; @@ -3602,184 +4015,346 @@ public com.google.protobuf.Int64ValueOrBuilder getCpvBidMicrosOrBuilder() { return cpvBidMicrosBuilder_; } - private com.google.protobuf.DoubleValue targetRoasOverride_ = null; + private com.google.protobuf.Int64Value targetCpmMicros_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> targetRoasOverrideBuilder_; + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> targetCpmMicrosBuilder_; /** *
-     * The target return on ad spend (ROAS) override. If the ad group's campaign
-     * bidding strategy is a standard Target ROAS strategy, then this field
-     * overrides the target ROAS specified in the campaign's bidding strategy.
-     * Otherwise, this value is ignored.
+     * Average amount in micros that the advertiser is willing to pay for every
+     * thousand times the ad is shown.
      * 
* - * .google.protobuf.DoubleValue target_roas_override = 19; + * .google.protobuf.Int64Value target_cpm_micros = 26; */ - public boolean hasTargetRoasOverride() { - return targetRoasOverrideBuilder_ != null || targetRoasOverride_ != null; + public boolean hasTargetCpmMicros() { + return targetCpmMicrosBuilder_ != null || targetCpmMicros_ != null; } /** *
-     * The target return on ad spend (ROAS) override. If the ad group's campaign
-     * bidding strategy is a standard Target ROAS strategy, then this field
-     * overrides the target ROAS specified in the campaign's bidding strategy.
-     * Otherwise, this value is ignored.
+     * Average amount in micros that the advertiser is willing to pay for every
+     * thousand times the ad is shown.
      * 
* - * .google.protobuf.DoubleValue target_roas_override = 19; + * .google.protobuf.Int64Value target_cpm_micros = 26; */ - public com.google.protobuf.DoubleValue getTargetRoasOverride() { - if (targetRoasOverrideBuilder_ == null) { - return targetRoasOverride_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : targetRoasOverride_; + public com.google.protobuf.Int64Value getTargetCpmMicros() { + if (targetCpmMicrosBuilder_ == null) { + return targetCpmMicros_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : targetCpmMicros_; } else { - return targetRoasOverrideBuilder_.getMessage(); + return targetCpmMicrosBuilder_.getMessage(); } } /** *
-     * The target return on ad spend (ROAS) override. If the ad group's campaign
-     * bidding strategy is a standard Target ROAS strategy, then this field
-     * overrides the target ROAS specified in the campaign's bidding strategy.
-     * Otherwise, this value is ignored.
+     * Average amount in micros that the advertiser is willing to pay for every
+     * thousand times the ad is shown.
      * 
* - * .google.protobuf.DoubleValue target_roas_override = 19; + * .google.protobuf.Int64Value target_cpm_micros = 26; */ - public Builder setTargetRoasOverride(com.google.protobuf.DoubleValue value) { - if (targetRoasOverrideBuilder_ == null) { + public Builder setTargetCpmMicros(com.google.protobuf.Int64Value value) { + if (targetCpmMicrosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - targetRoasOverride_ = value; + targetCpmMicros_ = value; onChanged(); } else { - targetRoasOverrideBuilder_.setMessage(value); + targetCpmMicrosBuilder_.setMessage(value); } return this; } /** *
-     * The target return on ad spend (ROAS) override. If the ad group's campaign
-     * bidding strategy is a standard Target ROAS strategy, then this field
-     * overrides the target ROAS specified in the campaign's bidding strategy.
-     * Otherwise, this value is ignored.
+     * Average amount in micros that the advertiser is willing to pay for every
+     * thousand times the ad is shown.
      * 
* - * .google.protobuf.DoubleValue target_roas_override = 19; + * .google.protobuf.Int64Value target_cpm_micros = 26; */ - public Builder setTargetRoasOverride( - com.google.protobuf.DoubleValue.Builder builderForValue) { - if (targetRoasOverrideBuilder_ == null) { - targetRoasOverride_ = builderForValue.build(); + public Builder setTargetCpmMicros( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (targetCpmMicrosBuilder_ == null) { + targetCpmMicros_ = builderForValue.build(); onChanged(); } else { - targetRoasOverrideBuilder_.setMessage(builderForValue.build()); + targetCpmMicrosBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The target return on ad spend (ROAS) override. If the ad group's campaign
-     * bidding strategy is a standard Target ROAS strategy, then this field
-     * overrides the target ROAS specified in the campaign's bidding strategy.
-     * Otherwise, this value is ignored.
+     * Average amount in micros that the advertiser is willing to pay for every
+     * thousand times the ad is shown.
      * 
* - * .google.protobuf.DoubleValue target_roas_override = 19; + * .google.protobuf.Int64Value target_cpm_micros = 26; */ - public Builder mergeTargetRoasOverride(com.google.protobuf.DoubleValue value) { - if (targetRoasOverrideBuilder_ == null) { - if (targetRoasOverride_ != null) { - targetRoasOverride_ = - com.google.protobuf.DoubleValue.newBuilder(targetRoasOverride_).mergeFrom(value).buildPartial(); + public Builder mergeTargetCpmMicros(com.google.protobuf.Int64Value value) { + if (targetCpmMicrosBuilder_ == null) { + if (targetCpmMicros_ != null) { + targetCpmMicros_ = + com.google.protobuf.Int64Value.newBuilder(targetCpmMicros_).mergeFrom(value).buildPartial(); } else { - targetRoasOverride_ = value; + targetCpmMicros_ = value; } onChanged(); } else { - targetRoasOverrideBuilder_.mergeFrom(value); + targetCpmMicrosBuilder_.mergeFrom(value); } return this; } /** *
-     * The target return on ad spend (ROAS) override. If the ad group's campaign
-     * bidding strategy is a standard Target ROAS strategy, then this field
-     * overrides the target ROAS specified in the campaign's bidding strategy.
-     * Otherwise, this value is ignored.
+     * Average amount in micros that the advertiser is willing to pay for every
+     * thousand times the ad is shown.
      * 
* - * .google.protobuf.DoubleValue target_roas_override = 19; + * .google.protobuf.Int64Value target_cpm_micros = 26; */ - public Builder clearTargetRoasOverride() { - if (targetRoasOverrideBuilder_ == null) { - targetRoasOverride_ = null; + public Builder clearTargetCpmMicros() { + if (targetCpmMicrosBuilder_ == null) { + targetCpmMicros_ = null; onChanged(); } else { - targetRoasOverride_ = null; - targetRoasOverrideBuilder_ = null; + targetCpmMicros_ = null; + targetCpmMicrosBuilder_ = null; } return this; } /** *
-     * The target return on ad spend (ROAS) override. If the ad group's campaign
-     * bidding strategy is a standard Target ROAS strategy, then this field
-     * overrides the target ROAS specified in the campaign's bidding strategy.
-     * Otherwise, this value is ignored.
+     * Average amount in micros that the advertiser is willing to pay for every
+     * thousand times the ad is shown.
      * 
* - * .google.protobuf.DoubleValue target_roas_override = 19; + * .google.protobuf.Int64Value target_cpm_micros = 26; */ - public com.google.protobuf.DoubleValue.Builder getTargetRoasOverrideBuilder() { + public com.google.protobuf.Int64Value.Builder getTargetCpmMicrosBuilder() { onChanged(); - return getTargetRoasOverrideFieldBuilder().getBuilder(); + return getTargetCpmMicrosFieldBuilder().getBuilder(); } /** *
-     * The target return on ad spend (ROAS) override. If the ad group's campaign
-     * bidding strategy is a standard Target ROAS strategy, then this field
-     * overrides the target ROAS specified in the campaign's bidding strategy.
-     * Otherwise, this value is ignored.
+     * Average amount in micros that the advertiser is willing to pay for every
+     * thousand times the ad is shown.
      * 
* - * .google.protobuf.DoubleValue target_roas_override = 19; + * .google.protobuf.Int64Value target_cpm_micros = 26; */ - public com.google.protobuf.DoubleValueOrBuilder getTargetRoasOverrideOrBuilder() { - if (targetRoasOverrideBuilder_ != null) { - return targetRoasOverrideBuilder_.getMessageOrBuilder(); + public com.google.protobuf.Int64ValueOrBuilder getTargetCpmMicrosOrBuilder() { + if (targetCpmMicrosBuilder_ != null) { + return targetCpmMicrosBuilder_.getMessageOrBuilder(); } else { - return targetRoasOverride_ == null ? - com.google.protobuf.DoubleValue.getDefaultInstance() : targetRoasOverride_; + return targetCpmMicros_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : targetCpmMicros_; } } /** *
-     * The target return on ad spend (ROAS) override. If the ad group's campaign
-     * bidding strategy is a standard Target ROAS strategy, then this field
+     * Average amount in micros that the advertiser is willing to pay for every
+     * thousand times the ad is shown.
+     * 
+ * + * .google.protobuf.Int64Value target_cpm_micros = 26; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + getTargetCpmMicrosFieldBuilder() { + if (targetCpmMicrosBuilder_ == null) { + targetCpmMicrosBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getTargetCpmMicros(), + getParentForChildren(), + isClean()); + targetCpmMicros_ = null; + } + return targetCpmMicrosBuilder_; + } + + private com.google.protobuf.DoubleValue targetRoas_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> targetRoasBuilder_; + /** + *
+     * The target ROAS (return-on-ad-spend) override. If the ad group's campaign
+     * bidding strategy is a standard Target ROAS strategy, then this field
      * overrides the target ROAS specified in the campaign's bidding strategy.
      * Otherwise, this value is ignored.
      * 
* - * .google.protobuf.DoubleValue target_roas_override = 19; + * .google.protobuf.DoubleValue target_roas = 30; + */ + public boolean hasTargetRoas() { + return targetRoasBuilder_ != null || targetRoas_ != null; + } + /** + *
+     * The target ROAS (return-on-ad-spend) override. If the ad group's campaign
+     * bidding strategy is a standard Target ROAS strategy, then this field
+     * overrides the target ROAS specified in the campaign's bidding strategy.
+     * Otherwise, this value is ignored.
+     * 
+ * + * .google.protobuf.DoubleValue target_roas = 30; + */ + public com.google.protobuf.DoubleValue getTargetRoas() { + if (targetRoasBuilder_ == null) { + return targetRoas_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : targetRoas_; + } else { + return targetRoasBuilder_.getMessage(); + } + } + /** + *
+     * The target ROAS (return-on-ad-spend) override. If the ad group's campaign
+     * bidding strategy is a standard Target ROAS strategy, then this field
+     * overrides the target ROAS specified in the campaign's bidding strategy.
+     * Otherwise, this value is ignored.
+     * 
+ * + * .google.protobuf.DoubleValue target_roas = 30; + */ + public Builder setTargetRoas(com.google.protobuf.DoubleValue value) { + if (targetRoasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + targetRoas_ = value; + onChanged(); + } else { + targetRoasBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The target ROAS (return-on-ad-spend) override. If the ad group's campaign
+     * bidding strategy is a standard Target ROAS strategy, then this field
+     * overrides the target ROAS specified in the campaign's bidding strategy.
+     * Otherwise, this value is ignored.
+     * 
+ * + * .google.protobuf.DoubleValue target_roas = 30; + */ + public Builder setTargetRoas( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (targetRoasBuilder_ == null) { + targetRoas_ = builderForValue.build(); + onChanged(); + } else { + targetRoasBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The target ROAS (return-on-ad-spend) override. If the ad group's campaign
+     * bidding strategy is a standard Target ROAS strategy, then this field
+     * overrides the target ROAS specified in the campaign's bidding strategy.
+     * Otherwise, this value is ignored.
+     * 
+ * + * .google.protobuf.DoubleValue target_roas = 30; + */ + public Builder mergeTargetRoas(com.google.protobuf.DoubleValue value) { + if (targetRoasBuilder_ == null) { + if (targetRoas_ != null) { + targetRoas_ = + com.google.protobuf.DoubleValue.newBuilder(targetRoas_).mergeFrom(value).buildPartial(); + } else { + targetRoas_ = value; + } + onChanged(); + } else { + targetRoasBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The target ROAS (return-on-ad-spend) override. If the ad group's campaign
+     * bidding strategy is a standard Target ROAS strategy, then this field
+     * overrides the target ROAS specified in the campaign's bidding strategy.
+     * Otherwise, this value is ignored.
+     * 
+ * + * .google.protobuf.DoubleValue target_roas = 30; + */ + public Builder clearTargetRoas() { + if (targetRoasBuilder_ == null) { + targetRoas_ = null; + onChanged(); + } else { + targetRoas_ = null; + targetRoasBuilder_ = null; + } + + return this; + } + /** + *
+     * The target ROAS (return-on-ad-spend) override. If the ad group's campaign
+     * bidding strategy is a standard Target ROAS strategy, then this field
+     * overrides the target ROAS specified in the campaign's bidding strategy.
+     * Otherwise, this value is ignored.
+     * 
+ * + * .google.protobuf.DoubleValue target_roas = 30; + */ + public com.google.protobuf.DoubleValue.Builder getTargetRoasBuilder() { + + onChanged(); + return getTargetRoasFieldBuilder().getBuilder(); + } + /** + *
+     * The target ROAS (return-on-ad-spend) override. If the ad group's campaign
+     * bidding strategy is a standard Target ROAS strategy, then this field
+     * overrides the target ROAS specified in the campaign's bidding strategy.
+     * Otherwise, this value is ignored.
+     * 
+ * + * .google.protobuf.DoubleValue target_roas = 30; + */ + public com.google.protobuf.DoubleValueOrBuilder getTargetRoasOrBuilder() { + if (targetRoasBuilder_ != null) { + return targetRoasBuilder_.getMessageOrBuilder(); + } else { + return targetRoas_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : targetRoas_; + } + } + /** + *
+     * The target ROAS (return-on-ad-spend) override. If the ad group's campaign
+     * bidding strategy is a standard Target ROAS strategy, then this field
+     * overrides the target ROAS specified in the campaign's bidding strategy.
+     * Otherwise, this value is ignored.
+     * 
+ * + * .google.protobuf.DoubleValue target_roas = 30; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> - getTargetRoasOverrideFieldBuilder() { - if (targetRoasOverrideBuilder_ == null) { - targetRoasOverrideBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getTargetRoasFieldBuilder() { + if (targetRoasBuilder_ == null) { + targetRoasBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( - getTargetRoasOverride(), + getTargetRoas(), getParentForChildren(), isClean()); - targetRoasOverride_ = null; + targetRoas_ = null; } - return targetRoasOverrideBuilder_; + return targetRoasBuilder_; } private com.google.protobuf.Int64Value percentCpcBidMicros_ = null; @@ -4333,6 +4908,623 @@ public com.google.protobuf.StringValueOrBuilder getFinalUrlSuffixOrBuilder() { } return finalUrlSuffixBuilder_; } + + private com.google.ads.googleads.v0.common.TargetingSetting targetingSetting_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.TargetingSetting, com.google.ads.googleads.v0.common.TargetingSetting.Builder, com.google.ads.googleads.v0.common.TargetingSettingOrBuilder> targetingSettingBuilder_; + /** + *
+     * Setting for targeting related features.
+     * 
+ * + * .google.ads.googleads.v0.common.TargetingSetting targeting_setting = 25; + */ + public boolean hasTargetingSetting() { + return targetingSettingBuilder_ != null || targetingSetting_ != null; + } + /** + *
+     * Setting for targeting related features.
+     * 
+ * + * .google.ads.googleads.v0.common.TargetingSetting targeting_setting = 25; + */ + public com.google.ads.googleads.v0.common.TargetingSetting getTargetingSetting() { + if (targetingSettingBuilder_ == null) { + return targetingSetting_ == null ? com.google.ads.googleads.v0.common.TargetingSetting.getDefaultInstance() : targetingSetting_; + } else { + return targetingSettingBuilder_.getMessage(); + } + } + /** + *
+     * Setting for targeting related features.
+     * 
+ * + * .google.ads.googleads.v0.common.TargetingSetting targeting_setting = 25; + */ + public Builder setTargetingSetting(com.google.ads.googleads.v0.common.TargetingSetting value) { + if (targetingSettingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + targetingSetting_ = value; + onChanged(); + } else { + targetingSettingBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Setting for targeting related features.
+     * 
+ * + * .google.ads.googleads.v0.common.TargetingSetting targeting_setting = 25; + */ + public Builder setTargetingSetting( + com.google.ads.googleads.v0.common.TargetingSetting.Builder builderForValue) { + if (targetingSettingBuilder_ == null) { + targetingSetting_ = builderForValue.build(); + onChanged(); + } else { + targetingSettingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Setting for targeting related features.
+     * 
+ * + * .google.ads.googleads.v0.common.TargetingSetting targeting_setting = 25; + */ + public Builder mergeTargetingSetting(com.google.ads.googleads.v0.common.TargetingSetting value) { + if (targetingSettingBuilder_ == null) { + if (targetingSetting_ != null) { + targetingSetting_ = + com.google.ads.googleads.v0.common.TargetingSetting.newBuilder(targetingSetting_).mergeFrom(value).buildPartial(); + } else { + targetingSetting_ = value; + } + onChanged(); + } else { + targetingSettingBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Setting for targeting related features.
+     * 
+ * + * .google.ads.googleads.v0.common.TargetingSetting targeting_setting = 25; + */ + public Builder clearTargetingSetting() { + if (targetingSettingBuilder_ == null) { + targetingSetting_ = null; + onChanged(); + } else { + targetingSetting_ = null; + targetingSettingBuilder_ = null; + } + + return this; + } + /** + *
+     * Setting for targeting related features.
+     * 
+ * + * .google.ads.googleads.v0.common.TargetingSetting targeting_setting = 25; + */ + public com.google.ads.googleads.v0.common.TargetingSetting.Builder getTargetingSettingBuilder() { + + onChanged(); + return getTargetingSettingFieldBuilder().getBuilder(); + } + /** + *
+     * Setting for targeting related features.
+     * 
+ * + * .google.ads.googleads.v0.common.TargetingSetting targeting_setting = 25; + */ + public com.google.ads.googleads.v0.common.TargetingSettingOrBuilder getTargetingSettingOrBuilder() { + if (targetingSettingBuilder_ != null) { + return targetingSettingBuilder_.getMessageOrBuilder(); + } else { + return targetingSetting_ == null ? + com.google.ads.googleads.v0.common.TargetingSetting.getDefaultInstance() : targetingSetting_; + } + } + /** + *
+     * Setting for targeting related features.
+     * 
+ * + * .google.ads.googleads.v0.common.TargetingSetting targeting_setting = 25; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.TargetingSetting, com.google.ads.googleads.v0.common.TargetingSetting.Builder, com.google.ads.googleads.v0.common.TargetingSettingOrBuilder> + getTargetingSettingFieldBuilder() { + if (targetingSettingBuilder_ == null) { + targetingSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.TargetingSetting, com.google.ads.googleads.v0.common.TargetingSetting.Builder, com.google.ads.googleads.v0.common.TargetingSettingOrBuilder>( + getTargetingSetting(), + getParentForChildren(), + isClean()); + targetingSetting_ = null; + } + return targetingSettingBuilder_; + } + + private com.google.protobuf.Int64Value effectiveTargetCpaMicros_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> effectiveTargetCpaMicrosBuilder_; + /** + *
+     * The effective target CPA (cost-per-acquisition).
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value effective_target_cpa_micros = 28; + */ + public boolean hasEffectiveTargetCpaMicros() { + return effectiveTargetCpaMicrosBuilder_ != null || effectiveTargetCpaMicros_ != null; + } + /** + *
+     * The effective target CPA (cost-per-acquisition).
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value effective_target_cpa_micros = 28; + */ + public com.google.protobuf.Int64Value getEffectiveTargetCpaMicros() { + if (effectiveTargetCpaMicrosBuilder_ == null) { + return effectiveTargetCpaMicros_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : effectiveTargetCpaMicros_; + } else { + return effectiveTargetCpaMicrosBuilder_.getMessage(); + } + } + /** + *
+     * The effective target CPA (cost-per-acquisition).
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value effective_target_cpa_micros = 28; + */ + public Builder setEffectiveTargetCpaMicros(com.google.protobuf.Int64Value value) { + if (effectiveTargetCpaMicrosBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + effectiveTargetCpaMicros_ = value; + onChanged(); + } else { + effectiveTargetCpaMicrosBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The effective target CPA (cost-per-acquisition).
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value effective_target_cpa_micros = 28; + */ + public Builder setEffectiveTargetCpaMicros( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (effectiveTargetCpaMicrosBuilder_ == null) { + effectiveTargetCpaMicros_ = builderForValue.build(); + onChanged(); + } else { + effectiveTargetCpaMicrosBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The effective target CPA (cost-per-acquisition).
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value effective_target_cpa_micros = 28; + */ + public Builder mergeEffectiveTargetCpaMicros(com.google.protobuf.Int64Value value) { + if (effectiveTargetCpaMicrosBuilder_ == null) { + if (effectiveTargetCpaMicros_ != null) { + effectiveTargetCpaMicros_ = + com.google.protobuf.Int64Value.newBuilder(effectiveTargetCpaMicros_).mergeFrom(value).buildPartial(); + } else { + effectiveTargetCpaMicros_ = value; + } + onChanged(); + } else { + effectiveTargetCpaMicrosBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The effective target CPA (cost-per-acquisition).
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value effective_target_cpa_micros = 28; + */ + public Builder clearEffectiveTargetCpaMicros() { + if (effectiveTargetCpaMicrosBuilder_ == null) { + effectiveTargetCpaMicros_ = null; + onChanged(); + } else { + effectiveTargetCpaMicros_ = null; + effectiveTargetCpaMicrosBuilder_ = null; + } + + return this; + } + /** + *
+     * The effective target CPA (cost-per-acquisition).
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value effective_target_cpa_micros = 28; + */ + public com.google.protobuf.Int64Value.Builder getEffectiveTargetCpaMicrosBuilder() { + + onChanged(); + return getEffectiveTargetCpaMicrosFieldBuilder().getBuilder(); + } + /** + *
+     * The effective target CPA (cost-per-acquisition).
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value effective_target_cpa_micros = 28; + */ + public com.google.protobuf.Int64ValueOrBuilder getEffectiveTargetCpaMicrosOrBuilder() { + if (effectiveTargetCpaMicrosBuilder_ != null) { + return effectiveTargetCpaMicrosBuilder_.getMessageOrBuilder(); + } else { + return effectiveTargetCpaMicros_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : effectiveTargetCpaMicros_; + } + } + /** + *
+     * The effective target CPA (cost-per-acquisition).
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value effective_target_cpa_micros = 28; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + getEffectiveTargetCpaMicrosFieldBuilder() { + if (effectiveTargetCpaMicrosBuilder_ == null) { + effectiveTargetCpaMicrosBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getEffectiveTargetCpaMicros(), + getParentForChildren(), + isClean()); + effectiveTargetCpaMicros_ = null; + } + return effectiveTargetCpaMicrosBuilder_; + } + + private int effectiveTargetCpaSource_ = 0; + /** + *
+     * Source of the effective target CPA.
+     * This field is read-only.
+     * 
+ * + * .google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource effective_target_cpa_source = 29; + */ + public int getEffectiveTargetCpaSourceValue() { + return effectiveTargetCpaSource_; + } + /** + *
+     * Source of the effective target CPA.
+     * This field is read-only.
+     * 
+ * + * .google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource effective_target_cpa_source = 29; + */ + public Builder setEffectiveTargetCpaSourceValue(int value) { + effectiveTargetCpaSource_ = value; + onChanged(); + return this; + } + /** + *
+     * Source of the effective target CPA.
+     * This field is read-only.
+     * 
+ * + * .google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource effective_target_cpa_source = 29; + */ + public com.google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource getEffectiveTargetCpaSource() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource result = com.google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource.valueOf(effectiveTargetCpaSource_); + return result == null ? com.google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource.UNRECOGNIZED : result; + } + /** + *
+     * Source of the effective target CPA.
+     * This field is read-only.
+     * 
+ * + * .google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource effective_target_cpa_source = 29; + */ + public Builder setEffectiveTargetCpaSource(com.google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource value) { + if (value == null) { + throw new NullPointerException(); + } + + effectiveTargetCpaSource_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Source of the effective target CPA.
+     * This field is read-only.
+     * 
+ * + * .google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource effective_target_cpa_source = 29; + */ + public Builder clearEffectiveTargetCpaSource() { + + effectiveTargetCpaSource_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.DoubleValue effectiveTargetRoas_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> effectiveTargetRoasBuilder_; + /** + *
+     * The effective target ROAS (return-on-ad-spend).
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.DoubleValue effective_target_roas = 31; + */ + public boolean hasEffectiveTargetRoas() { + return effectiveTargetRoasBuilder_ != null || effectiveTargetRoas_ != null; + } + /** + *
+     * The effective target ROAS (return-on-ad-spend).
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.DoubleValue effective_target_roas = 31; + */ + public com.google.protobuf.DoubleValue getEffectiveTargetRoas() { + if (effectiveTargetRoasBuilder_ == null) { + return effectiveTargetRoas_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : effectiveTargetRoas_; + } else { + return effectiveTargetRoasBuilder_.getMessage(); + } + } + /** + *
+     * The effective target ROAS (return-on-ad-spend).
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.DoubleValue effective_target_roas = 31; + */ + public Builder setEffectiveTargetRoas(com.google.protobuf.DoubleValue value) { + if (effectiveTargetRoasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + effectiveTargetRoas_ = value; + onChanged(); + } else { + effectiveTargetRoasBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The effective target ROAS (return-on-ad-spend).
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.DoubleValue effective_target_roas = 31; + */ + public Builder setEffectiveTargetRoas( + com.google.protobuf.DoubleValue.Builder builderForValue) { + if (effectiveTargetRoasBuilder_ == null) { + effectiveTargetRoas_ = builderForValue.build(); + onChanged(); + } else { + effectiveTargetRoasBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The effective target ROAS (return-on-ad-spend).
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.DoubleValue effective_target_roas = 31; + */ + public Builder mergeEffectiveTargetRoas(com.google.protobuf.DoubleValue value) { + if (effectiveTargetRoasBuilder_ == null) { + if (effectiveTargetRoas_ != null) { + effectiveTargetRoas_ = + com.google.protobuf.DoubleValue.newBuilder(effectiveTargetRoas_).mergeFrom(value).buildPartial(); + } else { + effectiveTargetRoas_ = value; + } + onChanged(); + } else { + effectiveTargetRoasBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The effective target ROAS (return-on-ad-spend).
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.DoubleValue effective_target_roas = 31; + */ + public Builder clearEffectiveTargetRoas() { + if (effectiveTargetRoasBuilder_ == null) { + effectiveTargetRoas_ = null; + onChanged(); + } else { + effectiveTargetRoas_ = null; + effectiveTargetRoasBuilder_ = null; + } + + return this; + } + /** + *
+     * The effective target ROAS (return-on-ad-spend).
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.DoubleValue effective_target_roas = 31; + */ + public com.google.protobuf.DoubleValue.Builder getEffectiveTargetRoasBuilder() { + + onChanged(); + return getEffectiveTargetRoasFieldBuilder().getBuilder(); + } + /** + *
+     * The effective target ROAS (return-on-ad-spend).
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.DoubleValue effective_target_roas = 31; + */ + public com.google.protobuf.DoubleValueOrBuilder getEffectiveTargetRoasOrBuilder() { + if (effectiveTargetRoasBuilder_ != null) { + return effectiveTargetRoasBuilder_.getMessageOrBuilder(); + } else { + return effectiveTargetRoas_ == null ? + com.google.protobuf.DoubleValue.getDefaultInstance() : effectiveTargetRoas_; + } + } + /** + *
+     * The effective target ROAS (return-on-ad-spend).
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.DoubleValue effective_target_roas = 31; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> + getEffectiveTargetRoasFieldBuilder() { + if (effectiveTargetRoasBuilder_ == null) { + effectiveTargetRoasBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>( + getEffectiveTargetRoas(), + getParentForChildren(), + isClean()); + effectiveTargetRoas_ = null; + } + return effectiveTargetRoasBuilder_; + } + + private int effectiveTargetRoasSource_ = 0; + /** + *
+     * Source of the effective target ROAS.
+     * This field is read-only.
+     * 
+ * + * .google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource effective_target_roas_source = 32; + */ + public int getEffectiveTargetRoasSourceValue() { + return effectiveTargetRoasSource_; + } + /** + *
+     * Source of the effective target ROAS.
+     * This field is read-only.
+     * 
+ * + * .google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource effective_target_roas_source = 32; + */ + public Builder setEffectiveTargetRoasSourceValue(int value) { + effectiveTargetRoasSource_ = value; + onChanged(); + return this; + } + /** + *
+     * Source of the effective target ROAS.
+     * This field is read-only.
+     * 
+ * + * .google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource effective_target_roas_source = 32; + */ + public com.google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource getEffectiveTargetRoasSource() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource result = com.google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource.valueOf(effectiveTargetRoasSource_); + return result == null ? com.google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource.UNRECOGNIZED : result; + } + /** + *
+     * Source of the effective target ROAS.
+     * This field is read-only.
+     * 
+ * + * .google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource effective_target_roas_source = 32; + */ + public Builder setEffectiveTargetRoasSource(com.google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource value) { + if (value == null) { + throw new NullPointerException(); + } + + effectiveTargetRoasSource_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Source of the effective target ROAS.
+     * This field is read-only.
+     * 
+ * + * .google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource effective_target_roas_source = 32; + */ + public Builder clearEffectiveTargetRoasSource() { + + effectiveTargetRoasSource_ = 0; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroupAdProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroupAdProto.java index 8daba849ae..8241016754 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroupAdProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroupAdProto.java @@ -57,12 +57,13 @@ public static void registerAllExtensions( "v0.enums.PolicyReviewStatusEnum.PolicyRe" + "viewStatus\022e\n\017approval_status\030\003 \001(\0162L.go" + "ogle.ads.googleads.v0.enums.PolicyApprov" + - "alStatusEnum.PolicyApprovalStatusB\323\001\n%co" + + "alStatusEnum.PolicyApprovalStatusB\373\001\n%co" + "m.google.ads.googleads.v0.resourcesB\016AdG" + "roupAdProtoP\001ZJgoogle.golang.org/genprot" + "o/googleapis/ads/googleads/v0/resources;" + "resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V" + "0.Resources\312\002!Google\\Ads\\GoogleAds\\V0\\Re" + + "sources\352\002%Google::Ads::GoogleAds::V0::Re" + "sourcesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroupAudienceViewProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroupAudienceViewProto.java index 3bf203e4e5..8dd48b2c2c 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroupAudienceViewProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroupAudienceViewProto.java @@ -31,12 +31,13 @@ public static void registerAllExtensions( "\n>google/ads/googleads/v0/resources/ad_g" + "roup_audience_view.proto\022!google.ads.goo" + "gleads.v0.resources\",\n\023AdGroupAudienceVi" + - "ew\022\025\n\rresource_name\030\001 \001(\tB\335\001\n%com.google" + + "ew\022\025\n\rresource_name\030\001 \001(\tB\205\002\n%com.google" + ".ads.googleads.v0.resourcesB\030AdGroupAudi" + "enceViewProtoP\001ZJgoogle.golang.org/genpr" + "oto/googleapis/ads/googleads/v0/resource" + "s;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds" + ".V0.Resources\312\002!Google\\Ads\\GoogleAds\\V0\\" + + "Resources\352\002%Google::Ads::GoogleAds::V0::" + "Resourcesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroupBidModifierProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroupBidModifierProto.java index 346c30c341..880639e3d8 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroupBidModifierProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroupBidModifierProto.java @@ -55,13 +55,14 @@ public static void registerAllExtensions( "evice\030\013 \001(\0132*.google.ads.googleads.v0.co" + "mmon.DeviceInfoH\000\022Q\n\021preferred_content\030\014" + " \001(\01324.google.ads.googleads.v0.common.Pr" + - "eferredContentInfoH\000B\013\n\tcriterionB\334\001\n%co" + + "eferredContentInfoH\000B\013\n\tcriterionB\204\002\n%co" + "m.google.ads.googleads.v0.resourcesB\027AdG" + "roupBidModifierProtoP\001ZJgoogle.golang.or" + "g/genproto/googleapis/ads/googleads/v0/r" + "esources;resources\242\002\003GAA\252\002!Google.Ads.Go" + "ogleAds.V0.Resources\312\002!Google\\Ads\\Google" + - "Ads\\V0\\Resourcesb\006proto3" + "Ads\\V0\\Resources\352\002%Google::Ads::GoogleAd" + + "s::V0::Resourcesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroupCriterion.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroupCriterion.java index cf9b122432..d8fdf965d9 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroupCriterion.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroupCriterion.java @@ -281,6 +281,20 @@ private AdGroupCriterion( criterionCase_ = 28; break; } + case 234: { + com.google.ads.googleads.v0.common.MobileAppCategoryInfo.Builder subBuilder = null; + if (criterionCase_ == 29) { + subBuilder = ((com.google.ads.googleads.v0.common.MobileAppCategoryInfo) criterion_).toBuilder(); + } + criterion_ = + input.readMessage(com.google.ads.googleads.v0.common.MobileAppCategoryInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.ads.googleads.v0.common.MobileAppCategoryInfo) criterion_); + criterion_ = subBuilder.buildPartial(); + } + criterionCase_ = 29; + break; + } case 250: { com.google.protobuf.BoolValue.Builder subBuilder = null; if (negative_ != null) { @@ -479,6 +493,34 @@ private AdGroupCriterion( criterionCase_ = 45; break; } + case 370: { + com.google.ads.googleads.v0.common.WebpageInfo.Builder subBuilder = null; + if (criterionCase_ == 46) { + subBuilder = ((com.google.ads.googleads.v0.common.WebpageInfo) criterion_).toBuilder(); + } + criterion_ = + input.readMessage(com.google.ads.googleads.v0.common.WebpageInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.ads.googleads.v0.common.WebpageInfo) criterion_); + criterion_ = subBuilder.buildPartial(); + } + criterionCase_ = 46; + break; + } + case 378: { + com.google.ads.googleads.v0.common.AppPaymentModelInfo.Builder subBuilder = null; + if (criterionCase_ == 47) { + subBuilder = ((com.google.ads.googleads.v0.common.AppPaymentModelInfo) criterion_).toBuilder(); + } + criterion_ = + input.readMessage(com.google.ads.googleads.v0.common.AppPaymentModelInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.ads.googleads.v0.common.AppPaymentModelInfo) criterion_); + criterion_ = subBuilder.buildPartial(); + } + criterionCase_ = 47; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -1699,6 +1741,62 @@ public interface PositionEstimatesOrBuilder extends * .google.protobuf.Int64Value top_of_page_cpc_micros = 3; */ com.google.protobuf.Int64ValueOrBuilder getTopOfPageCpcMicrosOrBuilder(); + + /** + *
+     * Estimate of how many clicks per week you might get by changing your
+     * keyword bid to the value in first_position_cpc_micros.
+     * 
+ * + * .google.protobuf.Int64Value estimated_add_clicks_at_first_position_cpc = 4; + */ + boolean hasEstimatedAddClicksAtFirstPositionCpc(); + /** + *
+     * Estimate of how many clicks per week you might get by changing your
+     * keyword bid to the value in first_position_cpc_micros.
+     * 
+ * + * .google.protobuf.Int64Value estimated_add_clicks_at_first_position_cpc = 4; + */ + com.google.protobuf.Int64Value getEstimatedAddClicksAtFirstPositionCpc(); + /** + *
+     * Estimate of how many clicks per week you might get by changing your
+     * keyword bid to the value in first_position_cpc_micros.
+     * 
+ * + * .google.protobuf.Int64Value estimated_add_clicks_at_first_position_cpc = 4; + */ + com.google.protobuf.Int64ValueOrBuilder getEstimatedAddClicksAtFirstPositionCpcOrBuilder(); + + /** + *
+     * Estimate of how your cost per week might change when changing your
+     * keyword bid to the value in first_position_cpc_micros.
+     * 
+ * + * .google.protobuf.Int64Value estimated_add_cost_at_first_position_cpc = 5; + */ + boolean hasEstimatedAddCostAtFirstPositionCpc(); + /** + *
+     * Estimate of how your cost per week might change when changing your
+     * keyword bid to the value in first_position_cpc_micros.
+     * 
+ * + * .google.protobuf.Int64Value estimated_add_cost_at_first_position_cpc = 5; + */ + com.google.protobuf.Int64Value getEstimatedAddCostAtFirstPositionCpc(); + /** + *
+     * Estimate of how your cost per week might change when changing your
+     * keyword bid to the value in first_position_cpc_micros.
+     * 
+ * + * .google.protobuf.Int64Value estimated_add_cost_at_first_position_cpc = 5; + */ + com.google.protobuf.Int64ValueOrBuilder getEstimatedAddCostAtFirstPositionCpcOrBuilder(); } /** *
@@ -1782,6 +1880,32 @@ private PositionEstimates(
 
               break;
             }
+            case 34: {
+              com.google.protobuf.Int64Value.Builder subBuilder = null;
+              if (estimatedAddClicksAtFirstPositionCpc_ != null) {
+                subBuilder = estimatedAddClicksAtFirstPositionCpc_.toBuilder();
+              }
+              estimatedAddClicksAtFirstPositionCpc_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(estimatedAddClicksAtFirstPositionCpc_);
+                estimatedAddClicksAtFirstPositionCpc_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+            case 42: {
+              com.google.protobuf.Int64Value.Builder subBuilder = null;
+              if (estimatedAddCostAtFirstPositionCpc_ != null) {
+                subBuilder = estimatedAddCostAtFirstPositionCpc_.toBuilder();
+              }
+              estimatedAddCostAtFirstPositionCpc_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(estimatedAddCostAtFirstPositionCpc_);
+                estimatedAddCostAtFirstPositionCpc_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
             default: {
               if (!parseUnknownFieldProto3(
                   input, unknownFields, extensionRegistry, tag)) {
@@ -1922,6 +2046,78 @@ public com.google.protobuf.Int64ValueOrBuilder getTopOfPageCpcMicrosOrBuilder()
       return getTopOfPageCpcMicros();
     }
 
+    public static final int ESTIMATED_ADD_CLICKS_AT_FIRST_POSITION_CPC_FIELD_NUMBER = 4;
+    private com.google.protobuf.Int64Value estimatedAddClicksAtFirstPositionCpc_;
+    /**
+     * 
+     * Estimate of how many clicks per week you might get by changing your
+     * keyword bid to the value in first_position_cpc_micros.
+     * 
+ * + * .google.protobuf.Int64Value estimated_add_clicks_at_first_position_cpc = 4; + */ + public boolean hasEstimatedAddClicksAtFirstPositionCpc() { + return estimatedAddClicksAtFirstPositionCpc_ != null; + } + /** + *
+     * Estimate of how many clicks per week you might get by changing your
+     * keyword bid to the value in first_position_cpc_micros.
+     * 
+ * + * .google.protobuf.Int64Value estimated_add_clicks_at_first_position_cpc = 4; + */ + public com.google.protobuf.Int64Value getEstimatedAddClicksAtFirstPositionCpc() { + return estimatedAddClicksAtFirstPositionCpc_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : estimatedAddClicksAtFirstPositionCpc_; + } + /** + *
+     * Estimate of how many clicks per week you might get by changing your
+     * keyword bid to the value in first_position_cpc_micros.
+     * 
+ * + * .google.protobuf.Int64Value estimated_add_clicks_at_first_position_cpc = 4; + */ + public com.google.protobuf.Int64ValueOrBuilder getEstimatedAddClicksAtFirstPositionCpcOrBuilder() { + return getEstimatedAddClicksAtFirstPositionCpc(); + } + + public static final int ESTIMATED_ADD_COST_AT_FIRST_POSITION_CPC_FIELD_NUMBER = 5; + private com.google.protobuf.Int64Value estimatedAddCostAtFirstPositionCpc_; + /** + *
+     * Estimate of how your cost per week might change when changing your
+     * keyword bid to the value in first_position_cpc_micros.
+     * 
+ * + * .google.protobuf.Int64Value estimated_add_cost_at_first_position_cpc = 5; + */ + public boolean hasEstimatedAddCostAtFirstPositionCpc() { + return estimatedAddCostAtFirstPositionCpc_ != null; + } + /** + *
+     * Estimate of how your cost per week might change when changing your
+     * keyword bid to the value in first_position_cpc_micros.
+     * 
+ * + * .google.protobuf.Int64Value estimated_add_cost_at_first_position_cpc = 5; + */ + public com.google.protobuf.Int64Value getEstimatedAddCostAtFirstPositionCpc() { + return estimatedAddCostAtFirstPositionCpc_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : estimatedAddCostAtFirstPositionCpc_; + } + /** + *
+     * Estimate of how your cost per week might change when changing your
+     * keyword bid to the value in first_position_cpc_micros.
+     * 
+ * + * .google.protobuf.Int64Value estimated_add_cost_at_first_position_cpc = 5; + */ + public com.google.protobuf.Int64ValueOrBuilder getEstimatedAddCostAtFirstPositionCpcOrBuilder() { + return getEstimatedAddCostAtFirstPositionCpc(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -1945,6 +2141,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (topOfPageCpcMicros_ != null) { output.writeMessage(3, getTopOfPageCpcMicros()); } + if (estimatedAddClicksAtFirstPositionCpc_ != null) { + output.writeMessage(4, getEstimatedAddClicksAtFirstPositionCpc()); + } + if (estimatedAddCostAtFirstPositionCpc_ != null) { + output.writeMessage(5, getEstimatedAddCostAtFirstPositionCpc()); + } unknownFields.writeTo(output); } @@ -1966,6 +2168,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTopOfPageCpcMicros()); } + if (estimatedAddClicksAtFirstPositionCpc_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getEstimatedAddClicksAtFirstPositionCpc()); + } + if (estimatedAddCostAtFirstPositionCpc_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getEstimatedAddCostAtFirstPositionCpc()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1997,6 +2207,16 @@ public boolean equals(final java.lang.Object obj) { result = result && getTopOfPageCpcMicros() .equals(other.getTopOfPageCpcMicros()); } + result = result && (hasEstimatedAddClicksAtFirstPositionCpc() == other.hasEstimatedAddClicksAtFirstPositionCpc()); + if (hasEstimatedAddClicksAtFirstPositionCpc()) { + result = result && getEstimatedAddClicksAtFirstPositionCpc() + .equals(other.getEstimatedAddClicksAtFirstPositionCpc()); + } + result = result && (hasEstimatedAddCostAtFirstPositionCpc() == other.hasEstimatedAddCostAtFirstPositionCpc()); + if (hasEstimatedAddCostAtFirstPositionCpc()) { + result = result && getEstimatedAddCostAtFirstPositionCpc() + .equals(other.getEstimatedAddCostAtFirstPositionCpc()); + } result = result && unknownFields.equals(other.unknownFields); return result; } @@ -2020,6 +2240,14 @@ public int hashCode() { hash = (37 * hash) + TOP_OF_PAGE_CPC_MICROS_FIELD_NUMBER; hash = (53 * hash) + getTopOfPageCpcMicros().hashCode(); } + if (hasEstimatedAddClicksAtFirstPositionCpc()) { + hash = (37 * hash) + ESTIMATED_ADD_CLICKS_AT_FIRST_POSITION_CPC_FIELD_NUMBER; + hash = (53 * hash) + getEstimatedAddClicksAtFirstPositionCpc().hashCode(); + } + if (hasEstimatedAddCostAtFirstPositionCpc()) { + hash = (37 * hash) + ESTIMATED_ADD_COST_AT_FIRST_POSITION_CPC_FIELD_NUMBER; + hash = (53 * hash) + getEstimatedAddCostAtFirstPositionCpc().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -2175,6 +2403,18 @@ public Builder clear() { topOfPageCpcMicros_ = null; topOfPageCpcMicrosBuilder_ = null; } + if (estimatedAddClicksAtFirstPositionCpcBuilder_ == null) { + estimatedAddClicksAtFirstPositionCpc_ = null; + } else { + estimatedAddClicksAtFirstPositionCpc_ = null; + estimatedAddClicksAtFirstPositionCpcBuilder_ = null; + } + if (estimatedAddCostAtFirstPositionCpcBuilder_ == null) { + estimatedAddCostAtFirstPositionCpc_ = null; + } else { + estimatedAddCostAtFirstPositionCpc_ = null; + estimatedAddCostAtFirstPositionCpcBuilder_ = null; + } return this; } @@ -2216,6 +2456,16 @@ public com.google.ads.googleads.v0.resources.AdGroupCriterion.PositionEstimates } else { result.topOfPageCpcMicros_ = topOfPageCpcMicrosBuilder_.build(); } + if (estimatedAddClicksAtFirstPositionCpcBuilder_ == null) { + result.estimatedAddClicksAtFirstPositionCpc_ = estimatedAddClicksAtFirstPositionCpc_; + } else { + result.estimatedAddClicksAtFirstPositionCpc_ = estimatedAddClicksAtFirstPositionCpcBuilder_.build(); + } + if (estimatedAddCostAtFirstPositionCpcBuilder_ == null) { + result.estimatedAddCostAtFirstPositionCpc_ = estimatedAddCostAtFirstPositionCpc_; + } else { + result.estimatedAddCostAtFirstPositionCpc_ = estimatedAddCostAtFirstPositionCpcBuilder_.build(); + } onBuilt(); return result; } @@ -2273,6 +2523,12 @@ public Builder mergeFrom(com.google.ads.googleads.v0.resources.AdGroupCriterion. if (other.hasTopOfPageCpcMicros()) { mergeTopOfPageCpcMicros(other.getTopOfPageCpcMicros()); } + if (other.hasEstimatedAddClicksAtFirstPositionCpc()) { + mergeEstimatedAddClicksAtFirstPositionCpc(other.getEstimatedAddClicksAtFirstPositionCpc()); + } + if (other.hasEstimatedAddCostAtFirstPositionCpc()) { + mergeEstimatedAddCostAtFirstPositionCpc(other.getEstimatedAddCostAtFirstPositionCpc()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2787,58 +3043,382 @@ public com.google.protobuf.Int64ValueOrBuilder getTopOfPageCpcMicrosOrBuilder() } return topOfPageCpcMicrosBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); - } - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + private com.google.protobuf.Int64Value estimatedAddClicksAtFirstPositionCpc_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> estimatedAddClicksAtFirstPositionCpcBuilder_; + /** + *
+       * Estimate of how many clicks per week you might get by changing your
+       * keyword bid to the value in first_position_cpc_micros.
+       * 
+ * + * .google.protobuf.Int64Value estimated_add_clicks_at_first_position_cpc = 4; + */ + public boolean hasEstimatedAddClicksAtFirstPositionCpc() { + return estimatedAddClicksAtFirstPositionCpcBuilder_ != null || estimatedAddClicksAtFirstPositionCpc_ != null; } + /** + *
+       * Estimate of how many clicks per week you might get by changing your
+       * keyword bid to the value in first_position_cpc_micros.
+       * 
+ * + * .google.protobuf.Int64Value estimated_add_clicks_at_first_position_cpc = 4; + */ + public com.google.protobuf.Int64Value getEstimatedAddClicksAtFirstPositionCpc() { + if (estimatedAddClicksAtFirstPositionCpcBuilder_ == null) { + return estimatedAddClicksAtFirstPositionCpc_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : estimatedAddClicksAtFirstPositionCpc_; + } else { + return estimatedAddClicksAtFirstPositionCpcBuilder_.getMessage(); + } + } + /** + *
+       * Estimate of how many clicks per week you might get by changing your
+       * keyword bid to the value in first_position_cpc_micros.
+       * 
+ * + * .google.protobuf.Int64Value estimated_add_clicks_at_first_position_cpc = 4; + */ + public Builder setEstimatedAddClicksAtFirstPositionCpc(com.google.protobuf.Int64Value value) { + if (estimatedAddClicksAtFirstPositionCpcBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + estimatedAddClicksAtFirstPositionCpc_ = value; + onChanged(); + } else { + estimatedAddClicksAtFirstPositionCpcBuilder_.setMessage(value); + } - - // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.resources.AdGroupCriterion.PositionEstimates) - } - - // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.resources.AdGroupCriterion.PositionEstimates) - private static final com.google.ads.googleads.v0.resources.AdGroupCriterion.PositionEstimates DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.ads.googleads.v0.resources.AdGroupCriterion.PositionEstimates(); - } - - public static com.google.ads.googleads.v0.resources.AdGroupCriterion.PositionEstimates getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PositionEstimates parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PositionEstimates(input, extensionRegistry); + return this; } - }; + /** + *
+       * Estimate of how many clicks per week you might get by changing your
+       * keyword bid to the value in first_position_cpc_micros.
+       * 
+ * + * .google.protobuf.Int64Value estimated_add_clicks_at_first_position_cpc = 4; + */ + public Builder setEstimatedAddClicksAtFirstPositionCpc( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (estimatedAddClicksAtFirstPositionCpcBuilder_ == null) { + estimatedAddClicksAtFirstPositionCpc_ = builderForValue.build(); + onChanged(); + } else { + estimatedAddClicksAtFirstPositionCpcBuilder_.setMessage(builderForValue.build()); + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + return this; + } + /** + *
+       * Estimate of how many clicks per week you might get by changing your
+       * keyword bid to the value in first_position_cpc_micros.
+       * 
+ * + * .google.protobuf.Int64Value estimated_add_clicks_at_first_position_cpc = 4; + */ + public Builder mergeEstimatedAddClicksAtFirstPositionCpc(com.google.protobuf.Int64Value value) { + if (estimatedAddClicksAtFirstPositionCpcBuilder_ == null) { + if (estimatedAddClicksAtFirstPositionCpc_ != null) { + estimatedAddClicksAtFirstPositionCpc_ = + com.google.protobuf.Int64Value.newBuilder(estimatedAddClicksAtFirstPositionCpc_).mergeFrom(value).buildPartial(); + } else { + estimatedAddClicksAtFirstPositionCpc_ = value; + } + onChanged(); + } else { + estimatedAddClicksAtFirstPositionCpcBuilder_.mergeFrom(value); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + return this; + } + /** + *
+       * Estimate of how many clicks per week you might get by changing your
+       * keyword bid to the value in first_position_cpc_micros.
+       * 
+ * + * .google.protobuf.Int64Value estimated_add_clicks_at_first_position_cpc = 4; + */ + public Builder clearEstimatedAddClicksAtFirstPositionCpc() { + if (estimatedAddClicksAtFirstPositionCpcBuilder_ == null) { + estimatedAddClicksAtFirstPositionCpc_ = null; + onChanged(); + } else { + estimatedAddClicksAtFirstPositionCpc_ = null; + estimatedAddClicksAtFirstPositionCpcBuilder_ = null; + } - @java.lang.Override - public com.google.ads.googleads.v0.resources.AdGroupCriterion.PositionEstimates getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + return this; + } + /** + *
+       * Estimate of how many clicks per week you might get by changing your
+       * keyword bid to the value in first_position_cpc_micros.
+       * 
+ * + * .google.protobuf.Int64Value estimated_add_clicks_at_first_position_cpc = 4; + */ + public com.google.protobuf.Int64Value.Builder getEstimatedAddClicksAtFirstPositionCpcBuilder() { + + onChanged(); + return getEstimatedAddClicksAtFirstPositionCpcFieldBuilder().getBuilder(); + } + /** + *
+       * Estimate of how many clicks per week you might get by changing your
+       * keyword bid to the value in first_position_cpc_micros.
+       * 
+ * + * .google.protobuf.Int64Value estimated_add_clicks_at_first_position_cpc = 4; + */ + public com.google.protobuf.Int64ValueOrBuilder getEstimatedAddClicksAtFirstPositionCpcOrBuilder() { + if (estimatedAddClicksAtFirstPositionCpcBuilder_ != null) { + return estimatedAddClicksAtFirstPositionCpcBuilder_.getMessageOrBuilder(); + } else { + return estimatedAddClicksAtFirstPositionCpc_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : estimatedAddClicksAtFirstPositionCpc_; + } + } + /** + *
+       * Estimate of how many clicks per week you might get by changing your
+       * keyword bid to the value in first_position_cpc_micros.
+       * 
+ * + * .google.protobuf.Int64Value estimated_add_clicks_at_first_position_cpc = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + getEstimatedAddClicksAtFirstPositionCpcFieldBuilder() { + if (estimatedAddClicksAtFirstPositionCpcBuilder_ == null) { + estimatedAddClicksAtFirstPositionCpcBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getEstimatedAddClicksAtFirstPositionCpc(), + getParentForChildren(), + isClean()); + estimatedAddClicksAtFirstPositionCpc_ = null; + } + return estimatedAddClicksAtFirstPositionCpcBuilder_; + } - } + private com.google.protobuf.Int64Value estimatedAddCostAtFirstPositionCpc_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> estimatedAddCostAtFirstPositionCpcBuilder_; + /** + *
+       * Estimate of how your cost per week might change when changing your
+       * keyword bid to the value in first_position_cpc_micros.
+       * 
+ * + * .google.protobuf.Int64Value estimated_add_cost_at_first_position_cpc = 5; + */ + public boolean hasEstimatedAddCostAtFirstPositionCpc() { + return estimatedAddCostAtFirstPositionCpcBuilder_ != null || estimatedAddCostAtFirstPositionCpc_ != null; + } + /** + *
+       * Estimate of how your cost per week might change when changing your
+       * keyword bid to the value in first_position_cpc_micros.
+       * 
+ * + * .google.protobuf.Int64Value estimated_add_cost_at_first_position_cpc = 5; + */ + public com.google.protobuf.Int64Value getEstimatedAddCostAtFirstPositionCpc() { + if (estimatedAddCostAtFirstPositionCpcBuilder_ == null) { + return estimatedAddCostAtFirstPositionCpc_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : estimatedAddCostAtFirstPositionCpc_; + } else { + return estimatedAddCostAtFirstPositionCpcBuilder_.getMessage(); + } + } + /** + *
+       * Estimate of how your cost per week might change when changing your
+       * keyword bid to the value in first_position_cpc_micros.
+       * 
+ * + * .google.protobuf.Int64Value estimated_add_cost_at_first_position_cpc = 5; + */ + public Builder setEstimatedAddCostAtFirstPositionCpc(com.google.protobuf.Int64Value value) { + if (estimatedAddCostAtFirstPositionCpcBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + estimatedAddCostAtFirstPositionCpc_ = value; + onChanged(); + } else { + estimatedAddCostAtFirstPositionCpcBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Estimate of how your cost per week might change when changing your
+       * keyword bid to the value in first_position_cpc_micros.
+       * 
+ * + * .google.protobuf.Int64Value estimated_add_cost_at_first_position_cpc = 5; + */ + public Builder setEstimatedAddCostAtFirstPositionCpc( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (estimatedAddCostAtFirstPositionCpcBuilder_ == null) { + estimatedAddCostAtFirstPositionCpc_ = builderForValue.build(); + onChanged(); + } else { + estimatedAddCostAtFirstPositionCpcBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Estimate of how your cost per week might change when changing your
+       * keyword bid to the value in first_position_cpc_micros.
+       * 
+ * + * .google.protobuf.Int64Value estimated_add_cost_at_first_position_cpc = 5; + */ + public Builder mergeEstimatedAddCostAtFirstPositionCpc(com.google.protobuf.Int64Value value) { + if (estimatedAddCostAtFirstPositionCpcBuilder_ == null) { + if (estimatedAddCostAtFirstPositionCpc_ != null) { + estimatedAddCostAtFirstPositionCpc_ = + com.google.protobuf.Int64Value.newBuilder(estimatedAddCostAtFirstPositionCpc_).mergeFrom(value).buildPartial(); + } else { + estimatedAddCostAtFirstPositionCpc_ = value; + } + onChanged(); + } else { + estimatedAddCostAtFirstPositionCpcBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Estimate of how your cost per week might change when changing your
+       * keyword bid to the value in first_position_cpc_micros.
+       * 
+ * + * .google.protobuf.Int64Value estimated_add_cost_at_first_position_cpc = 5; + */ + public Builder clearEstimatedAddCostAtFirstPositionCpc() { + if (estimatedAddCostAtFirstPositionCpcBuilder_ == null) { + estimatedAddCostAtFirstPositionCpc_ = null; + onChanged(); + } else { + estimatedAddCostAtFirstPositionCpc_ = null; + estimatedAddCostAtFirstPositionCpcBuilder_ = null; + } + + return this; + } + /** + *
+       * Estimate of how your cost per week might change when changing your
+       * keyword bid to the value in first_position_cpc_micros.
+       * 
+ * + * .google.protobuf.Int64Value estimated_add_cost_at_first_position_cpc = 5; + */ + public com.google.protobuf.Int64Value.Builder getEstimatedAddCostAtFirstPositionCpcBuilder() { + + onChanged(); + return getEstimatedAddCostAtFirstPositionCpcFieldBuilder().getBuilder(); + } + /** + *
+       * Estimate of how your cost per week might change when changing your
+       * keyword bid to the value in first_position_cpc_micros.
+       * 
+ * + * .google.protobuf.Int64Value estimated_add_cost_at_first_position_cpc = 5; + */ + public com.google.protobuf.Int64ValueOrBuilder getEstimatedAddCostAtFirstPositionCpcOrBuilder() { + if (estimatedAddCostAtFirstPositionCpcBuilder_ != null) { + return estimatedAddCostAtFirstPositionCpcBuilder_.getMessageOrBuilder(); + } else { + return estimatedAddCostAtFirstPositionCpc_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : estimatedAddCostAtFirstPositionCpc_; + } + } + /** + *
+       * Estimate of how your cost per week might change when changing your
+       * keyword bid to the value in first_position_cpc_micros.
+       * 
+ * + * .google.protobuf.Int64Value estimated_add_cost_at_first_position_cpc = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + getEstimatedAddCostAtFirstPositionCpcFieldBuilder() { + if (estimatedAddCostAtFirstPositionCpcBuilder_ == null) { + estimatedAddCostAtFirstPositionCpcBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getEstimatedAddCostAtFirstPositionCpc(), + getParentForChildren(), + isClean()); + estimatedAddCostAtFirstPositionCpc_ = null; + } + return estimatedAddCostAtFirstPositionCpcBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.resources.AdGroupCriterion.PositionEstimates) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.resources.AdGroupCriterion.PositionEstimates) + private static final com.google.ads.googleads.v0.resources.AdGroupCriterion.PositionEstimates DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.resources.AdGroupCriterion.PositionEstimates(); + } + + public static com.google.ads.googleads.v0.resources.AdGroupCriterion.PositionEstimates getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PositionEstimates parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PositionEstimates(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.resources.AdGroupCriterion.PositionEstimates getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } private int bitField0_; private int bitField1_; @@ -2848,6 +3428,7 @@ public enum CriterionCase implements com.google.protobuf.Internal.EnumLite { KEYWORD(27), PLACEMENT(28), + MOBILE_APP_CATEGORY(29), LISTING_GROUP(32), AGE_RANGE(36), GENDER(37), @@ -2858,6 +3439,8 @@ public enum CriterionCase YOUTUBE_CHANNEL(41), TOPIC(43), USER_INTEREST(45), + WEBPAGE(46), + APP_PAYMENT_MODEL(47), CRITERION_NOT_SET(0); private final int value; private CriterionCase(int value) { @@ -2875,6 +3458,7 @@ public static CriterionCase forNumber(int value) { switch (value) { case 27: return KEYWORD; case 28: return PLACEMENT; + case 29: return MOBILE_APP_CATEGORY; case 32: return LISTING_GROUP; case 36: return AGE_RANGE; case 37: return GENDER; @@ -2885,6 +3469,8 @@ public static CriterionCase forNumber(int value) { case 41: return YOUTUBE_CHANNEL; case 43: return TOPIC; case 45: return USER_INTEREST; + case 46: return WEBPAGE; + case 47: return APP_PAYMENT_MODEL; case 0: return CRITERION_NOT_SET; default: return null; } @@ -3805,6 +4391,44 @@ public com.google.ads.googleads.v0.common.PlacementInfoOrBuilder getPlacementOrB return com.google.ads.googleads.v0.common.PlacementInfo.getDefaultInstance(); } + public static final int MOBILE_APP_CATEGORY_FIELD_NUMBER = 29; + /** + *
+   * Mobile app category.
+   * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 29; + */ + public boolean hasMobileAppCategory() { + return criterionCase_ == 29; + } + /** + *
+   * Mobile app category.
+   * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 29; + */ + public com.google.ads.googleads.v0.common.MobileAppCategoryInfo getMobileAppCategory() { + if (criterionCase_ == 29) { + return (com.google.ads.googleads.v0.common.MobileAppCategoryInfo) criterion_; + } + return com.google.ads.googleads.v0.common.MobileAppCategoryInfo.getDefaultInstance(); + } + /** + *
+   * Mobile app category.
+   * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 29; + */ + public com.google.ads.googleads.v0.common.MobileAppCategoryInfoOrBuilder getMobileAppCategoryOrBuilder() { + if (criterionCase_ == 29) { + return (com.google.ads.googleads.v0.common.MobileAppCategoryInfo) criterion_; + } + return com.google.ads.googleads.v0.common.MobileAppCategoryInfo.getDefaultInstance(); + } + public static final int LISTING_GROUP_FIELD_NUMBER = 32; /** *
@@ -4185,6 +4809,82 @@ public com.google.ads.googleads.v0.common.UserInterestInfoOrBuilder getUserInter
     return com.google.ads.googleads.v0.common.UserInterestInfo.getDefaultInstance();
   }
 
+  public static final int WEBPAGE_FIELD_NUMBER = 46;
+  /**
+   * 
+   * Webpage
+   * 
+ * + * .google.ads.googleads.v0.common.WebpageInfo webpage = 46; + */ + public boolean hasWebpage() { + return criterionCase_ == 46; + } + /** + *
+   * Webpage
+   * 
+ * + * .google.ads.googleads.v0.common.WebpageInfo webpage = 46; + */ + public com.google.ads.googleads.v0.common.WebpageInfo getWebpage() { + if (criterionCase_ == 46) { + return (com.google.ads.googleads.v0.common.WebpageInfo) criterion_; + } + return com.google.ads.googleads.v0.common.WebpageInfo.getDefaultInstance(); + } + /** + *
+   * Webpage
+   * 
+ * + * .google.ads.googleads.v0.common.WebpageInfo webpage = 46; + */ + public com.google.ads.googleads.v0.common.WebpageInfoOrBuilder getWebpageOrBuilder() { + if (criterionCase_ == 46) { + return (com.google.ads.googleads.v0.common.WebpageInfo) criterion_; + } + return com.google.ads.googleads.v0.common.WebpageInfo.getDefaultInstance(); + } + + public static final int APP_PAYMENT_MODEL_FIELD_NUMBER = 47; + /** + *
+   * App Payment Model.
+   * 
+ * + * .google.ads.googleads.v0.common.AppPaymentModelInfo app_payment_model = 47; + */ + public boolean hasAppPaymentModel() { + return criterionCase_ == 47; + } + /** + *
+   * App Payment Model.
+   * 
+ * + * .google.ads.googleads.v0.common.AppPaymentModelInfo app_payment_model = 47; + */ + public com.google.ads.googleads.v0.common.AppPaymentModelInfo getAppPaymentModel() { + if (criterionCase_ == 47) { + return (com.google.ads.googleads.v0.common.AppPaymentModelInfo) criterion_; + } + return com.google.ads.googleads.v0.common.AppPaymentModelInfo.getDefaultInstance(); + } + /** + *
+   * App Payment Model.
+   * 
+ * + * .google.ads.googleads.v0.common.AppPaymentModelInfo app_payment_model = 47; + */ + public com.google.ads.googleads.v0.common.AppPaymentModelInfoOrBuilder getAppPaymentModelOrBuilder() { + if (criterionCase_ == 47) { + return (com.google.ads.googleads.v0.common.AppPaymentModelInfo) criterion_; + } + return com.google.ads.googleads.v0.common.AppPaymentModelInfo.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -4262,6 +4962,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (criterionCase_ == 28) { output.writeMessage(28, (com.google.ads.googleads.v0.common.PlacementInfo) criterion_); } + if (criterionCase_ == 29) { + output.writeMessage(29, (com.google.ads.googleads.v0.common.MobileAppCategoryInfo) criterion_); + } if (negative_ != null) { output.writeMessage(31, getNegative()); } @@ -4307,6 +5010,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (criterionCase_ == 45) { output.writeMessage(45, (com.google.ads.googleads.v0.common.UserInterestInfo) criterion_); } + if (criterionCase_ == 46) { + output.writeMessage(46, (com.google.ads.googleads.v0.common.WebpageInfo) criterion_); + } + if (criterionCase_ == 47) { + output.writeMessage(47, (com.google.ads.googleads.v0.common.AppPaymentModelInfo) criterion_); + } unknownFields.writeTo(output); } @@ -4399,6 +5108,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(28, (com.google.ads.googleads.v0.common.PlacementInfo) criterion_); } + if (criterionCase_ == 29) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(29, (com.google.ads.googleads.v0.common.MobileAppCategoryInfo) criterion_); + } if (negative_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(31, getNegative()); @@ -4459,6 +5172,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(45, (com.google.ads.googleads.v0.common.UserInterestInfo) criterion_); } + if (criterionCase_ == 46) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(46, (com.google.ads.googleads.v0.common.WebpageInfo) criterion_); + } + if (criterionCase_ == 47) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(47, (com.google.ads.googleads.v0.common.AppPaymentModelInfo) criterion_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -4574,6 +5295,10 @@ public boolean equals(final java.lang.Object obj) { result = result && getPlacement() .equals(other.getPlacement()); break; + case 29: + result = result && getMobileAppCategory() + .equals(other.getMobileAppCategory()); + break; case 32: result = result && getListingGroup() .equals(other.getListingGroup()); @@ -4614,6 +5339,14 @@ public boolean equals(final java.lang.Object obj) { result = result && getUserInterest() .equals(other.getUserInterest()); break; + case 46: + result = result && getWebpage() + .equals(other.getWebpage()); + break; + case 47: + result = result && getAppPaymentModel() + .equals(other.getAppPaymentModel()); + break; case 0: default: } @@ -4719,6 +5452,10 @@ public int hashCode() { hash = (37 * hash) + PLACEMENT_FIELD_NUMBER; hash = (53 * hash) + getPlacement().hashCode(); break; + case 29: + hash = (37 * hash) + MOBILE_APP_CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + getMobileAppCategory().hashCode(); + break; case 32: hash = (37 * hash) + LISTING_GROUP_FIELD_NUMBER; hash = (53 * hash) + getListingGroup().hashCode(); @@ -4759,6 +5496,14 @@ public int hashCode() { hash = (37 * hash) + USER_INTEREST_FIELD_NUMBER; hash = (53 * hash) + getUserInterest().hashCode(); break; + case 46: + hash = (37 * hash) + WEBPAGE_FIELD_NUMBER; + hash = (53 * hash) + getWebpage().hashCode(); + break; + case 47: + hash = (37 * hash) + APP_PAYMENT_MODEL_FIELD_NUMBER; + hash = (53 * hash) + getAppPaymentModel().hashCode(); + break; case 0: default: } @@ -5163,6 +5908,13 @@ public com.google.ads.googleads.v0.resources.AdGroupCriterion buildPartial() { result.criterion_ = placementBuilder_.build(); } } + if (criterionCase_ == 29) { + if (mobileAppCategoryBuilder_ == null) { + result.criterion_ = criterion_; + } else { + result.criterion_ = mobileAppCategoryBuilder_.build(); + } + } if (criterionCase_ == 32) { if (listingGroupBuilder_ == null) { result.criterion_ = criterion_; @@ -5233,6 +5985,20 @@ public com.google.ads.googleads.v0.resources.AdGroupCriterion buildPartial() { result.criterion_ = userInterestBuilder_.build(); } } + if (criterionCase_ == 46) { + if (webpageBuilder_ == null) { + result.criterion_ = criterion_; + } else { + result.criterion_ = webpageBuilder_.build(); + } + } + if (criterionCase_ == 47) { + if (appPaymentModelBuilder_ == null) { + result.criterion_ = criterion_; + } else { + result.criterion_ = appPaymentModelBuilder_.build(); + } + } result.bitField0_ = to_bitField0_; result.bitField1_ = to_bitField1_; result.criterionCase_ = criterionCase_; @@ -5412,6 +6178,10 @@ public Builder mergeFrom(com.google.ads.googleads.v0.resources.AdGroupCriterion mergePlacement(other.getPlacement()); break; } + case MOBILE_APP_CATEGORY: { + mergeMobileAppCategory(other.getMobileAppCategory()); + break; + } case LISTING_GROUP: { mergeListingGroup(other.getListingGroup()); break; @@ -5452,6 +6222,14 @@ public Builder mergeFrom(com.google.ads.googleads.v0.resources.AdGroupCriterion mergeUserInterest(other.getUserInterest()); break; } + case WEBPAGE: { + mergeWebpage(other.getWebpage()); + break; + } + case APP_PAYMENT_MODEL: { + mergeAppPaymentModel(other.getAppPaymentModel()); + break; + } case CRITERION_NOT_SET: { break; } @@ -9345,35 +10123,207 @@ public com.google.ads.googleads.v0.common.PlacementInfoOrBuilder getPlacementOrB } private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.common.ListingGroupInfo, com.google.ads.googleads.v0.common.ListingGroupInfo.Builder, com.google.ads.googleads.v0.common.ListingGroupInfoOrBuilder> listingGroupBuilder_; + com.google.ads.googleads.v0.common.MobileAppCategoryInfo, com.google.ads.googleads.v0.common.MobileAppCategoryInfo.Builder, com.google.ads.googleads.v0.common.MobileAppCategoryInfoOrBuilder> mobileAppCategoryBuilder_; /** *
-     * Listing group.
+     * Mobile app category.
      * 
* - * .google.ads.googleads.v0.common.ListingGroupInfo listing_group = 32; + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 29; */ - public boolean hasListingGroup() { - return criterionCase_ == 32; + public boolean hasMobileAppCategory() { + return criterionCase_ == 29; } /** *
-     * Listing group.
+     * Mobile app category.
      * 
* - * .google.ads.googleads.v0.common.ListingGroupInfo listing_group = 32; + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 29; */ - public com.google.ads.googleads.v0.common.ListingGroupInfo getListingGroup() { - if (listingGroupBuilder_ == null) { - if (criterionCase_ == 32) { - return (com.google.ads.googleads.v0.common.ListingGroupInfo) criterion_; + public com.google.ads.googleads.v0.common.MobileAppCategoryInfo getMobileAppCategory() { + if (mobileAppCategoryBuilder_ == null) { + if (criterionCase_ == 29) { + return (com.google.ads.googleads.v0.common.MobileAppCategoryInfo) criterion_; } - return com.google.ads.googleads.v0.common.ListingGroupInfo.getDefaultInstance(); + return com.google.ads.googleads.v0.common.MobileAppCategoryInfo.getDefaultInstance(); } else { - if (criterionCase_ == 32) { - return listingGroupBuilder_.getMessage(); + if (criterionCase_ == 29) { + return mobileAppCategoryBuilder_.getMessage(); } - return com.google.ads.googleads.v0.common.ListingGroupInfo.getDefaultInstance(); + return com.google.ads.googleads.v0.common.MobileAppCategoryInfo.getDefaultInstance(); + } + } + /** + *
+     * Mobile app category.
+     * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 29; + */ + public Builder setMobileAppCategory(com.google.ads.googleads.v0.common.MobileAppCategoryInfo value) { + if (mobileAppCategoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + criterion_ = value; + onChanged(); + } else { + mobileAppCategoryBuilder_.setMessage(value); + } + criterionCase_ = 29; + return this; + } + /** + *
+     * Mobile app category.
+     * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 29; + */ + public Builder setMobileAppCategory( + com.google.ads.googleads.v0.common.MobileAppCategoryInfo.Builder builderForValue) { + if (mobileAppCategoryBuilder_ == null) { + criterion_ = builderForValue.build(); + onChanged(); + } else { + mobileAppCategoryBuilder_.setMessage(builderForValue.build()); + } + criterionCase_ = 29; + return this; + } + /** + *
+     * Mobile app category.
+     * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 29; + */ + public Builder mergeMobileAppCategory(com.google.ads.googleads.v0.common.MobileAppCategoryInfo value) { + if (mobileAppCategoryBuilder_ == null) { + if (criterionCase_ == 29 && + criterion_ != com.google.ads.googleads.v0.common.MobileAppCategoryInfo.getDefaultInstance()) { + criterion_ = com.google.ads.googleads.v0.common.MobileAppCategoryInfo.newBuilder((com.google.ads.googleads.v0.common.MobileAppCategoryInfo) criterion_) + .mergeFrom(value).buildPartial(); + } else { + criterion_ = value; + } + onChanged(); + } else { + if (criterionCase_ == 29) { + mobileAppCategoryBuilder_.mergeFrom(value); + } + mobileAppCategoryBuilder_.setMessage(value); + } + criterionCase_ = 29; + return this; + } + /** + *
+     * Mobile app category.
+     * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 29; + */ + public Builder clearMobileAppCategory() { + if (mobileAppCategoryBuilder_ == null) { + if (criterionCase_ == 29) { + criterionCase_ = 0; + criterion_ = null; + onChanged(); + } + } else { + if (criterionCase_ == 29) { + criterionCase_ = 0; + criterion_ = null; + } + mobileAppCategoryBuilder_.clear(); + } + return this; + } + /** + *
+     * Mobile app category.
+     * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 29; + */ + public com.google.ads.googleads.v0.common.MobileAppCategoryInfo.Builder getMobileAppCategoryBuilder() { + return getMobileAppCategoryFieldBuilder().getBuilder(); + } + /** + *
+     * Mobile app category.
+     * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 29; + */ + public com.google.ads.googleads.v0.common.MobileAppCategoryInfoOrBuilder getMobileAppCategoryOrBuilder() { + if ((criterionCase_ == 29) && (mobileAppCategoryBuilder_ != null)) { + return mobileAppCategoryBuilder_.getMessageOrBuilder(); + } else { + if (criterionCase_ == 29) { + return (com.google.ads.googleads.v0.common.MobileAppCategoryInfo) criterion_; + } + return com.google.ads.googleads.v0.common.MobileAppCategoryInfo.getDefaultInstance(); + } + } + /** + *
+     * Mobile app category.
+     * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 29; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.MobileAppCategoryInfo, com.google.ads.googleads.v0.common.MobileAppCategoryInfo.Builder, com.google.ads.googleads.v0.common.MobileAppCategoryInfoOrBuilder> + getMobileAppCategoryFieldBuilder() { + if (mobileAppCategoryBuilder_ == null) { + if (!(criterionCase_ == 29)) { + criterion_ = com.google.ads.googleads.v0.common.MobileAppCategoryInfo.getDefaultInstance(); + } + mobileAppCategoryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.MobileAppCategoryInfo, com.google.ads.googleads.v0.common.MobileAppCategoryInfo.Builder, com.google.ads.googleads.v0.common.MobileAppCategoryInfoOrBuilder>( + (com.google.ads.googleads.v0.common.MobileAppCategoryInfo) criterion_, + getParentForChildren(), + isClean()); + criterion_ = null; + } + criterionCase_ = 29; + onChanged();; + return mobileAppCategoryBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.ListingGroupInfo, com.google.ads.googleads.v0.common.ListingGroupInfo.Builder, com.google.ads.googleads.v0.common.ListingGroupInfoOrBuilder> listingGroupBuilder_; + /** + *
+     * Listing group.
+     * 
+ * + * .google.ads.googleads.v0.common.ListingGroupInfo listing_group = 32; + */ + public boolean hasListingGroup() { + return criterionCase_ == 32; + } + /** + *
+     * Listing group.
+     * 
+ * + * .google.ads.googleads.v0.common.ListingGroupInfo listing_group = 32; + */ + public com.google.ads.googleads.v0.common.ListingGroupInfo getListingGroup() { + if (listingGroupBuilder_ == null) { + if (criterionCase_ == 32) { + return (com.google.ads.googleads.v0.common.ListingGroupInfo) criterion_; + } + return com.google.ads.googleads.v0.common.ListingGroupInfo.getDefaultInstance(); + } else { + if (criterionCase_ == 32) { + return listingGroupBuilder_.getMessage(); + } + return com.google.ads.googleads.v0.common.ListingGroupInfo.getDefaultInstance(); } } /** @@ -11063,6 +12013,350 @@ public com.google.ads.googleads.v0.common.UserInterestInfoOrBuilder getUserInter onChanged();; return userInterestBuilder_; } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.WebpageInfo, com.google.ads.googleads.v0.common.WebpageInfo.Builder, com.google.ads.googleads.v0.common.WebpageInfoOrBuilder> webpageBuilder_; + /** + *
+     * Webpage
+     * 
+ * + * .google.ads.googleads.v0.common.WebpageInfo webpage = 46; + */ + public boolean hasWebpage() { + return criterionCase_ == 46; + } + /** + *
+     * Webpage
+     * 
+ * + * .google.ads.googleads.v0.common.WebpageInfo webpage = 46; + */ + public com.google.ads.googleads.v0.common.WebpageInfo getWebpage() { + if (webpageBuilder_ == null) { + if (criterionCase_ == 46) { + return (com.google.ads.googleads.v0.common.WebpageInfo) criterion_; + } + return com.google.ads.googleads.v0.common.WebpageInfo.getDefaultInstance(); + } else { + if (criterionCase_ == 46) { + return webpageBuilder_.getMessage(); + } + return com.google.ads.googleads.v0.common.WebpageInfo.getDefaultInstance(); + } + } + /** + *
+     * Webpage
+     * 
+ * + * .google.ads.googleads.v0.common.WebpageInfo webpage = 46; + */ + public Builder setWebpage(com.google.ads.googleads.v0.common.WebpageInfo value) { + if (webpageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + criterion_ = value; + onChanged(); + } else { + webpageBuilder_.setMessage(value); + } + criterionCase_ = 46; + return this; + } + /** + *
+     * Webpage
+     * 
+ * + * .google.ads.googleads.v0.common.WebpageInfo webpage = 46; + */ + public Builder setWebpage( + com.google.ads.googleads.v0.common.WebpageInfo.Builder builderForValue) { + if (webpageBuilder_ == null) { + criterion_ = builderForValue.build(); + onChanged(); + } else { + webpageBuilder_.setMessage(builderForValue.build()); + } + criterionCase_ = 46; + return this; + } + /** + *
+     * Webpage
+     * 
+ * + * .google.ads.googleads.v0.common.WebpageInfo webpage = 46; + */ + public Builder mergeWebpage(com.google.ads.googleads.v0.common.WebpageInfo value) { + if (webpageBuilder_ == null) { + if (criterionCase_ == 46 && + criterion_ != com.google.ads.googleads.v0.common.WebpageInfo.getDefaultInstance()) { + criterion_ = com.google.ads.googleads.v0.common.WebpageInfo.newBuilder((com.google.ads.googleads.v0.common.WebpageInfo) criterion_) + .mergeFrom(value).buildPartial(); + } else { + criterion_ = value; + } + onChanged(); + } else { + if (criterionCase_ == 46) { + webpageBuilder_.mergeFrom(value); + } + webpageBuilder_.setMessage(value); + } + criterionCase_ = 46; + return this; + } + /** + *
+     * Webpage
+     * 
+ * + * .google.ads.googleads.v0.common.WebpageInfo webpage = 46; + */ + public Builder clearWebpage() { + if (webpageBuilder_ == null) { + if (criterionCase_ == 46) { + criterionCase_ = 0; + criterion_ = null; + onChanged(); + } + } else { + if (criterionCase_ == 46) { + criterionCase_ = 0; + criterion_ = null; + } + webpageBuilder_.clear(); + } + return this; + } + /** + *
+     * Webpage
+     * 
+ * + * .google.ads.googleads.v0.common.WebpageInfo webpage = 46; + */ + public com.google.ads.googleads.v0.common.WebpageInfo.Builder getWebpageBuilder() { + return getWebpageFieldBuilder().getBuilder(); + } + /** + *
+     * Webpage
+     * 
+ * + * .google.ads.googleads.v0.common.WebpageInfo webpage = 46; + */ + public com.google.ads.googleads.v0.common.WebpageInfoOrBuilder getWebpageOrBuilder() { + if ((criterionCase_ == 46) && (webpageBuilder_ != null)) { + return webpageBuilder_.getMessageOrBuilder(); + } else { + if (criterionCase_ == 46) { + return (com.google.ads.googleads.v0.common.WebpageInfo) criterion_; + } + return com.google.ads.googleads.v0.common.WebpageInfo.getDefaultInstance(); + } + } + /** + *
+     * Webpage
+     * 
+ * + * .google.ads.googleads.v0.common.WebpageInfo webpage = 46; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.WebpageInfo, com.google.ads.googleads.v0.common.WebpageInfo.Builder, com.google.ads.googleads.v0.common.WebpageInfoOrBuilder> + getWebpageFieldBuilder() { + if (webpageBuilder_ == null) { + if (!(criterionCase_ == 46)) { + criterion_ = com.google.ads.googleads.v0.common.WebpageInfo.getDefaultInstance(); + } + webpageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.WebpageInfo, com.google.ads.googleads.v0.common.WebpageInfo.Builder, com.google.ads.googleads.v0.common.WebpageInfoOrBuilder>( + (com.google.ads.googleads.v0.common.WebpageInfo) criterion_, + getParentForChildren(), + isClean()); + criterion_ = null; + } + criterionCase_ = 46; + onChanged();; + return webpageBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.AppPaymentModelInfo, com.google.ads.googleads.v0.common.AppPaymentModelInfo.Builder, com.google.ads.googleads.v0.common.AppPaymentModelInfoOrBuilder> appPaymentModelBuilder_; + /** + *
+     * App Payment Model.
+     * 
+ * + * .google.ads.googleads.v0.common.AppPaymentModelInfo app_payment_model = 47; + */ + public boolean hasAppPaymentModel() { + return criterionCase_ == 47; + } + /** + *
+     * App Payment Model.
+     * 
+ * + * .google.ads.googleads.v0.common.AppPaymentModelInfo app_payment_model = 47; + */ + public com.google.ads.googleads.v0.common.AppPaymentModelInfo getAppPaymentModel() { + if (appPaymentModelBuilder_ == null) { + if (criterionCase_ == 47) { + return (com.google.ads.googleads.v0.common.AppPaymentModelInfo) criterion_; + } + return com.google.ads.googleads.v0.common.AppPaymentModelInfo.getDefaultInstance(); + } else { + if (criterionCase_ == 47) { + return appPaymentModelBuilder_.getMessage(); + } + return com.google.ads.googleads.v0.common.AppPaymentModelInfo.getDefaultInstance(); + } + } + /** + *
+     * App Payment Model.
+     * 
+ * + * .google.ads.googleads.v0.common.AppPaymentModelInfo app_payment_model = 47; + */ + public Builder setAppPaymentModel(com.google.ads.googleads.v0.common.AppPaymentModelInfo value) { + if (appPaymentModelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + criterion_ = value; + onChanged(); + } else { + appPaymentModelBuilder_.setMessage(value); + } + criterionCase_ = 47; + return this; + } + /** + *
+     * App Payment Model.
+     * 
+ * + * .google.ads.googleads.v0.common.AppPaymentModelInfo app_payment_model = 47; + */ + public Builder setAppPaymentModel( + com.google.ads.googleads.v0.common.AppPaymentModelInfo.Builder builderForValue) { + if (appPaymentModelBuilder_ == null) { + criterion_ = builderForValue.build(); + onChanged(); + } else { + appPaymentModelBuilder_.setMessage(builderForValue.build()); + } + criterionCase_ = 47; + return this; + } + /** + *
+     * App Payment Model.
+     * 
+ * + * .google.ads.googleads.v0.common.AppPaymentModelInfo app_payment_model = 47; + */ + public Builder mergeAppPaymentModel(com.google.ads.googleads.v0.common.AppPaymentModelInfo value) { + if (appPaymentModelBuilder_ == null) { + if (criterionCase_ == 47 && + criterion_ != com.google.ads.googleads.v0.common.AppPaymentModelInfo.getDefaultInstance()) { + criterion_ = com.google.ads.googleads.v0.common.AppPaymentModelInfo.newBuilder((com.google.ads.googleads.v0.common.AppPaymentModelInfo) criterion_) + .mergeFrom(value).buildPartial(); + } else { + criterion_ = value; + } + onChanged(); + } else { + if (criterionCase_ == 47) { + appPaymentModelBuilder_.mergeFrom(value); + } + appPaymentModelBuilder_.setMessage(value); + } + criterionCase_ = 47; + return this; + } + /** + *
+     * App Payment Model.
+     * 
+ * + * .google.ads.googleads.v0.common.AppPaymentModelInfo app_payment_model = 47; + */ + public Builder clearAppPaymentModel() { + if (appPaymentModelBuilder_ == null) { + if (criterionCase_ == 47) { + criterionCase_ = 0; + criterion_ = null; + onChanged(); + } + } else { + if (criterionCase_ == 47) { + criterionCase_ = 0; + criterion_ = null; + } + appPaymentModelBuilder_.clear(); + } + return this; + } + /** + *
+     * App Payment Model.
+     * 
+ * + * .google.ads.googleads.v0.common.AppPaymentModelInfo app_payment_model = 47; + */ + public com.google.ads.googleads.v0.common.AppPaymentModelInfo.Builder getAppPaymentModelBuilder() { + return getAppPaymentModelFieldBuilder().getBuilder(); + } + /** + *
+     * App Payment Model.
+     * 
+ * + * .google.ads.googleads.v0.common.AppPaymentModelInfo app_payment_model = 47; + */ + public com.google.ads.googleads.v0.common.AppPaymentModelInfoOrBuilder getAppPaymentModelOrBuilder() { + if ((criterionCase_ == 47) && (appPaymentModelBuilder_ != null)) { + return appPaymentModelBuilder_.getMessageOrBuilder(); + } else { + if (criterionCase_ == 47) { + return (com.google.ads.googleads.v0.common.AppPaymentModelInfo) criterion_; + } + return com.google.ads.googleads.v0.common.AppPaymentModelInfo.getDefaultInstance(); + } + } + /** + *
+     * App Payment Model.
+     * 
+ * + * .google.ads.googleads.v0.common.AppPaymentModelInfo app_payment_model = 47; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.AppPaymentModelInfo, com.google.ads.googleads.v0.common.AppPaymentModelInfo.Builder, com.google.ads.googleads.v0.common.AppPaymentModelInfoOrBuilder> + getAppPaymentModelFieldBuilder() { + if (appPaymentModelBuilder_ == null) { + if (!(criterionCase_ == 47)) { + criterion_ = com.google.ads.googleads.v0.common.AppPaymentModelInfo.getDefaultInstance(); + } + appPaymentModelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.AppPaymentModelInfo, com.google.ads.googleads.v0.common.AppPaymentModelInfo.Builder, com.google.ads.googleads.v0.common.AppPaymentModelInfoOrBuilder>( + (com.google.ads.googleads.v0.common.AppPaymentModelInfo) criterion_, + getParentForChildren(), + isClean()); + criterion_ = null; + } + criterionCase_ = 47; + onChanged();; + return appPaymentModelBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroupCriterionOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroupCriterionOrBuilder.java index c80c9b6df9..86347e991f 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroupCriterionOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroupCriterionOrBuilder.java @@ -672,6 +672,31 @@ com.google.ads.googleads.v0.common.CustomParameterOrBuilder getUrlCustomParamete */ com.google.ads.googleads.v0.common.PlacementInfoOrBuilder getPlacementOrBuilder(); + /** + *
+   * Mobile app category.
+   * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 29; + */ + boolean hasMobileAppCategory(); + /** + *
+   * Mobile app category.
+   * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 29; + */ + com.google.ads.googleads.v0.common.MobileAppCategoryInfo getMobileAppCategory(); + /** + *
+   * Mobile app category.
+   * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 29; + */ + com.google.ads.googleads.v0.common.MobileAppCategoryInfoOrBuilder getMobileAppCategoryOrBuilder(); + /** *
    * Listing group.
@@ -922,5 +947,55 @@ com.google.ads.googleads.v0.common.CustomParameterOrBuilder getUrlCustomParamete
    */
   com.google.ads.googleads.v0.common.UserInterestInfoOrBuilder getUserInterestOrBuilder();
 
+  /**
+   * 
+   * Webpage
+   * 
+ * + * .google.ads.googleads.v0.common.WebpageInfo webpage = 46; + */ + boolean hasWebpage(); + /** + *
+   * Webpage
+   * 
+ * + * .google.ads.googleads.v0.common.WebpageInfo webpage = 46; + */ + com.google.ads.googleads.v0.common.WebpageInfo getWebpage(); + /** + *
+   * Webpage
+   * 
+ * + * .google.ads.googleads.v0.common.WebpageInfo webpage = 46; + */ + com.google.ads.googleads.v0.common.WebpageInfoOrBuilder getWebpageOrBuilder(); + + /** + *
+   * App Payment Model.
+   * 
+ * + * .google.ads.googleads.v0.common.AppPaymentModelInfo app_payment_model = 47; + */ + boolean hasAppPaymentModel(); + /** + *
+   * App Payment Model.
+   * 
+ * + * .google.ads.googleads.v0.common.AppPaymentModelInfo app_payment_model = 47; + */ + com.google.ads.googleads.v0.common.AppPaymentModelInfo getAppPaymentModel(); + /** + *
+   * App Payment Model.
+   * 
+ * + * .google.ads.googleads.v0.common.AppPaymentModelInfo app_payment_model = 47; + */ + com.google.ads.googleads.v0.common.AppPaymentModelInfoOrBuilder getAppPaymentModelOrBuilder(); + public com.google.ads.googleads.v0.resources.AdGroupCriterion.CriterionCase getCriterionCase(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroupCriterionProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroupCriterionProto.java index 31abd6127a..3a6bb32220 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroupCriterionProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroupCriterionProto.java @@ -49,7 +49,7 @@ public static void registerAllExtensions( "/ads/googleads/v0/enums/criterion_type.p" + "roto\0328google/ads/googleads/v0/enums/qual" + "ity_score_bucket.proto\032\036google/protobuf/" + - "wrappers.proto\"\261\030\n\020AdGroupCriterion\022\025\n\rr" + + "wrappers.proto\"\271\033\n\020AdGroupCriterion\022\025\n\rr" + "esource_name\030\001 \001(\t\0221\n\014criterion_id\030\032 \001(\013" + "2\033.google.protobuf.Int64Value\022`\n\006status\030" + "\003 \001(\0162P.google.ads.googleads.v0.enums.Ad" + @@ -94,46 +94,56 @@ public static void registerAllExtensions( "arameter\022>\n\007keyword\030\033 \001(\0132+.google.ads.g" + "oogleads.v0.common.KeywordInfoH\000\022B\n\tplac" + "ement\030\034 \001(\0132-.google.ads.googleads.v0.co" + - "mmon.PlacementInfoH\000\022I\n\rlisting_group\030 " + - "\001(\01320.google.ads.googleads.v0.common.Lis" + - "tingGroupInfoH\000\022A\n\tage_range\030$ \001(\0132,.goo" + - "gle.ads.googleads.v0.common.AgeRangeInfo" + - "H\000\022<\n\006gender\030% \001(\0132*.google.ads.googlead" + - "s.v0.common.GenderInfoH\000\022G\n\014income_range" + - "\030& \001(\0132/.google.ads.googleads.v0.common." + - "IncomeRangeInfoH\000\022M\n\017parental_status\030\' \001" + - "(\01322.google.ads.googleads.v0.common.Pare" + - "ntalStatusInfoH\000\022A\n\tuser_list\030* \001(\0132,.go" + - "ogle.ads.googleads.v0.common.UserListInf" + - "oH\000\022I\n\ryoutube_video\030( \001(\01320.google.ads." + - "googleads.v0.common.YouTubeVideoInfoH\000\022M" + - "\n\017youtube_channel\030) \001(\01322.google.ads.goo" + - "gleads.v0.common.YouTubeChannelInfoH\000\022:\n" + - "\005topic\030+ \001(\0132).google.ads.googleads.v0.c" + - "ommon.TopicInfoH\000\022I\n\ruser_interest\030- \001(\013" + - "20.google.ads.googleads.v0.common.UserIn" + - "terestInfoH\000\032\377\002\n\013QualityInfo\0222\n\rquality_" + - "score\030\001 \001(\0132\033.google.protobuf.Int32Value" + - "\022h\n\026creative_quality_score\030\002 \001(\0162H.googl" + - "e.ads.googleads.v0.enums.QualityScoreBuc" + - "ketEnum.QualityScoreBucket\022j\n\030post_click" + - "_quality_score\030\003 \001(\0162H.google.ads.google" + - "ads.v0.enums.QualityScoreBucketEnum.Qual" + - "ityScoreBucket\022f\n\024search_predicted_ctr\030\004" + - " \001(\0162H.google.ads.googleads.v0.enums.Qua" + - "lityScoreBucketEnum.QualityScoreBucket\032\314" + - "\001\n\021PositionEstimates\022:\n\025first_page_cpc_m" + - "icros\030\001 \001(\0132\033.google.protobuf.Int64Value" + - "\022>\n\031first_position_cpc_micros\030\002 \001(\0132\033.go" + - "ogle.protobuf.Int64Value\022;\n\026top_of_page_" + - "cpc_micros\030\003 \001(\0132\033.google.protobuf.Int64" + - "ValueB\013\n\tcriterionB\332\001\n%com.google.ads.go" + - "ogleads.v0.resourcesB\025AdGroupCriterionPr" + - "otoP\001ZJgoogle.golang.org/genproto/google" + - "apis/ads/googleads/v0/resources;resource" + - "s\242\002\003GAA\252\002!Google.Ads.GoogleAds.V0.Resour" + - "ces\312\002!Google\\Ads\\GoogleAds\\V0\\Resourcesb" + - "\006proto3" + "mmon.PlacementInfoH\000\022T\n\023mobile_app_categ" + + "ory\030\035 \001(\01325.google.ads.googleads.v0.comm" + + "on.MobileAppCategoryInfoH\000\022I\n\rlisting_gr" + + "oup\030 \001(\01320.google.ads.googleads.v0.comm" + + "on.ListingGroupInfoH\000\022A\n\tage_range\030$ \001(\013" + + "2,.google.ads.googleads.v0.common.AgeRan" + + "geInfoH\000\022<\n\006gender\030% \001(\0132*.google.ads.go" + + "ogleads.v0.common.GenderInfoH\000\022G\n\014income" + + "_range\030& \001(\0132/.google.ads.googleads.v0.c" + + "ommon.IncomeRangeInfoH\000\022M\n\017parental_stat" + + "us\030\' \001(\01322.google.ads.googleads.v0.commo" + + "n.ParentalStatusInfoH\000\022A\n\tuser_list\030* \001(" + + "\0132,.google.ads.googleads.v0.common.UserL" + + "istInfoH\000\022I\n\ryoutube_video\030( \001(\01320.googl" + + "e.ads.googleads.v0.common.YouTubeVideoIn" + + "foH\000\022M\n\017youtube_channel\030) \001(\01322.google.a" + + "ds.googleads.v0.common.YouTubeChannelInf" + + "oH\000\022:\n\005topic\030+ \001(\0132).google.ads.googlead" + + "s.v0.common.TopicInfoH\000\022I\n\ruser_interest" + + "\030- \001(\01320.google.ads.googleads.v0.common." + + "UserInterestInfoH\000\022>\n\007webpage\030. \001(\0132+.go" + + "ogle.ads.googleads.v0.common.WebpageInfo" + + "H\000\022P\n\021app_payment_model\030/ \001(\01323.google.a" + + "ds.googleads.v0.common.AppPaymentModelIn" + + "foH\000\032\377\002\n\013QualityInfo\0222\n\rquality_score\030\001 " + + "\001(\0132\033.google.protobuf.Int32Value\022h\n\026crea" + + "tive_quality_score\030\002 \001(\0162H.google.ads.go" + + "ogleads.v0.enums.QualityScoreBucketEnum." + + "QualityScoreBucket\022j\n\030post_click_quality" + + "_score\030\003 \001(\0162H.google.ads.googleads.v0.e" + + "nums.QualityScoreBucketEnum.QualityScore" + + "Bucket\022f\n\024search_predicted_ctr\030\004 \001(\0162H.g" + + "oogle.ads.googleads.v0.enums.QualityScor" + + "eBucketEnum.QualityScoreBucket\032\354\002\n\021Posit" + + "ionEstimates\022:\n\025first_page_cpc_micros\030\001 " + + "\001(\0132\033.google.protobuf.Int64Value\022>\n\031firs" + + "t_position_cpc_micros\030\002 \001(\0132\033.google.pro" + + "tobuf.Int64Value\022;\n\026top_of_page_cpc_micr" + + "os\030\003 \001(\0132\033.google.protobuf.Int64Value\022O\n" + + "*estimated_add_clicks_at_first_position_" + + "cpc\030\004 \001(\0132\033.google.protobuf.Int64Value\022M" + + "\n(estimated_add_cost_at_first_position_c" + + "pc\030\005 \001(\0132\033.google.protobuf.Int64ValueB\013\n" + + "\tcriterionB\202\002\n%com.google.ads.googleads." + + "v0.resourcesB\025AdGroupCriterionProtoP\001ZJg" + + "oogle.golang.org/genproto/googleapis/ads" + + "/googleads/v0/resources;resources\242\002\003GAA\252" + + "\002!Google.Ads.GoogleAds.V0.Resources\312\002!Go" + + "ogle\\Ads\\GoogleAds\\V0\\Resources\352\002%Google" + + "::Ads::GoogleAds::V0::Resourcesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -159,7 +169,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_resources_AdGroupCriterion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_resources_AdGroupCriterion_descriptor, - new java.lang.String[] { "ResourceName", "CriterionId", "Status", "QualityInfo", "AdGroup", "Type", "Negative", "BidModifier", "CpcBidMicros", "CpmBidMicros", "CpvBidMicros", "PercentCpcBidMicros", "EffectiveCpcBidMicros", "EffectiveCpmBidMicros", "EffectiveCpvBidMicros", "EffectivePercentCpcBidMicros", "EffectiveCpcBidSource", "EffectiveCpmBidSource", "EffectiveCpvBidSource", "EffectivePercentCpcBidSource", "PositionEstimates", "FinalUrls", "TrackingUrlTemplate", "UrlCustomParameters", "Keyword", "Placement", "ListingGroup", "AgeRange", "Gender", "IncomeRange", "ParentalStatus", "UserList", "YoutubeVideo", "YoutubeChannel", "Topic", "UserInterest", "Criterion", }); + new java.lang.String[] { "ResourceName", "CriterionId", "Status", "QualityInfo", "AdGroup", "Type", "Negative", "BidModifier", "CpcBidMicros", "CpmBidMicros", "CpvBidMicros", "PercentCpcBidMicros", "EffectiveCpcBidMicros", "EffectiveCpmBidMicros", "EffectiveCpvBidMicros", "EffectivePercentCpcBidMicros", "EffectiveCpcBidSource", "EffectiveCpmBidSource", "EffectiveCpvBidSource", "EffectivePercentCpcBidSource", "PositionEstimates", "FinalUrls", "TrackingUrlTemplate", "UrlCustomParameters", "Keyword", "Placement", "MobileAppCategory", "ListingGroup", "AgeRange", "Gender", "IncomeRange", "ParentalStatus", "UserList", "YoutubeVideo", "YoutubeChannel", "Topic", "UserInterest", "Webpage", "AppPaymentModel", "Criterion", }); internal_static_google_ads_googleads_v0_resources_AdGroupCriterion_QualityInfo_descriptor = internal_static_google_ads_googleads_v0_resources_AdGroupCriterion_descriptor.getNestedTypes().get(0); internal_static_google_ads_googleads_v0_resources_AdGroupCriterion_QualityInfo_fieldAccessorTable = new @@ -171,7 +181,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_resources_AdGroupCriterion_PositionEstimates_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_resources_AdGroupCriterion_PositionEstimates_descriptor, - new java.lang.String[] { "FirstPageCpcMicros", "FirstPositionCpcMicros", "TopOfPageCpcMicros", }); + new java.lang.String[] { "FirstPageCpcMicros", "FirstPositionCpcMicros", "TopOfPageCpcMicros", "EstimatedAddClicksAtFirstPositionCpc", "EstimatedAddCostAtFirstPositionCpc", }); com.google.ads.googleads.v0.common.CriteriaProto.getDescriptor(); com.google.ads.googleads.v0.common.CustomParameterProto.getDescriptor(); com.google.ads.googleads.v0.enums.AdGroupCriterionStatusProto.getDescriptor(); diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroupFeedProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroupFeedProto.java index 24ba05b14d..b6e4cd3a12 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroupFeedProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroupFeedProto.java @@ -44,12 +44,13 @@ public static void registerAllExtensions( "hing_function\030\005 \001(\01320.google.ads.googlea" + "ds.v0.common.MatchingFunction\022P\n\006status\030" + "\006 \001(\0162@.google.ads.googleads.v0.enums.Fe" + - "edLinkStatusEnum.FeedLinkStatusB\325\001\n%com." + + "edLinkStatusEnum.FeedLinkStatusB\375\001\n%com." + "google.ads.googleads.v0.resourcesB\020AdGro" + "upFeedProtoP\001ZJgoogle.golang.org/genprot" + "o/googleapis/ads/googleads/v0/resources;" + "resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V" + "0.Resources\312\002!Google\\Ads\\GoogleAds\\V0\\Re" + + "sources\352\002%Google::Ads::GoogleAds::V0::Re" + "sourcesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroupOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroupOrBuilder.java index e6552209bd..28b39e6a1d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroupOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroupOrBuilder.java @@ -296,28 +296,28 @@ com.google.ads.googleads.v0.common.CustomParameterOrBuilder getUrlCustomParamete /** *
-   * The target cost-per-acquisition (conversion) bid.
+   * The target CPA (cost-per-acquisition).
    * 
* - * .google.protobuf.Int64Value cpa_bid_micros = 16; + * .google.protobuf.Int64Value target_cpa_micros = 27; */ - boolean hasCpaBidMicros(); + boolean hasTargetCpaMicros(); /** *
-   * The target cost-per-acquisition (conversion) bid.
+   * The target CPA (cost-per-acquisition).
    * 
* - * .google.protobuf.Int64Value cpa_bid_micros = 16; + * .google.protobuf.Int64Value target_cpa_micros = 27; */ - com.google.protobuf.Int64Value getCpaBidMicros(); + com.google.protobuf.Int64Value getTargetCpaMicros(); /** *
-   * The target cost-per-acquisition (conversion) bid.
+   * The target CPA (cost-per-acquisition).
    * 
* - * .google.protobuf.Int64Value cpa_bid_micros = 16; + * .google.protobuf.Int64Value target_cpa_micros = 27; */ - com.google.protobuf.Int64ValueOrBuilder getCpaBidMicrosOrBuilder(); + com.google.protobuf.Int64ValueOrBuilder getTargetCpaMicrosOrBuilder(); /** *
@@ -346,37 +346,65 @@ com.google.ads.googleads.v0.common.CustomParameterOrBuilder getUrlCustomParamete
 
   /**
    * 
-   * The target return on ad spend (ROAS) override. If the ad group's campaign
+   * Average amount in micros that the advertiser is willing to pay for every
+   * thousand times the ad is shown.
+   * 
+ * + * .google.protobuf.Int64Value target_cpm_micros = 26; + */ + boolean hasTargetCpmMicros(); + /** + *
+   * Average amount in micros that the advertiser is willing to pay for every
+   * thousand times the ad is shown.
+   * 
+ * + * .google.protobuf.Int64Value target_cpm_micros = 26; + */ + com.google.protobuf.Int64Value getTargetCpmMicros(); + /** + *
+   * Average amount in micros that the advertiser is willing to pay for every
+   * thousand times the ad is shown.
+   * 
+ * + * .google.protobuf.Int64Value target_cpm_micros = 26; + */ + com.google.protobuf.Int64ValueOrBuilder getTargetCpmMicrosOrBuilder(); + + /** + *
+   * The target ROAS (return-on-ad-spend) override. If the ad group's campaign
    * bidding strategy is a standard Target ROAS strategy, then this field
    * overrides the target ROAS specified in the campaign's bidding strategy.
    * Otherwise, this value is ignored.
    * 
* - * .google.protobuf.DoubleValue target_roas_override = 19; + * .google.protobuf.DoubleValue target_roas = 30; */ - boolean hasTargetRoasOverride(); + boolean hasTargetRoas(); /** *
-   * The target return on ad spend (ROAS) override. If the ad group's campaign
+   * The target ROAS (return-on-ad-spend) override. If the ad group's campaign
    * bidding strategy is a standard Target ROAS strategy, then this field
    * overrides the target ROAS specified in the campaign's bidding strategy.
    * Otherwise, this value is ignored.
    * 
* - * .google.protobuf.DoubleValue target_roas_override = 19; + * .google.protobuf.DoubleValue target_roas = 30; */ - com.google.protobuf.DoubleValue getTargetRoasOverride(); + com.google.protobuf.DoubleValue getTargetRoas(); /** *
-   * The target return on ad spend (ROAS) override. If the ad group's campaign
+   * The target ROAS (return-on-ad-spend) override. If the ad group's campaign
    * bidding strategy is a standard Target ROAS strategy, then this field
    * overrides the target ROAS specified in the campaign's bidding strategy.
    * Otherwise, this value is ignored.
    * 
* - * .google.protobuf.DoubleValue target_roas_override = 19; + * .google.protobuf.DoubleValue target_roas = 30; */ - com.google.protobuf.DoubleValueOrBuilder getTargetRoasOverrideOrBuilder(); + com.google.protobuf.DoubleValueOrBuilder getTargetRoasOrBuilder(); /** *
@@ -479,4 +507,123 @@ com.google.ads.googleads.v0.common.CustomParameterOrBuilder getUrlCustomParamete
    * .google.protobuf.StringValue final_url_suffix = 24;
    */
   com.google.protobuf.StringValueOrBuilder getFinalUrlSuffixOrBuilder();
+
+  /**
+   * 
+   * Setting for targeting related features.
+   * 
+ * + * .google.ads.googleads.v0.common.TargetingSetting targeting_setting = 25; + */ + boolean hasTargetingSetting(); + /** + *
+   * Setting for targeting related features.
+   * 
+ * + * .google.ads.googleads.v0.common.TargetingSetting targeting_setting = 25; + */ + com.google.ads.googleads.v0.common.TargetingSetting getTargetingSetting(); + /** + *
+   * Setting for targeting related features.
+   * 
+ * + * .google.ads.googleads.v0.common.TargetingSetting targeting_setting = 25; + */ + com.google.ads.googleads.v0.common.TargetingSettingOrBuilder getTargetingSettingOrBuilder(); + + /** + *
+   * The effective target CPA (cost-per-acquisition).
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value effective_target_cpa_micros = 28; + */ + boolean hasEffectiveTargetCpaMicros(); + /** + *
+   * The effective target CPA (cost-per-acquisition).
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value effective_target_cpa_micros = 28; + */ + com.google.protobuf.Int64Value getEffectiveTargetCpaMicros(); + /** + *
+   * The effective target CPA (cost-per-acquisition).
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value effective_target_cpa_micros = 28; + */ + com.google.protobuf.Int64ValueOrBuilder getEffectiveTargetCpaMicrosOrBuilder(); + + /** + *
+   * Source of the effective target CPA.
+   * This field is read-only.
+   * 
+ * + * .google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource effective_target_cpa_source = 29; + */ + int getEffectiveTargetCpaSourceValue(); + /** + *
+   * Source of the effective target CPA.
+   * This field is read-only.
+   * 
+ * + * .google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource effective_target_cpa_source = 29; + */ + com.google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource getEffectiveTargetCpaSource(); + + /** + *
+   * The effective target ROAS (return-on-ad-spend).
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.DoubleValue effective_target_roas = 31; + */ + boolean hasEffectiveTargetRoas(); + /** + *
+   * The effective target ROAS (return-on-ad-spend).
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.DoubleValue effective_target_roas = 31; + */ + com.google.protobuf.DoubleValue getEffectiveTargetRoas(); + /** + *
+   * The effective target ROAS (return-on-ad-spend).
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.DoubleValue effective_target_roas = 31; + */ + com.google.protobuf.DoubleValueOrBuilder getEffectiveTargetRoasOrBuilder(); + + /** + *
+   * Source of the effective target ROAS.
+   * This field is read-only.
+   * 
+ * + * .google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource effective_target_roas_source = 32; + */ + int getEffectiveTargetRoasSourceValue(); + /** + *
+   * Source of the effective target ROAS.
+   * This field is read-only.
+   * 
+ * + * .google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource effective_target_roas_source = 32; + */ + com.google.ads.googleads.v0.enums.BiddingSourceEnum.BiddingSource getEffectiveTargetRoasSource(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroupProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroupProto.java index 2038b316d3..520283683d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroupProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdGroupProto.java @@ -33,48 +33,63 @@ public static void registerAllExtensions( "urces\0325google/ads/googleads/v0/common/cu" + "stom_parameter.proto\032Dgoogle/ads/googlea" + "ds/v0/common/explorer_auto_optimizer_set" + - "ting.proto\032=google/ads/googleads/v0/enum" + - "s/ad_group_ad_rotation_mode.proto\0323googl" + - "e/ads/googleads/v0/enums/ad_group_status" + - ".proto\0321google/ads/googleads/v0/enums/ad" + - "_group_type.proto\0327google/ads/googleads/" + - "v0/enums/targeting_dimension.proto\032\036goog" + - "le/protobuf/wrappers.proto\"\222\t\n\007AdGroup\022\025" + - "\n\rresource_name\030\001 \001(\t\022\'\n\002id\030\003 \001(\0132\033.goog" + - "le.protobuf.Int64Value\022*\n\004name\030\004 \001(\0132\034.g" + - "oogle.protobuf.StringValue\022N\n\006status\030\005 \001" + - "(\0162>.google.ads.googleads.v0.enums.AdGro" + - "upStatusEnum.AdGroupStatus\022H\n\004type\030\014 \001(\016" + - "2:.google.ads.googleads.v0.enums.AdGroup" + - "TypeEnum.AdGroupType\022h\n\020ad_rotation_mode" + - "\030\026 \001(\0162N.google.ads.googleads.v0.enums.A" + - "dGroupAdRotationModeEnum.AdGroupAdRotati" + - "onMode\022;\n\025tracking_url_template\030\r \001(\0132\034." + - "google.protobuf.StringValue\022N\n\025url_custo" + - "m_parameters\030\006 \003(\0132/.google.ads.googlead" + - "s.v0.common.CustomParameter\022.\n\010campaign\030" + - "\n \001(\0132\034.google.protobuf.StringValue\0223\n\016c" + - "pc_bid_micros\030\016 \001(\0132\033.google.protobuf.In" + - "t64Value\0223\n\016cpm_bid_micros\030\017 \001(\0132\033.googl" + - "e.protobuf.Int64Value\0223\n\016cpa_bid_micros\030" + - "\020 \001(\0132\033.google.protobuf.Int64Value\0223\n\016cp" + - "v_bid_micros\030\021 \001(\0132\033.google.protobuf.Int" + - "64Value\022:\n\024target_roas_override\030\023 \001(\0132\034." + - "google.protobuf.DoubleValue\022;\n\026percent_c" + - "pc_bid_micros\030\024 \001(\0132\033.google.protobuf.In" + - "t64Value\022e\n\037explorer_auto_optimizer_sett" + - "ing\030\025 \001(\0132<.google.ads.googleads.v0.comm" + - "on.ExplorerAutoOptimizerSetting\022n\n\034displ" + - "ay_custom_bid_dimension\030\027 \001(\0162H.google.a" + - "ds.googleads.v0.enums.TargetingDimension" + - "Enum.TargetingDimension\0226\n\020final_url_suf" + - "fix\030\030 \001(\0132\034.google.protobuf.StringValueB" + - "\321\001\n%com.google.ads.googleads.v0.resource" + - "sB\014AdGroupProtoP\001ZJgoogle.golang.org/gen" + - "proto/googleapis/ads/googleads/v0/resour" + - "ces;resources\242\002\003GAA\252\002!Google.Ads.GoogleA" + - "ds.V0.Resources\312\002!Google\\Ads\\GoogleAds\\V" + - "0\\Resourcesb\006proto3" + "ting.proto\0326google/ads/googleads/v0/comm" + + "on/targeting_setting.proto\032=google/ads/g" + + "oogleads/v0/enums/ad_group_ad_rotation_m" + + "ode.proto\0323google/ads/googleads/v0/enums" + + "/ad_group_status.proto\0321google/ads/googl" + + "eads/v0/enums/ad_group_type.proto\0322googl" + + "e/ads/googleads/v0/enums/bidding_source." + + "proto\0327google/ads/googleads/v0/enums/tar" + + "geting_dimension.proto\032\036google/protobuf/" + + "wrappers.proto\"\333\014\n\007AdGroup\022\025\n\rresource_n" + + "ame\030\001 \001(\t\022\'\n\002id\030\003 \001(\0132\033.google.protobuf." + + "Int64Value\022*\n\004name\030\004 \001(\0132\034.google.protob" + + "uf.StringValue\022N\n\006status\030\005 \001(\0162>.google." + + "ads.googleads.v0.enums.AdGroupStatusEnum" + + ".AdGroupStatus\022H\n\004type\030\014 \001(\0162:.google.ad" + + "s.googleads.v0.enums.AdGroupTypeEnum.AdG" + + "roupType\022h\n\020ad_rotation_mode\030\026 \001(\0162N.goo" + + "gle.ads.googleads.v0.enums.AdGroupAdRota" + + "tionModeEnum.AdGroupAdRotationMode\022;\n\025tr" + + "acking_url_template\030\r \001(\0132\034.google.proto" + + "buf.StringValue\022N\n\025url_custom_parameters" + + "\030\006 \003(\0132/.google.ads.googleads.v0.common." + + "CustomParameter\022.\n\010campaign\030\n \001(\0132\034.goog" + + "le.protobuf.StringValue\0223\n\016cpc_bid_micro" + + "s\030\016 \001(\0132\033.google.protobuf.Int64Value\0223\n\016" + + "cpm_bid_micros\030\017 \001(\0132\033.google.protobuf.I" + + "nt64Value\0226\n\021target_cpa_micros\030\033 \001(\0132\033.g" + + "oogle.protobuf.Int64Value\0223\n\016cpv_bid_mic" + + "ros\030\021 \001(\0132\033.google.protobuf.Int64Value\0226" + + "\n\021target_cpm_micros\030\032 \001(\0132\033.google.proto" + + "buf.Int64Value\0221\n\013target_roas\030\036 \001(\0132\034.go" + + "ogle.protobuf.DoubleValue\022;\n\026percent_cpc" + + "_bid_micros\030\024 \001(\0132\033.google.protobuf.Int6" + + "4Value\022e\n\037explorer_auto_optimizer_settin" + + "g\030\025 \001(\0132<.google.ads.googleads.v0.common" + + ".ExplorerAutoOptimizerSetting\022n\n\034display" + + "_custom_bid_dimension\030\027 \001(\0162H.google.ads" + + ".googleads.v0.enums.TargetingDimensionEn" + + "um.TargetingDimension\0226\n\020final_url_suffi" + + "x\030\030 \001(\0132\034.google.protobuf.StringValue\022K\n" + + "\021targeting_setting\030\031 \001(\01320.google.ads.go" + + "ogleads.v0.common.TargetingSetting\022@\n\033ef" + + "fective_target_cpa_micros\030\034 \001(\0132\033.google" + + ".protobuf.Int64Value\022c\n\033effective_target" + + "_cpa_source\030\035 \001(\0162>.google.ads.googleads" + + ".v0.enums.BiddingSourceEnum.BiddingSourc" + + "e\022;\n\025effective_target_roas\030\037 \001(\0132\034.googl" + + "e.protobuf.DoubleValue\022d\n\034effective_targ" + + "et_roas_source\030 \001(\0162>.google.ads.google" + + "ads.v0.enums.BiddingSourceEnum.BiddingSo" + + "urceB\371\001\n%com.google.ads.googleads.v0.res" + + "ourcesB\014AdGroupProtoP\001ZJgoogle.golang.or" + + "g/genproto/googleapis/ads/googleads/v0/r" + + "esources;resources\242\002\003GAA\252\002!Google.Ads.Go" + + "ogleAds.V0.Resources\312\002!Google\\Ads\\Google" + + "Ads\\V0\\Resources\352\002%Google::Ads::GoogleAd" + + "s::V0::Resourcesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -89,9 +104,11 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.ads.googleads.v0.common.CustomParameterProto.getDescriptor(), com.google.ads.googleads.v0.common.ExplorerAutoOptimizerSettingProto.getDescriptor(), + com.google.ads.googleads.v0.common.TargetingSettingProto.getDescriptor(), com.google.ads.googleads.v0.enums.AdGroupAdRotationModeProto.getDescriptor(), com.google.ads.googleads.v0.enums.AdGroupStatusProto.getDescriptor(), com.google.ads.googleads.v0.enums.AdGroupTypeProto.getDescriptor(), + com.google.ads.googleads.v0.enums.BiddingSourceProto.getDescriptor(), com.google.ads.googleads.v0.enums.TargetingDimensionProto.getDescriptor(), com.google.protobuf.WrappersProto.getDescriptor(), }, assigner); @@ -100,12 +117,14 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_resources_AdGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_resources_AdGroup_descriptor, - new java.lang.String[] { "ResourceName", "Id", "Name", "Status", "Type", "AdRotationMode", "TrackingUrlTemplate", "UrlCustomParameters", "Campaign", "CpcBidMicros", "CpmBidMicros", "CpaBidMicros", "CpvBidMicros", "TargetRoasOverride", "PercentCpcBidMicros", "ExplorerAutoOptimizerSetting", "DisplayCustomBidDimension", "FinalUrlSuffix", }); + new java.lang.String[] { "ResourceName", "Id", "Name", "Status", "Type", "AdRotationMode", "TrackingUrlTemplate", "UrlCustomParameters", "Campaign", "CpcBidMicros", "CpmBidMicros", "TargetCpaMicros", "CpvBidMicros", "TargetCpmMicros", "TargetRoas", "PercentCpcBidMicros", "ExplorerAutoOptimizerSetting", "DisplayCustomBidDimension", "FinalUrlSuffix", "TargetingSetting", "EffectiveTargetCpaMicros", "EffectiveTargetCpaSource", "EffectiveTargetRoas", "EffectiveTargetRoasSource", }); com.google.ads.googleads.v0.common.CustomParameterProto.getDescriptor(); com.google.ads.googleads.v0.common.ExplorerAutoOptimizerSettingProto.getDescriptor(); + com.google.ads.googleads.v0.common.TargetingSettingProto.getDescriptor(); com.google.ads.googleads.v0.enums.AdGroupAdRotationModeProto.getDescriptor(); com.google.ads.googleads.v0.enums.AdGroupStatusProto.getDescriptor(); com.google.ads.googleads.v0.enums.AdGroupTypeProto.getDescriptor(); + com.google.ads.googleads.v0.enums.BiddingSourceProto.getDescriptor(); com.google.ads.googleads.v0.enums.TargetingDimensionProto.getDescriptor(); com.google.protobuf.WrappersProto.getDescriptor(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdOrBuilder.java index 2b224f2368..f1fed3dc7b 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdOrBuilder.java @@ -627,5 +627,30 @@ com.google.ads.googleads.v0.common.CustomParameterOrBuilder getUrlCustomParamete */ com.google.ads.googleads.v0.common.ImageAdInfoOrBuilder getImageAdOrBuilder(); + /** + *
+   * Details pertaining to a Video ad.
+   * 
+ * + * .google.ads.googleads.v0.common.VideoAdInfo video_ad = 24; + */ + boolean hasVideoAd(); + /** + *
+   * Details pertaining to a Video ad.
+   * 
+ * + * .google.ads.googleads.v0.common.VideoAdInfo video_ad = 24; + */ + com.google.ads.googleads.v0.common.VideoAdInfo getVideoAd(); + /** + *
+   * Details pertaining to a Video ad.
+   * 
+ * + * .google.ads.googleads.v0.common.VideoAdInfo video_ad = 24; + */ + com.google.ads.googleads.v0.common.VideoAdInfoOrBuilder getVideoAdOrBuilder(); + public com.google.ads.googleads.v0.resources.Ad.AdDataCase getAdDataCase(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdParameter.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdParameter.java new file mode 100644 index 0000000000..26efa2299c --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdParameter.java @@ -0,0 +1,1432 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/resources/ad_parameter.proto + +package com.google.ads.googleads.v0.resources; + +/** + *
+ * An ad parameter that is used to update numeric values (such as prices or
+ * inventory levels) in any text line of an ad (including URLs). There can
+ * be a maximum of two AdParameters per ad group criterion. (One with
+ * parameter_index = 1 and one with parameter_index = 2.)
+ * In the ad the parameters are referenced by a placeholder of the form
+ * "{param#:value}". E.g. "{param1:$17}"
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.resources.AdParameter} + */ +public final class AdParameter extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.resources.AdParameter) + AdParameterOrBuilder { +private static final long serialVersionUID = 0L; + // Use AdParameter.newBuilder() to construct. + private AdParameter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AdParameter() { + resourceName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AdParameter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + resourceName_ = s; + break; + } + case 18: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (adGroupCriterion_ != null) { + subBuilder = adGroupCriterion_.toBuilder(); + } + adGroupCriterion_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(adGroupCriterion_); + adGroupCriterion_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + com.google.protobuf.Int64Value.Builder subBuilder = null; + if (parameterIndex_ != null) { + subBuilder = parameterIndex_.toBuilder(); + } + parameterIndex_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(parameterIndex_); + parameterIndex_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (insertionText_ != null) { + subBuilder = insertionText_.toBuilder(); + } + insertionText_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(insertionText_); + insertionText_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.resources.AdParameterProto.internal_static_google_ads_googleads_v0_resources_AdParameter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.resources.AdParameterProto.internal_static_google_ads_googleads_v0_resources_AdParameter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.resources.AdParameter.class, com.google.ads.googleads.v0.resources.AdParameter.Builder.class); + } + + public static final int RESOURCE_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object resourceName_; + /** + *
+   * The resource name of the ad parameter.
+   * Ad parameter resource names have the form:
+   * `customers/{customer_id}/adParameters/{ad_group_id}_{criterion_id}_{parameter_index}`
+   * 
+ * + * string resource_name = 1; + */ + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } + } + /** + *
+   * The resource name of the ad parameter.
+   * Ad parameter resource names have the form:
+   * `customers/{customer_id}/adParameters/{ad_group_id}_{criterion_id}_{parameter_index}`
+   * 
+ * + * string resource_name = 1; + */ + public com.google.protobuf.ByteString + getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AD_GROUP_CRITERION_FIELD_NUMBER = 2; + private com.google.protobuf.StringValue adGroupCriterion_; + /** + *
+   * The ad group criterion that this ad parameter belongs to.
+   * 
+ * + * .google.protobuf.StringValue ad_group_criterion = 2; + */ + public boolean hasAdGroupCriterion() { + return adGroupCriterion_ != null; + } + /** + *
+   * The ad group criterion that this ad parameter belongs to.
+   * 
+ * + * .google.protobuf.StringValue ad_group_criterion = 2; + */ + public com.google.protobuf.StringValue getAdGroupCriterion() { + return adGroupCriterion_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : adGroupCriterion_; + } + /** + *
+   * The ad group criterion that this ad parameter belongs to.
+   * 
+ * + * .google.protobuf.StringValue ad_group_criterion = 2; + */ + public com.google.protobuf.StringValueOrBuilder getAdGroupCriterionOrBuilder() { + return getAdGroupCriterion(); + } + + public static final int PARAMETER_INDEX_FIELD_NUMBER = 3; + private com.google.protobuf.Int64Value parameterIndex_; + /** + *
+   * The unique index of this ad parameter. Must be either 1 or 2.
+   * 
+ * + * .google.protobuf.Int64Value parameter_index = 3; + */ + public boolean hasParameterIndex() { + return parameterIndex_ != null; + } + /** + *
+   * The unique index of this ad parameter. Must be either 1 or 2.
+   * 
+ * + * .google.protobuf.Int64Value parameter_index = 3; + */ + public com.google.protobuf.Int64Value getParameterIndex() { + return parameterIndex_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : parameterIndex_; + } + /** + *
+   * The unique index of this ad parameter. Must be either 1 or 2.
+   * 
+ * + * .google.protobuf.Int64Value parameter_index = 3; + */ + public com.google.protobuf.Int64ValueOrBuilder getParameterIndexOrBuilder() { + return getParameterIndex(); + } + + public static final int INSERTION_TEXT_FIELD_NUMBER = 4; + private com.google.protobuf.StringValue insertionText_; + /** + *
+   * Numeric value to insert into the ad text. The following restrictions
+   *  apply:
+   *  - Can use comma or period as a separator, with an optional period or
+   *    comma (respectively) for fractional values. For example, 1,000,000.00
+   *    and 2.000.000,10 are valid.
+   *  - Can be prepended or appended with a currency symbol. For example,
+   *    $99.99 and 200£ are valid.
+   *  - Can be prepended or appended with a currency code. For example, 99.99USD
+   *    and EUR200 are valid.
+   *  - Can use '%'. For example, 1.0% and 1,0% are valid.
+   *  - Can use plus or minus. For example, -10.99 and 25+ are valid.
+   *  - Can use '/' between two numbers. For example 4/1 and 0.95/0.45 are
+   *    valid.
+   * 
+ * + * .google.protobuf.StringValue insertion_text = 4; + */ + public boolean hasInsertionText() { + return insertionText_ != null; + } + /** + *
+   * Numeric value to insert into the ad text. The following restrictions
+   *  apply:
+   *  - Can use comma or period as a separator, with an optional period or
+   *    comma (respectively) for fractional values. For example, 1,000,000.00
+   *    and 2.000.000,10 are valid.
+   *  - Can be prepended or appended with a currency symbol. For example,
+   *    $99.99 and 200£ are valid.
+   *  - Can be prepended or appended with a currency code. For example, 99.99USD
+   *    and EUR200 are valid.
+   *  - Can use '%'. For example, 1.0% and 1,0% are valid.
+   *  - Can use plus or minus. For example, -10.99 and 25+ are valid.
+   *  - Can use '/' between two numbers. For example 4/1 and 0.95/0.45 are
+   *    valid.
+   * 
+ * + * .google.protobuf.StringValue insertion_text = 4; + */ + public com.google.protobuf.StringValue getInsertionText() { + return insertionText_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : insertionText_; + } + /** + *
+   * Numeric value to insert into the ad text. The following restrictions
+   *  apply:
+   *  - Can use comma or period as a separator, with an optional period or
+   *    comma (respectively) for fractional values. For example, 1,000,000.00
+   *    and 2.000.000,10 are valid.
+   *  - Can be prepended or appended with a currency symbol. For example,
+   *    $99.99 and 200£ are valid.
+   *  - Can be prepended or appended with a currency code. For example, 99.99USD
+   *    and EUR200 are valid.
+   *  - Can use '%'. For example, 1.0% and 1,0% are valid.
+   *  - Can use plus or minus. For example, -10.99 and 25+ are valid.
+   *  - Can use '/' between two numbers. For example 4/1 and 0.95/0.45 are
+   *    valid.
+   * 
+ * + * .google.protobuf.StringValue insertion_text = 4; + */ + public com.google.protobuf.StringValueOrBuilder getInsertionTextOrBuilder() { + return getInsertionText(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getResourceNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_); + } + if (adGroupCriterion_ != null) { + output.writeMessage(2, getAdGroupCriterion()); + } + if (parameterIndex_ != null) { + output.writeMessage(3, getParameterIndex()); + } + if (insertionText_ != null) { + output.writeMessage(4, getInsertionText()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getResourceNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_); + } + if (adGroupCriterion_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getAdGroupCriterion()); + } + if (parameterIndex_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getParameterIndex()); + } + if (insertionText_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getInsertionText()); + } + size += unknownFields.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.ads.googleads.v0.resources.AdParameter)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.resources.AdParameter other = (com.google.ads.googleads.v0.resources.AdParameter) obj; + + boolean result = true; + result = result && getResourceName() + .equals(other.getResourceName()); + result = result && (hasAdGroupCriterion() == other.hasAdGroupCriterion()); + if (hasAdGroupCriterion()) { + result = result && getAdGroupCriterion() + .equals(other.getAdGroupCriterion()); + } + result = result && (hasParameterIndex() == other.hasParameterIndex()); + if (hasParameterIndex()) { + result = result && getParameterIndex() + .equals(other.getParameterIndex()); + } + result = result && (hasInsertionText() == other.hasInsertionText()); + if (hasInsertionText()) { + result = result && getInsertionText() + .equals(other.getInsertionText()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getResourceName().hashCode(); + if (hasAdGroupCriterion()) { + hash = (37 * hash) + AD_GROUP_CRITERION_FIELD_NUMBER; + hash = (53 * hash) + getAdGroupCriterion().hashCode(); + } + if (hasParameterIndex()) { + hash = (37 * hash) + PARAMETER_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getParameterIndex().hashCode(); + } + if (hasInsertionText()) { + hash = (37 * hash) + INSERTION_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getInsertionText().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.resources.AdParameter parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.AdParameter parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.resources.AdParameter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.AdParameter 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.ads.googleads.v0.resources.AdParameter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.AdParameter parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.resources.AdParameter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.AdParameter 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.ads.googleads.v0.resources.AdParameter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.AdParameter 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.ads.googleads.v0.resources.AdParameter parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.AdParameter 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.ads.googleads.v0.resources.AdParameter 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; + } + /** + *
+   * An ad parameter that is used to update numeric values (such as prices or
+   * inventory levels) in any text line of an ad (including URLs). There can
+   * be a maximum of two AdParameters per ad group criterion. (One with
+   * parameter_index = 1 and one with parameter_index = 2.)
+   * In the ad the parameters are referenced by a placeholder of the form
+   * "{param#:value}". E.g. "{param1:$17}"
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.resources.AdParameter} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.resources.AdParameter) + com.google.ads.googleads.v0.resources.AdParameterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.resources.AdParameterProto.internal_static_google_ads_googleads_v0_resources_AdParameter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.resources.AdParameterProto.internal_static_google_ads_googleads_v0_resources_AdParameter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.resources.AdParameter.class, com.google.ads.googleads.v0.resources.AdParameter.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.resources.AdParameter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + resourceName_ = ""; + + if (adGroupCriterionBuilder_ == null) { + adGroupCriterion_ = null; + } else { + adGroupCriterion_ = null; + adGroupCriterionBuilder_ = null; + } + if (parameterIndexBuilder_ == null) { + parameterIndex_ = null; + } else { + parameterIndex_ = null; + parameterIndexBuilder_ = null; + } + if (insertionTextBuilder_ == null) { + insertionText_ = null; + } else { + insertionText_ = null; + insertionTextBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.resources.AdParameterProto.internal_static_google_ads_googleads_v0_resources_AdParameter_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.AdParameter getDefaultInstanceForType() { + return com.google.ads.googleads.v0.resources.AdParameter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.AdParameter build() { + com.google.ads.googleads.v0.resources.AdParameter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.AdParameter buildPartial() { + com.google.ads.googleads.v0.resources.AdParameter result = new com.google.ads.googleads.v0.resources.AdParameter(this); + result.resourceName_ = resourceName_; + if (adGroupCriterionBuilder_ == null) { + result.adGroupCriterion_ = adGroupCriterion_; + } else { + result.adGroupCriterion_ = adGroupCriterionBuilder_.build(); + } + if (parameterIndexBuilder_ == null) { + result.parameterIndex_ = parameterIndex_; + } else { + result.parameterIndex_ = parameterIndexBuilder_.build(); + } + if (insertionTextBuilder_ == null) { + result.insertionText_ = insertionText_; + } else { + result.insertionText_ = insertionTextBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.resources.AdParameter) { + return mergeFrom((com.google.ads.googleads.v0.resources.AdParameter)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.resources.AdParameter other) { + if (other == com.google.ads.googleads.v0.resources.AdParameter.getDefaultInstance()) return this; + if (!other.getResourceName().isEmpty()) { + resourceName_ = other.resourceName_; + onChanged(); + } + if (other.hasAdGroupCriterion()) { + mergeAdGroupCriterion(other.getAdGroupCriterion()); + } + if (other.hasParameterIndex()) { + mergeParameterIndex(other.getParameterIndex()); + } + if (other.hasInsertionText()) { + mergeInsertionText(other.getInsertionText()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.resources.AdParameter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.resources.AdParameter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object resourceName_ = ""; + /** + *
+     * The resource name of the ad parameter.
+     * Ad parameter resource names have the form:
+     * `customers/{customer_id}/adParameters/{ad_group_id}_{criterion_id}_{parameter_index}`
+     * 
+ * + * string resource_name = 1; + */ + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The resource name of the ad parameter.
+     * Ad parameter resource names have the form:
+     * `customers/{customer_id}/adParameters/{ad_group_id}_{criterion_id}_{parameter_index}`
+     * 
+ * + * string resource_name = 1; + */ + public com.google.protobuf.ByteString + getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The resource name of the ad parameter.
+     * Ad parameter resource names have the form:
+     * `customers/{customer_id}/adParameters/{ad_group_id}_{criterion_id}_{parameter_index}`
+     * 
+ * + * string resource_name = 1; + */ + public Builder setResourceName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceName_ = value; + onChanged(); + return this; + } + /** + *
+     * The resource name of the ad parameter.
+     * Ad parameter resource names have the form:
+     * `customers/{customer_id}/adParameters/{ad_group_id}_{criterion_id}_{parameter_index}`
+     * 
+ * + * string resource_name = 1; + */ + public Builder clearResourceName() { + + resourceName_ = getDefaultInstance().getResourceName(); + onChanged(); + return this; + } + /** + *
+     * The resource name of the ad parameter.
+     * Ad parameter resource names have the form:
+     * `customers/{customer_id}/adParameters/{ad_group_id}_{criterion_id}_{parameter_index}`
+     * 
+ * + * string resource_name = 1; + */ + public Builder setResourceNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.StringValue adGroupCriterion_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> adGroupCriterionBuilder_; + /** + *
+     * The ad group criterion that this ad parameter belongs to.
+     * 
+ * + * .google.protobuf.StringValue ad_group_criterion = 2; + */ + public boolean hasAdGroupCriterion() { + return adGroupCriterionBuilder_ != null || adGroupCriterion_ != null; + } + /** + *
+     * The ad group criterion that this ad parameter belongs to.
+     * 
+ * + * .google.protobuf.StringValue ad_group_criterion = 2; + */ + public com.google.protobuf.StringValue getAdGroupCriterion() { + if (adGroupCriterionBuilder_ == null) { + return adGroupCriterion_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : adGroupCriterion_; + } else { + return adGroupCriterionBuilder_.getMessage(); + } + } + /** + *
+     * The ad group criterion that this ad parameter belongs to.
+     * 
+ * + * .google.protobuf.StringValue ad_group_criterion = 2; + */ + public Builder setAdGroupCriterion(com.google.protobuf.StringValue value) { + if (adGroupCriterionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + adGroupCriterion_ = value; + onChanged(); + } else { + adGroupCriterionBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The ad group criterion that this ad parameter belongs to.
+     * 
+ * + * .google.protobuf.StringValue ad_group_criterion = 2; + */ + public Builder setAdGroupCriterion( + com.google.protobuf.StringValue.Builder builderForValue) { + if (adGroupCriterionBuilder_ == null) { + adGroupCriterion_ = builderForValue.build(); + onChanged(); + } else { + adGroupCriterionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The ad group criterion that this ad parameter belongs to.
+     * 
+ * + * .google.protobuf.StringValue ad_group_criterion = 2; + */ + public Builder mergeAdGroupCriterion(com.google.protobuf.StringValue value) { + if (adGroupCriterionBuilder_ == null) { + if (adGroupCriterion_ != null) { + adGroupCriterion_ = + com.google.protobuf.StringValue.newBuilder(adGroupCriterion_).mergeFrom(value).buildPartial(); + } else { + adGroupCriterion_ = value; + } + onChanged(); + } else { + adGroupCriterionBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The ad group criterion that this ad parameter belongs to.
+     * 
+ * + * .google.protobuf.StringValue ad_group_criterion = 2; + */ + public Builder clearAdGroupCriterion() { + if (adGroupCriterionBuilder_ == null) { + adGroupCriterion_ = null; + onChanged(); + } else { + adGroupCriterion_ = null; + adGroupCriterionBuilder_ = null; + } + + return this; + } + /** + *
+     * The ad group criterion that this ad parameter belongs to.
+     * 
+ * + * .google.protobuf.StringValue ad_group_criterion = 2; + */ + public com.google.protobuf.StringValue.Builder getAdGroupCriterionBuilder() { + + onChanged(); + return getAdGroupCriterionFieldBuilder().getBuilder(); + } + /** + *
+     * The ad group criterion that this ad parameter belongs to.
+     * 
+ * + * .google.protobuf.StringValue ad_group_criterion = 2; + */ + public com.google.protobuf.StringValueOrBuilder getAdGroupCriterionOrBuilder() { + if (adGroupCriterionBuilder_ != null) { + return adGroupCriterionBuilder_.getMessageOrBuilder(); + } else { + return adGroupCriterion_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : adGroupCriterion_; + } + } + /** + *
+     * The ad group criterion that this ad parameter belongs to.
+     * 
+ * + * .google.protobuf.StringValue ad_group_criterion = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getAdGroupCriterionFieldBuilder() { + if (adGroupCriterionBuilder_ == null) { + adGroupCriterionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getAdGroupCriterion(), + getParentForChildren(), + isClean()); + adGroupCriterion_ = null; + } + return adGroupCriterionBuilder_; + } + + private com.google.protobuf.Int64Value parameterIndex_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> parameterIndexBuilder_; + /** + *
+     * The unique index of this ad parameter. Must be either 1 or 2.
+     * 
+ * + * .google.protobuf.Int64Value parameter_index = 3; + */ + public boolean hasParameterIndex() { + return parameterIndexBuilder_ != null || parameterIndex_ != null; + } + /** + *
+     * The unique index of this ad parameter. Must be either 1 or 2.
+     * 
+ * + * .google.protobuf.Int64Value parameter_index = 3; + */ + public com.google.protobuf.Int64Value getParameterIndex() { + if (parameterIndexBuilder_ == null) { + return parameterIndex_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : parameterIndex_; + } else { + return parameterIndexBuilder_.getMessage(); + } + } + /** + *
+     * The unique index of this ad parameter. Must be either 1 or 2.
+     * 
+ * + * .google.protobuf.Int64Value parameter_index = 3; + */ + public Builder setParameterIndex(com.google.protobuf.Int64Value value) { + if (parameterIndexBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parameterIndex_ = value; + onChanged(); + } else { + parameterIndexBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The unique index of this ad parameter. Must be either 1 or 2.
+     * 
+ * + * .google.protobuf.Int64Value parameter_index = 3; + */ + public Builder setParameterIndex( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (parameterIndexBuilder_ == null) { + parameterIndex_ = builderForValue.build(); + onChanged(); + } else { + parameterIndexBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The unique index of this ad parameter. Must be either 1 or 2.
+     * 
+ * + * .google.protobuf.Int64Value parameter_index = 3; + */ + public Builder mergeParameterIndex(com.google.protobuf.Int64Value value) { + if (parameterIndexBuilder_ == null) { + if (parameterIndex_ != null) { + parameterIndex_ = + com.google.protobuf.Int64Value.newBuilder(parameterIndex_).mergeFrom(value).buildPartial(); + } else { + parameterIndex_ = value; + } + onChanged(); + } else { + parameterIndexBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The unique index of this ad parameter. Must be either 1 or 2.
+     * 
+ * + * .google.protobuf.Int64Value parameter_index = 3; + */ + public Builder clearParameterIndex() { + if (parameterIndexBuilder_ == null) { + parameterIndex_ = null; + onChanged(); + } else { + parameterIndex_ = null; + parameterIndexBuilder_ = null; + } + + return this; + } + /** + *
+     * The unique index of this ad parameter. Must be either 1 or 2.
+     * 
+ * + * .google.protobuf.Int64Value parameter_index = 3; + */ + public com.google.protobuf.Int64Value.Builder getParameterIndexBuilder() { + + onChanged(); + return getParameterIndexFieldBuilder().getBuilder(); + } + /** + *
+     * The unique index of this ad parameter. Must be either 1 or 2.
+     * 
+ * + * .google.protobuf.Int64Value parameter_index = 3; + */ + public com.google.protobuf.Int64ValueOrBuilder getParameterIndexOrBuilder() { + if (parameterIndexBuilder_ != null) { + return parameterIndexBuilder_.getMessageOrBuilder(); + } else { + return parameterIndex_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : parameterIndex_; + } + } + /** + *
+     * The unique index of this ad parameter. Must be either 1 or 2.
+     * 
+ * + * .google.protobuf.Int64Value parameter_index = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + getParameterIndexFieldBuilder() { + if (parameterIndexBuilder_ == null) { + parameterIndexBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getParameterIndex(), + getParentForChildren(), + isClean()); + parameterIndex_ = null; + } + return parameterIndexBuilder_; + } + + private com.google.protobuf.StringValue insertionText_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> insertionTextBuilder_; + /** + *
+     * Numeric value to insert into the ad text. The following restrictions
+     *  apply:
+     *  - Can use comma or period as a separator, with an optional period or
+     *    comma (respectively) for fractional values. For example, 1,000,000.00
+     *    and 2.000.000,10 are valid.
+     *  - Can be prepended or appended with a currency symbol. For example,
+     *    $99.99 and 200£ are valid.
+     *  - Can be prepended or appended with a currency code. For example, 99.99USD
+     *    and EUR200 are valid.
+     *  - Can use '%'. For example, 1.0% and 1,0% are valid.
+     *  - Can use plus or minus. For example, -10.99 and 25+ are valid.
+     *  - Can use '/' between two numbers. For example 4/1 and 0.95/0.45 are
+     *    valid.
+     * 
+ * + * .google.protobuf.StringValue insertion_text = 4; + */ + public boolean hasInsertionText() { + return insertionTextBuilder_ != null || insertionText_ != null; + } + /** + *
+     * Numeric value to insert into the ad text. The following restrictions
+     *  apply:
+     *  - Can use comma or period as a separator, with an optional period or
+     *    comma (respectively) for fractional values. For example, 1,000,000.00
+     *    and 2.000.000,10 are valid.
+     *  - Can be prepended or appended with a currency symbol. For example,
+     *    $99.99 and 200£ are valid.
+     *  - Can be prepended or appended with a currency code. For example, 99.99USD
+     *    and EUR200 are valid.
+     *  - Can use '%'. For example, 1.0% and 1,0% are valid.
+     *  - Can use plus or minus. For example, -10.99 and 25+ are valid.
+     *  - Can use '/' between two numbers. For example 4/1 and 0.95/0.45 are
+     *    valid.
+     * 
+ * + * .google.protobuf.StringValue insertion_text = 4; + */ + public com.google.protobuf.StringValue getInsertionText() { + if (insertionTextBuilder_ == null) { + return insertionText_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : insertionText_; + } else { + return insertionTextBuilder_.getMessage(); + } + } + /** + *
+     * Numeric value to insert into the ad text. The following restrictions
+     *  apply:
+     *  - Can use comma or period as a separator, with an optional period or
+     *    comma (respectively) for fractional values. For example, 1,000,000.00
+     *    and 2.000.000,10 are valid.
+     *  - Can be prepended or appended with a currency symbol. For example,
+     *    $99.99 and 200£ are valid.
+     *  - Can be prepended or appended with a currency code. For example, 99.99USD
+     *    and EUR200 are valid.
+     *  - Can use '%'. For example, 1.0% and 1,0% are valid.
+     *  - Can use plus or minus. For example, -10.99 and 25+ are valid.
+     *  - Can use '/' between two numbers. For example 4/1 and 0.95/0.45 are
+     *    valid.
+     * 
+ * + * .google.protobuf.StringValue insertion_text = 4; + */ + public Builder setInsertionText(com.google.protobuf.StringValue value) { + if (insertionTextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + insertionText_ = value; + onChanged(); + } else { + insertionTextBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Numeric value to insert into the ad text. The following restrictions
+     *  apply:
+     *  - Can use comma or period as a separator, with an optional period or
+     *    comma (respectively) for fractional values. For example, 1,000,000.00
+     *    and 2.000.000,10 are valid.
+     *  - Can be prepended or appended with a currency symbol. For example,
+     *    $99.99 and 200£ are valid.
+     *  - Can be prepended or appended with a currency code. For example, 99.99USD
+     *    and EUR200 are valid.
+     *  - Can use '%'. For example, 1.0% and 1,0% are valid.
+     *  - Can use plus or minus. For example, -10.99 and 25+ are valid.
+     *  - Can use '/' between two numbers. For example 4/1 and 0.95/0.45 are
+     *    valid.
+     * 
+ * + * .google.protobuf.StringValue insertion_text = 4; + */ + public Builder setInsertionText( + com.google.protobuf.StringValue.Builder builderForValue) { + if (insertionTextBuilder_ == null) { + insertionText_ = builderForValue.build(); + onChanged(); + } else { + insertionTextBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Numeric value to insert into the ad text. The following restrictions
+     *  apply:
+     *  - Can use comma or period as a separator, with an optional period or
+     *    comma (respectively) for fractional values. For example, 1,000,000.00
+     *    and 2.000.000,10 are valid.
+     *  - Can be prepended or appended with a currency symbol. For example,
+     *    $99.99 and 200£ are valid.
+     *  - Can be prepended or appended with a currency code. For example, 99.99USD
+     *    and EUR200 are valid.
+     *  - Can use '%'. For example, 1.0% and 1,0% are valid.
+     *  - Can use plus or minus. For example, -10.99 and 25+ are valid.
+     *  - Can use '/' between two numbers. For example 4/1 and 0.95/0.45 are
+     *    valid.
+     * 
+ * + * .google.protobuf.StringValue insertion_text = 4; + */ + public Builder mergeInsertionText(com.google.protobuf.StringValue value) { + if (insertionTextBuilder_ == null) { + if (insertionText_ != null) { + insertionText_ = + com.google.protobuf.StringValue.newBuilder(insertionText_).mergeFrom(value).buildPartial(); + } else { + insertionText_ = value; + } + onChanged(); + } else { + insertionTextBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Numeric value to insert into the ad text. The following restrictions
+     *  apply:
+     *  - Can use comma or period as a separator, with an optional period or
+     *    comma (respectively) for fractional values. For example, 1,000,000.00
+     *    and 2.000.000,10 are valid.
+     *  - Can be prepended or appended with a currency symbol. For example,
+     *    $99.99 and 200£ are valid.
+     *  - Can be prepended or appended with a currency code. For example, 99.99USD
+     *    and EUR200 are valid.
+     *  - Can use '%'. For example, 1.0% and 1,0% are valid.
+     *  - Can use plus or minus. For example, -10.99 and 25+ are valid.
+     *  - Can use '/' between two numbers. For example 4/1 and 0.95/0.45 are
+     *    valid.
+     * 
+ * + * .google.protobuf.StringValue insertion_text = 4; + */ + public Builder clearInsertionText() { + if (insertionTextBuilder_ == null) { + insertionText_ = null; + onChanged(); + } else { + insertionText_ = null; + insertionTextBuilder_ = null; + } + + return this; + } + /** + *
+     * Numeric value to insert into the ad text. The following restrictions
+     *  apply:
+     *  - Can use comma or period as a separator, with an optional period or
+     *    comma (respectively) for fractional values. For example, 1,000,000.00
+     *    and 2.000.000,10 are valid.
+     *  - Can be prepended or appended with a currency symbol. For example,
+     *    $99.99 and 200£ are valid.
+     *  - Can be prepended or appended with a currency code. For example, 99.99USD
+     *    and EUR200 are valid.
+     *  - Can use '%'. For example, 1.0% and 1,0% are valid.
+     *  - Can use plus or minus. For example, -10.99 and 25+ are valid.
+     *  - Can use '/' between two numbers. For example 4/1 and 0.95/0.45 are
+     *    valid.
+     * 
+ * + * .google.protobuf.StringValue insertion_text = 4; + */ + public com.google.protobuf.StringValue.Builder getInsertionTextBuilder() { + + onChanged(); + return getInsertionTextFieldBuilder().getBuilder(); + } + /** + *
+     * Numeric value to insert into the ad text. The following restrictions
+     *  apply:
+     *  - Can use comma or period as a separator, with an optional period or
+     *    comma (respectively) for fractional values. For example, 1,000,000.00
+     *    and 2.000.000,10 are valid.
+     *  - Can be prepended or appended with a currency symbol. For example,
+     *    $99.99 and 200£ are valid.
+     *  - Can be prepended or appended with a currency code. For example, 99.99USD
+     *    and EUR200 are valid.
+     *  - Can use '%'. For example, 1.0% and 1,0% are valid.
+     *  - Can use plus or minus. For example, -10.99 and 25+ are valid.
+     *  - Can use '/' between two numbers. For example 4/1 and 0.95/0.45 are
+     *    valid.
+     * 
+ * + * .google.protobuf.StringValue insertion_text = 4; + */ + public com.google.protobuf.StringValueOrBuilder getInsertionTextOrBuilder() { + if (insertionTextBuilder_ != null) { + return insertionTextBuilder_.getMessageOrBuilder(); + } else { + return insertionText_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : insertionText_; + } + } + /** + *
+     * Numeric value to insert into the ad text. The following restrictions
+     *  apply:
+     *  - Can use comma or period as a separator, with an optional period or
+     *    comma (respectively) for fractional values. For example, 1,000,000.00
+     *    and 2.000.000,10 are valid.
+     *  - Can be prepended or appended with a currency symbol. For example,
+     *    $99.99 and 200£ are valid.
+     *  - Can be prepended or appended with a currency code. For example, 99.99USD
+     *    and EUR200 are valid.
+     *  - Can use '%'. For example, 1.0% and 1,0% are valid.
+     *  - Can use plus or minus. For example, -10.99 and 25+ are valid.
+     *  - Can use '/' between two numbers. For example 4/1 and 0.95/0.45 are
+     *    valid.
+     * 
+ * + * .google.protobuf.StringValue insertion_text = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getInsertionTextFieldBuilder() { + if (insertionTextBuilder_ == null) { + insertionTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getInsertionText(), + getParentForChildren(), + isClean()); + insertionText_ = null; + } + return insertionTextBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.resources.AdParameter) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.resources.AdParameter) + private static final com.google.ads.googleads.v0.resources.AdParameter DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.resources.AdParameter(); + } + + public static com.google.ads.googleads.v0.resources.AdParameter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdParameter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AdParameter(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.resources.AdParameter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignGroupName.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdParameterName.java similarity index 63% rename from google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignGroupName.java rename to google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdParameterName.java index e948a26ba0..7f2d5416ec 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignGroupName.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdParameterName.java @@ -24,22 +24,22 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS @javax.annotation.Generated("by GAPIC protoc plugin") -public class CampaignGroupName implements ResourceName { +public class AdParameterName implements ResourceName { private static final PathTemplate PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding("customers/{customer}/campaignGroups/{campaign_group}"); + PathTemplate.createWithoutUrlEncoding("customers/{customer}/adParameters/{ad_parameter}"); private volatile Map fieldValuesMap; private final String customer; - private final String campaignGroup; + private final String adParameter; public String getCustomer() { return customer; } - public String getCampaignGroup() { - return campaignGroup; + public String getAdParameter() { + return adParameter; } public static Builder newBuilder() { @@ -50,46 +50,46 @@ public Builder toBuilder() { return new Builder(this); } - private CampaignGroupName(Builder builder) { + private AdParameterName(Builder builder) { customer = Preconditions.checkNotNull(builder.getCustomer()); - campaignGroup = Preconditions.checkNotNull(builder.getCampaignGroup()); + adParameter = Preconditions.checkNotNull(builder.getAdParameter()); } - public static CampaignGroupName of(String customer, String campaignGroup) { + public static AdParameterName of(String customer, String adParameter) { return newBuilder() .setCustomer(customer) - .setCampaignGroup(campaignGroup) + .setAdParameter(adParameter) .build(); } - public static String format(String customer, String campaignGroup) { + public static String format(String customer, String adParameter) { return newBuilder() .setCustomer(customer) - .setCampaignGroup(campaignGroup) + .setAdParameter(adParameter) .build() .toString(); } - public static CampaignGroupName parse(String formattedString) { + public static AdParameterName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } Map matchMap = - PATH_TEMPLATE.validatedMatch(formattedString, "CampaignGroupName.parse: formattedString not in valid format"); - return of(matchMap.get("customer"), matchMap.get("campaign_group")); + PATH_TEMPLATE.validatedMatch(formattedString, "AdParameterName.parse: formattedString not in valid format"); + return of(matchMap.get("customer"), matchMap.get("ad_parameter")); } - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); for (String formattedString : formattedStrings) { list.add(parse(formattedString)); } return list; } - public static List toStringList(List values) { + public static List toStringList(List values) { List list = new ArrayList(values.size()); - for (CampaignGroupName value : values) { + for (AdParameterName value : values) { if (value == null) { list.add(""); } else { @@ -109,7 +109,7 @@ public Map getFieldValuesMap() { if (fieldValuesMap == null) { ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); fieldMapBuilder.put("customer", customer); - fieldMapBuilder.put("campaignGroup", campaignGroup); + fieldMapBuilder.put("adParameter", adParameter); fieldValuesMap = fieldMapBuilder.build(); } } @@ -123,21 +123,21 @@ public String getFieldValue(String fieldName) { @Override public String toString() { - return PATH_TEMPLATE.instantiate("customer", customer, "campaign_group", campaignGroup); + return PATH_TEMPLATE.instantiate("customer", customer, "ad_parameter", adParameter); } - /** Builder for CampaignGroupName. */ + /** Builder for AdParameterName. */ public static class Builder { private String customer; - private String campaignGroup; + private String adParameter; public String getCustomer() { return customer; } - public String getCampaignGroup() { - return campaignGroup; + public String getAdParameter() { + return adParameter; } public Builder setCustomer(String customer) { @@ -145,21 +145,21 @@ public Builder setCustomer(String customer) { return this; } - public Builder setCampaignGroup(String campaignGroup) { - this.campaignGroup = campaignGroup; + public Builder setAdParameter(String adParameter) { + this.adParameter = adParameter; return this; } private Builder() { } - private Builder(CampaignGroupName campaignGroupName) { - customer = campaignGroupName.customer; - campaignGroup = campaignGroupName.campaignGroup; + private Builder(AdParameterName adParameterName) { + customer = adParameterName.customer; + adParameter = adParameterName.adParameter; } - public CampaignGroupName build() { - return new CampaignGroupName(this); + public AdParameterName build() { + return new AdParameterName(this); } } @@ -168,10 +168,10 @@ public boolean equals(Object o) { if (o == this) { return true; } - if (o instanceof CampaignGroupName) { - CampaignGroupName that = (CampaignGroupName) o; + if (o instanceof AdParameterName) { + AdParameterName that = (AdParameterName) o; return (this.customer.equals(that.customer)) - && (this.campaignGroup.equals(that.campaignGroup)); + && (this.adParameter.equals(that.adParameter)); } return false; } @@ -182,7 +182,7 @@ public int hashCode() { h *= 1000003; h ^= customer.hashCode(); h *= 1000003; - h ^= campaignGroup.hashCode(); + h ^= adParameter.hashCode(); return h; } } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdParameterOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdParameterOrBuilder.java new file mode 100644 index 0000000000..75959fc30d --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdParameterOrBuilder.java @@ -0,0 +1,142 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/resources/ad_parameter.proto + +package com.google.ads.googleads.v0.resources; + +public interface AdParameterOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.resources.AdParameter) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The resource name of the ad parameter.
+   * Ad parameter resource names have the form:
+   * `customers/{customer_id}/adParameters/{ad_group_id}_{criterion_id}_{parameter_index}`
+   * 
+ * + * string resource_name = 1; + */ + java.lang.String getResourceName(); + /** + *
+   * The resource name of the ad parameter.
+   * Ad parameter resource names have the form:
+   * `customers/{customer_id}/adParameters/{ad_group_id}_{criterion_id}_{parameter_index}`
+   * 
+ * + * string resource_name = 1; + */ + com.google.protobuf.ByteString + getResourceNameBytes(); + + /** + *
+   * The ad group criterion that this ad parameter belongs to.
+   * 
+ * + * .google.protobuf.StringValue ad_group_criterion = 2; + */ + boolean hasAdGroupCriterion(); + /** + *
+   * The ad group criterion that this ad parameter belongs to.
+   * 
+ * + * .google.protobuf.StringValue ad_group_criterion = 2; + */ + com.google.protobuf.StringValue getAdGroupCriterion(); + /** + *
+   * The ad group criterion that this ad parameter belongs to.
+   * 
+ * + * .google.protobuf.StringValue ad_group_criterion = 2; + */ + com.google.protobuf.StringValueOrBuilder getAdGroupCriterionOrBuilder(); + + /** + *
+   * The unique index of this ad parameter. Must be either 1 or 2.
+   * 
+ * + * .google.protobuf.Int64Value parameter_index = 3; + */ + boolean hasParameterIndex(); + /** + *
+   * The unique index of this ad parameter. Must be either 1 or 2.
+   * 
+ * + * .google.protobuf.Int64Value parameter_index = 3; + */ + com.google.protobuf.Int64Value getParameterIndex(); + /** + *
+   * The unique index of this ad parameter. Must be either 1 or 2.
+   * 
+ * + * .google.protobuf.Int64Value parameter_index = 3; + */ + com.google.protobuf.Int64ValueOrBuilder getParameterIndexOrBuilder(); + + /** + *
+   * Numeric value to insert into the ad text. The following restrictions
+   *  apply:
+   *  - Can use comma or period as a separator, with an optional period or
+   *    comma (respectively) for fractional values. For example, 1,000,000.00
+   *    and 2.000.000,10 are valid.
+   *  - Can be prepended or appended with a currency symbol. For example,
+   *    $99.99 and 200£ are valid.
+   *  - Can be prepended or appended with a currency code. For example, 99.99USD
+   *    and EUR200 are valid.
+   *  - Can use '%'. For example, 1.0% and 1,0% are valid.
+   *  - Can use plus or minus. For example, -10.99 and 25+ are valid.
+   *  - Can use '/' between two numbers. For example 4/1 and 0.95/0.45 are
+   *    valid.
+   * 
+ * + * .google.protobuf.StringValue insertion_text = 4; + */ + boolean hasInsertionText(); + /** + *
+   * Numeric value to insert into the ad text. The following restrictions
+   *  apply:
+   *  - Can use comma or period as a separator, with an optional period or
+   *    comma (respectively) for fractional values. For example, 1,000,000.00
+   *    and 2.000.000,10 are valid.
+   *  - Can be prepended or appended with a currency symbol. For example,
+   *    $99.99 and 200£ are valid.
+   *  - Can be prepended or appended with a currency code. For example, 99.99USD
+   *    and EUR200 are valid.
+   *  - Can use '%'. For example, 1.0% and 1,0% are valid.
+   *  - Can use plus or minus. For example, -10.99 and 25+ are valid.
+   *  - Can use '/' between two numbers. For example 4/1 and 0.95/0.45 are
+   *    valid.
+   * 
+ * + * .google.protobuf.StringValue insertion_text = 4; + */ + com.google.protobuf.StringValue getInsertionText(); + /** + *
+   * Numeric value to insert into the ad text. The following restrictions
+   *  apply:
+   *  - Can use comma or period as a separator, with an optional period or
+   *    comma (respectively) for fractional values. For example, 1,000,000.00
+   *    and 2.000.000,10 are valid.
+   *  - Can be prepended or appended with a currency symbol. For example,
+   *    $99.99 and 200£ are valid.
+   *  - Can be prepended or appended with a currency code. For example, 99.99USD
+   *    and EUR200 are valid.
+   *  - Can use '%'. For example, 1.0% and 1,0% are valid.
+   *  - Can use plus or minus. For example, -10.99 and 25+ are valid.
+   *  - Can use '/' between two numbers. For example 4/1 and 0.95/0.45 are
+   *    valid.
+   * 
+ * + * .google.protobuf.StringValue insertion_text = 4; + */ + com.google.protobuf.StringValueOrBuilder getInsertionTextOrBuilder(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdParameterProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdParameterProto.java new file mode 100644 index 0000000000..73f872eb39 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdParameterProto.java @@ -0,0 +1,70 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/resources/ad_parameter.proto + +package com.google.ads.googleads.v0.resources; + +public final class AdParameterProto { + private AdParameterProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_resources_AdParameter_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_resources_AdParameter_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n4google/ads/googleads/v0/resources/ad_p" + + "arameter.proto\022!google.ads.googleads.v0." + + "resources\032\036google/protobuf/wrappers.prot" + + "o\"\312\001\n\013AdParameter\022\025\n\rresource_name\030\001 \001(\t" + + "\0228\n\022ad_group_criterion\030\002 \001(\0132\034.google.pr" + + "otobuf.StringValue\0224\n\017parameter_index\030\003 " + + "\001(\0132\033.google.protobuf.Int64Value\0224\n\016inse" + + "rtion_text\030\004 \001(\0132\034.google.protobuf.Strin" + + "gValueB\375\001\n%com.google.ads.googleads.v0.r" + + "esourcesB\020AdParameterProtoP\001ZJgoogle.gol" + + "ang.org/genproto/googleapis/ads/googlead" + + "s/v0/resources;resources\242\002\003GAA\252\002!Google." + + "Ads.GoogleAds.V0.Resources\312\002!Google\\Ads\\" + + "GoogleAds\\V0\\Resources\352\002%Google::Ads::Go" + + "ogleAds::V0::Resourcesb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.WrappersProto.getDescriptor(), + }, assigner); + internal_static_google_ads_googleads_v0_resources_AdParameter_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_googleads_v0_resources_AdParameter_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_resources_AdParameter_descriptor, + new java.lang.String[] { "ResourceName", "AdGroupCriterion", "ParameterIndex", "InsertionText", }); + com.google.protobuf.WrappersProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdProto.java index 0b310e3d88..1679c8cf2d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdProto.java @@ -35,7 +35,7 @@ public static void registerAllExtensions( "mon/custom_parameter.proto\032+google/ads/g" + "oogleads/v0/enums/ad_type.proto\032*google/" + "ads/googleads/v0/enums/device.proto\032\036goo" + - "gle/protobuf/wrappers.proto\"\246\013\n\002Ad\022\'\n\002id" + + "gle/protobuf/wrappers.proto\"\347\013\n\002Ad\022\'\n\002id" + "\030\001 \001(\0132\033.google.protobuf.Int64Value\0220\n\nf" + "inal_urls\030\002 \003(\0132\034.google.protobuf.String" + "Value\0227\n\021final_mobile_urls\030\020 \003(\0132\034.googl" + @@ -71,13 +71,15 @@ public static void registerAllExtensions( "ProductAdInfoH\000\022?\n\010gmail_ad\030\025 \001(\0132+.goog" + "le.ads.googleads.v0.common.GmailAdInfoH\000" + "\022?\n\010image_ad\030\026 \001(\0132+.google.ads.googlead" + - "s.v0.common.ImageAdInfoH\000B\t\n\007ad_dataB\314\001\n" + - "%com.google.ads.googleads.v0.resourcesB\007" + - "AdProtoP\001ZJgoogle.golang.org/genproto/go" + - "ogleapis/ads/googleads/v0/resources;reso" + - "urces\242\002\003GAA\252\002!Google.Ads.GoogleAds.V0.Re" + - "sources\312\002!Google\\Ads\\GoogleAds\\V0\\Resour" + - "cesb\006proto3" + "s.v0.common.ImageAdInfoH\000\022?\n\010video_ad\030\030 " + + "\001(\0132+.google.ads.googleads.v0.common.Vid" + + "eoAdInfoH\000B\t\n\007ad_dataB\364\001\n%com.google.ads" + + ".googleads.v0.resourcesB\007AdProtoP\001ZJgoog" + + "le.golang.org/genproto/googleapis/ads/go" + + "ogleads/v0/resources;resources\242\002\003GAA\252\002!G" + + "oogle.Ads.GoogleAds.V0.Resources\312\002!Googl" + + "e\\Ads\\GoogleAds\\V0\\Resources\352\002%Google::A" + + "ds::GoogleAds::V0::Resourcesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -101,7 +103,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_resources_Ad_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_resources_Ad_descriptor, - new java.lang.String[] { "Id", "FinalUrls", "FinalMobileUrls", "TrackingUrlTemplate", "UrlCustomParameters", "DisplayUrl", "Type", "AddedByGoogleAds", "DevicePreference", "Name", "TextAd", "ExpandedTextAd", "DynamicSearchAd", "ResponsiveDisplayAd", "CallOnlyAd", "ExpandedDynamicSearchAd", "HotelAd", "ShoppingSmartAd", "ShoppingProductAd", "GmailAd", "ImageAd", "AdData", }); + new java.lang.String[] { "Id", "FinalUrls", "FinalMobileUrls", "TrackingUrlTemplate", "UrlCustomParameters", "DisplayUrl", "Type", "AddedByGoogleAds", "DevicePreference", "Name", "TextAd", "ExpandedTextAd", "DynamicSearchAd", "ResponsiveDisplayAd", "CallOnlyAd", "ExpandedDynamicSearchAd", "HotelAd", "ShoppingSmartAd", "ShoppingProductAd", "GmailAd", "ImageAd", "VideoAd", "AdData", }); com.google.ads.googleads.v0.common.AdTypeInfosProto.getDescriptor(); com.google.ads.googleads.v0.common.CustomParameterProto.getDescriptor(); com.google.ads.googleads.v0.enums.AdTypeProto.getDescriptor(); diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdScheduleView.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdScheduleView.java new file mode 100644 index 0000000000..0c0e43b968 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdScheduleView.java @@ -0,0 +1,593 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/resources/ad_schedule_view.proto + +package com.google.ads.googleads.v0.resources; + +/** + *
+ * An ad schedule view summarizes the performance of campaigns by
+ * AdSchedule criteria.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.resources.AdScheduleView} + */ +public final class AdScheduleView extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.resources.AdScheduleView) + AdScheduleViewOrBuilder { +private static final long serialVersionUID = 0L; + // Use AdScheduleView.newBuilder() to construct. + private AdScheduleView(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AdScheduleView() { + resourceName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AdScheduleView( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + resourceName_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.resources.AdScheduleViewProto.internal_static_google_ads_googleads_v0_resources_AdScheduleView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.resources.AdScheduleViewProto.internal_static_google_ads_googleads_v0_resources_AdScheduleView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.resources.AdScheduleView.class, com.google.ads.googleads.v0.resources.AdScheduleView.Builder.class); + } + + public static final int RESOURCE_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object resourceName_; + /** + *
+   * The resource name of the ad schedule view.
+   * AdSchedule view resource names have the form:
+   * `customers/{customer_id}/adScheduleViews/{campaign_id}_{criterion_id}`
+   * 
+ * + * string resource_name = 1; + */ + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } + } + /** + *
+   * The resource name of the ad schedule view.
+   * AdSchedule view resource names have the form:
+   * `customers/{customer_id}/adScheduleViews/{campaign_id}_{criterion_id}`
+   * 
+ * + * string resource_name = 1; + */ + public com.google.protobuf.ByteString + getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getResourceNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getResourceNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_); + } + size += unknownFields.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.ads.googleads.v0.resources.AdScheduleView)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.resources.AdScheduleView other = (com.google.ads.googleads.v0.resources.AdScheduleView) obj; + + boolean result = true; + result = result && getResourceName() + .equals(other.getResourceName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getResourceName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.resources.AdScheduleView parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.AdScheduleView parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.resources.AdScheduleView parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.AdScheduleView 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.ads.googleads.v0.resources.AdScheduleView parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.AdScheduleView parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.resources.AdScheduleView parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.AdScheduleView 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.ads.googleads.v0.resources.AdScheduleView parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.AdScheduleView 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.ads.googleads.v0.resources.AdScheduleView parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.AdScheduleView 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.ads.googleads.v0.resources.AdScheduleView 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; + } + /** + *
+   * An ad schedule view summarizes the performance of campaigns by
+   * AdSchedule criteria.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.resources.AdScheduleView} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.resources.AdScheduleView) + com.google.ads.googleads.v0.resources.AdScheduleViewOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.resources.AdScheduleViewProto.internal_static_google_ads_googleads_v0_resources_AdScheduleView_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.resources.AdScheduleViewProto.internal_static_google_ads_googleads_v0_resources_AdScheduleView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.resources.AdScheduleView.class, com.google.ads.googleads.v0.resources.AdScheduleView.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.resources.AdScheduleView.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + resourceName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.resources.AdScheduleViewProto.internal_static_google_ads_googleads_v0_resources_AdScheduleView_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.AdScheduleView getDefaultInstanceForType() { + return com.google.ads.googleads.v0.resources.AdScheduleView.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.AdScheduleView build() { + com.google.ads.googleads.v0.resources.AdScheduleView result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.AdScheduleView buildPartial() { + com.google.ads.googleads.v0.resources.AdScheduleView result = new com.google.ads.googleads.v0.resources.AdScheduleView(this); + result.resourceName_ = resourceName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.resources.AdScheduleView) { + return mergeFrom((com.google.ads.googleads.v0.resources.AdScheduleView)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.resources.AdScheduleView other) { + if (other == com.google.ads.googleads.v0.resources.AdScheduleView.getDefaultInstance()) return this; + if (!other.getResourceName().isEmpty()) { + resourceName_ = other.resourceName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.resources.AdScheduleView parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.resources.AdScheduleView) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object resourceName_ = ""; + /** + *
+     * The resource name of the ad schedule view.
+     * AdSchedule view resource names have the form:
+     * `customers/{customer_id}/adScheduleViews/{campaign_id}_{criterion_id}`
+     * 
+ * + * string resource_name = 1; + */ + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The resource name of the ad schedule view.
+     * AdSchedule view resource names have the form:
+     * `customers/{customer_id}/adScheduleViews/{campaign_id}_{criterion_id}`
+     * 
+ * + * string resource_name = 1; + */ + public com.google.protobuf.ByteString + getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The resource name of the ad schedule view.
+     * AdSchedule view resource names have the form:
+     * `customers/{customer_id}/adScheduleViews/{campaign_id}_{criterion_id}`
+     * 
+ * + * string resource_name = 1; + */ + public Builder setResourceName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceName_ = value; + onChanged(); + return this; + } + /** + *
+     * The resource name of the ad schedule view.
+     * AdSchedule view resource names have the form:
+     * `customers/{customer_id}/adScheduleViews/{campaign_id}_{criterion_id}`
+     * 
+ * + * string resource_name = 1; + */ + public Builder clearResourceName() { + + resourceName_ = getDefaultInstance().getResourceName(); + onChanged(); + return this; + } + /** + *
+     * The resource name of the ad schedule view.
+     * AdSchedule view resource names have the form:
+     * `customers/{customer_id}/adScheduleViews/{campaign_id}_{criterion_id}`
+     * 
+ * + * string resource_name = 1; + */ + public Builder setResourceNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceName_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.resources.AdScheduleView) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.resources.AdScheduleView) + private static final com.google.ads.googleads.v0.resources.AdScheduleView DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.resources.AdScheduleView(); + } + + public static com.google.ads.googleads.v0.resources.AdScheduleView getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdScheduleView parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AdScheduleView(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.resources.AdScheduleView getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdScheduleViewName.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdScheduleViewName.java new file mode 100644 index 0000000000..4c5aa54e8c --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdScheduleViewName.java @@ -0,0 +1,189 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.ads.googleads.v0.resources; + +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import java.util.Map; +import java.util.ArrayList; +import java.util.List; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class AdScheduleViewName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("customers/{customer}/adScheduleViews/{ad_schedule_view}"); + + private volatile Map fieldValuesMap; + + private final String customer; + private final String adScheduleView; + + public String getCustomer() { + return customer; + } + + public String getAdScheduleView() { + return adScheduleView; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private AdScheduleViewName(Builder builder) { + customer = Preconditions.checkNotNull(builder.getCustomer()); + adScheduleView = Preconditions.checkNotNull(builder.getAdScheduleView()); + } + + public static AdScheduleViewName of(String customer, String adScheduleView) { + return newBuilder() + .setCustomer(customer) + .setAdScheduleView(adScheduleView) + .build(); + } + + public static String format(String customer, String adScheduleView) { + return newBuilder() + .setCustomer(customer) + .setAdScheduleView(adScheduleView) + .build() + .toString(); + } + + public static AdScheduleViewName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch(formattedString, "AdScheduleViewName.parse: formattedString not in valid format"); + return of(matchMap.get("customer"), matchMap.get("ad_schedule_view")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (AdScheduleViewName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("customer", customer); + fieldMapBuilder.put("adScheduleView", adScheduleView); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("customer", customer, "ad_schedule_view", adScheduleView); + } + + /** Builder for AdScheduleViewName. */ + public static class Builder { + + private String customer; + private String adScheduleView; + + public String getCustomer() { + return customer; + } + + public String getAdScheduleView() { + return adScheduleView; + } + + public Builder setCustomer(String customer) { + this.customer = customer; + return this; + } + + public Builder setAdScheduleView(String adScheduleView) { + this.adScheduleView = adScheduleView; + return this; + } + + private Builder() { + } + + private Builder(AdScheduleViewName adScheduleViewName) { + customer = adScheduleViewName.customer; + adScheduleView = adScheduleViewName.adScheduleView; + } + + public AdScheduleViewName build() { + return new AdScheduleViewName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof AdScheduleViewName) { + AdScheduleViewName that = (AdScheduleViewName) o; + return (this.customer.equals(that.customer)) + && (this.adScheduleView.equals(that.adScheduleView)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= customer.hashCode(); + h *= 1000003; + h ^= adScheduleView.hashCode(); + return h; + } +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdScheduleViewOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdScheduleViewOrBuilder.java new file mode 100644 index 0000000000..c3047d1022 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdScheduleViewOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/resources/ad_schedule_view.proto + +package com.google.ads.googleads.v0.resources; + +public interface AdScheduleViewOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.resources.AdScheduleView) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The resource name of the ad schedule view.
+   * AdSchedule view resource names have the form:
+   * `customers/{customer_id}/adScheduleViews/{campaign_id}_{criterion_id}`
+   * 
+ * + * string resource_name = 1; + */ + java.lang.String getResourceName(); + /** + *
+   * The resource name of the ad schedule view.
+   * AdSchedule view resource names have the form:
+   * `customers/{customer_id}/adScheduleViews/{campaign_id}_{criterion_id}`
+   * 
+ * + * string resource_name = 1; + */ + com.google.protobuf.ByteString + getResourceNameBytes(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdScheduleViewProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdScheduleViewProto.java new file mode 100644 index 0000000000..be05985416 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AdScheduleViewProto.java @@ -0,0 +1,64 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/resources/ad_schedule_view.proto + +package com.google.ads.googleads.v0.resources; + +public final class AdScheduleViewProto { + private AdScheduleViewProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_resources_AdScheduleView_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_resources_AdScheduleView_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n8google/ads/googleads/v0/resources/ad_s" + + "chedule_view.proto\022!google.ads.googleads" + + ".v0.resources\"\'\n\016AdScheduleView\022\025\n\rresou" + + "rce_name\030\001 \001(\tB\200\002\n%com.google.ads.google" + + "ads.v0.resourcesB\023AdScheduleViewProtoP\001Z" + + "Jgoogle.golang.org/genproto/googleapis/a" + + "ds/googleads/v0/resources;resources\242\002\003GA" + + "A\252\002!Google.Ads.GoogleAds.V0.Resources\312\002!" + + "Google\\Ads\\GoogleAds\\V0\\Resources\352\002%Goog" + + "le::Ads::GoogleAds::V0::Resourcesb\006proto" + + "3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_google_ads_googleads_v0_resources_AdScheduleView_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_googleads_v0_resources_AdScheduleView_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_resources_AdScheduleView_descriptor, + new java.lang.String[] { "ResourceName", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AgeRangeViewProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AgeRangeViewProto.java index e2086a459e..48789336d8 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AgeRangeViewProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/AgeRangeViewProto.java @@ -31,12 +31,13 @@ public static void registerAllExtensions( "\n6google/ads/googleads/v0/resources/age_" + "range_view.proto\022!google.ads.googleads.v" + "0.resources\"%\n\014AgeRangeView\022\025\n\rresource_" + - "name\030\001 \001(\tB\326\001\n%com.google.ads.googleads." + + "name\030\001 \001(\tB\376\001\n%com.google.ads.googleads." + "v0.resourcesB\021AgeRangeViewProtoP\001ZJgoogl" + "e.golang.org/genproto/googleapis/ads/goo" + "gleads/v0/resources;resources\242\002\003GAA\252\002!Go" + "ogle.Ads.GoogleAds.V0.Resources\312\002!Google" + - "\\Ads\\GoogleAds\\V0\\Resourcesb\006proto3" + "\\Ads\\GoogleAds\\V0\\Resources\352\002%Google::Ad" + + "s::GoogleAds::V0::Resourcesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/BiddingStrategyProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/BiddingStrategyProto.java index a63a13d3ea..2fc76cf5ce 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/BiddingStrategyProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/BiddingStrategyProto.java @@ -50,12 +50,13 @@ public static void registerAllExtensions( "\013 \001(\0132*.google.ads.googleads.v0.common.T" + "argetRoasH\000\022C\n\014target_spend\030\014 \001(\0132+.goog" + "le.ads.googleads.v0.common.TargetSpendH\000" + - "B\010\n\006schemeB\331\001\n%com.google.ads.googleads." + + "B\010\n\006schemeB\201\002\n%com.google.ads.googleads." + "v0.resourcesB\024BiddingStrategyProtoP\001ZJgo" + "ogle.golang.org/genproto/googleapis/ads/" + "googleads/v0/resources;resources\242\002\003GAA\252\002" + "!Google.Ads.GoogleAds.V0.Resources\312\002!Goo" + - "gle\\Ads\\GoogleAds\\V0\\Resourcesb\006proto3" + "gle\\Ads\\GoogleAds\\V0\\Resources\352\002%Google:" + + ":Ads::GoogleAds::V0::Resourcesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/BillingSetup.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/BillingSetup.java index e24c0992e8..61ca092f23 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/BillingSetup.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/BillingSetup.java @@ -2170,8 +2170,7 @@ public com.google.ads.googleads.v0.enums.BillingSetupStatusEnum.BillingSetupStat *
    * The resource name of the Payments account associated with this billing
    * setup. Payments resource names have the form:
-   * `customers/{customer_id}/paymentsAccounts/
-   *                       {payments_profile_id}_{payments_account_id}`
+   * `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
    * When setting up billing, this is used to signup with an existing Payments
    * account (and then payments_account_info should not be set).
    * When getting a billing setup, this and payments_account_info will be
@@ -2187,8 +2186,7 @@ public boolean hasPaymentsAccount() {
    * 
    * The resource name of the Payments account associated with this billing
    * setup. Payments resource names have the form:
-   * `customers/{customer_id}/paymentsAccounts/
-   *                       {payments_profile_id}_{payments_account_id}`
+   * `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
    * When setting up billing, this is used to signup with an existing Payments
    * account (and then payments_account_info should not be set).
    * When getting a billing setup, this and payments_account_info will be
@@ -2204,8 +2202,7 @@ public com.google.protobuf.StringValue getPaymentsAccount() {
    * 
    * The resource name of the Payments account associated with this billing
    * setup. Payments resource names have the form:
-   * `customers/{customer_id}/paymentsAccounts/
-   *                       {payments_profile_id}_{payments_account_id}`
+   * `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
    * When setting up billing, this is used to signup with an existing Payments
    * account (and then payments_account_info should not be set).
    * When getting a billing setup, this and payments_account_info will be
@@ -3307,8 +3304,7 @@ public Builder clearStatus() {
      * 
      * The resource name of the Payments account associated with this billing
      * setup. Payments resource names have the form:
-     * `customers/{customer_id}/paymentsAccounts/
-     *                       {payments_profile_id}_{payments_account_id}`
+     * `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
      * When setting up billing, this is used to signup with an existing Payments
      * account (and then payments_account_info should not be set).
      * When getting a billing setup, this and payments_account_info will be
@@ -3324,8 +3320,7 @@ public boolean hasPaymentsAccount() {
      * 
      * The resource name of the Payments account associated with this billing
      * setup. Payments resource names have the form:
-     * `customers/{customer_id}/paymentsAccounts/
-     *                       {payments_profile_id}_{payments_account_id}`
+     * `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
      * When setting up billing, this is used to signup with an existing Payments
      * account (and then payments_account_info should not be set).
      * When getting a billing setup, this and payments_account_info will be
@@ -3345,8 +3340,7 @@ public com.google.protobuf.StringValue getPaymentsAccount() {
      * 
      * The resource name of the Payments account associated with this billing
      * setup. Payments resource names have the form:
-     * `customers/{customer_id}/paymentsAccounts/
-     *                       {payments_profile_id}_{payments_account_id}`
+     * `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
      * When setting up billing, this is used to signup with an existing Payments
      * account (and then payments_account_info should not be set).
      * When getting a billing setup, this and payments_account_info will be
@@ -3372,8 +3366,7 @@ public Builder setPaymentsAccount(com.google.protobuf.StringValue value) {
      * 
      * The resource name of the Payments account associated with this billing
      * setup. Payments resource names have the form:
-     * `customers/{customer_id}/paymentsAccounts/
-     *                       {payments_profile_id}_{payments_account_id}`
+     * `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
      * When setting up billing, this is used to signup with an existing Payments
      * account (and then payments_account_info should not be set).
      * When getting a billing setup, this and payments_account_info will be
@@ -3397,8 +3390,7 @@ public Builder setPaymentsAccount(
      * 
      * The resource name of the Payments account associated with this billing
      * setup. Payments resource names have the form:
-     * `customers/{customer_id}/paymentsAccounts/
-     *                       {payments_profile_id}_{payments_account_id}`
+     * `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
      * When setting up billing, this is used to signup with an existing Payments
      * account (and then payments_account_info should not be set).
      * When getting a billing setup, this and payments_account_info will be
@@ -3426,8 +3418,7 @@ public Builder mergePaymentsAccount(com.google.protobuf.StringValue value) {
      * 
      * The resource name of the Payments account associated with this billing
      * setup. Payments resource names have the form:
-     * `customers/{customer_id}/paymentsAccounts/
-     *                       {payments_profile_id}_{payments_account_id}`
+     * `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
      * When setting up billing, this is used to signup with an existing Payments
      * account (and then payments_account_info should not be set).
      * When getting a billing setup, this and payments_account_info will be
@@ -3451,8 +3442,7 @@ public Builder clearPaymentsAccount() {
      * 
      * The resource name of the Payments account associated with this billing
      * setup. Payments resource names have the form:
-     * `customers/{customer_id}/paymentsAccounts/
-     *                       {payments_profile_id}_{payments_account_id}`
+     * `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
      * When setting up billing, this is used to signup with an existing Payments
      * account (and then payments_account_info should not be set).
      * When getting a billing setup, this and payments_account_info will be
@@ -3470,8 +3460,7 @@ public com.google.protobuf.StringValue.Builder getPaymentsAccountBuilder() {
      * 
      * The resource name of the Payments account associated with this billing
      * setup. Payments resource names have the form:
-     * `customers/{customer_id}/paymentsAccounts/
-     *                       {payments_profile_id}_{payments_account_id}`
+     * `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
      * When setting up billing, this is used to signup with an existing Payments
      * account (and then payments_account_info should not be set).
      * When getting a billing setup, this and payments_account_info will be
@@ -3492,8 +3481,7 @@ public com.google.protobuf.StringValueOrBuilder getPaymentsAccountOrBuilder() {
      * 
      * The resource name of the Payments account associated with this billing
      * setup. Payments resource names have the form:
-     * `customers/{customer_id}/paymentsAccounts/
-     *                       {payments_profile_id}_{payments_account_id}`
+     * `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
      * When setting up billing, this is used to signup with an existing Payments
      * account (and then payments_account_info should not be set).
      * When getting a billing setup, this and payments_account_info will be
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/BillingSetupOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/BillingSetupOrBuilder.java
index c9e4eee2ed..baafdae80c 100644
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/BillingSetupOrBuilder.java
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/BillingSetupOrBuilder.java
@@ -75,8 +75,7 @@ public interface BillingSetupOrBuilder extends
    * 
    * The resource name of the Payments account associated with this billing
    * setup. Payments resource names have the form:
-   * `customers/{customer_id}/paymentsAccounts/
-   *                       {payments_profile_id}_{payments_account_id}`
+   * `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
    * When setting up billing, this is used to signup with an existing Payments
    * account (and then payments_account_info should not be set).
    * When getting a billing setup, this and payments_account_info will be
@@ -90,8 +89,7 @@ public interface BillingSetupOrBuilder extends
    * 
    * The resource name of the Payments account associated with this billing
    * setup. Payments resource names have the form:
-   * `customers/{customer_id}/paymentsAccounts/
-   *                       {payments_profile_id}_{payments_account_id}`
+   * `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
    * When setting up billing, this is used to signup with an existing Payments
    * account (and then payments_account_info should not be set).
    * When getting a billing setup, this and payments_account_info will be
@@ -105,8 +103,7 @@ public interface BillingSetupOrBuilder extends
    * 
    * The resource name of the Payments account associated with this billing
    * setup. Payments resource names have the form:
-   * `customers/{customer_id}/paymentsAccounts/
-   *                       {payments_profile_id}_{payments_account_id}`
+   * `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
    * When setting up billing, this is used to signup with an existing Payments
    * account (and then payments_account_info should not be set).
    * When getting a billing setup, this and payments_account_info will be
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/BillingSetupProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/BillingSetupProto.java
index 1a3e8fed3e..19f546f444 100644
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/BillingSetupProto.java
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/BillingSetupProto.java
@@ -62,12 +62,13 @@ public static void registerAllExtensions(
       "s_profile_name\030\004 \001(\0132\034.google.protobuf.S" +
       "tringValue\022C\n\035secondary_payments_profile" +
       "_id\030\005 \001(\0132\034.google.protobuf.StringValueB" +
-      "\014\n\nstart_timeB\n\n\010end_timeB\326\001\n%com.google" +
+      "\014\n\nstart_timeB\n\n\010end_timeB\376\001\n%com.google" +
       ".ads.googleads.v0.resourcesB\021BillingSetu" +
       "pProtoP\001ZJgoogle.golang.org/genproto/goo" +
       "gleapis/ads/googleads/v0/resources;resou" +
       "rces\242\002\003GAA\252\002!Google.Ads.GoogleAds.V0.Res" +
       "ources\312\002!Google\\Ads\\GoogleAds\\V0\\Resourc" +
+      "es\352\002%Google::Ads::GoogleAds::V0::Resourc" +
       "esb\006proto3"
     };
     com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/Campaign.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/Campaign.java
index 9a81b7eae2..97027aeecd 100644
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/Campaign.java
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/Campaign.java
@@ -29,6 +29,7 @@ private Campaign() {
     urlCustomParameters_ = java.util.Collections.emptyList();
     biddingStrategyType_ = 0;
     frequencyCaps_ = java.util.Collections.emptyList();
+    videoBrandSafetySuitability_ = 0;
   }
 
   @java.lang.Override
@@ -45,6 +46,7 @@ private Campaign(
       throw new java.lang.NullPointerException();
     }
     int mutable_bitField0_ = 0;
+    int mutable_bitField1_ = 0;
     com.google.protobuf.UnknownFieldSet.Builder unknownFields =
         com.google.protobuf.UnknownFieldSet.newBuilder();
     try {
@@ -349,19 +351,6 @@ private Campaign(
             campaignBiddingStrategyCase_ = 34;
             break;
           }
-          case 282: {
-            com.google.protobuf.StringValue.Builder subBuilder = null;
-            if (campaignGroup_ != null) {
-              subBuilder = campaignGroup_.toBuilder();
-            }
-            campaignGroup_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(campaignGroup_);
-              campaignGroup_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
           case 290: {
             com.google.ads.googleads.v0.resources.Campaign.ShoppingSetting.Builder subBuilder = null;
             if (shoppingSetting_ != null) {
@@ -424,6 +413,78 @@ private Campaign(
                 input.readMessage(com.google.ads.googleads.v0.common.FrequencyCapEntry.parser(), extensionRegistry));
             break;
           }
+          case 330: {
+            com.google.ads.googleads.v0.common.TargetCpm.Builder subBuilder = null;
+            if (campaignBiddingStrategyCase_ == 41) {
+              subBuilder = ((com.google.ads.googleads.v0.common.TargetCpm) campaignBiddingStrategy_).toBuilder();
+            }
+            campaignBiddingStrategy_ =
+                input.readMessage(com.google.ads.googleads.v0.common.TargetCpm.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.ads.googleads.v0.common.TargetCpm) campaignBiddingStrategy_);
+              campaignBiddingStrategy_ = subBuilder.buildPartial();
+            }
+            campaignBiddingStrategyCase_ = 41;
+            break;
+          }
+          case 336: {
+            int rawValue = input.readEnum();
+
+            videoBrandSafetySuitability_ = rawValue;
+            break;
+          }
+          case 346: {
+            com.google.ads.googleads.v0.common.TargetingSetting.Builder subBuilder = null;
+            if (targetingSetting_ != null) {
+              subBuilder = targetingSetting_.toBuilder();
+            }
+            targetingSetting_ = input.readMessage(com.google.ads.googleads.v0.common.TargetingSetting.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(targetingSetting_);
+              targetingSetting_ = subBuilder.buildPartial();
+            }
+
+            break;
+          }
+          case 354: {
+            com.google.ads.googleads.v0.resources.Campaign.VanityPharma.Builder subBuilder = null;
+            if (vanityPharma_ != null) {
+              subBuilder = vanityPharma_.toBuilder();
+            }
+            vanityPharma_ = input.readMessage(com.google.ads.googleads.v0.resources.Campaign.VanityPharma.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(vanityPharma_);
+              vanityPharma_ = subBuilder.buildPartial();
+            }
+
+            break;
+          }
+          case 362: {
+            com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization.Builder subBuilder = null;
+            if (selectiveOptimization_ != null) {
+              subBuilder = selectiveOptimization_.toBuilder();
+            }
+            selectiveOptimization_ = input.readMessage(com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(selectiveOptimization_);
+              selectiveOptimization_ = subBuilder.buildPartial();
+            }
+
+            break;
+          }
+          case 370: {
+            com.google.ads.googleads.v0.resources.Campaign.TrackingSetting.Builder subBuilder = null;
+            if (trackingSetting_ != null) {
+              subBuilder = trackingSetting_.toBuilder();
+            }
+            trackingSetting_ = input.readMessage(com.google.ads.googleads.v0.resources.Campaign.TrackingSetting.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(trackingSetting_);
+              trackingSetting_ = subBuilder.buildPartial();
+            }
+
+            break;
+          }
           default: {
             if (!parseUnknownFieldProto3(
                 input, unknownFields, extensionRegistry, tag)) {
@@ -5907,186 +5968,2458 @@ public com.google.ads.googleads.v0.resources.Campaign.ShoppingSetting getDefault
 
   }
 
-  private int bitField0_;
-  private int campaignBiddingStrategyCase_ = 0;
-  private java.lang.Object campaignBiddingStrategy_;
-  public enum CampaignBiddingStrategyCase
-      implements com.google.protobuf.Internal.EnumLite {
-    BIDDING_STRATEGY(23),
-    MANUAL_CPC(24),
-    MANUAL_CPM(25),
-    MANUAL_CPV(37),
-    MAXIMIZE_CONVERSIONS(30),
-    MAXIMIZE_CONVERSION_VALUE(31),
-    TARGET_CPA(26),
-    TARGET_ROAS(29),
-    TARGET_SPEND(27),
-    PERCENT_CPC(34),
-    CAMPAIGNBIDDINGSTRATEGY_NOT_SET(0);
-    private final int value;
-    private CampaignBiddingStrategyCase(int value) {
-      this.value = value;
-    }
+  public interface TrackingSettingOrBuilder extends
+      // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.resources.Campaign.TrackingSetting)
+      com.google.protobuf.MessageOrBuilder {
+
     /**
-     * @deprecated Use {@link #forNumber(int)} instead.
+     * 
+     * The url used for dynamic tracking.
+     * 
+ * + * .google.protobuf.StringValue tracking_url = 1; */ - @java.lang.Deprecated - public static CampaignBiddingStrategyCase valueOf(int value) { - return forNumber(value); - } - - public static CampaignBiddingStrategyCase forNumber(int value) { - switch (value) { - case 23: return BIDDING_STRATEGY; - case 24: return MANUAL_CPC; - case 25: return MANUAL_CPM; - case 37: return MANUAL_CPV; - case 30: return MAXIMIZE_CONVERSIONS; - case 31: return MAXIMIZE_CONVERSION_VALUE; - case 26: return TARGET_CPA; - case 29: return TARGET_ROAS; - case 27: return TARGET_SPEND; - case 34: return PERCENT_CPC; - case 0: return CAMPAIGNBIDDINGSTRATEGY_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public CampaignBiddingStrategyCase - getCampaignBiddingStrategyCase() { - return CampaignBiddingStrategyCase.forNumber( - campaignBiddingStrategyCase_); + boolean hasTrackingUrl(); + /** + *
+     * The url used for dynamic tracking.
+     * 
+ * + * .google.protobuf.StringValue tracking_url = 1; + */ + com.google.protobuf.StringValue getTrackingUrl(); + /** + *
+     * The url used for dynamic tracking.
+     * 
+ * + * .google.protobuf.StringValue tracking_url = 1; + */ + com.google.protobuf.StringValueOrBuilder getTrackingUrlOrBuilder(); } - - public static final int RESOURCE_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object resourceName_; /** *
-   * The resource name of the campaign.
-   * Campaign resource names have the form:
-   * `customers/{customer_id}/campaigns/{campaign_id}`
+   * Campaign level settings for tracking information.
    * 
* - * string resource_name = 1; + * Protobuf type {@code google.ads.googleads.v0.resources.Campaign.TrackingSetting} */ - public java.lang.String getResourceName() { - java.lang.Object ref = resourceName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resourceName_ = s; - return s; + public static final class TrackingSetting extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.resources.Campaign.TrackingSetting) + TrackingSettingOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrackingSetting.newBuilder() to construct. + private TrackingSetting(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - } - /** - *
-   * The resource name of the campaign.
-   * Campaign resource names have the form:
-   * `customers/{customer_id}/campaigns/{campaign_id}`
-   * 
- * - * string resource_name = 1; - */ - public com.google.protobuf.ByteString - getResourceNameBytes() { - java.lang.Object ref = resourceName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resourceName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + private TrackingSetting() { } - } - - public static final int ID_FIELD_NUMBER = 3; - private com.google.protobuf.Int64Value id_; - /** - *
-   * The ID of the campaign.
-   * 
- * - * .google.protobuf.Int64Value id = 3; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-   * The ID of the campaign.
-   * 
- * - * .google.protobuf.Int64Value id = 3; - */ - public com.google.protobuf.Int64Value getId() { - return id_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : id_; - } - /** - *
-   * The ID of the campaign.
-   * 
- * - * .google.protobuf.Int64Value id = 3; - */ - public com.google.protobuf.Int64ValueOrBuilder getIdOrBuilder() { - return getId(); - } - public static final int NAME_FIELD_NUMBER = 4; - private com.google.protobuf.StringValue name_; - /** - *
-   * The name of the campaign.
-   * This field is required and should not be empty when creating new
-   * campaigns.
-   * It must not contain any null (code point 0x0), NL line feed
-   * (code point 0xA) or carriage return (code point 0xD) characters.
-   * 
- * - * .google.protobuf.StringValue name = 4; - */ - public boolean hasName() { - return name_ != null; - } - /** - *
-   * The name of the campaign.
-   * This field is required and should not be empty when creating new
-   * campaigns.
-   * It must not contain any null (code point 0x0), NL line feed
-   * (code point 0xA) or carriage return (code point 0xD) characters.
-   * 
- * - * .google.protobuf.StringValue name = 4; - */ - public com.google.protobuf.StringValue getName() { - return name_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : name_; - } - /** - *
-   * The name of the campaign.
-   * This field is required and should not be empty when creating new
-   * campaigns.
-   * It must not contain any null (code point 0x0), NL line feed
-   * (code point 0xA) or carriage return (code point 0xD) characters.
-   * 
- * - * .google.protobuf.StringValue name = 4; - */ - public com.google.protobuf.StringValueOrBuilder getNameOrBuilder() { - return getName(); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TrackingSetting( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (trackingUrl_ != null) { + subBuilder = trackingUrl_.toBuilder(); + } + trackingUrl_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(trackingUrl_); + trackingUrl_ = subBuilder.buildPartial(); + } - public static final int STATUS_FIELD_NUMBER = 5; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.resources.CampaignProto.internal_static_google_ads_googleads_v0_resources_Campaign_TrackingSetting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.resources.CampaignProto.internal_static_google_ads_googleads_v0_resources_Campaign_TrackingSetting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.resources.Campaign.TrackingSetting.class, com.google.ads.googleads.v0.resources.Campaign.TrackingSetting.Builder.class); + } + + public static final int TRACKING_URL_FIELD_NUMBER = 1; + private com.google.protobuf.StringValue trackingUrl_; + /** + *
+     * The url used for dynamic tracking.
+     * 
+ * + * .google.protobuf.StringValue tracking_url = 1; + */ + public boolean hasTrackingUrl() { + return trackingUrl_ != null; + } + /** + *
+     * The url used for dynamic tracking.
+     * 
+ * + * .google.protobuf.StringValue tracking_url = 1; + */ + public com.google.protobuf.StringValue getTrackingUrl() { + return trackingUrl_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : trackingUrl_; + } + /** + *
+     * The url used for dynamic tracking.
+     * 
+ * + * .google.protobuf.StringValue tracking_url = 1; + */ + public com.google.protobuf.StringValueOrBuilder getTrackingUrlOrBuilder() { + return getTrackingUrl(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (trackingUrl_ != null) { + output.writeMessage(1, getTrackingUrl()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (trackingUrl_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTrackingUrl()); + } + size += unknownFields.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.ads.googleads.v0.resources.Campaign.TrackingSetting)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.resources.Campaign.TrackingSetting other = (com.google.ads.googleads.v0.resources.Campaign.TrackingSetting) obj; + + boolean result = true; + result = result && (hasTrackingUrl() == other.hasTrackingUrl()); + if (hasTrackingUrl()) { + result = result && getTrackingUrl() + .equals(other.getTrackingUrl()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTrackingUrl()) { + hash = (37 * hash) + TRACKING_URL_FIELD_NUMBER; + hash = (53 * hash) + getTrackingUrl().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.resources.Campaign.TrackingSetting parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.Campaign.TrackingSetting parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.resources.Campaign.TrackingSetting parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.Campaign.TrackingSetting 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.ads.googleads.v0.resources.Campaign.TrackingSetting parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.Campaign.TrackingSetting parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.resources.Campaign.TrackingSetting parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.Campaign.TrackingSetting 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.ads.googleads.v0.resources.Campaign.TrackingSetting parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.Campaign.TrackingSetting 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.ads.googleads.v0.resources.Campaign.TrackingSetting parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.Campaign.TrackingSetting 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.ads.googleads.v0.resources.Campaign.TrackingSetting 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; + } + /** + *
+     * Campaign level settings for tracking information.
+     * 
+ * + * Protobuf type {@code google.ads.googleads.v0.resources.Campaign.TrackingSetting} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.resources.Campaign.TrackingSetting) + com.google.ads.googleads.v0.resources.Campaign.TrackingSettingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.resources.CampaignProto.internal_static_google_ads_googleads_v0_resources_Campaign_TrackingSetting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.resources.CampaignProto.internal_static_google_ads_googleads_v0_resources_Campaign_TrackingSetting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.resources.Campaign.TrackingSetting.class, com.google.ads.googleads.v0.resources.Campaign.TrackingSetting.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.resources.Campaign.TrackingSetting.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (trackingUrlBuilder_ == null) { + trackingUrl_ = null; + } else { + trackingUrl_ = null; + trackingUrlBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.resources.CampaignProto.internal_static_google_ads_googleads_v0_resources_Campaign_TrackingSetting_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.Campaign.TrackingSetting getDefaultInstanceForType() { + return com.google.ads.googleads.v0.resources.Campaign.TrackingSetting.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.Campaign.TrackingSetting build() { + com.google.ads.googleads.v0.resources.Campaign.TrackingSetting result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.Campaign.TrackingSetting buildPartial() { + com.google.ads.googleads.v0.resources.Campaign.TrackingSetting result = new com.google.ads.googleads.v0.resources.Campaign.TrackingSetting(this); + if (trackingUrlBuilder_ == null) { + result.trackingUrl_ = trackingUrl_; + } else { + result.trackingUrl_ = trackingUrlBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.resources.Campaign.TrackingSetting) { + return mergeFrom((com.google.ads.googleads.v0.resources.Campaign.TrackingSetting)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.resources.Campaign.TrackingSetting other) { + if (other == com.google.ads.googleads.v0.resources.Campaign.TrackingSetting.getDefaultInstance()) return this; + if (other.hasTrackingUrl()) { + mergeTrackingUrl(other.getTrackingUrl()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.resources.Campaign.TrackingSetting parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.resources.Campaign.TrackingSetting) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.StringValue trackingUrl_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> trackingUrlBuilder_; + /** + *
+       * The url used for dynamic tracking.
+       * 
+ * + * .google.protobuf.StringValue tracking_url = 1; + */ + public boolean hasTrackingUrl() { + return trackingUrlBuilder_ != null || trackingUrl_ != null; + } + /** + *
+       * The url used for dynamic tracking.
+       * 
+ * + * .google.protobuf.StringValue tracking_url = 1; + */ + public com.google.protobuf.StringValue getTrackingUrl() { + if (trackingUrlBuilder_ == null) { + return trackingUrl_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : trackingUrl_; + } else { + return trackingUrlBuilder_.getMessage(); + } + } + /** + *
+       * The url used for dynamic tracking.
+       * 
+ * + * .google.protobuf.StringValue tracking_url = 1; + */ + public Builder setTrackingUrl(com.google.protobuf.StringValue value) { + if (trackingUrlBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + trackingUrl_ = value; + onChanged(); + } else { + trackingUrlBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The url used for dynamic tracking.
+       * 
+ * + * .google.protobuf.StringValue tracking_url = 1; + */ + public Builder setTrackingUrl( + com.google.protobuf.StringValue.Builder builderForValue) { + if (trackingUrlBuilder_ == null) { + trackingUrl_ = builderForValue.build(); + onChanged(); + } else { + trackingUrlBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The url used for dynamic tracking.
+       * 
+ * + * .google.protobuf.StringValue tracking_url = 1; + */ + public Builder mergeTrackingUrl(com.google.protobuf.StringValue value) { + if (trackingUrlBuilder_ == null) { + if (trackingUrl_ != null) { + trackingUrl_ = + com.google.protobuf.StringValue.newBuilder(trackingUrl_).mergeFrom(value).buildPartial(); + } else { + trackingUrl_ = value; + } + onChanged(); + } else { + trackingUrlBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The url used for dynamic tracking.
+       * 
+ * + * .google.protobuf.StringValue tracking_url = 1; + */ + public Builder clearTrackingUrl() { + if (trackingUrlBuilder_ == null) { + trackingUrl_ = null; + onChanged(); + } else { + trackingUrl_ = null; + trackingUrlBuilder_ = null; + } + + return this; + } + /** + *
+       * The url used for dynamic tracking.
+       * 
+ * + * .google.protobuf.StringValue tracking_url = 1; + */ + public com.google.protobuf.StringValue.Builder getTrackingUrlBuilder() { + + onChanged(); + return getTrackingUrlFieldBuilder().getBuilder(); + } + /** + *
+       * The url used for dynamic tracking.
+       * 
+ * + * .google.protobuf.StringValue tracking_url = 1; + */ + public com.google.protobuf.StringValueOrBuilder getTrackingUrlOrBuilder() { + if (trackingUrlBuilder_ != null) { + return trackingUrlBuilder_.getMessageOrBuilder(); + } else { + return trackingUrl_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : trackingUrl_; + } + } + /** + *
+       * The url used for dynamic tracking.
+       * 
+ * + * .google.protobuf.StringValue tracking_url = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getTrackingUrlFieldBuilder() { + if (trackingUrlBuilder_ == null) { + trackingUrlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getTrackingUrl(), + getParentForChildren(), + isClean()); + trackingUrl_ = null; + } + return trackingUrlBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.resources.Campaign.TrackingSetting) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.resources.Campaign.TrackingSetting) + private static final com.google.ads.googleads.v0.resources.Campaign.TrackingSetting DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.resources.Campaign.TrackingSetting(); + } + + public static com.google.ads.googleads.v0.resources.Campaign.TrackingSetting getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrackingSetting parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TrackingSetting(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.resources.Campaign.TrackingSetting getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface VanityPharmaOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.resources.Campaign.VanityPharma) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The display mode for vanity pharma URLs.
+     * 
+ * + * .google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode vanity_pharma_display_url_mode = 1; + */ + int getVanityPharmaDisplayUrlModeValue(); + /** + *
+     * The display mode for vanity pharma URLs.
+     * 
+ * + * .google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode vanity_pharma_display_url_mode = 1; + */ + com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode getVanityPharmaDisplayUrlMode(); + + /** + *
+     * The text that will be displayed in display URL of the text ad when
+     * website description is the selected display mode for vanity pharma URLs.
+     * 
+ * + * .google.ads.googleads.v0.enums.VanityPharmaTextEnum.VanityPharmaText vanity_pharma_text = 2; + */ + int getVanityPharmaTextValue(); + /** + *
+     * The text that will be displayed in display URL of the text ad when
+     * website description is the selected display mode for vanity pharma URLs.
+     * 
+ * + * .google.ads.googleads.v0.enums.VanityPharmaTextEnum.VanityPharmaText vanity_pharma_text = 2; + */ + com.google.ads.googleads.v0.enums.VanityPharmaTextEnum.VanityPharmaText getVanityPharmaText(); + } + /** + *
+   * Describes how unbranded pharma ads will be displayed.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.resources.Campaign.VanityPharma} + */ + public static final class VanityPharma extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.resources.Campaign.VanityPharma) + VanityPharmaOrBuilder { + private static final long serialVersionUID = 0L; + // Use VanityPharma.newBuilder() to construct. + private VanityPharma(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private VanityPharma() { + vanityPharmaDisplayUrlMode_ = 0; + vanityPharmaText_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private VanityPharma( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + vanityPharmaDisplayUrlMode_ = rawValue; + break; + } + case 16: { + int rawValue = input.readEnum(); + + vanityPharmaText_ = rawValue; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.resources.CampaignProto.internal_static_google_ads_googleads_v0_resources_Campaign_VanityPharma_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.resources.CampaignProto.internal_static_google_ads_googleads_v0_resources_Campaign_VanityPharma_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.resources.Campaign.VanityPharma.class, com.google.ads.googleads.v0.resources.Campaign.VanityPharma.Builder.class); + } + + public static final int VANITY_PHARMA_DISPLAY_URL_MODE_FIELD_NUMBER = 1; + private int vanityPharmaDisplayUrlMode_; + /** + *
+     * The display mode for vanity pharma URLs.
+     * 
+ * + * .google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode vanity_pharma_display_url_mode = 1; + */ + public int getVanityPharmaDisplayUrlModeValue() { + return vanityPharmaDisplayUrlMode_; + } + /** + *
+     * The display mode for vanity pharma URLs.
+     * 
+ * + * .google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode vanity_pharma_display_url_mode = 1; + */ + public com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode getVanityPharmaDisplayUrlMode() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode result = com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode.valueOf(vanityPharmaDisplayUrlMode_); + return result == null ? com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode.UNRECOGNIZED : result; + } + + public static final int VANITY_PHARMA_TEXT_FIELD_NUMBER = 2; + private int vanityPharmaText_; + /** + *
+     * The text that will be displayed in display URL of the text ad when
+     * website description is the selected display mode for vanity pharma URLs.
+     * 
+ * + * .google.ads.googleads.v0.enums.VanityPharmaTextEnum.VanityPharmaText vanity_pharma_text = 2; + */ + public int getVanityPharmaTextValue() { + return vanityPharmaText_; + } + /** + *
+     * The text that will be displayed in display URL of the text ad when
+     * website description is the selected display mode for vanity pharma URLs.
+     * 
+ * + * .google.ads.googleads.v0.enums.VanityPharmaTextEnum.VanityPharmaText vanity_pharma_text = 2; + */ + public com.google.ads.googleads.v0.enums.VanityPharmaTextEnum.VanityPharmaText getVanityPharmaText() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.VanityPharmaTextEnum.VanityPharmaText result = com.google.ads.googleads.v0.enums.VanityPharmaTextEnum.VanityPharmaText.valueOf(vanityPharmaText_); + return result == null ? com.google.ads.googleads.v0.enums.VanityPharmaTextEnum.VanityPharmaText.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (vanityPharmaDisplayUrlMode_ != com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode.UNSPECIFIED.getNumber()) { + output.writeEnum(1, vanityPharmaDisplayUrlMode_); + } + if (vanityPharmaText_ != com.google.ads.googleads.v0.enums.VanityPharmaTextEnum.VanityPharmaText.UNSPECIFIED.getNumber()) { + output.writeEnum(2, vanityPharmaText_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (vanityPharmaDisplayUrlMode_ != com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, vanityPharmaDisplayUrlMode_); + } + if (vanityPharmaText_ != com.google.ads.googleads.v0.enums.VanityPharmaTextEnum.VanityPharmaText.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, vanityPharmaText_); + } + size += unknownFields.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.ads.googleads.v0.resources.Campaign.VanityPharma)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.resources.Campaign.VanityPharma other = (com.google.ads.googleads.v0.resources.Campaign.VanityPharma) obj; + + boolean result = true; + result = result && vanityPharmaDisplayUrlMode_ == other.vanityPharmaDisplayUrlMode_; + result = result && vanityPharmaText_ == other.vanityPharmaText_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VANITY_PHARMA_DISPLAY_URL_MODE_FIELD_NUMBER; + hash = (53 * hash) + vanityPharmaDisplayUrlMode_; + hash = (37 * hash) + VANITY_PHARMA_TEXT_FIELD_NUMBER; + hash = (53 * hash) + vanityPharmaText_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.resources.Campaign.VanityPharma parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.Campaign.VanityPharma parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.resources.Campaign.VanityPharma parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.Campaign.VanityPharma 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.ads.googleads.v0.resources.Campaign.VanityPharma parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.Campaign.VanityPharma parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.resources.Campaign.VanityPharma parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.Campaign.VanityPharma 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.ads.googleads.v0.resources.Campaign.VanityPharma parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.Campaign.VanityPharma 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.ads.googleads.v0.resources.Campaign.VanityPharma parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.Campaign.VanityPharma 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.ads.googleads.v0.resources.Campaign.VanityPharma 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; + } + /** + *
+     * Describes how unbranded pharma ads will be displayed.
+     * 
+ * + * Protobuf type {@code google.ads.googleads.v0.resources.Campaign.VanityPharma} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.resources.Campaign.VanityPharma) + com.google.ads.googleads.v0.resources.Campaign.VanityPharmaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.resources.CampaignProto.internal_static_google_ads_googleads_v0_resources_Campaign_VanityPharma_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.resources.CampaignProto.internal_static_google_ads_googleads_v0_resources_Campaign_VanityPharma_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.resources.Campaign.VanityPharma.class, com.google.ads.googleads.v0.resources.Campaign.VanityPharma.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.resources.Campaign.VanityPharma.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + vanityPharmaDisplayUrlMode_ = 0; + + vanityPharmaText_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.resources.CampaignProto.internal_static_google_ads_googleads_v0_resources_Campaign_VanityPharma_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.Campaign.VanityPharma getDefaultInstanceForType() { + return com.google.ads.googleads.v0.resources.Campaign.VanityPharma.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.Campaign.VanityPharma build() { + com.google.ads.googleads.v0.resources.Campaign.VanityPharma result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.Campaign.VanityPharma buildPartial() { + com.google.ads.googleads.v0.resources.Campaign.VanityPharma result = new com.google.ads.googleads.v0.resources.Campaign.VanityPharma(this); + result.vanityPharmaDisplayUrlMode_ = vanityPharmaDisplayUrlMode_; + result.vanityPharmaText_ = vanityPharmaText_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.resources.Campaign.VanityPharma) { + return mergeFrom((com.google.ads.googleads.v0.resources.Campaign.VanityPharma)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.resources.Campaign.VanityPharma other) { + if (other == com.google.ads.googleads.v0.resources.Campaign.VanityPharma.getDefaultInstance()) return this; + if (other.vanityPharmaDisplayUrlMode_ != 0) { + setVanityPharmaDisplayUrlModeValue(other.getVanityPharmaDisplayUrlModeValue()); + } + if (other.vanityPharmaText_ != 0) { + setVanityPharmaTextValue(other.getVanityPharmaTextValue()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.resources.Campaign.VanityPharma parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.resources.Campaign.VanityPharma) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int vanityPharmaDisplayUrlMode_ = 0; + /** + *
+       * The display mode for vanity pharma URLs.
+       * 
+ * + * .google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode vanity_pharma_display_url_mode = 1; + */ + public int getVanityPharmaDisplayUrlModeValue() { + return vanityPharmaDisplayUrlMode_; + } + /** + *
+       * The display mode for vanity pharma URLs.
+       * 
+ * + * .google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode vanity_pharma_display_url_mode = 1; + */ + public Builder setVanityPharmaDisplayUrlModeValue(int value) { + vanityPharmaDisplayUrlMode_ = value; + onChanged(); + return this; + } + /** + *
+       * The display mode for vanity pharma URLs.
+       * 
+ * + * .google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode vanity_pharma_display_url_mode = 1; + */ + public com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode getVanityPharmaDisplayUrlMode() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode result = com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode.valueOf(vanityPharmaDisplayUrlMode_); + return result == null ? com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode.UNRECOGNIZED : result; + } + /** + *
+       * The display mode for vanity pharma URLs.
+       * 
+ * + * .google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode vanity_pharma_display_url_mode = 1; + */ + public Builder setVanityPharmaDisplayUrlMode(com.google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode value) { + if (value == null) { + throw new NullPointerException(); + } + + vanityPharmaDisplayUrlMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * The display mode for vanity pharma URLs.
+       * 
+ * + * .google.ads.googleads.v0.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode vanity_pharma_display_url_mode = 1; + */ + public Builder clearVanityPharmaDisplayUrlMode() { + + vanityPharmaDisplayUrlMode_ = 0; + onChanged(); + return this; + } + + private int vanityPharmaText_ = 0; + /** + *
+       * The text that will be displayed in display URL of the text ad when
+       * website description is the selected display mode for vanity pharma URLs.
+       * 
+ * + * .google.ads.googleads.v0.enums.VanityPharmaTextEnum.VanityPharmaText vanity_pharma_text = 2; + */ + public int getVanityPharmaTextValue() { + return vanityPharmaText_; + } + /** + *
+       * The text that will be displayed in display URL of the text ad when
+       * website description is the selected display mode for vanity pharma URLs.
+       * 
+ * + * .google.ads.googleads.v0.enums.VanityPharmaTextEnum.VanityPharmaText vanity_pharma_text = 2; + */ + public Builder setVanityPharmaTextValue(int value) { + vanityPharmaText_ = value; + onChanged(); + return this; + } + /** + *
+       * The text that will be displayed in display URL of the text ad when
+       * website description is the selected display mode for vanity pharma URLs.
+       * 
+ * + * .google.ads.googleads.v0.enums.VanityPharmaTextEnum.VanityPharmaText vanity_pharma_text = 2; + */ + public com.google.ads.googleads.v0.enums.VanityPharmaTextEnum.VanityPharmaText getVanityPharmaText() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.VanityPharmaTextEnum.VanityPharmaText result = com.google.ads.googleads.v0.enums.VanityPharmaTextEnum.VanityPharmaText.valueOf(vanityPharmaText_); + return result == null ? com.google.ads.googleads.v0.enums.VanityPharmaTextEnum.VanityPharmaText.UNRECOGNIZED : result; + } + /** + *
+       * The text that will be displayed in display URL of the text ad when
+       * website description is the selected display mode for vanity pharma URLs.
+       * 
+ * + * .google.ads.googleads.v0.enums.VanityPharmaTextEnum.VanityPharmaText vanity_pharma_text = 2; + */ + public Builder setVanityPharmaText(com.google.ads.googleads.v0.enums.VanityPharmaTextEnum.VanityPharmaText value) { + if (value == null) { + throw new NullPointerException(); + } + + vanityPharmaText_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * The text that will be displayed in display URL of the text ad when
+       * website description is the selected display mode for vanity pharma URLs.
+       * 
+ * + * .google.ads.googleads.v0.enums.VanityPharmaTextEnum.VanityPharmaText vanity_pharma_text = 2; + */ + public Builder clearVanityPharmaText() { + + vanityPharmaText_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.resources.Campaign.VanityPharma) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.resources.Campaign.VanityPharma) + private static final com.google.ads.googleads.v0.resources.Campaign.VanityPharma DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.resources.Campaign.VanityPharma(); + } + + public static com.google.ads.googleads.v0.resources.Campaign.VanityPharma getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VanityPharma parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VanityPharma(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.resources.Campaign.VanityPharma getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SelectiveOptimizationOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.resources.Campaign.SelectiveOptimization) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The selected set of conversion actions for optimizing this campaign.
+     * 
+ * + * repeated .google.protobuf.StringValue conversion_actions = 1; + */ + java.util.List + getConversionActionsList(); + /** + *
+     * The selected set of conversion actions for optimizing this campaign.
+     * 
+ * + * repeated .google.protobuf.StringValue conversion_actions = 1; + */ + com.google.protobuf.StringValue getConversionActions(int index); + /** + *
+     * The selected set of conversion actions for optimizing this campaign.
+     * 
+ * + * repeated .google.protobuf.StringValue conversion_actions = 1; + */ + int getConversionActionsCount(); + /** + *
+     * The selected set of conversion actions for optimizing this campaign.
+     * 
+ * + * repeated .google.protobuf.StringValue conversion_actions = 1; + */ + java.util.List + getConversionActionsOrBuilderList(); + /** + *
+     * The selected set of conversion actions for optimizing this campaign.
+     * 
+ * + * repeated .google.protobuf.StringValue conversion_actions = 1; + */ + com.google.protobuf.StringValueOrBuilder getConversionActionsOrBuilder( + int index); + } + /** + *
+   * Selective optimization setting for this campaign, which includes a set of
+   * conversion actions to optimize this campaign towards.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.resources.Campaign.SelectiveOptimization} + */ + public static final class SelectiveOptimization extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.resources.Campaign.SelectiveOptimization) + SelectiveOptimizationOrBuilder { + private static final long serialVersionUID = 0L; + // Use SelectiveOptimization.newBuilder() to construct. + private SelectiveOptimization(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SelectiveOptimization() { + conversionActions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SelectiveOptimization( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + conversionActions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + conversionActions_.add( + input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + conversionActions_ = java.util.Collections.unmodifiableList(conversionActions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.resources.CampaignProto.internal_static_google_ads_googleads_v0_resources_Campaign_SelectiveOptimization_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.resources.CampaignProto.internal_static_google_ads_googleads_v0_resources_Campaign_SelectiveOptimization_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization.class, com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization.Builder.class); + } + + public static final int CONVERSION_ACTIONS_FIELD_NUMBER = 1; + private java.util.List conversionActions_; + /** + *
+     * The selected set of conversion actions for optimizing this campaign.
+     * 
+ * + * repeated .google.protobuf.StringValue conversion_actions = 1; + */ + public java.util.List getConversionActionsList() { + return conversionActions_; + } + /** + *
+     * The selected set of conversion actions for optimizing this campaign.
+     * 
+ * + * repeated .google.protobuf.StringValue conversion_actions = 1; + */ + public java.util.List + getConversionActionsOrBuilderList() { + return conversionActions_; + } + /** + *
+     * The selected set of conversion actions for optimizing this campaign.
+     * 
+ * + * repeated .google.protobuf.StringValue conversion_actions = 1; + */ + public int getConversionActionsCount() { + return conversionActions_.size(); + } + /** + *
+     * The selected set of conversion actions for optimizing this campaign.
+     * 
+ * + * repeated .google.protobuf.StringValue conversion_actions = 1; + */ + public com.google.protobuf.StringValue getConversionActions(int index) { + return conversionActions_.get(index); + } + /** + *
+     * The selected set of conversion actions for optimizing this campaign.
+     * 
+ * + * repeated .google.protobuf.StringValue conversion_actions = 1; + */ + public com.google.protobuf.StringValueOrBuilder getConversionActionsOrBuilder( + int index) { + return conversionActions_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < conversionActions_.size(); i++) { + output.writeMessage(1, conversionActions_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < conversionActions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, conversionActions_.get(i)); + } + size += unknownFields.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.ads.googleads.v0.resources.Campaign.SelectiveOptimization)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization other = (com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization) obj; + + boolean result = true; + result = result && getConversionActionsList() + .equals(other.getConversionActionsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getConversionActionsCount() > 0) { + hash = (37 * hash) + CONVERSION_ACTIONS_FIELD_NUMBER; + hash = (53 * hash) + getConversionActionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization 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.ads.googleads.v0.resources.Campaign.SelectiveOptimization parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization 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.ads.googleads.v0.resources.Campaign.SelectiveOptimization parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization 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.ads.googleads.v0.resources.Campaign.SelectiveOptimization parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization 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.ads.googleads.v0.resources.Campaign.SelectiveOptimization 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; + } + /** + *
+     * Selective optimization setting for this campaign, which includes a set of
+     * conversion actions to optimize this campaign towards.
+     * 
+ * + * Protobuf type {@code google.ads.googleads.v0.resources.Campaign.SelectiveOptimization} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.resources.Campaign.SelectiveOptimization) + com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimizationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.resources.CampaignProto.internal_static_google_ads_googleads_v0_resources_Campaign_SelectiveOptimization_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.resources.CampaignProto.internal_static_google_ads_googleads_v0_resources_Campaign_SelectiveOptimization_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization.class, com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getConversionActionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (conversionActionsBuilder_ == null) { + conversionActions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + conversionActionsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.resources.CampaignProto.internal_static_google_ads_googleads_v0_resources_Campaign_SelectiveOptimization_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization getDefaultInstanceForType() { + return com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization build() { + com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization buildPartial() { + com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization result = new com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization(this); + int from_bitField0_ = bitField0_; + if (conversionActionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + conversionActions_ = java.util.Collections.unmodifiableList(conversionActions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.conversionActions_ = conversionActions_; + } else { + result.conversionActions_ = conversionActionsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization) { + return mergeFrom((com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization other) { + if (other == com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization.getDefaultInstance()) return this; + if (conversionActionsBuilder_ == null) { + if (!other.conversionActions_.isEmpty()) { + if (conversionActions_.isEmpty()) { + conversionActions_ = other.conversionActions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureConversionActionsIsMutable(); + conversionActions_.addAll(other.conversionActions_); + } + onChanged(); + } + } else { + if (!other.conversionActions_.isEmpty()) { + if (conversionActionsBuilder_.isEmpty()) { + conversionActionsBuilder_.dispose(); + conversionActionsBuilder_ = null; + conversionActions_ = other.conversionActions_; + bitField0_ = (bitField0_ & ~0x00000001); + conversionActionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConversionActionsFieldBuilder() : null; + } else { + conversionActionsBuilder_.addAllMessages(other.conversionActions_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List conversionActions_ = + java.util.Collections.emptyList(); + private void ensureConversionActionsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + conversionActions_ = new java.util.ArrayList(conversionActions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> conversionActionsBuilder_; + + /** + *
+       * The selected set of conversion actions for optimizing this campaign.
+       * 
+ * + * repeated .google.protobuf.StringValue conversion_actions = 1; + */ + public java.util.List getConversionActionsList() { + if (conversionActionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conversionActions_); + } else { + return conversionActionsBuilder_.getMessageList(); + } + } + /** + *
+       * The selected set of conversion actions for optimizing this campaign.
+       * 
+ * + * repeated .google.protobuf.StringValue conversion_actions = 1; + */ + public int getConversionActionsCount() { + if (conversionActionsBuilder_ == null) { + return conversionActions_.size(); + } else { + return conversionActionsBuilder_.getCount(); + } + } + /** + *
+       * The selected set of conversion actions for optimizing this campaign.
+       * 
+ * + * repeated .google.protobuf.StringValue conversion_actions = 1; + */ + public com.google.protobuf.StringValue getConversionActions(int index) { + if (conversionActionsBuilder_ == null) { + return conversionActions_.get(index); + } else { + return conversionActionsBuilder_.getMessage(index); + } + } + /** + *
+       * The selected set of conversion actions for optimizing this campaign.
+       * 
+ * + * repeated .google.protobuf.StringValue conversion_actions = 1; + */ + public Builder setConversionActions( + int index, com.google.protobuf.StringValue value) { + if (conversionActionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConversionActionsIsMutable(); + conversionActions_.set(index, value); + onChanged(); + } else { + conversionActionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * The selected set of conversion actions for optimizing this campaign.
+       * 
+ * + * repeated .google.protobuf.StringValue conversion_actions = 1; + */ + public Builder setConversionActions( + int index, com.google.protobuf.StringValue.Builder builderForValue) { + if (conversionActionsBuilder_ == null) { + ensureConversionActionsIsMutable(); + conversionActions_.set(index, builderForValue.build()); + onChanged(); + } else { + conversionActionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The selected set of conversion actions for optimizing this campaign.
+       * 
+ * + * repeated .google.protobuf.StringValue conversion_actions = 1; + */ + public Builder addConversionActions(com.google.protobuf.StringValue value) { + if (conversionActionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConversionActionsIsMutable(); + conversionActions_.add(value); + onChanged(); + } else { + conversionActionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * The selected set of conversion actions for optimizing this campaign.
+       * 
+ * + * repeated .google.protobuf.StringValue conversion_actions = 1; + */ + public Builder addConversionActions( + int index, com.google.protobuf.StringValue value) { + if (conversionActionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConversionActionsIsMutable(); + conversionActions_.add(index, value); + onChanged(); + } else { + conversionActionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * The selected set of conversion actions for optimizing this campaign.
+       * 
+ * + * repeated .google.protobuf.StringValue conversion_actions = 1; + */ + public Builder addConversionActions( + com.google.protobuf.StringValue.Builder builderForValue) { + if (conversionActionsBuilder_ == null) { + ensureConversionActionsIsMutable(); + conversionActions_.add(builderForValue.build()); + onChanged(); + } else { + conversionActionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * The selected set of conversion actions for optimizing this campaign.
+       * 
+ * + * repeated .google.protobuf.StringValue conversion_actions = 1; + */ + public Builder addConversionActions( + int index, com.google.protobuf.StringValue.Builder builderForValue) { + if (conversionActionsBuilder_ == null) { + ensureConversionActionsIsMutable(); + conversionActions_.add(index, builderForValue.build()); + onChanged(); + } else { + conversionActionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The selected set of conversion actions for optimizing this campaign.
+       * 
+ * + * repeated .google.protobuf.StringValue conversion_actions = 1; + */ + public Builder addAllConversionActions( + java.lang.Iterable values) { + if (conversionActionsBuilder_ == null) { + ensureConversionActionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, conversionActions_); + onChanged(); + } else { + conversionActionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * The selected set of conversion actions for optimizing this campaign.
+       * 
+ * + * repeated .google.protobuf.StringValue conversion_actions = 1; + */ + public Builder clearConversionActions() { + if (conversionActionsBuilder_ == null) { + conversionActions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + conversionActionsBuilder_.clear(); + } + return this; + } + /** + *
+       * The selected set of conversion actions for optimizing this campaign.
+       * 
+ * + * repeated .google.protobuf.StringValue conversion_actions = 1; + */ + public Builder removeConversionActions(int index) { + if (conversionActionsBuilder_ == null) { + ensureConversionActionsIsMutable(); + conversionActions_.remove(index); + onChanged(); + } else { + conversionActionsBuilder_.remove(index); + } + return this; + } + /** + *
+       * The selected set of conversion actions for optimizing this campaign.
+       * 
+ * + * repeated .google.protobuf.StringValue conversion_actions = 1; + */ + public com.google.protobuf.StringValue.Builder getConversionActionsBuilder( + int index) { + return getConversionActionsFieldBuilder().getBuilder(index); + } + /** + *
+       * The selected set of conversion actions for optimizing this campaign.
+       * 
+ * + * repeated .google.protobuf.StringValue conversion_actions = 1; + */ + public com.google.protobuf.StringValueOrBuilder getConversionActionsOrBuilder( + int index) { + if (conversionActionsBuilder_ == null) { + return conversionActions_.get(index); } else { + return conversionActionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * The selected set of conversion actions for optimizing this campaign.
+       * 
+ * + * repeated .google.protobuf.StringValue conversion_actions = 1; + */ + public java.util.List + getConversionActionsOrBuilderList() { + if (conversionActionsBuilder_ != null) { + return conversionActionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conversionActions_); + } + } + /** + *
+       * The selected set of conversion actions for optimizing this campaign.
+       * 
+ * + * repeated .google.protobuf.StringValue conversion_actions = 1; + */ + public com.google.protobuf.StringValue.Builder addConversionActionsBuilder() { + return getConversionActionsFieldBuilder().addBuilder( + com.google.protobuf.StringValue.getDefaultInstance()); + } + /** + *
+       * The selected set of conversion actions for optimizing this campaign.
+       * 
+ * + * repeated .google.protobuf.StringValue conversion_actions = 1; + */ + public com.google.protobuf.StringValue.Builder addConversionActionsBuilder( + int index) { + return getConversionActionsFieldBuilder().addBuilder( + index, com.google.protobuf.StringValue.getDefaultInstance()); + } + /** + *
+       * The selected set of conversion actions for optimizing this campaign.
+       * 
+ * + * repeated .google.protobuf.StringValue conversion_actions = 1; + */ + public java.util.List + getConversionActionsBuilderList() { + return getConversionActionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getConversionActionsFieldBuilder() { + if (conversionActionsBuilder_ == null) { + conversionActionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + conversionActions_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + conversionActions_ = null; + } + return conversionActionsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.resources.Campaign.SelectiveOptimization) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.resources.Campaign.SelectiveOptimization) + private static final com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization(); + } + + public static com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SelectiveOptimization parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SelectiveOptimization(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.resources.Campaign.SelectiveOptimization getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + private int bitField1_; + private int campaignBiddingStrategyCase_ = 0; + private java.lang.Object campaignBiddingStrategy_; + public enum CampaignBiddingStrategyCase + implements com.google.protobuf.Internal.EnumLite { + BIDDING_STRATEGY(23), + MANUAL_CPC(24), + MANUAL_CPM(25), + MANUAL_CPV(37), + MAXIMIZE_CONVERSIONS(30), + MAXIMIZE_CONVERSION_VALUE(31), + TARGET_CPA(26), + TARGET_ROAS(29), + TARGET_SPEND(27), + PERCENT_CPC(34), + TARGET_CPM(41), + CAMPAIGNBIDDINGSTRATEGY_NOT_SET(0); + private final int value; + private CampaignBiddingStrategyCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CampaignBiddingStrategyCase valueOf(int value) { + return forNumber(value); + } + + public static CampaignBiddingStrategyCase forNumber(int value) { + switch (value) { + case 23: return BIDDING_STRATEGY; + case 24: return MANUAL_CPC; + case 25: return MANUAL_CPM; + case 37: return MANUAL_CPV; + case 30: return MAXIMIZE_CONVERSIONS; + case 31: return MAXIMIZE_CONVERSION_VALUE; + case 26: return TARGET_CPA; + case 29: return TARGET_ROAS; + case 27: return TARGET_SPEND; + case 34: return PERCENT_CPC; + case 41: return TARGET_CPM; + case 0: return CAMPAIGNBIDDINGSTRATEGY_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public CampaignBiddingStrategyCase + getCampaignBiddingStrategyCase() { + return CampaignBiddingStrategyCase.forNumber( + campaignBiddingStrategyCase_); + } + + public static final int RESOURCE_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object resourceName_; + /** + *
+   * The resource name of the campaign.
+   * Campaign resource names have the form:
+   * `customers/{customer_id}/campaigns/{campaign_id}`
+   * 
+ * + * string resource_name = 1; + */ + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } + } + /** + *
+   * The resource name of the campaign.
+   * Campaign resource names have the form:
+   * `customers/{customer_id}/campaigns/{campaign_id}`
+   * 
+ * + * string resource_name = 1; + */ + public com.google.protobuf.ByteString + getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ID_FIELD_NUMBER = 3; + private com.google.protobuf.Int64Value id_; + /** + *
+   * The ID of the campaign.
+   * 
+ * + * .google.protobuf.Int64Value id = 3; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+   * The ID of the campaign.
+   * 
+ * + * .google.protobuf.Int64Value id = 3; + */ + public com.google.protobuf.Int64Value getId() { + return id_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : id_; + } + /** + *
+   * The ID of the campaign.
+   * 
+ * + * .google.protobuf.Int64Value id = 3; + */ + public com.google.protobuf.Int64ValueOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int NAME_FIELD_NUMBER = 4; + private com.google.protobuf.StringValue name_; + /** + *
+   * The name of the campaign.
+   * This field is required and should not be empty when creating new
+   * campaigns.
+   * It must not contain any null (code point 0x0), NL line feed
+   * (code point 0xA) or carriage return (code point 0xD) characters.
+   * 
+ * + * .google.protobuf.StringValue name = 4; + */ + public boolean hasName() { + return name_ != null; + } + /** + *
+   * The name of the campaign.
+   * This field is required and should not be empty when creating new
+   * campaigns.
+   * It must not contain any null (code point 0x0), NL line feed
+   * (code point 0xA) or carriage return (code point 0xD) characters.
+   * 
+ * + * .google.protobuf.StringValue name = 4; + */ + public com.google.protobuf.StringValue getName() { + return name_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : name_; + } + /** + *
+   * The name of the campaign.
+   * This field is required and should not be empty when creating new
+   * campaigns.
+   * It must not contain any null (code point 0x0), NL line feed
+   * (code point 0xA) or carriage return (code point 0xD) characters.
+   * 
+ * + * .google.protobuf.StringValue name = 4; + */ + public com.google.protobuf.StringValueOrBuilder getNameOrBuilder() { + return getName(); + } + + public static final int STATUS_FIELD_NUMBER = 5; private int status_; /** *
@@ -6490,6 +8823,39 @@ public com.google.ads.googleads.v0.resources.Campaign.ShoppingSettingOrBuilder g
     return getShoppingSetting();
   }
 
+  public static final int TARGETING_SETTING_FIELD_NUMBER = 43;
+  private com.google.ads.googleads.v0.common.TargetingSetting targetingSetting_;
+  /**
+   * 
+   * Setting for targeting related features.
+   * 
+ * + * .google.ads.googleads.v0.common.TargetingSetting targeting_setting = 43; + */ + public boolean hasTargetingSetting() { + return targetingSetting_ != null; + } + /** + *
+   * Setting for targeting related features.
+   * 
+ * + * .google.ads.googleads.v0.common.TargetingSetting targeting_setting = 43; + */ + public com.google.ads.googleads.v0.common.TargetingSetting getTargetingSetting() { + return targetingSetting_ == null ? com.google.ads.googleads.v0.common.TargetingSetting.getDefaultInstance() : targetingSetting_; + } + /** + *
+   * Setting for targeting related features.
+   * 
+ * + * .google.ads.googleads.v0.common.TargetingSetting targeting_setting = 43; + */ + public com.google.ads.googleads.v0.common.TargetingSettingOrBuilder getTargetingSettingOrBuilder() { + return getTargetingSetting(); + } + public static final int CAMPAIGN_BUDGET_FIELD_NUMBER = 6; private com.google.protobuf.StringValue campaignBudget_; /** @@ -6592,39 +8958,6 @@ public com.google.protobuf.StringValueOrBuilder getStartDateOrBuilder() { return getStartDate(); } - public static final int CAMPAIGN_GROUP_FIELD_NUMBER = 35; - private com.google.protobuf.StringValue campaignGroup_; - /** - *
-   * The campaign group this campaign belongs to.
-   * 
- * - * .google.protobuf.StringValue campaign_group = 35; - */ - public boolean hasCampaignGroup() { - return campaignGroup_ != null; - } - /** - *
-   * The campaign group this campaign belongs to.
-   * 
- * - * .google.protobuf.StringValue campaign_group = 35; - */ - public com.google.protobuf.StringValue getCampaignGroup() { - return campaignGroup_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : campaignGroup_; - } - /** - *
-   * The campaign group this campaign belongs to.
-   * 
- * - * .google.protobuf.StringValue campaign_group = 35; - */ - public com.google.protobuf.StringValueOrBuilder getCampaignGroupOrBuilder() { - return getCampaignGroup(); - } - public static final int END_DATE_FIELD_NUMBER = 20; private com.google.protobuf.StringValue endDate_; /** @@ -6752,6 +9085,133 @@ public com.google.ads.googleads.v0.common.FrequencyCapEntryOrBuilder getFrequenc return frequencyCaps_.get(index); } + public static final int VIDEO_BRAND_SAFETY_SUITABILITY_FIELD_NUMBER = 42; + private int videoBrandSafetySuitability_; + /** + *
+   * 3-Tier Brand Safety setting for the campaign.
+   * 
+ * + * .google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability video_brand_safety_suitability = 42; + */ + public int getVideoBrandSafetySuitabilityValue() { + return videoBrandSafetySuitability_; + } + /** + *
+   * 3-Tier Brand Safety setting for the campaign.
+   * 
+ * + * .google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability video_brand_safety_suitability = 42; + */ + public com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability getVideoBrandSafetySuitability() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability result = com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability.valueOf(videoBrandSafetySuitability_); + return result == null ? com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability.UNRECOGNIZED : result; + } + + public static final int VANITY_PHARMA_FIELD_NUMBER = 44; + private com.google.ads.googleads.v0.resources.Campaign.VanityPharma vanityPharma_; + /** + *
+   * Describes how unbranded pharma ads will be displayed.
+   * 
+ * + * .google.ads.googleads.v0.resources.Campaign.VanityPharma vanity_pharma = 44; + */ + public boolean hasVanityPharma() { + return vanityPharma_ != null; + } + /** + *
+   * Describes how unbranded pharma ads will be displayed.
+   * 
+ * + * .google.ads.googleads.v0.resources.Campaign.VanityPharma vanity_pharma = 44; + */ + public com.google.ads.googleads.v0.resources.Campaign.VanityPharma getVanityPharma() { + return vanityPharma_ == null ? com.google.ads.googleads.v0.resources.Campaign.VanityPharma.getDefaultInstance() : vanityPharma_; + } + /** + *
+   * Describes how unbranded pharma ads will be displayed.
+   * 
+ * + * .google.ads.googleads.v0.resources.Campaign.VanityPharma vanity_pharma = 44; + */ + public com.google.ads.googleads.v0.resources.Campaign.VanityPharmaOrBuilder getVanityPharmaOrBuilder() { + return getVanityPharma(); + } + + public static final int SELECTIVE_OPTIMIZATION_FIELD_NUMBER = 45; + private com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization selectiveOptimization_; + /** + *
+   * Selective optimization setting for this campaign, which includes a set of
+   * conversion actions to optimize this campaign towards.
+   * 
+ * + * .google.ads.googleads.v0.resources.Campaign.SelectiveOptimization selective_optimization = 45; + */ + public boolean hasSelectiveOptimization() { + return selectiveOptimization_ != null; + } + /** + *
+   * Selective optimization setting for this campaign, which includes a set of
+   * conversion actions to optimize this campaign towards.
+   * 
+ * + * .google.ads.googleads.v0.resources.Campaign.SelectiveOptimization selective_optimization = 45; + */ + public com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization getSelectiveOptimization() { + return selectiveOptimization_ == null ? com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization.getDefaultInstance() : selectiveOptimization_; + } + /** + *
+   * Selective optimization setting for this campaign, which includes a set of
+   * conversion actions to optimize this campaign towards.
+   * 
+ * + * .google.ads.googleads.v0.resources.Campaign.SelectiveOptimization selective_optimization = 45; + */ + public com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimizationOrBuilder getSelectiveOptimizationOrBuilder() { + return getSelectiveOptimization(); + } + + public static final int TRACKING_SETTING_FIELD_NUMBER = 46; + private com.google.ads.googleads.v0.resources.Campaign.TrackingSetting trackingSetting_; + /** + *
+   * Campaign level settings for tracking information.
+   * 
+ * + * .google.ads.googleads.v0.resources.Campaign.TrackingSetting tracking_setting = 46; + */ + public boolean hasTrackingSetting() { + return trackingSetting_ != null; + } + /** + *
+   * Campaign level settings for tracking information.
+   * 
+ * + * .google.ads.googleads.v0.resources.Campaign.TrackingSetting tracking_setting = 46; + */ + public com.google.ads.googleads.v0.resources.Campaign.TrackingSetting getTrackingSetting() { + return trackingSetting_ == null ? com.google.ads.googleads.v0.resources.Campaign.TrackingSetting.getDefaultInstance() : trackingSetting_; + } + /** + *
+   * Campaign level settings for tracking information.
+   * 
+ * + * .google.ads.googleads.v0.resources.Campaign.TrackingSetting tracking_setting = 46; + */ + public com.google.ads.googleads.v0.resources.Campaign.TrackingSettingOrBuilder getTrackingSettingOrBuilder() { + return getTrackingSetting(); + } + public static final int BIDDING_STRATEGY_FIELD_NUMBER = 23; /** *
@@ -7162,6 +9622,47 @@ public com.google.ads.googleads.v0.common.PercentCpcOrBuilder getPercentCpcOrBui
     return com.google.ads.googleads.v0.common.PercentCpc.getDefaultInstance();
   }
 
+  public static final int TARGET_CPM_FIELD_NUMBER = 41;
+  /**
+   * 
+   * A bidding strategy that automatically optimizes cost per thousand
+   * impressions.
+   * 
+ * + * .google.ads.googleads.v0.common.TargetCpm target_cpm = 41; + */ + public boolean hasTargetCpm() { + return campaignBiddingStrategyCase_ == 41; + } + /** + *
+   * A bidding strategy that automatically optimizes cost per thousand
+   * impressions.
+   * 
+ * + * .google.ads.googleads.v0.common.TargetCpm target_cpm = 41; + */ + public com.google.ads.googleads.v0.common.TargetCpm getTargetCpm() { + if (campaignBiddingStrategyCase_ == 41) { + return (com.google.ads.googleads.v0.common.TargetCpm) campaignBiddingStrategy_; + } + return com.google.ads.googleads.v0.common.TargetCpm.getDefaultInstance(); + } + /** + *
+   * A bidding strategy that automatically optimizes cost per thousand
+   * impressions.
+   * 
+ * + * .google.ads.googleads.v0.common.TargetCpm target_cpm = 41; + */ + public com.google.ads.googleads.v0.common.TargetCpmOrBuilder getTargetCpmOrBuilder() { + if (campaignBiddingStrategyCase_ == 41) { + return (com.google.ads.googleads.v0.common.TargetCpm) campaignBiddingStrategy_; + } + return com.google.ads.googleads.v0.common.TargetCpm.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -7254,9 +9755,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (campaignBiddingStrategyCase_ == 34) { output.writeMessage(34, (com.google.ads.googleads.v0.common.PercentCpc) campaignBiddingStrategy_); } - if (campaignGroup_ != null) { - output.writeMessage(35, getCampaignGroup()); - } if (shoppingSetting_ != null) { output.writeMessage(36, getShoppingSetting()); } @@ -7272,6 +9770,24 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < frequencyCaps_.size(); i++) { output.writeMessage(40, frequencyCaps_.get(i)); } + if (campaignBiddingStrategyCase_ == 41) { + output.writeMessage(41, (com.google.ads.googleads.v0.common.TargetCpm) campaignBiddingStrategy_); + } + if (videoBrandSafetySuitability_ != com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability.UNSPECIFIED.getNumber()) { + output.writeEnum(42, videoBrandSafetySuitability_); + } + if (targetingSetting_ != null) { + output.writeMessage(43, getTargetingSetting()); + } + if (vanityPharma_ != null) { + output.writeMessage(44, getVanityPharma()); + } + if (selectiveOptimization_ != null) { + output.writeMessage(45, getSelectiveOptimization()); + } + if (trackingSetting_ != null) { + output.writeMessage(46, getTrackingSetting()); + } unknownFields.writeTo(output); } @@ -7384,10 +9900,6 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(34, (com.google.ads.googleads.v0.common.PercentCpc) campaignBiddingStrategy_); } - if (campaignGroup_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(35, getCampaignGroup()); - } if (shoppingSetting_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(36, getShoppingSetting()); @@ -7396,17 +9908,41 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(37, (com.google.ads.googleads.v0.common.ManualCpv) campaignBiddingStrategy_); } - if (finalUrlSuffix_ != null) { + if (finalUrlSuffix_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(38, getFinalUrlSuffix()); + } + if (realTimeBiddingSetting_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(39, getRealTimeBiddingSetting()); + } + for (int i = 0; i < frequencyCaps_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(40, frequencyCaps_.get(i)); + } + if (campaignBiddingStrategyCase_ == 41) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(41, (com.google.ads.googleads.v0.common.TargetCpm) campaignBiddingStrategy_); + } + if (videoBrandSafetySuitability_ != com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(42, videoBrandSafetySuitability_); + } + if (targetingSetting_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(43, getTargetingSetting()); + } + if (vanityPharma_ != null) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(38, getFinalUrlSuffix()); + .computeMessageSize(44, getVanityPharma()); } - if (realTimeBiddingSetting_ != null) { + if (selectiveOptimization_ != null) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(39, getRealTimeBiddingSetting()); + .computeMessageSize(45, getSelectiveOptimization()); } - for (int i = 0; i < frequencyCaps_.size(); i++) { + if (trackingSetting_ != null) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(40, frequencyCaps_.get(i)); + .computeMessageSize(46, getTrackingSetting()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -7473,6 +10009,11 @@ public boolean equals(final java.lang.Object obj) { result = result && getShoppingSetting() .equals(other.getShoppingSetting()); } + result = result && (hasTargetingSetting() == other.hasTargetingSetting()); + if (hasTargetingSetting()) { + result = result && getTargetingSetting() + .equals(other.getTargetingSetting()); + } result = result && (hasCampaignBudget() == other.hasCampaignBudget()); if (hasCampaignBudget()) { result = result && getCampaignBudget() @@ -7484,11 +10025,6 @@ public boolean equals(final java.lang.Object obj) { result = result && getStartDate() .equals(other.getStartDate()); } - result = result && (hasCampaignGroup() == other.hasCampaignGroup()); - if (hasCampaignGroup()) { - result = result && getCampaignGroup() - .equals(other.getCampaignGroup()); - } result = result && (hasEndDate() == other.hasEndDate()); if (hasEndDate()) { result = result && getEndDate() @@ -7501,6 +10037,22 @@ public boolean equals(final java.lang.Object obj) { } result = result && getFrequencyCapsList() .equals(other.getFrequencyCapsList()); + result = result && videoBrandSafetySuitability_ == other.videoBrandSafetySuitability_; + result = result && (hasVanityPharma() == other.hasVanityPharma()); + if (hasVanityPharma()) { + result = result && getVanityPharma() + .equals(other.getVanityPharma()); + } + result = result && (hasSelectiveOptimization() == other.hasSelectiveOptimization()); + if (hasSelectiveOptimization()) { + result = result && getSelectiveOptimization() + .equals(other.getSelectiveOptimization()); + } + result = result && (hasTrackingSetting() == other.hasTrackingSetting()); + if (hasTrackingSetting()) { + result = result && getTrackingSetting() + .equals(other.getTrackingSetting()); + } result = result && getCampaignBiddingStrategyCase().equals( other.getCampaignBiddingStrategyCase()); if (!result) return false; @@ -7545,6 +10097,10 @@ public boolean equals(final java.lang.Object obj) { result = result && getPercentCpc() .equals(other.getPercentCpc()); break; + case 41: + result = result && getTargetCpm() + .equals(other.getTargetCpm()); + break; case 0: default: } @@ -7607,6 +10163,10 @@ public int hashCode() { hash = (37 * hash) + SHOPPING_SETTING_FIELD_NUMBER; hash = (53 * hash) + getShoppingSetting().hashCode(); } + if (hasTargetingSetting()) { + hash = (37 * hash) + TARGETING_SETTING_FIELD_NUMBER; + hash = (53 * hash) + getTargetingSetting().hashCode(); + } if (hasCampaignBudget()) { hash = (37 * hash) + CAMPAIGN_BUDGET_FIELD_NUMBER; hash = (53 * hash) + getCampaignBudget().hashCode(); @@ -7617,10 +10177,6 @@ public int hashCode() { hash = (37 * hash) + START_DATE_FIELD_NUMBER; hash = (53 * hash) + getStartDate().hashCode(); } - if (hasCampaignGroup()) { - hash = (37 * hash) + CAMPAIGN_GROUP_FIELD_NUMBER; - hash = (53 * hash) + getCampaignGroup().hashCode(); - } if (hasEndDate()) { hash = (37 * hash) + END_DATE_FIELD_NUMBER; hash = (53 * hash) + getEndDate().hashCode(); @@ -7633,6 +10189,20 @@ public int hashCode() { hash = (37 * hash) + FREQUENCY_CAPS_FIELD_NUMBER; hash = (53 * hash) + getFrequencyCapsList().hashCode(); } + hash = (37 * hash) + VIDEO_BRAND_SAFETY_SUITABILITY_FIELD_NUMBER; + hash = (53 * hash) + videoBrandSafetySuitability_; + if (hasVanityPharma()) { + hash = (37 * hash) + VANITY_PHARMA_FIELD_NUMBER; + hash = (53 * hash) + getVanityPharma().hashCode(); + } + if (hasSelectiveOptimization()) { + hash = (37 * hash) + SELECTIVE_OPTIMIZATION_FIELD_NUMBER; + hash = (53 * hash) + getSelectiveOptimization().hashCode(); + } + if (hasTrackingSetting()) { + hash = (37 * hash) + TRACKING_SETTING_FIELD_NUMBER; + hash = (53 * hash) + getTrackingSetting().hashCode(); + } switch (campaignBiddingStrategyCase_) { case 23: hash = (37 * hash) + BIDDING_STRATEGY_FIELD_NUMBER; @@ -7674,6 +10244,10 @@ public int hashCode() { hash = (37 * hash) + PERCENT_CPC_FIELD_NUMBER; hash = (53 * hash) + getPercentCpc().hashCode(); break; + case 41: + hash = (37 * hash) + TARGET_CPM_FIELD_NUMBER; + hash = (53 * hash) + getTargetCpm().hashCode(); + break; case 0: default: } @@ -7882,6 +10456,12 @@ public Builder clear() { shoppingSetting_ = null; shoppingSettingBuilder_ = null; } + if (targetingSettingBuilder_ == null) { + targetingSetting_ = null; + } else { + targetingSetting_ = null; + targetingSettingBuilder_ = null; + } if (campaignBudgetBuilder_ == null) { campaignBudget_ = null; } else { @@ -7896,12 +10476,6 @@ public Builder clear() { startDate_ = null; startDateBuilder_ = null; } - if (campaignGroupBuilder_ == null) { - campaignGroup_ = null; - } else { - campaignGroup_ = null; - campaignGroupBuilder_ = null; - } if (endDateBuilder_ == null) { endDate_ = null; } else { @@ -7920,6 +10494,26 @@ public Builder clear() { } else { frequencyCapsBuilder_.clear(); } + videoBrandSafetySuitability_ = 0; + + if (vanityPharmaBuilder_ == null) { + vanityPharma_ = null; + } else { + vanityPharma_ = null; + vanityPharmaBuilder_ = null; + } + if (selectiveOptimizationBuilder_ == null) { + selectiveOptimization_ = null; + } else { + selectiveOptimization_ = null; + selectiveOptimizationBuilder_ = null; + } + if (trackingSettingBuilder_ == null) { + trackingSetting_ = null; + } else { + trackingSetting_ = null; + trackingSettingBuilder_ = null; + } campaignBiddingStrategyCase_ = 0; campaignBiddingStrategy_ = null; return this; @@ -7949,7 +10543,9 @@ public com.google.ads.googleads.v0.resources.Campaign build() { public com.google.ads.googleads.v0.resources.Campaign buildPartial() { com.google.ads.googleads.v0.resources.Campaign result = new com.google.ads.googleads.v0.resources.Campaign(this); int from_bitField0_ = bitField0_; + int from_bitField1_ = bitField1_; int to_bitField0_ = 0; + int to_bitField1_ = 0; result.resourceName_ = resourceName_; if (idBuilder_ == null) { result.id_ = id_; @@ -8005,3619 +10601,4193 @@ public com.google.ads.googleads.v0.resources.Campaign buildPartial() { } else { result.shoppingSetting_ = shoppingSettingBuilder_.build(); } + if (targetingSettingBuilder_ == null) { + result.targetingSetting_ = targetingSetting_; + } else { + result.targetingSetting_ = targetingSettingBuilder_.build(); + } if (campaignBudgetBuilder_ == null) { result.campaignBudget_ = campaignBudget_; } else { result.campaignBudget_ = campaignBudgetBuilder_.build(); } - result.biddingStrategyType_ = biddingStrategyType_; - if (startDateBuilder_ == null) { - result.startDate_ = startDate_; - } else { - result.startDate_ = startDateBuilder_.build(); + result.biddingStrategyType_ = biddingStrategyType_; + if (startDateBuilder_ == null) { + result.startDate_ = startDate_; + } else { + result.startDate_ = startDateBuilder_.build(); + } + if (endDateBuilder_ == null) { + result.endDate_ = endDate_; + } else { + result.endDate_ = endDateBuilder_.build(); + } + if (finalUrlSuffixBuilder_ == null) { + result.finalUrlSuffix_ = finalUrlSuffix_; + } else { + result.finalUrlSuffix_ = finalUrlSuffixBuilder_.build(); + } + if (frequencyCapsBuilder_ == null) { + if (((bitField0_ & 0x00200000) == 0x00200000)) { + frequencyCaps_ = java.util.Collections.unmodifiableList(frequencyCaps_); + bitField0_ = (bitField0_ & ~0x00200000); + } + result.frequencyCaps_ = frequencyCaps_; + } else { + result.frequencyCaps_ = frequencyCapsBuilder_.build(); + } + result.videoBrandSafetySuitability_ = videoBrandSafetySuitability_; + if (vanityPharmaBuilder_ == null) { + result.vanityPharma_ = vanityPharma_; + } else { + result.vanityPharma_ = vanityPharmaBuilder_.build(); + } + if (selectiveOptimizationBuilder_ == null) { + result.selectiveOptimization_ = selectiveOptimization_; + } else { + result.selectiveOptimization_ = selectiveOptimizationBuilder_.build(); + } + if (trackingSettingBuilder_ == null) { + result.trackingSetting_ = trackingSetting_; + } else { + result.trackingSetting_ = trackingSettingBuilder_.build(); + } + if (campaignBiddingStrategyCase_ == 23) { + if (biddingStrategyBuilder_ == null) { + result.campaignBiddingStrategy_ = campaignBiddingStrategy_; + } else { + result.campaignBiddingStrategy_ = biddingStrategyBuilder_.build(); + } + } + if (campaignBiddingStrategyCase_ == 24) { + if (manualCpcBuilder_ == null) { + result.campaignBiddingStrategy_ = campaignBiddingStrategy_; + } else { + result.campaignBiddingStrategy_ = manualCpcBuilder_.build(); + } + } + if (campaignBiddingStrategyCase_ == 25) { + if (manualCpmBuilder_ == null) { + result.campaignBiddingStrategy_ = campaignBiddingStrategy_; + } else { + result.campaignBiddingStrategy_ = manualCpmBuilder_.build(); + } + } + if (campaignBiddingStrategyCase_ == 37) { + if (manualCpvBuilder_ == null) { + result.campaignBiddingStrategy_ = campaignBiddingStrategy_; + } else { + result.campaignBiddingStrategy_ = manualCpvBuilder_.build(); + } + } + if (campaignBiddingStrategyCase_ == 30) { + if (maximizeConversionsBuilder_ == null) { + result.campaignBiddingStrategy_ = campaignBiddingStrategy_; + } else { + result.campaignBiddingStrategy_ = maximizeConversionsBuilder_.build(); + } + } + if (campaignBiddingStrategyCase_ == 31) { + if (maximizeConversionValueBuilder_ == null) { + result.campaignBiddingStrategy_ = campaignBiddingStrategy_; + } else { + result.campaignBiddingStrategy_ = maximizeConversionValueBuilder_.build(); + } + } + if (campaignBiddingStrategyCase_ == 26) { + if (targetCpaBuilder_ == null) { + result.campaignBiddingStrategy_ = campaignBiddingStrategy_; + } else { + result.campaignBiddingStrategy_ = targetCpaBuilder_.build(); + } + } + if (campaignBiddingStrategyCase_ == 29) { + if (targetRoasBuilder_ == null) { + result.campaignBiddingStrategy_ = campaignBiddingStrategy_; + } else { + result.campaignBiddingStrategy_ = targetRoasBuilder_.build(); + } + } + if (campaignBiddingStrategyCase_ == 27) { + if (targetSpendBuilder_ == null) { + result.campaignBiddingStrategy_ = campaignBiddingStrategy_; + } else { + result.campaignBiddingStrategy_ = targetSpendBuilder_.build(); + } + } + if (campaignBiddingStrategyCase_ == 34) { + if (percentCpcBuilder_ == null) { + result.campaignBiddingStrategy_ = campaignBiddingStrategy_; + } else { + result.campaignBiddingStrategy_ = percentCpcBuilder_.build(); + } + } + if (campaignBiddingStrategyCase_ == 41) { + if (targetCpmBuilder_ == null) { + result.campaignBiddingStrategy_ = campaignBiddingStrategy_; + } else { + result.campaignBiddingStrategy_ = targetCpmBuilder_.build(); + } + } + result.bitField0_ = to_bitField0_; + result.bitField1_ = to_bitField1_; + result.campaignBiddingStrategyCase_ = campaignBiddingStrategyCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.resources.Campaign) { + return mergeFrom((com.google.ads.googleads.v0.resources.Campaign)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.resources.Campaign other) { + if (other == com.google.ads.googleads.v0.resources.Campaign.getDefaultInstance()) return this; + if (!other.getResourceName().isEmpty()) { + resourceName_ = other.resourceName_; + onChanged(); + } + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasName()) { + mergeName(other.getName()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (other.servingStatus_ != 0) { + setServingStatusValue(other.getServingStatusValue()); + } + if (other.adServingOptimizationStatus_ != 0) { + setAdServingOptimizationStatusValue(other.getAdServingOptimizationStatusValue()); + } + if (other.advertisingChannelType_ != 0) { + setAdvertisingChannelTypeValue(other.getAdvertisingChannelTypeValue()); + } + if (other.advertisingChannelSubType_ != 0) { + setAdvertisingChannelSubTypeValue(other.getAdvertisingChannelSubTypeValue()); + } + if (other.hasTrackingUrlTemplate()) { + mergeTrackingUrlTemplate(other.getTrackingUrlTemplate()); + } + if (urlCustomParametersBuilder_ == null) { + if (!other.urlCustomParameters_.isEmpty()) { + if (urlCustomParameters_.isEmpty()) { + urlCustomParameters_ = other.urlCustomParameters_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureUrlCustomParametersIsMutable(); + urlCustomParameters_.addAll(other.urlCustomParameters_); + } + onChanged(); + } + } else { + if (!other.urlCustomParameters_.isEmpty()) { + if (urlCustomParametersBuilder_.isEmpty()) { + urlCustomParametersBuilder_.dispose(); + urlCustomParametersBuilder_ = null; + urlCustomParameters_ = other.urlCustomParameters_; + bitField0_ = (bitField0_ & ~0x00000200); + urlCustomParametersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getUrlCustomParametersFieldBuilder() : null; + } else { + urlCustomParametersBuilder_.addAllMessages(other.urlCustomParameters_); + } + } + } + if (other.hasRealTimeBiddingSetting()) { + mergeRealTimeBiddingSetting(other.getRealTimeBiddingSetting()); + } + if (other.hasNetworkSettings()) { + mergeNetworkSettings(other.getNetworkSettings()); + } + if (other.hasHotelSetting()) { + mergeHotelSetting(other.getHotelSetting()); + } + if (other.hasDynamicSearchAdsSetting()) { + mergeDynamicSearchAdsSetting(other.getDynamicSearchAdsSetting()); + } + if (other.hasShoppingSetting()) { + mergeShoppingSetting(other.getShoppingSetting()); + } + if (other.hasTargetingSetting()) { + mergeTargetingSetting(other.getTargetingSetting()); + } + if (other.hasCampaignBudget()) { + mergeCampaignBudget(other.getCampaignBudget()); + } + if (other.biddingStrategyType_ != 0) { + setBiddingStrategyTypeValue(other.getBiddingStrategyTypeValue()); } - if (campaignGroupBuilder_ == null) { - result.campaignGroup_ = campaignGroup_; - } else { - result.campaignGroup_ = campaignGroupBuilder_.build(); + if (other.hasStartDate()) { + mergeStartDate(other.getStartDate()); } - if (endDateBuilder_ == null) { - result.endDate_ = endDate_; - } else { - result.endDate_ = endDateBuilder_.build(); + if (other.hasEndDate()) { + mergeEndDate(other.getEndDate()); } - if (finalUrlSuffixBuilder_ == null) { - result.finalUrlSuffix_ = finalUrlSuffix_; - } else { - result.finalUrlSuffix_ = finalUrlSuffixBuilder_.build(); + if (other.hasFinalUrlSuffix()) { + mergeFinalUrlSuffix(other.getFinalUrlSuffix()); } if (frequencyCapsBuilder_ == null) { - if (((bitField0_ & 0x00200000) == 0x00200000)) { - frequencyCaps_ = java.util.Collections.unmodifiableList(frequencyCaps_); - bitField0_ = (bitField0_ & ~0x00200000); + if (!other.frequencyCaps_.isEmpty()) { + if (frequencyCaps_.isEmpty()) { + frequencyCaps_ = other.frequencyCaps_; + bitField0_ = (bitField0_ & ~0x00200000); + } else { + ensureFrequencyCapsIsMutable(); + frequencyCaps_.addAll(other.frequencyCaps_); + } + onChanged(); } - result.frequencyCaps_ = frequencyCaps_; } else { - result.frequencyCaps_ = frequencyCapsBuilder_.build(); - } - if (campaignBiddingStrategyCase_ == 23) { - if (biddingStrategyBuilder_ == null) { - result.campaignBiddingStrategy_ = campaignBiddingStrategy_; - } else { - result.campaignBiddingStrategy_ = biddingStrategyBuilder_.build(); + if (!other.frequencyCaps_.isEmpty()) { + if (frequencyCapsBuilder_.isEmpty()) { + frequencyCapsBuilder_.dispose(); + frequencyCapsBuilder_ = null; + frequencyCaps_ = other.frequencyCaps_; + bitField0_ = (bitField0_ & ~0x00200000); + frequencyCapsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFrequencyCapsFieldBuilder() : null; + } else { + frequencyCapsBuilder_.addAllMessages(other.frequencyCaps_); + } } } - if (campaignBiddingStrategyCase_ == 24) { - if (manualCpcBuilder_ == null) { - result.campaignBiddingStrategy_ = campaignBiddingStrategy_; - } else { - result.campaignBiddingStrategy_ = manualCpcBuilder_.build(); - } + if (other.videoBrandSafetySuitability_ != 0) { + setVideoBrandSafetySuitabilityValue(other.getVideoBrandSafetySuitabilityValue()); } - if (campaignBiddingStrategyCase_ == 25) { - if (manualCpmBuilder_ == null) { - result.campaignBiddingStrategy_ = campaignBiddingStrategy_; - } else { - result.campaignBiddingStrategy_ = manualCpmBuilder_.build(); - } + if (other.hasVanityPharma()) { + mergeVanityPharma(other.getVanityPharma()); } - if (campaignBiddingStrategyCase_ == 37) { - if (manualCpvBuilder_ == null) { - result.campaignBiddingStrategy_ = campaignBiddingStrategy_; - } else { - result.campaignBiddingStrategy_ = manualCpvBuilder_.build(); - } + if (other.hasSelectiveOptimization()) { + mergeSelectiveOptimization(other.getSelectiveOptimization()); } - if (campaignBiddingStrategyCase_ == 30) { - if (maximizeConversionsBuilder_ == null) { - result.campaignBiddingStrategy_ = campaignBiddingStrategy_; - } else { - result.campaignBiddingStrategy_ = maximizeConversionsBuilder_.build(); - } + if (other.hasTrackingSetting()) { + mergeTrackingSetting(other.getTrackingSetting()); } - if (campaignBiddingStrategyCase_ == 31) { - if (maximizeConversionValueBuilder_ == null) { - result.campaignBiddingStrategy_ = campaignBiddingStrategy_; - } else { - result.campaignBiddingStrategy_ = maximizeConversionValueBuilder_.build(); + switch (other.getCampaignBiddingStrategyCase()) { + case BIDDING_STRATEGY: { + mergeBiddingStrategy(other.getBiddingStrategy()); + break; + } + case MANUAL_CPC: { + mergeManualCpc(other.getManualCpc()); + break; + } + case MANUAL_CPM: { + mergeManualCpm(other.getManualCpm()); + break; + } + case MANUAL_CPV: { + mergeManualCpv(other.getManualCpv()); + break; + } + case MAXIMIZE_CONVERSIONS: { + mergeMaximizeConversions(other.getMaximizeConversions()); + break; + } + case MAXIMIZE_CONVERSION_VALUE: { + mergeMaximizeConversionValue(other.getMaximizeConversionValue()); + break; + } + case TARGET_CPA: { + mergeTargetCpa(other.getTargetCpa()); + break; + } + case TARGET_ROAS: { + mergeTargetRoas(other.getTargetRoas()); + break; + } + case TARGET_SPEND: { + mergeTargetSpend(other.getTargetSpend()); + break; + } + case PERCENT_CPC: { + mergePercentCpc(other.getPercentCpc()); + break; + } + case TARGET_CPM: { + mergeTargetCpm(other.getTargetCpm()); + break; + } + case CAMPAIGNBIDDINGSTRATEGY_NOT_SET: { + break; } } - if (campaignBiddingStrategyCase_ == 26) { - if (targetCpaBuilder_ == null) { - result.campaignBiddingStrategy_ = campaignBiddingStrategy_; - } else { - result.campaignBiddingStrategy_ = targetCpaBuilder_.build(); + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.resources.Campaign parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.resources.Campaign) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } - if (campaignBiddingStrategyCase_ == 29) { - if (targetRoasBuilder_ == null) { - result.campaignBiddingStrategy_ = campaignBiddingStrategy_; - } else { - result.campaignBiddingStrategy_ = targetRoasBuilder_.build(); + return this; + } + private int campaignBiddingStrategyCase_ = 0; + private java.lang.Object campaignBiddingStrategy_; + public CampaignBiddingStrategyCase + getCampaignBiddingStrategyCase() { + return CampaignBiddingStrategyCase.forNumber( + campaignBiddingStrategyCase_); + } + + public Builder clearCampaignBiddingStrategy() { + campaignBiddingStrategyCase_ = 0; + campaignBiddingStrategy_ = null; + onChanged(); + return this; + } + + private int bitField0_; + private int bitField1_; + + private java.lang.Object resourceName_ = ""; + /** + *
+     * The resource name of the campaign.
+     * Campaign resource names have the form:
+     * `customers/{customer_id}/campaigns/{campaign_id}`
+     * 
+ * + * string resource_name = 1; + */ + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The resource name of the campaign.
+     * Campaign resource names have the form:
+     * `customers/{customer_id}/campaigns/{campaign_id}`
+     * 
+ * + * string resource_name = 1; + */ + public com.google.protobuf.ByteString + getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The resource name of the campaign.
+     * Campaign resource names have the form:
+     * `customers/{customer_id}/campaigns/{campaign_id}`
+     * 
+ * + * string resource_name = 1; + */ + public Builder setResourceName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceName_ = value; + onChanged(); + return this; + } + /** + *
+     * The resource name of the campaign.
+     * Campaign resource names have the form:
+     * `customers/{customer_id}/campaigns/{campaign_id}`
+     * 
+ * + * string resource_name = 1; + */ + public Builder clearResourceName() { + + resourceName_ = getDefaultInstance().getResourceName(); + onChanged(); + return this; + } + /** + *
+     * The resource name of the campaign.
+     * Campaign resource names have the form:
+     * `customers/{customer_id}/campaigns/{campaign_id}`
+     * 
+ * + * string resource_name = 1; + */ + public Builder setResourceNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Int64Value id_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> idBuilder_; + /** + *
+     * The ID of the campaign.
+     * 
+ * + * .google.protobuf.Int64Value id = 3; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+     * The ID of the campaign.
+     * 
+ * + * .google.protobuf.Int64Value id = 3; + */ + public com.google.protobuf.Int64Value getId() { + if (idBuilder_ == null) { + return id_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+     * The ID of the campaign.
+     * 
+ * + * .google.protobuf.Int64Value id = 3; + */ + public Builder setId(com.google.protobuf.Int64Value value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); } - if (campaignBiddingStrategyCase_ == 27) { - if (targetSpendBuilder_ == null) { - result.campaignBiddingStrategy_ = campaignBiddingStrategy_; - } else { - result.campaignBiddingStrategy_ = targetSpendBuilder_.build(); - } + + return this; + } + /** + *
+     * The ID of the campaign.
+     * 
+ * + * .google.protobuf.Int64Value id = 3; + */ + public Builder setId( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); } - if (campaignBiddingStrategyCase_ == 34) { - if (percentCpcBuilder_ == null) { - result.campaignBiddingStrategy_ = campaignBiddingStrategy_; + + return this; + } + /** + *
+     * The ID of the campaign.
+     * 
+ * + * .google.protobuf.Int64Value id = 3; + */ + public Builder mergeId(com.google.protobuf.Int64Value value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + com.google.protobuf.Int64Value.newBuilder(id_).mergeFrom(value).buildPartial(); } else { - result.campaignBiddingStrategy_ = percentCpcBuilder_.build(); + id_ = value; } + onChanged(); + } else { + idBuilder_.mergeFrom(value); } - result.bitField0_ = to_bitField0_; - result.campaignBiddingStrategyCase_ = campaignBiddingStrategyCase_; - onBuilt(); - return result; + + return this; } + /** + *
+     * The ID of the campaign.
+     * 
+ * + * .google.protobuf.Int64Value id = 3; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); + return this; } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); + /** + *
+     * The ID of the campaign.
+     * 
+ * + * .google.protobuf.Int64Value id = 3; + */ + public com.google.protobuf.Int64Value.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + /** + *
+     * The ID of the campaign.
+     * 
+ * + * .google.protobuf.Int64Value id = 3; + */ + public com.google.protobuf.Int64ValueOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : id_; + } } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + /** + *
+     * The ID of the campaign.
+     * 
+ * + * .google.protobuf.Int64Value id = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + + private com.google.protobuf.StringValue name_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> nameBuilder_; + /** + *
+     * The name of the campaign.
+     * This field is required and should not be empty when creating new
+     * campaigns.
+     * It must not contain any null (code point 0x0), NL line feed
+     * (code point 0xA) or carriage return (code point 0xD) characters.
+     * 
+ * + * .google.protobuf.StringValue name = 4; + */ + public boolean hasName() { + return nameBuilder_ != null || name_ != null; } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + /** + *
+     * The name of the campaign.
+     * This field is required and should not be empty when creating new
+     * campaigns.
+     * It must not contain any null (code point 0x0), NL line feed
+     * (code point 0xA) or carriage return (code point 0xD) characters.
+     * 
+ * + * .google.protobuf.StringValue name = 4; + */ + public com.google.protobuf.StringValue getName() { + if (nameBuilder_ == null) { + return name_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : name_; + } else { + return nameBuilder_.getMessage(); + } } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.ads.googleads.v0.resources.Campaign) { - return mergeFrom((com.google.ads.googleads.v0.resources.Campaign)other); + /** + *
+     * The name of the campaign.
+     * This field is required and should not be empty when creating new
+     * campaigns.
+     * It must not contain any null (code point 0x0), NL line feed
+     * (code point 0xA) or carriage return (code point 0xD) characters.
+     * 
+ * + * .google.protobuf.StringValue name = 4; + */ + public Builder setName(com.google.protobuf.StringValue value) { + if (nameBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + onChanged(); } else { - super.mergeFrom(other); - return this; + nameBuilder_.setMessage(value); } - } - public Builder mergeFrom(com.google.ads.googleads.v0.resources.Campaign other) { - if (other == com.google.ads.googleads.v0.resources.Campaign.getDefaultInstance()) return this; - if (!other.getResourceName().isEmpty()) { - resourceName_ = other.resourceName_; + return this; + } + /** + *
+     * The name of the campaign.
+     * This field is required and should not be empty when creating new
+     * campaigns.
+     * It must not contain any null (code point 0x0), NL line feed
+     * (code point 0xA) or carriage return (code point 0xD) characters.
+     * 
+ * + * .google.protobuf.StringValue name = 4; + */ + public Builder setName( + com.google.protobuf.StringValue.Builder builderForValue) { + if (nameBuilder_ == null) { + name_ = builderForValue.build(); onChanged(); + } else { + nameBuilder_.setMessage(builderForValue.build()); } - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasName()) { - mergeName(other.getName()); - } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); - } - if (other.servingStatus_ != 0) { - setServingStatusValue(other.getServingStatusValue()); - } - if (other.adServingOptimizationStatus_ != 0) { - setAdServingOptimizationStatusValue(other.getAdServingOptimizationStatusValue()); - } - if (other.advertisingChannelType_ != 0) { - setAdvertisingChannelTypeValue(other.getAdvertisingChannelTypeValue()); - } - if (other.advertisingChannelSubType_ != 0) { - setAdvertisingChannelSubTypeValue(other.getAdvertisingChannelSubTypeValue()); - } - if (other.hasTrackingUrlTemplate()) { - mergeTrackingUrlTemplate(other.getTrackingUrlTemplate()); - } - if (urlCustomParametersBuilder_ == null) { - if (!other.urlCustomParameters_.isEmpty()) { - if (urlCustomParameters_.isEmpty()) { - urlCustomParameters_ = other.urlCustomParameters_; - bitField0_ = (bitField0_ & ~0x00000200); - } else { - ensureUrlCustomParametersIsMutable(); - urlCustomParameters_.addAll(other.urlCustomParameters_); - } - onChanged(); + + return this; + } + /** + *
+     * The name of the campaign.
+     * This field is required and should not be empty when creating new
+     * campaigns.
+     * It must not contain any null (code point 0x0), NL line feed
+     * (code point 0xA) or carriage return (code point 0xD) characters.
+     * 
+ * + * .google.protobuf.StringValue name = 4; + */ + public Builder mergeName(com.google.protobuf.StringValue value) { + if (nameBuilder_ == null) { + if (name_ != null) { + name_ = + com.google.protobuf.StringValue.newBuilder(name_).mergeFrom(value).buildPartial(); + } else { + name_ = value; } + onChanged(); } else { - if (!other.urlCustomParameters_.isEmpty()) { - if (urlCustomParametersBuilder_.isEmpty()) { - urlCustomParametersBuilder_.dispose(); - urlCustomParametersBuilder_ = null; - urlCustomParameters_ = other.urlCustomParameters_; - bitField0_ = (bitField0_ & ~0x00000200); - urlCustomParametersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getUrlCustomParametersFieldBuilder() : null; - } else { - urlCustomParametersBuilder_.addAllMessages(other.urlCustomParameters_); - } - } - } - if (other.hasRealTimeBiddingSetting()) { - mergeRealTimeBiddingSetting(other.getRealTimeBiddingSetting()); - } - if (other.hasNetworkSettings()) { - mergeNetworkSettings(other.getNetworkSettings()); - } - if (other.hasHotelSetting()) { - mergeHotelSetting(other.getHotelSetting()); - } - if (other.hasDynamicSearchAdsSetting()) { - mergeDynamicSearchAdsSetting(other.getDynamicSearchAdsSetting()); - } - if (other.hasShoppingSetting()) { - mergeShoppingSetting(other.getShoppingSetting()); - } - if (other.hasCampaignBudget()) { - mergeCampaignBudget(other.getCampaignBudget()); - } - if (other.biddingStrategyType_ != 0) { - setBiddingStrategyTypeValue(other.getBiddingStrategyTypeValue()); - } - if (other.hasStartDate()) { - mergeStartDate(other.getStartDate()); - } - if (other.hasCampaignGroup()) { - mergeCampaignGroup(other.getCampaignGroup()); - } - if (other.hasEndDate()) { - mergeEndDate(other.getEndDate()); + nameBuilder_.mergeFrom(value); } - if (other.hasFinalUrlSuffix()) { - mergeFinalUrlSuffix(other.getFinalUrlSuffix()); + + return this; + } + /** + *
+     * The name of the campaign.
+     * This field is required and should not be empty when creating new
+     * campaigns.
+     * It must not contain any null (code point 0x0), NL line feed
+     * (code point 0xA) or carriage return (code point 0xD) characters.
+     * 
+ * + * .google.protobuf.StringValue name = 4; + */ + public Builder clearName() { + if (nameBuilder_ == null) { + name_ = null; + onChanged(); + } else { + name_ = null; + nameBuilder_ = null; } - if (frequencyCapsBuilder_ == null) { - if (!other.frequencyCaps_.isEmpty()) { - if (frequencyCaps_.isEmpty()) { - frequencyCaps_ = other.frequencyCaps_; - bitField0_ = (bitField0_ & ~0x00200000); - } else { - ensureFrequencyCapsIsMutable(); - frequencyCaps_.addAll(other.frequencyCaps_); - } - onChanged(); - } + + return this; + } + /** + *
+     * The name of the campaign.
+     * This field is required and should not be empty when creating new
+     * campaigns.
+     * It must not contain any null (code point 0x0), NL line feed
+     * (code point 0xA) or carriage return (code point 0xD) characters.
+     * 
+ * + * .google.protobuf.StringValue name = 4; + */ + public com.google.protobuf.StringValue.Builder getNameBuilder() { + + onChanged(); + return getNameFieldBuilder().getBuilder(); + } + /** + *
+     * The name of the campaign.
+     * This field is required and should not be empty when creating new
+     * campaigns.
+     * It must not contain any null (code point 0x0), NL line feed
+     * (code point 0xA) or carriage return (code point 0xD) characters.
+     * 
+ * + * .google.protobuf.StringValue name = 4; + */ + public com.google.protobuf.StringValueOrBuilder getNameOrBuilder() { + if (nameBuilder_ != null) { + return nameBuilder_.getMessageOrBuilder(); } else { - if (!other.frequencyCaps_.isEmpty()) { - if (frequencyCapsBuilder_.isEmpty()) { - frequencyCapsBuilder_.dispose(); - frequencyCapsBuilder_ = null; - frequencyCaps_ = other.frequencyCaps_; - bitField0_ = (bitField0_ & ~0x00200000); - frequencyCapsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFrequencyCapsFieldBuilder() : null; - } else { - frequencyCapsBuilder_.addAllMessages(other.frequencyCaps_); - } - } + return name_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : name_; } - switch (other.getCampaignBiddingStrategyCase()) { - case BIDDING_STRATEGY: { - mergeBiddingStrategy(other.getBiddingStrategy()); - break; - } - case MANUAL_CPC: { - mergeManualCpc(other.getManualCpc()); - break; - } - case MANUAL_CPM: { - mergeManualCpm(other.getManualCpm()); - break; - } - case MANUAL_CPV: { - mergeManualCpv(other.getManualCpv()); - break; - } - case MAXIMIZE_CONVERSIONS: { - mergeMaximizeConversions(other.getMaximizeConversions()); - break; - } - case MAXIMIZE_CONVERSION_VALUE: { - mergeMaximizeConversionValue(other.getMaximizeConversionValue()); - break; - } - case TARGET_CPA: { - mergeTargetCpa(other.getTargetCpa()); - break; - } - case TARGET_ROAS: { - mergeTargetRoas(other.getTargetRoas()); - break; - } - case TARGET_SPEND: { - mergeTargetSpend(other.getTargetSpend()); - break; - } - case PERCENT_CPC: { - mergePercentCpc(other.getPercentCpc()); - break; - } - case CAMPAIGNBIDDINGSTRATEGY_NOT_SET: { - break; - } + } + /** + *
+     * The name of the campaign.
+     * This field is required and should not be empty when creating new
+     * campaigns.
+     * It must not contain any null (code point 0x0), NL line feed
+     * (code point 0xA) or carriage return (code point 0xD) characters.
+     * 
+ * + * .google.protobuf.StringValue name = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getNameFieldBuilder() { + if (nameBuilder_ == null) { + nameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getName(), + getParentForChildren(), + isClean()); + name_ = null; } - this.mergeUnknownFields(other.unknownFields); + return nameBuilder_; + } + + private int status_ = 0; + /** + *
+     * The status of the campaign.
+     * When a new campaign is added, the status defaults to ENABLED.
+     * 
+ * + * .google.ads.googleads.v0.enums.CampaignStatusEnum.CampaignStatus status = 5; + */ + public int getStatusValue() { + return status_; + } + /** + *
+     * The status of the campaign.
+     * When a new campaign is added, the status defaults to ENABLED.
+     * 
+ * + * .google.ads.googleads.v0.enums.CampaignStatusEnum.CampaignStatus status = 5; + */ + public Builder setStatusValue(int value) { + status_ = value; onChanged(); return this; } - - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + *
+     * The status of the campaign.
+     * When a new campaign is added, the status defaults to ENABLED.
+     * 
+ * + * .google.ads.googleads.v0.enums.CampaignStatusEnum.CampaignStatus status = 5; + */ + public com.google.ads.googleads.v0.enums.CampaignStatusEnum.CampaignStatus getStatus() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.CampaignStatusEnum.CampaignStatus result = com.google.ads.googleads.v0.enums.CampaignStatusEnum.CampaignStatus.valueOf(status_); + return result == null ? com.google.ads.googleads.v0.enums.CampaignStatusEnum.CampaignStatus.UNRECOGNIZED : result; } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.ads.googleads.v0.resources.Campaign parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.ads.googleads.v0.resources.Campaign) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } + /** + *
+     * The status of the campaign.
+     * When a new campaign is added, the status defaults to ENABLED.
+     * 
+ * + * .google.ads.googleads.v0.enums.CampaignStatusEnum.CampaignStatus status = 5; + */ + public Builder setStatus(com.google.ads.googleads.v0.enums.CampaignStatusEnum.CampaignStatus value) { + if (value == null) { + throw new NullPointerException(); } + + status_ = value.getNumber(); + onChanged(); return this; } - private int campaignBiddingStrategyCase_ = 0; - private java.lang.Object campaignBiddingStrategy_; - public CampaignBiddingStrategyCase - getCampaignBiddingStrategyCase() { - return CampaignBiddingStrategyCase.forNumber( - campaignBiddingStrategyCase_); + /** + *
+     * The status of the campaign.
+     * When a new campaign is added, the status defaults to ENABLED.
+     * 
+ * + * .google.ads.googleads.v0.enums.CampaignStatusEnum.CampaignStatus status = 5; + */ + public Builder clearStatus() { + + status_ = 0; + onChanged(); + return this; } - public Builder clearCampaignBiddingStrategy() { - campaignBiddingStrategyCase_ = 0; - campaignBiddingStrategy_ = null; + private int servingStatus_ = 0; + /** + *
+     * The ad serving status of the campaign.
+     * 
+ * + * .google.ads.googleads.v0.enums.CampaignServingStatusEnum.CampaignServingStatus serving_status = 21; + */ + public int getServingStatusValue() { + return servingStatus_; + } + /** + *
+     * The ad serving status of the campaign.
+     * 
+ * + * .google.ads.googleads.v0.enums.CampaignServingStatusEnum.CampaignServingStatus serving_status = 21; + */ + public Builder setServingStatusValue(int value) { + servingStatus_ = value; onChanged(); return this; } - - private int bitField0_; - - private java.lang.Object resourceName_ = ""; /** *
-     * The resource name of the campaign.
-     * Campaign resource names have the form:
-     * `customers/{customer_id}/campaigns/{campaign_id}`
+     * The ad serving status of the campaign.
      * 
* - * string resource_name = 1; + * .google.ads.googleads.v0.enums.CampaignServingStatusEnum.CampaignServingStatus serving_status = 21; */ - public java.lang.String getResourceName() { - java.lang.Object ref = resourceName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resourceName_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public com.google.ads.googleads.v0.enums.CampaignServingStatusEnum.CampaignServingStatus getServingStatus() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.CampaignServingStatusEnum.CampaignServingStatus result = com.google.ads.googleads.v0.enums.CampaignServingStatusEnum.CampaignServingStatus.valueOf(servingStatus_); + return result == null ? com.google.ads.googleads.v0.enums.CampaignServingStatusEnum.CampaignServingStatus.UNRECOGNIZED : result; } /** *
-     * The resource name of the campaign.
-     * Campaign resource names have the form:
-     * `customers/{customer_id}/campaigns/{campaign_id}`
+     * The ad serving status of the campaign.
      * 
* - * string resource_name = 1; + * .google.ads.googleads.v0.enums.CampaignServingStatusEnum.CampaignServingStatus serving_status = 21; */ - public com.google.protobuf.ByteString - getResourceNameBytes() { - java.lang.Object ref = resourceName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resourceName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public Builder setServingStatus(com.google.ads.googleads.v0.enums.CampaignServingStatusEnum.CampaignServingStatus value) { + if (value == null) { + throw new NullPointerException(); } + + servingStatus_ = value.getNumber(); + onChanged(); + return this; } /** *
-     * The resource name of the campaign.
-     * Campaign resource names have the form:
-     * `customers/{customer_id}/campaigns/{campaign_id}`
+     * The ad serving status of the campaign.
      * 
* - * string resource_name = 1; + * .google.ads.googleads.v0.enums.CampaignServingStatusEnum.CampaignServingStatus serving_status = 21; */ - public Builder setResourceName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceName_ = value; + public Builder clearServingStatus() { + + servingStatus_ = 0; onChanged(); return this; } + + private int adServingOptimizationStatus_ = 0; /** *
-     * The resource name of the campaign.
-     * Campaign resource names have the form:
-     * `customers/{customer_id}/campaigns/{campaign_id}`
+     * The ad serving optimization status of the campaign.
      * 
* - * string resource_name = 1; + * .google.ads.googleads.v0.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus ad_serving_optimization_status = 8; */ - public Builder clearResourceName() { + public int getAdServingOptimizationStatusValue() { + return adServingOptimizationStatus_; + } + /** + *
+     * The ad serving optimization status of the campaign.
+     * 
+ * + * .google.ads.googleads.v0.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus ad_serving_optimization_status = 8; + */ + public Builder setAdServingOptimizationStatusValue(int value) { + adServingOptimizationStatus_ = value; + onChanged(); + return this; + } + /** + *
+     * The ad serving optimization status of the campaign.
+     * 
+ * + * .google.ads.googleads.v0.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus ad_serving_optimization_status = 8; + */ + public com.google.ads.googleads.v0.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus getAdServingOptimizationStatus() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus result = com.google.ads.googleads.v0.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus.valueOf(adServingOptimizationStatus_); + return result == null ? com.google.ads.googleads.v0.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus.UNRECOGNIZED : result; + } + /** + *
+     * The ad serving optimization status of the campaign.
+     * 
+ * + * .google.ads.googleads.v0.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus ad_serving_optimization_status = 8; + */ + public Builder setAdServingOptimizationStatus(com.google.ads.googleads.v0.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus value) { + if (value == null) { + throw new NullPointerException(); + } - resourceName_ = getDefaultInstance().getResourceName(); + adServingOptimizationStatus_ = value.getNumber(); onChanged(); return this; } /** *
-     * The resource name of the campaign.
-     * Campaign resource names have the form:
-     * `customers/{customer_id}/campaigns/{campaign_id}`
+     * The ad serving optimization status of the campaign.
      * 
* - * string resource_name = 1; + * .google.ads.googleads.v0.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus ad_serving_optimization_status = 8; */ - public Builder setResourceNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + public Builder clearAdServingOptimizationStatus() { - resourceName_ = value; + adServingOptimizationStatus_ = 0; onChanged(); return this; } - private com.google.protobuf.Int64Value id_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> idBuilder_; + private int advertisingChannelType_ = 0; /** *
-     * The ID of the campaign.
+     * The primary serving target for ads within the campaign.
+     * The targeting options can be refined in `network_settings`.
+     * This field is required and should not be empty when creating new
+     * campaigns.
+     * Can be set only when creating campaigns.
+     * After the campaign is created, the field can not be changed.
      * 
* - * .google.protobuf.Int64Value id = 3; + * .google.ads.googleads.v0.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 9; */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; + public int getAdvertisingChannelTypeValue() { + return advertisingChannelType_; } /** *
-     * The ID of the campaign.
+     * The primary serving target for ads within the campaign.
+     * The targeting options can be refined in `network_settings`.
+     * This field is required and should not be empty when creating new
+     * campaigns.
+     * Can be set only when creating campaigns.
+     * After the campaign is created, the field can not be changed.
      * 
* - * .google.protobuf.Int64Value id = 3; + * .google.ads.googleads.v0.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 9; */ - public com.google.protobuf.Int64Value getId() { - if (idBuilder_ == null) { - return id_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } + public Builder setAdvertisingChannelTypeValue(int value) { + advertisingChannelType_ = value; + onChanged(); + return this; } /** *
-     * The ID of the campaign.
+     * The primary serving target for ads within the campaign.
+     * The targeting options can be refined in `network_settings`.
+     * This field is required and should not be empty when creating new
+     * campaigns.
+     * Can be set only when creating campaigns.
+     * After the campaign is created, the field can not be changed.
      * 
* - * .google.protobuf.Int64Value id = 3; + * .google.ads.googleads.v0.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 9; */ - public Builder setId(com.google.protobuf.Int64Value value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; + public com.google.ads.googleads.v0.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType getAdvertisingChannelType() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType result = com.google.ads.googleads.v0.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType.valueOf(advertisingChannelType_); + return result == null ? com.google.ads.googleads.v0.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType.UNRECOGNIZED : result; } /** *
-     * The ID of the campaign.
+     * The primary serving target for ads within the campaign.
+     * The targeting options can be refined in `network_settings`.
+     * This field is required and should not be empty when creating new
+     * campaigns.
+     * Can be set only when creating campaigns.
+     * After the campaign is created, the field can not be changed.
      * 
* - * .google.protobuf.Int64Value id = 3; + * .google.ads.googleads.v0.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 9; */ - public Builder setId( - com.google.protobuf.Int64Value.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); + public Builder setAdvertisingChannelType(com.google.ads.googleads.v0.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType value) { + if (value == null) { + throw new NullPointerException(); } - + + advertisingChannelType_ = value.getNumber(); + onChanged(); return this; } /** *
-     * The ID of the campaign.
+     * The primary serving target for ads within the campaign.
+     * The targeting options can be refined in `network_settings`.
+     * This field is required and should not be empty when creating new
+     * campaigns.
+     * Can be set only when creating campaigns.
+     * After the campaign is created, the field can not be changed.
      * 
* - * .google.protobuf.Int64Value id = 3; + * .google.ads.googleads.v0.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 9; */ - public Builder mergeId(com.google.protobuf.Int64Value value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - com.google.protobuf.Int64Value.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - + public Builder clearAdvertisingChannelType() { + + advertisingChannelType_ = 0; + onChanged(); return this; } + + private int advertisingChannelSubType_ = 0; /** *
-     * The ID of the campaign.
+     * Optional refinement to `advertising_channel_type`.
+     * Must be a valid sub-type of the parent channel type.
+     * Can be set only when creating campaigns.
+     * After campaign is created, the field can not be changed.
      * 
* - * .google.protobuf.Int64Value id = 3; + * .google.ads.googleads.v0.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 10; */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; + public int getAdvertisingChannelSubTypeValue() { + return advertisingChannelSubType_; } /** *
-     * The ID of the campaign.
+     * Optional refinement to `advertising_channel_type`.
+     * Must be a valid sub-type of the parent channel type.
+     * Can be set only when creating campaigns.
+     * After campaign is created, the field can not be changed.
      * 
* - * .google.protobuf.Int64Value id = 3; + * .google.ads.googleads.v0.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 10; */ - public com.google.protobuf.Int64Value.Builder getIdBuilder() { - + public Builder setAdvertisingChannelSubTypeValue(int value) { + advertisingChannelSubType_ = value; onChanged(); - return getIdFieldBuilder().getBuilder(); + return this; } /** *
-     * The ID of the campaign.
+     * Optional refinement to `advertising_channel_type`.
+     * Must be a valid sub-type of the parent channel type.
+     * Can be set only when creating campaigns.
+     * After campaign is created, the field can not be changed.
      * 
* - * .google.protobuf.Int64Value id = 3; + * .google.ads.googleads.v0.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 10; */ - public com.google.protobuf.Int64ValueOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - com.google.protobuf.Int64Value.getDefaultInstance() : id_; - } + public com.google.ads.googleads.v0.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType getAdvertisingChannelSubType() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType result = com.google.ads.googleads.v0.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType.valueOf(advertisingChannelSubType_); + return result == null ? com.google.ads.googleads.v0.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType.UNRECOGNIZED : result; } /** *
-     * The ID of the campaign.
+     * Optional refinement to `advertising_channel_type`.
+     * Must be a valid sub-type of the parent channel type.
+     * Can be set only when creating campaigns.
+     * After campaign is created, the field can not be changed.
      * 
* - * .google.protobuf.Int64Value id = 3; + * .google.ads.googleads.v0.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 10; */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; + public Builder setAdvertisingChannelSubType(com.google.ads.googleads.v0.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType value) { + if (value == null) { + throw new NullPointerException(); } - return idBuilder_; + + advertisingChannelSubType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Optional refinement to `advertising_channel_type`.
+     * Must be a valid sub-type of the parent channel type.
+     * Can be set only when creating campaigns.
+     * After campaign is created, the field can not be changed.
+     * 
+ * + * .google.ads.googleads.v0.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 10; + */ + public Builder clearAdvertisingChannelSubType() { + + advertisingChannelSubType_ = 0; + onChanged(); + return this; } - private com.google.protobuf.StringValue name_ = null; + private com.google.protobuf.StringValue trackingUrlTemplate_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> nameBuilder_; + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> trackingUrlTemplateBuilder_; /** *
-     * The name of the campaign.
-     * This field is required and should not be empty when creating new
-     * campaigns.
-     * It must not contain any null (code point 0x0), NL line feed
-     * (code point 0xA) or carriage return (code point 0xD) characters.
+     * The URL template for constructing a tracking URL.
      * 
* - * .google.protobuf.StringValue name = 4; + * .google.protobuf.StringValue tracking_url_template = 11; */ - public boolean hasName() { - return nameBuilder_ != null || name_ != null; + public boolean hasTrackingUrlTemplate() { + return trackingUrlTemplateBuilder_ != null || trackingUrlTemplate_ != null; } /** *
-     * The name of the campaign.
-     * This field is required and should not be empty when creating new
-     * campaigns.
-     * It must not contain any null (code point 0x0), NL line feed
-     * (code point 0xA) or carriage return (code point 0xD) characters.
+     * The URL template for constructing a tracking URL.
      * 
* - * .google.protobuf.StringValue name = 4; + * .google.protobuf.StringValue tracking_url_template = 11; */ - public com.google.protobuf.StringValue getName() { - if (nameBuilder_ == null) { - return name_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : name_; + public com.google.protobuf.StringValue getTrackingUrlTemplate() { + if (trackingUrlTemplateBuilder_ == null) { + return trackingUrlTemplate_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : trackingUrlTemplate_; } else { - return nameBuilder_.getMessage(); + return trackingUrlTemplateBuilder_.getMessage(); } } /** *
-     * The name of the campaign.
-     * This field is required and should not be empty when creating new
-     * campaigns.
-     * It must not contain any null (code point 0x0), NL line feed
-     * (code point 0xA) or carriage return (code point 0xD) characters.
+     * The URL template for constructing a tracking URL.
      * 
* - * .google.protobuf.StringValue name = 4; + * .google.protobuf.StringValue tracking_url_template = 11; */ - public Builder setName(com.google.protobuf.StringValue value) { - if (nameBuilder_ == null) { + public Builder setTrackingUrlTemplate(com.google.protobuf.StringValue value) { + if (trackingUrlTemplateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - name_ = value; + trackingUrlTemplate_ = value; onChanged(); } else { - nameBuilder_.setMessage(value); + trackingUrlTemplateBuilder_.setMessage(value); } return this; } /** *
-     * The name of the campaign.
-     * This field is required and should not be empty when creating new
-     * campaigns.
-     * It must not contain any null (code point 0x0), NL line feed
-     * (code point 0xA) or carriage return (code point 0xD) characters.
+     * The URL template for constructing a tracking URL.
      * 
* - * .google.protobuf.StringValue name = 4; + * .google.protobuf.StringValue tracking_url_template = 11; */ - public Builder setName( + public Builder setTrackingUrlTemplate( com.google.protobuf.StringValue.Builder builderForValue) { - if (nameBuilder_ == null) { - name_ = builderForValue.build(); + if (trackingUrlTemplateBuilder_ == null) { + trackingUrlTemplate_ = builderForValue.build(); onChanged(); } else { - nameBuilder_.setMessage(builderForValue.build()); + trackingUrlTemplateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The name of the campaign.
-     * This field is required and should not be empty when creating new
-     * campaigns.
-     * It must not contain any null (code point 0x0), NL line feed
-     * (code point 0xA) or carriage return (code point 0xD) characters.
+     * The URL template for constructing a tracking URL.
      * 
* - * .google.protobuf.StringValue name = 4; + * .google.protobuf.StringValue tracking_url_template = 11; */ - public Builder mergeName(com.google.protobuf.StringValue value) { - if (nameBuilder_ == null) { - if (name_ != null) { - name_ = - com.google.protobuf.StringValue.newBuilder(name_).mergeFrom(value).buildPartial(); + public Builder mergeTrackingUrlTemplate(com.google.protobuf.StringValue value) { + if (trackingUrlTemplateBuilder_ == null) { + if (trackingUrlTemplate_ != null) { + trackingUrlTemplate_ = + com.google.protobuf.StringValue.newBuilder(trackingUrlTemplate_).mergeFrom(value).buildPartial(); } else { - name_ = value; + trackingUrlTemplate_ = value; } onChanged(); } else { - nameBuilder_.mergeFrom(value); + trackingUrlTemplateBuilder_.mergeFrom(value); } return this; } /** *
-     * The name of the campaign.
-     * This field is required and should not be empty when creating new
-     * campaigns.
-     * It must not contain any null (code point 0x0), NL line feed
-     * (code point 0xA) or carriage return (code point 0xD) characters.
+     * The URL template for constructing a tracking URL.
      * 
* - * .google.protobuf.StringValue name = 4; + * .google.protobuf.StringValue tracking_url_template = 11; */ - public Builder clearName() { - if (nameBuilder_ == null) { - name_ = null; + public Builder clearTrackingUrlTemplate() { + if (trackingUrlTemplateBuilder_ == null) { + trackingUrlTemplate_ = null; onChanged(); } else { - name_ = null; - nameBuilder_ = null; + trackingUrlTemplate_ = null; + trackingUrlTemplateBuilder_ = null; } return this; } /** *
-     * The name of the campaign.
-     * This field is required and should not be empty when creating new
-     * campaigns.
-     * It must not contain any null (code point 0x0), NL line feed
-     * (code point 0xA) or carriage return (code point 0xD) characters.
+     * The URL template for constructing a tracking URL.
      * 
* - * .google.protobuf.StringValue name = 4; + * .google.protobuf.StringValue tracking_url_template = 11; */ - public com.google.protobuf.StringValue.Builder getNameBuilder() { + public com.google.protobuf.StringValue.Builder getTrackingUrlTemplateBuilder() { onChanged(); - return getNameFieldBuilder().getBuilder(); + return getTrackingUrlTemplateFieldBuilder().getBuilder(); } /** *
-     * The name of the campaign.
-     * This field is required and should not be empty when creating new
-     * campaigns.
-     * It must not contain any null (code point 0x0), NL line feed
-     * (code point 0xA) or carriage return (code point 0xD) characters.
+     * The URL template for constructing a tracking URL.
      * 
* - * .google.protobuf.StringValue name = 4; + * .google.protobuf.StringValue tracking_url_template = 11; */ - public com.google.protobuf.StringValueOrBuilder getNameOrBuilder() { - if (nameBuilder_ != null) { - return nameBuilder_.getMessageOrBuilder(); + public com.google.protobuf.StringValueOrBuilder getTrackingUrlTemplateOrBuilder() { + if (trackingUrlTemplateBuilder_ != null) { + return trackingUrlTemplateBuilder_.getMessageOrBuilder(); } else { - return name_ == null ? - com.google.protobuf.StringValue.getDefaultInstance() : name_; + return trackingUrlTemplate_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : trackingUrlTemplate_; } } /** *
-     * The name of the campaign.
-     * This field is required and should not be empty when creating new
-     * campaigns.
-     * It must not contain any null (code point 0x0), NL line feed
-     * (code point 0xA) or carriage return (code point 0xD) characters.
+     * The URL template for constructing a tracking URL.
      * 
* - * .google.protobuf.StringValue name = 4; + * .google.protobuf.StringValue tracking_url_template = 11; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> - getNameFieldBuilder() { - if (nameBuilder_ == null) { - nameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getTrackingUrlTemplateFieldBuilder() { + if (trackingUrlTemplateBuilder_ == null) { + trackingUrlTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( - getName(), + getTrackingUrlTemplate(), getParentForChildren(), isClean()); - name_ = null; + trackingUrlTemplate_ = null; } - return nameBuilder_; + return trackingUrlTemplateBuilder_; } - private int status_ = 0; - /** - *
-     * The status of the campaign.
-     * When a new campaign is added, the status defaults to ENABLED.
-     * 
- * - * .google.ads.googleads.v0.enums.CampaignStatusEnum.CampaignStatus status = 5; - */ - public int getStatusValue() { - return status_; - } - /** - *
-     * The status of the campaign.
-     * When a new campaign is added, the status defaults to ENABLED.
-     * 
- * - * .google.ads.googleads.v0.enums.CampaignStatusEnum.CampaignStatus status = 5; - */ - public Builder setStatusValue(int value) { - status_ = value; - onChanged(); - return this; - } - /** - *
-     * The status of the campaign.
-     * When a new campaign is added, the status defaults to ENABLED.
-     * 
- * - * .google.ads.googleads.v0.enums.CampaignStatusEnum.CampaignStatus status = 5; - */ - public com.google.ads.googleads.v0.enums.CampaignStatusEnum.CampaignStatus getStatus() { - @SuppressWarnings("deprecation") - com.google.ads.googleads.v0.enums.CampaignStatusEnum.CampaignStatus result = com.google.ads.googleads.v0.enums.CampaignStatusEnum.CampaignStatus.valueOf(status_); - return result == null ? com.google.ads.googleads.v0.enums.CampaignStatusEnum.CampaignStatus.UNRECOGNIZED : result; - } - /** - *
-     * The status of the campaign.
-     * When a new campaign is added, the status defaults to ENABLED.
-     * 
- * - * .google.ads.googleads.v0.enums.CampaignStatusEnum.CampaignStatus status = 5; - */ - public Builder setStatus(com.google.ads.googleads.v0.enums.CampaignStatusEnum.CampaignStatus value) { - if (value == null) { - throw new NullPointerException(); - } - - status_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * The status of the campaign.
-     * When a new campaign is added, the status defaults to ENABLED.
-     * 
- * - * .google.ads.googleads.v0.enums.CampaignStatusEnum.CampaignStatus status = 5; - */ - public Builder clearStatus() { - - status_ = 0; - onChanged(); - return this; + private java.util.List urlCustomParameters_ = + java.util.Collections.emptyList(); + private void ensureUrlCustomParametersIsMutable() { + if (!((bitField0_ & 0x00000200) == 0x00000200)) { + urlCustomParameters_ = new java.util.ArrayList(urlCustomParameters_); + bitField0_ |= 0x00000200; + } } - private int servingStatus_ = 0; - /** - *
-     * The ad serving status of the campaign.
-     * 
- * - * .google.ads.googleads.v0.enums.CampaignServingStatusEnum.CampaignServingStatus serving_status = 21; - */ - public int getServingStatusValue() { - return servingStatus_; - } - /** - *
-     * The ad serving status of the campaign.
-     * 
- * - * .google.ads.googleads.v0.enums.CampaignServingStatusEnum.CampaignServingStatus serving_status = 21; - */ - public Builder setServingStatusValue(int value) { - servingStatus_ = value; - onChanged(); - return this; - } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.common.CustomParameter, com.google.ads.googleads.v0.common.CustomParameter.Builder, com.google.ads.googleads.v0.common.CustomParameterOrBuilder> urlCustomParametersBuilder_; + /** *
-     * The ad serving status of the campaign.
+     * The list of mappings used to substitute custom parameter tags in a
+     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
      * 
* - * .google.ads.googleads.v0.enums.CampaignServingStatusEnum.CampaignServingStatus serving_status = 21; + * repeated .google.ads.googleads.v0.common.CustomParameter url_custom_parameters = 12; */ - public com.google.ads.googleads.v0.enums.CampaignServingStatusEnum.CampaignServingStatus getServingStatus() { - @SuppressWarnings("deprecation") - com.google.ads.googleads.v0.enums.CampaignServingStatusEnum.CampaignServingStatus result = com.google.ads.googleads.v0.enums.CampaignServingStatusEnum.CampaignServingStatus.valueOf(servingStatus_); - return result == null ? com.google.ads.googleads.v0.enums.CampaignServingStatusEnum.CampaignServingStatus.UNRECOGNIZED : result; + public java.util.List getUrlCustomParametersList() { + if (urlCustomParametersBuilder_ == null) { + return java.util.Collections.unmodifiableList(urlCustomParameters_); + } else { + return urlCustomParametersBuilder_.getMessageList(); + } } /** *
-     * The ad serving status of the campaign.
+     * The list of mappings used to substitute custom parameter tags in a
+     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
      * 
* - * .google.ads.googleads.v0.enums.CampaignServingStatusEnum.CampaignServingStatus serving_status = 21; + * repeated .google.ads.googleads.v0.common.CustomParameter url_custom_parameters = 12; */ - public Builder setServingStatus(com.google.ads.googleads.v0.enums.CampaignServingStatusEnum.CampaignServingStatus value) { - if (value == null) { - throw new NullPointerException(); + public int getUrlCustomParametersCount() { + if (urlCustomParametersBuilder_ == null) { + return urlCustomParameters_.size(); + } else { + return urlCustomParametersBuilder_.getCount(); } - - servingStatus_ = value.getNumber(); - onChanged(); - return this; } /** *
-     * The ad serving status of the campaign.
+     * The list of mappings used to substitute custom parameter tags in a
+     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
      * 
* - * .google.ads.googleads.v0.enums.CampaignServingStatusEnum.CampaignServingStatus serving_status = 21; + * repeated .google.ads.googleads.v0.common.CustomParameter url_custom_parameters = 12; */ - public Builder clearServingStatus() { - - servingStatus_ = 0; - onChanged(); - return this; + public com.google.ads.googleads.v0.common.CustomParameter getUrlCustomParameters(int index) { + if (urlCustomParametersBuilder_ == null) { + return urlCustomParameters_.get(index); + } else { + return urlCustomParametersBuilder_.getMessage(index); + } } - - private int adServingOptimizationStatus_ = 0; /** *
-     * The ad serving optimization status of the campaign.
+     * The list of mappings used to substitute custom parameter tags in a
+     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
      * 
* - * .google.ads.googleads.v0.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus ad_serving_optimization_status = 8; + * repeated .google.ads.googleads.v0.common.CustomParameter url_custom_parameters = 12; */ - public int getAdServingOptimizationStatusValue() { - return adServingOptimizationStatus_; + public Builder setUrlCustomParameters( + int index, com.google.ads.googleads.v0.common.CustomParameter value) { + if (urlCustomParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUrlCustomParametersIsMutable(); + urlCustomParameters_.set(index, value); + onChanged(); + } else { + urlCustomParametersBuilder_.setMessage(index, value); + } + return this; } /** *
-     * The ad serving optimization status of the campaign.
+     * The list of mappings used to substitute custom parameter tags in a
+     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
      * 
* - * .google.ads.googleads.v0.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus ad_serving_optimization_status = 8; + * repeated .google.ads.googleads.v0.common.CustomParameter url_custom_parameters = 12; */ - public Builder setAdServingOptimizationStatusValue(int value) { - adServingOptimizationStatus_ = value; - onChanged(); + public Builder setUrlCustomParameters( + int index, com.google.ads.googleads.v0.common.CustomParameter.Builder builderForValue) { + if (urlCustomParametersBuilder_ == null) { + ensureUrlCustomParametersIsMutable(); + urlCustomParameters_.set(index, builderForValue.build()); + onChanged(); + } else { + urlCustomParametersBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** *
-     * The ad serving optimization status of the campaign.
+     * The list of mappings used to substitute custom parameter tags in a
+     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
      * 
* - * .google.ads.googleads.v0.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus ad_serving_optimization_status = 8; + * repeated .google.ads.googleads.v0.common.CustomParameter url_custom_parameters = 12; */ - public com.google.ads.googleads.v0.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus getAdServingOptimizationStatus() { - @SuppressWarnings("deprecation") - com.google.ads.googleads.v0.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus result = com.google.ads.googleads.v0.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus.valueOf(adServingOptimizationStatus_); - return result == null ? com.google.ads.googleads.v0.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus.UNRECOGNIZED : result; + public Builder addUrlCustomParameters(com.google.ads.googleads.v0.common.CustomParameter value) { + if (urlCustomParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUrlCustomParametersIsMutable(); + urlCustomParameters_.add(value); + onChanged(); + } else { + urlCustomParametersBuilder_.addMessage(value); + } + return this; } /** *
-     * The ad serving optimization status of the campaign.
+     * The list of mappings used to substitute custom parameter tags in a
+     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
      * 
* - * .google.ads.googleads.v0.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus ad_serving_optimization_status = 8; + * repeated .google.ads.googleads.v0.common.CustomParameter url_custom_parameters = 12; */ - public Builder setAdServingOptimizationStatus(com.google.ads.googleads.v0.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus value) { - if (value == null) { - throw new NullPointerException(); + public Builder addUrlCustomParameters( + int index, com.google.ads.googleads.v0.common.CustomParameter value) { + if (urlCustomParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUrlCustomParametersIsMutable(); + urlCustomParameters_.add(index, value); + onChanged(); + } else { + urlCustomParametersBuilder_.addMessage(index, value); } - - adServingOptimizationStatus_ = value.getNumber(); - onChanged(); return this; } /** *
-     * The ad serving optimization status of the campaign.
+     * The list of mappings used to substitute custom parameter tags in a
+     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
      * 
* - * .google.ads.googleads.v0.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus ad_serving_optimization_status = 8; + * repeated .google.ads.googleads.v0.common.CustomParameter url_custom_parameters = 12; */ - public Builder clearAdServingOptimizationStatus() { - - adServingOptimizationStatus_ = 0; - onChanged(); + public Builder addUrlCustomParameters( + com.google.ads.googleads.v0.common.CustomParameter.Builder builderForValue) { + if (urlCustomParametersBuilder_ == null) { + ensureUrlCustomParametersIsMutable(); + urlCustomParameters_.add(builderForValue.build()); + onChanged(); + } else { + urlCustomParametersBuilder_.addMessage(builderForValue.build()); + } return this; } - - private int advertisingChannelType_ = 0; /** *
-     * The primary serving target for ads within the campaign.
-     * The targeting options can be refined in `network_settings`.
-     * This field is required and should not be empty when creating new
-     * campaigns.
-     * Can be set only when creating campaigns.
-     * After the campaign is created, the field can not be changed.
+     * The list of mappings used to substitute custom parameter tags in a
+     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
      * 
* - * .google.ads.googleads.v0.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 9; + * repeated .google.ads.googleads.v0.common.CustomParameter url_custom_parameters = 12; */ - public int getAdvertisingChannelTypeValue() { - return advertisingChannelType_; + public Builder addUrlCustomParameters( + int index, com.google.ads.googleads.v0.common.CustomParameter.Builder builderForValue) { + if (urlCustomParametersBuilder_ == null) { + ensureUrlCustomParametersIsMutable(); + urlCustomParameters_.add(index, builderForValue.build()); + onChanged(); + } else { + urlCustomParametersBuilder_.addMessage(index, builderForValue.build()); + } + return this; } /** *
-     * The primary serving target for ads within the campaign.
-     * The targeting options can be refined in `network_settings`.
-     * This field is required and should not be empty when creating new
-     * campaigns.
-     * Can be set only when creating campaigns.
-     * After the campaign is created, the field can not be changed.
+     * The list of mappings used to substitute custom parameter tags in a
+     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
      * 
* - * .google.ads.googleads.v0.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 9; + * repeated .google.ads.googleads.v0.common.CustomParameter url_custom_parameters = 12; */ - public Builder setAdvertisingChannelTypeValue(int value) { - advertisingChannelType_ = value; - onChanged(); + public Builder addAllUrlCustomParameters( + java.lang.Iterable values) { + if (urlCustomParametersBuilder_ == null) { + ensureUrlCustomParametersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, urlCustomParameters_); + onChanged(); + } else { + urlCustomParametersBuilder_.addAllMessages(values); + } return this; } /** *
-     * The primary serving target for ads within the campaign.
-     * The targeting options can be refined in `network_settings`.
-     * This field is required and should not be empty when creating new
-     * campaigns.
-     * Can be set only when creating campaigns.
-     * After the campaign is created, the field can not be changed.
+     * The list of mappings used to substitute custom parameter tags in a
+     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
      * 
* - * .google.ads.googleads.v0.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 9; + * repeated .google.ads.googleads.v0.common.CustomParameter url_custom_parameters = 12; */ - public com.google.ads.googleads.v0.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType getAdvertisingChannelType() { - @SuppressWarnings("deprecation") - com.google.ads.googleads.v0.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType result = com.google.ads.googleads.v0.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType.valueOf(advertisingChannelType_); - return result == null ? com.google.ads.googleads.v0.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType.UNRECOGNIZED : result; + public Builder clearUrlCustomParameters() { + if (urlCustomParametersBuilder_ == null) { + urlCustomParameters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + urlCustomParametersBuilder_.clear(); + } + return this; } /** *
-     * The primary serving target for ads within the campaign.
-     * The targeting options can be refined in `network_settings`.
-     * This field is required and should not be empty when creating new
-     * campaigns.
-     * Can be set only when creating campaigns.
-     * After the campaign is created, the field can not be changed.
+     * The list of mappings used to substitute custom parameter tags in a
+     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
      * 
* - * .google.ads.googleads.v0.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 9; + * repeated .google.ads.googleads.v0.common.CustomParameter url_custom_parameters = 12; */ - public Builder setAdvertisingChannelType(com.google.ads.googleads.v0.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType value) { - if (value == null) { - throw new NullPointerException(); + public Builder removeUrlCustomParameters(int index) { + if (urlCustomParametersBuilder_ == null) { + ensureUrlCustomParametersIsMutable(); + urlCustomParameters_.remove(index); + onChanged(); + } else { + urlCustomParametersBuilder_.remove(index); } - - advertisingChannelType_ = value.getNumber(); - onChanged(); return this; } /** *
-     * The primary serving target for ads within the campaign.
-     * The targeting options can be refined in `network_settings`.
-     * This field is required and should not be empty when creating new
-     * campaigns.
-     * Can be set only when creating campaigns.
-     * After the campaign is created, the field can not be changed.
+     * The list of mappings used to substitute custom parameter tags in a
+     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
      * 
* - * .google.ads.googleads.v0.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 9; + * repeated .google.ads.googleads.v0.common.CustomParameter url_custom_parameters = 12; */ - public Builder clearAdvertisingChannelType() { - - advertisingChannelType_ = 0; - onChanged(); - return this; + public com.google.ads.googleads.v0.common.CustomParameter.Builder getUrlCustomParametersBuilder( + int index) { + return getUrlCustomParametersFieldBuilder().getBuilder(index); } - - private int advertisingChannelSubType_ = 0; /** *
-     * Optional refinement to `advertising_channel_type`.
-     * Must be a valid sub-type of the parent channel type.
-     * Can be set only when creating campaigns.
-     * After campaign is created, the field can not be changed.
+     * The list of mappings used to substitute custom parameter tags in a
+     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
      * 
* - * .google.ads.googleads.v0.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 10; + * repeated .google.ads.googleads.v0.common.CustomParameter url_custom_parameters = 12; */ - public int getAdvertisingChannelSubTypeValue() { - return advertisingChannelSubType_; + public com.google.ads.googleads.v0.common.CustomParameterOrBuilder getUrlCustomParametersOrBuilder( + int index) { + if (urlCustomParametersBuilder_ == null) { + return urlCustomParameters_.get(index); } else { + return urlCustomParametersBuilder_.getMessageOrBuilder(index); + } } /** *
-     * Optional refinement to `advertising_channel_type`.
-     * Must be a valid sub-type of the parent channel type.
-     * Can be set only when creating campaigns.
-     * After campaign is created, the field can not be changed.
+     * The list of mappings used to substitute custom parameter tags in a
+     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
      * 
* - * .google.ads.googleads.v0.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 10; + * repeated .google.ads.googleads.v0.common.CustomParameter url_custom_parameters = 12; */ - public Builder setAdvertisingChannelSubTypeValue(int value) { - advertisingChannelSubType_ = value; - onChanged(); - return this; + public java.util.List + getUrlCustomParametersOrBuilderList() { + if (urlCustomParametersBuilder_ != null) { + return urlCustomParametersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(urlCustomParameters_); + } } /** - *
-     * Optional refinement to `advertising_channel_type`.
-     * Must be a valid sub-type of the parent channel type.
-     * Can be set only when creating campaigns.
-     * After campaign is created, the field can not be changed.
+     * 
+     * The list of mappings used to substitute custom parameter tags in a
+     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
      * 
* - * .google.ads.googleads.v0.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 10; + * repeated .google.ads.googleads.v0.common.CustomParameter url_custom_parameters = 12; */ - public com.google.ads.googleads.v0.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType getAdvertisingChannelSubType() { - @SuppressWarnings("deprecation") - com.google.ads.googleads.v0.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType result = com.google.ads.googleads.v0.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType.valueOf(advertisingChannelSubType_); - return result == null ? com.google.ads.googleads.v0.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType.UNRECOGNIZED : result; + public com.google.ads.googleads.v0.common.CustomParameter.Builder addUrlCustomParametersBuilder() { + return getUrlCustomParametersFieldBuilder().addBuilder( + com.google.ads.googleads.v0.common.CustomParameter.getDefaultInstance()); } /** *
-     * Optional refinement to `advertising_channel_type`.
-     * Must be a valid sub-type of the parent channel type.
-     * Can be set only when creating campaigns.
-     * After campaign is created, the field can not be changed.
+     * The list of mappings used to substitute custom parameter tags in a
+     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
      * 
* - * .google.ads.googleads.v0.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 10; + * repeated .google.ads.googleads.v0.common.CustomParameter url_custom_parameters = 12; */ - public Builder setAdvertisingChannelSubType(com.google.ads.googleads.v0.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType value) { - if (value == null) { - throw new NullPointerException(); - } - - advertisingChannelSubType_ = value.getNumber(); - onChanged(); - return this; + public com.google.ads.googleads.v0.common.CustomParameter.Builder addUrlCustomParametersBuilder( + int index) { + return getUrlCustomParametersFieldBuilder().addBuilder( + index, com.google.ads.googleads.v0.common.CustomParameter.getDefaultInstance()); } /** *
-     * Optional refinement to `advertising_channel_type`.
-     * Must be a valid sub-type of the parent channel type.
-     * Can be set only when creating campaigns.
-     * After campaign is created, the field can not be changed.
+     * The list of mappings used to substitute custom parameter tags in a
+     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
      * 
* - * .google.ads.googleads.v0.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 10; + * repeated .google.ads.googleads.v0.common.CustomParameter url_custom_parameters = 12; */ - public Builder clearAdvertisingChannelSubType() { - - advertisingChannelSubType_ = 0; - onChanged(); - return this; + public java.util.List + getUrlCustomParametersBuilderList() { + return getUrlCustomParametersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.common.CustomParameter, com.google.ads.googleads.v0.common.CustomParameter.Builder, com.google.ads.googleads.v0.common.CustomParameterOrBuilder> + getUrlCustomParametersFieldBuilder() { + if (urlCustomParametersBuilder_ == null) { + urlCustomParametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.common.CustomParameter, com.google.ads.googleads.v0.common.CustomParameter.Builder, com.google.ads.googleads.v0.common.CustomParameterOrBuilder>( + urlCustomParameters_, + ((bitField0_ & 0x00000200) == 0x00000200), + getParentForChildren(), + isClean()); + urlCustomParameters_ = null; + } + return urlCustomParametersBuilder_; } - private com.google.protobuf.StringValue trackingUrlTemplate_ = null; + private com.google.ads.googleads.v0.common.RealTimeBiddingSetting realTimeBiddingSetting_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> trackingUrlTemplateBuilder_; + com.google.ads.googleads.v0.common.RealTimeBiddingSetting, com.google.ads.googleads.v0.common.RealTimeBiddingSetting.Builder, com.google.ads.googleads.v0.common.RealTimeBiddingSettingOrBuilder> realTimeBiddingSettingBuilder_; /** *
-     * The URL template for constructing a tracking URL.
+     * Settings for Real-Time Bidding, a feature only available for campaigns
+     * targeting the Ad Exchange network.
      * 
* - * .google.protobuf.StringValue tracking_url_template = 11; + * .google.ads.googleads.v0.common.RealTimeBiddingSetting real_time_bidding_setting = 39; */ - public boolean hasTrackingUrlTemplate() { - return trackingUrlTemplateBuilder_ != null || trackingUrlTemplate_ != null; + public boolean hasRealTimeBiddingSetting() { + return realTimeBiddingSettingBuilder_ != null || realTimeBiddingSetting_ != null; } /** *
-     * The URL template for constructing a tracking URL.
+     * Settings for Real-Time Bidding, a feature only available for campaigns
+     * targeting the Ad Exchange network.
      * 
* - * .google.protobuf.StringValue tracking_url_template = 11; + * .google.ads.googleads.v0.common.RealTimeBiddingSetting real_time_bidding_setting = 39; */ - public com.google.protobuf.StringValue getTrackingUrlTemplate() { - if (trackingUrlTemplateBuilder_ == null) { - return trackingUrlTemplate_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : trackingUrlTemplate_; + public com.google.ads.googleads.v0.common.RealTimeBiddingSetting getRealTimeBiddingSetting() { + if (realTimeBiddingSettingBuilder_ == null) { + return realTimeBiddingSetting_ == null ? com.google.ads.googleads.v0.common.RealTimeBiddingSetting.getDefaultInstance() : realTimeBiddingSetting_; } else { - return trackingUrlTemplateBuilder_.getMessage(); + return realTimeBiddingSettingBuilder_.getMessage(); } } /** *
-     * The URL template for constructing a tracking URL.
+     * Settings for Real-Time Bidding, a feature only available for campaigns
+     * targeting the Ad Exchange network.
      * 
* - * .google.protobuf.StringValue tracking_url_template = 11; + * .google.ads.googleads.v0.common.RealTimeBiddingSetting real_time_bidding_setting = 39; */ - public Builder setTrackingUrlTemplate(com.google.protobuf.StringValue value) { - if (trackingUrlTemplateBuilder_ == null) { + public Builder setRealTimeBiddingSetting(com.google.ads.googleads.v0.common.RealTimeBiddingSetting value) { + if (realTimeBiddingSettingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - trackingUrlTemplate_ = value; + realTimeBiddingSetting_ = value; onChanged(); } else { - trackingUrlTemplateBuilder_.setMessage(value); + realTimeBiddingSettingBuilder_.setMessage(value); } return this; } /** *
-     * The URL template for constructing a tracking URL.
+     * Settings for Real-Time Bidding, a feature only available for campaigns
+     * targeting the Ad Exchange network.
      * 
* - * .google.protobuf.StringValue tracking_url_template = 11; + * .google.ads.googleads.v0.common.RealTimeBiddingSetting real_time_bidding_setting = 39; */ - public Builder setTrackingUrlTemplate( - com.google.protobuf.StringValue.Builder builderForValue) { - if (trackingUrlTemplateBuilder_ == null) { - trackingUrlTemplate_ = builderForValue.build(); + public Builder setRealTimeBiddingSetting( + com.google.ads.googleads.v0.common.RealTimeBiddingSetting.Builder builderForValue) { + if (realTimeBiddingSettingBuilder_ == null) { + realTimeBiddingSetting_ = builderForValue.build(); onChanged(); } else { - trackingUrlTemplateBuilder_.setMessage(builderForValue.build()); + realTimeBiddingSettingBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The URL template for constructing a tracking URL.
+     * Settings for Real-Time Bidding, a feature only available for campaigns
+     * targeting the Ad Exchange network.
      * 
* - * .google.protobuf.StringValue tracking_url_template = 11; + * .google.ads.googleads.v0.common.RealTimeBiddingSetting real_time_bidding_setting = 39; */ - public Builder mergeTrackingUrlTemplate(com.google.protobuf.StringValue value) { - if (trackingUrlTemplateBuilder_ == null) { - if (trackingUrlTemplate_ != null) { - trackingUrlTemplate_ = - com.google.protobuf.StringValue.newBuilder(trackingUrlTemplate_).mergeFrom(value).buildPartial(); + public Builder mergeRealTimeBiddingSetting(com.google.ads.googleads.v0.common.RealTimeBiddingSetting value) { + if (realTimeBiddingSettingBuilder_ == null) { + if (realTimeBiddingSetting_ != null) { + realTimeBiddingSetting_ = + com.google.ads.googleads.v0.common.RealTimeBiddingSetting.newBuilder(realTimeBiddingSetting_).mergeFrom(value).buildPartial(); } else { - trackingUrlTemplate_ = value; + realTimeBiddingSetting_ = value; } onChanged(); } else { - trackingUrlTemplateBuilder_.mergeFrom(value); + realTimeBiddingSettingBuilder_.mergeFrom(value); } return this; } /** *
-     * The URL template for constructing a tracking URL.
+     * Settings for Real-Time Bidding, a feature only available for campaigns
+     * targeting the Ad Exchange network.
      * 
* - * .google.protobuf.StringValue tracking_url_template = 11; + * .google.ads.googleads.v0.common.RealTimeBiddingSetting real_time_bidding_setting = 39; */ - public Builder clearTrackingUrlTemplate() { - if (trackingUrlTemplateBuilder_ == null) { - trackingUrlTemplate_ = null; + public Builder clearRealTimeBiddingSetting() { + if (realTimeBiddingSettingBuilder_ == null) { + realTimeBiddingSetting_ = null; onChanged(); } else { - trackingUrlTemplate_ = null; - trackingUrlTemplateBuilder_ = null; + realTimeBiddingSetting_ = null; + realTimeBiddingSettingBuilder_ = null; } return this; } /** *
-     * The URL template for constructing a tracking URL.
+     * Settings for Real-Time Bidding, a feature only available for campaigns
+     * targeting the Ad Exchange network.
      * 
* - * .google.protobuf.StringValue tracking_url_template = 11; + * .google.ads.googleads.v0.common.RealTimeBiddingSetting real_time_bidding_setting = 39; */ - public com.google.protobuf.StringValue.Builder getTrackingUrlTemplateBuilder() { + public com.google.ads.googleads.v0.common.RealTimeBiddingSetting.Builder getRealTimeBiddingSettingBuilder() { onChanged(); - return getTrackingUrlTemplateFieldBuilder().getBuilder(); + return getRealTimeBiddingSettingFieldBuilder().getBuilder(); } /** *
-     * The URL template for constructing a tracking URL.
+     * Settings for Real-Time Bidding, a feature only available for campaigns
+     * targeting the Ad Exchange network.
      * 
* - * .google.protobuf.StringValue tracking_url_template = 11; + * .google.ads.googleads.v0.common.RealTimeBiddingSetting real_time_bidding_setting = 39; */ - public com.google.protobuf.StringValueOrBuilder getTrackingUrlTemplateOrBuilder() { - if (trackingUrlTemplateBuilder_ != null) { - return trackingUrlTemplateBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.common.RealTimeBiddingSettingOrBuilder getRealTimeBiddingSettingOrBuilder() { + if (realTimeBiddingSettingBuilder_ != null) { + return realTimeBiddingSettingBuilder_.getMessageOrBuilder(); } else { - return trackingUrlTemplate_ == null ? - com.google.protobuf.StringValue.getDefaultInstance() : trackingUrlTemplate_; + return realTimeBiddingSetting_ == null ? + com.google.ads.googleads.v0.common.RealTimeBiddingSetting.getDefaultInstance() : realTimeBiddingSetting_; } } /** *
-     * The URL template for constructing a tracking URL.
+     * Settings for Real-Time Bidding, a feature only available for campaigns
+     * targeting the Ad Exchange network.
      * 
* - * .google.protobuf.StringValue tracking_url_template = 11; + * .google.ads.googleads.v0.common.RealTimeBiddingSetting real_time_bidding_setting = 39; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> - getTrackingUrlTemplateFieldBuilder() { - if (trackingUrlTemplateBuilder_ == null) { - trackingUrlTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( - getTrackingUrlTemplate(), + com.google.ads.googleads.v0.common.RealTimeBiddingSetting, com.google.ads.googleads.v0.common.RealTimeBiddingSetting.Builder, com.google.ads.googleads.v0.common.RealTimeBiddingSettingOrBuilder> + getRealTimeBiddingSettingFieldBuilder() { + if (realTimeBiddingSettingBuilder_ == null) { + realTimeBiddingSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.RealTimeBiddingSetting, com.google.ads.googleads.v0.common.RealTimeBiddingSetting.Builder, com.google.ads.googleads.v0.common.RealTimeBiddingSettingOrBuilder>( + getRealTimeBiddingSetting(), getParentForChildren(), isClean()); - trackingUrlTemplate_ = null; + realTimeBiddingSetting_ = null; } - return trackingUrlTemplateBuilder_; - } - - private java.util.List urlCustomParameters_ = - java.util.Collections.emptyList(); - private void ensureUrlCustomParametersIsMutable() { - if (!((bitField0_ & 0x00000200) == 0x00000200)) { - urlCustomParameters_ = new java.util.ArrayList(urlCustomParameters_); - bitField0_ |= 0x00000200; - } + return realTimeBiddingSettingBuilder_; } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.googleads.v0.common.CustomParameter, com.google.ads.googleads.v0.common.CustomParameter.Builder, com.google.ads.googleads.v0.common.CustomParameterOrBuilder> urlCustomParametersBuilder_; - - /** - *
-     * The list of mappings used to substitute custom parameter tags in a
-     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
-     * 
- * - * repeated .google.ads.googleads.v0.common.CustomParameter url_custom_parameters = 12; - */ - public java.util.List getUrlCustomParametersList() { - if (urlCustomParametersBuilder_ == null) { - return java.util.Collections.unmodifiableList(urlCustomParameters_); - } else { - return urlCustomParametersBuilder_.getMessageList(); - } - } + private com.google.ads.googleads.v0.resources.Campaign.NetworkSettings networkSettings_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.Campaign.NetworkSettings, com.google.ads.googleads.v0.resources.Campaign.NetworkSettings.Builder, com.google.ads.googleads.v0.resources.Campaign.NetworkSettingsOrBuilder> networkSettingsBuilder_; /** *
-     * The list of mappings used to substitute custom parameter tags in a
-     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
+     * The network settings for the campaign.
      * 
* - * repeated .google.ads.googleads.v0.common.CustomParameter url_custom_parameters = 12; + * .google.ads.googleads.v0.resources.Campaign.NetworkSettings network_settings = 14; */ - public int getUrlCustomParametersCount() { - if (urlCustomParametersBuilder_ == null) { - return urlCustomParameters_.size(); - } else { - return urlCustomParametersBuilder_.getCount(); - } + public boolean hasNetworkSettings() { + return networkSettingsBuilder_ != null || networkSettings_ != null; } /** *
-     * The list of mappings used to substitute custom parameter tags in a
-     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
+     * The network settings for the campaign.
      * 
* - * repeated .google.ads.googleads.v0.common.CustomParameter url_custom_parameters = 12; + * .google.ads.googleads.v0.resources.Campaign.NetworkSettings network_settings = 14; */ - public com.google.ads.googleads.v0.common.CustomParameter getUrlCustomParameters(int index) { - if (urlCustomParametersBuilder_ == null) { - return urlCustomParameters_.get(index); + public com.google.ads.googleads.v0.resources.Campaign.NetworkSettings getNetworkSettings() { + if (networkSettingsBuilder_ == null) { + return networkSettings_ == null ? com.google.ads.googleads.v0.resources.Campaign.NetworkSettings.getDefaultInstance() : networkSettings_; } else { - return urlCustomParametersBuilder_.getMessage(index); + return networkSettingsBuilder_.getMessage(); } } /** *
-     * The list of mappings used to substitute custom parameter tags in a
-     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
+     * The network settings for the campaign.
      * 
* - * repeated .google.ads.googleads.v0.common.CustomParameter url_custom_parameters = 12; + * .google.ads.googleads.v0.resources.Campaign.NetworkSettings network_settings = 14; */ - public Builder setUrlCustomParameters( - int index, com.google.ads.googleads.v0.common.CustomParameter value) { - if (urlCustomParametersBuilder_ == null) { + public Builder setNetworkSettings(com.google.ads.googleads.v0.resources.Campaign.NetworkSettings value) { + if (networkSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureUrlCustomParametersIsMutable(); - urlCustomParameters_.set(index, value); + networkSettings_ = value; onChanged(); } else { - urlCustomParametersBuilder_.setMessage(index, value); + networkSettingsBuilder_.setMessage(value); } + return this; } /** *
-     * The list of mappings used to substitute custom parameter tags in a
-     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
+     * The network settings for the campaign.
      * 
* - * repeated .google.ads.googleads.v0.common.CustomParameter url_custom_parameters = 12; + * .google.ads.googleads.v0.resources.Campaign.NetworkSettings network_settings = 14; */ - public Builder setUrlCustomParameters( - int index, com.google.ads.googleads.v0.common.CustomParameter.Builder builderForValue) { - if (urlCustomParametersBuilder_ == null) { - ensureUrlCustomParametersIsMutable(); - urlCustomParameters_.set(index, builderForValue.build()); + public Builder setNetworkSettings( + com.google.ads.googleads.v0.resources.Campaign.NetworkSettings.Builder builderForValue) { + if (networkSettingsBuilder_ == null) { + networkSettings_ = builderForValue.build(); onChanged(); } else { - urlCustomParametersBuilder_.setMessage(index, builderForValue.build()); + networkSettingsBuilder_.setMessage(builderForValue.build()); } + return this; } /** *
-     * The list of mappings used to substitute custom parameter tags in a
-     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
+     * The network settings for the campaign.
      * 
* - * repeated .google.ads.googleads.v0.common.CustomParameter url_custom_parameters = 12; + * .google.ads.googleads.v0.resources.Campaign.NetworkSettings network_settings = 14; */ - public Builder addUrlCustomParameters(com.google.ads.googleads.v0.common.CustomParameter value) { - if (urlCustomParametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeNetworkSettings(com.google.ads.googleads.v0.resources.Campaign.NetworkSettings value) { + if (networkSettingsBuilder_ == null) { + if (networkSettings_ != null) { + networkSettings_ = + com.google.ads.googleads.v0.resources.Campaign.NetworkSettings.newBuilder(networkSettings_).mergeFrom(value).buildPartial(); + } else { + networkSettings_ = value; } - ensureUrlCustomParametersIsMutable(); - urlCustomParameters_.add(value); onChanged(); } else { - urlCustomParametersBuilder_.addMessage(value); + networkSettingsBuilder_.mergeFrom(value); } + return this; } /** *
-     * The list of mappings used to substitute custom parameter tags in a
-     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
+     * The network settings for the campaign.
      * 
* - * repeated .google.ads.googleads.v0.common.CustomParameter url_custom_parameters = 12; + * .google.ads.googleads.v0.resources.Campaign.NetworkSettings network_settings = 14; */ - public Builder addUrlCustomParameters( - int index, com.google.ads.googleads.v0.common.CustomParameter value) { - if (urlCustomParametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUrlCustomParametersIsMutable(); - urlCustomParameters_.add(index, value); + public Builder clearNetworkSettings() { + if (networkSettingsBuilder_ == null) { + networkSettings_ = null; onChanged(); } else { - urlCustomParametersBuilder_.addMessage(index, value); + networkSettings_ = null; + networkSettingsBuilder_ = null; } + return this; } /** *
-     * The list of mappings used to substitute custom parameter tags in a
-     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
+     * The network settings for the campaign.
      * 
* - * repeated .google.ads.googleads.v0.common.CustomParameter url_custom_parameters = 12; + * .google.ads.googleads.v0.resources.Campaign.NetworkSettings network_settings = 14; */ - public Builder addUrlCustomParameters( - com.google.ads.googleads.v0.common.CustomParameter.Builder builderForValue) { - if (urlCustomParametersBuilder_ == null) { - ensureUrlCustomParametersIsMutable(); - urlCustomParameters_.add(builderForValue.build()); - onChanged(); - } else { - urlCustomParametersBuilder_.addMessage(builderForValue.build()); - } - return this; + public com.google.ads.googleads.v0.resources.Campaign.NetworkSettings.Builder getNetworkSettingsBuilder() { + + onChanged(); + return getNetworkSettingsFieldBuilder().getBuilder(); } /** *
-     * The list of mappings used to substitute custom parameter tags in a
-     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
+     * The network settings for the campaign.
      * 
* - * repeated .google.ads.googleads.v0.common.CustomParameter url_custom_parameters = 12; + * .google.ads.googleads.v0.resources.Campaign.NetworkSettings network_settings = 14; */ - public Builder addUrlCustomParameters( - int index, com.google.ads.googleads.v0.common.CustomParameter.Builder builderForValue) { - if (urlCustomParametersBuilder_ == null) { - ensureUrlCustomParametersIsMutable(); - urlCustomParameters_.add(index, builderForValue.build()); - onChanged(); + public com.google.ads.googleads.v0.resources.Campaign.NetworkSettingsOrBuilder getNetworkSettingsOrBuilder() { + if (networkSettingsBuilder_ != null) { + return networkSettingsBuilder_.getMessageOrBuilder(); } else { - urlCustomParametersBuilder_.addMessage(index, builderForValue.build()); + return networkSettings_ == null ? + com.google.ads.googleads.v0.resources.Campaign.NetworkSettings.getDefaultInstance() : networkSettings_; } - return this; } /** *
-     * The list of mappings used to substitute custom parameter tags in a
-     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
+     * The network settings for the campaign.
      * 
* - * repeated .google.ads.googleads.v0.common.CustomParameter url_custom_parameters = 12; + * .google.ads.googleads.v0.resources.Campaign.NetworkSettings network_settings = 14; */ - public Builder addAllUrlCustomParameters( - java.lang.Iterable values) { - if (urlCustomParametersBuilder_ == null) { - ensureUrlCustomParametersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, urlCustomParameters_); - onChanged(); - } else { - urlCustomParametersBuilder_.addAllMessages(values); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.Campaign.NetworkSettings, com.google.ads.googleads.v0.resources.Campaign.NetworkSettings.Builder, com.google.ads.googleads.v0.resources.Campaign.NetworkSettingsOrBuilder> + getNetworkSettingsFieldBuilder() { + if (networkSettingsBuilder_ == null) { + networkSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.Campaign.NetworkSettings, com.google.ads.googleads.v0.resources.Campaign.NetworkSettings.Builder, com.google.ads.googleads.v0.resources.Campaign.NetworkSettingsOrBuilder>( + getNetworkSettings(), + getParentForChildren(), + isClean()); + networkSettings_ = null; } - return this; + return networkSettingsBuilder_; } + + private com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfo hotelSetting_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfo, com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfo.Builder, com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfoOrBuilder> hotelSettingBuilder_; /** *
-     * The list of mappings used to substitute custom parameter tags in a
-     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
+     * The hotel setting for the campaign.
      * 
* - * repeated .google.ads.googleads.v0.common.CustomParameter url_custom_parameters = 12; + * .google.ads.googleads.v0.resources.Campaign.HotelSettingInfo hotel_setting = 32; */ - public Builder clearUrlCustomParameters() { - if (urlCustomParametersBuilder_ == null) { - urlCustomParameters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); + public boolean hasHotelSetting() { + return hotelSettingBuilder_ != null || hotelSetting_ != null; + } + /** + *
+     * The hotel setting for the campaign.
+     * 
+ * + * .google.ads.googleads.v0.resources.Campaign.HotelSettingInfo hotel_setting = 32; + */ + public com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfo getHotelSetting() { + if (hotelSettingBuilder_ == null) { + return hotelSetting_ == null ? com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfo.getDefaultInstance() : hotelSetting_; } else { - urlCustomParametersBuilder_.clear(); + return hotelSettingBuilder_.getMessage(); } - return this; } /** *
-     * The list of mappings used to substitute custom parameter tags in a
-     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
+     * The hotel setting for the campaign.
      * 
* - * repeated .google.ads.googleads.v0.common.CustomParameter url_custom_parameters = 12; + * .google.ads.googleads.v0.resources.Campaign.HotelSettingInfo hotel_setting = 32; */ - public Builder removeUrlCustomParameters(int index) { - if (urlCustomParametersBuilder_ == null) { - ensureUrlCustomParametersIsMutable(); - urlCustomParameters_.remove(index); + public Builder setHotelSetting(com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfo value) { + if (hotelSettingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hotelSetting_ = value; onChanged(); } else { - urlCustomParametersBuilder_.remove(index); + hotelSettingBuilder_.setMessage(value); } + return this; } /** *
-     * The list of mappings used to substitute custom parameter tags in a
-     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
+     * The hotel setting for the campaign.
      * 
* - * repeated .google.ads.googleads.v0.common.CustomParameter url_custom_parameters = 12; + * .google.ads.googleads.v0.resources.Campaign.HotelSettingInfo hotel_setting = 32; */ - public com.google.ads.googleads.v0.common.CustomParameter.Builder getUrlCustomParametersBuilder( - int index) { - return getUrlCustomParametersFieldBuilder().getBuilder(index); + public Builder setHotelSetting( + com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfo.Builder builderForValue) { + if (hotelSettingBuilder_ == null) { + hotelSetting_ = builderForValue.build(); + onChanged(); + } else { + hotelSettingBuilder_.setMessage(builderForValue.build()); + } + + return this; } /** *
-     * The list of mappings used to substitute custom parameter tags in a
-     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
+     * The hotel setting for the campaign.
      * 
* - * repeated .google.ads.googleads.v0.common.CustomParameter url_custom_parameters = 12; + * .google.ads.googleads.v0.resources.Campaign.HotelSettingInfo hotel_setting = 32; */ - public com.google.ads.googleads.v0.common.CustomParameterOrBuilder getUrlCustomParametersOrBuilder( - int index) { - if (urlCustomParametersBuilder_ == null) { - return urlCustomParameters_.get(index); } else { - return urlCustomParametersBuilder_.getMessageOrBuilder(index); + public Builder mergeHotelSetting(com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfo value) { + if (hotelSettingBuilder_ == null) { + if (hotelSetting_ != null) { + hotelSetting_ = + com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfo.newBuilder(hotelSetting_).mergeFrom(value).buildPartial(); + } else { + hotelSetting_ = value; + } + onChanged(); + } else { + hotelSettingBuilder_.mergeFrom(value); } + + return this; } /** *
-     * The list of mappings used to substitute custom parameter tags in a
-     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
+     * The hotel setting for the campaign.
      * 
* - * repeated .google.ads.googleads.v0.common.CustomParameter url_custom_parameters = 12; + * .google.ads.googleads.v0.resources.Campaign.HotelSettingInfo hotel_setting = 32; */ - public java.util.List - getUrlCustomParametersOrBuilderList() { - if (urlCustomParametersBuilder_ != null) { - return urlCustomParametersBuilder_.getMessageOrBuilderList(); + public Builder clearHotelSetting() { + if (hotelSettingBuilder_ == null) { + hotelSetting_ = null; + onChanged(); } else { - return java.util.Collections.unmodifiableList(urlCustomParameters_); + hotelSetting_ = null; + hotelSettingBuilder_ = null; } + + return this; } /** *
-     * The list of mappings used to substitute custom parameter tags in a
-     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
+     * The hotel setting for the campaign.
      * 
* - * repeated .google.ads.googleads.v0.common.CustomParameter url_custom_parameters = 12; + * .google.ads.googleads.v0.resources.Campaign.HotelSettingInfo hotel_setting = 32; */ - public com.google.ads.googleads.v0.common.CustomParameter.Builder addUrlCustomParametersBuilder() { - return getUrlCustomParametersFieldBuilder().addBuilder( - com.google.ads.googleads.v0.common.CustomParameter.getDefaultInstance()); + public com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfo.Builder getHotelSettingBuilder() { + + onChanged(); + return getHotelSettingFieldBuilder().getBuilder(); } /** *
-     * The list of mappings used to substitute custom parameter tags in a
-     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
+     * The hotel setting for the campaign.
      * 
* - * repeated .google.ads.googleads.v0.common.CustomParameter url_custom_parameters = 12; + * .google.ads.googleads.v0.resources.Campaign.HotelSettingInfo hotel_setting = 32; */ - public com.google.ads.googleads.v0.common.CustomParameter.Builder addUrlCustomParametersBuilder( - int index) { - return getUrlCustomParametersFieldBuilder().addBuilder( - index, com.google.ads.googleads.v0.common.CustomParameter.getDefaultInstance()); + public com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfoOrBuilder getHotelSettingOrBuilder() { + if (hotelSettingBuilder_ != null) { + return hotelSettingBuilder_.getMessageOrBuilder(); + } else { + return hotelSetting_ == null ? + com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfo.getDefaultInstance() : hotelSetting_; + } } /** *
-     * The list of mappings used to substitute custom parameter tags in a
-     * `tracking_url_template`, `final_urls`, or `mobile_final_urls`.
+     * The hotel setting for the campaign.
      * 
* - * repeated .google.ads.googleads.v0.common.CustomParameter url_custom_parameters = 12; + * .google.ads.googleads.v0.resources.Campaign.HotelSettingInfo hotel_setting = 32; */ - public java.util.List - getUrlCustomParametersBuilderList() { - return getUrlCustomParametersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.googleads.v0.common.CustomParameter, com.google.ads.googleads.v0.common.CustomParameter.Builder, com.google.ads.googleads.v0.common.CustomParameterOrBuilder> - getUrlCustomParametersFieldBuilder() { - if (urlCustomParametersBuilder_ == null) { - urlCustomParametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.googleads.v0.common.CustomParameter, com.google.ads.googleads.v0.common.CustomParameter.Builder, com.google.ads.googleads.v0.common.CustomParameterOrBuilder>( - urlCustomParameters_, - ((bitField0_ & 0x00000200) == 0x00000200), + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfo, com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfo.Builder, com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfoOrBuilder> + getHotelSettingFieldBuilder() { + if (hotelSettingBuilder_ == null) { + hotelSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfo, com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfo.Builder, com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfoOrBuilder>( + getHotelSetting(), getParentForChildren(), isClean()); - urlCustomParameters_ = null; + hotelSetting_ = null; } - return urlCustomParametersBuilder_; + return hotelSettingBuilder_; } - private com.google.ads.googleads.v0.common.RealTimeBiddingSetting realTimeBiddingSetting_ = null; + private com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting dynamicSearchAdsSetting_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.common.RealTimeBiddingSetting, com.google.ads.googleads.v0.common.RealTimeBiddingSetting.Builder, com.google.ads.googleads.v0.common.RealTimeBiddingSettingOrBuilder> realTimeBiddingSettingBuilder_; + com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting, com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting.Builder, com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSettingOrBuilder> dynamicSearchAdsSettingBuilder_; /** *
-     * Settings for Real-Time Bidding, a feature only available for campaigns
-     * targeting the Ad Exchange network.
+     * The setting for controlling Dynamic Search Ads (DSA).
      * 
* - * .google.ads.googleads.v0.common.RealTimeBiddingSetting real_time_bidding_setting = 39; + * .google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33; */ - public boolean hasRealTimeBiddingSetting() { - return realTimeBiddingSettingBuilder_ != null || realTimeBiddingSetting_ != null; + public boolean hasDynamicSearchAdsSetting() { + return dynamicSearchAdsSettingBuilder_ != null || dynamicSearchAdsSetting_ != null; } /** *
-     * Settings for Real-Time Bidding, a feature only available for campaigns
-     * targeting the Ad Exchange network.
+     * The setting for controlling Dynamic Search Ads (DSA).
      * 
* - * .google.ads.googleads.v0.common.RealTimeBiddingSetting real_time_bidding_setting = 39; + * .google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33; */ - public com.google.ads.googleads.v0.common.RealTimeBiddingSetting getRealTimeBiddingSetting() { - if (realTimeBiddingSettingBuilder_ == null) { - return realTimeBiddingSetting_ == null ? com.google.ads.googleads.v0.common.RealTimeBiddingSetting.getDefaultInstance() : realTimeBiddingSetting_; + public com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting getDynamicSearchAdsSetting() { + if (dynamicSearchAdsSettingBuilder_ == null) { + return dynamicSearchAdsSetting_ == null ? com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting.getDefaultInstance() : dynamicSearchAdsSetting_; } else { - return realTimeBiddingSettingBuilder_.getMessage(); + return dynamicSearchAdsSettingBuilder_.getMessage(); } } /** *
-     * Settings for Real-Time Bidding, a feature only available for campaigns
-     * targeting the Ad Exchange network.
+     * The setting for controlling Dynamic Search Ads (DSA).
      * 
* - * .google.ads.googleads.v0.common.RealTimeBiddingSetting real_time_bidding_setting = 39; + * .google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33; */ - public Builder setRealTimeBiddingSetting(com.google.ads.googleads.v0.common.RealTimeBiddingSetting value) { - if (realTimeBiddingSettingBuilder_ == null) { + public Builder setDynamicSearchAdsSetting(com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting value) { + if (dynamicSearchAdsSettingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - realTimeBiddingSetting_ = value; + dynamicSearchAdsSetting_ = value; onChanged(); } else { - realTimeBiddingSettingBuilder_.setMessage(value); + dynamicSearchAdsSettingBuilder_.setMessage(value); } return this; } /** *
-     * Settings for Real-Time Bidding, a feature only available for campaigns
-     * targeting the Ad Exchange network.
+     * The setting for controlling Dynamic Search Ads (DSA).
      * 
* - * .google.ads.googleads.v0.common.RealTimeBiddingSetting real_time_bidding_setting = 39; + * .google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33; */ - public Builder setRealTimeBiddingSetting( - com.google.ads.googleads.v0.common.RealTimeBiddingSetting.Builder builderForValue) { - if (realTimeBiddingSettingBuilder_ == null) { - realTimeBiddingSetting_ = builderForValue.build(); + public Builder setDynamicSearchAdsSetting( + com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting.Builder builderForValue) { + if (dynamicSearchAdsSettingBuilder_ == null) { + dynamicSearchAdsSetting_ = builderForValue.build(); onChanged(); } else { - realTimeBiddingSettingBuilder_.setMessage(builderForValue.build()); + dynamicSearchAdsSettingBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * Settings for Real-Time Bidding, a feature only available for campaigns
-     * targeting the Ad Exchange network.
+     * The setting for controlling Dynamic Search Ads (DSA).
      * 
* - * .google.ads.googleads.v0.common.RealTimeBiddingSetting real_time_bidding_setting = 39; + * .google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33; */ - public Builder mergeRealTimeBiddingSetting(com.google.ads.googleads.v0.common.RealTimeBiddingSetting value) { - if (realTimeBiddingSettingBuilder_ == null) { - if (realTimeBiddingSetting_ != null) { - realTimeBiddingSetting_ = - com.google.ads.googleads.v0.common.RealTimeBiddingSetting.newBuilder(realTimeBiddingSetting_).mergeFrom(value).buildPartial(); + public Builder mergeDynamicSearchAdsSetting(com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting value) { + if (dynamicSearchAdsSettingBuilder_ == null) { + if (dynamicSearchAdsSetting_ != null) { + dynamicSearchAdsSetting_ = + com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting.newBuilder(dynamicSearchAdsSetting_).mergeFrom(value).buildPartial(); } else { - realTimeBiddingSetting_ = value; + dynamicSearchAdsSetting_ = value; } onChanged(); } else { - realTimeBiddingSettingBuilder_.mergeFrom(value); + dynamicSearchAdsSettingBuilder_.mergeFrom(value); } return this; } /** *
-     * Settings for Real-Time Bidding, a feature only available for campaigns
-     * targeting the Ad Exchange network.
+     * The setting for controlling Dynamic Search Ads (DSA).
      * 
* - * .google.ads.googleads.v0.common.RealTimeBiddingSetting real_time_bidding_setting = 39; + * .google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33; */ - public Builder clearRealTimeBiddingSetting() { - if (realTimeBiddingSettingBuilder_ == null) { - realTimeBiddingSetting_ = null; + public Builder clearDynamicSearchAdsSetting() { + if (dynamicSearchAdsSettingBuilder_ == null) { + dynamicSearchAdsSetting_ = null; onChanged(); } else { - realTimeBiddingSetting_ = null; - realTimeBiddingSettingBuilder_ = null; + dynamicSearchAdsSetting_ = null; + dynamicSearchAdsSettingBuilder_ = null; } return this; } /** *
-     * Settings for Real-Time Bidding, a feature only available for campaigns
-     * targeting the Ad Exchange network.
+     * The setting for controlling Dynamic Search Ads (DSA).
      * 
* - * .google.ads.googleads.v0.common.RealTimeBiddingSetting real_time_bidding_setting = 39; + * .google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33; */ - public com.google.ads.googleads.v0.common.RealTimeBiddingSetting.Builder getRealTimeBiddingSettingBuilder() { + public com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting.Builder getDynamicSearchAdsSettingBuilder() { onChanged(); - return getRealTimeBiddingSettingFieldBuilder().getBuilder(); + return getDynamicSearchAdsSettingFieldBuilder().getBuilder(); } /** *
-     * Settings for Real-Time Bidding, a feature only available for campaigns
-     * targeting the Ad Exchange network.
+     * The setting for controlling Dynamic Search Ads (DSA).
      * 
* - * .google.ads.googleads.v0.common.RealTimeBiddingSetting real_time_bidding_setting = 39; + * .google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33; */ - public com.google.ads.googleads.v0.common.RealTimeBiddingSettingOrBuilder getRealTimeBiddingSettingOrBuilder() { - if (realTimeBiddingSettingBuilder_ != null) { - return realTimeBiddingSettingBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSettingOrBuilder getDynamicSearchAdsSettingOrBuilder() { + if (dynamicSearchAdsSettingBuilder_ != null) { + return dynamicSearchAdsSettingBuilder_.getMessageOrBuilder(); } else { - return realTimeBiddingSetting_ == null ? - com.google.ads.googleads.v0.common.RealTimeBiddingSetting.getDefaultInstance() : realTimeBiddingSetting_; + return dynamicSearchAdsSetting_ == null ? + com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting.getDefaultInstance() : dynamicSearchAdsSetting_; } } /** *
-     * Settings for Real-Time Bidding, a feature only available for campaigns
-     * targeting the Ad Exchange network.
+     * The setting for controlling Dynamic Search Ads (DSA).
      * 
* - * .google.ads.googleads.v0.common.RealTimeBiddingSetting real_time_bidding_setting = 39; + * .google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.common.RealTimeBiddingSetting, com.google.ads.googleads.v0.common.RealTimeBiddingSetting.Builder, com.google.ads.googleads.v0.common.RealTimeBiddingSettingOrBuilder> - getRealTimeBiddingSettingFieldBuilder() { - if (realTimeBiddingSettingBuilder_ == null) { - realTimeBiddingSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.common.RealTimeBiddingSetting, com.google.ads.googleads.v0.common.RealTimeBiddingSetting.Builder, com.google.ads.googleads.v0.common.RealTimeBiddingSettingOrBuilder>( - getRealTimeBiddingSetting(), + com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting, com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting.Builder, com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSettingOrBuilder> + getDynamicSearchAdsSettingFieldBuilder() { + if (dynamicSearchAdsSettingBuilder_ == null) { + dynamicSearchAdsSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting, com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting.Builder, com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSettingOrBuilder>( + getDynamicSearchAdsSetting(), getParentForChildren(), isClean()); - realTimeBiddingSetting_ = null; + dynamicSearchAdsSetting_ = null; } - return realTimeBiddingSettingBuilder_; + return dynamicSearchAdsSettingBuilder_; } - private com.google.ads.googleads.v0.resources.Campaign.NetworkSettings networkSettings_ = null; + private com.google.ads.googleads.v0.resources.Campaign.ShoppingSetting shoppingSetting_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.Campaign.NetworkSettings, com.google.ads.googleads.v0.resources.Campaign.NetworkSettings.Builder, com.google.ads.googleads.v0.resources.Campaign.NetworkSettingsOrBuilder> networkSettingsBuilder_; + com.google.ads.googleads.v0.resources.Campaign.ShoppingSetting, com.google.ads.googleads.v0.resources.Campaign.ShoppingSetting.Builder, com.google.ads.googleads.v0.resources.Campaign.ShoppingSettingOrBuilder> shoppingSettingBuilder_; /** *
-     * The network settings for the campaign.
+     * The setting for controlling Shopping campaigns.
      * 
* - * .google.ads.googleads.v0.resources.Campaign.NetworkSettings network_settings = 14; + * .google.ads.googleads.v0.resources.Campaign.ShoppingSetting shopping_setting = 36; */ - public boolean hasNetworkSettings() { - return networkSettingsBuilder_ != null || networkSettings_ != null; + public boolean hasShoppingSetting() { + return shoppingSettingBuilder_ != null || shoppingSetting_ != null; } /** *
-     * The network settings for the campaign.
+     * The setting for controlling Shopping campaigns.
      * 
* - * .google.ads.googleads.v0.resources.Campaign.NetworkSettings network_settings = 14; + * .google.ads.googleads.v0.resources.Campaign.ShoppingSetting shopping_setting = 36; */ - public com.google.ads.googleads.v0.resources.Campaign.NetworkSettings getNetworkSettings() { - if (networkSettingsBuilder_ == null) { - return networkSettings_ == null ? com.google.ads.googleads.v0.resources.Campaign.NetworkSettings.getDefaultInstance() : networkSettings_; + public com.google.ads.googleads.v0.resources.Campaign.ShoppingSetting getShoppingSetting() { + if (shoppingSettingBuilder_ == null) { + return shoppingSetting_ == null ? com.google.ads.googleads.v0.resources.Campaign.ShoppingSetting.getDefaultInstance() : shoppingSetting_; } else { - return networkSettingsBuilder_.getMessage(); + return shoppingSettingBuilder_.getMessage(); } } /** *
-     * The network settings for the campaign.
+     * The setting for controlling Shopping campaigns.
      * 
* - * .google.ads.googleads.v0.resources.Campaign.NetworkSettings network_settings = 14; + * .google.ads.googleads.v0.resources.Campaign.ShoppingSetting shopping_setting = 36; */ - public Builder setNetworkSettings(com.google.ads.googleads.v0.resources.Campaign.NetworkSettings value) { - if (networkSettingsBuilder_ == null) { + public Builder setShoppingSetting(com.google.ads.googleads.v0.resources.Campaign.ShoppingSetting value) { + if (shoppingSettingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - networkSettings_ = value; + shoppingSetting_ = value; onChanged(); } else { - networkSettingsBuilder_.setMessage(value); + shoppingSettingBuilder_.setMessage(value); } return this; } /** *
-     * The network settings for the campaign.
+     * The setting for controlling Shopping campaigns.
      * 
* - * .google.ads.googleads.v0.resources.Campaign.NetworkSettings network_settings = 14; + * .google.ads.googleads.v0.resources.Campaign.ShoppingSetting shopping_setting = 36; */ - public Builder setNetworkSettings( - com.google.ads.googleads.v0.resources.Campaign.NetworkSettings.Builder builderForValue) { - if (networkSettingsBuilder_ == null) { - networkSettings_ = builderForValue.build(); + public Builder setShoppingSetting( + com.google.ads.googleads.v0.resources.Campaign.ShoppingSetting.Builder builderForValue) { + if (shoppingSettingBuilder_ == null) { + shoppingSetting_ = builderForValue.build(); onChanged(); } else { - networkSettingsBuilder_.setMessage(builderForValue.build()); + shoppingSettingBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The network settings for the campaign.
+     * The setting for controlling Shopping campaigns.
      * 
* - * .google.ads.googleads.v0.resources.Campaign.NetworkSettings network_settings = 14; + * .google.ads.googleads.v0.resources.Campaign.ShoppingSetting shopping_setting = 36; */ - public Builder mergeNetworkSettings(com.google.ads.googleads.v0.resources.Campaign.NetworkSettings value) { - if (networkSettingsBuilder_ == null) { - if (networkSettings_ != null) { - networkSettings_ = - com.google.ads.googleads.v0.resources.Campaign.NetworkSettings.newBuilder(networkSettings_).mergeFrom(value).buildPartial(); + public Builder mergeShoppingSetting(com.google.ads.googleads.v0.resources.Campaign.ShoppingSetting value) { + if (shoppingSettingBuilder_ == null) { + if (shoppingSetting_ != null) { + shoppingSetting_ = + com.google.ads.googleads.v0.resources.Campaign.ShoppingSetting.newBuilder(shoppingSetting_).mergeFrom(value).buildPartial(); } else { - networkSettings_ = value; + shoppingSetting_ = value; } onChanged(); } else { - networkSettingsBuilder_.mergeFrom(value); + shoppingSettingBuilder_.mergeFrom(value); } return this; } /** *
-     * The network settings for the campaign.
+     * The setting for controlling Shopping campaigns.
      * 
* - * .google.ads.googleads.v0.resources.Campaign.NetworkSettings network_settings = 14; + * .google.ads.googleads.v0.resources.Campaign.ShoppingSetting shopping_setting = 36; */ - public Builder clearNetworkSettings() { - if (networkSettingsBuilder_ == null) { - networkSettings_ = null; + public Builder clearShoppingSetting() { + if (shoppingSettingBuilder_ == null) { + shoppingSetting_ = null; onChanged(); } else { - networkSettings_ = null; - networkSettingsBuilder_ = null; + shoppingSetting_ = null; + shoppingSettingBuilder_ = null; } return this; } /** *
-     * The network settings for the campaign.
+     * The setting for controlling Shopping campaigns.
      * 
* - * .google.ads.googleads.v0.resources.Campaign.NetworkSettings network_settings = 14; + * .google.ads.googleads.v0.resources.Campaign.ShoppingSetting shopping_setting = 36; */ - public com.google.ads.googleads.v0.resources.Campaign.NetworkSettings.Builder getNetworkSettingsBuilder() { + public com.google.ads.googleads.v0.resources.Campaign.ShoppingSetting.Builder getShoppingSettingBuilder() { onChanged(); - return getNetworkSettingsFieldBuilder().getBuilder(); + return getShoppingSettingFieldBuilder().getBuilder(); } /** *
-     * The network settings for the campaign.
+     * The setting for controlling Shopping campaigns.
      * 
* - * .google.ads.googleads.v0.resources.Campaign.NetworkSettings network_settings = 14; + * .google.ads.googleads.v0.resources.Campaign.ShoppingSetting shopping_setting = 36; */ - public com.google.ads.googleads.v0.resources.Campaign.NetworkSettingsOrBuilder getNetworkSettingsOrBuilder() { - if (networkSettingsBuilder_ != null) { - return networkSettingsBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.Campaign.ShoppingSettingOrBuilder getShoppingSettingOrBuilder() { + if (shoppingSettingBuilder_ != null) { + return shoppingSettingBuilder_.getMessageOrBuilder(); } else { - return networkSettings_ == null ? - com.google.ads.googleads.v0.resources.Campaign.NetworkSettings.getDefaultInstance() : networkSettings_; + return shoppingSetting_ == null ? + com.google.ads.googleads.v0.resources.Campaign.ShoppingSetting.getDefaultInstance() : shoppingSetting_; } } /** *
-     * The network settings for the campaign.
+     * The setting for controlling Shopping campaigns.
      * 
* - * .google.ads.googleads.v0.resources.Campaign.NetworkSettings network_settings = 14; + * .google.ads.googleads.v0.resources.Campaign.ShoppingSetting shopping_setting = 36; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.Campaign.NetworkSettings, com.google.ads.googleads.v0.resources.Campaign.NetworkSettings.Builder, com.google.ads.googleads.v0.resources.Campaign.NetworkSettingsOrBuilder> - getNetworkSettingsFieldBuilder() { - if (networkSettingsBuilder_ == null) { - networkSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.Campaign.NetworkSettings, com.google.ads.googleads.v0.resources.Campaign.NetworkSettings.Builder, com.google.ads.googleads.v0.resources.Campaign.NetworkSettingsOrBuilder>( - getNetworkSettings(), + com.google.ads.googleads.v0.resources.Campaign.ShoppingSetting, com.google.ads.googleads.v0.resources.Campaign.ShoppingSetting.Builder, com.google.ads.googleads.v0.resources.Campaign.ShoppingSettingOrBuilder> + getShoppingSettingFieldBuilder() { + if (shoppingSettingBuilder_ == null) { + shoppingSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.Campaign.ShoppingSetting, com.google.ads.googleads.v0.resources.Campaign.ShoppingSetting.Builder, com.google.ads.googleads.v0.resources.Campaign.ShoppingSettingOrBuilder>( + getShoppingSetting(), getParentForChildren(), isClean()); - networkSettings_ = null; + shoppingSetting_ = null; } - return networkSettingsBuilder_; + return shoppingSettingBuilder_; } - private com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfo hotelSetting_ = null; + private com.google.ads.googleads.v0.common.TargetingSetting targetingSetting_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfo, com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfo.Builder, com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfoOrBuilder> hotelSettingBuilder_; + com.google.ads.googleads.v0.common.TargetingSetting, com.google.ads.googleads.v0.common.TargetingSetting.Builder, com.google.ads.googleads.v0.common.TargetingSettingOrBuilder> targetingSettingBuilder_; /** *
-     * The hotel setting for the campaign.
+     * Setting for targeting related features.
      * 
* - * .google.ads.googleads.v0.resources.Campaign.HotelSettingInfo hotel_setting = 32; + * .google.ads.googleads.v0.common.TargetingSetting targeting_setting = 43; */ - public boolean hasHotelSetting() { - return hotelSettingBuilder_ != null || hotelSetting_ != null; + public boolean hasTargetingSetting() { + return targetingSettingBuilder_ != null || targetingSetting_ != null; } /** *
-     * The hotel setting for the campaign.
+     * Setting for targeting related features.
      * 
* - * .google.ads.googleads.v0.resources.Campaign.HotelSettingInfo hotel_setting = 32; + * .google.ads.googleads.v0.common.TargetingSetting targeting_setting = 43; */ - public com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfo getHotelSetting() { - if (hotelSettingBuilder_ == null) { - return hotelSetting_ == null ? com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfo.getDefaultInstance() : hotelSetting_; + public com.google.ads.googleads.v0.common.TargetingSetting getTargetingSetting() { + if (targetingSettingBuilder_ == null) { + return targetingSetting_ == null ? com.google.ads.googleads.v0.common.TargetingSetting.getDefaultInstance() : targetingSetting_; } else { - return hotelSettingBuilder_.getMessage(); + return targetingSettingBuilder_.getMessage(); } } /** *
-     * The hotel setting for the campaign.
+     * Setting for targeting related features.
      * 
* - * .google.ads.googleads.v0.resources.Campaign.HotelSettingInfo hotel_setting = 32; + * .google.ads.googleads.v0.common.TargetingSetting targeting_setting = 43; */ - public Builder setHotelSetting(com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfo value) { - if (hotelSettingBuilder_ == null) { + public Builder setTargetingSetting(com.google.ads.googleads.v0.common.TargetingSetting value) { + if (targetingSettingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - hotelSetting_ = value; + targetingSetting_ = value; onChanged(); } else { - hotelSettingBuilder_.setMessage(value); + targetingSettingBuilder_.setMessage(value); } return this; } /** *
-     * The hotel setting for the campaign.
+     * Setting for targeting related features.
      * 
* - * .google.ads.googleads.v0.resources.Campaign.HotelSettingInfo hotel_setting = 32; + * .google.ads.googleads.v0.common.TargetingSetting targeting_setting = 43; */ - public Builder setHotelSetting( - com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfo.Builder builderForValue) { - if (hotelSettingBuilder_ == null) { - hotelSetting_ = builderForValue.build(); + public Builder setTargetingSetting( + com.google.ads.googleads.v0.common.TargetingSetting.Builder builderForValue) { + if (targetingSettingBuilder_ == null) { + targetingSetting_ = builderForValue.build(); onChanged(); } else { - hotelSettingBuilder_.setMessage(builderForValue.build()); + targetingSettingBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The hotel setting for the campaign.
+     * Setting for targeting related features.
      * 
* - * .google.ads.googleads.v0.resources.Campaign.HotelSettingInfo hotel_setting = 32; + * .google.ads.googleads.v0.common.TargetingSetting targeting_setting = 43; */ - public Builder mergeHotelSetting(com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfo value) { - if (hotelSettingBuilder_ == null) { - if (hotelSetting_ != null) { - hotelSetting_ = - com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfo.newBuilder(hotelSetting_).mergeFrom(value).buildPartial(); + public Builder mergeTargetingSetting(com.google.ads.googleads.v0.common.TargetingSetting value) { + if (targetingSettingBuilder_ == null) { + if (targetingSetting_ != null) { + targetingSetting_ = + com.google.ads.googleads.v0.common.TargetingSetting.newBuilder(targetingSetting_).mergeFrom(value).buildPartial(); } else { - hotelSetting_ = value; + targetingSetting_ = value; } onChanged(); } else { - hotelSettingBuilder_.mergeFrom(value); + targetingSettingBuilder_.mergeFrom(value); } return this; } /** *
-     * The hotel setting for the campaign.
+     * Setting for targeting related features.
      * 
* - * .google.ads.googleads.v0.resources.Campaign.HotelSettingInfo hotel_setting = 32; + * .google.ads.googleads.v0.common.TargetingSetting targeting_setting = 43; */ - public Builder clearHotelSetting() { - if (hotelSettingBuilder_ == null) { - hotelSetting_ = null; + public Builder clearTargetingSetting() { + if (targetingSettingBuilder_ == null) { + targetingSetting_ = null; onChanged(); } else { - hotelSetting_ = null; - hotelSettingBuilder_ = null; + targetingSetting_ = null; + targetingSettingBuilder_ = null; } return this; } /** *
-     * The hotel setting for the campaign.
+     * Setting for targeting related features.
      * 
* - * .google.ads.googleads.v0.resources.Campaign.HotelSettingInfo hotel_setting = 32; + * .google.ads.googleads.v0.common.TargetingSetting targeting_setting = 43; */ - public com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfo.Builder getHotelSettingBuilder() { + public com.google.ads.googleads.v0.common.TargetingSetting.Builder getTargetingSettingBuilder() { onChanged(); - return getHotelSettingFieldBuilder().getBuilder(); + return getTargetingSettingFieldBuilder().getBuilder(); } /** *
-     * The hotel setting for the campaign.
+     * Setting for targeting related features.
      * 
* - * .google.ads.googleads.v0.resources.Campaign.HotelSettingInfo hotel_setting = 32; + * .google.ads.googleads.v0.common.TargetingSetting targeting_setting = 43; */ - public com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfoOrBuilder getHotelSettingOrBuilder() { - if (hotelSettingBuilder_ != null) { - return hotelSettingBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.common.TargetingSettingOrBuilder getTargetingSettingOrBuilder() { + if (targetingSettingBuilder_ != null) { + return targetingSettingBuilder_.getMessageOrBuilder(); } else { - return hotelSetting_ == null ? - com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfo.getDefaultInstance() : hotelSetting_; + return targetingSetting_ == null ? + com.google.ads.googleads.v0.common.TargetingSetting.getDefaultInstance() : targetingSetting_; } } /** *
-     * The hotel setting for the campaign.
+     * Setting for targeting related features.
      * 
* - * .google.ads.googleads.v0.resources.Campaign.HotelSettingInfo hotel_setting = 32; + * .google.ads.googleads.v0.common.TargetingSetting targeting_setting = 43; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfo, com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfo.Builder, com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfoOrBuilder> - getHotelSettingFieldBuilder() { - if (hotelSettingBuilder_ == null) { - hotelSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfo, com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfo.Builder, com.google.ads.googleads.v0.resources.Campaign.HotelSettingInfoOrBuilder>( - getHotelSetting(), + com.google.ads.googleads.v0.common.TargetingSetting, com.google.ads.googleads.v0.common.TargetingSetting.Builder, com.google.ads.googleads.v0.common.TargetingSettingOrBuilder> + getTargetingSettingFieldBuilder() { + if (targetingSettingBuilder_ == null) { + targetingSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.TargetingSetting, com.google.ads.googleads.v0.common.TargetingSetting.Builder, com.google.ads.googleads.v0.common.TargetingSettingOrBuilder>( + getTargetingSetting(), getParentForChildren(), isClean()); - hotelSetting_ = null; + targetingSetting_ = null; } - return hotelSettingBuilder_; + return targetingSettingBuilder_; } - private com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting dynamicSearchAdsSetting_ = null; + private com.google.protobuf.StringValue campaignBudget_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting, com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting.Builder, com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSettingOrBuilder> dynamicSearchAdsSettingBuilder_; + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> campaignBudgetBuilder_; /** *
-     * The setting for controlling Dynamic Search Ads (DSA).
+     * The budget of the campaign.
      * 
* - * .google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33; + * .google.protobuf.StringValue campaign_budget = 6; */ - public boolean hasDynamicSearchAdsSetting() { - return dynamicSearchAdsSettingBuilder_ != null || dynamicSearchAdsSetting_ != null; + public boolean hasCampaignBudget() { + return campaignBudgetBuilder_ != null || campaignBudget_ != null; } /** *
-     * The setting for controlling Dynamic Search Ads (DSA).
+     * The budget of the campaign.
      * 
* - * .google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33; + * .google.protobuf.StringValue campaign_budget = 6; */ - public com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting getDynamicSearchAdsSetting() { - if (dynamicSearchAdsSettingBuilder_ == null) { - return dynamicSearchAdsSetting_ == null ? com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting.getDefaultInstance() : dynamicSearchAdsSetting_; + public com.google.protobuf.StringValue getCampaignBudget() { + if (campaignBudgetBuilder_ == null) { + return campaignBudget_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : campaignBudget_; } else { - return dynamicSearchAdsSettingBuilder_.getMessage(); + return campaignBudgetBuilder_.getMessage(); } } /** *
-     * The setting for controlling Dynamic Search Ads (DSA).
+     * The budget of the campaign.
      * 
* - * .google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33; + * .google.protobuf.StringValue campaign_budget = 6; */ - public Builder setDynamicSearchAdsSetting(com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting value) { - if (dynamicSearchAdsSettingBuilder_ == null) { + public Builder setCampaignBudget(com.google.protobuf.StringValue value) { + if (campaignBudgetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - dynamicSearchAdsSetting_ = value; + campaignBudget_ = value; onChanged(); } else { - dynamicSearchAdsSettingBuilder_.setMessage(value); + campaignBudgetBuilder_.setMessage(value); } return this; } /** *
-     * The setting for controlling Dynamic Search Ads (DSA).
+     * The budget of the campaign.
      * 
* - * .google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33; + * .google.protobuf.StringValue campaign_budget = 6; */ - public Builder setDynamicSearchAdsSetting( - com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting.Builder builderForValue) { - if (dynamicSearchAdsSettingBuilder_ == null) { - dynamicSearchAdsSetting_ = builderForValue.build(); + public Builder setCampaignBudget( + com.google.protobuf.StringValue.Builder builderForValue) { + if (campaignBudgetBuilder_ == null) { + campaignBudget_ = builderForValue.build(); onChanged(); } else { - dynamicSearchAdsSettingBuilder_.setMessage(builderForValue.build()); + campaignBudgetBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The setting for controlling Dynamic Search Ads (DSA).
+     * The budget of the campaign.
      * 
* - * .google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33; + * .google.protobuf.StringValue campaign_budget = 6; */ - public Builder mergeDynamicSearchAdsSetting(com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting value) { - if (dynamicSearchAdsSettingBuilder_ == null) { - if (dynamicSearchAdsSetting_ != null) { - dynamicSearchAdsSetting_ = - com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting.newBuilder(dynamicSearchAdsSetting_).mergeFrom(value).buildPartial(); + public Builder mergeCampaignBudget(com.google.protobuf.StringValue value) { + if (campaignBudgetBuilder_ == null) { + if (campaignBudget_ != null) { + campaignBudget_ = + com.google.protobuf.StringValue.newBuilder(campaignBudget_).mergeFrom(value).buildPartial(); } else { - dynamicSearchAdsSetting_ = value; + campaignBudget_ = value; } onChanged(); } else { - dynamicSearchAdsSettingBuilder_.mergeFrom(value); + campaignBudgetBuilder_.mergeFrom(value); } return this; } /** *
-     * The setting for controlling Dynamic Search Ads (DSA).
+     * The budget of the campaign.
+     * 
+ * + * .google.protobuf.StringValue campaign_budget = 6; + */ + public Builder clearCampaignBudget() { + if (campaignBudgetBuilder_ == null) { + campaignBudget_ = null; + onChanged(); + } else { + campaignBudget_ = null; + campaignBudgetBuilder_ = null; + } + + return this; + } + /** + *
+     * The budget of the campaign.
+     * 
+ * + * .google.protobuf.StringValue campaign_budget = 6; + */ + public com.google.protobuf.StringValue.Builder getCampaignBudgetBuilder() { + + onChanged(); + return getCampaignBudgetFieldBuilder().getBuilder(); + } + /** + *
+     * The budget of the campaign.
+     * 
+ * + * .google.protobuf.StringValue campaign_budget = 6; + */ + public com.google.protobuf.StringValueOrBuilder getCampaignBudgetOrBuilder() { + if (campaignBudgetBuilder_ != null) { + return campaignBudgetBuilder_.getMessageOrBuilder(); + } else { + return campaignBudget_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : campaignBudget_; + } + } + /** + *
+     * The budget of the campaign.
+     * 
+ * + * .google.protobuf.StringValue campaign_budget = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getCampaignBudgetFieldBuilder() { + if (campaignBudgetBuilder_ == null) { + campaignBudgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getCampaignBudget(), + getParentForChildren(), + isClean()); + campaignBudget_ = null; + } + return campaignBudgetBuilder_; + } + + private int biddingStrategyType_ = 0; + /** + *
+     * The type of bidding strategy.
+     * A bidding strategy can be created by setting either the bidding scheme to
+     * create a standard bidding strategy or the `bidding_strategy` field to
+     * create a portfolio bidding strategy.
+     * This field is read-only.
+     * 
+ * + * .google.ads.googleads.v0.enums.BiddingStrategyTypeEnum.BiddingStrategyType bidding_strategy_type = 22; + */ + public int getBiddingStrategyTypeValue() { + return biddingStrategyType_; + } + /** + *
+     * The type of bidding strategy.
+     * A bidding strategy can be created by setting either the bidding scheme to
+     * create a standard bidding strategy or the `bidding_strategy` field to
+     * create a portfolio bidding strategy.
+     * This field is read-only.
      * 
* - * .google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33; + * .google.ads.googleads.v0.enums.BiddingStrategyTypeEnum.BiddingStrategyType bidding_strategy_type = 22; */ - public Builder clearDynamicSearchAdsSetting() { - if (dynamicSearchAdsSettingBuilder_ == null) { - dynamicSearchAdsSetting_ = null; - onChanged(); - } else { - dynamicSearchAdsSetting_ = null; - dynamicSearchAdsSettingBuilder_ = null; - } - + public Builder setBiddingStrategyTypeValue(int value) { + biddingStrategyType_ = value; + onChanged(); return this; } /** *
-     * The setting for controlling Dynamic Search Ads (DSA).
+     * The type of bidding strategy.
+     * A bidding strategy can be created by setting either the bidding scheme to
+     * create a standard bidding strategy or the `bidding_strategy` field to
+     * create a portfolio bidding strategy.
+     * This field is read-only.
      * 
* - * .google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33; + * .google.ads.googleads.v0.enums.BiddingStrategyTypeEnum.BiddingStrategyType bidding_strategy_type = 22; */ - public com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting.Builder getDynamicSearchAdsSettingBuilder() { - - onChanged(); - return getDynamicSearchAdsSettingFieldBuilder().getBuilder(); + public com.google.ads.googleads.v0.enums.BiddingStrategyTypeEnum.BiddingStrategyType getBiddingStrategyType() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.BiddingStrategyTypeEnum.BiddingStrategyType result = com.google.ads.googleads.v0.enums.BiddingStrategyTypeEnum.BiddingStrategyType.valueOf(biddingStrategyType_); + return result == null ? com.google.ads.googleads.v0.enums.BiddingStrategyTypeEnum.BiddingStrategyType.UNRECOGNIZED : result; } /** *
-     * The setting for controlling Dynamic Search Ads (DSA).
+     * The type of bidding strategy.
+     * A bidding strategy can be created by setting either the bidding scheme to
+     * create a standard bidding strategy or the `bidding_strategy` field to
+     * create a portfolio bidding strategy.
+     * This field is read-only.
      * 
* - * .google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33; + * .google.ads.googleads.v0.enums.BiddingStrategyTypeEnum.BiddingStrategyType bidding_strategy_type = 22; */ - public com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSettingOrBuilder getDynamicSearchAdsSettingOrBuilder() { - if (dynamicSearchAdsSettingBuilder_ != null) { - return dynamicSearchAdsSettingBuilder_.getMessageOrBuilder(); - } else { - return dynamicSearchAdsSetting_ == null ? - com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting.getDefaultInstance() : dynamicSearchAdsSetting_; + public Builder setBiddingStrategyType(com.google.ads.googleads.v0.enums.BiddingStrategyTypeEnum.BiddingStrategyType value) { + if (value == null) { + throw new NullPointerException(); } + + biddingStrategyType_ = value.getNumber(); + onChanged(); + return this; } /** *
-     * The setting for controlling Dynamic Search Ads (DSA).
+     * The type of bidding strategy.
+     * A bidding strategy can be created by setting either the bidding scheme to
+     * create a standard bidding strategy or the `bidding_strategy` field to
+     * create a portfolio bidding strategy.
+     * This field is read-only.
      * 
* - * .google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting dynamic_search_ads_setting = 33; + * .google.ads.googleads.v0.enums.BiddingStrategyTypeEnum.BiddingStrategyType bidding_strategy_type = 22; */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting, com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting.Builder, com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSettingOrBuilder> - getDynamicSearchAdsSettingFieldBuilder() { - if (dynamicSearchAdsSettingBuilder_ == null) { - dynamicSearchAdsSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting, com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSetting.Builder, com.google.ads.googleads.v0.resources.Campaign.DynamicSearchAdsSettingOrBuilder>( - getDynamicSearchAdsSetting(), - getParentForChildren(), - isClean()); - dynamicSearchAdsSetting_ = null; - } - return dynamicSearchAdsSettingBuilder_; + public Builder clearBiddingStrategyType() { + + biddingStrategyType_ = 0; + onChanged(); + return this; } - private com.google.ads.googleads.v0.resources.Campaign.ShoppingSetting shoppingSetting_ = null; + private com.google.protobuf.StringValue startDate_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.Campaign.ShoppingSetting, com.google.ads.googleads.v0.resources.Campaign.ShoppingSetting.Builder, com.google.ads.googleads.v0.resources.Campaign.ShoppingSettingOrBuilder> shoppingSettingBuilder_; + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> startDateBuilder_; /** *
-     * The setting for controlling Shopping campaigns.
+     * The date when campaign started.
+     * This field must not be used in WHERE clauses.
      * 
* - * .google.ads.googleads.v0.resources.Campaign.ShoppingSetting shopping_setting = 36; + * .google.protobuf.StringValue start_date = 19; */ - public boolean hasShoppingSetting() { - return shoppingSettingBuilder_ != null || shoppingSetting_ != null; + public boolean hasStartDate() { + return startDateBuilder_ != null || startDate_ != null; } /** *
-     * The setting for controlling Shopping campaigns.
+     * The date when campaign started.
+     * This field must not be used in WHERE clauses.
      * 
* - * .google.ads.googleads.v0.resources.Campaign.ShoppingSetting shopping_setting = 36; + * .google.protobuf.StringValue start_date = 19; */ - public com.google.ads.googleads.v0.resources.Campaign.ShoppingSetting getShoppingSetting() { - if (shoppingSettingBuilder_ == null) { - return shoppingSetting_ == null ? com.google.ads.googleads.v0.resources.Campaign.ShoppingSetting.getDefaultInstance() : shoppingSetting_; + public com.google.protobuf.StringValue getStartDate() { + if (startDateBuilder_ == null) { + return startDate_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : startDate_; } else { - return shoppingSettingBuilder_.getMessage(); + return startDateBuilder_.getMessage(); } } /** *
-     * The setting for controlling Shopping campaigns.
+     * The date when campaign started.
+     * This field must not be used in WHERE clauses.
      * 
* - * .google.ads.googleads.v0.resources.Campaign.ShoppingSetting shopping_setting = 36; + * .google.protobuf.StringValue start_date = 19; */ - public Builder setShoppingSetting(com.google.ads.googleads.v0.resources.Campaign.ShoppingSetting value) { - if (shoppingSettingBuilder_ == null) { + public Builder setStartDate(com.google.protobuf.StringValue value) { + if (startDateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - shoppingSetting_ = value; + startDate_ = value; onChanged(); } else { - shoppingSettingBuilder_.setMessage(value); + startDateBuilder_.setMessage(value); } return this; } /** *
-     * The setting for controlling Shopping campaigns.
+     * The date when campaign started.
+     * This field must not be used in WHERE clauses.
      * 
* - * .google.ads.googleads.v0.resources.Campaign.ShoppingSetting shopping_setting = 36; + * .google.protobuf.StringValue start_date = 19; */ - public Builder setShoppingSetting( - com.google.ads.googleads.v0.resources.Campaign.ShoppingSetting.Builder builderForValue) { - if (shoppingSettingBuilder_ == null) { - shoppingSetting_ = builderForValue.build(); + public Builder setStartDate( + com.google.protobuf.StringValue.Builder builderForValue) { + if (startDateBuilder_ == null) { + startDate_ = builderForValue.build(); onChanged(); } else { - shoppingSettingBuilder_.setMessage(builderForValue.build()); + startDateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The setting for controlling Shopping campaigns.
+     * The date when campaign started.
+     * This field must not be used in WHERE clauses.
      * 
* - * .google.ads.googleads.v0.resources.Campaign.ShoppingSetting shopping_setting = 36; + * .google.protobuf.StringValue start_date = 19; */ - public Builder mergeShoppingSetting(com.google.ads.googleads.v0.resources.Campaign.ShoppingSetting value) { - if (shoppingSettingBuilder_ == null) { - if (shoppingSetting_ != null) { - shoppingSetting_ = - com.google.ads.googleads.v0.resources.Campaign.ShoppingSetting.newBuilder(shoppingSetting_).mergeFrom(value).buildPartial(); + public Builder mergeStartDate(com.google.protobuf.StringValue value) { + if (startDateBuilder_ == null) { + if (startDate_ != null) { + startDate_ = + com.google.protobuf.StringValue.newBuilder(startDate_).mergeFrom(value).buildPartial(); } else { - shoppingSetting_ = value; + startDate_ = value; } onChanged(); } else { - shoppingSettingBuilder_.mergeFrom(value); + startDateBuilder_.mergeFrom(value); } return this; } /** *
-     * The setting for controlling Shopping campaigns.
+     * The date when campaign started.
+     * This field must not be used in WHERE clauses.
      * 
* - * .google.ads.googleads.v0.resources.Campaign.ShoppingSetting shopping_setting = 36; + * .google.protobuf.StringValue start_date = 19; */ - public Builder clearShoppingSetting() { - if (shoppingSettingBuilder_ == null) { - shoppingSetting_ = null; + public Builder clearStartDate() { + if (startDateBuilder_ == null) { + startDate_ = null; onChanged(); } else { - shoppingSetting_ = null; - shoppingSettingBuilder_ = null; + startDate_ = null; + startDateBuilder_ = null; } return this; } /** *
-     * The setting for controlling Shopping campaigns.
+     * The date when campaign started.
+     * This field must not be used in WHERE clauses.
      * 
* - * .google.ads.googleads.v0.resources.Campaign.ShoppingSetting shopping_setting = 36; + * .google.protobuf.StringValue start_date = 19; */ - public com.google.ads.googleads.v0.resources.Campaign.ShoppingSetting.Builder getShoppingSettingBuilder() { + public com.google.protobuf.StringValue.Builder getStartDateBuilder() { onChanged(); - return getShoppingSettingFieldBuilder().getBuilder(); + return getStartDateFieldBuilder().getBuilder(); } /** *
-     * The setting for controlling Shopping campaigns.
+     * The date when campaign started.
+     * This field must not be used in WHERE clauses.
      * 
* - * .google.ads.googleads.v0.resources.Campaign.ShoppingSetting shopping_setting = 36; + * .google.protobuf.StringValue start_date = 19; */ - public com.google.ads.googleads.v0.resources.Campaign.ShoppingSettingOrBuilder getShoppingSettingOrBuilder() { - if (shoppingSettingBuilder_ != null) { - return shoppingSettingBuilder_.getMessageOrBuilder(); + public com.google.protobuf.StringValueOrBuilder getStartDateOrBuilder() { + if (startDateBuilder_ != null) { + return startDateBuilder_.getMessageOrBuilder(); } else { - return shoppingSetting_ == null ? - com.google.ads.googleads.v0.resources.Campaign.ShoppingSetting.getDefaultInstance() : shoppingSetting_; + return startDate_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : startDate_; } } /** *
-     * The setting for controlling Shopping campaigns.
+     * The date when campaign started.
+     * This field must not be used in WHERE clauses.
      * 
* - * .google.ads.googleads.v0.resources.Campaign.ShoppingSetting shopping_setting = 36; + * .google.protobuf.StringValue start_date = 19; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.Campaign.ShoppingSetting, com.google.ads.googleads.v0.resources.Campaign.ShoppingSetting.Builder, com.google.ads.googleads.v0.resources.Campaign.ShoppingSettingOrBuilder> - getShoppingSettingFieldBuilder() { - if (shoppingSettingBuilder_ == null) { - shoppingSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.Campaign.ShoppingSetting, com.google.ads.googleads.v0.resources.Campaign.ShoppingSetting.Builder, com.google.ads.googleads.v0.resources.Campaign.ShoppingSettingOrBuilder>( - getShoppingSetting(), + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getStartDateFieldBuilder() { + if (startDateBuilder_ == null) { + startDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getStartDate(), getParentForChildren(), isClean()); - shoppingSetting_ = null; + startDate_ = null; } - return shoppingSettingBuilder_; + return startDateBuilder_; } - private com.google.protobuf.StringValue campaignBudget_ = null; + private com.google.protobuf.StringValue endDate_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> campaignBudgetBuilder_; + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> endDateBuilder_; /** *
-     * The budget of the campaign.
+     * The date when campaign ended.
+     * This field must not be used in WHERE clauses.
      * 
* - * .google.protobuf.StringValue campaign_budget = 6; + * .google.protobuf.StringValue end_date = 20; */ - public boolean hasCampaignBudget() { - return campaignBudgetBuilder_ != null || campaignBudget_ != null; + public boolean hasEndDate() { + return endDateBuilder_ != null || endDate_ != null; } /** *
-     * The budget of the campaign.
+     * The date when campaign ended.
+     * This field must not be used in WHERE clauses.
      * 
* - * .google.protobuf.StringValue campaign_budget = 6; + * .google.protobuf.StringValue end_date = 20; */ - public com.google.protobuf.StringValue getCampaignBudget() { - if (campaignBudgetBuilder_ == null) { - return campaignBudget_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : campaignBudget_; + public com.google.protobuf.StringValue getEndDate() { + if (endDateBuilder_ == null) { + return endDate_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : endDate_; } else { - return campaignBudgetBuilder_.getMessage(); + return endDateBuilder_.getMessage(); } } /** *
-     * The budget of the campaign.
+     * The date when campaign ended.
+     * This field must not be used in WHERE clauses.
      * 
* - * .google.protobuf.StringValue campaign_budget = 6; + * .google.protobuf.StringValue end_date = 20; */ - public Builder setCampaignBudget(com.google.protobuf.StringValue value) { - if (campaignBudgetBuilder_ == null) { + public Builder setEndDate(com.google.protobuf.StringValue value) { + if (endDateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - campaignBudget_ = value; + endDate_ = value; onChanged(); } else { - campaignBudgetBuilder_.setMessage(value); + endDateBuilder_.setMessage(value); } return this; } /** *
-     * The budget of the campaign.
+     * The date when campaign ended.
+     * This field must not be used in WHERE clauses.
      * 
* - * .google.protobuf.StringValue campaign_budget = 6; + * .google.protobuf.StringValue end_date = 20; */ - public Builder setCampaignBudget( + public Builder setEndDate( com.google.protobuf.StringValue.Builder builderForValue) { - if (campaignBudgetBuilder_ == null) { - campaignBudget_ = builderForValue.build(); + if (endDateBuilder_ == null) { + endDate_ = builderForValue.build(); onChanged(); } else { - campaignBudgetBuilder_.setMessage(builderForValue.build()); + endDateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The budget of the campaign.
+     * The date when campaign ended.
+     * This field must not be used in WHERE clauses.
      * 
* - * .google.protobuf.StringValue campaign_budget = 6; + * .google.protobuf.StringValue end_date = 20; */ - public Builder mergeCampaignBudget(com.google.protobuf.StringValue value) { - if (campaignBudgetBuilder_ == null) { - if (campaignBudget_ != null) { - campaignBudget_ = - com.google.protobuf.StringValue.newBuilder(campaignBudget_).mergeFrom(value).buildPartial(); + public Builder mergeEndDate(com.google.protobuf.StringValue value) { + if (endDateBuilder_ == null) { + if (endDate_ != null) { + endDate_ = + com.google.protobuf.StringValue.newBuilder(endDate_).mergeFrom(value).buildPartial(); } else { - campaignBudget_ = value; + endDate_ = value; } onChanged(); } else { - campaignBudgetBuilder_.mergeFrom(value); + endDateBuilder_.mergeFrom(value); } return this; } /** *
-     * The budget of the campaign.
+     * The date when campaign ended.
+     * This field must not be used in WHERE clauses.
      * 
* - * .google.protobuf.StringValue campaign_budget = 6; + * .google.protobuf.StringValue end_date = 20; */ - public Builder clearCampaignBudget() { - if (campaignBudgetBuilder_ == null) { - campaignBudget_ = null; + public Builder clearEndDate() { + if (endDateBuilder_ == null) { + endDate_ = null; onChanged(); } else { - campaignBudget_ = null; - campaignBudgetBuilder_ = null; + endDate_ = null; + endDateBuilder_ = null; } return this; } /** *
-     * The budget of the campaign.
+     * The date when campaign ended.
+     * This field must not be used in WHERE clauses.
      * 
* - * .google.protobuf.StringValue campaign_budget = 6; + * .google.protobuf.StringValue end_date = 20; */ - public com.google.protobuf.StringValue.Builder getCampaignBudgetBuilder() { + public com.google.protobuf.StringValue.Builder getEndDateBuilder() { onChanged(); - return getCampaignBudgetFieldBuilder().getBuilder(); + return getEndDateFieldBuilder().getBuilder(); } /** *
-     * The budget of the campaign.
+     * The date when campaign ended.
+     * This field must not be used in WHERE clauses.
      * 
* - * .google.protobuf.StringValue campaign_budget = 6; + * .google.protobuf.StringValue end_date = 20; */ - public com.google.protobuf.StringValueOrBuilder getCampaignBudgetOrBuilder() { - if (campaignBudgetBuilder_ != null) { - return campaignBudgetBuilder_.getMessageOrBuilder(); + public com.google.protobuf.StringValueOrBuilder getEndDateOrBuilder() { + if (endDateBuilder_ != null) { + return endDateBuilder_.getMessageOrBuilder(); } else { - return campaignBudget_ == null ? - com.google.protobuf.StringValue.getDefaultInstance() : campaignBudget_; + return endDate_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : endDate_; } } /** *
-     * The budget of the campaign.
+     * The date when campaign ended.
+     * This field must not be used in WHERE clauses.
      * 
* - * .google.protobuf.StringValue campaign_budget = 6; + * .google.protobuf.StringValue end_date = 20; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> - getCampaignBudgetFieldBuilder() { - if (campaignBudgetBuilder_ == null) { - campaignBudgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getEndDateFieldBuilder() { + if (endDateBuilder_ == null) { + endDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( - getCampaignBudget(), + getEndDate(), getParentForChildren(), isClean()); - campaignBudget_ = null; - } - return campaignBudgetBuilder_; - } - - private int biddingStrategyType_ = 0; - /** - *
-     * The type of bidding strategy.
-     * A bidding strategy can be created by setting either the bidding scheme to
-     * create a standard bidding strategy or the `bidding_strategy` field to
-     * create a portfolio bidding strategy.
-     * This field is read-only.
-     * 
- * - * .google.ads.googleads.v0.enums.BiddingStrategyTypeEnum.BiddingStrategyType bidding_strategy_type = 22; - */ - public int getBiddingStrategyTypeValue() { - return biddingStrategyType_; - } - /** - *
-     * The type of bidding strategy.
-     * A bidding strategy can be created by setting either the bidding scheme to
-     * create a standard bidding strategy or the `bidding_strategy` field to
-     * create a portfolio bidding strategy.
-     * This field is read-only.
-     * 
- * - * .google.ads.googleads.v0.enums.BiddingStrategyTypeEnum.BiddingStrategyType bidding_strategy_type = 22; - */ - public Builder setBiddingStrategyTypeValue(int value) { - biddingStrategyType_ = value; - onChanged(); - return this; - } - /** - *
-     * The type of bidding strategy.
-     * A bidding strategy can be created by setting either the bidding scheme to
-     * create a standard bidding strategy or the `bidding_strategy` field to
-     * create a portfolio bidding strategy.
-     * This field is read-only.
-     * 
- * - * .google.ads.googleads.v0.enums.BiddingStrategyTypeEnum.BiddingStrategyType bidding_strategy_type = 22; - */ - public com.google.ads.googleads.v0.enums.BiddingStrategyTypeEnum.BiddingStrategyType getBiddingStrategyType() { - @SuppressWarnings("deprecation") - com.google.ads.googleads.v0.enums.BiddingStrategyTypeEnum.BiddingStrategyType result = com.google.ads.googleads.v0.enums.BiddingStrategyTypeEnum.BiddingStrategyType.valueOf(biddingStrategyType_); - return result == null ? com.google.ads.googleads.v0.enums.BiddingStrategyTypeEnum.BiddingStrategyType.UNRECOGNIZED : result; - } - /** - *
-     * The type of bidding strategy.
-     * A bidding strategy can be created by setting either the bidding scheme to
-     * create a standard bidding strategy or the `bidding_strategy` field to
-     * create a portfolio bidding strategy.
-     * This field is read-only.
-     * 
- * - * .google.ads.googleads.v0.enums.BiddingStrategyTypeEnum.BiddingStrategyType bidding_strategy_type = 22; - */ - public Builder setBiddingStrategyType(com.google.ads.googleads.v0.enums.BiddingStrategyTypeEnum.BiddingStrategyType value) { - if (value == null) { - throw new NullPointerException(); + endDate_ = null; } - - biddingStrategyType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * The type of bidding strategy.
-     * A bidding strategy can be created by setting either the bidding scheme to
-     * create a standard bidding strategy or the `bidding_strategy` field to
-     * create a portfolio bidding strategy.
-     * This field is read-only.
-     * 
- * - * .google.ads.googleads.v0.enums.BiddingStrategyTypeEnum.BiddingStrategyType bidding_strategy_type = 22; - */ - public Builder clearBiddingStrategyType() { - - biddingStrategyType_ = 0; - onChanged(); - return this; + return endDateBuilder_; } - private com.google.protobuf.StringValue startDate_ = null; + private com.google.protobuf.StringValue finalUrlSuffix_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> startDateBuilder_; + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> finalUrlSuffixBuilder_; /** *
-     * The date when campaign started.
-     * This field must not be used in WHERE clauses.
+     * Suffix used to append query parameters to landing pages that are served
+     * with parallel tracking.
      * 
* - * .google.protobuf.StringValue start_date = 19; + * .google.protobuf.StringValue final_url_suffix = 38; */ - public boolean hasStartDate() { - return startDateBuilder_ != null || startDate_ != null; + public boolean hasFinalUrlSuffix() { + return finalUrlSuffixBuilder_ != null || finalUrlSuffix_ != null; } /** *
-     * The date when campaign started.
-     * This field must not be used in WHERE clauses.
+     * Suffix used to append query parameters to landing pages that are served
+     * with parallel tracking.
      * 
* - * .google.protobuf.StringValue start_date = 19; + * .google.protobuf.StringValue final_url_suffix = 38; */ - public com.google.protobuf.StringValue getStartDate() { - if (startDateBuilder_ == null) { - return startDate_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : startDate_; + public com.google.protobuf.StringValue getFinalUrlSuffix() { + if (finalUrlSuffixBuilder_ == null) { + return finalUrlSuffix_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : finalUrlSuffix_; } else { - return startDateBuilder_.getMessage(); + return finalUrlSuffixBuilder_.getMessage(); } } /** *
-     * The date when campaign started.
-     * This field must not be used in WHERE clauses.
+     * Suffix used to append query parameters to landing pages that are served
+     * with parallel tracking.
      * 
* - * .google.protobuf.StringValue start_date = 19; + * .google.protobuf.StringValue final_url_suffix = 38; */ - public Builder setStartDate(com.google.protobuf.StringValue value) { - if (startDateBuilder_ == null) { + public Builder setFinalUrlSuffix(com.google.protobuf.StringValue value) { + if (finalUrlSuffixBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - startDate_ = value; + finalUrlSuffix_ = value; onChanged(); } else { - startDateBuilder_.setMessage(value); + finalUrlSuffixBuilder_.setMessage(value); } return this; } /** *
-     * The date when campaign started.
-     * This field must not be used in WHERE clauses.
+     * Suffix used to append query parameters to landing pages that are served
+     * with parallel tracking.
      * 
* - * .google.protobuf.StringValue start_date = 19; + * .google.protobuf.StringValue final_url_suffix = 38; */ - public Builder setStartDate( + public Builder setFinalUrlSuffix( com.google.protobuf.StringValue.Builder builderForValue) { - if (startDateBuilder_ == null) { - startDate_ = builderForValue.build(); + if (finalUrlSuffixBuilder_ == null) { + finalUrlSuffix_ = builderForValue.build(); onChanged(); } else { - startDateBuilder_.setMessage(builderForValue.build()); + finalUrlSuffixBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The date when campaign started.
-     * This field must not be used in WHERE clauses.
+     * Suffix used to append query parameters to landing pages that are served
+     * with parallel tracking.
      * 
* - * .google.protobuf.StringValue start_date = 19; + * .google.protobuf.StringValue final_url_suffix = 38; */ - public Builder mergeStartDate(com.google.protobuf.StringValue value) { - if (startDateBuilder_ == null) { - if (startDate_ != null) { - startDate_ = - com.google.protobuf.StringValue.newBuilder(startDate_).mergeFrom(value).buildPartial(); + public Builder mergeFinalUrlSuffix(com.google.protobuf.StringValue value) { + if (finalUrlSuffixBuilder_ == null) { + if (finalUrlSuffix_ != null) { + finalUrlSuffix_ = + com.google.protobuf.StringValue.newBuilder(finalUrlSuffix_).mergeFrom(value).buildPartial(); } else { - startDate_ = value; + finalUrlSuffix_ = value; } onChanged(); } else { - startDateBuilder_.mergeFrom(value); + finalUrlSuffixBuilder_.mergeFrom(value); } return this; } /** *
-     * The date when campaign started.
-     * This field must not be used in WHERE clauses.
+     * Suffix used to append query parameters to landing pages that are served
+     * with parallel tracking.
      * 
* - * .google.protobuf.StringValue start_date = 19; + * .google.protobuf.StringValue final_url_suffix = 38; */ - public Builder clearStartDate() { - if (startDateBuilder_ == null) { - startDate_ = null; + public Builder clearFinalUrlSuffix() { + if (finalUrlSuffixBuilder_ == null) { + finalUrlSuffix_ = null; onChanged(); } else { - startDate_ = null; - startDateBuilder_ = null; + finalUrlSuffix_ = null; + finalUrlSuffixBuilder_ = null; } return this; } /** *
-     * The date when campaign started.
-     * This field must not be used in WHERE clauses.
+     * Suffix used to append query parameters to landing pages that are served
+     * with parallel tracking.
      * 
* - * .google.protobuf.StringValue start_date = 19; + * .google.protobuf.StringValue final_url_suffix = 38; */ - public com.google.protobuf.StringValue.Builder getStartDateBuilder() { + public com.google.protobuf.StringValue.Builder getFinalUrlSuffixBuilder() { onChanged(); - return getStartDateFieldBuilder().getBuilder(); + return getFinalUrlSuffixFieldBuilder().getBuilder(); } /** *
-     * The date when campaign started.
-     * This field must not be used in WHERE clauses.
+     * Suffix used to append query parameters to landing pages that are served
+     * with parallel tracking.
      * 
* - * .google.protobuf.StringValue start_date = 19; + * .google.protobuf.StringValue final_url_suffix = 38; */ - public com.google.protobuf.StringValueOrBuilder getStartDateOrBuilder() { - if (startDateBuilder_ != null) { - return startDateBuilder_.getMessageOrBuilder(); + public com.google.protobuf.StringValueOrBuilder getFinalUrlSuffixOrBuilder() { + if (finalUrlSuffixBuilder_ != null) { + return finalUrlSuffixBuilder_.getMessageOrBuilder(); } else { - return startDate_ == null ? - com.google.protobuf.StringValue.getDefaultInstance() : startDate_; + return finalUrlSuffix_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : finalUrlSuffix_; } } /** *
-     * The date when campaign started.
-     * This field must not be used in WHERE clauses.
+     * Suffix used to append query parameters to landing pages that are served
+     * with parallel tracking.
      * 
* - * .google.protobuf.StringValue start_date = 19; + * .google.protobuf.StringValue final_url_suffix = 38; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> - getStartDateFieldBuilder() { - if (startDateBuilder_ == null) { - startDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getFinalUrlSuffixFieldBuilder() { + if (finalUrlSuffixBuilder_ == null) { + finalUrlSuffixBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( - getStartDate(), + getFinalUrlSuffix(), getParentForChildren(), isClean()); - startDate_ = null; + finalUrlSuffix_ = null; } - return startDateBuilder_; + return finalUrlSuffixBuilder_; } - private com.google.protobuf.StringValue campaignGroup_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> campaignGroupBuilder_; + private java.util.List frequencyCaps_ = + java.util.Collections.emptyList(); + private void ensureFrequencyCapsIsMutable() { + if (!((bitField0_ & 0x00200000) == 0x00200000)) { + frequencyCaps_ = new java.util.ArrayList(frequencyCaps_); + bitField0_ |= 0x00200000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.common.FrequencyCapEntry, com.google.ads.googleads.v0.common.FrequencyCapEntry.Builder, com.google.ads.googleads.v0.common.FrequencyCapEntryOrBuilder> frequencyCapsBuilder_; + + /** + *
+     * A list that limits how often each user will see this campaign's ads.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.FrequencyCapEntry frequency_caps = 40; + */ + public java.util.List getFrequencyCapsList() { + if (frequencyCapsBuilder_ == null) { + return java.util.Collections.unmodifiableList(frequencyCaps_); + } else { + return frequencyCapsBuilder_.getMessageList(); + } + } /** *
-     * The campaign group this campaign belongs to.
+     * A list that limits how often each user will see this campaign's ads.
      * 
* - * .google.protobuf.StringValue campaign_group = 35; + * repeated .google.ads.googleads.v0.common.FrequencyCapEntry frequency_caps = 40; */ - public boolean hasCampaignGroup() { - return campaignGroupBuilder_ != null || campaignGroup_ != null; + public int getFrequencyCapsCount() { + if (frequencyCapsBuilder_ == null) { + return frequencyCaps_.size(); + } else { + return frequencyCapsBuilder_.getCount(); + } } /** *
-     * The campaign group this campaign belongs to.
+     * A list that limits how often each user will see this campaign's ads.
      * 
* - * .google.protobuf.StringValue campaign_group = 35; + * repeated .google.ads.googleads.v0.common.FrequencyCapEntry frequency_caps = 40; */ - public com.google.protobuf.StringValue getCampaignGroup() { - if (campaignGroupBuilder_ == null) { - return campaignGroup_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : campaignGroup_; + public com.google.ads.googleads.v0.common.FrequencyCapEntry getFrequencyCaps(int index) { + if (frequencyCapsBuilder_ == null) { + return frequencyCaps_.get(index); } else { - return campaignGroupBuilder_.getMessage(); + return frequencyCapsBuilder_.getMessage(index); } } /** *
-     * The campaign group this campaign belongs to.
+     * A list that limits how often each user will see this campaign's ads.
      * 
* - * .google.protobuf.StringValue campaign_group = 35; + * repeated .google.ads.googleads.v0.common.FrequencyCapEntry frequency_caps = 40; */ - public Builder setCampaignGroup(com.google.protobuf.StringValue value) { - if (campaignGroupBuilder_ == null) { + public Builder setFrequencyCaps( + int index, com.google.ads.googleads.v0.common.FrequencyCapEntry value) { + if (frequencyCapsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - campaignGroup_ = value; + ensureFrequencyCapsIsMutable(); + frequencyCaps_.set(index, value); onChanged(); } else { - campaignGroupBuilder_.setMessage(value); + frequencyCapsBuilder_.setMessage(index, value); } - return this; } /** *
-     * The campaign group this campaign belongs to.
+     * A list that limits how often each user will see this campaign's ads.
      * 
* - * .google.protobuf.StringValue campaign_group = 35; + * repeated .google.ads.googleads.v0.common.FrequencyCapEntry frequency_caps = 40; */ - public Builder setCampaignGroup( - com.google.protobuf.StringValue.Builder builderForValue) { - if (campaignGroupBuilder_ == null) { - campaignGroup_ = builderForValue.build(); + public Builder setFrequencyCaps( + int index, com.google.ads.googleads.v0.common.FrequencyCapEntry.Builder builderForValue) { + if (frequencyCapsBuilder_ == null) { + ensureFrequencyCapsIsMutable(); + frequencyCaps_.set(index, builderForValue.build()); onChanged(); } else { - campaignGroupBuilder_.setMessage(builderForValue.build()); + frequencyCapsBuilder_.setMessage(index, builderForValue.build()); } - return this; } /** *
-     * The campaign group this campaign belongs to.
+     * A list that limits how often each user will see this campaign's ads.
      * 
* - * .google.protobuf.StringValue campaign_group = 35; + * repeated .google.ads.googleads.v0.common.FrequencyCapEntry frequency_caps = 40; */ - public Builder mergeCampaignGroup(com.google.protobuf.StringValue value) { - if (campaignGroupBuilder_ == null) { - if (campaignGroup_ != null) { - campaignGroup_ = - com.google.protobuf.StringValue.newBuilder(campaignGroup_).mergeFrom(value).buildPartial(); - } else { - campaignGroup_ = value; + public Builder addFrequencyCaps(com.google.ads.googleads.v0.common.FrequencyCapEntry value) { + if (frequencyCapsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + ensureFrequencyCapsIsMutable(); + frequencyCaps_.add(value); onChanged(); } else { - campaignGroupBuilder_.mergeFrom(value); + frequencyCapsBuilder_.addMessage(value); } - return this; } /** *
-     * The campaign group this campaign belongs to.
+     * A list that limits how often each user will see this campaign's ads.
      * 
* - * .google.protobuf.StringValue campaign_group = 35; + * repeated .google.ads.googleads.v0.common.FrequencyCapEntry frequency_caps = 40; */ - public Builder clearCampaignGroup() { - if (campaignGroupBuilder_ == null) { - campaignGroup_ = null; + public Builder addFrequencyCaps( + int index, com.google.ads.googleads.v0.common.FrequencyCapEntry value) { + if (frequencyCapsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFrequencyCapsIsMutable(); + frequencyCaps_.add(index, value); onChanged(); } else { - campaignGroup_ = null; - campaignGroupBuilder_ = null; + frequencyCapsBuilder_.addMessage(index, value); } - return this; } /** *
-     * The campaign group this campaign belongs to.
+     * A list that limits how often each user will see this campaign's ads.
      * 
* - * .google.protobuf.StringValue campaign_group = 35; + * repeated .google.ads.googleads.v0.common.FrequencyCapEntry frequency_caps = 40; */ - public com.google.protobuf.StringValue.Builder getCampaignGroupBuilder() { - - onChanged(); - return getCampaignGroupFieldBuilder().getBuilder(); + public Builder addFrequencyCaps( + com.google.ads.googleads.v0.common.FrequencyCapEntry.Builder builderForValue) { + if (frequencyCapsBuilder_ == null) { + ensureFrequencyCapsIsMutable(); + frequencyCaps_.add(builderForValue.build()); + onChanged(); + } else { + frequencyCapsBuilder_.addMessage(builderForValue.build()); + } + return this; } /** *
-     * The campaign group this campaign belongs to.
+     * A list that limits how often each user will see this campaign's ads.
      * 
* - * .google.protobuf.StringValue campaign_group = 35; + * repeated .google.ads.googleads.v0.common.FrequencyCapEntry frequency_caps = 40; */ - public com.google.protobuf.StringValueOrBuilder getCampaignGroupOrBuilder() { - if (campaignGroupBuilder_ != null) { - return campaignGroupBuilder_.getMessageOrBuilder(); + public Builder addFrequencyCaps( + int index, com.google.ads.googleads.v0.common.FrequencyCapEntry.Builder builderForValue) { + if (frequencyCapsBuilder_ == null) { + ensureFrequencyCapsIsMutable(); + frequencyCaps_.add(index, builderForValue.build()); + onChanged(); } else { - return campaignGroup_ == null ? - com.google.protobuf.StringValue.getDefaultInstance() : campaignGroup_; + frequencyCapsBuilder_.addMessage(index, builderForValue.build()); } + return this; } /** *
-     * The campaign group this campaign belongs to.
+     * A list that limits how often each user will see this campaign's ads.
      * 
* - * .google.protobuf.StringValue campaign_group = 35; + * repeated .google.ads.googleads.v0.common.FrequencyCapEntry frequency_caps = 40; */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> - getCampaignGroupFieldBuilder() { - if (campaignGroupBuilder_ == null) { - campaignGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( - getCampaignGroup(), - getParentForChildren(), - isClean()); - campaignGroup_ = null; + public Builder addAllFrequencyCaps( + java.lang.Iterable values) { + if (frequencyCapsBuilder_ == null) { + ensureFrequencyCapsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, frequencyCaps_); + onChanged(); + } else { + frequencyCapsBuilder_.addAllMessages(values); } - return campaignGroupBuilder_; + return this; } - - private com.google.protobuf.StringValue endDate_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> endDateBuilder_; /** *
-     * The date when campaign ended.
-     * This field must not be used in WHERE clauses.
+     * A list that limits how often each user will see this campaign's ads.
      * 
* - * .google.protobuf.StringValue end_date = 20; + * repeated .google.ads.googleads.v0.common.FrequencyCapEntry frequency_caps = 40; */ - public boolean hasEndDate() { - return endDateBuilder_ != null || endDate_ != null; + public Builder clearFrequencyCaps() { + if (frequencyCapsBuilder_ == null) { + frequencyCaps_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00200000); + onChanged(); + } else { + frequencyCapsBuilder_.clear(); + } + return this; } /** *
-     * The date when campaign ended.
-     * This field must not be used in WHERE clauses.
+     * A list that limits how often each user will see this campaign's ads.
      * 
* - * .google.protobuf.StringValue end_date = 20; + * repeated .google.ads.googleads.v0.common.FrequencyCapEntry frequency_caps = 40; */ - public com.google.protobuf.StringValue getEndDate() { - if (endDateBuilder_ == null) { - return endDate_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : endDate_; + public Builder removeFrequencyCaps(int index) { + if (frequencyCapsBuilder_ == null) { + ensureFrequencyCapsIsMutable(); + frequencyCaps_.remove(index); + onChanged(); } else { - return endDateBuilder_.getMessage(); + frequencyCapsBuilder_.remove(index); } + return this; } /** *
-     * The date when campaign ended.
-     * This field must not be used in WHERE clauses.
+     * A list that limits how often each user will see this campaign's ads.
      * 
* - * .google.protobuf.StringValue end_date = 20; + * repeated .google.ads.googleads.v0.common.FrequencyCapEntry frequency_caps = 40; */ - public Builder setEndDate(com.google.protobuf.StringValue value) { - if (endDateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - endDate_ = value; - onChanged(); + public com.google.ads.googleads.v0.common.FrequencyCapEntry.Builder getFrequencyCapsBuilder( + int index) { + return getFrequencyCapsFieldBuilder().getBuilder(index); + } + /** + *
+     * A list that limits how often each user will see this campaign's ads.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.FrequencyCapEntry frequency_caps = 40; + */ + public com.google.ads.googleads.v0.common.FrequencyCapEntryOrBuilder getFrequencyCapsOrBuilder( + int index) { + if (frequencyCapsBuilder_ == null) { + return frequencyCaps_.get(index); } else { + return frequencyCapsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * A list that limits how often each user will see this campaign's ads.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.FrequencyCapEntry frequency_caps = 40; + */ + public java.util.List + getFrequencyCapsOrBuilderList() { + if (frequencyCapsBuilder_ != null) { + return frequencyCapsBuilder_.getMessageOrBuilderList(); } else { - endDateBuilder_.setMessage(value); + return java.util.Collections.unmodifiableList(frequencyCaps_); } - - return this; } /** *
-     * The date when campaign ended.
-     * This field must not be used in WHERE clauses.
+     * A list that limits how often each user will see this campaign's ads.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.FrequencyCapEntry frequency_caps = 40; + */ + public com.google.ads.googleads.v0.common.FrequencyCapEntry.Builder addFrequencyCapsBuilder() { + return getFrequencyCapsFieldBuilder().addBuilder( + com.google.ads.googleads.v0.common.FrequencyCapEntry.getDefaultInstance()); + } + /** + *
+     * A list that limits how often each user will see this campaign's ads.
      * 
* - * .google.protobuf.StringValue end_date = 20; + * repeated .google.ads.googleads.v0.common.FrequencyCapEntry frequency_caps = 40; */ - public Builder setEndDate( - com.google.protobuf.StringValue.Builder builderForValue) { - if (endDateBuilder_ == null) { - endDate_ = builderForValue.build(); - onChanged(); - } else { - endDateBuilder_.setMessage(builderForValue.build()); - } - - return this; + public com.google.ads.googleads.v0.common.FrequencyCapEntry.Builder addFrequencyCapsBuilder( + int index) { + return getFrequencyCapsFieldBuilder().addBuilder( + index, com.google.ads.googleads.v0.common.FrequencyCapEntry.getDefaultInstance()); } /** *
-     * The date when campaign ended.
-     * This field must not be used in WHERE clauses.
+     * A list that limits how often each user will see this campaign's ads.
      * 
* - * .google.protobuf.StringValue end_date = 20; + * repeated .google.ads.googleads.v0.common.FrequencyCapEntry frequency_caps = 40; */ - public Builder mergeEndDate(com.google.protobuf.StringValue value) { - if (endDateBuilder_ == null) { - if (endDate_ != null) { - endDate_ = - com.google.protobuf.StringValue.newBuilder(endDate_).mergeFrom(value).buildPartial(); - } else { - endDate_ = value; - } - onChanged(); - } else { - endDateBuilder_.mergeFrom(value); + public java.util.List + getFrequencyCapsBuilderList() { + return getFrequencyCapsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.common.FrequencyCapEntry, com.google.ads.googleads.v0.common.FrequencyCapEntry.Builder, com.google.ads.googleads.v0.common.FrequencyCapEntryOrBuilder> + getFrequencyCapsFieldBuilder() { + if (frequencyCapsBuilder_ == null) { + frequencyCapsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.common.FrequencyCapEntry, com.google.ads.googleads.v0.common.FrequencyCapEntry.Builder, com.google.ads.googleads.v0.common.FrequencyCapEntryOrBuilder>( + frequencyCaps_, + ((bitField0_ & 0x00200000) == 0x00200000), + getParentForChildren(), + isClean()); + frequencyCaps_ = null; } + return frequencyCapsBuilder_; + } - return this; + private int videoBrandSafetySuitability_ = 0; + /** + *
+     * 3-Tier Brand Safety setting for the campaign.
+     * 
+ * + * .google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability video_brand_safety_suitability = 42; + */ + public int getVideoBrandSafetySuitabilityValue() { + return videoBrandSafetySuitability_; } /** *
-     * The date when campaign ended.
-     * This field must not be used in WHERE clauses.
+     * 3-Tier Brand Safety setting for the campaign.
      * 
* - * .google.protobuf.StringValue end_date = 20; + * .google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability video_brand_safety_suitability = 42; */ - public Builder clearEndDate() { - if (endDateBuilder_ == null) { - endDate_ = null; - onChanged(); - } else { - endDate_ = null; - endDateBuilder_ = null; - } - + public Builder setVideoBrandSafetySuitabilityValue(int value) { + videoBrandSafetySuitability_ = value; + onChanged(); return this; } /** *
-     * The date when campaign ended.
-     * This field must not be used in WHERE clauses.
+     * 3-Tier Brand Safety setting for the campaign.
      * 
* - * .google.protobuf.StringValue end_date = 20; + * .google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability video_brand_safety_suitability = 42; */ - public com.google.protobuf.StringValue.Builder getEndDateBuilder() { - - onChanged(); - return getEndDateFieldBuilder().getBuilder(); + public com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability getVideoBrandSafetySuitability() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability result = com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability.valueOf(videoBrandSafetySuitability_); + return result == null ? com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability.UNRECOGNIZED : result; } /** *
-     * The date when campaign ended.
-     * This field must not be used in WHERE clauses.
+     * 3-Tier Brand Safety setting for the campaign.
      * 
* - * .google.protobuf.StringValue end_date = 20; + * .google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability video_brand_safety_suitability = 42; */ - public com.google.protobuf.StringValueOrBuilder getEndDateOrBuilder() { - if (endDateBuilder_ != null) { - return endDateBuilder_.getMessageOrBuilder(); - } else { - return endDate_ == null ? - com.google.protobuf.StringValue.getDefaultInstance() : endDate_; + public Builder setVideoBrandSafetySuitability(com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability value) { + if (value == null) { + throw new NullPointerException(); } + + videoBrandSafetySuitability_ = value.getNumber(); + onChanged(); + return this; } /** *
-     * The date when campaign ended.
-     * This field must not be used in WHERE clauses.
+     * 3-Tier Brand Safety setting for the campaign.
      * 
* - * .google.protobuf.StringValue end_date = 20; + * .google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability video_brand_safety_suitability = 42; */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> - getEndDateFieldBuilder() { - if (endDateBuilder_ == null) { - endDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( - getEndDate(), - getParentForChildren(), - isClean()); - endDate_ = null; - } - return endDateBuilder_; + public Builder clearVideoBrandSafetySuitability() { + + videoBrandSafetySuitability_ = 0; + onChanged(); + return this; } - private com.google.protobuf.StringValue finalUrlSuffix_ = null; + private com.google.ads.googleads.v0.resources.Campaign.VanityPharma vanityPharma_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> finalUrlSuffixBuilder_; + com.google.ads.googleads.v0.resources.Campaign.VanityPharma, com.google.ads.googleads.v0.resources.Campaign.VanityPharma.Builder, com.google.ads.googleads.v0.resources.Campaign.VanityPharmaOrBuilder> vanityPharmaBuilder_; /** *
-     * Suffix used to append query parameters to landing pages that are served
-     * with parallel tracking.
+     * Describes how unbranded pharma ads will be displayed.
      * 
* - * .google.protobuf.StringValue final_url_suffix = 38; + * .google.ads.googleads.v0.resources.Campaign.VanityPharma vanity_pharma = 44; */ - public boolean hasFinalUrlSuffix() { - return finalUrlSuffixBuilder_ != null || finalUrlSuffix_ != null; + public boolean hasVanityPharma() { + return vanityPharmaBuilder_ != null || vanityPharma_ != null; } /** *
-     * Suffix used to append query parameters to landing pages that are served
-     * with parallel tracking.
+     * Describes how unbranded pharma ads will be displayed.
      * 
* - * .google.protobuf.StringValue final_url_suffix = 38; + * .google.ads.googleads.v0.resources.Campaign.VanityPharma vanity_pharma = 44; */ - public com.google.protobuf.StringValue getFinalUrlSuffix() { - if (finalUrlSuffixBuilder_ == null) { - return finalUrlSuffix_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : finalUrlSuffix_; + public com.google.ads.googleads.v0.resources.Campaign.VanityPharma getVanityPharma() { + if (vanityPharmaBuilder_ == null) { + return vanityPharma_ == null ? com.google.ads.googleads.v0.resources.Campaign.VanityPharma.getDefaultInstance() : vanityPharma_; } else { - return finalUrlSuffixBuilder_.getMessage(); + return vanityPharmaBuilder_.getMessage(); } } /** *
-     * Suffix used to append query parameters to landing pages that are served
-     * with parallel tracking.
+     * Describes how unbranded pharma ads will be displayed.
      * 
* - * .google.protobuf.StringValue final_url_suffix = 38; + * .google.ads.googleads.v0.resources.Campaign.VanityPharma vanity_pharma = 44; */ - public Builder setFinalUrlSuffix(com.google.protobuf.StringValue value) { - if (finalUrlSuffixBuilder_ == null) { + public Builder setVanityPharma(com.google.ads.googleads.v0.resources.Campaign.VanityPharma value) { + if (vanityPharmaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - finalUrlSuffix_ = value; + vanityPharma_ = value; onChanged(); } else { - finalUrlSuffixBuilder_.setMessage(value); + vanityPharmaBuilder_.setMessage(value); } return this; } /** *
-     * Suffix used to append query parameters to landing pages that are served
-     * with parallel tracking.
+     * Describes how unbranded pharma ads will be displayed.
      * 
* - * .google.protobuf.StringValue final_url_suffix = 38; + * .google.ads.googleads.v0.resources.Campaign.VanityPharma vanity_pharma = 44; */ - public Builder setFinalUrlSuffix( - com.google.protobuf.StringValue.Builder builderForValue) { - if (finalUrlSuffixBuilder_ == null) { - finalUrlSuffix_ = builderForValue.build(); + public Builder setVanityPharma( + com.google.ads.googleads.v0.resources.Campaign.VanityPharma.Builder builderForValue) { + if (vanityPharmaBuilder_ == null) { + vanityPharma_ = builderForValue.build(); onChanged(); } else { - finalUrlSuffixBuilder_.setMessage(builderForValue.build()); + vanityPharmaBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * Suffix used to append query parameters to landing pages that are served
-     * with parallel tracking.
+     * Describes how unbranded pharma ads will be displayed.
      * 
* - * .google.protobuf.StringValue final_url_suffix = 38; + * .google.ads.googleads.v0.resources.Campaign.VanityPharma vanity_pharma = 44; */ - public Builder mergeFinalUrlSuffix(com.google.protobuf.StringValue value) { - if (finalUrlSuffixBuilder_ == null) { - if (finalUrlSuffix_ != null) { - finalUrlSuffix_ = - com.google.protobuf.StringValue.newBuilder(finalUrlSuffix_).mergeFrom(value).buildPartial(); + public Builder mergeVanityPharma(com.google.ads.googleads.v0.resources.Campaign.VanityPharma value) { + if (vanityPharmaBuilder_ == null) { + if (vanityPharma_ != null) { + vanityPharma_ = + com.google.ads.googleads.v0.resources.Campaign.VanityPharma.newBuilder(vanityPharma_).mergeFrom(value).buildPartial(); } else { - finalUrlSuffix_ = value; + vanityPharma_ = value; } onChanged(); } else { - finalUrlSuffixBuilder_.mergeFrom(value); + vanityPharmaBuilder_.mergeFrom(value); } return this; } /** *
-     * Suffix used to append query parameters to landing pages that are served
-     * with parallel tracking.
+     * Describes how unbranded pharma ads will be displayed.
      * 
* - * .google.protobuf.StringValue final_url_suffix = 38; + * .google.ads.googleads.v0.resources.Campaign.VanityPharma vanity_pharma = 44; */ - public Builder clearFinalUrlSuffix() { - if (finalUrlSuffixBuilder_ == null) { - finalUrlSuffix_ = null; + public Builder clearVanityPharma() { + if (vanityPharmaBuilder_ == null) { + vanityPharma_ = null; onChanged(); } else { - finalUrlSuffix_ = null; - finalUrlSuffixBuilder_ = null; + vanityPharma_ = null; + vanityPharmaBuilder_ = null; } return this; } /** *
-     * Suffix used to append query parameters to landing pages that are served
-     * with parallel tracking.
+     * Describes how unbranded pharma ads will be displayed.
      * 
* - * .google.protobuf.StringValue final_url_suffix = 38; + * .google.ads.googleads.v0.resources.Campaign.VanityPharma vanity_pharma = 44; */ - public com.google.protobuf.StringValue.Builder getFinalUrlSuffixBuilder() { + public com.google.ads.googleads.v0.resources.Campaign.VanityPharma.Builder getVanityPharmaBuilder() { onChanged(); - return getFinalUrlSuffixFieldBuilder().getBuilder(); + return getVanityPharmaFieldBuilder().getBuilder(); } /** *
-     * Suffix used to append query parameters to landing pages that are served
-     * with parallel tracking.
+     * Describes how unbranded pharma ads will be displayed.
      * 
* - * .google.protobuf.StringValue final_url_suffix = 38; + * .google.ads.googleads.v0.resources.Campaign.VanityPharma vanity_pharma = 44; */ - public com.google.protobuf.StringValueOrBuilder getFinalUrlSuffixOrBuilder() { - if (finalUrlSuffixBuilder_ != null) { - return finalUrlSuffixBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.Campaign.VanityPharmaOrBuilder getVanityPharmaOrBuilder() { + if (vanityPharmaBuilder_ != null) { + return vanityPharmaBuilder_.getMessageOrBuilder(); } else { - return finalUrlSuffix_ == null ? - com.google.protobuf.StringValue.getDefaultInstance() : finalUrlSuffix_; + return vanityPharma_ == null ? + com.google.ads.googleads.v0.resources.Campaign.VanityPharma.getDefaultInstance() : vanityPharma_; } } /** *
-     * Suffix used to append query parameters to landing pages that are served
-     * with parallel tracking.
+     * Describes how unbranded pharma ads will be displayed.
      * 
* - * .google.protobuf.StringValue final_url_suffix = 38; + * .google.ads.googleads.v0.resources.Campaign.VanityPharma vanity_pharma = 44; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> - getFinalUrlSuffixFieldBuilder() { - if (finalUrlSuffixBuilder_ == null) { - finalUrlSuffixBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( - getFinalUrlSuffix(), + com.google.ads.googleads.v0.resources.Campaign.VanityPharma, com.google.ads.googleads.v0.resources.Campaign.VanityPharma.Builder, com.google.ads.googleads.v0.resources.Campaign.VanityPharmaOrBuilder> + getVanityPharmaFieldBuilder() { + if (vanityPharmaBuilder_ == null) { + vanityPharmaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.Campaign.VanityPharma, com.google.ads.googleads.v0.resources.Campaign.VanityPharma.Builder, com.google.ads.googleads.v0.resources.Campaign.VanityPharmaOrBuilder>( + getVanityPharma(), getParentForChildren(), isClean()); - finalUrlSuffix_ = null; + vanityPharma_ = null; } - return finalUrlSuffixBuilder_; - } - - private java.util.List frequencyCaps_ = - java.util.Collections.emptyList(); - private void ensureFrequencyCapsIsMutable() { - if (!((bitField0_ & 0x00200000) == 0x00200000)) { - frequencyCaps_ = new java.util.ArrayList(frequencyCaps_); - bitField0_ |= 0x00200000; - } + return vanityPharmaBuilder_; } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.googleads.v0.common.FrequencyCapEntry, com.google.ads.googleads.v0.common.FrequencyCapEntry.Builder, com.google.ads.googleads.v0.common.FrequencyCapEntryOrBuilder> frequencyCapsBuilder_; - - /** - *
-     * A list that limits how often each user will see this campaign's ads.
-     * 
- * - * repeated .google.ads.googleads.v0.common.FrequencyCapEntry frequency_caps = 40; - */ - public java.util.List getFrequencyCapsList() { - if (frequencyCapsBuilder_ == null) { - return java.util.Collections.unmodifiableList(frequencyCaps_); - } else { - return frequencyCapsBuilder_.getMessageList(); - } - } + private com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization selectiveOptimization_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization, com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization.Builder, com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimizationOrBuilder> selectiveOptimizationBuilder_; /** *
-     * A list that limits how often each user will see this campaign's ads.
+     * Selective optimization setting for this campaign, which includes a set of
+     * conversion actions to optimize this campaign towards.
      * 
* - * repeated .google.ads.googleads.v0.common.FrequencyCapEntry frequency_caps = 40; + * .google.ads.googleads.v0.resources.Campaign.SelectiveOptimization selective_optimization = 45; */ - public int getFrequencyCapsCount() { - if (frequencyCapsBuilder_ == null) { - return frequencyCaps_.size(); - } else { - return frequencyCapsBuilder_.getCount(); - } + public boolean hasSelectiveOptimization() { + return selectiveOptimizationBuilder_ != null || selectiveOptimization_ != null; } /** *
-     * A list that limits how often each user will see this campaign's ads.
+     * Selective optimization setting for this campaign, which includes a set of
+     * conversion actions to optimize this campaign towards.
      * 
* - * repeated .google.ads.googleads.v0.common.FrequencyCapEntry frequency_caps = 40; + * .google.ads.googleads.v0.resources.Campaign.SelectiveOptimization selective_optimization = 45; */ - public com.google.ads.googleads.v0.common.FrequencyCapEntry getFrequencyCaps(int index) { - if (frequencyCapsBuilder_ == null) { - return frequencyCaps_.get(index); + public com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization getSelectiveOptimization() { + if (selectiveOptimizationBuilder_ == null) { + return selectiveOptimization_ == null ? com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization.getDefaultInstance() : selectiveOptimization_; } else { - return frequencyCapsBuilder_.getMessage(index); + return selectiveOptimizationBuilder_.getMessage(); } } /** *
-     * A list that limits how often each user will see this campaign's ads.
+     * Selective optimization setting for this campaign, which includes a set of
+     * conversion actions to optimize this campaign towards.
      * 
* - * repeated .google.ads.googleads.v0.common.FrequencyCapEntry frequency_caps = 40; + * .google.ads.googleads.v0.resources.Campaign.SelectiveOptimization selective_optimization = 45; */ - public Builder setFrequencyCaps( - int index, com.google.ads.googleads.v0.common.FrequencyCapEntry value) { - if (frequencyCapsBuilder_ == null) { + public Builder setSelectiveOptimization(com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization value) { + if (selectiveOptimizationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureFrequencyCapsIsMutable(); - frequencyCaps_.set(index, value); + selectiveOptimization_ = value; onChanged(); } else { - frequencyCapsBuilder_.setMessage(index, value); + selectiveOptimizationBuilder_.setMessage(value); } + return this; } /** *
-     * A list that limits how often each user will see this campaign's ads.
+     * Selective optimization setting for this campaign, which includes a set of
+     * conversion actions to optimize this campaign towards.
      * 
* - * repeated .google.ads.googleads.v0.common.FrequencyCapEntry frequency_caps = 40; + * .google.ads.googleads.v0.resources.Campaign.SelectiveOptimization selective_optimization = 45; */ - public Builder setFrequencyCaps( - int index, com.google.ads.googleads.v0.common.FrequencyCapEntry.Builder builderForValue) { - if (frequencyCapsBuilder_ == null) { - ensureFrequencyCapsIsMutable(); - frequencyCaps_.set(index, builderForValue.build()); + public Builder setSelectiveOptimization( + com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization.Builder builderForValue) { + if (selectiveOptimizationBuilder_ == null) { + selectiveOptimization_ = builderForValue.build(); onChanged(); } else { - frequencyCapsBuilder_.setMessage(index, builderForValue.build()); + selectiveOptimizationBuilder_.setMessage(builderForValue.build()); } + return this; } /** *
-     * A list that limits how often each user will see this campaign's ads.
+     * Selective optimization setting for this campaign, which includes a set of
+     * conversion actions to optimize this campaign towards.
      * 
* - * repeated .google.ads.googleads.v0.common.FrequencyCapEntry frequency_caps = 40; + * .google.ads.googleads.v0.resources.Campaign.SelectiveOptimization selective_optimization = 45; */ - public Builder addFrequencyCaps(com.google.ads.googleads.v0.common.FrequencyCapEntry value) { - if (frequencyCapsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeSelectiveOptimization(com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization value) { + if (selectiveOptimizationBuilder_ == null) { + if (selectiveOptimization_ != null) { + selectiveOptimization_ = + com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization.newBuilder(selectiveOptimization_).mergeFrom(value).buildPartial(); + } else { + selectiveOptimization_ = value; } - ensureFrequencyCapsIsMutable(); - frequencyCaps_.add(value); onChanged(); } else { - frequencyCapsBuilder_.addMessage(value); + selectiveOptimizationBuilder_.mergeFrom(value); } + return this; } /** *
-     * A list that limits how often each user will see this campaign's ads.
+     * Selective optimization setting for this campaign, which includes a set of
+     * conversion actions to optimize this campaign towards.
      * 
* - * repeated .google.ads.googleads.v0.common.FrequencyCapEntry frequency_caps = 40; + * .google.ads.googleads.v0.resources.Campaign.SelectiveOptimization selective_optimization = 45; */ - public Builder addFrequencyCaps( - int index, com.google.ads.googleads.v0.common.FrequencyCapEntry value) { - if (frequencyCapsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFrequencyCapsIsMutable(); - frequencyCaps_.add(index, value); + public Builder clearSelectiveOptimization() { + if (selectiveOptimizationBuilder_ == null) { + selectiveOptimization_ = null; onChanged(); } else { - frequencyCapsBuilder_.addMessage(index, value); + selectiveOptimization_ = null; + selectiveOptimizationBuilder_ = null; } + return this; } /** *
-     * A list that limits how often each user will see this campaign's ads.
+     * Selective optimization setting for this campaign, which includes a set of
+     * conversion actions to optimize this campaign towards.
      * 
* - * repeated .google.ads.googleads.v0.common.FrequencyCapEntry frequency_caps = 40; + * .google.ads.googleads.v0.resources.Campaign.SelectiveOptimization selective_optimization = 45; */ - public Builder addFrequencyCaps( - com.google.ads.googleads.v0.common.FrequencyCapEntry.Builder builderForValue) { - if (frequencyCapsBuilder_ == null) { - ensureFrequencyCapsIsMutable(); - frequencyCaps_.add(builderForValue.build()); - onChanged(); - } else { - frequencyCapsBuilder_.addMessage(builderForValue.build()); - } - return this; + public com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization.Builder getSelectiveOptimizationBuilder() { + + onChanged(); + return getSelectiveOptimizationFieldBuilder().getBuilder(); } /** *
-     * A list that limits how often each user will see this campaign's ads.
+     * Selective optimization setting for this campaign, which includes a set of
+     * conversion actions to optimize this campaign towards.
      * 
* - * repeated .google.ads.googleads.v0.common.FrequencyCapEntry frequency_caps = 40; + * .google.ads.googleads.v0.resources.Campaign.SelectiveOptimization selective_optimization = 45; */ - public Builder addFrequencyCaps( - int index, com.google.ads.googleads.v0.common.FrequencyCapEntry.Builder builderForValue) { - if (frequencyCapsBuilder_ == null) { - ensureFrequencyCapsIsMutable(); - frequencyCaps_.add(index, builderForValue.build()); - onChanged(); + public com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimizationOrBuilder getSelectiveOptimizationOrBuilder() { + if (selectiveOptimizationBuilder_ != null) { + return selectiveOptimizationBuilder_.getMessageOrBuilder(); } else { - frequencyCapsBuilder_.addMessage(index, builderForValue.build()); + return selectiveOptimization_ == null ? + com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization.getDefaultInstance() : selectiveOptimization_; } - return this; } /** *
-     * A list that limits how often each user will see this campaign's ads.
+     * Selective optimization setting for this campaign, which includes a set of
+     * conversion actions to optimize this campaign towards.
      * 
* - * repeated .google.ads.googleads.v0.common.FrequencyCapEntry frequency_caps = 40; + * .google.ads.googleads.v0.resources.Campaign.SelectiveOptimization selective_optimization = 45; */ - public Builder addAllFrequencyCaps( - java.lang.Iterable values) { - if (frequencyCapsBuilder_ == null) { - ensureFrequencyCapsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, frequencyCaps_); - onChanged(); - } else { - frequencyCapsBuilder_.addAllMessages(values); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization, com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization.Builder, com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimizationOrBuilder> + getSelectiveOptimizationFieldBuilder() { + if (selectiveOptimizationBuilder_ == null) { + selectiveOptimizationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization, com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization.Builder, com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimizationOrBuilder>( + getSelectiveOptimization(), + getParentForChildren(), + isClean()); + selectiveOptimization_ = null; } - return this; + return selectiveOptimizationBuilder_; } + + private com.google.ads.googleads.v0.resources.Campaign.TrackingSetting trackingSetting_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.Campaign.TrackingSetting, com.google.ads.googleads.v0.resources.Campaign.TrackingSetting.Builder, com.google.ads.googleads.v0.resources.Campaign.TrackingSettingOrBuilder> trackingSettingBuilder_; /** *
-     * A list that limits how often each user will see this campaign's ads.
+     * Campaign level settings for tracking information.
      * 
* - * repeated .google.ads.googleads.v0.common.FrequencyCapEntry frequency_caps = 40; + * .google.ads.googleads.v0.resources.Campaign.TrackingSetting tracking_setting = 46; */ - public Builder clearFrequencyCaps() { - if (frequencyCapsBuilder_ == null) { - frequencyCaps_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00200000); - onChanged(); + public boolean hasTrackingSetting() { + return trackingSettingBuilder_ != null || trackingSetting_ != null; + } + /** + *
+     * Campaign level settings for tracking information.
+     * 
+ * + * .google.ads.googleads.v0.resources.Campaign.TrackingSetting tracking_setting = 46; + */ + public com.google.ads.googleads.v0.resources.Campaign.TrackingSetting getTrackingSetting() { + if (trackingSettingBuilder_ == null) { + return trackingSetting_ == null ? com.google.ads.googleads.v0.resources.Campaign.TrackingSetting.getDefaultInstance() : trackingSetting_; } else { - frequencyCapsBuilder_.clear(); + return trackingSettingBuilder_.getMessage(); } - return this; } /** *
-     * A list that limits how often each user will see this campaign's ads.
+     * Campaign level settings for tracking information.
      * 
* - * repeated .google.ads.googleads.v0.common.FrequencyCapEntry frequency_caps = 40; + * .google.ads.googleads.v0.resources.Campaign.TrackingSetting tracking_setting = 46; */ - public Builder removeFrequencyCaps(int index) { - if (frequencyCapsBuilder_ == null) { - ensureFrequencyCapsIsMutable(); - frequencyCaps_.remove(index); + public Builder setTrackingSetting(com.google.ads.googleads.v0.resources.Campaign.TrackingSetting value) { + if (trackingSettingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + trackingSetting_ = value; onChanged(); } else { - frequencyCapsBuilder_.remove(index); + trackingSettingBuilder_.setMessage(value); } + return this; } /** *
-     * A list that limits how often each user will see this campaign's ads.
+     * Campaign level settings for tracking information.
      * 
* - * repeated .google.ads.googleads.v0.common.FrequencyCapEntry frequency_caps = 40; + * .google.ads.googleads.v0.resources.Campaign.TrackingSetting tracking_setting = 46; */ - public com.google.ads.googleads.v0.common.FrequencyCapEntry.Builder getFrequencyCapsBuilder( - int index) { - return getFrequencyCapsFieldBuilder().getBuilder(index); + public Builder setTrackingSetting( + com.google.ads.googleads.v0.resources.Campaign.TrackingSetting.Builder builderForValue) { + if (trackingSettingBuilder_ == null) { + trackingSetting_ = builderForValue.build(); + onChanged(); + } else { + trackingSettingBuilder_.setMessage(builderForValue.build()); + } + + return this; } /** *
-     * A list that limits how often each user will see this campaign's ads.
+     * Campaign level settings for tracking information.
      * 
* - * repeated .google.ads.googleads.v0.common.FrequencyCapEntry frequency_caps = 40; + * .google.ads.googleads.v0.resources.Campaign.TrackingSetting tracking_setting = 46; */ - public com.google.ads.googleads.v0.common.FrequencyCapEntryOrBuilder getFrequencyCapsOrBuilder( - int index) { - if (frequencyCapsBuilder_ == null) { - return frequencyCaps_.get(index); } else { - return frequencyCapsBuilder_.getMessageOrBuilder(index); + public Builder mergeTrackingSetting(com.google.ads.googleads.v0.resources.Campaign.TrackingSetting value) { + if (trackingSettingBuilder_ == null) { + if (trackingSetting_ != null) { + trackingSetting_ = + com.google.ads.googleads.v0.resources.Campaign.TrackingSetting.newBuilder(trackingSetting_).mergeFrom(value).buildPartial(); + } else { + trackingSetting_ = value; + } + onChanged(); + } else { + trackingSettingBuilder_.mergeFrom(value); } + + return this; } /** *
-     * A list that limits how often each user will see this campaign's ads.
+     * Campaign level settings for tracking information.
      * 
* - * repeated .google.ads.googleads.v0.common.FrequencyCapEntry frequency_caps = 40; + * .google.ads.googleads.v0.resources.Campaign.TrackingSetting tracking_setting = 46; */ - public java.util.List - getFrequencyCapsOrBuilderList() { - if (frequencyCapsBuilder_ != null) { - return frequencyCapsBuilder_.getMessageOrBuilderList(); + public Builder clearTrackingSetting() { + if (trackingSettingBuilder_ == null) { + trackingSetting_ = null; + onChanged(); } else { - return java.util.Collections.unmodifiableList(frequencyCaps_); + trackingSetting_ = null; + trackingSettingBuilder_ = null; } + + return this; } /** *
-     * A list that limits how often each user will see this campaign's ads.
+     * Campaign level settings for tracking information.
      * 
* - * repeated .google.ads.googleads.v0.common.FrequencyCapEntry frequency_caps = 40; + * .google.ads.googleads.v0.resources.Campaign.TrackingSetting tracking_setting = 46; */ - public com.google.ads.googleads.v0.common.FrequencyCapEntry.Builder addFrequencyCapsBuilder() { - return getFrequencyCapsFieldBuilder().addBuilder( - com.google.ads.googleads.v0.common.FrequencyCapEntry.getDefaultInstance()); + public com.google.ads.googleads.v0.resources.Campaign.TrackingSetting.Builder getTrackingSettingBuilder() { + + onChanged(); + return getTrackingSettingFieldBuilder().getBuilder(); } /** *
-     * A list that limits how often each user will see this campaign's ads.
+     * Campaign level settings for tracking information.
      * 
* - * repeated .google.ads.googleads.v0.common.FrequencyCapEntry frequency_caps = 40; + * .google.ads.googleads.v0.resources.Campaign.TrackingSetting tracking_setting = 46; */ - public com.google.ads.googleads.v0.common.FrequencyCapEntry.Builder addFrequencyCapsBuilder( - int index) { - return getFrequencyCapsFieldBuilder().addBuilder( - index, com.google.ads.googleads.v0.common.FrequencyCapEntry.getDefaultInstance()); + public com.google.ads.googleads.v0.resources.Campaign.TrackingSettingOrBuilder getTrackingSettingOrBuilder() { + if (trackingSettingBuilder_ != null) { + return trackingSettingBuilder_.getMessageOrBuilder(); + } else { + return trackingSetting_ == null ? + com.google.ads.googleads.v0.resources.Campaign.TrackingSetting.getDefaultInstance() : trackingSetting_; + } } /** *
-     * A list that limits how often each user will see this campaign's ads.
+     * Campaign level settings for tracking information.
      * 
* - * repeated .google.ads.googleads.v0.common.FrequencyCapEntry frequency_caps = 40; + * .google.ads.googleads.v0.resources.Campaign.TrackingSetting tracking_setting = 46; */ - public java.util.List - getFrequencyCapsBuilderList() { - return getFrequencyCapsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.googleads.v0.common.FrequencyCapEntry, com.google.ads.googleads.v0.common.FrequencyCapEntry.Builder, com.google.ads.googleads.v0.common.FrequencyCapEntryOrBuilder> - getFrequencyCapsFieldBuilder() { - if (frequencyCapsBuilder_ == null) { - frequencyCapsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.googleads.v0.common.FrequencyCapEntry, com.google.ads.googleads.v0.common.FrequencyCapEntry.Builder, com.google.ads.googleads.v0.common.FrequencyCapEntryOrBuilder>( - frequencyCaps_, - ((bitField0_ & 0x00200000) == 0x00200000), + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.Campaign.TrackingSetting, com.google.ads.googleads.v0.resources.Campaign.TrackingSetting.Builder, com.google.ads.googleads.v0.resources.Campaign.TrackingSettingOrBuilder> + getTrackingSettingFieldBuilder() { + if (trackingSettingBuilder_ == null) { + trackingSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.Campaign.TrackingSetting, com.google.ads.googleads.v0.resources.Campaign.TrackingSetting.Builder, com.google.ads.googleads.v0.resources.Campaign.TrackingSettingOrBuilder>( + getTrackingSetting(), getParentForChildren(), isClean()); - frequencyCaps_ = null; + trackingSetting_ = null; } - return frequencyCapsBuilder_; + return trackingSettingBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< @@ -13429,6 +16599,187 @@ public com.google.ads.googleads.v0.common.PercentCpcOrBuilder getPercentCpcOrBui onChanged();; return percentCpcBuilder_; } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.TargetCpm, com.google.ads.googleads.v0.common.TargetCpm.Builder, com.google.ads.googleads.v0.common.TargetCpmOrBuilder> targetCpmBuilder_; + /** + *
+     * A bidding strategy that automatically optimizes cost per thousand
+     * impressions.
+     * 
+ * + * .google.ads.googleads.v0.common.TargetCpm target_cpm = 41; + */ + public boolean hasTargetCpm() { + return campaignBiddingStrategyCase_ == 41; + } + /** + *
+     * A bidding strategy that automatically optimizes cost per thousand
+     * impressions.
+     * 
+ * + * .google.ads.googleads.v0.common.TargetCpm target_cpm = 41; + */ + public com.google.ads.googleads.v0.common.TargetCpm getTargetCpm() { + if (targetCpmBuilder_ == null) { + if (campaignBiddingStrategyCase_ == 41) { + return (com.google.ads.googleads.v0.common.TargetCpm) campaignBiddingStrategy_; + } + return com.google.ads.googleads.v0.common.TargetCpm.getDefaultInstance(); + } else { + if (campaignBiddingStrategyCase_ == 41) { + return targetCpmBuilder_.getMessage(); + } + return com.google.ads.googleads.v0.common.TargetCpm.getDefaultInstance(); + } + } + /** + *
+     * A bidding strategy that automatically optimizes cost per thousand
+     * impressions.
+     * 
+ * + * .google.ads.googleads.v0.common.TargetCpm target_cpm = 41; + */ + public Builder setTargetCpm(com.google.ads.googleads.v0.common.TargetCpm value) { + if (targetCpmBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + campaignBiddingStrategy_ = value; + onChanged(); + } else { + targetCpmBuilder_.setMessage(value); + } + campaignBiddingStrategyCase_ = 41; + return this; + } + /** + *
+     * A bidding strategy that automatically optimizes cost per thousand
+     * impressions.
+     * 
+ * + * .google.ads.googleads.v0.common.TargetCpm target_cpm = 41; + */ + public Builder setTargetCpm( + com.google.ads.googleads.v0.common.TargetCpm.Builder builderForValue) { + if (targetCpmBuilder_ == null) { + campaignBiddingStrategy_ = builderForValue.build(); + onChanged(); + } else { + targetCpmBuilder_.setMessage(builderForValue.build()); + } + campaignBiddingStrategyCase_ = 41; + return this; + } + /** + *
+     * A bidding strategy that automatically optimizes cost per thousand
+     * impressions.
+     * 
+ * + * .google.ads.googleads.v0.common.TargetCpm target_cpm = 41; + */ + public Builder mergeTargetCpm(com.google.ads.googleads.v0.common.TargetCpm value) { + if (targetCpmBuilder_ == null) { + if (campaignBiddingStrategyCase_ == 41 && + campaignBiddingStrategy_ != com.google.ads.googleads.v0.common.TargetCpm.getDefaultInstance()) { + campaignBiddingStrategy_ = com.google.ads.googleads.v0.common.TargetCpm.newBuilder((com.google.ads.googleads.v0.common.TargetCpm) campaignBiddingStrategy_) + .mergeFrom(value).buildPartial(); + } else { + campaignBiddingStrategy_ = value; + } + onChanged(); + } else { + if (campaignBiddingStrategyCase_ == 41) { + targetCpmBuilder_.mergeFrom(value); + } + targetCpmBuilder_.setMessage(value); + } + campaignBiddingStrategyCase_ = 41; + return this; + } + /** + *
+     * A bidding strategy that automatically optimizes cost per thousand
+     * impressions.
+     * 
+ * + * .google.ads.googleads.v0.common.TargetCpm target_cpm = 41; + */ + public Builder clearTargetCpm() { + if (targetCpmBuilder_ == null) { + if (campaignBiddingStrategyCase_ == 41) { + campaignBiddingStrategyCase_ = 0; + campaignBiddingStrategy_ = null; + onChanged(); + } + } else { + if (campaignBiddingStrategyCase_ == 41) { + campaignBiddingStrategyCase_ = 0; + campaignBiddingStrategy_ = null; + } + targetCpmBuilder_.clear(); + } + return this; + } + /** + *
+     * A bidding strategy that automatically optimizes cost per thousand
+     * impressions.
+     * 
+ * + * .google.ads.googleads.v0.common.TargetCpm target_cpm = 41; + */ + public com.google.ads.googleads.v0.common.TargetCpm.Builder getTargetCpmBuilder() { + return getTargetCpmFieldBuilder().getBuilder(); + } + /** + *
+     * A bidding strategy that automatically optimizes cost per thousand
+     * impressions.
+     * 
+ * + * .google.ads.googleads.v0.common.TargetCpm target_cpm = 41; + */ + public com.google.ads.googleads.v0.common.TargetCpmOrBuilder getTargetCpmOrBuilder() { + if ((campaignBiddingStrategyCase_ == 41) && (targetCpmBuilder_ != null)) { + return targetCpmBuilder_.getMessageOrBuilder(); + } else { + if (campaignBiddingStrategyCase_ == 41) { + return (com.google.ads.googleads.v0.common.TargetCpm) campaignBiddingStrategy_; + } + return com.google.ads.googleads.v0.common.TargetCpm.getDefaultInstance(); + } + } + /** + *
+     * A bidding strategy that automatically optimizes cost per thousand
+     * impressions.
+     * 
+ * + * .google.ads.googleads.v0.common.TargetCpm target_cpm = 41; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.TargetCpm, com.google.ads.googleads.v0.common.TargetCpm.Builder, com.google.ads.googleads.v0.common.TargetCpmOrBuilder> + getTargetCpmFieldBuilder() { + if (targetCpmBuilder_ == null) { + if (!(campaignBiddingStrategyCase_ == 41)) { + campaignBiddingStrategy_ = com.google.ads.googleads.v0.common.TargetCpm.getDefaultInstance(); + } + targetCpmBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.TargetCpm, com.google.ads.googleads.v0.common.TargetCpm.Builder, com.google.ads.googleads.v0.common.TargetCpmOrBuilder>( + (com.google.ads.googleads.v0.common.TargetCpm) campaignBiddingStrategy_, + getParentForChildren(), + isClean()); + campaignBiddingStrategy_ = null; + } + campaignBiddingStrategyCase_ = 41; + onChanged();; + return targetCpmBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignAudienceViewProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignAudienceViewProto.java index 6b3d40f07d..685f9c6bf8 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignAudienceViewProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignAudienceViewProto.java @@ -31,13 +31,14 @@ public static void registerAllExtensions( "\n>google/ads/googleads/v0/resources/camp" + "aign_audience_view.proto\022!google.ads.goo" + "gleads.v0.resources\"-\n\024CampaignAudienceV" + - "iew\022\025\n\rresource_name\030\001 \001(\tB\336\001\n%com.googl" + + "iew\022\025\n\rresource_name\030\001 \001(\tB\206\002\n%com.googl" + "e.ads.googleads.v0.resourcesB\031CampaignAu" + "dienceViewProtoP\001ZJgoogle.golang.org/gen" + "proto/googleapis/ads/googleads/v0/resour" + "ces;resources\242\002\003GAA\252\002!Google.Ads.GoogleA" + "ds.V0.Resources\312\002!Google\\Ads\\GoogleAds\\V" + - "0\\Resourcesb\006proto3" + "0\\Resources\352\002%Google::Ads::GoogleAds::V0" + + "::Resourcesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignBidModifierProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignBidModifierProto.java index ac825009af..dfb5e81a5d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignBidModifierProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignBidModifierProto.java @@ -39,13 +39,14 @@ public static void registerAllExtensions( "lue\0222\n\014bid_modifier\030\004 \001(\0132\034.google.proto" + "buf.DoubleValue\022O\n\020interaction_type\030\005 \001(" + "\01323.google.ads.googleads.v0.common.Inter" + - "actionTypeInfoH\000B\013\n\tcriterionB\335\001\n%com.go" + + "actionTypeInfoH\000B\013\n\tcriterionB\205\002\n%com.go" + "ogle.ads.googleads.v0.resourcesB\030Campaig" + "nBidModifierProtoP\001ZJgoogle.golang.org/g" + "enproto/googleapis/ads/googleads/v0/reso" + "urces;resources\242\002\003GAA\252\002!Google.Ads.Googl" + "eAds.V0.Resources\312\002!Google\\Ads\\GoogleAds" + - "\\V0\\Resourcesb\006proto3" + "\\V0\\Resources\352\002%Google::Ads::GoogleAds::" + + "V0::Resourcesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignBudget.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignBudget.java index 6f335304a1..f3bf0320b8 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignBudget.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignBudget.java @@ -23,6 +23,7 @@ private CampaignBudget() { resourceName_ = ""; status_ = 0; deliveryMethod_ = 0; + period_ = 0; } @java.lang.Override @@ -145,6 +146,90 @@ private CampaignBudget( break; } + case 90: { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (hasRecommendedBudget_ != null) { + subBuilder = hasRecommendedBudget_.toBuilder(); + } + hasRecommendedBudget_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(hasRecommendedBudget_); + hasRecommendedBudget_ = subBuilder.buildPartial(); + } + + break; + } + case 98: { + com.google.protobuf.Int64Value.Builder subBuilder = null; + if (recommendedBudgetAmountMicros_ != null) { + subBuilder = recommendedBudgetAmountMicros_.toBuilder(); + } + recommendedBudgetAmountMicros_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(recommendedBudgetAmountMicros_); + recommendedBudgetAmountMicros_ = subBuilder.buildPartial(); + } + + break; + } + case 104: { + int rawValue = input.readEnum(); + + period_ = rawValue; + break; + } + case 114: { + com.google.protobuf.Int64Value.Builder subBuilder = null; + if (recommendedBudgetEstimatedChangeWeeklyClicks_ != null) { + subBuilder = recommendedBudgetEstimatedChangeWeeklyClicks_.toBuilder(); + } + recommendedBudgetEstimatedChangeWeeklyClicks_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(recommendedBudgetEstimatedChangeWeeklyClicks_); + recommendedBudgetEstimatedChangeWeeklyClicks_ = subBuilder.buildPartial(); + } + + break; + } + case 122: { + com.google.protobuf.Int64Value.Builder subBuilder = null; + if (recommendedBudgetEstimatedChangeWeeklyCostMicros_ != null) { + subBuilder = recommendedBudgetEstimatedChangeWeeklyCostMicros_.toBuilder(); + } + recommendedBudgetEstimatedChangeWeeklyCostMicros_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(recommendedBudgetEstimatedChangeWeeklyCostMicros_); + recommendedBudgetEstimatedChangeWeeklyCostMicros_ = subBuilder.buildPartial(); + } + + break; + } + case 130: { + com.google.protobuf.Int64Value.Builder subBuilder = null; + if (recommendedBudgetEstimatedChangeWeeklyInteractions_ != null) { + subBuilder = recommendedBudgetEstimatedChangeWeeklyInteractions_.toBuilder(); + } + recommendedBudgetEstimatedChangeWeeklyInteractions_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(recommendedBudgetEstimatedChangeWeeklyInteractions_); + recommendedBudgetEstimatedChangeWeeklyInteractions_ = subBuilder.buildPartial(); + } + + break; + } + case 138: { + com.google.protobuf.Int64Value.Builder subBuilder = null; + if (recommendedBudgetEstimatedChangeWeeklyViews_ != null) { + subBuilder = recommendedBudgetEstimatedChangeWeeklyViews_.toBuilder(); + } + recommendedBudgetEstimatedChangeWeeklyViews_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(recommendedBudgetEstimatedChangeWeeklyViews_); + recommendedBudgetEstimatedChangeWeeklyViews_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -455,8 +540,8 @@ public com.google.ads.googleads.v0.enums.BudgetDeliveryMethodEnum.BudgetDelivery private com.google.protobuf.BoolValue explicitlyShared_; /** *
-   * Whether the budget is explicitly shared. This field is set to false by
-   * default.
+   * Specifies whether the budget is explicitly shared. Defaults to true if
+   * unspecified in a create operation.
    * If true, the budget was created with the purpose of sharing
    * across one or more campaigns.
    * If false, the budget was created with the intention of only being used
@@ -476,8 +561,8 @@ public boolean hasExplicitlyShared() {
   }
   /**
    * 
-   * Whether the budget is explicitly shared. This field is set to false by
-   * default.
+   * Specifies whether the budget is explicitly shared. Defaults to true if
+   * unspecified in a create operation.
    * If true, the budget was created with the purpose of sharing
    * across one or more campaigns.
    * If false, the budget was created with the intention of only being used
@@ -497,8 +582,8 @@ public com.google.protobuf.BoolValue getExplicitlyShared() {
   }
   /**
    * 
-   * Whether the budget is explicitly shared. This field is set to false by
-   * default.
+   * Specifies whether the budget is explicitly shared. Defaults to true if
+   * unspecified in a create operation.
    * If true, the budget was created with the purpose of sharing
    * across one or more campaigns.
    * If false, the budget was created with the intention of only being used
@@ -553,6 +638,262 @@ public com.google.protobuf.Int64ValueOrBuilder getReferenceCountOrBuilder() {
     return getReferenceCount();
   }
 
+  public static final int HAS_RECOMMENDED_BUDGET_FIELD_NUMBER = 11;
+  private com.google.protobuf.BoolValue hasRecommendedBudget_;
+  /**
+   * 
+   * Indicates whether there is a recommended budget for this campaign budget.
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.BoolValue has_recommended_budget = 11; + */ + public boolean hasHasRecommendedBudget() { + return hasRecommendedBudget_ != null; + } + /** + *
+   * Indicates whether there is a recommended budget for this campaign budget.
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.BoolValue has_recommended_budget = 11; + */ + public com.google.protobuf.BoolValue getHasRecommendedBudget() { + return hasRecommendedBudget_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : hasRecommendedBudget_; + } + /** + *
+   * Indicates whether there is a recommended budget for this campaign budget.
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.BoolValue has_recommended_budget = 11; + */ + public com.google.protobuf.BoolValueOrBuilder getHasRecommendedBudgetOrBuilder() { + return getHasRecommendedBudget(); + } + + public static final int RECOMMENDED_BUDGET_AMOUNT_MICROS_FIELD_NUMBER = 12; + private com.google.protobuf.Int64Value recommendedBudgetAmountMicros_; + /** + *
+   * The recommended budget amount. If no recommendation is available, this will
+   * be set to the budget amount.
+   * Amount is specified in micros, where one million is equivalent to one
+   * currency unit.
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value recommended_budget_amount_micros = 12; + */ + public boolean hasRecommendedBudgetAmountMicros() { + return recommendedBudgetAmountMicros_ != null; + } + /** + *
+   * The recommended budget amount. If no recommendation is available, this will
+   * be set to the budget amount.
+   * Amount is specified in micros, where one million is equivalent to one
+   * currency unit.
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value recommended_budget_amount_micros = 12; + */ + public com.google.protobuf.Int64Value getRecommendedBudgetAmountMicros() { + return recommendedBudgetAmountMicros_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : recommendedBudgetAmountMicros_; + } + /** + *
+   * The recommended budget amount. If no recommendation is available, this will
+   * be set to the budget amount.
+   * Amount is specified in micros, where one million is equivalent to one
+   * currency unit.
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value recommended_budget_amount_micros = 12; + */ + public com.google.protobuf.Int64ValueOrBuilder getRecommendedBudgetAmountMicrosOrBuilder() { + return getRecommendedBudgetAmountMicros(); + } + + public static final int PERIOD_FIELD_NUMBER = 13; + private int period_; + /** + *
+   * Period over which to spend the budget. Defaults to DAILY if not specified.
+   * 
+ * + * .google.ads.googleads.v0.enums.BudgetPeriodEnum.BudgetPeriod period = 13; + */ + public int getPeriodValue() { + return period_; + } + /** + *
+   * Period over which to spend the budget. Defaults to DAILY if not specified.
+   * 
+ * + * .google.ads.googleads.v0.enums.BudgetPeriodEnum.BudgetPeriod period = 13; + */ + public com.google.ads.googleads.v0.enums.BudgetPeriodEnum.BudgetPeriod getPeriod() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.BudgetPeriodEnum.BudgetPeriod result = com.google.ads.googleads.v0.enums.BudgetPeriodEnum.BudgetPeriod.valueOf(period_); + return result == null ? com.google.ads.googleads.v0.enums.BudgetPeriodEnum.BudgetPeriod.UNRECOGNIZED : result; + } + + public static final int RECOMMENDED_BUDGET_ESTIMATED_CHANGE_WEEKLY_CLICKS_FIELD_NUMBER = 14; + private com.google.protobuf.Int64Value recommendedBudgetEstimatedChangeWeeklyClicks_; + /** + *
+   * The estimated change in weekly clicks if the recommended budget is applied.
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_clicks = 14; + */ + public boolean hasRecommendedBudgetEstimatedChangeWeeklyClicks() { + return recommendedBudgetEstimatedChangeWeeklyClicks_ != null; + } + /** + *
+   * The estimated change in weekly clicks if the recommended budget is applied.
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_clicks = 14; + */ + public com.google.protobuf.Int64Value getRecommendedBudgetEstimatedChangeWeeklyClicks() { + return recommendedBudgetEstimatedChangeWeeklyClicks_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : recommendedBudgetEstimatedChangeWeeklyClicks_; + } + /** + *
+   * The estimated change in weekly clicks if the recommended budget is applied.
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_clicks = 14; + */ + public com.google.protobuf.Int64ValueOrBuilder getRecommendedBudgetEstimatedChangeWeeklyClicksOrBuilder() { + return getRecommendedBudgetEstimatedChangeWeeklyClicks(); + } + + public static final int RECOMMENDED_BUDGET_ESTIMATED_CHANGE_WEEKLY_COST_MICROS_FIELD_NUMBER = 15; + private com.google.protobuf.Int64Value recommendedBudgetEstimatedChangeWeeklyCostMicros_; + /** + *
+   * The estimated change in weekly cost in micros if the recommended budget is
+   * applied. One million is equivalent to one currency unit.
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_cost_micros = 15; + */ + public boolean hasRecommendedBudgetEstimatedChangeWeeklyCostMicros() { + return recommendedBudgetEstimatedChangeWeeklyCostMicros_ != null; + } + /** + *
+   * The estimated change in weekly cost in micros if the recommended budget is
+   * applied. One million is equivalent to one currency unit.
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_cost_micros = 15; + */ + public com.google.protobuf.Int64Value getRecommendedBudgetEstimatedChangeWeeklyCostMicros() { + return recommendedBudgetEstimatedChangeWeeklyCostMicros_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : recommendedBudgetEstimatedChangeWeeklyCostMicros_; + } + /** + *
+   * The estimated change in weekly cost in micros if the recommended budget is
+   * applied. One million is equivalent to one currency unit.
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_cost_micros = 15; + */ + public com.google.protobuf.Int64ValueOrBuilder getRecommendedBudgetEstimatedChangeWeeklyCostMicrosOrBuilder() { + return getRecommendedBudgetEstimatedChangeWeeklyCostMicros(); + } + + public static final int RECOMMENDED_BUDGET_ESTIMATED_CHANGE_WEEKLY_INTERACTIONS_FIELD_NUMBER = 16; + private com.google.protobuf.Int64Value recommendedBudgetEstimatedChangeWeeklyInteractions_; + /** + *
+   * The estimated change in weekly interactions if the recommended budget is
+   * applied.
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_interactions = 16; + */ + public boolean hasRecommendedBudgetEstimatedChangeWeeklyInteractions() { + return recommendedBudgetEstimatedChangeWeeklyInteractions_ != null; + } + /** + *
+   * The estimated change in weekly interactions if the recommended budget is
+   * applied.
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_interactions = 16; + */ + public com.google.protobuf.Int64Value getRecommendedBudgetEstimatedChangeWeeklyInteractions() { + return recommendedBudgetEstimatedChangeWeeklyInteractions_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : recommendedBudgetEstimatedChangeWeeklyInteractions_; + } + /** + *
+   * The estimated change in weekly interactions if the recommended budget is
+   * applied.
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_interactions = 16; + */ + public com.google.protobuf.Int64ValueOrBuilder getRecommendedBudgetEstimatedChangeWeeklyInteractionsOrBuilder() { + return getRecommendedBudgetEstimatedChangeWeeklyInteractions(); + } + + public static final int RECOMMENDED_BUDGET_ESTIMATED_CHANGE_WEEKLY_VIEWS_FIELD_NUMBER = 17; + private com.google.protobuf.Int64Value recommendedBudgetEstimatedChangeWeeklyViews_; + /** + *
+   * The estimated change in weekly views if the recommended budget is applied.
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_views = 17; + */ + public boolean hasRecommendedBudgetEstimatedChangeWeeklyViews() { + return recommendedBudgetEstimatedChangeWeeklyViews_ != null; + } + /** + *
+   * The estimated change in weekly views if the recommended budget is applied.
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_views = 17; + */ + public com.google.protobuf.Int64Value getRecommendedBudgetEstimatedChangeWeeklyViews() { + return recommendedBudgetEstimatedChangeWeeklyViews_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : recommendedBudgetEstimatedChangeWeeklyViews_; + } + /** + *
+   * The estimated change in weekly views if the recommended budget is applied.
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_views = 17; + */ + public com.google.protobuf.Int64ValueOrBuilder getRecommendedBudgetEstimatedChangeWeeklyViewsOrBuilder() { + return getRecommendedBudgetEstimatedChangeWeeklyViews(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -594,6 +935,27 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (totalAmountMicros_ != null) { output.writeMessage(10, getTotalAmountMicros()); } + if (hasRecommendedBudget_ != null) { + output.writeMessage(11, getHasRecommendedBudget()); + } + if (recommendedBudgetAmountMicros_ != null) { + output.writeMessage(12, getRecommendedBudgetAmountMicros()); + } + if (period_ != com.google.ads.googleads.v0.enums.BudgetPeriodEnum.BudgetPeriod.UNSPECIFIED.getNumber()) { + output.writeEnum(13, period_); + } + if (recommendedBudgetEstimatedChangeWeeklyClicks_ != null) { + output.writeMessage(14, getRecommendedBudgetEstimatedChangeWeeklyClicks()); + } + if (recommendedBudgetEstimatedChangeWeeklyCostMicros_ != null) { + output.writeMessage(15, getRecommendedBudgetEstimatedChangeWeeklyCostMicros()); + } + if (recommendedBudgetEstimatedChangeWeeklyInteractions_ != null) { + output.writeMessage(16, getRecommendedBudgetEstimatedChangeWeeklyInteractions()); + } + if (recommendedBudgetEstimatedChangeWeeklyViews_ != null) { + output.writeMessage(17, getRecommendedBudgetEstimatedChangeWeeklyViews()); + } unknownFields.writeTo(output); } @@ -638,6 +1000,34 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getTotalAmountMicros()); } + if (hasRecommendedBudget_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getHasRecommendedBudget()); + } + if (recommendedBudgetAmountMicros_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getRecommendedBudgetAmountMicros()); + } + if (period_ != com.google.ads.googleads.v0.enums.BudgetPeriodEnum.BudgetPeriod.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(13, period_); + } + if (recommendedBudgetEstimatedChangeWeeklyClicks_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getRecommendedBudgetEstimatedChangeWeeklyClicks()); + } + if (recommendedBudgetEstimatedChangeWeeklyCostMicros_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getRecommendedBudgetEstimatedChangeWeeklyCostMicros()); + } + if (recommendedBudgetEstimatedChangeWeeklyInteractions_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getRecommendedBudgetEstimatedChangeWeeklyInteractions()); + } + if (recommendedBudgetEstimatedChangeWeeklyViews_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getRecommendedBudgetEstimatedChangeWeeklyViews()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -688,6 +1078,37 @@ public boolean equals(final java.lang.Object obj) { result = result && getReferenceCount() .equals(other.getReferenceCount()); } + result = result && (hasHasRecommendedBudget() == other.hasHasRecommendedBudget()); + if (hasHasRecommendedBudget()) { + result = result && getHasRecommendedBudget() + .equals(other.getHasRecommendedBudget()); + } + result = result && (hasRecommendedBudgetAmountMicros() == other.hasRecommendedBudgetAmountMicros()); + if (hasRecommendedBudgetAmountMicros()) { + result = result && getRecommendedBudgetAmountMicros() + .equals(other.getRecommendedBudgetAmountMicros()); + } + result = result && period_ == other.period_; + result = result && (hasRecommendedBudgetEstimatedChangeWeeklyClicks() == other.hasRecommendedBudgetEstimatedChangeWeeklyClicks()); + if (hasRecommendedBudgetEstimatedChangeWeeklyClicks()) { + result = result && getRecommendedBudgetEstimatedChangeWeeklyClicks() + .equals(other.getRecommendedBudgetEstimatedChangeWeeklyClicks()); + } + result = result && (hasRecommendedBudgetEstimatedChangeWeeklyCostMicros() == other.hasRecommendedBudgetEstimatedChangeWeeklyCostMicros()); + if (hasRecommendedBudgetEstimatedChangeWeeklyCostMicros()) { + result = result && getRecommendedBudgetEstimatedChangeWeeklyCostMicros() + .equals(other.getRecommendedBudgetEstimatedChangeWeeklyCostMicros()); + } + result = result && (hasRecommendedBudgetEstimatedChangeWeeklyInteractions() == other.hasRecommendedBudgetEstimatedChangeWeeklyInteractions()); + if (hasRecommendedBudgetEstimatedChangeWeeklyInteractions()) { + result = result && getRecommendedBudgetEstimatedChangeWeeklyInteractions() + .equals(other.getRecommendedBudgetEstimatedChangeWeeklyInteractions()); + } + result = result && (hasRecommendedBudgetEstimatedChangeWeeklyViews() == other.hasRecommendedBudgetEstimatedChangeWeeklyViews()); + if (hasRecommendedBudgetEstimatedChangeWeeklyViews()) { + result = result && getRecommendedBudgetEstimatedChangeWeeklyViews() + .equals(other.getRecommendedBudgetEstimatedChangeWeeklyViews()); + } result = result && unknownFields.equals(other.unknownFields); return result; } @@ -729,6 +1150,32 @@ public int hashCode() { hash = (37 * hash) + REFERENCE_COUNT_FIELD_NUMBER; hash = (53 * hash) + getReferenceCount().hashCode(); } + if (hasHasRecommendedBudget()) { + hash = (37 * hash) + HAS_RECOMMENDED_BUDGET_FIELD_NUMBER; + hash = (53 * hash) + getHasRecommendedBudget().hashCode(); + } + if (hasRecommendedBudgetAmountMicros()) { + hash = (37 * hash) + RECOMMENDED_BUDGET_AMOUNT_MICROS_FIELD_NUMBER; + hash = (53 * hash) + getRecommendedBudgetAmountMicros().hashCode(); + } + hash = (37 * hash) + PERIOD_FIELD_NUMBER; + hash = (53 * hash) + period_; + if (hasRecommendedBudgetEstimatedChangeWeeklyClicks()) { + hash = (37 * hash) + RECOMMENDED_BUDGET_ESTIMATED_CHANGE_WEEKLY_CLICKS_FIELD_NUMBER; + hash = (53 * hash) + getRecommendedBudgetEstimatedChangeWeeklyClicks().hashCode(); + } + if (hasRecommendedBudgetEstimatedChangeWeeklyCostMicros()) { + hash = (37 * hash) + RECOMMENDED_BUDGET_ESTIMATED_CHANGE_WEEKLY_COST_MICROS_FIELD_NUMBER; + hash = (53 * hash) + getRecommendedBudgetEstimatedChangeWeeklyCostMicros().hashCode(); + } + if (hasRecommendedBudgetEstimatedChangeWeeklyInteractions()) { + hash = (37 * hash) + RECOMMENDED_BUDGET_ESTIMATED_CHANGE_WEEKLY_INTERACTIONS_FIELD_NUMBER; + hash = (53 * hash) + getRecommendedBudgetEstimatedChangeWeeklyInteractions().hashCode(); + } + if (hasRecommendedBudgetEstimatedChangeWeeklyViews()) { + hash = (37 * hash) + RECOMMENDED_BUDGET_ESTIMATED_CHANGE_WEEKLY_VIEWS_FIELD_NUMBER; + hash = (53 * hash) + getRecommendedBudgetEstimatedChangeWeeklyViews().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -908,6 +1355,44 @@ public Builder clear() { referenceCount_ = null; referenceCountBuilder_ = null; } + if (hasRecommendedBudgetBuilder_ == null) { + hasRecommendedBudget_ = null; + } else { + hasRecommendedBudget_ = null; + hasRecommendedBudgetBuilder_ = null; + } + if (recommendedBudgetAmountMicrosBuilder_ == null) { + recommendedBudgetAmountMicros_ = null; + } else { + recommendedBudgetAmountMicros_ = null; + recommendedBudgetAmountMicrosBuilder_ = null; + } + period_ = 0; + + if (recommendedBudgetEstimatedChangeWeeklyClicksBuilder_ == null) { + recommendedBudgetEstimatedChangeWeeklyClicks_ = null; + } else { + recommendedBudgetEstimatedChangeWeeklyClicks_ = null; + recommendedBudgetEstimatedChangeWeeklyClicksBuilder_ = null; + } + if (recommendedBudgetEstimatedChangeWeeklyCostMicrosBuilder_ == null) { + recommendedBudgetEstimatedChangeWeeklyCostMicros_ = null; + } else { + recommendedBudgetEstimatedChangeWeeklyCostMicros_ = null; + recommendedBudgetEstimatedChangeWeeklyCostMicrosBuilder_ = null; + } + if (recommendedBudgetEstimatedChangeWeeklyInteractionsBuilder_ == null) { + recommendedBudgetEstimatedChangeWeeklyInteractions_ = null; + } else { + recommendedBudgetEstimatedChangeWeeklyInteractions_ = null; + recommendedBudgetEstimatedChangeWeeklyInteractionsBuilder_ = null; + } + if (recommendedBudgetEstimatedChangeWeeklyViewsBuilder_ == null) { + recommendedBudgetEstimatedChangeWeeklyViews_ = null; + } else { + recommendedBudgetEstimatedChangeWeeklyViews_ = null; + recommendedBudgetEstimatedChangeWeeklyViewsBuilder_ = null; + } return this; } @@ -967,6 +1452,37 @@ public com.google.ads.googleads.v0.resources.CampaignBudget buildPartial() { } else { result.referenceCount_ = referenceCountBuilder_.build(); } + if (hasRecommendedBudgetBuilder_ == null) { + result.hasRecommendedBudget_ = hasRecommendedBudget_; + } else { + result.hasRecommendedBudget_ = hasRecommendedBudgetBuilder_.build(); + } + if (recommendedBudgetAmountMicrosBuilder_ == null) { + result.recommendedBudgetAmountMicros_ = recommendedBudgetAmountMicros_; + } else { + result.recommendedBudgetAmountMicros_ = recommendedBudgetAmountMicrosBuilder_.build(); + } + result.period_ = period_; + if (recommendedBudgetEstimatedChangeWeeklyClicksBuilder_ == null) { + result.recommendedBudgetEstimatedChangeWeeklyClicks_ = recommendedBudgetEstimatedChangeWeeklyClicks_; + } else { + result.recommendedBudgetEstimatedChangeWeeklyClicks_ = recommendedBudgetEstimatedChangeWeeklyClicksBuilder_.build(); + } + if (recommendedBudgetEstimatedChangeWeeklyCostMicrosBuilder_ == null) { + result.recommendedBudgetEstimatedChangeWeeklyCostMicros_ = recommendedBudgetEstimatedChangeWeeklyCostMicros_; + } else { + result.recommendedBudgetEstimatedChangeWeeklyCostMicros_ = recommendedBudgetEstimatedChangeWeeklyCostMicrosBuilder_.build(); + } + if (recommendedBudgetEstimatedChangeWeeklyInteractionsBuilder_ == null) { + result.recommendedBudgetEstimatedChangeWeeklyInteractions_ = recommendedBudgetEstimatedChangeWeeklyInteractions_; + } else { + result.recommendedBudgetEstimatedChangeWeeklyInteractions_ = recommendedBudgetEstimatedChangeWeeklyInteractionsBuilder_.build(); + } + if (recommendedBudgetEstimatedChangeWeeklyViewsBuilder_ == null) { + result.recommendedBudgetEstimatedChangeWeeklyViews_ = recommendedBudgetEstimatedChangeWeeklyViews_; + } else { + result.recommendedBudgetEstimatedChangeWeeklyViews_ = recommendedBudgetEstimatedChangeWeeklyViewsBuilder_.build(); + } onBuilt(); return result; } @@ -1043,11 +1559,32 @@ public Builder mergeFrom(com.google.ads.googleads.v0.resources.CampaignBudget ot if (other.hasReferenceCount()) { mergeReferenceCount(other.getReferenceCount()); } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - + if (other.hasHasRecommendedBudget()) { + mergeHasRecommendedBudget(other.getHasRecommendedBudget()); + } + if (other.hasRecommendedBudgetAmountMicros()) { + mergeRecommendedBudgetAmountMicros(other.getRecommendedBudgetAmountMicros()); + } + if (other.period_ != 0) { + setPeriodValue(other.getPeriodValue()); + } + if (other.hasRecommendedBudgetEstimatedChangeWeeklyClicks()) { + mergeRecommendedBudgetEstimatedChangeWeeklyClicks(other.getRecommendedBudgetEstimatedChangeWeeklyClicks()); + } + if (other.hasRecommendedBudgetEstimatedChangeWeeklyCostMicros()) { + mergeRecommendedBudgetEstimatedChangeWeeklyCostMicros(other.getRecommendedBudgetEstimatedChangeWeeklyCostMicros()); + } + if (other.hasRecommendedBudgetEstimatedChangeWeeklyInteractions()) { + mergeRecommendedBudgetEstimatedChangeWeeklyInteractions(other.getRecommendedBudgetEstimatedChangeWeeklyInteractions()); + } + if (other.hasRecommendedBudgetEstimatedChangeWeeklyViews()) { + mergeRecommendedBudgetEstimatedChangeWeeklyViews(other.getRecommendedBudgetEstimatedChangeWeeklyViews()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + @java.lang.Override public final boolean isInitialized() { return true; @@ -2054,8 +2591,8 @@ public Builder clearDeliveryMethod() { com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> explicitlySharedBuilder_; /** *
-     * Whether the budget is explicitly shared. This field is set to false by
-     * default.
+     * Specifies whether the budget is explicitly shared. Defaults to true if
+     * unspecified in a create operation.
      * If true, the budget was created with the purpose of sharing
      * across one or more campaigns.
      * If false, the budget was created with the intention of only being used
@@ -2075,8 +2612,8 @@ public boolean hasExplicitlyShared() {
     }
     /**
      * 
-     * Whether the budget is explicitly shared. This field is set to false by
-     * default.
+     * Specifies whether the budget is explicitly shared. Defaults to true if
+     * unspecified in a create operation.
      * If true, the budget was created with the purpose of sharing
      * across one or more campaigns.
      * If false, the budget was created with the intention of only being used
@@ -2100,8 +2637,8 @@ public com.google.protobuf.BoolValue getExplicitlyShared() {
     }
     /**
      * 
-     * Whether the budget is explicitly shared. This field is set to false by
-     * default.
+     * Specifies whether the budget is explicitly shared. Defaults to true if
+     * unspecified in a create operation.
      * If true, the budget was created with the purpose of sharing
      * across one or more campaigns.
      * If false, the budget was created with the intention of only being used
@@ -2131,8 +2668,8 @@ public Builder setExplicitlyShared(com.google.protobuf.BoolValue value) {
     }
     /**
      * 
-     * Whether the budget is explicitly shared. This field is set to false by
-     * default.
+     * Specifies whether the budget is explicitly shared. Defaults to true if
+     * unspecified in a create operation.
      * If true, the budget was created with the purpose of sharing
      * across one or more campaigns.
      * If false, the budget was created with the intention of only being used
@@ -2160,8 +2697,8 @@ public Builder setExplicitlyShared(
     }
     /**
      * 
-     * Whether the budget is explicitly shared. This field is set to false by
-     * default.
+     * Specifies whether the budget is explicitly shared. Defaults to true if
+     * unspecified in a create operation.
      * If true, the budget was created with the purpose of sharing
      * across one or more campaigns.
      * If false, the budget was created with the intention of only being used
@@ -2193,8 +2730,8 @@ public Builder mergeExplicitlyShared(com.google.protobuf.BoolValue value) {
     }
     /**
      * 
-     * Whether the budget is explicitly shared. This field is set to false by
-     * default.
+     * Specifies whether the budget is explicitly shared. Defaults to true if
+     * unspecified in a create operation.
      * If true, the budget was created with the purpose of sharing
      * across one or more campaigns.
      * If false, the budget was created with the intention of only being used
@@ -2222,8 +2759,8 @@ public Builder clearExplicitlyShared() {
     }
     /**
      * 
-     * Whether the budget is explicitly shared. This field is set to false by
-     * default.
+     * Specifies whether the budget is explicitly shared. Defaults to true if
+     * unspecified in a create operation.
      * If true, the budget was created with the purpose of sharing
      * across one or more campaigns.
      * If false, the budget was created with the intention of only being used
@@ -2245,8 +2782,8 @@ public com.google.protobuf.BoolValue.Builder getExplicitlySharedBuilder() {
     }
     /**
      * 
-     * Whether the budget is explicitly shared. This field is set to false by
-     * default.
+     * Specifies whether the budget is explicitly shared. Defaults to true if
+     * unspecified in a create operation.
      * If true, the budget was created with the purpose of sharing
      * across one or more campaigns.
      * If false, the budget was created with the intention of only being used
@@ -2271,8 +2808,8 @@ public com.google.protobuf.BoolValueOrBuilder getExplicitlySharedOrBuilder() {
     }
     /**
      * 
-     * Whether the budget is explicitly shared. This field is set to false by
-     * default.
+     * Specifies whether the budget is explicitly shared. Defaults to true if
+     * unspecified in a create operation.
      * If true, the budget was created with the purpose of sharing
      * across one or more campaigns.
      * If false, the budget was created with the intention of only being used
@@ -2462,6 +2999,1088 @@ public com.google.protobuf.Int64ValueOrBuilder getReferenceCountOrBuilder() {
       }
       return referenceCountBuilder_;
     }
+
+    private com.google.protobuf.BoolValue hasRecommendedBudget_ = null;
+    private com.google.protobuf.SingleFieldBuilderV3<
+        com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> hasRecommendedBudgetBuilder_;
+    /**
+     * 
+     * Indicates whether there is a recommended budget for this campaign budget.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.BoolValue has_recommended_budget = 11; + */ + public boolean hasHasRecommendedBudget() { + return hasRecommendedBudgetBuilder_ != null || hasRecommendedBudget_ != null; + } + /** + *
+     * Indicates whether there is a recommended budget for this campaign budget.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.BoolValue has_recommended_budget = 11; + */ + public com.google.protobuf.BoolValue getHasRecommendedBudget() { + if (hasRecommendedBudgetBuilder_ == null) { + return hasRecommendedBudget_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : hasRecommendedBudget_; + } else { + return hasRecommendedBudgetBuilder_.getMessage(); + } + } + /** + *
+     * Indicates whether there is a recommended budget for this campaign budget.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.BoolValue has_recommended_budget = 11; + */ + public Builder setHasRecommendedBudget(com.google.protobuf.BoolValue value) { + if (hasRecommendedBudgetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hasRecommendedBudget_ = value; + onChanged(); + } else { + hasRecommendedBudgetBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Indicates whether there is a recommended budget for this campaign budget.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.BoolValue has_recommended_budget = 11; + */ + public Builder setHasRecommendedBudget( + com.google.protobuf.BoolValue.Builder builderForValue) { + if (hasRecommendedBudgetBuilder_ == null) { + hasRecommendedBudget_ = builderForValue.build(); + onChanged(); + } else { + hasRecommendedBudgetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Indicates whether there is a recommended budget for this campaign budget.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.BoolValue has_recommended_budget = 11; + */ + public Builder mergeHasRecommendedBudget(com.google.protobuf.BoolValue value) { + if (hasRecommendedBudgetBuilder_ == null) { + if (hasRecommendedBudget_ != null) { + hasRecommendedBudget_ = + com.google.protobuf.BoolValue.newBuilder(hasRecommendedBudget_).mergeFrom(value).buildPartial(); + } else { + hasRecommendedBudget_ = value; + } + onChanged(); + } else { + hasRecommendedBudgetBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Indicates whether there is a recommended budget for this campaign budget.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.BoolValue has_recommended_budget = 11; + */ + public Builder clearHasRecommendedBudget() { + if (hasRecommendedBudgetBuilder_ == null) { + hasRecommendedBudget_ = null; + onChanged(); + } else { + hasRecommendedBudget_ = null; + hasRecommendedBudgetBuilder_ = null; + } + + return this; + } + /** + *
+     * Indicates whether there is a recommended budget for this campaign budget.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.BoolValue has_recommended_budget = 11; + */ + public com.google.protobuf.BoolValue.Builder getHasRecommendedBudgetBuilder() { + + onChanged(); + return getHasRecommendedBudgetFieldBuilder().getBuilder(); + } + /** + *
+     * Indicates whether there is a recommended budget for this campaign budget.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.BoolValue has_recommended_budget = 11; + */ + public com.google.protobuf.BoolValueOrBuilder getHasRecommendedBudgetOrBuilder() { + if (hasRecommendedBudgetBuilder_ != null) { + return hasRecommendedBudgetBuilder_.getMessageOrBuilder(); + } else { + return hasRecommendedBudget_ == null ? + com.google.protobuf.BoolValue.getDefaultInstance() : hasRecommendedBudget_; + } + } + /** + *
+     * Indicates whether there is a recommended budget for this campaign budget.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.BoolValue has_recommended_budget = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> + getHasRecommendedBudgetFieldBuilder() { + if (hasRecommendedBudgetBuilder_ == null) { + hasRecommendedBudgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( + getHasRecommendedBudget(), + getParentForChildren(), + isClean()); + hasRecommendedBudget_ = null; + } + return hasRecommendedBudgetBuilder_; + } + + private com.google.protobuf.Int64Value recommendedBudgetAmountMicros_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> recommendedBudgetAmountMicrosBuilder_; + /** + *
+     * The recommended budget amount. If no recommendation is available, this will
+     * be set to the budget amount.
+     * Amount is specified in micros, where one million is equivalent to one
+     * currency unit.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_amount_micros = 12; + */ + public boolean hasRecommendedBudgetAmountMicros() { + return recommendedBudgetAmountMicrosBuilder_ != null || recommendedBudgetAmountMicros_ != null; + } + /** + *
+     * The recommended budget amount. If no recommendation is available, this will
+     * be set to the budget amount.
+     * Amount is specified in micros, where one million is equivalent to one
+     * currency unit.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_amount_micros = 12; + */ + public com.google.protobuf.Int64Value getRecommendedBudgetAmountMicros() { + if (recommendedBudgetAmountMicrosBuilder_ == null) { + return recommendedBudgetAmountMicros_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : recommendedBudgetAmountMicros_; + } else { + return recommendedBudgetAmountMicrosBuilder_.getMessage(); + } + } + /** + *
+     * The recommended budget amount. If no recommendation is available, this will
+     * be set to the budget amount.
+     * Amount is specified in micros, where one million is equivalent to one
+     * currency unit.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_amount_micros = 12; + */ + public Builder setRecommendedBudgetAmountMicros(com.google.protobuf.Int64Value value) { + if (recommendedBudgetAmountMicrosBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + recommendedBudgetAmountMicros_ = value; + onChanged(); + } else { + recommendedBudgetAmountMicrosBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The recommended budget amount. If no recommendation is available, this will
+     * be set to the budget amount.
+     * Amount is specified in micros, where one million is equivalent to one
+     * currency unit.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_amount_micros = 12; + */ + public Builder setRecommendedBudgetAmountMicros( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (recommendedBudgetAmountMicrosBuilder_ == null) { + recommendedBudgetAmountMicros_ = builderForValue.build(); + onChanged(); + } else { + recommendedBudgetAmountMicrosBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The recommended budget amount. If no recommendation is available, this will
+     * be set to the budget amount.
+     * Amount is specified in micros, where one million is equivalent to one
+     * currency unit.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_amount_micros = 12; + */ + public Builder mergeRecommendedBudgetAmountMicros(com.google.protobuf.Int64Value value) { + if (recommendedBudgetAmountMicrosBuilder_ == null) { + if (recommendedBudgetAmountMicros_ != null) { + recommendedBudgetAmountMicros_ = + com.google.protobuf.Int64Value.newBuilder(recommendedBudgetAmountMicros_).mergeFrom(value).buildPartial(); + } else { + recommendedBudgetAmountMicros_ = value; + } + onChanged(); + } else { + recommendedBudgetAmountMicrosBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The recommended budget amount. If no recommendation is available, this will
+     * be set to the budget amount.
+     * Amount is specified in micros, where one million is equivalent to one
+     * currency unit.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_amount_micros = 12; + */ + public Builder clearRecommendedBudgetAmountMicros() { + if (recommendedBudgetAmountMicrosBuilder_ == null) { + recommendedBudgetAmountMicros_ = null; + onChanged(); + } else { + recommendedBudgetAmountMicros_ = null; + recommendedBudgetAmountMicrosBuilder_ = null; + } + + return this; + } + /** + *
+     * The recommended budget amount. If no recommendation is available, this will
+     * be set to the budget amount.
+     * Amount is specified in micros, where one million is equivalent to one
+     * currency unit.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_amount_micros = 12; + */ + public com.google.protobuf.Int64Value.Builder getRecommendedBudgetAmountMicrosBuilder() { + + onChanged(); + return getRecommendedBudgetAmountMicrosFieldBuilder().getBuilder(); + } + /** + *
+     * The recommended budget amount. If no recommendation is available, this will
+     * be set to the budget amount.
+     * Amount is specified in micros, where one million is equivalent to one
+     * currency unit.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_amount_micros = 12; + */ + public com.google.protobuf.Int64ValueOrBuilder getRecommendedBudgetAmountMicrosOrBuilder() { + if (recommendedBudgetAmountMicrosBuilder_ != null) { + return recommendedBudgetAmountMicrosBuilder_.getMessageOrBuilder(); + } else { + return recommendedBudgetAmountMicros_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : recommendedBudgetAmountMicros_; + } + } + /** + *
+     * The recommended budget amount. If no recommendation is available, this will
+     * be set to the budget amount.
+     * Amount is specified in micros, where one million is equivalent to one
+     * currency unit.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_amount_micros = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + getRecommendedBudgetAmountMicrosFieldBuilder() { + if (recommendedBudgetAmountMicrosBuilder_ == null) { + recommendedBudgetAmountMicrosBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getRecommendedBudgetAmountMicros(), + getParentForChildren(), + isClean()); + recommendedBudgetAmountMicros_ = null; + } + return recommendedBudgetAmountMicrosBuilder_; + } + + private int period_ = 0; + /** + *
+     * Period over which to spend the budget. Defaults to DAILY if not specified.
+     * 
+ * + * .google.ads.googleads.v0.enums.BudgetPeriodEnum.BudgetPeriod period = 13; + */ + public int getPeriodValue() { + return period_; + } + /** + *
+     * Period over which to spend the budget. Defaults to DAILY if not specified.
+     * 
+ * + * .google.ads.googleads.v0.enums.BudgetPeriodEnum.BudgetPeriod period = 13; + */ + public Builder setPeriodValue(int value) { + period_ = value; + onChanged(); + return this; + } + /** + *
+     * Period over which to spend the budget. Defaults to DAILY if not specified.
+     * 
+ * + * .google.ads.googleads.v0.enums.BudgetPeriodEnum.BudgetPeriod period = 13; + */ + public com.google.ads.googleads.v0.enums.BudgetPeriodEnum.BudgetPeriod getPeriod() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.BudgetPeriodEnum.BudgetPeriod result = com.google.ads.googleads.v0.enums.BudgetPeriodEnum.BudgetPeriod.valueOf(period_); + return result == null ? com.google.ads.googleads.v0.enums.BudgetPeriodEnum.BudgetPeriod.UNRECOGNIZED : result; + } + /** + *
+     * Period over which to spend the budget. Defaults to DAILY if not specified.
+     * 
+ * + * .google.ads.googleads.v0.enums.BudgetPeriodEnum.BudgetPeriod period = 13; + */ + public Builder setPeriod(com.google.ads.googleads.v0.enums.BudgetPeriodEnum.BudgetPeriod value) { + if (value == null) { + throw new NullPointerException(); + } + + period_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Period over which to spend the budget. Defaults to DAILY if not specified.
+     * 
+ * + * .google.ads.googleads.v0.enums.BudgetPeriodEnum.BudgetPeriod period = 13; + */ + public Builder clearPeriod() { + + period_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Int64Value recommendedBudgetEstimatedChangeWeeklyClicks_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> recommendedBudgetEstimatedChangeWeeklyClicksBuilder_; + /** + *
+     * The estimated change in weekly clicks if the recommended budget is applied.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_clicks = 14; + */ + public boolean hasRecommendedBudgetEstimatedChangeWeeklyClicks() { + return recommendedBudgetEstimatedChangeWeeklyClicksBuilder_ != null || recommendedBudgetEstimatedChangeWeeklyClicks_ != null; + } + /** + *
+     * The estimated change in weekly clicks if the recommended budget is applied.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_clicks = 14; + */ + public com.google.protobuf.Int64Value getRecommendedBudgetEstimatedChangeWeeklyClicks() { + if (recommendedBudgetEstimatedChangeWeeklyClicksBuilder_ == null) { + return recommendedBudgetEstimatedChangeWeeklyClicks_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : recommendedBudgetEstimatedChangeWeeklyClicks_; + } else { + return recommendedBudgetEstimatedChangeWeeklyClicksBuilder_.getMessage(); + } + } + /** + *
+     * The estimated change in weekly clicks if the recommended budget is applied.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_clicks = 14; + */ + public Builder setRecommendedBudgetEstimatedChangeWeeklyClicks(com.google.protobuf.Int64Value value) { + if (recommendedBudgetEstimatedChangeWeeklyClicksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + recommendedBudgetEstimatedChangeWeeklyClicks_ = value; + onChanged(); + } else { + recommendedBudgetEstimatedChangeWeeklyClicksBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The estimated change in weekly clicks if the recommended budget is applied.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_clicks = 14; + */ + public Builder setRecommendedBudgetEstimatedChangeWeeklyClicks( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (recommendedBudgetEstimatedChangeWeeklyClicksBuilder_ == null) { + recommendedBudgetEstimatedChangeWeeklyClicks_ = builderForValue.build(); + onChanged(); + } else { + recommendedBudgetEstimatedChangeWeeklyClicksBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The estimated change in weekly clicks if the recommended budget is applied.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_clicks = 14; + */ + public Builder mergeRecommendedBudgetEstimatedChangeWeeklyClicks(com.google.protobuf.Int64Value value) { + if (recommendedBudgetEstimatedChangeWeeklyClicksBuilder_ == null) { + if (recommendedBudgetEstimatedChangeWeeklyClicks_ != null) { + recommendedBudgetEstimatedChangeWeeklyClicks_ = + com.google.protobuf.Int64Value.newBuilder(recommendedBudgetEstimatedChangeWeeklyClicks_).mergeFrom(value).buildPartial(); + } else { + recommendedBudgetEstimatedChangeWeeklyClicks_ = value; + } + onChanged(); + } else { + recommendedBudgetEstimatedChangeWeeklyClicksBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The estimated change in weekly clicks if the recommended budget is applied.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_clicks = 14; + */ + public Builder clearRecommendedBudgetEstimatedChangeWeeklyClicks() { + if (recommendedBudgetEstimatedChangeWeeklyClicksBuilder_ == null) { + recommendedBudgetEstimatedChangeWeeklyClicks_ = null; + onChanged(); + } else { + recommendedBudgetEstimatedChangeWeeklyClicks_ = null; + recommendedBudgetEstimatedChangeWeeklyClicksBuilder_ = null; + } + + return this; + } + /** + *
+     * The estimated change in weekly clicks if the recommended budget is applied.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_clicks = 14; + */ + public com.google.protobuf.Int64Value.Builder getRecommendedBudgetEstimatedChangeWeeklyClicksBuilder() { + + onChanged(); + return getRecommendedBudgetEstimatedChangeWeeklyClicksFieldBuilder().getBuilder(); + } + /** + *
+     * The estimated change in weekly clicks if the recommended budget is applied.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_clicks = 14; + */ + public com.google.protobuf.Int64ValueOrBuilder getRecommendedBudgetEstimatedChangeWeeklyClicksOrBuilder() { + if (recommendedBudgetEstimatedChangeWeeklyClicksBuilder_ != null) { + return recommendedBudgetEstimatedChangeWeeklyClicksBuilder_.getMessageOrBuilder(); + } else { + return recommendedBudgetEstimatedChangeWeeklyClicks_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : recommendedBudgetEstimatedChangeWeeklyClicks_; + } + } + /** + *
+     * The estimated change in weekly clicks if the recommended budget is applied.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_clicks = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + getRecommendedBudgetEstimatedChangeWeeklyClicksFieldBuilder() { + if (recommendedBudgetEstimatedChangeWeeklyClicksBuilder_ == null) { + recommendedBudgetEstimatedChangeWeeklyClicksBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getRecommendedBudgetEstimatedChangeWeeklyClicks(), + getParentForChildren(), + isClean()); + recommendedBudgetEstimatedChangeWeeklyClicks_ = null; + } + return recommendedBudgetEstimatedChangeWeeklyClicksBuilder_; + } + + private com.google.protobuf.Int64Value recommendedBudgetEstimatedChangeWeeklyCostMicros_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> recommendedBudgetEstimatedChangeWeeklyCostMicrosBuilder_; + /** + *
+     * The estimated change in weekly cost in micros if the recommended budget is
+     * applied. One million is equivalent to one currency unit.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_cost_micros = 15; + */ + public boolean hasRecommendedBudgetEstimatedChangeWeeklyCostMicros() { + return recommendedBudgetEstimatedChangeWeeklyCostMicrosBuilder_ != null || recommendedBudgetEstimatedChangeWeeklyCostMicros_ != null; + } + /** + *
+     * The estimated change in weekly cost in micros if the recommended budget is
+     * applied. One million is equivalent to one currency unit.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_cost_micros = 15; + */ + public com.google.protobuf.Int64Value getRecommendedBudgetEstimatedChangeWeeklyCostMicros() { + if (recommendedBudgetEstimatedChangeWeeklyCostMicrosBuilder_ == null) { + return recommendedBudgetEstimatedChangeWeeklyCostMicros_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : recommendedBudgetEstimatedChangeWeeklyCostMicros_; + } else { + return recommendedBudgetEstimatedChangeWeeklyCostMicrosBuilder_.getMessage(); + } + } + /** + *
+     * The estimated change in weekly cost in micros if the recommended budget is
+     * applied. One million is equivalent to one currency unit.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_cost_micros = 15; + */ + public Builder setRecommendedBudgetEstimatedChangeWeeklyCostMicros(com.google.protobuf.Int64Value value) { + if (recommendedBudgetEstimatedChangeWeeklyCostMicrosBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + recommendedBudgetEstimatedChangeWeeklyCostMicros_ = value; + onChanged(); + } else { + recommendedBudgetEstimatedChangeWeeklyCostMicrosBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The estimated change in weekly cost in micros if the recommended budget is
+     * applied. One million is equivalent to one currency unit.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_cost_micros = 15; + */ + public Builder setRecommendedBudgetEstimatedChangeWeeklyCostMicros( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (recommendedBudgetEstimatedChangeWeeklyCostMicrosBuilder_ == null) { + recommendedBudgetEstimatedChangeWeeklyCostMicros_ = builderForValue.build(); + onChanged(); + } else { + recommendedBudgetEstimatedChangeWeeklyCostMicrosBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The estimated change in weekly cost in micros if the recommended budget is
+     * applied. One million is equivalent to one currency unit.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_cost_micros = 15; + */ + public Builder mergeRecommendedBudgetEstimatedChangeWeeklyCostMicros(com.google.protobuf.Int64Value value) { + if (recommendedBudgetEstimatedChangeWeeklyCostMicrosBuilder_ == null) { + if (recommendedBudgetEstimatedChangeWeeklyCostMicros_ != null) { + recommendedBudgetEstimatedChangeWeeklyCostMicros_ = + com.google.protobuf.Int64Value.newBuilder(recommendedBudgetEstimatedChangeWeeklyCostMicros_).mergeFrom(value).buildPartial(); + } else { + recommendedBudgetEstimatedChangeWeeklyCostMicros_ = value; + } + onChanged(); + } else { + recommendedBudgetEstimatedChangeWeeklyCostMicrosBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The estimated change in weekly cost in micros if the recommended budget is
+     * applied. One million is equivalent to one currency unit.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_cost_micros = 15; + */ + public Builder clearRecommendedBudgetEstimatedChangeWeeklyCostMicros() { + if (recommendedBudgetEstimatedChangeWeeklyCostMicrosBuilder_ == null) { + recommendedBudgetEstimatedChangeWeeklyCostMicros_ = null; + onChanged(); + } else { + recommendedBudgetEstimatedChangeWeeklyCostMicros_ = null; + recommendedBudgetEstimatedChangeWeeklyCostMicrosBuilder_ = null; + } + + return this; + } + /** + *
+     * The estimated change in weekly cost in micros if the recommended budget is
+     * applied. One million is equivalent to one currency unit.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_cost_micros = 15; + */ + public com.google.protobuf.Int64Value.Builder getRecommendedBudgetEstimatedChangeWeeklyCostMicrosBuilder() { + + onChanged(); + return getRecommendedBudgetEstimatedChangeWeeklyCostMicrosFieldBuilder().getBuilder(); + } + /** + *
+     * The estimated change in weekly cost in micros if the recommended budget is
+     * applied. One million is equivalent to one currency unit.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_cost_micros = 15; + */ + public com.google.protobuf.Int64ValueOrBuilder getRecommendedBudgetEstimatedChangeWeeklyCostMicrosOrBuilder() { + if (recommendedBudgetEstimatedChangeWeeklyCostMicrosBuilder_ != null) { + return recommendedBudgetEstimatedChangeWeeklyCostMicrosBuilder_.getMessageOrBuilder(); + } else { + return recommendedBudgetEstimatedChangeWeeklyCostMicros_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : recommendedBudgetEstimatedChangeWeeklyCostMicros_; + } + } + /** + *
+     * The estimated change in weekly cost in micros if the recommended budget is
+     * applied. One million is equivalent to one currency unit.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_cost_micros = 15; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + getRecommendedBudgetEstimatedChangeWeeklyCostMicrosFieldBuilder() { + if (recommendedBudgetEstimatedChangeWeeklyCostMicrosBuilder_ == null) { + recommendedBudgetEstimatedChangeWeeklyCostMicrosBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getRecommendedBudgetEstimatedChangeWeeklyCostMicros(), + getParentForChildren(), + isClean()); + recommendedBudgetEstimatedChangeWeeklyCostMicros_ = null; + } + return recommendedBudgetEstimatedChangeWeeklyCostMicrosBuilder_; + } + + private com.google.protobuf.Int64Value recommendedBudgetEstimatedChangeWeeklyInteractions_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> recommendedBudgetEstimatedChangeWeeklyInteractionsBuilder_; + /** + *
+     * The estimated change in weekly interactions if the recommended budget is
+     * applied.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_interactions = 16; + */ + public boolean hasRecommendedBudgetEstimatedChangeWeeklyInteractions() { + return recommendedBudgetEstimatedChangeWeeklyInteractionsBuilder_ != null || recommendedBudgetEstimatedChangeWeeklyInteractions_ != null; + } + /** + *
+     * The estimated change in weekly interactions if the recommended budget is
+     * applied.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_interactions = 16; + */ + public com.google.protobuf.Int64Value getRecommendedBudgetEstimatedChangeWeeklyInteractions() { + if (recommendedBudgetEstimatedChangeWeeklyInteractionsBuilder_ == null) { + return recommendedBudgetEstimatedChangeWeeklyInteractions_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : recommendedBudgetEstimatedChangeWeeklyInteractions_; + } else { + return recommendedBudgetEstimatedChangeWeeklyInteractionsBuilder_.getMessage(); + } + } + /** + *
+     * The estimated change in weekly interactions if the recommended budget is
+     * applied.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_interactions = 16; + */ + public Builder setRecommendedBudgetEstimatedChangeWeeklyInteractions(com.google.protobuf.Int64Value value) { + if (recommendedBudgetEstimatedChangeWeeklyInteractionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + recommendedBudgetEstimatedChangeWeeklyInteractions_ = value; + onChanged(); + } else { + recommendedBudgetEstimatedChangeWeeklyInteractionsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The estimated change in weekly interactions if the recommended budget is
+     * applied.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_interactions = 16; + */ + public Builder setRecommendedBudgetEstimatedChangeWeeklyInteractions( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (recommendedBudgetEstimatedChangeWeeklyInteractionsBuilder_ == null) { + recommendedBudgetEstimatedChangeWeeklyInteractions_ = builderForValue.build(); + onChanged(); + } else { + recommendedBudgetEstimatedChangeWeeklyInteractionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The estimated change in weekly interactions if the recommended budget is
+     * applied.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_interactions = 16; + */ + public Builder mergeRecommendedBudgetEstimatedChangeWeeklyInteractions(com.google.protobuf.Int64Value value) { + if (recommendedBudgetEstimatedChangeWeeklyInteractionsBuilder_ == null) { + if (recommendedBudgetEstimatedChangeWeeklyInteractions_ != null) { + recommendedBudgetEstimatedChangeWeeklyInteractions_ = + com.google.protobuf.Int64Value.newBuilder(recommendedBudgetEstimatedChangeWeeklyInteractions_).mergeFrom(value).buildPartial(); + } else { + recommendedBudgetEstimatedChangeWeeklyInteractions_ = value; + } + onChanged(); + } else { + recommendedBudgetEstimatedChangeWeeklyInteractionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The estimated change in weekly interactions if the recommended budget is
+     * applied.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_interactions = 16; + */ + public Builder clearRecommendedBudgetEstimatedChangeWeeklyInteractions() { + if (recommendedBudgetEstimatedChangeWeeklyInteractionsBuilder_ == null) { + recommendedBudgetEstimatedChangeWeeklyInteractions_ = null; + onChanged(); + } else { + recommendedBudgetEstimatedChangeWeeklyInteractions_ = null; + recommendedBudgetEstimatedChangeWeeklyInteractionsBuilder_ = null; + } + + return this; + } + /** + *
+     * The estimated change in weekly interactions if the recommended budget is
+     * applied.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_interactions = 16; + */ + public com.google.protobuf.Int64Value.Builder getRecommendedBudgetEstimatedChangeWeeklyInteractionsBuilder() { + + onChanged(); + return getRecommendedBudgetEstimatedChangeWeeklyInteractionsFieldBuilder().getBuilder(); + } + /** + *
+     * The estimated change in weekly interactions if the recommended budget is
+     * applied.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_interactions = 16; + */ + public com.google.protobuf.Int64ValueOrBuilder getRecommendedBudgetEstimatedChangeWeeklyInteractionsOrBuilder() { + if (recommendedBudgetEstimatedChangeWeeklyInteractionsBuilder_ != null) { + return recommendedBudgetEstimatedChangeWeeklyInteractionsBuilder_.getMessageOrBuilder(); + } else { + return recommendedBudgetEstimatedChangeWeeklyInteractions_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : recommendedBudgetEstimatedChangeWeeklyInteractions_; + } + } + /** + *
+     * The estimated change in weekly interactions if the recommended budget is
+     * applied.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_interactions = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + getRecommendedBudgetEstimatedChangeWeeklyInteractionsFieldBuilder() { + if (recommendedBudgetEstimatedChangeWeeklyInteractionsBuilder_ == null) { + recommendedBudgetEstimatedChangeWeeklyInteractionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getRecommendedBudgetEstimatedChangeWeeklyInteractions(), + getParentForChildren(), + isClean()); + recommendedBudgetEstimatedChangeWeeklyInteractions_ = null; + } + return recommendedBudgetEstimatedChangeWeeklyInteractionsBuilder_; + } + + private com.google.protobuf.Int64Value recommendedBudgetEstimatedChangeWeeklyViews_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> recommendedBudgetEstimatedChangeWeeklyViewsBuilder_; + /** + *
+     * The estimated change in weekly views if the recommended budget is applied.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_views = 17; + */ + public boolean hasRecommendedBudgetEstimatedChangeWeeklyViews() { + return recommendedBudgetEstimatedChangeWeeklyViewsBuilder_ != null || recommendedBudgetEstimatedChangeWeeklyViews_ != null; + } + /** + *
+     * The estimated change in weekly views if the recommended budget is applied.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_views = 17; + */ + public com.google.protobuf.Int64Value getRecommendedBudgetEstimatedChangeWeeklyViews() { + if (recommendedBudgetEstimatedChangeWeeklyViewsBuilder_ == null) { + return recommendedBudgetEstimatedChangeWeeklyViews_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : recommendedBudgetEstimatedChangeWeeklyViews_; + } else { + return recommendedBudgetEstimatedChangeWeeklyViewsBuilder_.getMessage(); + } + } + /** + *
+     * The estimated change in weekly views if the recommended budget is applied.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_views = 17; + */ + public Builder setRecommendedBudgetEstimatedChangeWeeklyViews(com.google.protobuf.Int64Value value) { + if (recommendedBudgetEstimatedChangeWeeklyViewsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + recommendedBudgetEstimatedChangeWeeklyViews_ = value; + onChanged(); + } else { + recommendedBudgetEstimatedChangeWeeklyViewsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The estimated change in weekly views if the recommended budget is applied.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_views = 17; + */ + public Builder setRecommendedBudgetEstimatedChangeWeeklyViews( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (recommendedBudgetEstimatedChangeWeeklyViewsBuilder_ == null) { + recommendedBudgetEstimatedChangeWeeklyViews_ = builderForValue.build(); + onChanged(); + } else { + recommendedBudgetEstimatedChangeWeeklyViewsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The estimated change in weekly views if the recommended budget is applied.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_views = 17; + */ + public Builder mergeRecommendedBudgetEstimatedChangeWeeklyViews(com.google.protobuf.Int64Value value) { + if (recommendedBudgetEstimatedChangeWeeklyViewsBuilder_ == null) { + if (recommendedBudgetEstimatedChangeWeeklyViews_ != null) { + recommendedBudgetEstimatedChangeWeeklyViews_ = + com.google.protobuf.Int64Value.newBuilder(recommendedBudgetEstimatedChangeWeeklyViews_).mergeFrom(value).buildPartial(); + } else { + recommendedBudgetEstimatedChangeWeeklyViews_ = value; + } + onChanged(); + } else { + recommendedBudgetEstimatedChangeWeeklyViewsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The estimated change in weekly views if the recommended budget is applied.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_views = 17; + */ + public Builder clearRecommendedBudgetEstimatedChangeWeeklyViews() { + if (recommendedBudgetEstimatedChangeWeeklyViewsBuilder_ == null) { + recommendedBudgetEstimatedChangeWeeklyViews_ = null; + onChanged(); + } else { + recommendedBudgetEstimatedChangeWeeklyViews_ = null; + recommendedBudgetEstimatedChangeWeeklyViewsBuilder_ = null; + } + + return this; + } + /** + *
+     * The estimated change in weekly views if the recommended budget is applied.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_views = 17; + */ + public com.google.protobuf.Int64Value.Builder getRecommendedBudgetEstimatedChangeWeeklyViewsBuilder() { + + onChanged(); + return getRecommendedBudgetEstimatedChangeWeeklyViewsFieldBuilder().getBuilder(); + } + /** + *
+     * The estimated change in weekly views if the recommended budget is applied.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_views = 17; + */ + public com.google.protobuf.Int64ValueOrBuilder getRecommendedBudgetEstimatedChangeWeeklyViewsOrBuilder() { + if (recommendedBudgetEstimatedChangeWeeklyViewsBuilder_ != null) { + return recommendedBudgetEstimatedChangeWeeklyViewsBuilder_.getMessageOrBuilder(); + } else { + return recommendedBudgetEstimatedChangeWeeklyViews_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : recommendedBudgetEstimatedChangeWeeklyViews_; + } + } + /** + *
+     * The estimated change in weekly views if the recommended budget is applied.
+     * This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_views = 17; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + getRecommendedBudgetEstimatedChangeWeeklyViewsFieldBuilder() { + if (recommendedBudgetEstimatedChangeWeeklyViewsBuilder_ == null) { + recommendedBudgetEstimatedChangeWeeklyViewsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getRecommendedBudgetEstimatedChangeWeeklyViews(), + getParentForChildren(), + isClean()); + recommendedBudgetEstimatedChangeWeeklyViews_ = null; + } + return recommendedBudgetEstimatedChangeWeeklyViewsBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignBudgetOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignBudgetOrBuilder.java index 276a079508..5f7259b44e 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignBudgetOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignBudgetOrBuilder.java @@ -211,8 +211,8 @@ public interface CampaignBudgetOrBuilder extends /** *
-   * Whether the budget is explicitly shared. This field is set to false by
-   * default.
+   * Specifies whether the budget is explicitly shared. Defaults to true if
+   * unspecified in a create operation.
    * If true, the budget was created with the purpose of sharing
    * across one or more campaigns.
    * If false, the budget was created with the intention of only being used
@@ -230,8 +230,8 @@ public interface CampaignBudgetOrBuilder extends
   boolean hasExplicitlyShared();
   /**
    * 
-   * Whether the budget is explicitly shared. This field is set to false by
-   * default.
+   * Specifies whether the budget is explicitly shared. Defaults to true if
+   * unspecified in a create operation.
    * If true, the budget was created with the purpose of sharing
    * across one or more campaigns.
    * If false, the budget was created with the intention of only being used
@@ -249,8 +249,8 @@ public interface CampaignBudgetOrBuilder extends
   com.google.protobuf.BoolValue getExplicitlyShared();
   /**
    * 
-   * Whether the budget is explicitly shared. This field is set to false by
-   * default.
+   * Specifies whether the budget is explicitly shared. Defaults to true if
+   * unspecified in a create operation.
    * If true, the budget was created with the purpose of sharing
    * across one or more campaigns.
    * If false, the budget was created with the intention of only being used
@@ -294,4 +294,204 @@ public interface CampaignBudgetOrBuilder extends
    * .google.protobuf.Int64Value reference_count = 9;
    */
   com.google.protobuf.Int64ValueOrBuilder getReferenceCountOrBuilder();
+
+  /**
+   * 
+   * Indicates whether there is a recommended budget for this campaign budget.
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.BoolValue has_recommended_budget = 11; + */ + boolean hasHasRecommendedBudget(); + /** + *
+   * Indicates whether there is a recommended budget for this campaign budget.
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.BoolValue has_recommended_budget = 11; + */ + com.google.protobuf.BoolValue getHasRecommendedBudget(); + /** + *
+   * Indicates whether there is a recommended budget for this campaign budget.
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.BoolValue has_recommended_budget = 11; + */ + com.google.protobuf.BoolValueOrBuilder getHasRecommendedBudgetOrBuilder(); + + /** + *
+   * The recommended budget amount. If no recommendation is available, this will
+   * be set to the budget amount.
+   * Amount is specified in micros, where one million is equivalent to one
+   * currency unit.
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value recommended_budget_amount_micros = 12; + */ + boolean hasRecommendedBudgetAmountMicros(); + /** + *
+   * The recommended budget amount. If no recommendation is available, this will
+   * be set to the budget amount.
+   * Amount is specified in micros, where one million is equivalent to one
+   * currency unit.
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value recommended_budget_amount_micros = 12; + */ + com.google.protobuf.Int64Value getRecommendedBudgetAmountMicros(); + /** + *
+   * The recommended budget amount. If no recommendation is available, this will
+   * be set to the budget amount.
+   * Amount is specified in micros, where one million is equivalent to one
+   * currency unit.
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value recommended_budget_amount_micros = 12; + */ + com.google.protobuf.Int64ValueOrBuilder getRecommendedBudgetAmountMicrosOrBuilder(); + + /** + *
+   * Period over which to spend the budget. Defaults to DAILY if not specified.
+   * 
+ * + * .google.ads.googleads.v0.enums.BudgetPeriodEnum.BudgetPeriod period = 13; + */ + int getPeriodValue(); + /** + *
+   * Period over which to spend the budget. Defaults to DAILY if not specified.
+   * 
+ * + * .google.ads.googleads.v0.enums.BudgetPeriodEnum.BudgetPeriod period = 13; + */ + com.google.ads.googleads.v0.enums.BudgetPeriodEnum.BudgetPeriod getPeriod(); + + /** + *
+   * The estimated change in weekly clicks if the recommended budget is applied.
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_clicks = 14; + */ + boolean hasRecommendedBudgetEstimatedChangeWeeklyClicks(); + /** + *
+   * The estimated change in weekly clicks if the recommended budget is applied.
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_clicks = 14; + */ + com.google.protobuf.Int64Value getRecommendedBudgetEstimatedChangeWeeklyClicks(); + /** + *
+   * The estimated change in weekly clicks if the recommended budget is applied.
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_clicks = 14; + */ + com.google.protobuf.Int64ValueOrBuilder getRecommendedBudgetEstimatedChangeWeeklyClicksOrBuilder(); + + /** + *
+   * The estimated change in weekly cost in micros if the recommended budget is
+   * applied. One million is equivalent to one currency unit.
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_cost_micros = 15; + */ + boolean hasRecommendedBudgetEstimatedChangeWeeklyCostMicros(); + /** + *
+   * The estimated change in weekly cost in micros if the recommended budget is
+   * applied. One million is equivalent to one currency unit.
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_cost_micros = 15; + */ + com.google.protobuf.Int64Value getRecommendedBudgetEstimatedChangeWeeklyCostMicros(); + /** + *
+   * The estimated change in weekly cost in micros if the recommended budget is
+   * applied. One million is equivalent to one currency unit.
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_cost_micros = 15; + */ + com.google.protobuf.Int64ValueOrBuilder getRecommendedBudgetEstimatedChangeWeeklyCostMicrosOrBuilder(); + + /** + *
+   * The estimated change in weekly interactions if the recommended budget is
+   * applied.
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_interactions = 16; + */ + boolean hasRecommendedBudgetEstimatedChangeWeeklyInteractions(); + /** + *
+   * The estimated change in weekly interactions if the recommended budget is
+   * applied.
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_interactions = 16; + */ + com.google.protobuf.Int64Value getRecommendedBudgetEstimatedChangeWeeklyInteractions(); + /** + *
+   * The estimated change in weekly interactions if the recommended budget is
+   * applied.
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_interactions = 16; + */ + com.google.protobuf.Int64ValueOrBuilder getRecommendedBudgetEstimatedChangeWeeklyInteractionsOrBuilder(); + + /** + *
+   * The estimated change in weekly views if the recommended budget is applied.
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_views = 17; + */ + boolean hasRecommendedBudgetEstimatedChangeWeeklyViews(); + /** + *
+   * The estimated change in weekly views if the recommended budget is applied.
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_views = 17; + */ + com.google.protobuf.Int64Value getRecommendedBudgetEstimatedChangeWeeklyViews(); + /** + *
+   * The estimated change in weekly views if the recommended budget is applied.
+   * This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value recommended_budget_estimated_change_weekly_views = 17; + */ + com.google.protobuf.Int64ValueOrBuilder getRecommendedBudgetEstimatedChangeWeeklyViewsOrBuilder(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignBudgetProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignBudgetProto.java index 0686cc16c7..e745155beb 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignBudgetProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignBudgetProto.java @@ -32,27 +32,44 @@ public static void registerAllExtensions( "aign_budget.proto\022!google.ads.googleads." + "v0.resources\032:google/ads/googleads/v0/en" + "ums/budget_delivery_method.proto\0321google" + - "/ads/googleads/v0/enums/budget_status.pr" + - "oto\032\036google/protobuf/wrappers.proto\"\214\004\n\016" + - "CampaignBudget\022\025\n\rresource_name\030\001 \001(\t\022\'\n" + - "\002id\030\003 \001(\0132\033.google.protobuf.Int64Value\022*" + - "\n\004name\030\004 \001(\0132\034.google.protobuf.StringVal" + - "ue\0222\n\ramount_micros\030\005 \001(\0132\033.google.proto" + - "buf.Int64Value\0228\n\023total_amount_micros\030\n " + - "\001(\0132\033.google.protobuf.Int64Value\022L\n\006stat" + - "us\030\006 \001(\0162<.google.ads.googleads.v0.enums" + - ".BudgetStatusEnum.BudgetStatus\022e\n\017delive" + - "ry_method\030\007 \001(\0162L.google.ads.googleads.v" + - "0.enums.BudgetDeliveryMethodEnum.BudgetD" + - "eliveryMethod\0225\n\021explicitly_shared\030\010 \001(\013" + - "2\032.google.protobuf.BoolValue\0224\n\017referenc" + - "e_count\030\t \001(\0132\033.google.protobuf.Int64Val" + - "ueB\330\001\n%com.google.ads.googleads.v0.resou" + - "rcesB\023CampaignBudgetProtoP\001ZJgoogle.gola" + - "ng.org/genproto/googleapis/ads/googleads" + - "/v0/resources;resources\242\002\003GAA\252\002!Google.A" + - "ds.GoogleAds.V0.Resources\312\002!Google\\Ads\\G" + - "oogleAds\\V0\\Resourcesb\006proto3" + "/ads/googleads/v0/enums/budget_period.pr" + + "oto\0321google/ads/googleads/v0/enums/budge" + + "t_status.proto\032\036google/protobuf/wrappers" + + ".proto\"\307\010\n\016CampaignBudget\022\025\n\rresource_na" + + "me\030\001 \001(\t\022\'\n\002id\030\003 \001(\0132\033.google.protobuf.I" + + "nt64Value\022*\n\004name\030\004 \001(\0132\034.google.protobu" + + "f.StringValue\0222\n\ramount_micros\030\005 \001(\0132\033.g" + + "oogle.protobuf.Int64Value\0228\n\023total_amoun" + + "t_micros\030\n \001(\0132\033.google.protobuf.Int64Va" + + "lue\022L\n\006status\030\006 \001(\0162<.google.ads.googlea" + + "ds.v0.enums.BudgetStatusEnum.BudgetStatu" + + "s\022e\n\017delivery_method\030\007 \001(\0162L.google.ads." + + "googleads.v0.enums.BudgetDeliveryMethodE" + + "num.BudgetDeliveryMethod\0225\n\021explicitly_s" + + "hared\030\010 \001(\0132\032.google.protobuf.BoolValue\022" + + "4\n\017reference_count\030\t \001(\0132\033.google.protob" + + "uf.Int64Value\022:\n\026has_recommended_budget\030" + + "\013 \001(\0132\032.google.protobuf.BoolValue\022E\n rec" + + "ommended_budget_amount_micros\030\014 \001(\0132\033.go" + + "ogle.protobuf.Int64Value\022L\n\006period\030\r \001(\016" + + "2<.google.ads.googleads.v0.enums.BudgetP" + + "eriodEnum.BudgetPeriod\022V\n1recommended_bu" + + "dget_estimated_change_weekly_clicks\030\016 \001(" + + "\0132\033.google.protobuf.Int64Value\022[\n6recomm" + + "ended_budget_estimated_change_weekly_cos" + + "t_micros\030\017 \001(\0132\033.google.protobuf.Int64Va" + + "lue\022\\\n7recommended_budget_estimated_chan" + + "ge_weekly_interactions\030\020 \001(\0132\033.google.pr" + + "otobuf.Int64Value\022U\n0recommended_budget_" + + "estimated_change_weekly_views\030\021 \001(\0132\033.go" + + "ogle.protobuf.Int64ValueB\200\002\n%com.google." + + "ads.googleads.v0.resourcesB\023CampaignBudg" + + "etProtoP\001ZJgoogle.golang.org/genproto/go" + + "ogleapis/ads/googleads/v0/resources;reso" + + "urces\242\002\003GAA\252\002!Google.Ads.GoogleAds.V0.Re" + + "sources\312\002!Google\\Ads\\GoogleAds\\V0\\Resour" + + "ces\352\002%Google::Ads::GoogleAds::V0::Resour" + + "cesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -66,6 +83,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.ads.googleads.v0.enums.BudgetDeliveryMethodProto.getDescriptor(), + com.google.ads.googleads.v0.enums.BudgetPeriodProto.getDescriptor(), com.google.ads.googleads.v0.enums.BudgetStatusProto.getDescriptor(), com.google.protobuf.WrappersProto.getDescriptor(), }, assigner); @@ -74,8 +92,9 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_resources_CampaignBudget_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_resources_CampaignBudget_descriptor, - new java.lang.String[] { "ResourceName", "Id", "Name", "AmountMicros", "TotalAmountMicros", "Status", "DeliveryMethod", "ExplicitlyShared", "ReferenceCount", }); + new java.lang.String[] { "ResourceName", "Id", "Name", "AmountMicros", "TotalAmountMicros", "Status", "DeliveryMethod", "ExplicitlyShared", "ReferenceCount", "HasRecommendedBudget", "RecommendedBudgetAmountMicros", "Period", "RecommendedBudgetEstimatedChangeWeeklyClicks", "RecommendedBudgetEstimatedChangeWeeklyCostMicros", "RecommendedBudgetEstimatedChangeWeeklyInteractions", "RecommendedBudgetEstimatedChangeWeeklyViews", }); com.google.ads.googleads.v0.enums.BudgetDeliveryMethodProto.getDescriptor(); + com.google.ads.googleads.v0.enums.BudgetPeriodProto.getDescriptor(); com.google.ads.googleads.v0.enums.BudgetStatusProto.getDescriptor(); com.google.protobuf.WrappersProto.getDescriptor(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignCriterion.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignCriterion.java index acad60eb8d..948ab64925 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignCriterion.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignCriterion.java @@ -127,6 +127,20 @@ private CampaignCriterion( criterionCase_ = 9; break; } + case 82: { + com.google.ads.googleads.v0.common.MobileAppCategoryInfo.Builder subBuilder = null; + if (criterionCase_ == 10) { + subBuilder = ((com.google.ads.googleads.v0.common.MobileAppCategoryInfo) criterion_).toBuilder(); + } + criterion_ = + input.readMessage(com.google.ads.googleads.v0.common.MobileAppCategoryInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.ads.googleads.v0.common.MobileAppCategoryInfo) criterion_); + criterion_ = subBuilder.buildPartial(); + } + criterionCase_ = 10; + break; + } case 98: { com.google.ads.googleads.v0.common.LocationInfo.Builder subBuilder = null; if (criterionCase_ == 12) { @@ -392,6 +406,34 @@ private CampaignCriterion( criterionCase_ = 30; break; } + case 250: { + com.google.ads.googleads.v0.common.WebpageInfo.Builder subBuilder = null; + if (criterionCase_ == 31) { + subBuilder = ((com.google.ads.googleads.v0.common.WebpageInfo) criterion_).toBuilder(); + } + criterion_ = + input.readMessage(com.google.ads.googleads.v0.common.WebpageInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.ads.googleads.v0.common.WebpageInfo) criterion_); + criterion_ = subBuilder.buildPartial(); + } + criterionCase_ = 31; + break; + } + case 258: { + com.google.ads.googleads.v0.common.OperatingSystemVersionInfo.Builder subBuilder = null; + if (criterionCase_ == 32) { + subBuilder = ((com.google.ads.googleads.v0.common.OperatingSystemVersionInfo) criterion_).toBuilder(); + } + criterion_ = + input.readMessage(com.google.ads.googleads.v0.common.OperatingSystemVersionInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.ads.googleads.v0.common.OperatingSystemVersionInfo) criterion_); + criterion_ = subBuilder.buildPartial(); + } + criterionCase_ = 32; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -430,6 +472,7 @@ public enum CriterionCase implements com.google.protobuf.Internal.EnumLite { KEYWORD(8), PLACEMENT(9), + MOBILE_APP_CATEGORY(10), LOCATION(12), DEVICE(13), AD_SCHEDULE(15), @@ -448,6 +491,8 @@ public enum CriterionCase CONTENT_LABEL(28), CARRIER(29), USER_INTEREST(30), + WEBPAGE(31), + OPERATING_SYSTEM_VERSION(32), CRITERION_NOT_SET(0); private final int value; private CriterionCase(int value) { @@ -465,6 +510,7 @@ public static CriterionCase forNumber(int value) { switch (value) { case 8: return KEYWORD; case 9: return PLACEMENT; + case 10: return MOBILE_APP_CATEGORY; case 12: return LOCATION; case 13: return DEVICE; case 15: return AD_SCHEDULE; @@ -483,6 +529,8 @@ public static CriterionCase forNumber(int value) { case 28: return CONTENT_LABEL; case 29: return CARRIER; case 30: return USER_INTEREST; + case 31: return WEBPAGE; + case 32: return OPERATING_SYSTEM_VERSION; case 0: return CRITERION_NOT_SET; default: return null; } @@ -786,6 +834,44 @@ public com.google.ads.googleads.v0.common.PlacementInfoOrBuilder getPlacementOrB return com.google.ads.googleads.v0.common.PlacementInfo.getDefaultInstance(); } + public static final int MOBILE_APP_CATEGORY_FIELD_NUMBER = 10; + /** + *
+   * Mobile app category.
+   * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 10; + */ + public boolean hasMobileAppCategory() { + return criterionCase_ == 10; + } + /** + *
+   * Mobile app category.
+   * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 10; + */ + public com.google.ads.googleads.v0.common.MobileAppCategoryInfo getMobileAppCategory() { + if (criterionCase_ == 10) { + return (com.google.ads.googleads.v0.common.MobileAppCategoryInfo) criterion_; + } + return com.google.ads.googleads.v0.common.MobileAppCategoryInfo.getDefaultInstance(); + } + /** + *
+   * Mobile app category.
+   * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 10; + */ + public com.google.ads.googleads.v0.common.MobileAppCategoryInfoOrBuilder getMobileAppCategoryOrBuilder() { + if (criterionCase_ == 10) { + return (com.google.ads.googleads.v0.common.MobileAppCategoryInfo) criterion_; + } + return com.google.ads.googleads.v0.common.MobileAppCategoryInfo.getDefaultInstance(); + } + public static final int LOCATION_FIELD_NUMBER = 12; /** *
@@ -1470,6 +1556,82 @@ public com.google.ads.googleads.v0.common.UserInterestInfoOrBuilder getUserInter
     return com.google.ads.googleads.v0.common.UserInterestInfo.getDefaultInstance();
   }
 
+  public static final int WEBPAGE_FIELD_NUMBER = 31;
+  /**
+   * 
+   * Webpage.
+   * 
+ * + * .google.ads.googleads.v0.common.WebpageInfo webpage = 31; + */ + public boolean hasWebpage() { + return criterionCase_ == 31; + } + /** + *
+   * Webpage.
+   * 
+ * + * .google.ads.googleads.v0.common.WebpageInfo webpage = 31; + */ + public com.google.ads.googleads.v0.common.WebpageInfo getWebpage() { + if (criterionCase_ == 31) { + return (com.google.ads.googleads.v0.common.WebpageInfo) criterion_; + } + return com.google.ads.googleads.v0.common.WebpageInfo.getDefaultInstance(); + } + /** + *
+   * Webpage.
+   * 
+ * + * .google.ads.googleads.v0.common.WebpageInfo webpage = 31; + */ + public com.google.ads.googleads.v0.common.WebpageInfoOrBuilder getWebpageOrBuilder() { + if (criterionCase_ == 31) { + return (com.google.ads.googleads.v0.common.WebpageInfo) criterion_; + } + return com.google.ads.googleads.v0.common.WebpageInfo.getDefaultInstance(); + } + + public static final int OPERATING_SYSTEM_VERSION_FIELD_NUMBER = 32; + /** + *
+   * Operating system version.
+   * 
+ * + * .google.ads.googleads.v0.common.OperatingSystemVersionInfo operating_system_version = 32; + */ + public boolean hasOperatingSystemVersion() { + return criterionCase_ == 32; + } + /** + *
+   * Operating system version.
+   * 
+ * + * .google.ads.googleads.v0.common.OperatingSystemVersionInfo operating_system_version = 32; + */ + public com.google.ads.googleads.v0.common.OperatingSystemVersionInfo getOperatingSystemVersion() { + if (criterionCase_ == 32) { + return (com.google.ads.googleads.v0.common.OperatingSystemVersionInfo) criterion_; + } + return com.google.ads.googleads.v0.common.OperatingSystemVersionInfo.getDefaultInstance(); + } + /** + *
+   * Operating system version.
+   * 
+ * + * .google.ads.googleads.v0.common.OperatingSystemVersionInfo operating_system_version = 32; + */ + public com.google.ads.googleads.v0.common.OperatingSystemVersionInfoOrBuilder getOperatingSystemVersionOrBuilder() { + if (criterionCase_ == 32) { + return (com.google.ads.googleads.v0.common.OperatingSystemVersionInfo) criterion_; + } + return com.google.ads.googleads.v0.common.OperatingSystemVersionInfo.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -1505,6 +1667,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (criterionCase_ == 9) { output.writeMessage(9, (com.google.ads.googleads.v0.common.PlacementInfo) criterion_); } + if (criterionCase_ == 10) { + output.writeMessage(10, (com.google.ads.googleads.v0.common.MobileAppCategoryInfo) criterion_); + } if (criterionCase_ == 12) { output.writeMessage(12, (com.google.ads.googleads.v0.common.LocationInfo) criterion_); } @@ -1562,6 +1727,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (criterionCase_ == 30) { output.writeMessage(30, (com.google.ads.googleads.v0.common.UserInterestInfo) criterion_); } + if (criterionCase_ == 31) { + output.writeMessage(31, (com.google.ads.googleads.v0.common.WebpageInfo) criterion_); + } + if (criterionCase_ == 32) { + output.writeMessage(32, (com.google.ads.googleads.v0.common.OperatingSystemVersionInfo) criterion_); + } unknownFields.writeTo(output); } @@ -1598,6 +1769,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (com.google.ads.googleads.v0.common.PlacementInfo) criterion_); } + if (criterionCase_ == 10) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, (com.google.ads.googleads.v0.common.MobileAppCategoryInfo) criterion_); + } if (criterionCase_ == 12) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, (com.google.ads.googleads.v0.common.LocationInfo) criterion_); @@ -1674,6 +1849,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(30, (com.google.ads.googleads.v0.common.UserInterestInfo) criterion_); } + if (criterionCase_ == 31) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(31, (com.google.ads.googleads.v0.common.WebpageInfo) criterion_); + } + if (criterionCase_ == 32) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(32, (com.google.ads.googleads.v0.common.OperatingSystemVersionInfo) criterion_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1725,6 +1908,10 @@ public boolean equals(final java.lang.Object obj) { result = result && getPlacement() .equals(other.getPlacement()); break; + case 10: + result = result && getMobileAppCategory() + .equals(other.getMobileAppCategory()); + break; case 12: result = result && getLocation() .equals(other.getLocation()); @@ -1797,6 +1984,14 @@ public boolean equals(final java.lang.Object obj) { result = result && getUserInterest() .equals(other.getUserInterest()); break; + case 31: + result = result && getWebpage() + .equals(other.getWebpage()); + break; + case 32: + result = result && getOperatingSystemVersion() + .equals(other.getOperatingSystemVersion()); + break; case 0: default: } @@ -1840,6 +2035,10 @@ public int hashCode() { hash = (37 * hash) + PLACEMENT_FIELD_NUMBER; hash = (53 * hash) + getPlacement().hashCode(); break; + case 10: + hash = (37 * hash) + MOBILE_APP_CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + getMobileAppCategory().hashCode(); + break; case 12: hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); @@ -1912,6 +2111,14 @@ public int hashCode() { hash = (37 * hash) + USER_INTEREST_FIELD_NUMBER; hash = (53 * hash) + getUserInterest().hashCode(); break; + case 31: + hash = (37 * hash) + WEBPAGE_FIELD_NUMBER; + hash = (53 * hash) + getWebpage().hashCode(); + break; + case 32: + hash = (37 * hash) + OPERATING_SYSTEM_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getOperatingSystemVersion().hashCode(); + break; case 0: default: } @@ -2144,6 +2351,13 @@ public com.google.ads.googleads.v0.resources.CampaignCriterion buildPartial() { result.criterion_ = placementBuilder_.build(); } } + if (criterionCase_ == 10) { + if (mobileAppCategoryBuilder_ == null) { + result.criterion_ = criterion_; + } else { + result.criterion_ = mobileAppCategoryBuilder_.build(); + } + } if (criterionCase_ == 12) { if (locationBuilder_ == null) { result.criterion_ = criterion_; @@ -2270,6 +2484,20 @@ public com.google.ads.googleads.v0.resources.CampaignCriterion buildPartial() { result.criterion_ = userInterestBuilder_.build(); } } + if (criterionCase_ == 31) { + if (webpageBuilder_ == null) { + result.criterion_ = criterion_; + } else { + result.criterion_ = webpageBuilder_.build(); + } + } + if (criterionCase_ == 32) { + if (operatingSystemVersionBuilder_ == null) { + result.criterion_ = criterion_; + } else { + result.criterion_ = operatingSystemVersionBuilder_.build(); + } + } result.criterionCase_ = criterionCase_; onBuilt(); return result; @@ -2347,6 +2575,10 @@ public Builder mergeFrom(com.google.ads.googleads.v0.resources.CampaignCriterion mergePlacement(other.getPlacement()); break; } + case MOBILE_APP_CATEGORY: { + mergeMobileAppCategory(other.getMobileAppCategory()); + break; + } case LOCATION: { mergeLocation(other.getLocation()); break; @@ -2419,6 +2651,14 @@ public Builder mergeFrom(com.google.ads.googleads.v0.resources.CampaignCriterion mergeUserInterest(other.getUserInterest()); break; } + case WEBPAGE: { + mergeWebpage(other.getWebpage()); + break; + } + case OPERATING_SYSTEM_VERSION: { + mergeOperatingSystemVersion(other.getOperatingSystemVersion()); + break; + } case CRITERION_NOT_SET: { break; } @@ -3614,6 +3854,178 @@ public com.google.ads.googleads.v0.common.PlacementInfoOrBuilder getPlacementOrB return placementBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.MobileAppCategoryInfo, com.google.ads.googleads.v0.common.MobileAppCategoryInfo.Builder, com.google.ads.googleads.v0.common.MobileAppCategoryInfoOrBuilder> mobileAppCategoryBuilder_; + /** + *
+     * Mobile app category.
+     * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 10; + */ + public boolean hasMobileAppCategory() { + return criterionCase_ == 10; + } + /** + *
+     * Mobile app category.
+     * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 10; + */ + public com.google.ads.googleads.v0.common.MobileAppCategoryInfo getMobileAppCategory() { + if (mobileAppCategoryBuilder_ == null) { + if (criterionCase_ == 10) { + return (com.google.ads.googleads.v0.common.MobileAppCategoryInfo) criterion_; + } + return com.google.ads.googleads.v0.common.MobileAppCategoryInfo.getDefaultInstance(); + } else { + if (criterionCase_ == 10) { + return mobileAppCategoryBuilder_.getMessage(); + } + return com.google.ads.googleads.v0.common.MobileAppCategoryInfo.getDefaultInstance(); + } + } + /** + *
+     * Mobile app category.
+     * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 10; + */ + public Builder setMobileAppCategory(com.google.ads.googleads.v0.common.MobileAppCategoryInfo value) { + if (mobileAppCategoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + criterion_ = value; + onChanged(); + } else { + mobileAppCategoryBuilder_.setMessage(value); + } + criterionCase_ = 10; + return this; + } + /** + *
+     * Mobile app category.
+     * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 10; + */ + public Builder setMobileAppCategory( + com.google.ads.googleads.v0.common.MobileAppCategoryInfo.Builder builderForValue) { + if (mobileAppCategoryBuilder_ == null) { + criterion_ = builderForValue.build(); + onChanged(); + } else { + mobileAppCategoryBuilder_.setMessage(builderForValue.build()); + } + criterionCase_ = 10; + return this; + } + /** + *
+     * Mobile app category.
+     * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 10; + */ + public Builder mergeMobileAppCategory(com.google.ads.googleads.v0.common.MobileAppCategoryInfo value) { + if (mobileAppCategoryBuilder_ == null) { + if (criterionCase_ == 10 && + criterion_ != com.google.ads.googleads.v0.common.MobileAppCategoryInfo.getDefaultInstance()) { + criterion_ = com.google.ads.googleads.v0.common.MobileAppCategoryInfo.newBuilder((com.google.ads.googleads.v0.common.MobileAppCategoryInfo) criterion_) + .mergeFrom(value).buildPartial(); + } else { + criterion_ = value; + } + onChanged(); + } else { + if (criterionCase_ == 10) { + mobileAppCategoryBuilder_.mergeFrom(value); + } + mobileAppCategoryBuilder_.setMessage(value); + } + criterionCase_ = 10; + return this; + } + /** + *
+     * Mobile app category.
+     * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 10; + */ + public Builder clearMobileAppCategory() { + if (mobileAppCategoryBuilder_ == null) { + if (criterionCase_ == 10) { + criterionCase_ = 0; + criterion_ = null; + onChanged(); + } + } else { + if (criterionCase_ == 10) { + criterionCase_ = 0; + criterion_ = null; + } + mobileAppCategoryBuilder_.clear(); + } + return this; + } + /** + *
+     * Mobile app category.
+     * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 10; + */ + public com.google.ads.googleads.v0.common.MobileAppCategoryInfo.Builder getMobileAppCategoryBuilder() { + return getMobileAppCategoryFieldBuilder().getBuilder(); + } + /** + *
+     * Mobile app category.
+     * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 10; + */ + public com.google.ads.googleads.v0.common.MobileAppCategoryInfoOrBuilder getMobileAppCategoryOrBuilder() { + if ((criterionCase_ == 10) && (mobileAppCategoryBuilder_ != null)) { + return mobileAppCategoryBuilder_.getMessageOrBuilder(); + } else { + if (criterionCase_ == 10) { + return (com.google.ads.googleads.v0.common.MobileAppCategoryInfo) criterion_; + } + return com.google.ads.googleads.v0.common.MobileAppCategoryInfo.getDefaultInstance(); + } + } + /** + *
+     * Mobile app category.
+     * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.MobileAppCategoryInfo, com.google.ads.googleads.v0.common.MobileAppCategoryInfo.Builder, com.google.ads.googleads.v0.common.MobileAppCategoryInfoOrBuilder> + getMobileAppCategoryFieldBuilder() { + if (mobileAppCategoryBuilder_ == null) { + if (!(criterionCase_ == 10)) { + criterion_ = com.google.ads.googleads.v0.common.MobileAppCategoryInfo.getDefaultInstance(); + } + mobileAppCategoryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.MobileAppCategoryInfo, com.google.ads.googleads.v0.common.MobileAppCategoryInfo.Builder, com.google.ads.googleads.v0.common.MobileAppCategoryInfoOrBuilder>( + (com.google.ads.googleads.v0.common.MobileAppCategoryInfo) criterion_, + getParentForChildren(), + isClean()); + criterion_ = null; + } + criterionCase_ = 10; + onChanged();; + return mobileAppCategoryBuilder_; + } + private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v0.common.LocationInfo, com.google.ads.googleads.v0.common.LocationInfo.Builder, com.google.ads.googleads.v0.common.LocationInfoOrBuilder> locationBuilder_; /** @@ -6709,6 +7121,350 @@ public com.google.ads.googleads.v0.common.UserInterestInfoOrBuilder getUserInter onChanged();; return userInterestBuilder_; } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.WebpageInfo, com.google.ads.googleads.v0.common.WebpageInfo.Builder, com.google.ads.googleads.v0.common.WebpageInfoOrBuilder> webpageBuilder_; + /** + *
+     * Webpage.
+     * 
+ * + * .google.ads.googleads.v0.common.WebpageInfo webpage = 31; + */ + public boolean hasWebpage() { + return criterionCase_ == 31; + } + /** + *
+     * Webpage.
+     * 
+ * + * .google.ads.googleads.v0.common.WebpageInfo webpage = 31; + */ + public com.google.ads.googleads.v0.common.WebpageInfo getWebpage() { + if (webpageBuilder_ == null) { + if (criterionCase_ == 31) { + return (com.google.ads.googleads.v0.common.WebpageInfo) criterion_; + } + return com.google.ads.googleads.v0.common.WebpageInfo.getDefaultInstance(); + } else { + if (criterionCase_ == 31) { + return webpageBuilder_.getMessage(); + } + return com.google.ads.googleads.v0.common.WebpageInfo.getDefaultInstance(); + } + } + /** + *
+     * Webpage.
+     * 
+ * + * .google.ads.googleads.v0.common.WebpageInfo webpage = 31; + */ + public Builder setWebpage(com.google.ads.googleads.v0.common.WebpageInfo value) { + if (webpageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + criterion_ = value; + onChanged(); + } else { + webpageBuilder_.setMessage(value); + } + criterionCase_ = 31; + return this; + } + /** + *
+     * Webpage.
+     * 
+ * + * .google.ads.googleads.v0.common.WebpageInfo webpage = 31; + */ + public Builder setWebpage( + com.google.ads.googleads.v0.common.WebpageInfo.Builder builderForValue) { + if (webpageBuilder_ == null) { + criterion_ = builderForValue.build(); + onChanged(); + } else { + webpageBuilder_.setMessage(builderForValue.build()); + } + criterionCase_ = 31; + return this; + } + /** + *
+     * Webpage.
+     * 
+ * + * .google.ads.googleads.v0.common.WebpageInfo webpage = 31; + */ + public Builder mergeWebpage(com.google.ads.googleads.v0.common.WebpageInfo value) { + if (webpageBuilder_ == null) { + if (criterionCase_ == 31 && + criterion_ != com.google.ads.googleads.v0.common.WebpageInfo.getDefaultInstance()) { + criterion_ = com.google.ads.googleads.v0.common.WebpageInfo.newBuilder((com.google.ads.googleads.v0.common.WebpageInfo) criterion_) + .mergeFrom(value).buildPartial(); + } else { + criterion_ = value; + } + onChanged(); + } else { + if (criterionCase_ == 31) { + webpageBuilder_.mergeFrom(value); + } + webpageBuilder_.setMessage(value); + } + criterionCase_ = 31; + return this; + } + /** + *
+     * Webpage.
+     * 
+ * + * .google.ads.googleads.v0.common.WebpageInfo webpage = 31; + */ + public Builder clearWebpage() { + if (webpageBuilder_ == null) { + if (criterionCase_ == 31) { + criterionCase_ = 0; + criterion_ = null; + onChanged(); + } + } else { + if (criterionCase_ == 31) { + criterionCase_ = 0; + criterion_ = null; + } + webpageBuilder_.clear(); + } + return this; + } + /** + *
+     * Webpage.
+     * 
+ * + * .google.ads.googleads.v0.common.WebpageInfo webpage = 31; + */ + public com.google.ads.googleads.v0.common.WebpageInfo.Builder getWebpageBuilder() { + return getWebpageFieldBuilder().getBuilder(); + } + /** + *
+     * Webpage.
+     * 
+ * + * .google.ads.googleads.v0.common.WebpageInfo webpage = 31; + */ + public com.google.ads.googleads.v0.common.WebpageInfoOrBuilder getWebpageOrBuilder() { + if ((criterionCase_ == 31) && (webpageBuilder_ != null)) { + return webpageBuilder_.getMessageOrBuilder(); + } else { + if (criterionCase_ == 31) { + return (com.google.ads.googleads.v0.common.WebpageInfo) criterion_; + } + return com.google.ads.googleads.v0.common.WebpageInfo.getDefaultInstance(); + } + } + /** + *
+     * Webpage.
+     * 
+ * + * .google.ads.googleads.v0.common.WebpageInfo webpage = 31; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.WebpageInfo, com.google.ads.googleads.v0.common.WebpageInfo.Builder, com.google.ads.googleads.v0.common.WebpageInfoOrBuilder> + getWebpageFieldBuilder() { + if (webpageBuilder_ == null) { + if (!(criterionCase_ == 31)) { + criterion_ = com.google.ads.googleads.v0.common.WebpageInfo.getDefaultInstance(); + } + webpageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.WebpageInfo, com.google.ads.googleads.v0.common.WebpageInfo.Builder, com.google.ads.googleads.v0.common.WebpageInfoOrBuilder>( + (com.google.ads.googleads.v0.common.WebpageInfo) criterion_, + getParentForChildren(), + isClean()); + criterion_ = null; + } + criterionCase_ = 31; + onChanged();; + return webpageBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.OperatingSystemVersionInfo, com.google.ads.googleads.v0.common.OperatingSystemVersionInfo.Builder, com.google.ads.googleads.v0.common.OperatingSystemVersionInfoOrBuilder> operatingSystemVersionBuilder_; + /** + *
+     * Operating system version.
+     * 
+ * + * .google.ads.googleads.v0.common.OperatingSystemVersionInfo operating_system_version = 32; + */ + public boolean hasOperatingSystemVersion() { + return criterionCase_ == 32; + } + /** + *
+     * Operating system version.
+     * 
+ * + * .google.ads.googleads.v0.common.OperatingSystemVersionInfo operating_system_version = 32; + */ + public com.google.ads.googleads.v0.common.OperatingSystemVersionInfo getOperatingSystemVersion() { + if (operatingSystemVersionBuilder_ == null) { + if (criterionCase_ == 32) { + return (com.google.ads.googleads.v0.common.OperatingSystemVersionInfo) criterion_; + } + return com.google.ads.googleads.v0.common.OperatingSystemVersionInfo.getDefaultInstance(); + } else { + if (criterionCase_ == 32) { + return operatingSystemVersionBuilder_.getMessage(); + } + return com.google.ads.googleads.v0.common.OperatingSystemVersionInfo.getDefaultInstance(); + } + } + /** + *
+     * Operating system version.
+     * 
+ * + * .google.ads.googleads.v0.common.OperatingSystemVersionInfo operating_system_version = 32; + */ + public Builder setOperatingSystemVersion(com.google.ads.googleads.v0.common.OperatingSystemVersionInfo value) { + if (operatingSystemVersionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + criterion_ = value; + onChanged(); + } else { + operatingSystemVersionBuilder_.setMessage(value); + } + criterionCase_ = 32; + return this; + } + /** + *
+     * Operating system version.
+     * 
+ * + * .google.ads.googleads.v0.common.OperatingSystemVersionInfo operating_system_version = 32; + */ + public Builder setOperatingSystemVersion( + com.google.ads.googleads.v0.common.OperatingSystemVersionInfo.Builder builderForValue) { + if (operatingSystemVersionBuilder_ == null) { + criterion_ = builderForValue.build(); + onChanged(); + } else { + operatingSystemVersionBuilder_.setMessage(builderForValue.build()); + } + criterionCase_ = 32; + return this; + } + /** + *
+     * Operating system version.
+     * 
+ * + * .google.ads.googleads.v0.common.OperatingSystemVersionInfo operating_system_version = 32; + */ + public Builder mergeOperatingSystemVersion(com.google.ads.googleads.v0.common.OperatingSystemVersionInfo value) { + if (operatingSystemVersionBuilder_ == null) { + if (criterionCase_ == 32 && + criterion_ != com.google.ads.googleads.v0.common.OperatingSystemVersionInfo.getDefaultInstance()) { + criterion_ = com.google.ads.googleads.v0.common.OperatingSystemVersionInfo.newBuilder((com.google.ads.googleads.v0.common.OperatingSystemVersionInfo) criterion_) + .mergeFrom(value).buildPartial(); + } else { + criterion_ = value; + } + onChanged(); + } else { + if (criterionCase_ == 32) { + operatingSystemVersionBuilder_.mergeFrom(value); + } + operatingSystemVersionBuilder_.setMessage(value); + } + criterionCase_ = 32; + return this; + } + /** + *
+     * Operating system version.
+     * 
+ * + * .google.ads.googleads.v0.common.OperatingSystemVersionInfo operating_system_version = 32; + */ + public Builder clearOperatingSystemVersion() { + if (operatingSystemVersionBuilder_ == null) { + if (criterionCase_ == 32) { + criterionCase_ = 0; + criterion_ = null; + onChanged(); + } + } else { + if (criterionCase_ == 32) { + criterionCase_ = 0; + criterion_ = null; + } + operatingSystemVersionBuilder_.clear(); + } + return this; + } + /** + *
+     * Operating system version.
+     * 
+ * + * .google.ads.googleads.v0.common.OperatingSystemVersionInfo operating_system_version = 32; + */ + public com.google.ads.googleads.v0.common.OperatingSystemVersionInfo.Builder getOperatingSystemVersionBuilder() { + return getOperatingSystemVersionFieldBuilder().getBuilder(); + } + /** + *
+     * Operating system version.
+     * 
+ * + * .google.ads.googleads.v0.common.OperatingSystemVersionInfo operating_system_version = 32; + */ + public com.google.ads.googleads.v0.common.OperatingSystemVersionInfoOrBuilder getOperatingSystemVersionOrBuilder() { + if ((criterionCase_ == 32) && (operatingSystemVersionBuilder_ != null)) { + return operatingSystemVersionBuilder_.getMessageOrBuilder(); + } else { + if (criterionCase_ == 32) { + return (com.google.ads.googleads.v0.common.OperatingSystemVersionInfo) criterion_; + } + return com.google.ads.googleads.v0.common.OperatingSystemVersionInfo.getDefaultInstance(); + } + } + /** + *
+     * Operating system version.
+     * 
+ * + * .google.ads.googleads.v0.common.OperatingSystemVersionInfo operating_system_version = 32; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.OperatingSystemVersionInfo, com.google.ads.googleads.v0.common.OperatingSystemVersionInfo.Builder, com.google.ads.googleads.v0.common.OperatingSystemVersionInfoOrBuilder> + getOperatingSystemVersionFieldBuilder() { + if (operatingSystemVersionBuilder_ == null) { + if (!(criterionCase_ == 32)) { + criterion_ = com.google.ads.googleads.v0.common.OperatingSystemVersionInfo.getDefaultInstance(); + } + operatingSystemVersionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.OperatingSystemVersionInfo, com.google.ads.googleads.v0.common.OperatingSystemVersionInfo.Builder, com.google.ads.googleads.v0.common.OperatingSystemVersionInfoOrBuilder>( + (com.google.ads.googleads.v0.common.OperatingSystemVersionInfo) criterion_, + getParentForChildren(), + isClean()); + criterion_ = null; + } + criterionCase_ = 32; + onChanged();; + return operatingSystemVersionBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignCriterionOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignCriterionOrBuilder.java index 4b53ab7998..e34ca899e8 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignCriterionOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignCriterionOrBuilder.java @@ -205,6 +205,31 @@ public interface CampaignCriterionOrBuilder extends */ com.google.ads.googleads.v0.common.PlacementInfoOrBuilder getPlacementOrBuilder(); + /** + *
+   * Mobile app category.
+   * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 10; + */ + boolean hasMobileAppCategory(); + /** + *
+   * Mobile app category.
+   * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 10; + */ + com.google.ads.googleads.v0.common.MobileAppCategoryInfo getMobileAppCategory(); + /** + *
+   * Mobile app category.
+   * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 10; + */ + com.google.ads.googleads.v0.common.MobileAppCategoryInfoOrBuilder getMobileAppCategoryOrBuilder(); + /** *
    * Location.
@@ -655,5 +680,55 @@ public interface CampaignCriterionOrBuilder extends
    */
   com.google.ads.googleads.v0.common.UserInterestInfoOrBuilder getUserInterestOrBuilder();
 
+  /**
+   * 
+   * Webpage.
+   * 
+ * + * .google.ads.googleads.v0.common.WebpageInfo webpage = 31; + */ + boolean hasWebpage(); + /** + *
+   * Webpage.
+   * 
+ * + * .google.ads.googleads.v0.common.WebpageInfo webpage = 31; + */ + com.google.ads.googleads.v0.common.WebpageInfo getWebpage(); + /** + *
+   * Webpage.
+   * 
+ * + * .google.ads.googleads.v0.common.WebpageInfo webpage = 31; + */ + com.google.ads.googleads.v0.common.WebpageInfoOrBuilder getWebpageOrBuilder(); + + /** + *
+   * Operating system version.
+   * 
+ * + * .google.ads.googleads.v0.common.OperatingSystemVersionInfo operating_system_version = 32; + */ + boolean hasOperatingSystemVersion(); + /** + *
+   * Operating system version.
+   * 
+ * + * .google.ads.googleads.v0.common.OperatingSystemVersionInfo operating_system_version = 32; + */ + com.google.ads.googleads.v0.common.OperatingSystemVersionInfo getOperatingSystemVersion(); + /** + *
+   * Operating system version.
+   * 
+ * + * .google.ads.googleads.v0.common.OperatingSystemVersionInfo operating_system_version = 32; + */ + com.google.ads.googleads.v0.common.OperatingSystemVersionInfoOrBuilder getOperatingSystemVersionOrBuilder(); + public com.google.ads.googleads.v0.resources.CampaignCriterion.CriterionCase getCriterionCase(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignCriterionProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignCriterionProto.java index 921b891442..31ce3ee8ac 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignCriterionProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignCriterionProto.java @@ -33,7 +33,7 @@ public static void registerAllExtensions( "ds.v0.resources\032-google/ads/googleads/v0" + "/common/criteria.proto\0322google/ads/googl" + "eads/v0/enums/criterion_type.proto\032\036goog" + - "le/protobuf/wrappers.proto\"\256\r\n\021CampaignC" + + "le/protobuf/wrappers.proto\"\244\017\n\021CampaignC" + "riterion\022\025\n\rresource_name\030\001 \001(\t\022.\n\010campa" + "ign\030\004 \001(\0132\034.google.protobuf.StringValue\022" + "1\n\014criterion_id\030\005 \001(\0132\033.google.protobuf." + @@ -44,45 +44,52 @@ public static void registerAllExtensions( "ionTypeEnum.CriterionType\022>\n\007keyword\030\010 \001" + "(\0132+.google.ads.googleads.v0.common.Keyw" + "ordInfoH\000\022B\n\tplacement\030\t \001(\0132-.google.ad" + - "s.googleads.v0.common.PlacementInfoH\000\022@\n" + - "\010location\030\014 \001(\0132,.google.ads.googleads.v" + - "0.common.LocationInfoH\000\022<\n\006device\030\r \001(\0132" + - "*.google.ads.googleads.v0.common.DeviceI" + - "nfoH\000\022E\n\013ad_schedule\030\017 \001(\0132..google.ads." + - "googleads.v0.common.AdScheduleInfoH\000\022A\n\t" + - "age_range\030\020 \001(\0132,.google.ads.googleads.v" + - "0.common.AgeRangeInfoH\000\022<\n\006gender\030\021 \001(\0132" + - "*.google.ads.googleads.v0.common.GenderI" + - "nfoH\000\022G\n\014income_range\030\022 \001(\0132/.google.ads" + - ".googleads.v0.common.IncomeRangeInfoH\000\022M" + - "\n\017parental_status\030\023 \001(\01322.google.ads.goo" + - "gleads.v0.common.ParentalStatusInfoH\000\022A\n" + - "\tuser_list\030\026 \001(\0132,.google.ads.googleads." + - "v0.common.UserListInfoH\000\022I\n\ryoutube_vide" + - "o\030\024 \001(\01320.google.ads.googleads.v0.common" + - ".YouTubeVideoInfoH\000\022M\n\017youtube_channel\030\025" + - " \001(\01322.google.ads.googleads.v0.common.Yo" + - "uTubeChannelInfoH\000\022B\n\tproximity\030\027 \001(\0132-." + - "google.ads.googleads.v0.common.Proximity" + - "InfoH\000\022:\n\005topic\030\030 \001(\0132).google.ads.googl" + - "eads.v0.common.TopicInfoH\000\022I\n\rlisting_sc" + - "ope\030\031 \001(\01320.google.ads.googleads.v0.comm" + - "on.ListingScopeInfoH\000\022@\n\010language\030\032 \001(\0132" + - ",.google.ads.googleads.v0.common.Languag" + - "eInfoH\000\022?\n\010ip_block\030\033 \001(\0132+.google.ads.g" + - "oogleads.v0.common.IpBlockInfoH\000\022I\n\rcont" + - "ent_label\030\034 \001(\01320.google.ads.googleads.v" + - "0.common.ContentLabelInfoH\000\022>\n\007carrier\030\035" + - " \001(\0132+.google.ads.googleads.v0.common.Ca" + - "rrierInfoH\000\022I\n\ruser_interest\030\036 \001(\01320.goo" + - "gle.ads.googleads.v0.common.UserInterest" + - "InfoH\000B\013\n\tcriterionB\333\001\n%com.google.ads.g" + - "oogleads.v0.resourcesB\026CampaignCriterion" + - "ProtoP\001ZJgoogle.golang.org/genproto/goog" + - "leapis/ads/googleads/v0/resources;resour" + - "ces\242\002\003GAA\252\002!Google.Ads.GoogleAds.V0.Reso" + - "urces\312\002!Google\\Ads\\GoogleAds\\V0\\Resource" + - "sb\006proto3" + "s.googleads.v0.common.PlacementInfoH\000\022T\n" + + "\023mobile_app_category\030\n \001(\01325.google.ads." + + "googleads.v0.common.MobileAppCategoryInf" + + "oH\000\022@\n\010location\030\014 \001(\0132,.google.ads.googl" + + "eads.v0.common.LocationInfoH\000\022<\n\006device\030" + + "\r \001(\0132*.google.ads.googleads.v0.common.D" + + "eviceInfoH\000\022E\n\013ad_schedule\030\017 \001(\0132..googl" + + "e.ads.googleads.v0.common.AdScheduleInfo" + + "H\000\022A\n\tage_range\030\020 \001(\0132,.google.ads.googl" + + "eads.v0.common.AgeRangeInfoH\000\022<\n\006gender\030" + + "\021 \001(\0132*.google.ads.googleads.v0.common.G" + + "enderInfoH\000\022G\n\014income_range\030\022 \001(\0132/.goog" + + "le.ads.googleads.v0.common.IncomeRangeIn" + + "foH\000\022M\n\017parental_status\030\023 \001(\01322.google.a" + + "ds.googleads.v0.common.ParentalStatusInf" + + "oH\000\022A\n\tuser_list\030\026 \001(\0132,.google.ads.goog" + + "leads.v0.common.UserListInfoH\000\022I\n\ryoutub" + + "e_video\030\024 \001(\01320.google.ads.googleads.v0." + + "common.YouTubeVideoInfoH\000\022M\n\017youtube_cha" + + "nnel\030\025 \001(\01322.google.ads.googleads.v0.com" + + "mon.YouTubeChannelInfoH\000\022B\n\tproximity\030\027 " + + "\001(\0132-.google.ads.googleads.v0.common.Pro" + + "ximityInfoH\000\022:\n\005topic\030\030 \001(\0132).google.ads" + + ".googleads.v0.common.TopicInfoH\000\022I\n\rlist" + + "ing_scope\030\031 \001(\01320.google.ads.googleads.v" + + "0.common.ListingScopeInfoH\000\022@\n\010language\030" + + "\032 \001(\0132,.google.ads.googleads.v0.common.L" + + "anguageInfoH\000\022?\n\010ip_block\030\033 \001(\0132+.google" + + ".ads.googleads.v0.common.IpBlockInfoH\000\022I" + + "\n\rcontent_label\030\034 \001(\01320.google.ads.googl" + + "eads.v0.common.ContentLabelInfoH\000\022>\n\007car" + + "rier\030\035 \001(\0132+.google.ads.googleads.v0.com" + + "mon.CarrierInfoH\000\022I\n\ruser_interest\030\036 \001(\013" + + "20.google.ads.googleads.v0.common.UserIn" + + "terestInfoH\000\022>\n\007webpage\030\037 \001(\0132+.google.a" + + "ds.googleads.v0.common.WebpageInfoH\000\022^\n\030" + + "operating_system_version\030 \001(\0132:.google." + + "ads.googleads.v0.common.OperatingSystemV" + + "ersionInfoH\000B\013\n\tcriterionB\203\002\n%com.google" + + ".ads.googleads.v0.resourcesB\026CampaignCri" + + "terionProtoP\001ZJgoogle.golang.org/genprot" + + "o/googleapis/ads/googleads/v0/resources;" + + "resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V" + + "0.Resources\312\002!Google\\Ads\\GoogleAds\\V0\\Re" + + "sources\352\002%Google::Ads::GoogleAds::V0::Re" + + "sourcesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -104,7 +111,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_resources_CampaignCriterion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_resources_CampaignCriterion_descriptor, - new java.lang.String[] { "ResourceName", "Campaign", "CriterionId", "BidModifier", "Negative", "Type", "Keyword", "Placement", "Location", "Device", "AdSchedule", "AgeRange", "Gender", "IncomeRange", "ParentalStatus", "UserList", "YoutubeVideo", "YoutubeChannel", "Proximity", "Topic", "ListingScope", "Language", "IpBlock", "ContentLabel", "Carrier", "UserInterest", "Criterion", }); + new java.lang.String[] { "ResourceName", "Campaign", "CriterionId", "BidModifier", "Negative", "Type", "Keyword", "Placement", "MobileAppCategory", "Location", "Device", "AdSchedule", "AgeRange", "Gender", "IncomeRange", "ParentalStatus", "UserList", "YoutubeVideo", "YoutubeChannel", "Proximity", "Topic", "ListingScope", "Language", "IpBlock", "ContentLabel", "Carrier", "UserInterest", "Webpage", "OperatingSystemVersion", "Criterion", }); com.google.ads.googleads.v0.common.CriteriaProto.getDescriptor(); com.google.ads.googleads.v0.enums.CriterionTypeProto.getDescriptor(); com.google.protobuf.WrappersProto.getDescriptor(); diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignFeedProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignFeedProto.java index d329786cf0..e590e23133 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignFeedProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignFeedProto.java @@ -44,12 +44,13 @@ public static void registerAllExtensions( "ching_function\030\005 \001(\01320.google.ads.google" + "ads.v0.common.MatchingFunction\022P\n\006status" + "\030\006 \001(\0162@.google.ads.googleads.v0.enums.F" + - "eedLinkStatusEnum.FeedLinkStatusB\326\001\n%com" + + "eedLinkStatusEnum.FeedLinkStatusB\376\001\n%com" + ".google.ads.googleads.v0.resourcesB\021Camp" + "aignFeedProtoP\001ZJgoogle.golang.org/genpr" + "oto/googleapis/ads/googleads/v0/resource" + "s;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds" + ".V0.Resources\312\002!Google\\Ads\\GoogleAds\\V0\\" + + "Resources\352\002%Google::Ads::GoogleAds::V0::" + "Resourcesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignGroupOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignGroupOrBuilder.java deleted file mode 100644 index 277bbed3b8..0000000000 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignGroupOrBuilder.java +++ /dev/null @@ -1,112 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v0/resources/campaign_group.proto - -package com.google.ads.googleads.v0.resources; - -public interface CampaignGroupOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.resources.CampaignGroup) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The resource name of the campaign group.
-   * Campaign group resource names have the form:
-   * `customers/{customer_id}/campaignGroups/{campaign_group_id}`
-   * 
- * - * string resource_name = 1; - */ - java.lang.String getResourceName(); - /** - *
-   * The resource name of the campaign group.
-   * Campaign group resource names have the form:
-   * `customers/{customer_id}/campaignGroups/{campaign_group_id}`
-   * 
- * - * string resource_name = 1; - */ - com.google.protobuf.ByteString - getResourceNameBytes(); - - /** - *
-   * The ID of the campaign group.
-   * 
- * - * .google.protobuf.Int64Value id = 3; - */ - boolean hasId(); - /** - *
-   * The ID of the campaign group.
-   * 
- * - * .google.protobuf.Int64Value id = 3; - */ - com.google.protobuf.Int64Value getId(); - /** - *
-   * The ID of the campaign group.
-   * 
- * - * .google.protobuf.Int64Value id = 3; - */ - com.google.protobuf.Int64ValueOrBuilder getIdOrBuilder(); - - /** - *
-   * The name of the campaign group.
-   * This field is required and should not be empty when creating new campaign
-   * groups.
-   * It must not contain any null (code point 0x0), NL line feed
-   * (code point 0xA) or carriage return (code point 0xD) characters.
-   * 
- * - * .google.protobuf.StringValue name = 4; - */ - boolean hasName(); - /** - *
-   * The name of the campaign group.
-   * This field is required and should not be empty when creating new campaign
-   * groups.
-   * It must not contain any null (code point 0x0), NL line feed
-   * (code point 0xA) or carriage return (code point 0xD) characters.
-   * 
- * - * .google.protobuf.StringValue name = 4; - */ - com.google.protobuf.StringValue getName(); - /** - *
-   * The name of the campaign group.
-   * This field is required and should not be empty when creating new campaign
-   * groups.
-   * It must not contain any null (code point 0x0), NL line feed
-   * (code point 0xA) or carriage return (code point 0xD) characters.
-   * 
- * - * .google.protobuf.StringValue name = 4; - */ - com.google.protobuf.StringValueOrBuilder getNameOrBuilder(); - - /** - *
-   * The status of the campaign group.
-   * When a new campaign group is added, the status defaults to ENABLED.
-   * 
- * - * .google.ads.googleads.v0.enums.CampaignGroupStatusEnum.CampaignGroupStatus status = 5; - */ - int getStatusValue(); - /** - *
-   * The status of the campaign group.
-   * When a new campaign group is added, the status defaults to ENABLED.
-   * 
- * - * .google.ads.googleads.v0.enums.CampaignGroupStatusEnum.CampaignGroupStatus status = 5; - */ - com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum.CampaignGroupStatus getStatus(); -} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignOrBuilder.java index 8ac61aeee4..2807453db2 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignOrBuilder.java @@ -396,6 +396,31 @@ com.google.ads.googleads.v0.common.CustomParameterOrBuilder getUrlCustomParamete */ com.google.ads.googleads.v0.resources.Campaign.ShoppingSettingOrBuilder getShoppingSettingOrBuilder(); + /** + *
+   * Setting for targeting related features.
+   * 
+ * + * .google.ads.googleads.v0.common.TargetingSetting targeting_setting = 43; + */ + boolean hasTargetingSetting(); + /** + *
+   * Setting for targeting related features.
+   * 
+ * + * .google.ads.googleads.v0.common.TargetingSetting targeting_setting = 43; + */ + com.google.ads.googleads.v0.common.TargetingSetting getTargetingSetting(); + /** + *
+   * Setting for targeting related features.
+   * 
+ * + * .google.ads.googleads.v0.common.TargetingSetting targeting_setting = 43; + */ + com.google.ads.googleads.v0.common.TargetingSettingOrBuilder getTargetingSettingOrBuilder(); + /** *
    * The budget of the campaign.
@@ -474,31 +499,6 @@ com.google.ads.googleads.v0.common.CustomParameterOrBuilder getUrlCustomParamete
    */
   com.google.protobuf.StringValueOrBuilder getStartDateOrBuilder();
 
-  /**
-   * 
-   * The campaign group this campaign belongs to.
-   * 
- * - * .google.protobuf.StringValue campaign_group = 35; - */ - boolean hasCampaignGroup(); - /** - *
-   * The campaign group this campaign belongs to.
-   * 
- * - * .google.protobuf.StringValue campaign_group = 35; - */ - com.google.protobuf.StringValue getCampaignGroup(); - /** - *
-   * The campaign group this campaign belongs to.
-   * 
- * - * .google.protobuf.StringValue campaign_group = 35; - */ - com.google.protobuf.StringValueOrBuilder getCampaignGroupOrBuilder(); - /** *
    * The date when campaign ended.
@@ -599,6 +599,101 @@ com.google.ads.googleads.v0.common.CustomParameterOrBuilder getUrlCustomParamete
   com.google.ads.googleads.v0.common.FrequencyCapEntryOrBuilder getFrequencyCapsOrBuilder(
       int index);
 
+  /**
+   * 
+   * 3-Tier Brand Safety setting for the campaign.
+   * 
+ * + * .google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability video_brand_safety_suitability = 42; + */ + int getVideoBrandSafetySuitabilityValue(); + /** + *
+   * 3-Tier Brand Safety setting for the campaign.
+   * 
+ * + * .google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability video_brand_safety_suitability = 42; + */ + com.google.ads.googleads.v0.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability getVideoBrandSafetySuitability(); + + /** + *
+   * Describes how unbranded pharma ads will be displayed.
+   * 
+ * + * .google.ads.googleads.v0.resources.Campaign.VanityPharma vanity_pharma = 44; + */ + boolean hasVanityPharma(); + /** + *
+   * Describes how unbranded pharma ads will be displayed.
+   * 
+ * + * .google.ads.googleads.v0.resources.Campaign.VanityPharma vanity_pharma = 44; + */ + com.google.ads.googleads.v0.resources.Campaign.VanityPharma getVanityPharma(); + /** + *
+   * Describes how unbranded pharma ads will be displayed.
+   * 
+ * + * .google.ads.googleads.v0.resources.Campaign.VanityPharma vanity_pharma = 44; + */ + com.google.ads.googleads.v0.resources.Campaign.VanityPharmaOrBuilder getVanityPharmaOrBuilder(); + + /** + *
+   * Selective optimization setting for this campaign, which includes a set of
+   * conversion actions to optimize this campaign towards.
+   * 
+ * + * .google.ads.googleads.v0.resources.Campaign.SelectiveOptimization selective_optimization = 45; + */ + boolean hasSelectiveOptimization(); + /** + *
+   * Selective optimization setting for this campaign, which includes a set of
+   * conversion actions to optimize this campaign towards.
+   * 
+ * + * .google.ads.googleads.v0.resources.Campaign.SelectiveOptimization selective_optimization = 45; + */ + com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimization getSelectiveOptimization(); + /** + *
+   * Selective optimization setting for this campaign, which includes a set of
+   * conversion actions to optimize this campaign towards.
+   * 
+ * + * .google.ads.googleads.v0.resources.Campaign.SelectiveOptimization selective_optimization = 45; + */ + com.google.ads.googleads.v0.resources.Campaign.SelectiveOptimizationOrBuilder getSelectiveOptimizationOrBuilder(); + + /** + *
+   * Campaign level settings for tracking information.
+   * 
+ * + * .google.ads.googleads.v0.resources.Campaign.TrackingSetting tracking_setting = 46; + */ + boolean hasTrackingSetting(); + /** + *
+   * Campaign level settings for tracking information.
+   * 
+ * + * .google.ads.googleads.v0.resources.Campaign.TrackingSetting tracking_setting = 46; + */ + com.google.ads.googleads.v0.resources.Campaign.TrackingSetting getTrackingSetting(); + /** + *
+   * Campaign level settings for tracking information.
+   * 
+ * + * .google.ads.googleads.v0.resources.Campaign.TrackingSetting tracking_setting = 46; + */ + com.google.ads.googleads.v0.resources.Campaign.TrackingSettingOrBuilder getTrackingSettingOrBuilder(); + /** *
    * Portfolio bidding strategy used by campaign.
@@ -879,5 +974,33 @@ com.google.ads.googleads.v0.common.FrequencyCapEntryOrBuilder getFrequencyCapsOr
    */
   com.google.ads.googleads.v0.common.PercentCpcOrBuilder getPercentCpcOrBuilder();
 
+  /**
+   * 
+   * A bidding strategy that automatically optimizes cost per thousand
+   * impressions.
+   * 
+ * + * .google.ads.googleads.v0.common.TargetCpm target_cpm = 41; + */ + boolean hasTargetCpm(); + /** + *
+   * A bidding strategy that automatically optimizes cost per thousand
+   * impressions.
+   * 
+ * + * .google.ads.googleads.v0.common.TargetCpm target_cpm = 41; + */ + com.google.ads.googleads.v0.common.TargetCpm getTargetCpm(); + /** + *
+   * A bidding strategy that automatically optimizes cost per thousand
+   * impressions.
+   * 
+ * + * .google.ads.googleads.v0.common.TargetCpm target_cpm = 41; + */ + com.google.ads.googleads.v0.common.TargetCpmOrBuilder getTargetCpmOrBuilder(); + public com.google.ads.googleads.v0.resources.Campaign.CampaignBiddingStrategyCase getCampaignBiddingStrategyCase(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignProto.java index 462a8df24d..cb9db3813c 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignProto.java @@ -39,6 +39,21 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_googleads_v0_resources_Campaign_ShoppingSetting_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_resources_Campaign_TrackingSetting_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_resources_Campaign_TrackingSetting_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_resources_Campaign_VanityPharma_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_resources_Campaign_VanityPharma_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_resources_Campaign_SelectiveOptimization_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_resources_Campaign_SelectiveOptimization_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -55,104 +70,133 @@ public static void registerAllExtensions( "mon/custom_parameter.proto\0322google/ads/g" + "oogleads/v0/common/frequency_cap.proto\032>" + "google/ads/googleads/v0/common/real_time" + - "_bidding_setting.proto\032Bgoogle/ads/googl" + - "eads/v0/enums/ad_serving_optimization_st" + - "atus.proto\032@google/ads/googleads/v0/enum" + - "s/advertising_channel_sub_type.proto\032 + * The Feed affected by this change. + *
+ * + * .google.protobuf.StringValue feed = 12; + */ + public boolean hasFeed() { + return feed_ != null; + } + /** + *
+   * The Feed affected by this change.
+   * 
+ * + * .google.protobuf.StringValue feed = 12; + */ + public com.google.protobuf.StringValue getFeed() { + return feed_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : feed_; + } + /** + *
+   * The Feed affected by this change.
+   * 
+ * + * .google.protobuf.StringValue feed = 12; + */ + public com.google.protobuf.StringValueOrBuilder getFeedOrBuilder() { + return getFeed(); + } + + public static final int FEED_ITEM_FIELD_NUMBER = 13; + private com.google.protobuf.StringValue feedItem_; + /** + *
+   * The FeedItem affected by this change.
+   * 
+ * + * .google.protobuf.StringValue feed_item = 13; + */ + public boolean hasFeedItem() { + return feedItem_ != null; + } + /** + *
+   * The FeedItem affected by this change.
+   * 
+ * + * .google.protobuf.StringValue feed_item = 13; + */ + public com.google.protobuf.StringValue getFeedItem() { + return feedItem_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : feedItem_; + } + /** + *
+   * The FeedItem affected by this change.
+   * 
+ * + * .google.protobuf.StringValue feed_item = 13; + */ + public com.google.protobuf.StringValueOrBuilder getFeedItemOrBuilder() { + return getFeedItem(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -516,6 +608,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (campaignCriterion_ != null) { output.writeMessage(11, getCampaignCriterion()); } + if (feed_ != null) { + output.writeMessage(12, getFeed()); + } + if (feedItem_ != null) { + output.writeMessage(13, getFeedItem()); + } unknownFields.writeTo(output); } @@ -560,6 +658,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getCampaignCriterion()); } + if (feed_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getFeed()); + } + if (feedItem_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getFeedItem()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -610,6 +716,16 @@ public boolean equals(final java.lang.Object obj) { result = result && getCampaignCriterion() .equals(other.getCampaignCriterion()); } + result = result && (hasFeed() == other.hasFeed()); + if (hasFeed()) { + result = result && getFeed() + .equals(other.getFeed()); + } + result = result && (hasFeedItem() == other.hasFeedItem()); + if (hasFeedItem()) { + result = result && getFeedItem() + .equals(other.getFeedItem()); + } result = result && unknownFields.equals(other.unknownFields); return result; } @@ -651,6 +767,14 @@ public int hashCode() { hash = (37 * hash) + CAMPAIGN_CRITERION_FIELD_NUMBER; hash = (53 * hash) + getCampaignCriterion().hashCode(); } + if (hasFeed()) { + hash = (37 * hash) + FEED_FIELD_NUMBER; + hash = (53 * hash) + getFeed().hashCode(); + } + if (hasFeedItem()) { + hash = (37 * hash) + FEED_ITEM_FIELD_NUMBER; + hash = (53 * hash) + getFeedItem().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -830,6 +954,18 @@ public Builder clear() { campaignCriterion_ = null; campaignCriterionBuilder_ = null; } + if (feedBuilder_ == null) { + feed_ = null; + } else { + feed_ = null; + feedBuilder_ = null; + } + if (feedItemBuilder_ == null) { + feedItem_ = null; + } else { + feedItem_ = null; + feedItemBuilder_ = null; + } return this; } @@ -889,6 +1025,16 @@ public com.google.ads.googleads.v0.resources.ChangeStatus buildPartial() { } else { result.campaignCriterion_ = campaignCriterionBuilder_.build(); } + if (feedBuilder_ == null) { + result.feed_ = feed_; + } else { + result.feed_ = feedBuilder_.build(); + } + if (feedItemBuilder_ == null) { + result.feedItem_ = feedItem_; + } else { + result.feedItem_ = feedItemBuilder_.build(); + } onBuilt(); return result; } @@ -965,6 +1111,12 @@ public Builder mergeFrom(com.google.ads.googleads.v0.resources.ChangeStatus othe if (other.hasCampaignCriterion()) { mergeCampaignCriterion(other.getCampaignCriterion()); } + if (other.hasFeed()) { + mergeFeed(other.getFeed()); + } + if (other.hasFeedItem()) { + mergeFeedItem(other.getFeedItem()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2150,6 +2302,312 @@ public com.google.protobuf.StringValueOrBuilder getCampaignCriterionOrBuilder() } return campaignCriterionBuilder_; } + + private com.google.protobuf.StringValue feed_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> feedBuilder_; + /** + *
+     * The Feed affected by this change.
+     * 
+ * + * .google.protobuf.StringValue feed = 12; + */ + public boolean hasFeed() { + return feedBuilder_ != null || feed_ != null; + } + /** + *
+     * The Feed affected by this change.
+     * 
+ * + * .google.protobuf.StringValue feed = 12; + */ + public com.google.protobuf.StringValue getFeed() { + if (feedBuilder_ == null) { + return feed_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : feed_; + } else { + return feedBuilder_.getMessage(); + } + } + /** + *
+     * The Feed affected by this change.
+     * 
+ * + * .google.protobuf.StringValue feed = 12; + */ + public Builder setFeed(com.google.protobuf.StringValue value) { + if (feedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + feed_ = value; + onChanged(); + } else { + feedBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The Feed affected by this change.
+     * 
+ * + * .google.protobuf.StringValue feed = 12; + */ + public Builder setFeed( + com.google.protobuf.StringValue.Builder builderForValue) { + if (feedBuilder_ == null) { + feed_ = builderForValue.build(); + onChanged(); + } else { + feedBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The Feed affected by this change.
+     * 
+ * + * .google.protobuf.StringValue feed = 12; + */ + public Builder mergeFeed(com.google.protobuf.StringValue value) { + if (feedBuilder_ == null) { + if (feed_ != null) { + feed_ = + com.google.protobuf.StringValue.newBuilder(feed_).mergeFrom(value).buildPartial(); + } else { + feed_ = value; + } + onChanged(); + } else { + feedBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The Feed affected by this change.
+     * 
+ * + * .google.protobuf.StringValue feed = 12; + */ + public Builder clearFeed() { + if (feedBuilder_ == null) { + feed_ = null; + onChanged(); + } else { + feed_ = null; + feedBuilder_ = null; + } + + return this; + } + /** + *
+     * The Feed affected by this change.
+     * 
+ * + * .google.protobuf.StringValue feed = 12; + */ + public com.google.protobuf.StringValue.Builder getFeedBuilder() { + + onChanged(); + return getFeedFieldBuilder().getBuilder(); + } + /** + *
+     * The Feed affected by this change.
+     * 
+ * + * .google.protobuf.StringValue feed = 12; + */ + public com.google.protobuf.StringValueOrBuilder getFeedOrBuilder() { + if (feedBuilder_ != null) { + return feedBuilder_.getMessageOrBuilder(); + } else { + return feed_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : feed_; + } + } + /** + *
+     * The Feed affected by this change.
+     * 
+ * + * .google.protobuf.StringValue feed = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getFeedFieldBuilder() { + if (feedBuilder_ == null) { + feedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getFeed(), + getParentForChildren(), + isClean()); + feed_ = null; + } + return feedBuilder_; + } + + private com.google.protobuf.StringValue feedItem_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> feedItemBuilder_; + /** + *
+     * The FeedItem affected by this change.
+     * 
+ * + * .google.protobuf.StringValue feed_item = 13; + */ + public boolean hasFeedItem() { + return feedItemBuilder_ != null || feedItem_ != null; + } + /** + *
+     * The FeedItem affected by this change.
+     * 
+ * + * .google.protobuf.StringValue feed_item = 13; + */ + public com.google.protobuf.StringValue getFeedItem() { + if (feedItemBuilder_ == null) { + return feedItem_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : feedItem_; + } else { + return feedItemBuilder_.getMessage(); + } + } + /** + *
+     * The FeedItem affected by this change.
+     * 
+ * + * .google.protobuf.StringValue feed_item = 13; + */ + public Builder setFeedItem(com.google.protobuf.StringValue value) { + if (feedItemBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + feedItem_ = value; + onChanged(); + } else { + feedItemBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The FeedItem affected by this change.
+     * 
+ * + * .google.protobuf.StringValue feed_item = 13; + */ + public Builder setFeedItem( + com.google.protobuf.StringValue.Builder builderForValue) { + if (feedItemBuilder_ == null) { + feedItem_ = builderForValue.build(); + onChanged(); + } else { + feedItemBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The FeedItem affected by this change.
+     * 
+ * + * .google.protobuf.StringValue feed_item = 13; + */ + public Builder mergeFeedItem(com.google.protobuf.StringValue value) { + if (feedItemBuilder_ == null) { + if (feedItem_ != null) { + feedItem_ = + com.google.protobuf.StringValue.newBuilder(feedItem_).mergeFrom(value).buildPartial(); + } else { + feedItem_ = value; + } + onChanged(); + } else { + feedItemBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The FeedItem affected by this change.
+     * 
+ * + * .google.protobuf.StringValue feed_item = 13; + */ + public Builder clearFeedItem() { + if (feedItemBuilder_ == null) { + feedItem_ = null; + onChanged(); + } else { + feedItem_ = null; + feedItemBuilder_ = null; + } + + return this; + } + /** + *
+     * The FeedItem affected by this change.
+     * 
+ * + * .google.protobuf.StringValue feed_item = 13; + */ + public com.google.protobuf.StringValue.Builder getFeedItemBuilder() { + + onChanged(); + return getFeedItemFieldBuilder().getBuilder(); + } + /** + *
+     * The FeedItem affected by this change.
+     * 
+ * + * .google.protobuf.StringValue feed_item = 13; + */ + public com.google.protobuf.StringValueOrBuilder getFeedItemOrBuilder() { + if (feedItemBuilder_ != null) { + return feedItemBuilder_.getMessageOrBuilder(); + } else { + return feedItem_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : feedItem_; + } + } + /** + *
+     * The FeedItem affected by this change.
+     * 
+ * + * .google.protobuf.StringValue feed_item = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getFeedItemFieldBuilder() { + if (feedItemBuilder_ == null) { + feedItemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getFeedItem(), + getParentForChildren(), + isClean()); + feedItem_ = null; + } + return feedItemBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/ChangeStatusOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/ChangeStatusOrBuilder.java index 50d2d25f3e..aa014716f7 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/ChangeStatusOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/ChangeStatusOrBuilder.java @@ -216,4 +216,54 @@ public interface ChangeStatusOrBuilder extends * .google.protobuf.StringValue campaign_criterion = 11; */ com.google.protobuf.StringValueOrBuilder getCampaignCriterionOrBuilder(); + + /** + *
+   * The Feed affected by this change.
+   * 
+ * + * .google.protobuf.StringValue feed = 12; + */ + boolean hasFeed(); + /** + *
+   * The Feed affected by this change.
+   * 
+ * + * .google.protobuf.StringValue feed = 12; + */ + com.google.protobuf.StringValue getFeed(); + /** + *
+   * The Feed affected by this change.
+   * 
+ * + * .google.protobuf.StringValue feed = 12; + */ + com.google.protobuf.StringValueOrBuilder getFeedOrBuilder(); + + /** + *
+   * The FeedItem affected by this change.
+   * 
+ * + * .google.protobuf.StringValue feed_item = 13; + */ + boolean hasFeedItem(); + /** + *
+   * The FeedItem affected by this change.
+   * 
+ * + * .google.protobuf.StringValue feed_item = 13; + */ + com.google.protobuf.StringValue getFeedItem(); + /** + *
+   * The FeedItem affected by this change.
+   * 
+ * + * .google.protobuf.StringValue feed_item = 13; + */ + com.google.protobuf.StringValueOrBuilder getFeedItemOrBuilder(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/ChangeStatusProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/ChangeStatusProto.java index 76eb962f55..55b1db7cf8 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/ChangeStatusProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/ChangeStatusProto.java @@ -34,7 +34,7 @@ public static void registerAllExtensions( "s/change_status_operation.proto\032?google/" + "ads/googleads/v0/enums/change_status_res" + "ource_type.proto\032\036google/protobuf/wrappe" + - "rs.proto\"\277\004\n\014ChangeStatus\022\025\n\rresource_na" + + "rs.proto\"\234\005\n\014ChangeStatus\022\025\n\rresource_na" + "me\030\001 \001(\t\022;\n\025last_change_date_time\030\003 \001(\0132" + "\034.google.protobuf.StringValue\022k\n\rresourc" + "e_type\030\004 \001(\0162T.google.ads.googleads.v0.e" + @@ -48,13 +48,16 @@ public static void registerAllExtensions( "2\034.google.protobuf.StringValue\0228\n\022ad_gro" + "up_criterion\030\n \001(\0132\034.google.protobuf.Str" + "ingValue\0228\n\022campaign_criterion\030\013 \001(\0132\034.g" + - "oogle.protobuf.StringValueB\326\001\n%com.googl" + - "e.ads.googleads.v0.resourcesB\021ChangeStat" + - "usProtoP\001ZJgoogle.golang.org/genproto/go" + - "ogleapis/ads/googleads/v0/resources;reso" + - "urces\242\002\003GAA\252\002!Google.Ads.GoogleAds.V0.Re" + - "sources\312\002!Google\\Ads\\GoogleAds\\V0\\Resour" + - "cesb\006proto3" + "oogle.protobuf.StringValue\022*\n\004feed\030\014 \001(\013" + + "2\034.google.protobuf.StringValue\022/\n\tfeed_i" + + "tem\030\r \001(\0132\034.google.protobuf.StringValueB" + + "\376\001\n%com.google.ads.googleads.v0.resource" + + "sB\021ChangeStatusProtoP\001ZJgoogle.golang.or" + + "g/genproto/googleapis/ads/googleads/v0/r" + + "esources;resources\242\002\003GAA\252\002!Google.Ads.Go" + + "ogleAds.V0.Resources\312\002!Google\\Ads\\Google" + + "Ads\\V0\\Resources\352\002%Google::Ads::GoogleAd" + + "s::V0::Resourcesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -76,7 +79,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_resources_ChangeStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_resources_ChangeStatus_descriptor, - new java.lang.String[] { "ResourceName", "LastChangeDateTime", "ResourceType", "Campaign", "AdGroup", "ResourceStatus", "AdGroupAd", "AdGroupCriterion", "CampaignCriterion", }); + new java.lang.String[] { "ResourceName", "LastChangeDateTime", "ResourceType", "Campaign", "AdGroup", "ResourceStatus", "AdGroupAd", "AdGroupCriterion", "CampaignCriterion", "Feed", "FeedItem", }); com.google.ads.googleads.v0.enums.ChangeStatusOperationProto.getDescriptor(); com.google.ads.googleads.v0.enums.ChangeStatusResourceTypeProto.getDescriptor(); com.google.protobuf.WrappersProto.getDescriptor(); diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/ConversionActionProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/ConversionActionProto.java index cee9c4942f..7067acb4e7 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/ConversionActionProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/ConversionActionProto.java @@ -92,12 +92,13 @@ public static void registerAllExtensions( "bleValue\022;\n\025default_currency_code\030\002 \001(\0132" + "\034.google.protobuf.StringValue\022<\n\030always_" + "use_default_value\030\003 \001(\0132\032.google.protobu" + - "f.BoolValueB\332\001\n%com.google.ads.googleads" + + "f.BoolValueB\202\002\n%com.google.ads.googleads" + ".v0.resourcesB\025ConversionActionProtoP\001ZJ" + "google.golang.org/genproto/googleapis/ad" + "s/googleads/v0/resources;resources\242\002\003GAA" + "\252\002!Google.Ads.GoogleAds.V0.Resources\312\002!G" + - "oogle\\Ads\\GoogleAds\\V0\\Resourcesb\006proto3" + "oogle\\Ads\\GoogleAds\\V0\\Resources\352\002%Googl" + + "e::Ads::GoogleAds::V0::Resourcesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/ConversionTrackingSetting.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/ConversionTrackingSetting.java new file mode 100644 index 0000000000..6239d568fa --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/ConversionTrackingSetting.java @@ -0,0 +1,942 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/resources/customer.proto + +package com.google.ads.googleads.v0.resources; + +/** + *
+ * A collection of customer-wide settings related to Google Ads Conversion
+ * Tracking.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.resources.ConversionTrackingSetting} + */ +public final class ConversionTrackingSetting extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.resources.ConversionTrackingSetting) + ConversionTrackingSettingOrBuilder { +private static final long serialVersionUID = 0L; + // Use ConversionTrackingSetting.newBuilder() to construct. + private ConversionTrackingSetting(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ConversionTrackingSetting() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ConversionTrackingSetting( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.Int64Value.Builder subBuilder = null; + if (conversionTrackingId_ != null) { + subBuilder = conversionTrackingId_.toBuilder(); + } + conversionTrackingId_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(conversionTrackingId_); + conversionTrackingId_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.protobuf.Int64Value.Builder subBuilder = null; + if (crossAccountConversionTrackingId_ != null) { + subBuilder = crossAccountConversionTrackingId_.toBuilder(); + } + crossAccountConversionTrackingId_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(crossAccountConversionTrackingId_); + crossAccountConversionTrackingId_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.resources.CustomerProto.internal_static_google_ads_googleads_v0_resources_ConversionTrackingSetting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.resources.CustomerProto.internal_static_google_ads_googleads_v0_resources_ConversionTrackingSetting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.resources.ConversionTrackingSetting.class, com.google.ads.googleads.v0.resources.ConversionTrackingSetting.Builder.class); + } + + public static final int CONVERSION_TRACKING_ID_FIELD_NUMBER = 1; + private com.google.protobuf.Int64Value conversionTrackingId_; + /** + *
+   * The conversion tracking id used for this account. This id is automatically
+   * assigned after any conversion tracking feature is used. If the customer
+   * doesn't use conversion tracking, this is 0. This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value conversion_tracking_id = 1; + */ + public boolean hasConversionTrackingId() { + return conversionTrackingId_ != null; + } + /** + *
+   * The conversion tracking id used for this account. This id is automatically
+   * assigned after any conversion tracking feature is used. If the customer
+   * doesn't use conversion tracking, this is 0. This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value conversion_tracking_id = 1; + */ + public com.google.protobuf.Int64Value getConversionTrackingId() { + return conversionTrackingId_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : conversionTrackingId_; + } + /** + *
+   * The conversion tracking id used for this account. This id is automatically
+   * assigned after any conversion tracking feature is used. If the customer
+   * doesn't use conversion tracking, this is 0. This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value conversion_tracking_id = 1; + */ + public com.google.protobuf.Int64ValueOrBuilder getConversionTrackingIdOrBuilder() { + return getConversionTrackingId(); + } + + public static final int CROSS_ACCOUNT_CONVERSION_TRACKING_ID_FIELD_NUMBER = 2; + private com.google.protobuf.Int64Value crossAccountConversionTrackingId_; + /** + *
+   * The conversion tracking id of the customer's manager. This is set when the
+   * customer is opted into cross account conversion tracking, and it overrides
+   * conversion_tracking_id. This field can only be managed through the Google
+   * Ads UI. This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value cross_account_conversion_tracking_id = 2; + */ + public boolean hasCrossAccountConversionTrackingId() { + return crossAccountConversionTrackingId_ != null; + } + /** + *
+   * The conversion tracking id of the customer's manager. This is set when the
+   * customer is opted into cross account conversion tracking, and it overrides
+   * conversion_tracking_id. This field can only be managed through the Google
+   * Ads UI. This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value cross_account_conversion_tracking_id = 2; + */ + public com.google.protobuf.Int64Value getCrossAccountConversionTrackingId() { + return crossAccountConversionTrackingId_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : crossAccountConversionTrackingId_; + } + /** + *
+   * The conversion tracking id of the customer's manager. This is set when the
+   * customer is opted into cross account conversion tracking, and it overrides
+   * conversion_tracking_id. This field can only be managed through the Google
+   * Ads UI. This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value cross_account_conversion_tracking_id = 2; + */ + public com.google.protobuf.Int64ValueOrBuilder getCrossAccountConversionTrackingIdOrBuilder() { + return getCrossAccountConversionTrackingId(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (conversionTrackingId_ != null) { + output.writeMessage(1, getConversionTrackingId()); + } + if (crossAccountConversionTrackingId_ != null) { + output.writeMessage(2, getCrossAccountConversionTrackingId()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (conversionTrackingId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getConversionTrackingId()); + } + if (crossAccountConversionTrackingId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCrossAccountConversionTrackingId()); + } + size += unknownFields.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.ads.googleads.v0.resources.ConversionTrackingSetting)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.resources.ConversionTrackingSetting other = (com.google.ads.googleads.v0.resources.ConversionTrackingSetting) obj; + + boolean result = true; + result = result && (hasConversionTrackingId() == other.hasConversionTrackingId()); + if (hasConversionTrackingId()) { + result = result && getConversionTrackingId() + .equals(other.getConversionTrackingId()); + } + result = result && (hasCrossAccountConversionTrackingId() == other.hasCrossAccountConversionTrackingId()); + if (hasCrossAccountConversionTrackingId()) { + result = result && getCrossAccountConversionTrackingId() + .equals(other.getCrossAccountConversionTrackingId()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasConversionTrackingId()) { + hash = (37 * hash) + CONVERSION_TRACKING_ID_FIELD_NUMBER; + hash = (53 * hash) + getConversionTrackingId().hashCode(); + } + if (hasCrossAccountConversionTrackingId()) { + hash = (37 * hash) + CROSS_ACCOUNT_CONVERSION_TRACKING_ID_FIELD_NUMBER; + hash = (53 * hash) + getCrossAccountConversionTrackingId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.resources.ConversionTrackingSetting parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.ConversionTrackingSetting parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.resources.ConversionTrackingSetting parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.ConversionTrackingSetting 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.ads.googleads.v0.resources.ConversionTrackingSetting parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.ConversionTrackingSetting parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.resources.ConversionTrackingSetting parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.ConversionTrackingSetting 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.ads.googleads.v0.resources.ConversionTrackingSetting parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.ConversionTrackingSetting 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.ads.googleads.v0.resources.ConversionTrackingSetting parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.ConversionTrackingSetting 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.ads.googleads.v0.resources.ConversionTrackingSetting prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A collection of customer-wide settings related to Google Ads Conversion
+   * Tracking.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.resources.ConversionTrackingSetting} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.resources.ConversionTrackingSetting) + com.google.ads.googleads.v0.resources.ConversionTrackingSettingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.resources.CustomerProto.internal_static_google_ads_googleads_v0_resources_ConversionTrackingSetting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.resources.CustomerProto.internal_static_google_ads_googleads_v0_resources_ConversionTrackingSetting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.resources.ConversionTrackingSetting.class, com.google.ads.googleads.v0.resources.ConversionTrackingSetting.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.resources.ConversionTrackingSetting.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (conversionTrackingIdBuilder_ == null) { + conversionTrackingId_ = null; + } else { + conversionTrackingId_ = null; + conversionTrackingIdBuilder_ = null; + } + if (crossAccountConversionTrackingIdBuilder_ == null) { + crossAccountConversionTrackingId_ = null; + } else { + crossAccountConversionTrackingId_ = null; + crossAccountConversionTrackingIdBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.resources.CustomerProto.internal_static_google_ads_googleads_v0_resources_ConversionTrackingSetting_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.ConversionTrackingSetting getDefaultInstanceForType() { + return com.google.ads.googleads.v0.resources.ConversionTrackingSetting.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.ConversionTrackingSetting build() { + com.google.ads.googleads.v0.resources.ConversionTrackingSetting result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.ConversionTrackingSetting buildPartial() { + com.google.ads.googleads.v0.resources.ConversionTrackingSetting result = new com.google.ads.googleads.v0.resources.ConversionTrackingSetting(this); + if (conversionTrackingIdBuilder_ == null) { + result.conversionTrackingId_ = conversionTrackingId_; + } else { + result.conversionTrackingId_ = conversionTrackingIdBuilder_.build(); + } + if (crossAccountConversionTrackingIdBuilder_ == null) { + result.crossAccountConversionTrackingId_ = crossAccountConversionTrackingId_; + } else { + result.crossAccountConversionTrackingId_ = crossAccountConversionTrackingIdBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.resources.ConversionTrackingSetting) { + return mergeFrom((com.google.ads.googleads.v0.resources.ConversionTrackingSetting)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.resources.ConversionTrackingSetting other) { + if (other == com.google.ads.googleads.v0.resources.ConversionTrackingSetting.getDefaultInstance()) return this; + if (other.hasConversionTrackingId()) { + mergeConversionTrackingId(other.getConversionTrackingId()); + } + if (other.hasCrossAccountConversionTrackingId()) { + mergeCrossAccountConversionTrackingId(other.getCrossAccountConversionTrackingId()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.resources.ConversionTrackingSetting parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.resources.ConversionTrackingSetting) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Int64Value conversionTrackingId_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> conversionTrackingIdBuilder_; + /** + *
+     * The conversion tracking id used for this account. This id is automatically
+     * assigned after any conversion tracking feature is used. If the customer
+     * doesn't use conversion tracking, this is 0. This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value conversion_tracking_id = 1; + */ + public boolean hasConversionTrackingId() { + return conversionTrackingIdBuilder_ != null || conversionTrackingId_ != null; + } + /** + *
+     * The conversion tracking id used for this account. This id is automatically
+     * assigned after any conversion tracking feature is used. If the customer
+     * doesn't use conversion tracking, this is 0. This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value conversion_tracking_id = 1; + */ + public com.google.protobuf.Int64Value getConversionTrackingId() { + if (conversionTrackingIdBuilder_ == null) { + return conversionTrackingId_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : conversionTrackingId_; + } else { + return conversionTrackingIdBuilder_.getMessage(); + } + } + /** + *
+     * The conversion tracking id used for this account. This id is automatically
+     * assigned after any conversion tracking feature is used. If the customer
+     * doesn't use conversion tracking, this is 0. This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value conversion_tracking_id = 1; + */ + public Builder setConversionTrackingId(com.google.protobuf.Int64Value value) { + if (conversionTrackingIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conversionTrackingId_ = value; + onChanged(); + } else { + conversionTrackingIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The conversion tracking id used for this account. This id is automatically
+     * assigned after any conversion tracking feature is used. If the customer
+     * doesn't use conversion tracking, this is 0. This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value conversion_tracking_id = 1; + */ + public Builder setConversionTrackingId( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (conversionTrackingIdBuilder_ == null) { + conversionTrackingId_ = builderForValue.build(); + onChanged(); + } else { + conversionTrackingIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The conversion tracking id used for this account. This id is automatically
+     * assigned after any conversion tracking feature is used. If the customer
+     * doesn't use conversion tracking, this is 0. This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value conversion_tracking_id = 1; + */ + public Builder mergeConversionTrackingId(com.google.protobuf.Int64Value value) { + if (conversionTrackingIdBuilder_ == null) { + if (conversionTrackingId_ != null) { + conversionTrackingId_ = + com.google.protobuf.Int64Value.newBuilder(conversionTrackingId_).mergeFrom(value).buildPartial(); + } else { + conversionTrackingId_ = value; + } + onChanged(); + } else { + conversionTrackingIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The conversion tracking id used for this account. This id is automatically
+     * assigned after any conversion tracking feature is used. If the customer
+     * doesn't use conversion tracking, this is 0. This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value conversion_tracking_id = 1; + */ + public Builder clearConversionTrackingId() { + if (conversionTrackingIdBuilder_ == null) { + conversionTrackingId_ = null; + onChanged(); + } else { + conversionTrackingId_ = null; + conversionTrackingIdBuilder_ = null; + } + + return this; + } + /** + *
+     * The conversion tracking id used for this account. This id is automatically
+     * assigned after any conversion tracking feature is used. If the customer
+     * doesn't use conversion tracking, this is 0. This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value conversion_tracking_id = 1; + */ + public com.google.protobuf.Int64Value.Builder getConversionTrackingIdBuilder() { + + onChanged(); + return getConversionTrackingIdFieldBuilder().getBuilder(); + } + /** + *
+     * The conversion tracking id used for this account. This id is automatically
+     * assigned after any conversion tracking feature is used. If the customer
+     * doesn't use conversion tracking, this is 0. This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value conversion_tracking_id = 1; + */ + public com.google.protobuf.Int64ValueOrBuilder getConversionTrackingIdOrBuilder() { + if (conversionTrackingIdBuilder_ != null) { + return conversionTrackingIdBuilder_.getMessageOrBuilder(); + } else { + return conversionTrackingId_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : conversionTrackingId_; + } + } + /** + *
+     * The conversion tracking id used for this account. This id is automatically
+     * assigned after any conversion tracking feature is used. If the customer
+     * doesn't use conversion tracking, this is 0. This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value conversion_tracking_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + getConversionTrackingIdFieldBuilder() { + if (conversionTrackingIdBuilder_ == null) { + conversionTrackingIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getConversionTrackingId(), + getParentForChildren(), + isClean()); + conversionTrackingId_ = null; + } + return conversionTrackingIdBuilder_; + } + + private com.google.protobuf.Int64Value crossAccountConversionTrackingId_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> crossAccountConversionTrackingIdBuilder_; + /** + *
+     * The conversion tracking id of the customer's manager. This is set when the
+     * customer is opted into cross account conversion tracking, and it overrides
+     * conversion_tracking_id. This field can only be managed through the Google
+     * Ads UI. This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value cross_account_conversion_tracking_id = 2; + */ + public boolean hasCrossAccountConversionTrackingId() { + return crossAccountConversionTrackingIdBuilder_ != null || crossAccountConversionTrackingId_ != null; + } + /** + *
+     * The conversion tracking id of the customer's manager. This is set when the
+     * customer is opted into cross account conversion tracking, and it overrides
+     * conversion_tracking_id. This field can only be managed through the Google
+     * Ads UI. This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value cross_account_conversion_tracking_id = 2; + */ + public com.google.protobuf.Int64Value getCrossAccountConversionTrackingId() { + if (crossAccountConversionTrackingIdBuilder_ == null) { + return crossAccountConversionTrackingId_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : crossAccountConversionTrackingId_; + } else { + return crossAccountConversionTrackingIdBuilder_.getMessage(); + } + } + /** + *
+     * The conversion tracking id of the customer's manager. This is set when the
+     * customer is opted into cross account conversion tracking, and it overrides
+     * conversion_tracking_id. This field can only be managed through the Google
+     * Ads UI. This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value cross_account_conversion_tracking_id = 2; + */ + public Builder setCrossAccountConversionTrackingId(com.google.protobuf.Int64Value value) { + if (crossAccountConversionTrackingIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + crossAccountConversionTrackingId_ = value; + onChanged(); + } else { + crossAccountConversionTrackingIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The conversion tracking id of the customer's manager. This is set when the
+     * customer is opted into cross account conversion tracking, and it overrides
+     * conversion_tracking_id. This field can only be managed through the Google
+     * Ads UI. This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value cross_account_conversion_tracking_id = 2; + */ + public Builder setCrossAccountConversionTrackingId( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (crossAccountConversionTrackingIdBuilder_ == null) { + crossAccountConversionTrackingId_ = builderForValue.build(); + onChanged(); + } else { + crossAccountConversionTrackingIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The conversion tracking id of the customer's manager. This is set when the
+     * customer is opted into cross account conversion tracking, and it overrides
+     * conversion_tracking_id. This field can only be managed through the Google
+     * Ads UI. This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value cross_account_conversion_tracking_id = 2; + */ + public Builder mergeCrossAccountConversionTrackingId(com.google.protobuf.Int64Value value) { + if (crossAccountConversionTrackingIdBuilder_ == null) { + if (crossAccountConversionTrackingId_ != null) { + crossAccountConversionTrackingId_ = + com.google.protobuf.Int64Value.newBuilder(crossAccountConversionTrackingId_).mergeFrom(value).buildPartial(); + } else { + crossAccountConversionTrackingId_ = value; + } + onChanged(); + } else { + crossAccountConversionTrackingIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The conversion tracking id of the customer's manager. This is set when the
+     * customer is opted into cross account conversion tracking, and it overrides
+     * conversion_tracking_id. This field can only be managed through the Google
+     * Ads UI. This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value cross_account_conversion_tracking_id = 2; + */ + public Builder clearCrossAccountConversionTrackingId() { + if (crossAccountConversionTrackingIdBuilder_ == null) { + crossAccountConversionTrackingId_ = null; + onChanged(); + } else { + crossAccountConversionTrackingId_ = null; + crossAccountConversionTrackingIdBuilder_ = null; + } + + return this; + } + /** + *
+     * The conversion tracking id of the customer's manager. This is set when the
+     * customer is opted into cross account conversion tracking, and it overrides
+     * conversion_tracking_id. This field can only be managed through the Google
+     * Ads UI. This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value cross_account_conversion_tracking_id = 2; + */ + public com.google.protobuf.Int64Value.Builder getCrossAccountConversionTrackingIdBuilder() { + + onChanged(); + return getCrossAccountConversionTrackingIdFieldBuilder().getBuilder(); + } + /** + *
+     * The conversion tracking id of the customer's manager. This is set when the
+     * customer is opted into cross account conversion tracking, and it overrides
+     * conversion_tracking_id. This field can only be managed through the Google
+     * Ads UI. This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value cross_account_conversion_tracking_id = 2; + */ + public com.google.protobuf.Int64ValueOrBuilder getCrossAccountConversionTrackingIdOrBuilder() { + if (crossAccountConversionTrackingIdBuilder_ != null) { + return crossAccountConversionTrackingIdBuilder_.getMessageOrBuilder(); + } else { + return crossAccountConversionTrackingId_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : crossAccountConversionTrackingId_; + } + } + /** + *
+     * The conversion tracking id of the customer's manager. This is set when the
+     * customer is opted into cross account conversion tracking, and it overrides
+     * conversion_tracking_id. This field can only be managed through the Google
+     * Ads UI. This field is read-only.
+     * 
+ * + * .google.protobuf.Int64Value cross_account_conversion_tracking_id = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + getCrossAccountConversionTrackingIdFieldBuilder() { + if (crossAccountConversionTrackingIdBuilder_ == null) { + crossAccountConversionTrackingIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getCrossAccountConversionTrackingId(), + getParentForChildren(), + isClean()); + crossAccountConversionTrackingId_ = null; + } + return crossAccountConversionTrackingIdBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.resources.ConversionTrackingSetting) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.resources.ConversionTrackingSetting) + private static final com.google.ads.googleads.v0.resources.ConversionTrackingSetting DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.resources.ConversionTrackingSetting(); + } + + public static com.google.ads.googleads.v0.resources.ConversionTrackingSetting getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversionTrackingSetting parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConversionTrackingSetting(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.resources.ConversionTrackingSetting getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/ConversionTrackingSettingOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/ConversionTrackingSettingOrBuilder.java new file mode 100644 index 0000000000..5568a55be3 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/ConversionTrackingSettingOrBuilder.java @@ -0,0 +1,74 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/resources/customer.proto + +package com.google.ads.googleads.v0.resources; + +public interface ConversionTrackingSettingOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.resources.ConversionTrackingSetting) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The conversion tracking id used for this account. This id is automatically
+   * assigned after any conversion tracking feature is used. If the customer
+   * doesn't use conversion tracking, this is 0. This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value conversion_tracking_id = 1; + */ + boolean hasConversionTrackingId(); + /** + *
+   * The conversion tracking id used for this account. This id is automatically
+   * assigned after any conversion tracking feature is used. If the customer
+   * doesn't use conversion tracking, this is 0. This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value conversion_tracking_id = 1; + */ + com.google.protobuf.Int64Value getConversionTrackingId(); + /** + *
+   * The conversion tracking id used for this account. This id is automatically
+   * assigned after any conversion tracking feature is used. If the customer
+   * doesn't use conversion tracking, this is 0. This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value conversion_tracking_id = 1; + */ + com.google.protobuf.Int64ValueOrBuilder getConversionTrackingIdOrBuilder(); + + /** + *
+   * The conversion tracking id of the customer's manager. This is set when the
+   * customer is opted into cross account conversion tracking, and it overrides
+   * conversion_tracking_id. This field can only be managed through the Google
+   * Ads UI. This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value cross_account_conversion_tracking_id = 2; + */ + boolean hasCrossAccountConversionTrackingId(); + /** + *
+   * The conversion tracking id of the customer's manager. This is set when the
+   * customer is opted into cross account conversion tracking, and it overrides
+   * conversion_tracking_id. This field can only be managed through the Google
+   * Ads UI. This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value cross_account_conversion_tracking_id = 2; + */ + com.google.protobuf.Int64Value getCrossAccountConversionTrackingId(); + /** + *
+   * The conversion tracking id of the customer's manager. This is set when the
+   * customer is opted into cross account conversion tracking, and it overrides
+   * conversion_tracking_id. This field can only be managed through the Google
+   * Ads UI. This field is read-only.
+   * 
+ * + * .google.protobuf.Int64Value cross_account_conversion_tracking_id = 2; + */ + com.google.protobuf.Int64ValueOrBuilder getCrossAccountConversionTrackingIdOrBuilder(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/Customer.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/Customer.java index 83132083a3..2d86dd7683 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/Customer.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/Customer.java @@ -170,6 +170,45 @@ private Customer( break; } + case 98: { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (manager_ != null) { + subBuilder = manager_.toBuilder(); + } + manager_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(manager_); + manager_ = subBuilder.buildPartial(); + } + + break; + } + case 106: { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (testAccount_ != null) { + subBuilder = testAccount_.toBuilder(); + } + testAccount_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(testAccount_); + testAccount_ = subBuilder.buildPartial(); + } + + break; + } + case 114: { + com.google.ads.googleads.v0.resources.ConversionTrackingSetting.Builder subBuilder = null; + if (conversionTrackingSetting_ != null) { + subBuilder = conversionTrackingSetting_.toBuilder(); + } + conversionTrackingSetting_ = input.readMessage(com.google.ads.googleads.v0.resources.ConversionTrackingSetting.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(conversionTrackingSetting_); + conversionTrackingSetting_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -524,6 +563,72 @@ public com.google.protobuf.BoolValueOrBuilder getHasPartnersBadgeOrBuilder() { return getHasPartnersBadge(); } + public static final int MANAGER_FIELD_NUMBER = 12; + private com.google.protobuf.BoolValue manager_; + /** + *
+   * Whether the customer is a manager.
+   * 
+ * + * .google.protobuf.BoolValue manager = 12; + */ + public boolean hasManager() { + return manager_ != null; + } + /** + *
+   * Whether the customer is a manager.
+   * 
+ * + * .google.protobuf.BoolValue manager = 12; + */ + public com.google.protobuf.BoolValue getManager() { + return manager_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : manager_; + } + /** + *
+   * Whether the customer is a manager.
+   * 
+ * + * .google.protobuf.BoolValue manager = 12; + */ + public com.google.protobuf.BoolValueOrBuilder getManagerOrBuilder() { + return getManager(); + } + + public static final int TEST_ACCOUNT_FIELD_NUMBER = 13; + private com.google.protobuf.BoolValue testAccount_; + /** + *
+   * Whether the customer is a test account.
+   * 
+ * + * .google.protobuf.BoolValue test_account = 13; + */ + public boolean hasTestAccount() { + return testAccount_ != null; + } + /** + *
+   * Whether the customer is a test account.
+   * 
+ * + * .google.protobuf.BoolValue test_account = 13; + */ + public com.google.protobuf.BoolValue getTestAccount() { + return testAccount_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : testAccount_; + } + /** + *
+   * Whether the customer is a test account.
+   * 
+ * + * .google.protobuf.BoolValue test_account = 13; + */ + public com.google.protobuf.BoolValueOrBuilder getTestAccountOrBuilder() { + return getTestAccount(); + } + public static final int CALL_REPORTING_SETTING_FIELD_NUMBER = 10; private com.google.ads.googleads.v0.resources.CallReportingSetting callReportingSetting_; /** @@ -557,6 +662,39 @@ public com.google.ads.googleads.v0.resources.CallReportingSettingOrBuilder getCa return getCallReportingSetting(); } + public static final int CONVERSION_TRACKING_SETTING_FIELD_NUMBER = 14; + private com.google.ads.googleads.v0.resources.ConversionTrackingSetting conversionTrackingSetting_; + /** + *
+   * Conversion tracking setting for a customer.
+   * 
+ * + * .google.ads.googleads.v0.resources.ConversionTrackingSetting conversion_tracking_setting = 14; + */ + public boolean hasConversionTrackingSetting() { + return conversionTrackingSetting_ != null; + } + /** + *
+   * Conversion tracking setting for a customer.
+   * 
+ * + * .google.ads.googleads.v0.resources.ConversionTrackingSetting conversion_tracking_setting = 14; + */ + public com.google.ads.googleads.v0.resources.ConversionTrackingSetting getConversionTrackingSetting() { + return conversionTrackingSetting_ == null ? com.google.ads.googleads.v0.resources.ConversionTrackingSetting.getDefaultInstance() : conversionTrackingSetting_; + } + /** + *
+   * Conversion tracking setting for a customer.
+   * 
+ * + * .google.ads.googleads.v0.resources.ConversionTrackingSetting conversion_tracking_setting = 14; + */ + public com.google.ads.googleads.v0.resources.ConversionTrackingSettingOrBuilder getConversionTrackingSettingOrBuilder() { + return getConversionTrackingSetting(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -601,6 +739,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (finalUrlSuffix_ != null) { output.writeMessage(11, getFinalUrlSuffix()); } + if (manager_ != null) { + output.writeMessage(12, getManager()); + } + if (testAccount_ != null) { + output.writeMessage(13, getTestAccount()); + } + if (conversionTrackingSetting_ != null) { + output.writeMessage(14, getConversionTrackingSetting()); + } unknownFields.writeTo(output); } @@ -649,6 +796,18 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getFinalUrlSuffix()); } + if (manager_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getManager()); + } + if (testAccount_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getTestAccount()); + } + if (conversionTrackingSetting_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getConversionTrackingSetting()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -707,11 +866,26 @@ public boolean equals(final java.lang.Object obj) { result = result && getHasPartnersBadge() .equals(other.getHasPartnersBadge()); } + result = result && (hasManager() == other.hasManager()); + if (hasManager()) { + result = result && getManager() + .equals(other.getManager()); + } + result = result && (hasTestAccount() == other.hasTestAccount()); + if (hasTestAccount()) { + result = result && getTestAccount() + .equals(other.getTestAccount()); + } result = result && (hasCallReportingSetting() == other.hasCallReportingSetting()); if (hasCallReportingSetting()) { result = result && getCallReportingSetting() .equals(other.getCallReportingSetting()); } + result = result && (hasConversionTrackingSetting() == other.hasConversionTrackingSetting()); + if (hasConversionTrackingSetting()) { + result = result && getConversionTrackingSetting() + .equals(other.getConversionTrackingSetting()); + } result = result && unknownFields.equals(other.unknownFields); return result; } @@ -757,10 +931,22 @@ public int hashCode() { hash = (37 * hash) + HAS_PARTNERS_BADGE_FIELD_NUMBER; hash = (53 * hash) + getHasPartnersBadge().hashCode(); } + if (hasManager()) { + hash = (37 * hash) + MANAGER_FIELD_NUMBER; + hash = (53 * hash) + getManager().hashCode(); + } + if (hasTestAccount()) { + hash = (37 * hash) + TEST_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getTestAccount().hashCode(); + } if (hasCallReportingSetting()) { hash = (37 * hash) + CALL_REPORTING_SETTING_FIELD_NUMBER; hash = (53 * hash) + getCallReportingSetting().hashCode(); } + if (hasConversionTrackingSetting()) { + hash = (37 * hash) + CONVERSION_TRACKING_SETTING_FIELD_NUMBER; + hash = (53 * hash) + getConversionTrackingSetting().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -948,12 +1134,30 @@ public Builder clear() { hasPartnersBadge_ = null; hasPartnersBadgeBuilder_ = null; } + if (managerBuilder_ == null) { + manager_ = null; + } else { + manager_ = null; + managerBuilder_ = null; + } + if (testAccountBuilder_ == null) { + testAccount_ = null; + } else { + testAccount_ = null; + testAccountBuilder_ = null; + } if (callReportingSettingBuilder_ == null) { callReportingSetting_ = null; } else { callReportingSetting_ = null; callReportingSettingBuilder_ = null; } + if (conversionTrackingSettingBuilder_ == null) { + conversionTrackingSetting_ = null; + } else { + conversionTrackingSetting_ = null; + conversionTrackingSettingBuilder_ = null; + } return this; } @@ -1021,11 +1225,26 @@ public com.google.ads.googleads.v0.resources.Customer buildPartial() { } else { result.hasPartnersBadge_ = hasPartnersBadgeBuilder_.build(); } + if (managerBuilder_ == null) { + result.manager_ = manager_; + } else { + result.manager_ = managerBuilder_.build(); + } + if (testAccountBuilder_ == null) { + result.testAccount_ = testAccount_; + } else { + result.testAccount_ = testAccountBuilder_.build(); + } if (callReportingSettingBuilder_ == null) { result.callReportingSetting_ = callReportingSetting_; } else { result.callReportingSetting_ = callReportingSettingBuilder_.build(); } + if (conversionTrackingSettingBuilder_ == null) { + result.conversionTrackingSetting_ = conversionTrackingSetting_; + } else { + result.conversionTrackingSetting_ = conversionTrackingSettingBuilder_.build(); + } onBuilt(); return result; } @@ -1102,9 +1321,18 @@ public Builder mergeFrom(com.google.ads.googleads.v0.resources.Customer other) { if (other.hasHasPartnersBadge()) { mergeHasPartnersBadge(other.getHasPartnersBadge()); } + if (other.hasManager()) { + mergeManager(other.getManager()); + } + if (other.hasTestAccount()) { + mergeTestAccount(other.getTestAccount()); + } if (other.hasCallReportingSetting()) { mergeCallReportingSetting(other.getCallReportingSetting()); } + if (other.hasConversionTrackingSetting()) { + mergeConversionTrackingSetting(other.getConversionTrackingSetting()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2493,6 +2721,312 @@ public com.google.protobuf.BoolValueOrBuilder getHasPartnersBadgeOrBuilder() { return hasPartnersBadgeBuilder_; } + private com.google.protobuf.BoolValue manager_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> managerBuilder_; + /** + *
+     * Whether the customer is a manager.
+     * 
+ * + * .google.protobuf.BoolValue manager = 12; + */ + public boolean hasManager() { + return managerBuilder_ != null || manager_ != null; + } + /** + *
+     * Whether the customer is a manager.
+     * 
+ * + * .google.protobuf.BoolValue manager = 12; + */ + public com.google.protobuf.BoolValue getManager() { + if (managerBuilder_ == null) { + return manager_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : manager_; + } else { + return managerBuilder_.getMessage(); + } + } + /** + *
+     * Whether the customer is a manager.
+     * 
+ * + * .google.protobuf.BoolValue manager = 12; + */ + public Builder setManager(com.google.protobuf.BoolValue value) { + if (managerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + manager_ = value; + onChanged(); + } else { + managerBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Whether the customer is a manager.
+     * 
+ * + * .google.protobuf.BoolValue manager = 12; + */ + public Builder setManager( + com.google.protobuf.BoolValue.Builder builderForValue) { + if (managerBuilder_ == null) { + manager_ = builderForValue.build(); + onChanged(); + } else { + managerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Whether the customer is a manager.
+     * 
+ * + * .google.protobuf.BoolValue manager = 12; + */ + public Builder mergeManager(com.google.protobuf.BoolValue value) { + if (managerBuilder_ == null) { + if (manager_ != null) { + manager_ = + com.google.protobuf.BoolValue.newBuilder(manager_).mergeFrom(value).buildPartial(); + } else { + manager_ = value; + } + onChanged(); + } else { + managerBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Whether the customer is a manager.
+     * 
+ * + * .google.protobuf.BoolValue manager = 12; + */ + public Builder clearManager() { + if (managerBuilder_ == null) { + manager_ = null; + onChanged(); + } else { + manager_ = null; + managerBuilder_ = null; + } + + return this; + } + /** + *
+     * Whether the customer is a manager.
+     * 
+ * + * .google.protobuf.BoolValue manager = 12; + */ + public com.google.protobuf.BoolValue.Builder getManagerBuilder() { + + onChanged(); + return getManagerFieldBuilder().getBuilder(); + } + /** + *
+     * Whether the customer is a manager.
+     * 
+ * + * .google.protobuf.BoolValue manager = 12; + */ + public com.google.protobuf.BoolValueOrBuilder getManagerOrBuilder() { + if (managerBuilder_ != null) { + return managerBuilder_.getMessageOrBuilder(); + } else { + return manager_ == null ? + com.google.protobuf.BoolValue.getDefaultInstance() : manager_; + } + } + /** + *
+     * Whether the customer is a manager.
+     * 
+ * + * .google.protobuf.BoolValue manager = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> + getManagerFieldBuilder() { + if (managerBuilder_ == null) { + managerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( + getManager(), + getParentForChildren(), + isClean()); + manager_ = null; + } + return managerBuilder_; + } + + private com.google.protobuf.BoolValue testAccount_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> testAccountBuilder_; + /** + *
+     * Whether the customer is a test account.
+     * 
+ * + * .google.protobuf.BoolValue test_account = 13; + */ + public boolean hasTestAccount() { + return testAccountBuilder_ != null || testAccount_ != null; + } + /** + *
+     * Whether the customer is a test account.
+     * 
+ * + * .google.protobuf.BoolValue test_account = 13; + */ + public com.google.protobuf.BoolValue getTestAccount() { + if (testAccountBuilder_ == null) { + return testAccount_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : testAccount_; + } else { + return testAccountBuilder_.getMessage(); + } + } + /** + *
+     * Whether the customer is a test account.
+     * 
+ * + * .google.protobuf.BoolValue test_account = 13; + */ + public Builder setTestAccount(com.google.protobuf.BoolValue value) { + if (testAccountBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + testAccount_ = value; + onChanged(); + } else { + testAccountBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Whether the customer is a test account.
+     * 
+ * + * .google.protobuf.BoolValue test_account = 13; + */ + public Builder setTestAccount( + com.google.protobuf.BoolValue.Builder builderForValue) { + if (testAccountBuilder_ == null) { + testAccount_ = builderForValue.build(); + onChanged(); + } else { + testAccountBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Whether the customer is a test account.
+     * 
+ * + * .google.protobuf.BoolValue test_account = 13; + */ + public Builder mergeTestAccount(com.google.protobuf.BoolValue value) { + if (testAccountBuilder_ == null) { + if (testAccount_ != null) { + testAccount_ = + com.google.protobuf.BoolValue.newBuilder(testAccount_).mergeFrom(value).buildPartial(); + } else { + testAccount_ = value; + } + onChanged(); + } else { + testAccountBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Whether the customer is a test account.
+     * 
+ * + * .google.protobuf.BoolValue test_account = 13; + */ + public Builder clearTestAccount() { + if (testAccountBuilder_ == null) { + testAccount_ = null; + onChanged(); + } else { + testAccount_ = null; + testAccountBuilder_ = null; + } + + return this; + } + /** + *
+     * Whether the customer is a test account.
+     * 
+ * + * .google.protobuf.BoolValue test_account = 13; + */ + public com.google.protobuf.BoolValue.Builder getTestAccountBuilder() { + + onChanged(); + return getTestAccountFieldBuilder().getBuilder(); + } + /** + *
+     * Whether the customer is a test account.
+     * 
+ * + * .google.protobuf.BoolValue test_account = 13; + */ + public com.google.protobuf.BoolValueOrBuilder getTestAccountOrBuilder() { + if (testAccountBuilder_ != null) { + return testAccountBuilder_.getMessageOrBuilder(); + } else { + return testAccount_ == null ? + com.google.protobuf.BoolValue.getDefaultInstance() : testAccount_; + } + } + /** + *
+     * Whether the customer is a test account.
+     * 
+ * + * .google.protobuf.BoolValue test_account = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> + getTestAccountFieldBuilder() { + if (testAccountBuilder_ == null) { + testAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( + getTestAccount(), + getParentForChildren(), + isClean()); + testAccount_ = null; + } + return testAccountBuilder_; + } + private com.google.ads.googleads.v0.resources.CallReportingSetting callReportingSetting_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v0.resources.CallReportingSetting, com.google.ads.googleads.v0.resources.CallReportingSetting.Builder, com.google.ads.googleads.v0.resources.CallReportingSettingOrBuilder> callReportingSettingBuilder_; @@ -2645,6 +3179,159 @@ public com.google.ads.googleads.v0.resources.CallReportingSettingOrBuilder getCa } return callReportingSettingBuilder_; } + + private com.google.ads.googleads.v0.resources.ConversionTrackingSetting conversionTrackingSetting_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.ConversionTrackingSetting, com.google.ads.googleads.v0.resources.ConversionTrackingSetting.Builder, com.google.ads.googleads.v0.resources.ConversionTrackingSettingOrBuilder> conversionTrackingSettingBuilder_; + /** + *
+     * Conversion tracking setting for a customer.
+     * 
+ * + * .google.ads.googleads.v0.resources.ConversionTrackingSetting conversion_tracking_setting = 14; + */ + public boolean hasConversionTrackingSetting() { + return conversionTrackingSettingBuilder_ != null || conversionTrackingSetting_ != null; + } + /** + *
+     * Conversion tracking setting for a customer.
+     * 
+ * + * .google.ads.googleads.v0.resources.ConversionTrackingSetting conversion_tracking_setting = 14; + */ + public com.google.ads.googleads.v0.resources.ConversionTrackingSetting getConversionTrackingSetting() { + if (conversionTrackingSettingBuilder_ == null) { + return conversionTrackingSetting_ == null ? com.google.ads.googleads.v0.resources.ConversionTrackingSetting.getDefaultInstance() : conversionTrackingSetting_; + } else { + return conversionTrackingSettingBuilder_.getMessage(); + } + } + /** + *
+     * Conversion tracking setting for a customer.
+     * 
+ * + * .google.ads.googleads.v0.resources.ConversionTrackingSetting conversion_tracking_setting = 14; + */ + public Builder setConversionTrackingSetting(com.google.ads.googleads.v0.resources.ConversionTrackingSetting value) { + if (conversionTrackingSettingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conversionTrackingSetting_ = value; + onChanged(); + } else { + conversionTrackingSettingBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Conversion tracking setting for a customer.
+     * 
+ * + * .google.ads.googleads.v0.resources.ConversionTrackingSetting conversion_tracking_setting = 14; + */ + public Builder setConversionTrackingSetting( + com.google.ads.googleads.v0.resources.ConversionTrackingSetting.Builder builderForValue) { + if (conversionTrackingSettingBuilder_ == null) { + conversionTrackingSetting_ = builderForValue.build(); + onChanged(); + } else { + conversionTrackingSettingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Conversion tracking setting for a customer.
+     * 
+ * + * .google.ads.googleads.v0.resources.ConversionTrackingSetting conversion_tracking_setting = 14; + */ + public Builder mergeConversionTrackingSetting(com.google.ads.googleads.v0.resources.ConversionTrackingSetting value) { + if (conversionTrackingSettingBuilder_ == null) { + if (conversionTrackingSetting_ != null) { + conversionTrackingSetting_ = + com.google.ads.googleads.v0.resources.ConversionTrackingSetting.newBuilder(conversionTrackingSetting_).mergeFrom(value).buildPartial(); + } else { + conversionTrackingSetting_ = value; + } + onChanged(); + } else { + conversionTrackingSettingBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Conversion tracking setting for a customer.
+     * 
+ * + * .google.ads.googleads.v0.resources.ConversionTrackingSetting conversion_tracking_setting = 14; + */ + public Builder clearConversionTrackingSetting() { + if (conversionTrackingSettingBuilder_ == null) { + conversionTrackingSetting_ = null; + onChanged(); + } else { + conversionTrackingSetting_ = null; + conversionTrackingSettingBuilder_ = null; + } + + return this; + } + /** + *
+     * Conversion tracking setting for a customer.
+     * 
+ * + * .google.ads.googleads.v0.resources.ConversionTrackingSetting conversion_tracking_setting = 14; + */ + public com.google.ads.googleads.v0.resources.ConversionTrackingSetting.Builder getConversionTrackingSettingBuilder() { + + onChanged(); + return getConversionTrackingSettingFieldBuilder().getBuilder(); + } + /** + *
+     * Conversion tracking setting for a customer.
+     * 
+ * + * .google.ads.googleads.v0.resources.ConversionTrackingSetting conversion_tracking_setting = 14; + */ + public com.google.ads.googleads.v0.resources.ConversionTrackingSettingOrBuilder getConversionTrackingSettingOrBuilder() { + if (conversionTrackingSettingBuilder_ != null) { + return conversionTrackingSettingBuilder_.getMessageOrBuilder(); + } else { + return conversionTrackingSetting_ == null ? + com.google.ads.googleads.v0.resources.ConversionTrackingSetting.getDefaultInstance() : conversionTrackingSetting_; + } + } + /** + *
+     * Conversion tracking setting for a customer.
+     * 
+ * + * .google.ads.googleads.v0.resources.ConversionTrackingSetting conversion_tracking_setting = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.ConversionTrackingSetting, com.google.ads.googleads.v0.resources.ConversionTrackingSetting.Builder, com.google.ads.googleads.v0.resources.ConversionTrackingSettingOrBuilder> + getConversionTrackingSettingFieldBuilder() { + if (conversionTrackingSettingBuilder_ == null) { + conversionTrackingSettingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.ConversionTrackingSetting, com.google.ads.googleads.v0.resources.ConversionTrackingSetting.Builder, com.google.ads.googleads.v0.resources.ConversionTrackingSettingOrBuilder>( + getConversionTrackingSetting(), + getParentForChildren(), + isClean()); + conversionTrackingSetting_ = null; + } + return conversionTrackingSettingBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerClient.java index 7938d6072c..9f2861669e 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerClient.java @@ -5,7 +5,9 @@ /** *
- * For a manager, it returns all the customers in its hierarchy and self.
+ * A link between the given customer and a client customer. CustomerClients only
+ * exist for manager customers. All direct and indirect client customers are
+ * included, as well as the manager itself.
  * 
* * Protobuf type {@code google.ads.googleads.v0.resources.CustomerClient} @@ -174,7 +176,8 @@ public java.lang.String getResourceName() { private com.google.protobuf.StringValue clientCustomer_; /** *
-   * The client customer linked to this customer. Read only.
+   * The resource name of the client-customer which is linked to
+   * the given customer. Read only.
    * 
* * .google.protobuf.StringValue client_customer = 3; @@ -184,7 +187,8 @@ public boolean hasClientCustomer() { } /** *
-   * The client customer linked to this customer. Read only.
+   * The resource name of the client-customer which is linked to
+   * the given customer. Read only.
    * 
* * .google.protobuf.StringValue client_customer = 3; @@ -194,7 +198,8 @@ public com.google.protobuf.StringValue getClientCustomer() { } /** *
-   * The client customer linked to this customer. Read only.
+   * The resource name of the client-customer which is linked to
+   * the given customer. Read only.
    * 
* * .google.protobuf.StringValue client_customer = 3; @@ -207,7 +212,10 @@ public com.google.protobuf.StringValueOrBuilder getClientCustomerOrBuilder() { private com.google.protobuf.BoolValue hidden_; /** *
-   * Whether the client is hidden or not. Default value is false. Read only.
+   * Specifies whether this is a hidden account. Learn more about hidden
+   * accounts
+   * <a href="https://support.google.com/google-ads/answer/7519830">here</a>.
+   * Read only.
    * 
* * .google.protobuf.BoolValue hidden = 4; @@ -217,7 +225,10 @@ public boolean hasHidden() { } /** *
-   * Whether the client is hidden or not. Default value is false. Read only.
+   * Specifies whether this is a hidden account. Learn more about hidden
+   * accounts
+   * <a href="https://support.google.com/google-ads/answer/7519830">here</a>.
+   * Read only.
    * 
* * .google.protobuf.BoolValue hidden = 4; @@ -227,7 +238,10 @@ public com.google.protobuf.BoolValue getHidden() { } /** *
-   * Whether the client is hidden or not. Default value is false. Read only.
+   * Specifies whether this is a hidden account. Learn more about hidden
+   * accounts
+   * <a href="https://support.google.com/google-ads/answer/7519830">here</a>.
+   * Read only.
    * 
* * .google.protobuf.BoolValue hidden = 4; @@ -240,8 +254,8 @@ public com.google.protobuf.BoolValueOrBuilder getHiddenOrBuilder() { private com.google.protobuf.Int64Value level_; /** *
-   * Distance between customer and client. For self link, the level value will
-   * be 0. Read only.
+   * Distance between given customer and client. For self link, the level value
+   * will be 0. Read only.
    * 
* * .google.protobuf.Int64Value level = 5; @@ -251,8 +265,8 @@ public boolean hasLevel() { } /** *
-   * Distance between customer and client. For self link, the level value will
-   * be 0. Read only.
+   * Distance between given customer and client. For self link, the level value
+   * will be 0. Read only.
    * 
* * .google.protobuf.Int64Value level = 5; @@ -262,8 +276,8 @@ public com.google.protobuf.Int64Value getLevel() { } /** *
-   * Distance between customer and client. For self link, the level value will
-   * be 0. Read only.
+   * Distance between given customer and client. For self link, the level value
+   * will be 0. Read only.
    * 
* * .google.protobuf.Int64Value level = 5; @@ -477,7 +491,9 @@ protected Builder newBuilderForType( } /** *
-   * For a manager, it returns all the customers in its hierarchy and self.
+   * A link between the given customer and a client customer. CustomerClients only
+   * exist for manager customers. All direct and indirect client customers are
+   * included, as well as the manager itself.
    * 
* * Protobuf type {@code google.ads.googleads.v0.resources.CustomerClient} @@ -773,7 +789,8 @@ public Builder setResourceNameBytes( com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> clientCustomerBuilder_; /** *
-     * The client customer linked to this customer. Read only.
+     * The resource name of the client-customer which is linked to
+     * the given customer. Read only.
      * 
* * .google.protobuf.StringValue client_customer = 3; @@ -783,7 +800,8 @@ public boolean hasClientCustomer() { } /** *
-     * The client customer linked to this customer. Read only.
+     * The resource name of the client-customer which is linked to
+     * the given customer. Read only.
      * 
* * .google.protobuf.StringValue client_customer = 3; @@ -797,7 +815,8 @@ public com.google.protobuf.StringValue getClientCustomer() { } /** *
-     * The client customer linked to this customer. Read only.
+     * The resource name of the client-customer which is linked to
+     * the given customer. Read only.
      * 
* * .google.protobuf.StringValue client_customer = 3; @@ -817,7 +836,8 @@ public Builder setClientCustomer(com.google.protobuf.StringValue value) { } /** *
-     * The client customer linked to this customer. Read only.
+     * The resource name of the client-customer which is linked to
+     * the given customer. Read only.
      * 
* * .google.protobuf.StringValue client_customer = 3; @@ -835,7 +855,8 @@ public Builder setClientCustomer( } /** *
-     * The client customer linked to this customer. Read only.
+     * The resource name of the client-customer which is linked to
+     * the given customer. Read only.
      * 
* * .google.protobuf.StringValue client_customer = 3; @@ -857,7 +878,8 @@ public Builder mergeClientCustomer(com.google.protobuf.StringValue value) { } /** *
-     * The client customer linked to this customer. Read only.
+     * The resource name of the client-customer which is linked to
+     * the given customer. Read only.
      * 
* * .google.protobuf.StringValue client_customer = 3; @@ -875,7 +897,8 @@ public Builder clearClientCustomer() { } /** *
-     * The client customer linked to this customer. Read only.
+     * The resource name of the client-customer which is linked to
+     * the given customer. Read only.
      * 
* * .google.protobuf.StringValue client_customer = 3; @@ -887,7 +910,8 @@ public com.google.protobuf.StringValue.Builder getClientCustomerBuilder() { } /** *
-     * The client customer linked to this customer. Read only.
+     * The resource name of the client-customer which is linked to
+     * the given customer. Read only.
      * 
* * .google.protobuf.StringValue client_customer = 3; @@ -902,7 +926,8 @@ public com.google.protobuf.StringValueOrBuilder getClientCustomerOrBuilder() { } /** *
-     * The client customer linked to this customer. Read only.
+     * The resource name of the client-customer which is linked to
+     * the given customer. Read only.
      * 
* * .google.protobuf.StringValue client_customer = 3; @@ -926,7 +951,10 @@ public com.google.protobuf.StringValueOrBuilder getClientCustomerOrBuilder() { com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> hiddenBuilder_; /** *
-     * Whether the client is hidden or not. Default value is false. Read only.
+     * Specifies whether this is a hidden account. Learn more about hidden
+     * accounts
+     * <a href="https://support.google.com/google-ads/answer/7519830">here</a>.
+     * Read only.
      * 
* * .google.protobuf.BoolValue hidden = 4; @@ -936,7 +964,10 @@ public boolean hasHidden() { } /** *
-     * Whether the client is hidden or not. Default value is false. Read only.
+     * Specifies whether this is a hidden account. Learn more about hidden
+     * accounts
+     * <a href="https://support.google.com/google-ads/answer/7519830">here</a>.
+     * Read only.
      * 
* * .google.protobuf.BoolValue hidden = 4; @@ -950,7 +981,10 @@ public com.google.protobuf.BoolValue getHidden() { } /** *
-     * Whether the client is hidden or not. Default value is false. Read only.
+     * Specifies whether this is a hidden account. Learn more about hidden
+     * accounts
+     * <a href="https://support.google.com/google-ads/answer/7519830">here</a>.
+     * Read only.
      * 
* * .google.protobuf.BoolValue hidden = 4; @@ -970,7 +1004,10 @@ public Builder setHidden(com.google.protobuf.BoolValue value) { } /** *
-     * Whether the client is hidden or not. Default value is false. Read only.
+     * Specifies whether this is a hidden account. Learn more about hidden
+     * accounts
+     * <a href="https://support.google.com/google-ads/answer/7519830">here</a>.
+     * Read only.
      * 
* * .google.protobuf.BoolValue hidden = 4; @@ -988,7 +1025,10 @@ public Builder setHidden( } /** *
-     * Whether the client is hidden or not. Default value is false. Read only.
+     * Specifies whether this is a hidden account. Learn more about hidden
+     * accounts
+     * <a href="https://support.google.com/google-ads/answer/7519830">here</a>.
+     * Read only.
      * 
* * .google.protobuf.BoolValue hidden = 4; @@ -1010,7 +1050,10 @@ public Builder mergeHidden(com.google.protobuf.BoolValue value) { } /** *
-     * Whether the client is hidden or not. Default value is false. Read only.
+     * Specifies whether this is a hidden account. Learn more about hidden
+     * accounts
+     * <a href="https://support.google.com/google-ads/answer/7519830">here</a>.
+     * Read only.
      * 
* * .google.protobuf.BoolValue hidden = 4; @@ -1028,7 +1071,10 @@ public Builder clearHidden() { } /** *
-     * Whether the client is hidden or not. Default value is false. Read only.
+     * Specifies whether this is a hidden account. Learn more about hidden
+     * accounts
+     * <a href="https://support.google.com/google-ads/answer/7519830">here</a>.
+     * Read only.
      * 
* * .google.protobuf.BoolValue hidden = 4; @@ -1040,7 +1086,10 @@ public com.google.protobuf.BoolValue.Builder getHiddenBuilder() { } /** *
-     * Whether the client is hidden or not. Default value is false. Read only.
+     * Specifies whether this is a hidden account. Learn more about hidden
+     * accounts
+     * <a href="https://support.google.com/google-ads/answer/7519830">here</a>.
+     * Read only.
      * 
* * .google.protobuf.BoolValue hidden = 4; @@ -1055,7 +1104,10 @@ public com.google.protobuf.BoolValueOrBuilder getHiddenOrBuilder() { } /** *
-     * Whether the client is hidden or not. Default value is false. Read only.
+     * Specifies whether this is a hidden account. Learn more about hidden
+     * accounts
+     * <a href="https://support.google.com/google-ads/answer/7519830">here</a>.
+     * Read only.
      * 
* * .google.protobuf.BoolValue hidden = 4; @@ -1079,8 +1131,8 @@ public com.google.protobuf.BoolValueOrBuilder getHiddenOrBuilder() { com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> levelBuilder_; /** *
-     * Distance between customer and client. For self link, the level value will
-     * be 0. Read only.
+     * Distance between given customer and client. For self link, the level value
+     * will be 0. Read only.
      * 
* * .google.protobuf.Int64Value level = 5; @@ -1090,8 +1142,8 @@ public boolean hasLevel() { } /** *
-     * Distance between customer and client. For self link, the level value will
-     * be 0. Read only.
+     * Distance between given customer and client. For self link, the level value
+     * will be 0. Read only.
      * 
* * .google.protobuf.Int64Value level = 5; @@ -1105,8 +1157,8 @@ public com.google.protobuf.Int64Value getLevel() { } /** *
-     * Distance between customer and client. For self link, the level value will
-     * be 0. Read only.
+     * Distance between given customer and client. For self link, the level value
+     * will be 0. Read only.
      * 
* * .google.protobuf.Int64Value level = 5; @@ -1126,8 +1178,8 @@ public Builder setLevel(com.google.protobuf.Int64Value value) { } /** *
-     * Distance between customer and client. For self link, the level value will
-     * be 0. Read only.
+     * Distance between given customer and client. For self link, the level value
+     * will be 0. Read only.
      * 
* * .google.protobuf.Int64Value level = 5; @@ -1145,8 +1197,8 @@ public Builder setLevel( } /** *
-     * Distance between customer and client. For self link, the level value will
-     * be 0. Read only.
+     * Distance between given customer and client. For self link, the level value
+     * will be 0. Read only.
      * 
* * .google.protobuf.Int64Value level = 5; @@ -1168,8 +1220,8 @@ public Builder mergeLevel(com.google.protobuf.Int64Value value) { } /** *
-     * Distance between customer and client. For self link, the level value will
-     * be 0. Read only.
+     * Distance between given customer and client. For self link, the level value
+     * will be 0. Read only.
      * 
* * .google.protobuf.Int64Value level = 5; @@ -1187,8 +1239,8 @@ public Builder clearLevel() { } /** *
-     * Distance between customer and client. For self link, the level value will
-     * be 0. Read only.
+     * Distance between given customer and client. For self link, the level value
+     * will be 0. Read only.
      * 
* * .google.protobuf.Int64Value level = 5; @@ -1200,8 +1252,8 @@ public com.google.protobuf.Int64Value.Builder getLevelBuilder() { } /** *
-     * Distance between customer and client. For self link, the level value will
-     * be 0. Read only.
+     * Distance between given customer and client. For self link, the level value
+     * will be 0. Read only.
      * 
* * .google.protobuf.Int64Value level = 5; @@ -1216,8 +1268,8 @@ public com.google.protobuf.Int64ValueOrBuilder getLevelOrBuilder() { } /** *
-     * Distance between customer and client. For self link, the level value will
-     * be 0. Read only.
+     * Distance between given customer and client. For self link, the level value
+     * will be 0. Read only.
      * 
* * .google.protobuf.Int64Value level = 5; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerClientLink.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerClientLink.java index 27b46f6475..330a919690 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerClientLink.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerClientLink.java @@ -181,7 +181,7 @@ public java.lang.String getResourceName() { private com.google.protobuf.StringValue clientCustomer_; /** *
-   * The client customer linked to this customer. Read only.
+   * The client customer linked to this customer.
    * 
* * .google.protobuf.StringValue client_customer = 3; @@ -191,7 +191,7 @@ public boolean hasClientCustomer() { } /** *
-   * The client customer linked to this customer. Read only.
+   * The client customer linked to this customer.
    * 
* * .google.protobuf.StringValue client_customer = 3; @@ -201,7 +201,7 @@ public com.google.protobuf.StringValue getClientCustomer() { } /** *
-   * The client customer linked to this customer. Read only.
+   * The client customer linked to this customer.
    * 
* * .google.protobuf.StringValue client_customer = 3; @@ -824,7 +824,7 @@ public Builder setResourceNameBytes( com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> clientCustomerBuilder_; /** *
-     * The client customer linked to this customer. Read only.
+     * The client customer linked to this customer.
      * 
* * .google.protobuf.StringValue client_customer = 3; @@ -834,7 +834,7 @@ public boolean hasClientCustomer() { } /** *
-     * The client customer linked to this customer. Read only.
+     * The client customer linked to this customer.
      * 
* * .google.protobuf.StringValue client_customer = 3; @@ -848,7 +848,7 @@ public com.google.protobuf.StringValue getClientCustomer() { } /** *
-     * The client customer linked to this customer. Read only.
+     * The client customer linked to this customer.
      * 
* * .google.protobuf.StringValue client_customer = 3; @@ -868,7 +868,7 @@ public Builder setClientCustomer(com.google.protobuf.StringValue value) { } /** *
-     * The client customer linked to this customer. Read only.
+     * The client customer linked to this customer.
      * 
* * .google.protobuf.StringValue client_customer = 3; @@ -886,7 +886,7 @@ public Builder setClientCustomer( } /** *
-     * The client customer linked to this customer. Read only.
+     * The client customer linked to this customer.
      * 
* * .google.protobuf.StringValue client_customer = 3; @@ -908,7 +908,7 @@ public Builder mergeClientCustomer(com.google.protobuf.StringValue value) { } /** *
-     * The client customer linked to this customer. Read only.
+     * The client customer linked to this customer.
      * 
* * .google.protobuf.StringValue client_customer = 3; @@ -926,7 +926,7 @@ public Builder clearClientCustomer() { } /** *
-     * The client customer linked to this customer. Read only.
+     * The client customer linked to this customer.
      * 
* * .google.protobuf.StringValue client_customer = 3; @@ -938,7 +938,7 @@ public com.google.protobuf.StringValue.Builder getClientCustomerBuilder() { } /** *
-     * The client customer linked to this customer. Read only.
+     * The client customer linked to this customer.
      * 
* * .google.protobuf.StringValue client_customer = 3; @@ -953,7 +953,7 @@ public com.google.protobuf.StringValueOrBuilder getClientCustomerOrBuilder() { } /** *
-     * The client customer linked to this customer. Read only.
+     * The client customer linked to this customer.
      * 
* * .google.protobuf.StringValue client_customer = 3; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerClientLinkOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerClientLinkOrBuilder.java index 3fb459615a..6b6489b4ca 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerClientLinkOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerClientLinkOrBuilder.java @@ -31,7 +31,7 @@ public interface CustomerClientLinkOrBuilder extends /** *
-   * The client customer linked to this customer. Read only.
+   * The client customer linked to this customer.
    * 
* * .google.protobuf.StringValue client_customer = 3; @@ -39,7 +39,7 @@ public interface CustomerClientLinkOrBuilder extends boolean hasClientCustomer(); /** *
-   * The client customer linked to this customer. Read only.
+   * The client customer linked to this customer.
    * 
* * .google.protobuf.StringValue client_customer = 3; @@ -47,7 +47,7 @@ public interface CustomerClientLinkOrBuilder extends com.google.protobuf.StringValue getClientCustomer(); /** *
-   * The client customer linked to this customer. Read only.
+   * The client customer linked to this customer.
    * 
* * .google.protobuf.StringValue client_customer = 3; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerClientLinkProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerClientLinkProto.java index 24f6ce11be..194b86acba 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerClientLinkProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerClientLinkProto.java @@ -39,13 +39,14 @@ public static void registerAllExtensions( "e.protobuf.Int64Value\022V\n\006status\030\005 \001(\0162F." + "google.ads.googleads.v0.enums.ManagerLin" + "kStatusEnum.ManagerLinkStatus\022*\n\006hidden\030" + - "\006 \001(\0132\032.google.protobuf.BoolValueB\334\001\n%co" + + "\006 \001(\0132\032.google.protobuf.BoolValueB\204\002\n%co" + "m.google.ads.googleads.v0.resourcesB\027Cus" + "tomerClientLinkProtoP\001ZJgoogle.golang.or" + "g/genproto/googleapis/ads/googleads/v0/r" + "esources;resources\242\002\003GAA\252\002!Google.Ads.Go" + "ogleAds.V0.Resources\312\002!Google\\Ads\\Google" + - "Ads\\V0\\Resourcesb\006proto3" + "Ads\\V0\\Resources\352\002%Google::Ads::GoogleAd" + + "s::V0::Resourcesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerClientOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerClientOrBuilder.java index 971f472442..ebe64200b2 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerClientOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerClientOrBuilder.java @@ -31,7 +31,8 @@ public interface CustomerClientOrBuilder extends /** *
-   * The client customer linked to this customer. Read only.
+   * The resource name of the client-customer which is linked to
+   * the given customer. Read only.
    * 
* * .google.protobuf.StringValue client_customer = 3; @@ -39,7 +40,8 @@ public interface CustomerClientOrBuilder extends boolean hasClientCustomer(); /** *
-   * The client customer linked to this customer. Read only.
+   * The resource name of the client-customer which is linked to
+   * the given customer. Read only.
    * 
* * .google.protobuf.StringValue client_customer = 3; @@ -47,7 +49,8 @@ public interface CustomerClientOrBuilder extends com.google.protobuf.StringValue getClientCustomer(); /** *
-   * The client customer linked to this customer. Read only.
+   * The resource name of the client-customer which is linked to
+   * the given customer. Read only.
    * 
* * .google.protobuf.StringValue client_customer = 3; @@ -56,7 +59,10 @@ public interface CustomerClientOrBuilder extends /** *
-   * Whether the client is hidden or not. Default value is false. Read only.
+   * Specifies whether this is a hidden account. Learn more about hidden
+   * accounts
+   * <a href="https://support.google.com/google-ads/answer/7519830">here</a>.
+   * Read only.
    * 
* * .google.protobuf.BoolValue hidden = 4; @@ -64,7 +70,10 @@ public interface CustomerClientOrBuilder extends boolean hasHidden(); /** *
-   * Whether the client is hidden or not. Default value is false. Read only.
+   * Specifies whether this is a hidden account. Learn more about hidden
+   * accounts
+   * <a href="https://support.google.com/google-ads/answer/7519830">here</a>.
+   * Read only.
    * 
* * .google.protobuf.BoolValue hidden = 4; @@ -72,7 +81,10 @@ public interface CustomerClientOrBuilder extends com.google.protobuf.BoolValue getHidden(); /** *
-   * Whether the client is hidden or not. Default value is false. Read only.
+   * Specifies whether this is a hidden account. Learn more about hidden
+   * accounts
+   * <a href="https://support.google.com/google-ads/answer/7519830">here</a>.
+   * Read only.
    * 
* * .google.protobuf.BoolValue hidden = 4; @@ -81,8 +93,8 @@ public interface CustomerClientOrBuilder extends /** *
-   * Distance between customer and client. For self link, the level value will
-   * be 0. Read only.
+   * Distance between given customer and client. For self link, the level value
+   * will be 0. Read only.
    * 
* * .google.protobuf.Int64Value level = 5; @@ -90,8 +102,8 @@ public interface CustomerClientOrBuilder extends boolean hasLevel(); /** *
-   * Distance between customer and client. For self link, the level value will
-   * be 0. Read only.
+   * Distance between given customer and client. For self link, the level value
+   * will be 0. Read only.
    * 
* * .google.protobuf.Int64Value level = 5; @@ -99,8 +111,8 @@ public interface CustomerClientOrBuilder extends com.google.protobuf.Int64Value getLevel(); /** *
-   * Distance between customer and client. For self link, the level value will
-   * be 0. Read only.
+   * Distance between given customer and client. For self link, the level value
+   * will be 0. Read only.
    * 
* * .google.protobuf.Int64Value level = 5; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerClientProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerClientProto.java index 8cedd89f01..f13b44fdc5 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerClientProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerClientProto.java @@ -35,12 +35,13 @@ public static void registerAllExtensions( "\030\001 \001(\t\0225\n\017client_customer\030\003 \001(\0132\034.google" + ".protobuf.StringValue\022*\n\006hidden\030\004 \001(\0132\032." + "google.protobuf.BoolValue\022*\n\005level\030\005 \001(\013" + - "2\033.google.protobuf.Int64ValueB\330\001\n%com.go" + + "2\033.google.protobuf.Int64ValueB\200\002\n%com.go" + "ogle.ads.googleads.v0.resourcesB\023Custome" + "rClientProtoP\001ZJgoogle.golang.org/genpro" + "to/googleapis/ads/googleads/v0/resources" + ";resources\242\002\003GAA\252\002!Google.Ads.GoogleAds." + "V0.Resources\312\002!Google\\Ads\\GoogleAds\\V0\\R" + + "esources\352\002%Google::Ads::GoogleAds::V0::R" + "esourcesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerFeedProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerFeedProto.java index e3628cc02d..36e965bc57 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerFeedProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerFeedProto.java @@ -43,12 +43,13 @@ public static void registerAllExtensions( "nction\030\004 \001(\01320.google.ads.googleads.v0.c" + "ommon.MatchingFunction\022P\n\006status\030\005 \001(\0162@" + ".google.ads.googleads.v0.enums.FeedLinkS" + - "tatusEnum.FeedLinkStatusB\326\001\n%com.google." + + "tatusEnum.FeedLinkStatusB\376\001\n%com.google." + "ads.googleads.v0.resourcesB\021CustomerFeed" + "ProtoP\001ZJgoogle.golang.org/genproto/goog" + "leapis/ads/googleads/v0/resources;resour" + "ces\242\002\003GAA\252\002!Google.Ads.GoogleAds.V0.Reso" + "urces\312\002!Google\\Ads\\GoogleAds\\V0\\Resource" + + "s\352\002%Google::Ads::GoogleAds::V0::Resource" + "sb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerManagerLink.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerManagerLink.java index 58fa5b440a..bf7d54b707 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerManagerLink.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerManagerLink.java @@ -168,7 +168,7 @@ public java.lang.String getResourceName() { private com.google.protobuf.StringValue managerCustomer_; /** *
-   * The manager customer linked to the customer. This field is read only.
+   * The manager customer linked to the customer.
    * 
* * .google.protobuf.StringValue manager_customer = 3; @@ -178,7 +178,7 @@ public boolean hasManagerCustomer() { } /** *
-   * The manager customer linked to the customer. This field is read only.
+   * The manager customer linked to the customer.
    * 
* * .google.protobuf.StringValue manager_customer = 3; @@ -188,7 +188,7 @@ public com.google.protobuf.StringValue getManagerCustomer() { } /** *
-   * The manager customer linked to the customer. This field is read only.
+   * The manager customer linked to the customer.
    * 
* * .google.protobuf.StringValue manager_customer = 3; @@ -742,7 +742,7 @@ public Builder setResourceNameBytes( com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> managerCustomerBuilder_; /** *
-     * The manager customer linked to the customer. This field is read only.
+     * The manager customer linked to the customer.
      * 
* * .google.protobuf.StringValue manager_customer = 3; @@ -752,7 +752,7 @@ public boolean hasManagerCustomer() { } /** *
-     * The manager customer linked to the customer. This field is read only.
+     * The manager customer linked to the customer.
      * 
* * .google.protobuf.StringValue manager_customer = 3; @@ -766,7 +766,7 @@ public com.google.protobuf.StringValue getManagerCustomer() { } /** *
-     * The manager customer linked to the customer. This field is read only.
+     * The manager customer linked to the customer.
      * 
* * .google.protobuf.StringValue manager_customer = 3; @@ -786,7 +786,7 @@ public Builder setManagerCustomer(com.google.protobuf.StringValue value) { } /** *
-     * The manager customer linked to the customer. This field is read only.
+     * The manager customer linked to the customer.
      * 
* * .google.protobuf.StringValue manager_customer = 3; @@ -804,7 +804,7 @@ public Builder setManagerCustomer( } /** *
-     * The manager customer linked to the customer. This field is read only.
+     * The manager customer linked to the customer.
      * 
* * .google.protobuf.StringValue manager_customer = 3; @@ -826,7 +826,7 @@ public Builder mergeManagerCustomer(com.google.protobuf.StringValue value) { } /** *
-     * The manager customer linked to the customer. This field is read only.
+     * The manager customer linked to the customer.
      * 
* * .google.protobuf.StringValue manager_customer = 3; @@ -844,7 +844,7 @@ public Builder clearManagerCustomer() { } /** *
-     * The manager customer linked to the customer. This field is read only.
+     * The manager customer linked to the customer.
      * 
* * .google.protobuf.StringValue manager_customer = 3; @@ -856,7 +856,7 @@ public com.google.protobuf.StringValue.Builder getManagerCustomerBuilder() { } /** *
-     * The manager customer linked to the customer. This field is read only.
+     * The manager customer linked to the customer.
      * 
* * .google.protobuf.StringValue manager_customer = 3; @@ -871,7 +871,7 @@ public com.google.protobuf.StringValueOrBuilder getManagerCustomerOrBuilder() { } /** *
-     * The manager customer linked to the customer. This field is read only.
+     * The manager customer linked to the customer.
      * 
* * .google.protobuf.StringValue manager_customer = 3; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerManagerLinkOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerManagerLinkOrBuilder.java index bb1059dd11..9db698ec4c 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerManagerLinkOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerManagerLinkOrBuilder.java @@ -31,7 +31,7 @@ public interface CustomerManagerLinkOrBuilder extends /** *
-   * The manager customer linked to the customer. This field is read only.
+   * The manager customer linked to the customer.
    * 
* * .google.protobuf.StringValue manager_customer = 3; @@ -39,7 +39,7 @@ public interface CustomerManagerLinkOrBuilder extends boolean hasManagerCustomer(); /** *
-   * The manager customer linked to the customer. This field is read only.
+   * The manager customer linked to the customer.
    * 
* * .google.protobuf.StringValue manager_customer = 3; @@ -47,7 +47,7 @@ public interface CustomerManagerLinkOrBuilder extends com.google.protobuf.StringValue getManagerCustomer(); /** *
-   * The manager customer linked to the customer. This field is read only.
+   * The manager customer linked to the customer.
    * 
* * .google.protobuf.StringValue manager_customer = 3; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerManagerLinkProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerManagerLinkProto.java index 066687a076..8633fbc733 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerManagerLinkProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerManagerLinkProto.java @@ -38,13 +38,14 @@ public static void registerAllExtensions( "tringValue\0224\n\017manager_link_id\030\004 \001(\0132\033.go" + "ogle.protobuf.Int64Value\022V\n\006status\030\005 \001(\016" + "2F.google.ads.googleads.v0.enums.Manager" + - "LinkStatusEnum.ManagerLinkStatusB\335\001\n%com" + + "LinkStatusEnum.ManagerLinkStatusB\205\002\n%com" + ".google.ads.googleads.v0.resourcesB\030Cust" + "omerManagerLinkProtoP\001ZJgoogle.golang.or" + "g/genproto/googleapis/ads/googleads/v0/r" + "esources;resources\242\002\003GAA\252\002!Google.Ads.Go" + "ogleAds.V0.Resources\312\002!Google\\Ads\\Google" + - "Ads\\V0\\Resourcesb\006proto3" + "Ads\\V0\\Resources\352\002%Google::Ads::GoogleAd" + + "s::V0::Resourcesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerOrBuilder.java index 8e59d9ce90..1b6cd268d5 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerOrBuilder.java @@ -241,6 +241,56 @@ public interface CustomerOrBuilder extends */ com.google.protobuf.BoolValueOrBuilder getHasPartnersBadgeOrBuilder(); + /** + *
+   * Whether the customer is a manager.
+   * 
+ * + * .google.protobuf.BoolValue manager = 12; + */ + boolean hasManager(); + /** + *
+   * Whether the customer is a manager.
+   * 
+ * + * .google.protobuf.BoolValue manager = 12; + */ + com.google.protobuf.BoolValue getManager(); + /** + *
+   * Whether the customer is a manager.
+   * 
+ * + * .google.protobuf.BoolValue manager = 12; + */ + com.google.protobuf.BoolValueOrBuilder getManagerOrBuilder(); + + /** + *
+   * Whether the customer is a test account.
+   * 
+ * + * .google.protobuf.BoolValue test_account = 13; + */ + boolean hasTestAccount(); + /** + *
+   * Whether the customer is a test account.
+   * 
+ * + * .google.protobuf.BoolValue test_account = 13; + */ + com.google.protobuf.BoolValue getTestAccount(); + /** + *
+   * Whether the customer is a test account.
+   * 
+ * + * .google.protobuf.BoolValue test_account = 13; + */ + com.google.protobuf.BoolValueOrBuilder getTestAccountOrBuilder(); + /** *
    * Call reporting setting for a customer.
@@ -265,4 +315,29 @@ public interface CustomerOrBuilder extends
    * .google.ads.googleads.v0.resources.CallReportingSetting call_reporting_setting = 10;
    */
   com.google.ads.googleads.v0.resources.CallReportingSettingOrBuilder getCallReportingSettingOrBuilder();
+
+  /**
+   * 
+   * Conversion tracking setting for a customer.
+   * 
+ * + * .google.ads.googleads.v0.resources.ConversionTrackingSetting conversion_tracking_setting = 14; + */ + boolean hasConversionTrackingSetting(); + /** + *
+   * Conversion tracking setting for a customer.
+   * 
+ * + * .google.ads.googleads.v0.resources.ConversionTrackingSetting conversion_tracking_setting = 14; + */ + com.google.ads.googleads.v0.resources.ConversionTrackingSetting getConversionTrackingSetting(); + /** + *
+   * Conversion tracking setting for a customer.
+   * 
+ * + * .google.ads.googleads.v0.resources.ConversionTrackingSetting conversion_tracking_setting = 14; + */ + com.google.ads.googleads.v0.resources.ConversionTrackingSettingOrBuilder getConversionTrackingSettingOrBuilder(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerProto.java index 6342cb9351..098488bea7 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CustomerProto.java @@ -24,6 +24,11 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_googleads_v0_resources_CallReportingSetting_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_resources_ConversionTrackingSetting_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_resources_ConversionTrackingSetting_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -35,7 +40,7 @@ public static void registerAllExtensions( java.lang.String[] descriptorData = { "\n0google/ads/googleads/v0/resources/cust" + "omer.proto\022!google.ads.googleads.v0.reso" + - "urces\032\036google/protobuf/wrappers.proto\"\250\004" + + "urces\032\036google/protobuf/wrappers.proto\"\352\005" + "\n\010Customer\022\025\n\rresource_name\030\001 \001(\t\022\'\n\002id\030" + "\003 \001(\0132\033.google.protobuf.Int64Value\0226\n\020de" + "scriptive_name\030\004 \001(\0132\034.google.protobuf.S" + @@ -47,20 +52,30 @@ public static void registerAllExtensions( "\034.google.protobuf.StringValue\0228\n\024auto_ta" + "gging_enabled\030\010 \001(\0132\032.google.protobuf.Bo" + "olValue\0226\n\022has_partners_badge\030\t \001(\0132\032.go" + - "ogle.protobuf.BoolValue\022W\n\026call_reportin" + - "g_setting\030\n \001(\01327.google.ads.googleads.v" + - "0.resources.CallReportingSetting\"\327\001\n\024Cal" + - "lReportingSetting\022:\n\026call_reporting_enab" + - "led\030\001 \001(\0132\032.google.protobuf.BoolValue\022E\n" + - "!call_conversion_reporting_enabled\030\002 \001(\013" + - "2\032.google.protobuf.BoolValue\022<\n\026call_con" + - "version_action\030\t \001(\0132\034.google.protobuf.S" + - "tringValueB\322\001\n%com.google.ads.googleads." + + "ogle.protobuf.BoolValue\022+\n\007manager\030\014 \001(\013" + + "2\032.google.protobuf.BoolValue\0220\n\014test_acc" + + "ount\030\r \001(\0132\032.google.protobuf.BoolValue\022W" + + "\n\026call_reporting_setting\030\n \001(\01327.google." + + "ads.googleads.v0.resources.CallReporting" + + "Setting\022a\n\033conversion_tracking_setting\030\016" + + " \001(\0132<.google.ads.googleads.v0.resources" + + ".ConversionTrackingSetting\"\327\001\n\024CallRepor" + + "tingSetting\022:\n\026call_reporting_enabled\030\001 " + + "\001(\0132\032.google.protobuf.BoolValue\022E\n!call_" + + "conversion_reporting_enabled\030\002 \001(\0132\032.goo" + + "gle.protobuf.BoolValue\022<\n\026call_conversio" + + "n_action\030\t \001(\0132\034.google.protobuf.StringV" + + "alue\"\243\001\n\031ConversionTrackingSetting\022;\n\026co" + + "nversion_tracking_id\030\001 \001(\0132\033.google.prot" + + "obuf.Int64Value\022I\n$cross_account_convers" + + "ion_tracking_id\030\002 \001(\0132\033.google.protobuf." + + "Int64ValueB\372\001\n%com.google.ads.googleads." + "v0.resourcesB\rCustomerProtoP\001ZJgoogle.go" + "lang.org/genproto/googleapis/ads/googlea" + "ds/v0/resources;resources\242\002\003GAA\252\002!Google" + ".Ads.GoogleAds.V0.Resources\312\002!Google\\Ads" + - "\\GoogleAds\\V0\\Resourcesb\006proto3" + "\\GoogleAds\\V0\\Resources\352\002%Google::Ads::G" + + "oogleAds::V0::Resourcesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -80,13 +95,19 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_resources_Customer_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_resources_Customer_descriptor, - new java.lang.String[] { "ResourceName", "Id", "DescriptiveName", "CurrencyCode", "TimeZone", "TrackingUrlTemplate", "FinalUrlSuffix", "AutoTaggingEnabled", "HasPartnersBadge", "CallReportingSetting", }); + new java.lang.String[] { "ResourceName", "Id", "DescriptiveName", "CurrencyCode", "TimeZone", "TrackingUrlTemplate", "FinalUrlSuffix", "AutoTaggingEnabled", "HasPartnersBadge", "Manager", "TestAccount", "CallReportingSetting", "ConversionTrackingSetting", }); internal_static_google_ads_googleads_v0_resources_CallReportingSetting_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_google_ads_googleads_v0_resources_CallReportingSetting_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_resources_CallReportingSetting_descriptor, new java.lang.String[] { "CallReportingEnabled", "CallConversionReportingEnabled", "CallConversionAction", }); + internal_static_google_ads_googleads_v0_resources_ConversionTrackingSetting_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_googleads_v0_resources_ConversionTrackingSetting_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_resources_ConversionTrackingSetting_descriptor, + new java.lang.String[] { "ConversionTrackingId", "CrossAccountConversionTrackingId", }); com.google.protobuf.WrappersProto.getDescriptor(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/DisplayKeywordViewProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/DisplayKeywordViewProto.java index 38dba8d9a7..f798b85514 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/DisplayKeywordViewProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/DisplayKeywordViewProto.java @@ -31,12 +31,13 @@ public static void registerAllExtensions( "\n * Required authentication token (from OAuth API) for the email. + * This field can only be specified in a create request. All its subfields + * are not selectable. *
* * .google.ads.googleads.v0.resources.Feed.PlacesLocationFeedData.OAuthInfo oauth_info = 1; @@ -194,6 +196,8 @@ public interface PlacesLocationFeedDataOrBuilder extends /** *
      * Required authentication token (from OAuth API) for the email.
+     * This field can only be specified in a create request. All its subfields
+     * are not selectable.
      * 
* * .google.ads.googleads.v0.resources.Feed.PlacesLocationFeedData.OAuthInfo oauth_info = 1; @@ -202,6 +206,8 @@ public interface PlacesLocationFeedDataOrBuilder extends /** *
      * Required authentication token (from OAuth API) for the email.
+     * This field can only be specified in a create request. All its subfields
+     * are not selectable.
      * 
* * .google.ads.googleads.v0.resources.Feed.PlacesLocationFeedData.OAuthInfo oauth_info = 1; @@ -241,31 +247,34 @@ public interface PlacesLocationFeedDataOrBuilder extends * Plus page ID of the managed business whose locations should be used. If * this field is not set, then all businesses accessible by the user * (specified by email_address) are used. + * This field is mutate-only and is not selectable. *
* - * .google.protobuf.StringValue business_account_identifier = 3; + * .google.protobuf.StringValue business_account_id = 10; */ - boolean hasBusinessAccountIdentifier(); + boolean hasBusinessAccountId(); /** *
      * Plus page ID of the managed business whose locations should be used. If
      * this field is not set, then all businesses accessible by the user
      * (specified by email_address) are used.
+     * This field is mutate-only and is not selectable.
      * 
* - * .google.protobuf.StringValue business_account_identifier = 3; + * .google.protobuf.StringValue business_account_id = 10; */ - com.google.protobuf.StringValue getBusinessAccountIdentifier(); + com.google.protobuf.StringValue getBusinessAccountId(); /** *
      * Plus page ID of the managed business whose locations should be used. If
      * this field is not set, then all businesses accessible by the user
      * (specified by email_address) are used.
+     * This field is mutate-only and is not selectable.
      * 
* - * .google.protobuf.StringValue business_account_identifier = 3; + * .google.protobuf.StringValue business_account_id = 10; */ - com.google.protobuf.StringValueOrBuilder getBusinessAccountIdentifierOrBuilder(); + com.google.protobuf.StringValueOrBuilder getBusinessAccountIdOrBuilder(); /** *
@@ -488,19 +497,6 @@ private PlacesLocationFeedData(
 
               break;
             }
-            case 26: {
-              com.google.protobuf.StringValue.Builder subBuilder = null;
-              if (businessAccountIdentifier_ != null) {
-                subBuilder = businessAccountIdentifier_.toBuilder();
-              }
-              businessAccountIdentifier_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(businessAccountIdentifier_);
-                businessAccountIdentifier_ = subBuilder.buildPartial();
-              }
-
-              break;
-            }
             case 34: {
               com.google.protobuf.StringValue.Builder subBuilder = null;
               if (businessNameFilter_ != null) {
@@ -532,6 +528,19 @@ private PlacesLocationFeedData(
                   input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry));
               break;
             }
+            case 82: {
+              com.google.protobuf.StringValue.Builder subBuilder = null;
+              if (businessAccountId_ != null) {
+                subBuilder = businessAccountId_.toBuilder();
+              }
+              businessAccountId_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(businessAccountId_);
+                businessAccountId_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
             default: {
               if (!parseUnknownFieldProto3(
                   input, unknownFields, extensionRegistry, tag)) {
@@ -1759,6 +1768,8 @@ public com.google.ads.googleads.v0.resources.Feed.PlacesLocationFeedData.OAuthIn
     /**
      * 
      * Required authentication token (from OAuth API) for the email.
+     * This field can only be specified in a create request. All its subfields
+     * are not selectable.
      * 
* * .google.ads.googleads.v0.resources.Feed.PlacesLocationFeedData.OAuthInfo oauth_info = 1; @@ -1769,6 +1780,8 @@ public boolean hasOauthInfo() { /** *
      * Required authentication token (from OAuth API) for the email.
+     * This field can only be specified in a create request. All its subfields
+     * are not selectable.
      * 
* * .google.ads.googleads.v0.resources.Feed.PlacesLocationFeedData.OAuthInfo oauth_info = 1; @@ -1779,6 +1792,8 @@ public com.google.ads.googleads.v0.resources.Feed.PlacesLocationFeedData.OAuthIn /** *
      * Required authentication token (from OAuth API) for the email.
+     * This field can only be specified in a create request. All its subfields
+     * are not selectable.
      * 
* * .google.ads.googleads.v0.resources.Feed.PlacesLocationFeedData.OAuthInfo oauth_info = 1; @@ -1823,43 +1838,46 @@ public com.google.protobuf.StringValueOrBuilder getEmailAddressOrBuilder() { return getEmailAddress(); } - public static final int BUSINESS_ACCOUNT_IDENTIFIER_FIELD_NUMBER = 3; - private com.google.protobuf.StringValue businessAccountIdentifier_; + public static final int BUSINESS_ACCOUNT_ID_FIELD_NUMBER = 10; + private com.google.protobuf.StringValue businessAccountId_; /** *
      * Plus page ID of the managed business whose locations should be used. If
      * this field is not set, then all businesses accessible by the user
      * (specified by email_address) are used.
+     * This field is mutate-only and is not selectable.
      * 
* - * .google.protobuf.StringValue business_account_identifier = 3; + * .google.protobuf.StringValue business_account_id = 10; */ - public boolean hasBusinessAccountIdentifier() { - return businessAccountIdentifier_ != null; + public boolean hasBusinessAccountId() { + return businessAccountId_ != null; } /** *
      * Plus page ID of the managed business whose locations should be used. If
      * this field is not set, then all businesses accessible by the user
      * (specified by email_address) are used.
+     * This field is mutate-only and is not selectable.
      * 
* - * .google.protobuf.StringValue business_account_identifier = 3; + * .google.protobuf.StringValue business_account_id = 10; */ - public com.google.protobuf.StringValue getBusinessAccountIdentifier() { - return businessAccountIdentifier_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : businessAccountIdentifier_; + public com.google.protobuf.StringValue getBusinessAccountId() { + return businessAccountId_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : businessAccountId_; } /** *
      * Plus page ID of the managed business whose locations should be used. If
      * this field is not set, then all businesses accessible by the user
      * (specified by email_address) are used.
+     * This field is mutate-only and is not selectable.
      * 
* - * .google.protobuf.StringValue business_account_identifier = 3; + * .google.protobuf.StringValue business_account_id = 10; */ - public com.google.protobuf.StringValueOrBuilder getBusinessAccountIdentifierOrBuilder() { - return getBusinessAccountIdentifier(); + public com.google.protobuf.StringValueOrBuilder getBusinessAccountIdOrBuilder() { + return getBusinessAccountId(); } public static final int BUSINESS_NAME_FILTER_FIELD_NUMBER = 4; @@ -2061,9 +2079,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (emailAddress_ != null) { output.writeMessage(2, getEmailAddress()); } - if (businessAccountIdentifier_ != null) { - output.writeMessage(3, getBusinessAccountIdentifier()); - } if (businessNameFilter_ != null) { output.writeMessage(4, getBusinessNameFilter()); } @@ -2073,6 +2088,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < labelFilters_.size(); i++) { output.writeMessage(6, labelFilters_.get(i)); } + if (businessAccountId_ != null) { + output.writeMessage(10, getBusinessAccountId()); + } unknownFields.writeTo(output); } @@ -2090,10 +2108,6 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getEmailAddress()); } - if (businessAccountIdentifier_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getBusinessAccountIdentifier()); - } if (businessNameFilter_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getBusinessNameFilter()); @@ -2106,6 +2120,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, labelFilters_.get(i)); } + if (businessAccountId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getBusinessAccountId()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -2132,10 +2150,10 @@ public boolean equals(final java.lang.Object obj) { result = result && getEmailAddress() .equals(other.getEmailAddress()); } - result = result && (hasBusinessAccountIdentifier() == other.hasBusinessAccountIdentifier()); - if (hasBusinessAccountIdentifier()) { - result = result && getBusinessAccountIdentifier() - .equals(other.getBusinessAccountIdentifier()); + result = result && (hasBusinessAccountId() == other.hasBusinessAccountId()); + if (hasBusinessAccountId()) { + result = result && getBusinessAccountId() + .equals(other.getBusinessAccountId()); } result = result && (hasBusinessNameFilter() == other.hasBusinessNameFilter()); if (hasBusinessNameFilter()) { @@ -2165,9 +2183,9 @@ public int hashCode() { hash = (37 * hash) + EMAIL_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getEmailAddress().hashCode(); } - if (hasBusinessAccountIdentifier()) { - hash = (37 * hash) + BUSINESS_ACCOUNT_IDENTIFIER_FIELD_NUMBER; - hash = (53 * hash) + getBusinessAccountIdentifier().hashCode(); + if (hasBusinessAccountId()) { + hash = (37 * hash) + BUSINESS_ACCOUNT_ID_FIELD_NUMBER; + hash = (53 * hash) + getBusinessAccountId().hashCode(); } if (hasBusinessNameFilter()) { hash = (37 * hash) + BUSINESS_NAME_FILTER_FIELD_NUMBER; @@ -2333,11 +2351,11 @@ public Builder clear() { emailAddress_ = null; emailAddressBuilder_ = null; } - if (businessAccountIdentifierBuilder_ == null) { - businessAccountIdentifier_ = null; + if (businessAccountIdBuilder_ == null) { + businessAccountId_ = null; } else { - businessAccountIdentifier_ = null; - businessAccountIdentifierBuilder_ = null; + businessAccountId_ = null; + businessAccountIdBuilder_ = null; } if (businessNameFilterBuilder_ == null) { businessNameFilter_ = null; @@ -2395,10 +2413,10 @@ public com.google.ads.googleads.v0.resources.Feed.PlacesLocationFeedData buildPa } else { result.emailAddress_ = emailAddressBuilder_.build(); } - if (businessAccountIdentifierBuilder_ == null) { - result.businessAccountIdentifier_ = businessAccountIdentifier_; + if (businessAccountIdBuilder_ == null) { + result.businessAccountId_ = businessAccountId_; } else { - result.businessAccountIdentifier_ = businessAccountIdentifierBuilder_.build(); + result.businessAccountId_ = businessAccountIdBuilder_.build(); } if (businessNameFilterBuilder_ == null) { result.businessNameFilter_ = businessNameFilter_; @@ -2478,8 +2496,8 @@ public Builder mergeFrom(com.google.ads.googleads.v0.resources.Feed.PlacesLocati if (other.hasEmailAddress()) { mergeEmailAddress(other.getEmailAddress()); } - if (other.hasBusinessAccountIdentifier()) { - mergeBusinessAccountIdentifier(other.getBusinessAccountIdentifier()); + if (other.hasBusinessAccountId()) { + mergeBusinessAccountId(other.getBusinessAccountId()); } if (other.hasBusinessNameFilter()) { mergeBusinessNameFilter(other.getBusinessNameFilter()); @@ -2572,6 +2590,8 @@ public Builder mergeFrom( /** *
        * Required authentication token (from OAuth API) for the email.
+       * This field can only be specified in a create request. All its subfields
+       * are not selectable.
        * 
* * .google.ads.googleads.v0.resources.Feed.PlacesLocationFeedData.OAuthInfo oauth_info = 1; @@ -2582,6 +2602,8 @@ public boolean hasOauthInfo() { /** *
        * Required authentication token (from OAuth API) for the email.
+       * This field can only be specified in a create request. All its subfields
+       * are not selectable.
        * 
* * .google.ads.googleads.v0.resources.Feed.PlacesLocationFeedData.OAuthInfo oauth_info = 1; @@ -2596,6 +2618,8 @@ public com.google.ads.googleads.v0.resources.Feed.PlacesLocationFeedData.OAuthIn /** *
        * Required authentication token (from OAuth API) for the email.
+       * This field can only be specified in a create request. All its subfields
+       * are not selectable.
        * 
* * .google.ads.googleads.v0.resources.Feed.PlacesLocationFeedData.OAuthInfo oauth_info = 1; @@ -2616,6 +2640,8 @@ public Builder setOauthInfo(com.google.ads.googleads.v0.resources.Feed.PlacesLoc /** *
        * Required authentication token (from OAuth API) for the email.
+       * This field can only be specified in a create request. All its subfields
+       * are not selectable.
        * 
* * .google.ads.googleads.v0.resources.Feed.PlacesLocationFeedData.OAuthInfo oauth_info = 1; @@ -2634,6 +2660,8 @@ public Builder setOauthInfo( /** *
        * Required authentication token (from OAuth API) for the email.
+       * This field can only be specified in a create request. All its subfields
+       * are not selectable.
        * 
* * .google.ads.googleads.v0.resources.Feed.PlacesLocationFeedData.OAuthInfo oauth_info = 1; @@ -2656,6 +2684,8 @@ public Builder mergeOauthInfo(com.google.ads.googleads.v0.resources.Feed.PlacesL /** *
        * Required authentication token (from OAuth API) for the email.
+       * This field can only be specified in a create request. All its subfields
+       * are not selectable.
        * 
* * .google.ads.googleads.v0.resources.Feed.PlacesLocationFeedData.OAuthInfo oauth_info = 1; @@ -2674,6 +2704,8 @@ public Builder clearOauthInfo() { /** *
        * Required authentication token (from OAuth API) for the email.
+       * This field can only be specified in a create request. All its subfields
+       * are not selectable.
        * 
* * .google.ads.googleads.v0.resources.Feed.PlacesLocationFeedData.OAuthInfo oauth_info = 1; @@ -2686,6 +2718,8 @@ public com.google.ads.googleads.v0.resources.Feed.PlacesLocationFeedData.OAuthIn /** *
        * Required authentication token (from OAuth API) for the email.
+       * This field can only be specified in a create request. All its subfields
+       * are not selectable.
        * 
* * .google.ads.googleads.v0.resources.Feed.PlacesLocationFeedData.OAuthInfo oauth_info = 1; @@ -2701,6 +2735,8 @@ public com.google.ads.googleads.v0.resources.Feed.PlacesLocationFeedData.OAuthIn /** *
        * Required authentication token (from OAuth API) for the email.
+       * This field can only be specified in a create request. All its subfields
+       * are not selectable.
        * 
* * .google.ads.googleads.v0.resources.Feed.PlacesLocationFeedData.OAuthInfo oauth_info = 1; @@ -2881,35 +2917,37 @@ public com.google.protobuf.StringValueOrBuilder getEmailAddressOrBuilder() { return emailAddressBuilder_; } - private com.google.protobuf.StringValue businessAccountIdentifier_ = null; + private com.google.protobuf.StringValue businessAccountId_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> businessAccountIdentifierBuilder_; + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> businessAccountIdBuilder_; /** *
        * Plus page ID of the managed business whose locations should be used. If
        * this field is not set, then all businesses accessible by the user
        * (specified by email_address) are used.
+       * This field is mutate-only and is not selectable.
        * 
* - * .google.protobuf.StringValue business_account_identifier = 3; + * .google.protobuf.StringValue business_account_id = 10; */ - public boolean hasBusinessAccountIdentifier() { - return businessAccountIdentifierBuilder_ != null || businessAccountIdentifier_ != null; + public boolean hasBusinessAccountId() { + return businessAccountIdBuilder_ != null || businessAccountId_ != null; } /** *
        * Plus page ID of the managed business whose locations should be used. If
        * this field is not set, then all businesses accessible by the user
        * (specified by email_address) are used.
+       * This field is mutate-only and is not selectable.
        * 
* - * .google.protobuf.StringValue business_account_identifier = 3; + * .google.protobuf.StringValue business_account_id = 10; */ - public com.google.protobuf.StringValue getBusinessAccountIdentifier() { - if (businessAccountIdentifierBuilder_ == null) { - return businessAccountIdentifier_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : businessAccountIdentifier_; + public com.google.protobuf.StringValue getBusinessAccountId() { + if (businessAccountIdBuilder_ == null) { + return businessAccountId_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : businessAccountId_; } else { - return businessAccountIdentifierBuilder_.getMessage(); + return businessAccountIdBuilder_.getMessage(); } } /** @@ -2917,19 +2955,20 @@ public com.google.protobuf.StringValue getBusinessAccountIdentifier() { * Plus page ID of the managed business whose locations should be used. If * this field is not set, then all businesses accessible by the user * (specified by email_address) are used. + * This field is mutate-only and is not selectable. *
* - * .google.protobuf.StringValue business_account_identifier = 3; + * .google.protobuf.StringValue business_account_id = 10; */ - public Builder setBusinessAccountIdentifier(com.google.protobuf.StringValue value) { - if (businessAccountIdentifierBuilder_ == null) { + public Builder setBusinessAccountId(com.google.protobuf.StringValue value) { + if (businessAccountIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - businessAccountIdentifier_ = value; + businessAccountId_ = value; onChanged(); } else { - businessAccountIdentifierBuilder_.setMessage(value); + businessAccountIdBuilder_.setMessage(value); } return this; @@ -2939,17 +2978,18 @@ public Builder setBusinessAccountIdentifier(com.google.protobuf.StringValue valu * Plus page ID of the managed business whose locations should be used. If * this field is not set, then all businesses accessible by the user * (specified by email_address) are used. + * This field is mutate-only and is not selectable. *
* - * .google.protobuf.StringValue business_account_identifier = 3; + * .google.protobuf.StringValue business_account_id = 10; */ - public Builder setBusinessAccountIdentifier( + public Builder setBusinessAccountId( com.google.protobuf.StringValue.Builder builderForValue) { - if (businessAccountIdentifierBuilder_ == null) { - businessAccountIdentifier_ = builderForValue.build(); + if (businessAccountIdBuilder_ == null) { + businessAccountId_ = builderForValue.build(); onChanged(); } else { - businessAccountIdentifierBuilder_.setMessage(builderForValue.build()); + businessAccountIdBuilder_.setMessage(builderForValue.build()); } return this; @@ -2959,21 +2999,22 @@ public Builder setBusinessAccountIdentifier( * Plus page ID of the managed business whose locations should be used. If * this field is not set, then all businesses accessible by the user * (specified by email_address) are used. + * This field is mutate-only and is not selectable. *
* - * .google.protobuf.StringValue business_account_identifier = 3; + * .google.protobuf.StringValue business_account_id = 10; */ - public Builder mergeBusinessAccountIdentifier(com.google.protobuf.StringValue value) { - if (businessAccountIdentifierBuilder_ == null) { - if (businessAccountIdentifier_ != null) { - businessAccountIdentifier_ = - com.google.protobuf.StringValue.newBuilder(businessAccountIdentifier_).mergeFrom(value).buildPartial(); + public Builder mergeBusinessAccountId(com.google.protobuf.StringValue value) { + if (businessAccountIdBuilder_ == null) { + if (businessAccountId_ != null) { + businessAccountId_ = + com.google.protobuf.StringValue.newBuilder(businessAccountId_).mergeFrom(value).buildPartial(); } else { - businessAccountIdentifier_ = value; + businessAccountId_ = value; } onChanged(); } else { - businessAccountIdentifierBuilder_.mergeFrom(value); + businessAccountIdBuilder_.mergeFrom(value); } return this; @@ -2983,17 +3024,18 @@ public Builder mergeBusinessAccountIdentifier(com.google.protobuf.StringValue va * Plus page ID of the managed business whose locations should be used. If * this field is not set, then all businesses accessible by the user * (specified by email_address) are used. + * This field is mutate-only and is not selectable. *
* - * .google.protobuf.StringValue business_account_identifier = 3; + * .google.protobuf.StringValue business_account_id = 10; */ - public Builder clearBusinessAccountIdentifier() { - if (businessAccountIdentifierBuilder_ == null) { - businessAccountIdentifier_ = null; + public Builder clearBusinessAccountId() { + if (businessAccountIdBuilder_ == null) { + businessAccountId_ = null; onChanged(); } else { - businessAccountIdentifier_ = null; - businessAccountIdentifierBuilder_ = null; + businessAccountId_ = null; + businessAccountIdBuilder_ = null; } return this; @@ -3003,30 +3045,32 @@ public Builder clearBusinessAccountIdentifier() { * Plus page ID of the managed business whose locations should be used. If * this field is not set, then all businesses accessible by the user * (specified by email_address) are used. + * This field is mutate-only and is not selectable. *
* - * .google.protobuf.StringValue business_account_identifier = 3; + * .google.protobuf.StringValue business_account_id = 10; */ - public com.google.protobuf.StringValue.Builder getBusinessAccountIdentifierBuilder() { + public com.google.protobuf.StringValue.Builder getBusinessAccountIdBuilder() { onChanged(); - return getBusinessAccountIdentifierFieldBuilder().getBuilder(); + return getBusinessAccountIdFieldBuilder().getBuilder(); } /** *
        * Plus page ID of the managed business whose locations should be used. If
        * this field is not set, then all businesses accessible by the user
        * (specified by email_address) are used.
+       * This field is mutate-only and is not selectable.
        * 
* - * .google.protobuf.StringValue business_account_identifier = 3; + * .google.protobuf.StringValue business_account_id = 10; */ - public com.google.protobuf.StringValueOrBuilder getBusinessAccountIdentifierOrBuilder() { - if (businessAccountIdentifierBuilder_ != null) { - return businessAccountIdentifierBuilder_.getMessageOrBuilder(); + public com.google.protobuf.StringValueOrBuilder getBusinessAccountIdOrBuilder() { + if (businessAccountIdBuilder_ != null) { + return businessAccountIdBuilder_.getMessageOrBuilder(); } else { - return businessAccountIdentifier_ == null ? - com.google.protobuf.StringValue.getDefaultInstance() : businessAccountIdentifier_; + return businessAccountId_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : businessAccountId_; } } /** @@ -3034,22 +3078,23 @@ public com.google.protobuf.StringValueOrBuilder getBusinessAccountIdentifierOrBu * Plus page ID of the managed business whose locations should be used. If * this field is not set, then all businesses accessible by the user * (specified by email_address) are used. + * This field is mutate-only and is not selectable. *
* - * .google.protobuf.StringValue business_account_identifier = 3; + * .google.protobuf.StringValue business_account_id = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> - getBusinessAccountIdentifierFieldBuilder() { - if (businessAccountIdentifierBuilder_ == null) { - businessAccountIdentifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getBusinessAccountIdFieldBuilder() { + if (businessAccountIdBuilder_ == null) { + businessAccountIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( - getBusinessAccountIdentifier(), + getBusinessAccountId(), getParentForChildren(), isClean()); - businessAccountIdentifier_ = null; + businessAccountId_ = null; } - return businessAccountIdentifierBuilder_; + return businessAccountIdBuilder_; } private com.google.protobuf.StringValue businessNameFilter_ = null; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/FeedItem.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/FeedItem.java index b43fc55db3..66445419b6 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/FeedItem.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/FeedItem.java @@ -25,6 +25,7 @@ private FeedItem() { geoTargetingRestriction_ = 0; urlCustomParameters_ = java.util.Collections.emptyList(); status_ = 0; + policyInfos_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -139,6 +140,15 @@ private FeedItem( status_ = rawValue; break; } + case 82: { + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + policyInfos_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000200; + } + policyInfos_.add( + input.readMessage(com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo.parser(), extensionRegistry)); + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -160,6 +170,9 @@ private FeedItem( if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { urlCustomParameters_ = java.util.Collections.unmodifiableList(urlCustomParameters_); } + if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + policyInfos_ = java.util.Collections.unmodifiableList(policyInfos_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -334,6 +347,7 @@ public com.google.protobuf.StringValueOrBuilder getStartDateTimeOrBuilder() { /** *
    * End time in which this feed item is no longer effective and will stop
+   * serving.
    * The format is "YYYY-MM-DD HH:MM:SS".
    * Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
    * 
@@ -346,6 +360,7 @@ public boolean hasEndDateTime() { /** *
    * End time in which this feed item is no longer effective and will stop
+   * serving.
    * The format is "YYYY-MM-DD HH:MM:SS".
    * Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
    * 
@@ -358,6 +373,7 @@ public com.google.protobuf.StringValue getEndDateTime() { /** *
    * End time in which this feed item is no longer effective and will stop
+   * serving.
    * The format is "YYYY-MM-DD HH:MM:SS".
    * Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
    * 
@@ -537,6 +553,86 @@ public com.google.ads.googleads.v0.enums.FeedItemStatusEnum.FeedItemStatus getSt return result == null ? com.google.ads.googleads.v0.enums.FeedItemStatusEnum.FeedItemStatus.UNRECOGNIZED : result; } + public static final int POLICY_INFOS_FIELD_NUMBER = 10; + private java.util.List policyInfos_; + /** + *
+   * List of info about a feed item's validation and approval state for active
+   * feed mappings. There will be an entry in the list for each type of feed
+   * mapping associated with the feed, e.g. a feed with a sitelink and a call
+   * feed mapping would cause every feed item associated with that feed to have
+   * an entry in this list for both sitelink and call.
+   * This field is read-only.
+   * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10; + */ + public java.util.List getPolicyInfosList() { + return policyInfos_; + } + /** + *
+   * List of info about a feed item's validation and approval state for active
+   * feed mappings. There will be an entry in the list for each type of feed
+   * mapping associated with the feed, e.g. a feed with a sitelink and a call
+   * feed mapping would cause every feed item associated with that feed to have
+   * an entry in this list for both sitelink and call.
+   * This field is read-only.
+   * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10; + */ + public java.util.List + getPolicyInfosOrBuilderList() { + return policyInfos_; + } + /** + *
+   * List of info about a feed item's validation and approval state for active
+   * feed mappings. There will be an entry in the list for each type of feed
+   * mapping associated with the feed, e.g. a feed with a sitelink and a call
+   * feed mapping would cause every feed item associated with that feed to have
+   * an entry in this list for both sitelink and call.
+   * This field is read-only.
+   * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10; + */ + public int getPolicyInfosCount() { + return policyInfos_.size(); + } + /** + *
+   * List of info about a feed item's validation and approval state for active
+   * feed mappings. There will be an entry in the list for each type of feed
+   * mapping associated with the feed, e.g. a feed with a sitelink and a call
+   * feed mapping would cause every feed item associated with that feed to have
+   * an entry in this list for both sitelink and call.
+   * This field is read-only.
+   * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10; + */ + public com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo getPolicyInfos(int index) { + return policyInfos_.get(index); + } + /** + *
+   * List of info about a feed item's validation and approval state for active
+   * feed mappings. There will be an entry in the list for each type of feed
+   * mapping associated with the feed, e.g. a feed with a sitelink and a call
+   * feed mapping would cause every feed item associated with that feed to have
+   * an entry in this list for both sitelink and call.
+   * This field is read-only.
+   * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10; + */ + public com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfoOrBuilder getPolicyInfosOrBuilder( + int index) { + return policyInfos_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -578,6 +674,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (status_ != com.google.ads.googleads.v0.enums.FeedItemStatusEnum.FeedItemStatus.UNSPECIFIED.getNumber()) { output.writeEnum(9, status_); } + for (int i = 0; i < policyInfos_.size(); i++) { + output.writeMessage(10, policyInfos_.get(i)); + } unknownFields.writeTo(output); } @@ -622,6 +721,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(9, status_); } + for (int i = 0; i < policyInfos_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, policyInfos_.get(i)); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -666,6 +769,8 @@ public boolean equals(final java.lang.Object obj) { result = result && getUrlCustomParametersList() .equals(other.getUrlCustomParametersList()); result = result && status_ == other.status_; + result = result && getPolicyInfosList() + .equals(other.getPolicyInfosList()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -707,6 +812,10 @@ public int hashCode() { } hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; + if (getPolicyInfosCount() > 0) { + hash = (37 * hash) + POLICY_INFOS_FIELD_NUMBER; + hash = (53 * hash) + getPolicyInfosList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -841,6 +950,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { getAttributeValuesFieldBuilder(); getUrlCustomParametersFieldBuilder(); + getPolicyInfosFieldBuilder(); } } @java.lang.Override @@ -888,6 +998,12 @@ public Builder clear() { } status_ = 0; + if (policyInfosBuilder_ == null) { + policyInfos_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + } else { + policyInfosBuilder_.clear(); + } return this; } @@ -957,6 +1073,15 @@ public com.google.ads.googleads.v0.resources.FeedItem buildPartial() { result.urlCustomParameters_ = urlCustomParametersBuilder_.build(); } result.status_ = status_; + if (policyInfosBuilder_ == null) { + if (((bitField0_ & 0x00000200) == 0x00000200)) { + policyInfos_ = java.util.Collections.unmodifiableList(policyInfos_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.policyInfos_ = policyInfos_; + } else { + result.policyInfos_ = policyInfosBuilder_.build(); + } result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -1080,6 +1205,32 @@ public Builder mergeFrom(com.google.ads.googleads.v0.resources.FeedItem other) { if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } + if (policyInfosBuilder_ == null) { + if (!other.policyInfos_.isEmpty()) { + if (policyInfos_.isEmpty()) { + policyInfos_ = other.policyInfos_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensurePolicyInfosIsMutable(); + policyInfos_.addAll(other.policyInfos_); + } + onChanged(); + } + } else { + if (!other.policyInfos_.isEmpty()) { + if (policyInfosBuilder_.isEmpty()) { + policyInfosBuilder_.dispose(); + policyInfosBuilder_ = null; + policyInfos_ = other.policyInfos_; + bitField0_ = (bitField0_ & ~0x00000200); + policyInfosBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPolicyInfosFieldBuilder() : null; + } else { + policyInfosBuilder_.addAllMessages(other.policyInfos_); + } + } + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1692,6 +1843,7 @@ public com.google.protobuf.StringValueOrBuilder getStartDateTimeOrBuilder() { /** *
      * End time in which this feed item is no longer effective and will stop
+     * serving.
      * The format is "YYYY-MM-DD HH:MM:SS".
      * Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
      * 
@@ -1704,6 +1856,7 @@ public boolean hasEndDateTime() { /** *
      * End time in which this feed item is no longer effective and will stop
+     * serving.
      * The format is "YYYY-MM-DD HH:MM:SS".
      * Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
      * 
@@ -1720,6 +1873,7 @@ public com.google.protobuf.StringValue getEndDateTime() { /** *
      * End time in which this feed item is no longer effective and will stop
+     * serving.
      * The format is "YYYY-MM-DD HH:MM:SS".
      * Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
      * 
@@ -1742,6 +1896,7 @@ public Builder setEndDateTime(com.google.protobuf.StringValue value) { /** *
      * End time in which this feed item is no longer effective and will stop
+     * serving.
      * The format is "YYYY-MM-DD HH:MM:SS".
      * Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
      * 
@@ -1762,6 +1917,7 @@ public Builder setEndDateTime( /** *
      * End time in which this feed item is no longer effective and will stop
+     * serving.
      * The format is "YYYY-MM-DD HH:MM:SS".
      * Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
      * 
@@ -1786,6 +1942,7 @@ public Builder mergeEndDateTime(com.google.protobuf.StringValue value) { /** *
      * End time in which this feed item is no longer effective and will stop
+     * serving.
      * The format is "YYYY-MM-DD HH:MM:SS".
      * Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
      * 
@@ -1806,6 +1963,7 @@ public Builder clearEndDateTime() { /** *
      * End time in which this feed item is no longer effective and will stop
+     * serving.
      * The format is "YYYY-MM-DD HH:MM:SS".
      * Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
      * 
@@ -1820,6 +1978,7 @@ public com.google.protobuf.StringValue.Builder getEndDateTimeBuilder() { /** *
      * End time in which this feed item is no longer effective and will stop
+     * serving.
      * The format is "YYYY-MM-DD HH:MM:SS".
      * Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
      * 
@@ -1837,6 +1996,7 @@ public com.google.protobuf.StringValueOrBuilder getEndDateTimeOrBuilder() { /** *
      * End time in which this feed item is no longer effective and will stop
+     * serving.
      * The format is "YYYY-MM-DD HH:MM:SS".
      * Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
      * 
@@ -2638,6 +2798,408 @@ public Builder clearStatus() { onChanged(); return this; } + + private java.util.List policyInfos_ = + java.util.Collections.emptyList(); + private void ensurePolicyInfosIsMutable() { + if (!((bitField0_ & 0x00000200) == 0x00000200)) { + policyInfos_ = new java.util.ArrayList(policyInfos_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo, com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo.Builder, com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfoOrBuilder> policyInfosBuilder_; + + /** + *
+     * List of info about a feed item's validation and approval state for active
+     * feed mappings. There will be an entry in the list for each type of feed
+     * mapping associated with the feed, e.g. a feed with a sitelink and a call
+     * feed mapping would cause every feed item associated with that feed to have
+     * an entry in this list for both sitelink and call.
+     * This field is read-only.
+     * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10; + */ + public java.util.List getPolicyInfosList() { + if (policyInfosBuilder_ == null) { + return java.util.Collections.unmodifiableList(policyInfos_); + } else { + return policyInfosBuilder_.getMessageList(); + } + } + /** + *
+     * List of info about a feed item's validation and approval state for active
+     * feed mappings. There will be an entry in the list for each type of feed
+     * mapping associated with the feed, e.g. a feed with a sitelink and a call
+     * feed mapping would cause every feed item associated with that feed to have
+     * an entry in this list for both sitelink and call.
+     * This field is read-only.
+     * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10; + */ + public int getPolicyInfosCount() { + if (policyInfosBuilder_ == null) { + return policyInfos_.size(); + } else { + return policyInfosBuilder_.getCount(); + } + } + /** + *
+     * List of info about a feed item's validation and approval state for active
+     * feed mappings. There will be an entry in the list for each type of feed
+     * mapping associated with the feed, e.g. a feed with a sitelink and a call
+     * feed mapping would cause every feed item associated with that feed to have
+     * an entry in this list for both sitelink and call.
+     * This field is read-only.
+     * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10; + */ + public com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo getPolicyInfos(int index) { + if (policyInfosBuilder_ == null) { + return policyInfos_.get(index); + } else { + return policyInfosBuilder_.getMessage(index); + } + } + /** + *
+     * List of info about a feed item's validation and approval state for active
+     * feed mappings. There will be an entry in the list for each type of feed
+     * mapping associated with the feed, e.g. a feed with a sitelink and a call
+     * feed mapping would cause every feed item associated with that feed to have
+     * an entry in this list for both sitelink and call.
+     * This field is read-only.
+     * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10; + */ + public Builder setPolicyInfos( + int index, com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo value) { + if (policyInfosBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolicyInfosIsMutable(); + policyInfos_.set(index, value); + onChanged(); + } else { + policyInfosBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * List of info about a feed item's validation and approval state for active
+     * feed mappings. There will be an entry in the list for each type of feed
+     * mapping associated with the feed, e.g. a feed with a sitelink and a call
+     * feed mapping would cause every feed item associated with that feed to have
+     * an entry in this list for both sitelink and call.
+     * This field is read-only.
+     * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10; + */ + public Builder setPolicyInfos( + int index, com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo.Builder builderForValue) { + if (policyInfosBuilder_ == null) { + ensurePolicyInfosIsMutable(); + policyInfos_.set(index, builderForValue.build()); + onChanged(); + } else { + policyInfosBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of info about a feed item's validation and approval state for active
+     * feed mappings. There will be an entry in the list for each type of feed
+     * mapping associated with the feed, e.g. a feed with a sitelink and a call
+     * feed mapping would cause every feed item associated with that feed to have
+     * an entry in this list for both sitelink and call.
+     * This field is read-only.
+     * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10; + */ + public Builder addPolicyInfos(com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo value) { + if (policyInfosBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolicyInfosIsMutable(); + policyInfos_.add(value); + onChanged(); + } else { + policyInfosBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * List of info about a feed item's validation and approval state for active
+     * feed mappings. There will be an entry in the list for each type of feed
+     * mapping associated with the feed, e.g. a feed with a sitelink and a call
+     * feed mapping would cause every feed item associated with that feed to have
+     * an entry in this list for both sitelink and call.
+     * This field is read-only.
+     * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10; + */ + public Builder addPolicyInfos( + int index, com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo value) { + if (policyInfosBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolicyInfosIsMutable(); + policyInfos_.add(index, value); + onChanged(); + } else { + policyInfosBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * List of info about a feed item's validation and approval state for active
+     * feed mappings. There will be an entry in the list for each type of feed
+     * mapping associated with the feed, e.g. a feed with a sitelink and a call
+     * feed mapping would cause every feed item associated with that feed to have
+     * an entry in this list for both sitelink and call.
+     * This field is read-only.
+     * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10; + */ + public Builder addPolicyInfos( + com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo.Builder builderForValue) { + if (policyInfosBuilder_ == null) { + ensurePolicyInfosIsMutable(); + policyInfos_.add(builderForValue.build()); + onChanged(); + } else { + policyInfosBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * List of info about a feed item's validation and approval state for active
+     * feed mappings. There will be an entry in the list for each type of feed
+     * mapping associated with the feed, e.g. a feed with a sitelink and a call
+     * feed mapping would cause every feed item associated with that feed to have
+     * an entry in this list for both sitelink and call.
+     * This field is read-only.
+     * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10; + */ + public Builder addPolicyInfos( + int index, com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo.Builder builderForValue) { + if (policyInfosBuilder_ == null) { + ensurePolicyInfosIsMutable(); + policyInfos_.add(index, builderForValue.build()); + onChanged(); + } else { + policyInfosBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of info about a feed item's validation and approval state for active
+     * feed mappings. There will be an entry in the list for each type of feed
+     * mapping associated with the feed, e.g. a feed with a sitelink and a call
+     * feed mapping would cause every feed item associated with that feed to have
+     * an entry in this list for both sitelink and call.
+     * This field is read-only.
+     * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10; + */ + public Builder addAllPolicyInfos( + java.lang.Iterable values) { + if (policyInfosBuilder_ == null) { + ensurePolicyInfosIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, policyInfos_); + onChanged(); + } else { + policyInfosBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * List of info about a feed item's validation and approval state for active
+     * feed mappings. There will be an entry in the list for each type of feed
+     * mapping associated with the feed, e.g. a feed with a sitelink and a call
+     * feed mapping would cause every feed item associated with that feed to have
+     * an entry in this list for both sitelink and call.
+     * This field is read-only.
+     * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10; + */ + public Builder clearPolicyInfos() { + if (policyInfosBuilder_ == null) { + policyInfos_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + policyInfosBuilder_.clear(); + } + return this; + } + /** + *
+     * List of info about a feed item's validation and approval state for active
+     * feed mappings. There will be an entry in the list for each type of feed
+     * mapping associated with the feed, e.g. a feed with a sitelink and a call
+     * feed mapping would cause every feed item associated with that feed to have
+     * an entry in this list for both sitelink and call.
+     * This field is read-only.
+     * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10; + */ + public Builder removePolicyInfos(int index) { + if (policyInfosBuilder_ == null) { + ensurePolicyInfosIsMutable(); + policyInfos_.remove(index); + onChanged(); + } else { + policyInfosBuilder_.remove(index); + } + return this; + } + /** + *
+     * List of info about a feed item's validation and approval state for active
+     * feed mappings. There will be an entry in the list for each type of feed
+     * mapping associated with the feed, e.g. a feed with a sitelink and a call
+     * feed mapping would cause every feed item associated with that feed to have
+     * an entry in this list for both sitelink and call.
+     * This field is read-only.
+     * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10; + */ + public com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo.Builder getPolicyInfosBuilder( + int index) { + return getPolicyInfosFieldBuilder().getBuilder(index); + } + /** + *
+     * List of info about a feed item's validation and approval state for active
+     * feed mappings. There will be an entry in the list for each type of feed
+     * mapping associated with the feed, e.g. a feed with a sitelink and a call
+     * feed mapping would cause every feed item associated with that feed to have
+     * an entry in this list for both sitelink and call.
+     * This field is read-only.
+     * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10; + */ + public com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfoOrBuilder getPolicyInfosOrBuilder( + int index) { + if (policyInfosBuilder_ == null) { + return policyInfos_.get(index); } else { + return policyInfosBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * List of info about a feed item's validation and approval state for active
+     * feed mappings. There will be an entry in the list for each type of feed
+     * mapping associated with the feed, e.g. a feed with a sitelink and a call
+     * feed mapping would cause every feed item associated with that feed to have
+     * an entry in this list for both sitelink and call.
+     * This field is read-only.
+     * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10; + */ + public java.util.List + getPolicyInfosOrBuilderList() { + if (policyInfosBuilder_ != null) { + return policyInfosBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(policyInfos_); + } + } + /** + *
+     * List of info about a feed item's validation and approval state for active
+     * feed mappings. There will be an entry in the list for each type of feed
+     * mapping associated with the feed, e.g. a feed with a sitelink and a call
+     * feed mapping would cause every feed item associated with that feed to have
+     * an entry in this list for both sitelink and call.
+     * This field is read-only.
+     * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10; + */ + public com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo.Builder addPolicyInfosBuilder() { + return getPolicyInfosFieldBuilder().addBuilder( + com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo.getDefaultInstance()); + } + /** + *
+     * List of info about a feed item's validation and approval state for active
+     * feed mappings. There will be an entry in the list for each type of feed
+     * mapping associated with the feed, e.g. a feed with a sitelink and a call
+     * feed mapping would cause every feed item associated with that feed to have
+     * an entry in this list for both sitelink and call.
+     * This field is read-only.
+     * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10; + */ + public com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo.Builder addPolicyInfosBuilder( + int index) { + return getPolicyInfosFieldBuilder().addBuilder( + index, com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo.getDefaultInstance()); + } + /** + *
+     * List of info about a feed item's validation and approval state for active
+     * feed mappings. There will be an entry in the list for each type of feed
+     * mapping associated with the feed, e.g. a feed with a sitelink and a call
+     * feed mapping would cause every feed item associated with that feed to have
+     * an entry in this list for both sitelink and call.
+     * This field is read-only.
+     * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10; + */ + public java.util.List + getPolicyInfosBuilderList() { + return getPolicyInfosFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo, com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo.Builder, com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfoOrBuilder> + getPolicyInfosFieldBuilder() { + if (policyInfosBuilder_ == null) { + policyInfosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo, com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo.Builder, com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfoOrBuilder>( + policyInfos_, + ((bitField0_ & 0x00000200) == 0x00000200), + getParentForChildren(), + isClean()); + policyInfos_ = null; + } + return policyInfosBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/FeedItemOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/FeedItemOrBuilder.java index fb1da08076..09e88e1541 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/FeedItemOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/FeedItemOrBuilder.java @@ -113,6 +113,7 @@ public interface FeedItemOrBuilder extends /** *
    * End time in which this feed item is no longer effective and will stop
+   * serving.
    * The format is "YYYY-MM-DD HH:MM:SS".
    * Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
    * 
@@ -123,6 +124,7 @@ public interface FeedItemOrBuilder extends /** *
    * End time in which this feed item is no longer effective and will stop
+   * serving.
    * The format is "YYYY-MM-DD HH:MM:SS".
    * Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
    * 
@@ -133,6 +135,7 @@ public interface FeedItemOrBuilder extends /** *
    * End time in which this feed item is no longer effective and will stop
+   * serving.
    * The format is "YYYY-MM-DD HH:MM:SS".
    * Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
    * 
@@ -271,4 +274,73 @@ com.google.ads.googleads.v0.common.CustomParameterOrBuilder getUrlCustomParamete * .google.ads.googleads.v0.enums.FeedItemStatusEnum.FeedItemStatus status = 9; */ com.google.ads.googleads.v0.enums.FeedItemStatusEnum.FeedItemStatus getStatus(); + + /** + *
+   * List of info about a feed item's validation and approval state for active
+   * feed mappings. There will be an entry in the list for each type of feed
+   * mapping associated with the feed, e.g. a feed with a sitelink and a call
+   * feed mapping would cause every feed item associated with that feed to have
+   * an entry in this list for both sitelink and call.
+   * This field is read-only.
+   * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10; + */ + java.util.List + getPolicyInfosList(); + /** + *
+   * List of info about a feed item's validation and approval state for active
+   * feed mappings. There will be an entry in the list for each type of feed
+   * mapping associated with the feed, e.g. a feed with a sitelink and a call
+   * feed mapping would cause every feed item associated with that feed to have
+   * an entry in this list for both sitelink and call.
+   * This field is read-only.
+   * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10; + */ + com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo getPolicyInfos(int index); + /** + *
+   * List of info about a feed item's validation and approval state for active
+   * feed mappings. There will be an entry in the list for each type of feed
+   * mapping associated with the feed, e.g. a feed with a sitelink and a call
+   * feed mapping would cause every feed item associated with that feed to have
+   * an entry in this list for both sitelink and call.
+   * This field is read-only.
+   * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10; + */ + int getPolicyInfosCount(); + /** + *
+   * List of info about a feed item's validation and approval state for active
+   * feed mappings. There will be an entry in the list for each type of feed
+   * mapping associated with the feed, e.g. a feed with a sitelink and a call
+   * feed mapping would cause every feed item associated with that feed to have
+   * an entry in this list for both sitelink and call.
+   * This field is read-only.
+   * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10; + */ + java.util.List + getPolicyInfosOrBuilderList(); + /** + *
+   * List of info about a feed item's validation and approval state for active
+   * feed mappings. There will be an entry in the list for each type of feed
+   * mapping associated with the feed, e.g. a feed with a sitelink and a call
+   * feed mapping would cause every feed item associated with that feed to have
+   * an entry in this list for both sitelink and call.
+   * This field is read-only.
+   * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo policy_infos = 10; + */ + com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfoOrBuilder getPolicyInfosOrBuilder( + int index); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/FeedItemPlaceholderPolicyInfo.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/FeedItemPlaceholderPolicyInfo.java new file mode 100644 index 0000000000..d3218a4197 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/FeedItemPlaceholderPolicyInfo.java @@ -0,0 +1,2517 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/resources/feed_item.proto + +package com.google.ads.googleads.v0.resources; + +/** + *
+ * Policy, validation, and quality approval info for a feed item for the
+ * specified placeholder type.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo} + */ +public final class FeedItemPlaceholderPolicyInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo) + FeedItemPlaceholderPolicyInfoOrBuilder { +private static final long serialVersionUID = 0L; + // Use FeedItemPlaceholderPolicyInfo.newBuilder() to construct. + private FeedItemPlaceholderPolicyInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FeedItemPlaceholderPolicyInfo() { + reviewStatus_ = 0; + approvalStatus_ = 0; + policyTopicEntries_ = java.util.Collections.emptyList(); + validationStatus_ = 0; + validationErrors_ = java.util.Collections.emptyList(); + qualityApprovalStatus_ = 0; + qualityDisapprovalReasons_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FeedItemPlaceholderPolicyInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.Int32Value.Builder subBuilder = null; + if (placeholderType_ != null) { + subBuilder = placeholderType_.toBuilder(); + } + placeholderType_ = input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(placeholderType_); + placeholderType_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (feedMappingResourceName_ != null) { + subBuilder = feedMappingResourceName_.toBuilder(); + } + feedMappingResourceName_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(feedMappingResourceName_); + feedMappingResourceName_ = subBuilder.buildPartial(); + } + + break; + } + case 24: { + int rawValue = input.readEnum(); + + reviewStatus_ = rawValue; + break; + } + case 32: { + int rawValue = input.readEnum(); + + approvalStatus_ = rawValue; + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + policyTopicEntries_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + policyTopicEntries_.add( + input.readMessage(com.google.ads.googleads.v0.common.PolicyTopicEntry.parser(), extensionRegistry)); + break; + } + case 48: { + int rawValue = input.readEnum(); + + validationStatus_ = rawValue; + break; + } + case 58: { + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + validationErrors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000040; + } + validationErrors_.add( + input.readMessage(com.google.ads.googleads.v0.resources.FeedItemValidationError.parser(), extensionRegistry)); + break; + } + case 64: { + int rawValue = input.readEnum(); + + qualityApprovalStatus_ = rawValue; + break; + } + case 72: { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { + qualityDisapprovalReasons_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000100; + } + qualityDisapprovalReasons_.add(rawValue); + break; + } + case 74: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { + qualityDisapprovalReasons_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000100; + } + qualityDisapprovalReasons_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + policyTopicEntries_ = java.util.Collections.unmodifiableList(policyTopicEntries_); + } + if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + validationErrors_ = java.util.Collections.unmodifiableList(validationErrors_); + } + if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { + qualityDisapprovalReasons_ = java.util.Collections.unmodifiableList(qualityDisapprovalReasons_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.resources.FeedItemProto.internal_static_google_ads_googleads_v0_resources_FeedItemPlaceholderPolicyInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.resources.FeedItemProto.internal_static_google_ads_googleads_v0_resources_FeedItemPlaceholderPolicyInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo.class, com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo.Builder.class); + } + + private int bitField0_; + public static final int PLACEHOLDER_TYPE_FIELD_NUMBER = 1; + private com.google.protobuf.Int32Value placeholderType_; + /** + *
+   * The placeholder type.
+   * 
+ * + * .google.protobuf.Int32Value placeholder_type = 1; + */ + public boolean hasPlaceholderType() { + return placeholderType_ != null; + } + /** + *
+   * The placeholder type.
+   * 
+ * + * .google.protobuf.Int32Value placeholder_type = 1; + */ + public com.google.protobuf.Int32Value getPlaceholderType() { + return placeholderType_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : placeholderType_; + } + /** + *
+   * The placeholder type.
+   * 
+ * + * .google.protobuf.Int32Value placeholder_type = 1; + */ + public com.google.protobuf.Int32ValueOrBuilder getPlaceholderTypeOrBuilder() { + return getPlaceholderType(); + } + + public static final int FEED_MAPPING_RESOURCE_NAME_FIELD_NUMBER = 2; + private com.google.protobuf.StringValue feedMappingResourceName_; + /** + *
+   * The FeedMapping that contains the placeholder type.
+   * 
+ * + * .google.protobuf.StringValue feed_mapping_resource_name = 2; + */ + public boolean hasFeedMappingResourceName() { + return feedMappingResourceName_ != null; + } + /** + *
+   * The FeedMapping that contains the placeholder type.
+   * 
+ * + * .google.protobuf.StringValue feed_mapping_resource_name = 2; + */ + public com.google.protobuf.StringValue getFeedMappingResourceName() { + return feedMappingResourceName_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : feedMappingResourceName_; + } + /** + *
+   * The FeedMapping that contains the placeholder type.
+   * 
+ * + * .google.protobuf.StringValue feed_mapping_resource_name = 2; + */ + public com.google.protobuf.StringValueOrBuilder getFeedMappingResourceNameOrBuilder() { + return getFeedMappingResourceName(); + } + + public static final int REVIEW_STATUS_FIELD_NUMBER = 3; + private int reviewStatus_; + /** + *
+   * Where the placeholder type is in the review process.
+   * 
+ * + * .google.ads.googleads.v0.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 3; + */ + public int getReviewStatusValue() { + return reviewStatus_; + } + /** + *
+   * Where the placeholder type is in the review process.
+   * 
+ * + * .google.ads.googleads.v0.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 3; + */ + public com.google.ads.googleads.v0.enums.PolicyReviewStatusEnum.PolicyReviewStatus getReviewStatus() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.PolicyReviewStatusEnum.PolicyReviewStatus result = com.google.ads.googleads.v0.enums.PolicyReviewStatusEnum.PolicyReviewStatus.valueOf(reviewStatus_); + return result == null ? com.google.ads.googleads.v0.enums.PolicyReviewStatusEnum.PolicyReviewStatus.UNRECOGNIZED : result; + } + + public static final int APPROVAL_STATUS_FIELD_NUMBER = 4; + private int approvalStatus_; + /** + *
+   * The overall approval status of the placeholder type, calculated based on
+   * the status of its individual policy topic entries.
+   * 
+ * + * .google.ads.googleads.v0.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 4; + */ + public int getApprovalStatusValue() { + return approvalStatus_; + } + /** + *
+   * The overall approval status of the placeholder type, calculated based on
+   * the status of its individual policy topic entries.
+   * 
+ * + * .google.ads.googleads.v0.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 4; + */ + public com.google.ads.googleads.v0.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus getApprovalStatus() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus result = com.google.ads.googleads.v0.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus.valueOf(approvalStatus_); + return result == null ? com.google.ads.googleads.v0.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus.UNRECOGNIZED : result; + } + + public static final int POLICY_TOPIC_ENTRIES_FIELD_NUMBER = 5; + private java.util.List policyTopicEntries_; + /** + *
+   * The list of policy findings for the placeholder type.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.PolicyTopicEntry policy_topic_entries = 5; + */ + public java.util.List getPolicyTopicEntriesList() { + return policyTopicEntries_; + } + /** + *
+   * The list of policy findings for the placeholder type.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.PolicyTopicEntry policy_topic_entries = 5; + */ + public java.util.List + getPolicyTopicEntriesOrBuilderList() { + return policyTopicEntries_; + } + /** + *
+   * The list of policy findings for the placeholder type.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.PolicyTopicEntry policy_topic_entries = 5; + */ + public int getPolicyTopicEntriesCount() { + return policyTopicEntries_.size(); + } + /** + *
+   * The list of policy findings for the placeholder type.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.PolicyTopicEntry policy_topic_entries = 5; + */ + public com.google.ads.googleads.v0.common.PolicyTopicEntry getPolicyTopicEntries(int index) { + return policyTopicEntries_.get(index); + } + /** + *
+   * The list of policy findings for the placeholder type.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.PolicyTopicEntry policy_topic_entries = 5; + */ + public com.google.ads.googleads.v0.common.PolicyTopicEntryOrBuilder getPolicyTopicEntriesOrBuilder( + int index) { + return policyTopicEntries_.get(index); + } + + public static final int VALIDATION_STATUS_FIELD_NUMBER = 6; + private int validationStatus_; + /** + *
+   * The validation status of the palceholder type.
+   * 
+ * + * .google.ads.googleads.v0.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus validation_status = 6; + */ + public int getValidationStatusValue() { + return validationStatus_; + } + /** + *
+   * The validation status of the palceholder type.
+   * 
+ * + * .google.ads.googleads.v0.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus validation_status = 6; + */ + public com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus getValidationStatus() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus result = com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus.valueOf(validationStatus_); + return result == null ? com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus.UNRECOGNIZED : result; + } + + public static final int VALIDATION_ERRORS_FIELD_NUMBER = 7; + private java.util.List validationErrors_; + /** + *
+   * List of placeholder type validation errors.
+   * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemValidationError validation_errors = 7; + */ + public java.util.List getValidationErrorsList() { + return validationErrors_; + } + /** + *
+   * List of placeholder type validation errors.
+   * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemValidationError validation_errors = 7; + */ + public java.util.List + getValidationErrorsOrBuilderList() { + return validationErrors_; + } + /** + *
+   * List of placeholder type validation errors.
+   * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemValidationError validation_errors = 7; + */ + public int getValidationErrorsCount() { + return validationErrors_.size(); + } + /** + *
+   * List of placeholder type validation errors.
+   * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemValidationError validation_errors = 7; + */ + public com.google.ads.googleads.v0.resources.FeedItemValidationError getValidationErrors(int index) { + return validationErrors_.get(index); + } + /** + *
+   * List of placeholder type validation errors.
+   * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemValidationError validation_errors = 7; + */ + public com.google.ads.googleads.v0.resources.FeedItemValidationErrorOrBuilder getValidationErrorsOrBuilder( + int index) { + return validationErrors_.get(index); + } + + public static final int QUALITY_APPROVAL_STATUS_FIELD_NUMBER = 8; + private int qualityApprovalStatus_; + /** + *
+   * Placeholder type quality evaluation approval status.
+   * 
+ * + * .google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus quality_approval_status = 8; + */ + public int getQualityApprovalStatusValue() { + return qualityApprovalStatus_; + } + /** + *
+   * Placeholder type quality evaluation approval status.
+   * 
+ * + * .google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus quality_approval_status = 8; + */ + public com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus getQualityApprovalStatus() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus result = com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus.valueOf(qualityApprovalStatus_); + return result == null ? com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus.UNRECOGNIZED : result; + } + + public static final int QUALITY_DISAPPROVAL_REASONS_FIELD_NUMBER = 9; + private java.util.List qualityDisapprovalReasons_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason> qualityDisapprovalReasons_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason>() { + public com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason convert(java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason result = com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason.valueOf(from); + return result == null ? com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason.UNRECOGNIZED : result; + } + }; + /** + *
+   * List of placeholder type quality evaluation disapproval reasons.
+   * 
+ * + * repeated .google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9; + */ + public java.util.List getQualityDisapprovalReasonsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason>(qualityDisapprovalReasons_, qualityDisapprovalReasons_converter_); + } + /** + *
+   * List of placeholder type quality evaluation disapproval reasons.
+   * 
+ * + * repeated .google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9; + */ + public int getQualityDisapprovalReasonsCount() { + return qualityDisapprovalReasons_.size(); + } + /** + *
+   * List of placeholder type quality evaluation disapproval reasons.
+   * 
+ * + * repeated .google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9; + */ + public com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason getQualityDisapprovalReasons(int index) { + return qualityDisapprovalReasons_converter_.convert(qualityDisapprovalReasons_.get(index)); + } + /** + *
+   * List of placeholder type quality evaluation disapproval reasons.
+   * 
+ * + * repeated .google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9; + */ + public java.util.List + getQualityDisapprovalReasonsValueList() { + return qualityDisapprovalReasons_; + } + /** + *
+   * List of placeholder type quality evaluation disapproval reasons.
+   * 
+ * + * repeated .google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9; + */ + public int getQualityDisapprovalReasonsValue(int index) { + return qualityDisapprovalReasons_.get(index); + } + private int qualityDisapprovalReasonsMemoizedSerializedSize; + + 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 { + getSerializedSize(); + if (placeholderType_ != null) { + output.writeMessage(1, getPlaceholderType()); + } + if (feedMappingResourceName_ != null) { + output.writeMessage(2, getFeedMappingResourceName()); + } + if (reviewStatus_ != com.google.ads.googleads.v0.enums.PolicyReviewStatusEnum.PolicyReviewStatus.UNSPECIFIED.getNumber()) { + output.writeEnum(3, reviewStatus_); + } + if (approvalStatus_ != com.google.ads.googleads.v0.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus.UNSPECIFIED.getNumber()) { + output.writeEnum(4, approvalStatus_); + } + for (int i = 0; i < policyTopicEntries_.size(); i++) { + output.writeMessage(5, policyTopicEntries_.get(i)); + } + if (validationStatus_ != com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus.UNSPECIFIED.getNumber()) { + output.writeEnum(6, validationStatus_); + } + for (int i = 0; i < validationErrors_.size(); i++) { + output.writeMessage(7, validationErrors_.get(i)); + } + if (qualityApprovalStatus_ != com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus.UNSPECIFIED.getNumber()) { + output.writeEnum(8, qualityApprovalStatus_); + } + if (getQualityDisapprovalReasonsList().size() > 0) { + output.writeUInt32NoTag(74); + output.writeUInt32NoTag(qualityDisapprovalReasonsMemoizedSerializedSize); + } + for (int i = 0; i < qualityDisapprovalReasons_.size(); i++) { + output.writeEnumNoTag(qualityDisapprovalReasons_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (placeholderType_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPlaceholderType()); + } + if (feedMappingResourceName_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getFeedMappingResourceName()); + } + if (reviewStatus_ != com.google.ads.googleads.v0.enums.PolicyReviewStatusEnum.PolicyReviewStatus.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, reviewStatus_); + } + if (approvalStatus_ != com.google.ads.googleads.v0.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, approvalStatus_); + } + for (int i = 0; i < policyTopicEntries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, policyTopicEntries_.get(i)); + } + if (validationStatus_ != com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, validationStatus_); + } + for (int i = 0; i < validationErrors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, validationErrors_.get(i)); + } + if (qualityApprovalStatus_ != com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, qualityApprovalStatus_); + } + { + int dataSize = 0; + for (int i = 0; i < qualityDisapprovalReasons_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(qualityDisapprovalReasons_.get(i)); + } + size += dataSize; + if (!getQualityDisapprovalReasonsList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }qualityDisapprovalReasonsMemoizedSerializedSize = dataSize; + } + size += unknownFields.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.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo other = (com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo) obj; + + boolean result = true; + result = result && (hasPlaceholderType() == other.hasPlaceholderType()); + if (hasPlaceholderType()) { + result = result && getPlaceholderType() + .equals(other.getPlaceholderType()); + } + result = result && (hasFeedMappingResourceName() == other.hasFeedMappingResourceName()); + if (hasFeedMappingResourceName()) { + result = result && getFeedMappingResourceName() + .equals(other.getFeedMappingResourceName()); + } + result = result && reviewStatus_ == other.reviewStatus_; + result = result && approvalStatus_ == other.approvalStatus_; + result = result && getPolicyTopicEntriesList() + .equals(other.getPolicyTopicEntriesList()); + result = result && validationStatus_ == other.validationStatus_; + result = result && getValidationErrorsList() + .equals(other.getValidationErrorsList()); + result = result && qualityApprovalStatus_ == other.qualityApprovalStatus_; + result = result && qualityDisapprovalReasons_.equals(other.qualityDisapprovalReasons_); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPlaceholderType()) { + hash = (37 * hash) + PLACEHOLDER_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getPlaceholderType().hashCode(); + } + if (hasFeedMappingResourceName()) { + hash = (37 * hash) + FEED_MAPPING_RESOURCE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFeedMappingResourceName().hashCode(); + } + hash = (37 * hash) + REVIEW_STATUS_FIELD_NUMBER; + hash = (53 * hash) + reviewStatus_; + hash = (37 * hash) + APPROVAL_STATUS_FIELD_NUMBER; + hash = (53 * hash) + approvalStatus_; + if (getPolicyTopicEntriesCount() > 0) { + hash = (37 * hash) + POLICY_TOPIC_ENTRIES_FIELD_NUMBER; + hash = (53 * hash) + getPolicyTopicEntriesList().hashCode(); + } + hash = (37 * hash) + VALIDATION_STATUS_FIELD_NUMBER; + hash = (53 * hash) + validationStatus_; + if (getValidationErrorsCount() > 0) { + hash = (37 * hash) + VALIDATION_ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getValidationErrorsList().hashCode(); + } + hash = (37 * hash) + QUALITY_APPROVAL_STATUS_FIELD_NUMBER; + hash = (53 * hash) + qualityApprovalStatus_; + if (getQualityDisapprovalReasonsCount() > 0) { + hash = (37 * hash) + QUALITY_DISAPPROVAL_REASONS_FIELD_NUMBER; + hash = (53 * hash) + qualityDisapprovalReasons_.hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo 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.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo 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.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo 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.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo 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.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo 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; + } + /** + *
+   * Policy, validation, and quality approval info for a feed item for the
+   * specified placeholder type.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo) + com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.resources.FeedItemProto.internal_static_google_ads_googleads_v0_resources_FeedItemPlaceholderPolicyInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.resources.FeedItemProto.internal_static_google_ads_googleads_v0_resources_FeedItemPlaceholderPolicyInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo.class, com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getPolicyTopicEntriesFieldBuilder(); + getValidationErrorsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (placeholderTypeBuilder_ == null) { + placeholderType_ = null; + } else { + placeholderType_ = null; + placeholderTypeBuilder_ = null; + } + if (feedMappingResourceNameBuilder_ == null) { + feedMappingResourceName_ = null; + } else { + feedMappingResourceName_ = null; + feedMappingResourceNameBuilder_ = null; + } + reviewStatus_ = 0; + + approvalStatus_ = 0; + + if (policyTopicEntriesBuilder_ == null) { + policyTopicEntries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + policyTopicEntriesBuilder_.clear(); + } + validationStatus_ = 0; + + if (validationErrorsBuilder_ == null) { + validationErrors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + } else { + validationErrorsBuilder_.clear(); + } + qualityApprovalStatus_ = 0; + + qualityDisapprovalReasons_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.resources.FeedItemProto.internal_static_google_ads_googleads_v0_resources_FeedItemPlaceholderPolicyInfo_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo getDefaultInstanceForType() { + return com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo build() { + com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo buildPartial() { + com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo result = new com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (placeholderTypeBuilder_ == null) { + result.placeholderType_ = placeholderType_; + } else { + result.placeholderType_ = placeholderTypeBuilder_.build(); + } + if (feedMappingResourceNameBuilder_ == null) { + result.feedMappingResourceName_ = feedMappingResourceName_; + } else { + result.feedMappingResourceName_ = feedMappingResourceNameBuilder_.build(); + } + result.reviewStatus_ = reviewStatus_; + result.approvalStatus_ = approvalStatus_; + if (policyTopicEntriesBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { + policyTopicEntries_ = java.util.Collections.unmodifiableList(policyTopicEntries_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.policyTopicEntries_ = policyTopicEntries_; + } else { + result.policyTopicEntries_ = policyTopicEntriesBuilder_.build(); + } + result.validationStatus_ = validationStatus_; + if (validationErrorsBuilder_ == null) { + if (((bitField0_ & 0x00000040) == 0x00000040)) { + validationErrors_ = java.util.Collections.unmodifiableList(validationErrors_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.validationErrors_ = validationErrors_; + } else { + result.validationErrors_ = validationErrorsBuilder_.build(); + } + result.qualityApprovalStatus_ = qualityApprovalStatus_; + if (((bitField0_ & 0x00000100) == 0x00000100)) { + qualityDisapprovalReasons_ = java.util.Collections.unmodifiableList(qualityDisapprovalReasons_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.qualityDisapprovalReasons_ = qualityDisapprovalReasons_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo) { + return mergeFrom((com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo other) { + if (other == com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo.getDefaultInstance()) return this; + if (other.hasPlaceholderType()) { + mergePlaceholderType(other.getPlaceholderType()); + } + if (other.hasFeedMappingResourceName()) { + mergeFeedMappingResourceName(other.getFeedMappingResourceName()); + } + if (other.reviewStatus_ != 0) { + setReviewStatusValue(other.getReviewStatusValue()); + } + if (other.approvalStatus_ != 0) { + setApprovalStatusValue(other.getApprovalStatusValue()); + } + if (policyTopicEntriesBuilder_ == null) { + if (!other.policyTopicEntries_.isEmpty()) { + if (policyTopicEntries_.isEmpty()) { + policyTopicEntries_ = other.policyTopicEntries_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensurePolicyTopicEntriesIsMutable(); + policyTopicEntries_.addAll(other.policyTopicEntries_); + } + onChanged(); + } + } else { + if (!other.policyTopicEntries_.isEmpty()) { + if (policyTopicEntriesBuilder_.isEmpty()) { + policyTopicEntriesBuilder_.dispose(); + policyTopicEntriesBuilder_ = null; + policyTopicEntries_ = other.policyTopicEntries_; + bitField0_ = (bitField0_ & ~0x00000010); + policyTopicEntriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPolicyTopicEntriesFieldBuilder() : null; + } else { + policyTopicEntriesBuilder_.addAllMessages(other.policyTopicEntries_); + } + } + } + if (other.validationStatus_ != 0) { + setValidationStatusValue(other.getValidationStatusValue()); + } + if (validationErrorsBuilder_ == null) { + if (!other.validationErrors_.isEmpty()) { + if (validationErrors_.isEmpty()) { + validationErrors_ = other.validationErrors_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureValidationErrorsIsMutable(); + validationErrors_.addAll(other.validationErrors_); + } + onChanged(); + } + } else { + if (!other.validationErrors_.isEmpty()) { + if (validationErrorsBuilder_.isEmpty()) { + validationErrorsBuilder_.dispose(); + validationErrorsBuilder_ = null; + validationErrors_ = other.validationErrors_; + bitField0_ = (bitField0_ & ~0x00000040); + validationErrorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getValidationErrorsFieldBuilder() : null; + } else { + validationErrorsBuilder_.addAllMessages(other.validationErrors_); + } + } + } + if (other.qualityApprovalStatus_ != 0) { + setQualityApprovalStatusValue(other.getQualityApprovalStatusValue()); + } + if (!other.qualityDisapprovalReasons_.isEmpty()) { + if (qualityDisapprovalReasons_.isEmpty()) { + qualityDisapprovalReasons_ = other.qualityDisapprovalReasons_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureQualityDisapprovalReasonsIsMutable(); + qualityDisapprovalReasons_.addAll(other.qualityDisapprovalReasons_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.Int32Value placeholderType_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> placeholderTypeBuilder_; + /** + *
+     * The placeholder type.
+     * 
+ * + * .google.protobuf.Int32Value placeholder_type = 1; + */ + public boolean hasPlaceholderType() { + return placeholderTypeBuilder_ != null || placeholderType_ != null; + } + /** + *
+     * The placeholder type.
+     * 
+ * + * .google.protobuf.Int32Value placeholder_type = 1; + */ + public com.google.protobuf.Int32Value getPlaceholderType() { + if (placeholderTypeBuilder_ == null) { + return placeholderType_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : placeholderType_; + } else { + return placeholderTypeBuilder_.getMessage(); + } + } + /** + *
+     * The placeholder type.
+     * 
+ * + * .google.protobuf.Int32Value placeholder_type = 1; + */ + public Builder setPlaceholderType(com.google.protobuf.Int32Value value) { + if (placeholderTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + placeholderType_ = value; + onChanged(); + } else { + placeholderTypeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The placeholder type.
+     * 
+ * + * .google.protobuf.Int32Value placeholder_type = 1; + */ + public Builder setPlaceholderType( + com.google.protobuf.Int32Value.Builder builderForValue) { + if (placeholderTypeBuilder_ == null) { + placeholderType_ = builderForValue.build(); + onChanged(); + } else { + placeholderTypeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The placeholder type.
+     * 
+ * + * .google.protobuf.Int32Value placeholder_type = 1; + */ + public Builder mergePlaceholderType(com.google.protobuf.Int32Value value) { + if (placeholderTypeBuilder_ == null) { + if (placeholderType_ != null) { + placeholderType_ = + com.google.protobuf.Int32Value.newBuilder(placeholderType_).mergeFrom(value).buildPartial(); + } else { + placeholderType_ = value; + } + onChanged(); + } else { + placeholderTypeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The placeholder type.
+     * 
+ * + * .google.protobuf.Int32Value placeholder_type = 1; + */ + public Builder clearPlaceholderType() { + if (placeholderTypeBuilder_ == null) { + placeholderType_ = null; + onChanged(); + } else { + placeholderType_ = null; + placeholderTypeBuilder_ = null; + } + + return this; + } + /** + *
+     * The placeholder type.
+     * 
+ * + * .google.protobuf.Int32Value placeholder_type = 1; + */ + public com.google.protobuf.Int32Value.Builder getPlaceholderTypeBuilder() { + + onChanged(); + return getPlaceholderTypeFieldBuilder().getBuilder(); + } + /** + *
+     * The placeholder type.
+     * 
+ * + * .google.protobuf.Int32Value placeholder_type = 1; + */ + public com.google.protobuf.Int32ValueOrBuilder getPlaceholderTypeOrBuilder() { + if (placeholderTypeBuilder_ != null) { + return placeholderTypeBuilder_.getMessageOrBuilder(); + } else { + return placeholderType_ == null ? + com.google.protobuf.Int32Value.getDefaultInstance() : placeholderType_; + } + } + /** + *
+     * The placeholder type.
+     * 
+ * + * .google.protobuf.Int32Value placeholder_type = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> + getPlaceholderTypeFieldBuilder() { + if (placeholderTypeBuilder_ == null) { + placeholderTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( + getPlaceholderType(), + getParentForChildren(), + isClean()); + placeholderType_ = null; + } + return placeholderTypeBuilder_; + } + + private com.google.protobuf.StringValue feedMappingResourceName_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> feedMappingResourceNameBuilder_; + /** + *
+     * The FeedMapping that contains the placeholder type.
+     * 
+ * + * .google.protobuf.StringValue feed_mapping_resource_name = 2; + */ + public boolean hasFeedMappingResourceName() { + return feedMappingResourceNameBuilder_ != null || feedMappingResourceName_ != null; + } + /** + *
+     * The FeedMapping that contains the placeholder type.
+     * 
+ * + * .google.protobuf.StringValue feed_mapping_resource_name = 2; + */ + public com.google.protobuf.StringValue getFeedMappingResourceName() { + if (feedMappingResourceNameBuilder_ == null) { + return feedMappingResourceName_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : feedMappingResourceName_; + } else { + return feedMappingResourceNameBuilder_.getMessage(); + } + } + /** + *
+     * The FeedMapping that contains the placeholder type.
+     * 
+ * + * .google.protobuf.StringValue feed_mapping_resource_name = 2; + */ + public Builder setFeedMappingResourceName(com.google.protobuf.StringValue value) { + if (feedMappingResourceNameBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + feedMappingResourceName_ = value; + onChanged(); + } else { + feedMappingResourceNameBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The FeedMapping that contains the placeholder type.
+     * 
+ * + * .google.protobuf.StringValue feed_mapping_resource_name = 2; + */ + public Builder setFeedMappingResourceName( + com.google.protobuf.StringValue.Builder builderForValue) { + if (feedMappingResourceNameBuilder_ == null) { + feedMappingResourceName_ = builderForValue.build(); + onChanged(); + } else { + feedMappingResourceNameBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The FeedMapping that contains the placeholder type.
+     * 
+ * + * .google.protobuf.StringValue feed_mapping_resource_name = 2; + */ + public Builder mergeFeedMappingResourceName(com.google.protobuf.StringValue value) { + if (feedMappingResourceNameBuilder_ == null) { + if (feedMappingResourceName_ != null) { + feedMappingResourceName_ = + com.google.protobuf.StringValue.newBuilder(feedMappingResourceName_).mergeFrom(value).buildPartial(); + } else { + feedMappingResourceName_ = value; + } + onChanged(); + } else { + feedMappingResourceNameBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The FeedMapping that contains the placeholder type.
+     * 
+ * + * .google.protobuf.StringValue feed_mapping_resource_name = 2; + */ + public Builder clearFeedMappingResourceName() { + if (feedMappingResourceNameBuilder_ == null) { + feedMappingResourceName_ = null; + onChanged(); + } else { + feedMappingResourceName_ = null; + feedMappingResourceNameBuilder_ = null; + } + + return this; + } + /** + *
+     * The FeedMapping that contains the placeholder type.
+     * 
+ * + * .google.protobuf.StringValue feed_mapping_resource_name = 2; + */ + public com.google.protobuf.StringValue.Builder getFeedMappingResourceNameBuilder() { + + onChanged(); + return getFeedMappingResourceNameFieldBuilder().getBuilder(); + } + /** + *
+     * The FeedMapping that contains the placeholder type.
+     * 
+ * + * .google.protobuf.StringValue feed_mapping_resource_name = 2; + */ + public com.google.protobuf.StringValueOrBuilder getFeedMappingResourceNameOrBuilder() { + if (feedMappingResourceNameBuilder_ != null) { + return feedMappingResourceNameBuilder_.getMessageOrBuilder(); + } else { + return feedMappingResourceName_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : feedMappingResourceName_; + } + } + /** + *
+     * The FeedMapping that contains the placeholder type.
+     * 
+ * + * .google.protobuf.StringValue feed_mapping_resource_name = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getFeedMappingResourceNameFieldBuilder() { + if (feedMappingResourceNameBuilder_ == null) { + feedMappingResourceNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getFeedMappingResourceName(), + getParentForChildren(), + isClean()); + feedMappingResourceName_ = null; + } + return feedMappingResourceNameBuilder_; + } + + private int reviewStatus_ = 0; + /** + *
+     * Where the placeholder type is in the review process.
+     * 
+ * + * .google.ads.googleads.v0.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 3; + */ + public int getReviewStatusValue() { + return reviewStatus_; + } + /** + *
+     * Where the placeholder type is in the review process.
+     * 
+ * + * .google.ads.googleads.v0.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 3; + */ + public Builder setReviewStatusValue(int value) { + reviewStatus_ = value; + onChanged(); + return this; + } + /** + *
+     * Where the placeholder type is in the review process.
+     * 
+ * + * .google.ads.googleads.v0.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 3; + */ + public com.google.ads.googleads.v0.enums.PolicyReviewStatusEnum.PolicyReviewStatus getReviewStatus() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.PolicyReviewStatusEnum.PolicyReviewStatus result = com.google.ads.googleads.v0.enums.PolicyReviewStatusEnum.PolicyReviewStatus.valueOf(reviewStatus_); + return result == null ? com.google.ads.googleads.v0.enums.PolicyReviewStatusEnum.PolicyReviewStatus.UNRECOGNIZED : result; + } + /** + *
+     * Where the placeholder type is in the review process.
+     * 
+ * + * .google.ads.googleads.v0.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 3; + */ + public Builder setReviewStatus(com.google.ads.googleads.v0.enums.PolicyReviewStatusEnum.PolicyReviewStatus value) { + if (value == null) { + throw new NullPointerException(); + } + + reviewStatus_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Where the placeholder type is in the review process.
+     * 
+ * + * .google.ads.googleads.v0.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 3; + */ + public Builder clearReviewStatus() { + + reviewStatus_ = 0; + onChanged(); + return this; + } + + private int approvalStatus_ = 0; + /** + *
+     * The overall approval status of the placeholder type, calculated based on
+     * the status of its individual policy topic entries.
+     * 
+ * + * .google.ads.googleads.v0.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 4; + */ + public int getApprovalStatusValue() { + return approvalStatus_; + } + /** + *
+     * The overall approval status of the placeholder type, calculated based on
+     * the status of its individual policy topic entries.
+     * 
+ * + * .google.ads.googleads.v0.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 4; + */ + public Builder setApprovalStatusValue(int value) { + approvalStatus_ = value; + onChanged(); + return this; + } + /** + *
+     * The overall approval status of the placeholder type, calculated based on
+     * the status of its individual policy topic entries.
+     * 
+ * + * .google.ads.googleads.v0.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 4; + */ + public com.google.ads.googleads.v0.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus getApprovalStatus() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus result = com.google.ads.googleads.v0.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus.valueOf(approvalStatus_); + return result == null ? com.google.ads.googleads.v0.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus.UNRECOGNIZED : result; + } + /** + *
+     * The overall approval status of the placeholder type, calculated based on
+     * the status of its individual policy topic entries.
+     * 
+ * + * .google.ads.googleads.v0.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 4; + */ + public Builder setApprovalStatus(com.google.ads.googleads.v0.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus value) { + if (value == null) { + throw new NullPointerException(); + } + + approvalStatus_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The overall approval status of the placeholder type, calculated based on
+     * the status of its individual policy topic entries.
+     * 
+ * + * .google.ads.googleads.v0.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 4; + */ + public Builder clearApprovalStatus() { + + approvalStatus_ = 0; + onChanged(); + return this; + } + + private java.util.List policyTopicEntries_ = + java.util.Collections.emptyList(); + private void ensurePolicyTopicEntriesIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + policyTopicEntries_ = new java.util.ArrayList(policyTopicEntries_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.common.PolicyTopicEntry, com.google.ads.googleads.v0.common.PolicyTopicEntry.Builder, com.google.ads.googleads.v0.common.PolicyTopicEntryOrBuilder> policyTopicEntriesBuilder_; + + /** + *
+     * The list of policy findings for the placeholder type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.PolicyTopicEntry policy_topic_entries = 5; + */ + public java.util.List getPolicyTopicEntriesList() { + if (policyTopicEntriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(policyTopicEntries_); + } else { + return policyTopicEntriesBuilder_.getMessageList(); + } + } + /** + *
+     * The list of policy findings for the placeholder type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.PolicyTopicEntry policy_topic_entries = 5; + */ + public int getPolicyTopicEntriesCount() { + if (policyTopicEntriesBuilder_ == null) { + return policyTopicEntries_.size(); + } else { + return policyTopicEntriesBuilder_.getCount(); + } + } + /** + *
+     * The list of policy findings for the placeholder type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.PolicyTopicEntry policy_topic_entries = 5; + */ + public com.google.ads.googleads.v0.common.PolicyTopicEntry getPolicyTopicEntries(int index) { + if (policyTopicEntriesBuilder_ == null) { + return policyTopicEntries_.get(index); + } else { + return policyTopicEntriesBuilder_.getMessage(index); + } + } + /** + *
+     * The list of policy findings for the placeholder type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.PolicyTopicEntry policy_topic_entries = 5; + */ + public Builder setPolicyTopicEntries( + int index, com.google.ads.googleads.v0.common.PolicyTopicEntry value) { + if (policyTopicEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolicyTopicEntriesIsMutable(); + policyTopicEntries_.set(index, value); + onChanged(); + } else { + policyTopicEntriesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The list of policy findings for the placeholder type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.PolicyTopicEntry policy_topic_entries = 5; + */ + public Builder setPolicyTopicEntries( + int index, com.google.ads.googleads.v0.common.PolicyTopicEntry.Builder builderForValue) { + if (policyTopicEntriesBuilder_ == null) { + ensurePolicyTopicEntriesIsMutable(); + policyTopicEntries_.set(index, builderForValue.build()); + onChanged(); + } else { + policyTopicEntriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The list of policy findings for the placeholder type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.PolicyTopicEntry policy_topic_entries = 5; + */ + public Builder addPolicyTopicEntries(com.google.ads.googleads.v0.common.PolicyTopicEntry value) { + if (policyTopicEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolicyTopicEntriesIsMutable(); + policyTopicEntries_.add(value); + onChanged(); + } else { + policyTopicEntriesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The list of policy findings for the placeholder type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.PolicyTopicEntry policy_topic_entries = 5; + */ + public Builder addPolicyTopicEntries( + int index, com.google.ads.googleads.v0.common.PolicyTopicEntry value) { + if (policyTopicEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolicyTopicEntriesIsMutable(); + policyTopicEntries_.add(index, value); + onChanged(); + } else { + policyTopicEntriesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The list of policy findings for the placeholder type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.PolicyTopicEntry policy_topic_entries = 5; + */ + public Builder addPolicyTopicEntries( + com.google.ads.googleads.v0.common.PolicyTopicEntry.Builder builderForValue) { + if (policyTopicEntriesBuilder_ == null) { + ensurePolicyTopicEntriesIsMutable(); + policyTopicEntries_.add(builderForValue.build()); + onChanged(); + } else { + policyTopicEntriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The list of policy findings for the placeholder type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.PolicyTopicEntry policy_topic_entries = 5; + */ + public Builder addPolicyTopicEntries( + int index, com.google.ads.googleads.v0.common.PolicyTopicEntry.Builder builderForValue) { + if (policyTopicEntriesBuilder_ == null) { + ensurePolicyTopicEntriesIsMutable(); + policyTopicEntries_.add(index, builderForValue.build()); + onChanged(); + } else { + policyTopicEntriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The list of policy findings for the placeholder type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.PolicyTopicEntry policy_topic_entries = 5; + */ + public Builder addAllPolicyTopicEntries( + java.lang.Iterable values) { + if (policyTopicEntriesBuilder_ == null) { + ensurePolicyTopicEntriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, policyTopicEntries_); + onChanged(); + } else { + policyTopicEntriesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The list of policy findings for the placeholder type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.PolicyTopicEntry policy_topic_entries = 5; + */ + public Builder clearPolicyTopicEntries() { + if (policyTopicEntriesBuilder_ == null) { + policyTopicEntries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + policyTopicEntriesBuilder_.clear(); + } + return this; + } + /** + *
+     * The list of policy findings for the placeholder type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.PolicyTopicEntry policy_topic_entries = 5; + */ + public Builder removePolicyTopicEntries(int index) { + if (policyTopicEntriesBuilder_ == null) { + ensurePolicyTopicEntriesIsMutable(); + policyTopicEntries_.remove(index); + onChanged(); + } else { + policyTopicEntriesBuilder_.remove(index); + } + return this; + } + /** + *
+     * The list of policy findings for the placeholder type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.PolicyTopicEntry policy_topic_entries = 5; + */ + public com.google.ads.googleads.v0.common.PolicyTopicEntry.Builder getPolicyTopicEntriesBuilder( + int index) { + return getPolicyTopicEntriesFieldBuilder().getBuilder(index); + } + /** + *
+     * The list of policy findings for the placeholder type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.PolicyTopicEntry policy_topic_entries = 5; + */ + public com.google.ads.googleads.v0.common.PolicyTopicEntryOrBuilder getPolicyTopicEntriesOrBuilder( + int index) { + if (policyTopicEntriesBuilder_ == null) { + return policyTopicEntries_.get(index); } else { + return policyTopicEntriesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The list of policy findings for the placeholder type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.PolicyTopicEntry policy_topic_entries = 5; + */ + public java.util.List + getPolicyTopicEntriesOrBuilderList() { + if (policyTopicEntriesBuilder_ != null) { + return policyTopicEntriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(policyTopicEntries_); + } + } + /** + *
+     * The list of policy findings for the placeholder type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.PolicyTopicEntry policy_topic_entries = 5; + */ + public com.google.ads.googleads.v0.common.PolicyTopicEntry.Builder addPolicyTopicEntriesBuilder() { + return getPolicyTopicEntriesFieldBuilder().addBuilder( + com.google.ads.googleads.v0.common.PolicyTopicEntry.getDefaultInstance()); + } + /** + *
+     * The list of policy findings for the placeholder type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.PolicyTopicEntry policy_topic_entries = 5; + */ + public com.google.ads.googleads.v0.common.PolicyTopicEntry.Builder addPolicyTopicEntriesBuilder( + int index) { + return getPolicyTopicEntriesFieldBuilder().addBuilder( + index, com.google.ads.googleads.v0.common.PolicyTopicEntry.getDefaultInstance()); + } + /** + *
+     * The list of policy findings for the placeholder type.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.PolicyTopicEntry policy_topic_entries = 5; + */ + public java.util.List + getPolicyTopicEntriesBuilderList() { + return getPolicyTopicEntriesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.common.PolicyTopicEntry, com.google.ads.googleads.v0.common.PolicyTopicEntry.Builder, com.google.ads.googleads.v0.common.PolicyTopicEntryOrBuilder> + getPolicyTopicEntriesFieldBuilder() { + if (policyTopicEntriesBuilder_ == null) { + policyTopicEntriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.common.PolicyTopicEntry, com.google.ads.googleads.v0.common.PolicyTopicEntry.Builder, com.google.ads.googleads.v0.common.PolicyTopicEntryOrBuilder>( + policyTopicEntries_, + ((bitField0_ & 0x00000010) == 0x00000010), + getParentForChildren(), + isClean()); + policyTopicEntries_ = null; + } + return policyTopicEntriesBuilder_; + } + + private int validationStatus_ = 0; + /** + *
+     * The validation status of the palceholder type.
+     * 
+ * + * .google.ads.googleads.v0.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus validation_status = 6; + */ + public int getValidationStatusValue() { + return validationStatus_; + } + /** + *
+     * The validation status of the palceholder type.
+     * 
+ * + * .google.ads.googleads.v0.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus validation_status = 6; + */ + public Builder setValidationStatusValue(int value) { + validationStatus_ = value; + onChanged(); + return this; + } + /** + *
+     * The validation status of the palceholder type.
+     * 
+ * + * .google.ads.googleads.v0.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus validation_status = 6; + */ + public com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus getValidationStatus() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus result = com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus.valueOf(validationStatus_); + return result == null ? com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus.UNRECOGNIZED : result; + } + /** + *
+     * The validation status of the palceholder type.
+     * 
+ * + * .google.ads.googleads.v0.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus validation_status = 6; + */ + public Builder setValidationStatus(com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus value) { + if (value == null) { + throw new NullPointerException(); + } + + validationStatus_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The validation status of the palceholder type.
+     * 
+ * + * .google.ads.googleads.v0.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus validation_status = 6; + */ + public Builder clearValidationStatus() { + + validationStatus_ = 0; + onChanged(); + return this; + } + + private java.util.List validationErrors_ = + java.util.Collections.emptyList(); + private void ensureValidationErrorsIsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + validationErrors_ = new java.util.ArrayList(validationErrors_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.resources.FeedItemValidationError, com.google.ads.googleads.v0.resources.FeedItemValidationError.Builder, com.google.ads.googleads.v0.resources.FeedItemValidationErrorOrBuilder> validationErrorsBuilder_; + + /** + *
+     * List of placeholder type validation errors.
+     * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemValidationError validation_errors = 7; + */ + public java.util.List getValidationErrorsList() { + if (validationErrorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(validationErrors_); + } else { + return validationErrorsBuilder_.getMessageList(); + } + } + /** + *
+     * List of placeholder type validation errors.
+     * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemValidationError validation_errors = 7; + */ + public int getValidationErrorsCount() { + if (validationErrorsBuilder_ == null) { + return validationErrors_.size(); + } else { + return validationErrorsBuilder_.getCount(); + } + } + /** + *
+     * List of placeholder type validation errors.
+     * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemValidationError validation_errors = 7; + */ + public com.google.ads.googleads.v0.resources.FeedItemValidationError getValidationErrors(int index) { + if (validationErrorsBuilder_ == null) { + return validationErrors_.get(index); + } else { + return validationErrorsBuilder_.getMessage(index); + } + } + /** + *
+     * List of placeholder type validation errors.
+     * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemValidationError validation_errors = 7; + */ + public Builder setValidationErrors( + int index, com.google.ads.googleads.v0.resources.FeedItemValidationError value) { + if (validationErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidationErrorsIsMutable(); + validationErrors_.set(index, value); + onChanged(); + } else { + validationErrorsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * List of placeholder type validation errors.
+     * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemValidationError validation_errors = 7; + */ + public Builder setValidationErrors( + int index, com.google.ads.googleads.v0.resources.FeedItemValidationError.Builder builderForValue) { + if (validationErrorsBuilder_ == null) { + ensureValidationErrorsIsMutable(); + validationErrors_.set(index, builderForValue.build()); + onChanged(); + } else { + validationErrorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of placeholder type validation errors.
+     * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemValidationError validation_errors = 7; + */ + public Builder addValidationErrors(com.google.ads.googleads.v0.resources.FeedItemValidationError value) { + if (validationErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidationErrorsIsMutable(); + validationErrors_.add(value); + onChanged(); + } else { + validationErrorsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * List of placeholder type validation errors.
+     * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemValidationError validation_errors = 7; + */ + public Builder addValidationErrors( + int index, com.google.ads.googleads.v0.resources.FeedItemValidationError value) { + if (validationErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidationErrorsIsMutable(); + validationErrors_.add(index, value); + onChanged(); + } else { + validationErrorsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * List of placeholder type validation errors.
+     * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemValidationError validation_errors = 7; + */ + public Builder addValidationErrors( + com.google.ads.googleads.v0.resources.FeedItemValidationError.Builder builderForValue) { + if (validationErrorsBuilder_ == null) { + ensureValidationErrorsIsMutable(); + validationErrors_.add(builderForValue.build()); + onChanged(); + } else { + validationErrorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * List of placeholder type validation errors.
+     * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemValidationError validation_errors = 7; + */ + public Builder addValidationErrors( + int index, com.google.ads.googleads.v0.resources.FeedItemValidationError.Builder builderForValue) { + if (validationErrorsBuilder_ == null) { + ensureValidationErrorsIsMutable(); + validationErrors_.add(index, builderForValue.build()); + onChanged(); + } else { + validationErrorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of placeholder type validation errors.
+     * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemValidationError validation_errors = 7; + */ + public Builder addAllValidationErrors( + java.lang.Iterable values) { + if (validationErrorsBuilder_ == null) { + ensureValidationErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, validationErrors_); + onChanged(); + } else { + validationErrorsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * List of placeholder type validation errors.
+     * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemValidationError validation_errors = 7; + */ + public Builder clearValidationErrors() { + if (validationErrorsBuilder_ == null) { + validationErrors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + validationErrorsBuilder_.clear(); + } + return this; + } + /** + *
+     * List of placeholder type validation errors.
+     * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemValidationError validation_errors = 7; + */ + public Builder removeValidationErrors(int index) { + if (validationErrorsBuilder_ == null) { + ensureValidationErrorsIsMutable(); + validationErrors_.remove(index); + onChanged(); + } else { + validationErrorsBuilder_.remove(index); + } + return this; + } + /** + *
+     * List of placeholder type validation errors.
+     * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemValidationError validation_errors = 7; + */ + public com.google.ads.googleads.v0.resources.FeedItemValidationError.Builder getValidationErrorsBuilder( + int index) { + return getValidationErrorsFieldBuilder().getBuilder(index); + } + /** + *
+     * List of placeholder type validation errors.
+     * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemValidationError validation_errors = 7; + */ + public com.google.ads.googleads.v0.resources.FeedItemValidationErrorOrBuilder getValidationErrorsOrBuilder( + int index) { + if (validationErrorsBuilder_ == null) { + return validationErrors_.get(index); } else { + return validationErrorsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * List of placeholder type validation errors.
+     * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemValidationError validation_errors = 7; + */ + public java.util.List + getValidationErrorsOrBuilderList() { + if (validationErrorsBuilder_ != null) { + return validationErrorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(validationErrors_); + } + } + /** + *
+     * List of placeholder type validation errors.
+     * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemValidationError validation_errors = 7; + */ + public com.google.ads.googleads.v0.resources.FeedItemValidationError.Builder addValidationErrorsBuilder() { + return getValidationErrorsFieldBuilder().addBuilder( + com.google.ads.googleads.v0.resources.FeedItemValidationError.getDefaultInstance()); + } + /** + *
+     * List of placeholder type validation errors.
+     * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemValidationError validation_errors = 7; + */ + public com.google.ads.googleads.v0.resources.FeedItemValidationError.Builder addValidationErrorsBuilder( + int index) { + return getValidationErrorsFieldBuilder().addBuilder( + index, com.google.ads.googleads.v0.resources.FeedItemValidationError.getDefaultInstance()); + } + /** + *
+     * List of placeholder type validation errors.
+     * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemValidationError validation_errors = 7; + */ + public java.util.List + getValidationErrorsBuilderList() { + return getValidationErrorsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.resources.FeedItemValidationError, com.google.ads.googleads.v0.resources.FeedItemValidationError.Builder, com.google.ads.googleads.v0.resources.FeedItemValidationErrorOrBuilder> + getValidationErrorsFieldBuilder() { + if (validationErrorsBuilder_ == null) { + validationErrorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.resources.FeedItemValidationError, com.google.ads.googleads.v0.resources.FeedItemValidationError.Builder, com.google.ads.googleads.v0.resources.FeedItemValidationErrorOrBuilder>( + validationErrors_, + ((bitField0_ & 0x00000040) == 0x00000040), + getParentForChildren(), + isClean()); + validationErrors_ = null; + } + return validationErrorsBuilder_; + } + + private int qualityApprovalStatus_ = 0; + /** + *
+     * Placeholder type quality evaluation approval status.
+     * 
+ * + * .google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus quality_approval_status = 8; + */ + public int getQualityApprovalStatusValue() { + return qualityApprovalStatus_; + } + /** + *
+     * Placeholder type quality evaluation approval status.
+     * 
+ * + * .google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus quality_approval_status = 8; + */ + public Builder setQualityApprovalStatusValue(int value) { + qualityApprovalStatus_ = value; + onChanged(); + return this; + } + /** + *
+     * Placeholder type quality evaluation approval status.
+     * 
+ * + * .google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus quality_approval_status = 8; + */ + public com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus getQualityApprovalStatus() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus result = com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus.valueOf(qualityApprovalStatus_); + return result == null ? com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus.UNRECOGNIZED : result; + } + /** + *
+     * Placeholder type quality evaluation approval status.
+     * 
+ * + * .google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus quality_approval_status = 8; + */ + public Builder setQualityApprovalStatus(com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus value) { + if (value == null) { + throw new NullPointerException(); + } + + qualityApprovalStatus_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Placeholder type quality evaluation approval status.
+     * 
+ * + * .google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus quality_approval_status = 8; + */ + public Builder clearQualityApprovalStatus() { + + qualityApprovalStatus_ = 0; + onChanged(); + return this; + } + + private java.util.List qualityDisapprovalReasons_ = + java.util.Collections.emptyList(); + private void ensureQualityDisapprovalReasonsIsMutable() { + if (!((bitField0_ & 0x00000100) == 0x00000100)) { + qualityDisapprovalReasons_ = new java.util.ArrayList(qualityDisapprovalReasons_); + bitField0_ |= 0x00000100; + } + } + /** + *
+     * List of placeholder type quality evaluation disapproval reasons.
+     * 
+ * + * repeated .google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9; + */ + public java.util.List getQualityDisapprovalReasonsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason>(qualityDisapprovalReasons_, qualityDisapprovalReasons_converter_); + } + /** + *
+     * List of placeholder type quality evaluation disapproval reasons.
+     * 
+ * + * repeated .google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9; + */ + public int getQualityDisapprovalReasonsCount() { + return qualityDisapprovalReasons_.size(); + } + /** + *
+     * List of placeholder type quality evaluation disapproval reasons.
+     * 
+ * + * repeated .google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9; + */ + public com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason getQualityDisapprovalReasons(int index) { + return qualityDisapprovalReasons_converter_.convert(qualityDisapprovalReasons_.get(index)); + } + /** + *
+     * List of placeholder type quality evaluation disapproval reasons.
+     * 
+ * + * repeated .google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9; + */ + public Builder setQualityDisapprovalReasons( + int index, com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason value) { + if (value == null) { + throw new NullPointerException(); + } + ensureQualityDisapprovalReasonsIsMutable(); + qualityDisapprovalReasons_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + *
+     * List of placeholder type quality evaluation disapproval reasons.
+     * 
+ * + * repeated .google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9; + */ + public Builder addQualityDisapprovalReasons(com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason value) { + if (value == null) { + throw new NullPointerException(); + } + ensureQualityDisapprovalReasonsIsMutable(); + qualityDisapprovalReasons_.add(value.getNumber()); + onChanged(); + return this; + } + /** + *
+     * List of placeholder type quality evaluation disapproval reasons.
+     * 
+ * + * repeated .google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9; + */ + public Builder addAllQualityDisapprovalReasons( + java.lang.Iterable values) { + ensureQualityDisapprovalReasonsIsMutable(); + for (com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason value : values) { + qualityDisapprovalReasons_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + *
+     * List of placeholder type quality evaluation disapproval reasons.
+     * 
+ * + * repeated .google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9; + */ + public Builder clearQualityDisapprovalReasons() { + qualityDisapprovalReasons_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + *
+     * List of placeholder type quality evaluation disapproval reasons.
+     * 
+ * + * repeated .google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9; + */ + public java.util.List + getQualityDisapprovalReasonsValueList() { + return java.util.Collections.unmodifiableList(qualityDisapprovalReasons_); + } + /** + *
+     * List of placeholder type quality evaluation disapproval reasons.
+     * 
+ * + * repeated .google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9; + */ + public int getQualityDisapprovalReasonsValue(int index) { + return qualityDisapprovalReasons_.get(index); + } + /** + *
+     * List of placeholder type quality evaluation disapproval reasons.
+     * 
+ * + * repeated .google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9; + */ + public Builder setQualityDisapprovalReasonsValue( + int index, int value) { + ensureQualityDisapprovalReasonsIsMutable(); + qualityDisapprovalReasons_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * List of placeholder type quality evaluation disapproval reasons.
+     * 
+ * + * repeated .google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9; + */ + public Builder addQualityDisapprovalReasonsValue(int value) { + ensureQualityDisapprovalReasonsIsMutable(); + qualityDisapprovalReasons_.add(value); + onChanged(); + return this; + } + /** + *
+     * List of placeholder type quality evaluation disapproval reasons.
+     * 
+ * + * repeated .google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9; + */ + public Builder addAllQualityDisapprovalReasonsValue( + java.lang.Iterable values) { + ensureQualityDisapprovalReasonsIsMutable(); + for (int value : values) { + qualityDisapprovalReasons_.add(value); + } + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo) + private static final com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo(); + } + + public static com.google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeedItemPlaceholderPolicyInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeedItemPlaceholderPolicyInfo(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/FeedItemPlaceholderPolicyInfoOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/FeedItemPlaceholderPolicyInfoOrBuilder.java new file mode 100644 index 0000000000..3636b4481d --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/FeedItemPlaceholderPolicyInfoOrBuilder.java @@ -0,0 +1,259 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/resources/feed_item.proto + +package com.google.ads.googleads.v0.resources; + +public interface FeedItemPlaceholderPolicyInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.resources.FeedItemPlaceholderPolicyInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The placeholder type.
+   * 
+ * + * .google.protobuf.Int32Value placeholder_type = 1; + */ + boolean hasPlaceholderType(); + /** + *
+   * The placeholder type.
+   * 
+ * + * .google.protobuf.Int32Value placeholder_type = 1; + */ + com.google.protobuf.Int32Value getPlaceholderType(); + /** + *
+   * The placeholder type.
+   * 
+ * + * .google.protobuf.Int32Value placeholder_type = 1; + */ + com.google.protobuf.Int32ValueOrBuilder getPlaceholderTypeOrBuilder(); + + /** + *
+   * The FeedMapping that contains the placeholder type.
+   * 
+ * + * .google.protobuf.StringValue feed_mapping_resource_name = 2; + */ + boolean hasFeedMappingResourceName(); + /** + *
+   * The FeedMapping that contains the placeholder type.
+   * 
+ * + * .google.protobuf.StringValue feed_mapping_resource_name = 2; + */ + com.google.protobuf.StringValue getFeedMappingResourceName(); + /** + *
+   * The FeedMapping that contains the placeholder type.
+   * 
+ * + * .google.protobuf.StringValue feed_mapping_resource_name = 2; + */ + com.google.protobuf.StringValueOrBuilder getFeedMappingResourceNameOrBuilder(); + + /** + *
+   * Where the placeholder type is in the review process.
+   * 
+ * + * .google.ads.googleads.v0.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 3; + */ + int getReviewStatusValue(); + /** + *
+   * Where the placeholder type is in the review process.
+   * 
+ * + * .google.ads.googleads.v0.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 3; + */ + com.google.ads.googleads.v0.enums.PolicyReviewStatusEnum.PolicyReviewStatus getReviewStatus(); + + /** + *
+   * The overall approval status of the placeholder type, calculated based on
+   * the status of its individual policy topic entries.
+   * 
+ * + * .google.ads.googleads.v0.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 4; + */ + int getApprovalStatusValue(); + /** + *
+   * The overall approval status of the placeholder type, calculated based on
+   * the status of its individual policy topic entries.
+   * 
+ * + * .google.ads.googleads.v0.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 4; + */ + com.google.ads.googleads.v0.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus getApprovalStatus(); + + /** + *
+   * The list of policy findings for the placeholder type.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.PolicyTopicEntry policy_topic_entries = 5; + */ + java.util.List + getPolicyTopicEntriesList(); + /** + *
+   * The list of policy findings for the placeholder type.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.PolicyTopicEntry policy_topic_entries = 5; + */ + com.google.ads.googleads.v0.common.PolicyTopicEntry getPolicyTopicEntries(int index); + /** + *
+   * The list of policy findings for the placeholder type.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.PolicyTopicEntry policy_topic_entries = 5; + */ + int getPolicyTopicEntriesCount(); + /** + *
+   * The list of policy findings for the placeholder type.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.PolicyTopicEntry policy_topic_entries = 5; + */ + java.util.List + getPolicyTopicEntriesOrBuilderList(); + /** + *
+   * The list of policy findings for the placeholder type.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.PolicyTopicEntry policy_topic_entries = 5; + */ + com.google.ads.googleads.v0.common.PolicyTopicEntryOrBuilder getPolicyTopicEntriesOrBuilder( + int index); + + /** + *
+   * The validation status of the palceholder type.
+   * 
+ * + * .google.ads.googleads.v0.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus validation_status = 6; + */ + int getValidationStatusValue(); + /** + *
+   * The validation status of the palceholder type.
+   * 
+ * + * .google.ads.googleads.v0.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus validation_status = 6; + */ + com.google.ads.googleads.v0.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus getValidationStatus(); + + /** + *
+   * List of placeholder type validation errors.
+   * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemValidationError validation_errors = 7; + */ + java.util.List + getValidationErrorsList(); + /** + *
+   * List of placeholder type validation errors.
+   * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemValidationError validation_errors = 7; + */ + com.google.ads.googleads.v0.resources.FeedItemValidationError getValidationErrors(int index); + /** + *
+   * List of placeholder type validation errors.
+   * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemValidationError validation_errors = 7; + */ + int getValidationErrorsCount(); + /** + *
+   * List of placeholder type validation errors.
+   * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemValidationError validation_errors = 7; + */ + java.util.List + getValidationErrorsOrBuilderList(); + /** + *
+   * List of placeholder type validation errors.
+   * 
+ * + * repeated .google.ads.googleads.v0.resources.FeedItemValidationError validation_errors = 7; + */ + com.google.ads.googleads.v0.resources.FeedItemValidationErrorOrBuilder getValidationErrorsOrBuilder( + int index); + + /** + *
+   * Placeholder type quality evaluation approval status.
+   * 
+ * + * .google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus quality_approval_status = 8; + */ + int getQualityApprovalStatusValue(); + /** + *
+   * Placeholder type quality evaluation approval status.
+   * 
+ * + * .google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus quality_approval_status = 8; + */ + com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus getQualityApprovalStatus(); + + /** + *
+   * List of placeholder type quality evaluation disapproval reasons.
+   * 
+ * + * repeated .google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9; + */ + java.util.List getQualityDisapprovalReasonsList(); + /** + *
+   * List of placeholder type quality evaluation disapproval reasons.
+   * 
+ * + * repeated .google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9; + */ + int getQualityDisapprovalReasonsCount(); + /** + *
+   * List of placeholder type quality evaluation disapproval reasons.
+   * 
+ * + * repeated .google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9; + */ + com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason getQualityDisapprovalReasons(int index); + /** + *
+   * List of placeholder type quality evaluation disapproval reasons.
+   * 
+ * + * repeated .google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9; + */ + java.util.List + getQualityDisapprovalReasonsValueList(); + /** + *
+   * List of placeholder type quality evaluation disapproval reasons.
+   * 
+ * + * repeated .google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9; + */ + int getQualityDisapprovalReasonsValue(int index); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/FeedItemProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/FeedItemProto.java index 2c9099efe6..ed4e378eb2 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/FeedItemProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/FeedItemProto.java @@ -24,6 +24,16 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_googleads_v0_resources_FeedItemAttributeValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_resources_FeedItemPlaceholderPolicyInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_resources_FeedItemPlaceholderPolicyInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_resources_FeedItemValidationError_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_resources_FeedItemValidationError_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -37,45 +47,90 @@ public static void registerAllExtensions( "_item.proto\022!google.ads.googleads.v0.res" + "ources\0325google/ads/googleads/v0/common/c" + "ustom_parameter.proto\0320google/ads/google" + - "ads/v0/common/feed_common.proto\0324google/" + - "ads/googleads/v0/enums/feed_item_status." + - "proto\032=google/ads/googleads/v0/enums/geo" + - "_targeting_restriction.proto\032\036google/pro" + - "tobuf/wrappers.proto\"\320\004\n\010FeedItem\022\025\n\rres" + - "ource_name\030\001 \001(\t\022*\n\004feed\030\002 \001(\0132\034.google." + - "protobuf.StringValue\022\'\n\002id\030\003 \001(\0132\033.googl" + - "e.protobuf.Int64Value\0225\n\017start_date_time" + - "\030\004 \001(\0132\034.google.protobuf.StringValue\0223\n\r" + - "end_date_time\030\005 \001(\0132\034.google.protobuf.St" + - "ringValue\022S\n\020attribute_values\030\006 \003(\01329.go" + + "ads/v0/common/feed_common.proto\032+google/" + + "ads/googleads/v0/common/policy.proto\032Ego" + + "ogle/ads/googleads/v0/enums/feed_item_qu" + + "ality_approval_status.proto\032Hgoogle/ads/" + + "googleads/v0/enums/feed_item_quality_dis" + + "approval_reason.proto\0324google/ads/google" + + "ads/v0/enums/feed_item_status.proto\032?goo" + + "gle/ads/googleads/v0/enums/feed_item_val" + + "idation_status.proto\032=google/ads/googlea" + + "ds/v0/enums/geo_targeting_restriction.pr" + + "oto\032:google/ads/googleads/v0/enums/polic" + + "y_approval_status.proto\0328google/ads/goog" + + "leads/v0/enums/policy_review_status.prot" + + "o\032?google/ads/googleads/v0/errors/feed_i" + + "tem_validation_error.proto\032\036google/proto" + + "buf/wrappers.proto\"\250\005\n\010FeedItem\022\025\n\rresou" + + "rce_name\030\001 \001(\t\022*\n\004feed\030\002 \001(\0132\034.google.pr" + + "otobuf.StringValue\022\'\n\002id\030\003 \001(\0132\033.google." + + "protobuf.Int64Value\0225\n\017start_date_time\030\004" + + " \001(\0132\034.google.protobuf.StringValue\0223\n\ren" + + "d_date_time\030\005 \001(\0132\034.google.protobuf.Stri" + + "ngValue\022S\n\020attribute_values\030\006 \003(\01329.goog" + + "le.ads.googleads.v0.resources.FeedItemAt" + + "tributeValue\022u\n\031geo_targeting_restrictio" + + "n\030\007 \001(\0162R.google.ads.googleads.v0.enums." + + "GeoTargetingRestrictionEnum.GeoTargeting" + + "Restriction\022N\n\025url_custom_parameters\030\010 \003" + + "(\0132/.google.ads.googleads.v0.common.Cust" + + "omParameter\022P\n\006status\030\t \001(\0162@.google.ads" + + ".googleads.v0.enums.FeedItemStatusEnum.F" + + "eedItemStatus\022V\n\014policy_infos\030\n \003(\0132@.go" + "ogle.ads.googleads.v0.resources.FeedItem" + - "AttributeValue\022u\n\031geo_targeting_restrict" + - "ion\030\007 \001(\0162R.google.ads.googleads.v0.enum" + - "s.GeoTargetingRestrictionEnum.GeoTargeti" + - "ngRestriction\022N\n\025url_custom_parameters\030\010" + - " \003(\0132/.google.ads.googleads.v0.common.Cu" + - "stomParameter\022P\n\006status\030\t \001(\0162@.google.a" + - "ds.googleads.v0.enums.FeedItemStatusEnum" + - ".FeedItemStatus\"\256\004\n\026FeedItemAttributeVal" + - "ue\0226\n\021feed_attribute_id\030\001 \001(\0132\033.google.p" + - "rotobuf.Int64Value\0222\n\rinteger_value\030\002 \001(" + - "\0132\033.google.protobuf.Int64Value\0221\n\rboolea" + - "n_value\030\003 \001(\0132\032.google.protobuf.BoolValu" + - "e\0222\n\014string_value\030\004 \001(\0132\034.google.protobu" + - "f.StringValue\0222\n\014double_value\030\005 \001(\0132\034.go" + - "ogle.protobuf.DoubleValue\022:\n\013price_value" + - "\030\006 \001(\0132%.google.ads.googleads.v0.common." + - "Price\0223\n\016integer_values\030\007 \003(\0132\033.google.p" + - "rotobuf.Int64Value\0222\n\016boolean_values\030\010 \003" + - "(\0132\032.google.protobuf.BoolValue\0223\n\rstring" + - "_values\030\t \003(\0132\034.google.protobuf.StringVa" + - "lue\0223\n\rdouble_values\030\n \003(\0132\034.google.prot" + - "obuf.DoubleValueB\322\001\n%com.google.ads.goog" + - "leads.v0.resourcesB\rFeedItemProtoP\001ZJgoo" + - "gle.golang.org/genproto/googleapis/ads/g" + - "oogleads/v0/resources;resources\242\002\003GAA\252\002!" + - "Google.Ads.GoogleAds.V0.Resources\312\002!Goog" + - "le\\Ads\\GoogleAds\\V0\\Resourcesb\006proto3" + "PlaceholderPolicyInfo\"\256\004\n\026FeedItemAttrib" + + "uteValue\0226\n\021feed_attribute_id\030\001 \001(\0132\033.go" + + "ogle.protobuf.Int64Value\0222\n\rinteger_valu" + + "e\030\002 \001(\0132\033.google.protobuf.Int64Value\0221\n\r" + + "boolean_value\030\003 \001(\0132\032.google.protobuf.Bo" + + "olValue\0222\n\014string_value\030\004 \001(\0132\034.google.p" + + "rotobuf.StringValue\0222\n\014double_value\030\005 \001(" + + "\0132\034.google.protobuf.DoubleValue\022:\n\013price" + + "_value\030\006 \001(\0132%.google.ads.googleads.v0.c" + + "ommon.Price\0223\n\016integer_values\030\007 \003(\0132\033.go" + + "ogle.protobuf.Int64Value\0222\n\016boolean_valu" + + "es\030\010 \003(\0132\032.google.protobuf.BoolValue\0223\n\r" + + "string_values\030\t \003(\0132\034.google.protobuf.St" + + "ringValue\0223\n\rdouble_values\030\n \003(\0132\034.googl" + + "e.protobuf.DoubleValue\"\205\007\n\035FeedItemPlace" + + "holderPolicyInfo\0225\n\020placeholder_type\030\001 \001" + + "(\0132\033.google.protobuf.Int32Value\022@\n\032feed_" + + "mapping_resource_name\030\002 \001(\0132\034.google.pro" + + "tobuf.StringValue\022_\n\rreview_status\030\003 \001(\016" + + "2H.google.ads.googleads.v0.enums.PolicyR" + + "eviewStatusEnum.PolicyReviewStatus\022e\n\017ap" + + "proval_status\030\004 \001(\0162L.google.ads.googlea" + + "ds.v0.enums.PolicyApprovalStatusEnum.Pol" + + "icyApprovalStatus\022N\n\024policy_topic_entrie" + + "s\030\005 \003(\01320.google.ads.googleads.v0.common" + + ".PolicyTopicEntry\022o\n\021validation_status\030\006" + + " \001(\0162T.google.ads.googleads.v0.enums.Fee" + + "dItemValidationStatusEnum.FeedItemValida" + + "tionStatus\022U\n\021validation_errors\030\007 \003(\0132:." + + "google.ads.googleads.v0.resources.FeedIt" + + "emValidationError\022\177\n\027quality_approval_st" + + "atus\030\010 \001(\0162^.google.ads.googleads.v0.enu" + + "ms.FeedItemQualityApprovalStatusEnum.Fee" + + "dItemQualityApprovalStatus\022\211\001\n\033quality_d" + + "isapproval_reasons\030\t \003(\0162d.google.ads.go" + + "ogleads.v0.enums.FeedItemQualityDisappro" + + "valReasonEnum.FeedItemQualityDisapproval" + + "Reason\"\255\002\n\027FeedItemValidationError\022m\n\020va" + + "lidation_error\030\001 \001(\0162S.google.ads.google" + + "ads.v0.errors.FeedItemValidationErrorEnu" + + "m.FeedItemValidationError\0221\n\013description" + + "\030\002 \001(\0132\034.google.protobuf.StringValue\0227\n\022" + + "feed_attribute_ids\030\003 \003(\0132\033.google.protob" + + "uf.Int64Value\0227\n\021extra_information\030\004 \001(\013" + + "2\034.google.protobuf.StringValueB\372\001\n%com.g" + + "oogle.ads.googleads.v0.resourcesB\rFeedIt" + + "emProtoP\001ZJgoogle.golang.org/genproto/go" + + "ogleapis/ads/googleads/v0/resources;reso" + + "urces\242\002\003GAA\252\002!Google.Ads.GoogleAds.V0.Re" + + "sources\312\002!Google\\Ads\\GoogleAds\\V0\\Resour" + + "ces\352\002%Google::Ads::GoogleAds::V0::Resour" + + "cesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -90,8 +145,15 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.ads.googleads.v0.common.CustomParameterProto.getDescriptor(), com.google.ads.googleads.v0.common.FeedCommonProto.getDescriptor(), + com.google.ads.googleads.v0.common.PolicyProto.getDescriptor(), + com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusProto.getDescriptor(), + com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonProto.getDescriptor(), com.google.ads.googleads.v0.enums.FeedItemStatusProto.getDescriptor(), + com.google.ads.googleads.v0.enums.FeedItemValidationStatusProto.getDescriptor(), com.google.ads.googleads.v0.enums.GeoTargetingRestrictionProto.getDescriptor(), + com.google.ads.googleads.v0.enums.PolicyApprovalStatusProto.getDescriptor(), + com.google.ads.googleads.v0.enums.PolicyReviewStatusProto.getDescriptor(), + com.google.ads.googleads.v0.errors.FeedItemValidationErrorProto.getDescriptor(), com.google.protobuf.WrappersProto.getDescriptor(), }, assigner); internal_static_google_ads_googleads_v0_resources_FeedItem_descriptor = @@ -99,17 +161,36 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_resources_FeedItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_resources_FeedItem_descriptor, - new java.lang.String[] { "ResourceName", "Feed", "Id", "StartDateTime", "EndDateTime", "AttributeValues", "GeoTargetingRestriction", "UrlCustomParameters", "Status", }); + new java.lang.String[] { "ResourceName", "Feed", "Id", "StartDateTime", "EndDateTime", "AttributeValues", "GeoTargetingRestriction", "UrlCustomParameters", "Status", "PolicyInfos", }); internal_static_google_ads_googleads_v0_resources_FeedItemAttributeValue_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_google_ads_googleads_v0_resources_FeedItemAttributeValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_resources_FeedItemAttributeValue_descriptor, new java.lang.String[] { "FeedAttributeId", "IntegerValue", "BooleanValue", "StringValue", "DoubleValue", "PriceValue", "IntegerValues", "BooleanValues", "StringValues", "DoubleValues", }); + internal_static_google_ads_googleads_v0_resources_FeedItemPlaceholderPolicyInfo_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_googleads_v0_resources_FeedItemPlaceholderPolicyInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_resources_FeedItemPlaceholderPolicyInfo_descriptor, + new java.lang.String[] { "PlaceholderType", "FeedMappingResourceName", "ReviewStatus", "ApprovalStatus", "PolicyTopicEntries", "ValidationStatus", "ValidationErrors", "QualityApprovalStatus", "QualityDisapprovalReasons", }); + internal_static_google_ads_googleads_v0_resources_FeedItemValidationError_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_ads_googleads_v0_resources_FeedItemValidationError_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_resources_FeedItemValidationError_descriptor, + new java.lang.String[] { "ValidationError", "Description", "FeedAttributeIds", "ExtraInformation", }); com.google.ads.googleads.v0.common.CustomParameterProto.getDescriptor(); com.google.ads.googleads.v0.common.FeedCommonProto.getDescriptor(); + com.google.ads.googleads.v0.common.PolicyProto.getDescriptor(); + com.google.ads.googleads.v0.enums.FeedItemQualityApprovalStatusProto.getDescriptor(); + com.google.ads.googleads.v0.enums.FeedItemQualityDisapprovalReasonProto.getDescriptor(); com.google.ads.googleads.v0.enums.FeedItemStatusProto.getDescriptor(); + com.google.ads.googleads.v0.enums.FeedItemValidationStatusProto.getDescriptor(); com.google.ads.googleads.v0.enums.GeoTargetingRestrictionProto.getDescriptor(); + com.google.ads.googleads.v0.enums.PolicyApprovalStatusProto.getDescriptor(); + com.google.ads.googleads.v0.enums.PolicyReviewStatusProto.getDescriptor(); + com.google.ads.googleads.v0.errors.FeedItemValidationErrorProto.getDescriptor(); com.google.protobuf.WrappersProto.getDescriptor(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/FeedItemValidationError.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/FeedItemValidationError.java new file mode 100644 index 0000000000..1977798bfd --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/FeedItemValidationError.java @@ -0,0 +1,1524 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/resources/feed_item.proto + +package com.google.ads.googleads.v0.resources; + +/** + *
+ * Stores a validation error and the set of offending feed attributes which
+ * together are responsible for causing a feed item validation error.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.resources.FeedItemValidationError} + */ +public final class FeedItemValidationError extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.resources.FeedItemValidationError) + FeedItemValidationErrorOrBuilder { +private static final long serialVersionUID = 0L; + // Use FeedItemValidationError.newBuilder() to construct. + private FeedItemValidationError(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FeedItemValidationError() { + validationError_ = 0; + feedAttributeIds_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FeedItemValidationError( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + validationError_ = rawValue; + break; + } + case 18: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (description_ != null) { + subBuilder = description_.toBuilder(); + } + description_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(description_); + description_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + feedAttributeIds_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + feedAttributeIds_.add( + input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry)); + break; + } + case 34: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (extraInformation_ != null) { + subBuilder = extraInformation_.toBuilder(); + } + extraInformation_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(extraInformation_); + extraInformation_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + feedAttributeIds_ = java.util.Collections.unmodifiableList(feedAttributeIds_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.resources.FeedItemProto.internal_static_google_ads_googleads_v0_resources_FeedItemValidationError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.resources.FeedItemProto.internal_static_google_ads_googleads_v0_resources_FeedItemValidationError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.resources.FeedItemValidationError.class, com.google.ads.googleads.v0.resources.FeedItemValidationError.Builder.class); + } + + private int bitField0_; + public static final int VALIDATION_ERROR_FIELD_NUMBER = 1; + private int validationError_; + /** + *
+   * Error code indicating what validation error was triggered. The description
+   * of the error can be found in the 'description' field.
+   * 
+ * + * .google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError validation_error = 1; + */ + public int getValidationErrorValue() { + return validationError_; + } + /** + *
+   * Error code indicating what validation error was triggered. The description
+   * of the error can be found in the 'description' field.
+   * 
+ * + * .google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError validation_error = 1; + */ + public com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError getValidationError() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError result = com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError.valueOf(validationError_); + return result == null ? com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError.UNRECOGNIZED : result; + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + private com.google.protobuf.StringValue description_; + /** + *
+   * The description of the validation error.
+   * 
+ * + * .google.protobuf.StringValue description = 2; + */ + public boolean hasDescription() { + return description_ != null; + } + /** + *
+   * The description of the validation error.
+   * 
+ * + * .google.protobuf.StringValue description = 2; + */ + public com.google.protobuf.StringValue getDescription() { + return description_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : description_; + } + /** + *
+   * The description of the validation error.
+   * 
+ * + * .google.protobuf.StringValue description = 2; + */ + public com.google.protobuf.StringValueOrBuilder getDescriptionOrBuilder() { + return getDescription(); + } + + public static final int FEED_ATTRIBUTE_IDS_FIELD_NUMBER = 3; + private java.util.List feedAttributeIds_; + /** + *
+   * Set of feed attributes in the feed item flagged during validation. If
+   * empty, no specific feed attributes can be associated with the error
+   * (e.g. error across the entire feed item).
+   * 
+ * + * repeated .google.protobuf.Int64Value feed_attribute_ids = 3; + */ + public java.util.List getFeedAttributeIdsList() { + return feedAttributeIds_; + } + /** + *
+   * Set of feed attributes in the feed item flagged during validation. If
+   * empty, no specific feed attributes can be associated with the error
+   * (e.g. error across the entire feed item).
+   * 
+ * + * repeated .google.protobuf.Int64Value feed_attribute_ids = 3; + */ + public java.util.List + getFeedAttributeIdsOrBuilderList() { + return feedAttributeIds_; + } + /** + *
+   * Set of feed attributes in the feed item flagged during validation. If
+   * empty, no specific feed attributes can be associated with the error
+   * (e.g. error across the entire feed item).
+   * 
+ * + * repeated .google.protobuf.Int64Value feed_attribute_ids = 3; + */ + public int getFeedAttributeIdsCount() { + return feedAttributeIds_.size(); + } + /** + *
+   * Set of feed attributes in the feed item flagged during validation. If
+   * empty, no specific feed attributes can be associated with the error
+   * (e.g. error across the entire feed item).
+   * 
+ * + * repeated .google.protobuf.Int64Value feed_attribute_ids = 3; + */ + public com.google.protobuf.Int64Value getFeedAttributeIds(int index) { + return feedAttributeIds_.get(index); + } + /** + *
+   * Set of feed attributes in the feed item flagged during validation. If
+   * empty, no specific feed attributes can be associated with the error
+   * (e.g. error across the entire feed item).
+   * 
+ * + * repeated .google.protobuf.Int64Value feed_attribute_ids = 3; + */ + public com.google.protobuf.Int64ValueOrBuilder getFeedAttributeIdsOrBuilder( + int index) { + return feedAttributeIds_.get(index); + } + + public static final int EXTRA_INFORMATION_FIELD_NUMBER = 4; + private com.google.protobuf.StringValue extraInformation_; + /** + *
+   * Any extra information related to this error which is not captured by
+   * validation_error and feed_attribute_id (e.g. placeholder field IDs when
+   * feed_attribute_id is not mapped). Note that extra_information is not
+   * localized.
+   * 
+ * + * .google.protobuf.StringValue extra_information = 4; + */ + public boolean hasExtraInformation() { + return extraInformation_ != null; + } + /** + *
+   * Any extra information related to this error which is not captured by
+   * validation_error and feed_attribute_id (e.g. placeholder field IDs when
+   * feed_attribute_id is not mapped). Note that extra_information is not
+   * localized.
+   * 
+ * + * .google.protobuf.StringValue extra_information = 4; + */ + public com.google.protobuf.StringValue getExtraInformation() { + return extraInformation_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : extraInformation_; + } + /** + *
+   * Any extra information related to this error which is not captured by
+   * validation_error and feed_attribute_id (e.g. placeholder field IDs when
+   * feed_attribute_id is not mapped). Note that extra_information is not
+   * localized.
+   * 
+ * + * .google.protobuf.StringValue extra_information = 4; + */ + public com.google.protobuf.StringValueOrBuilder getExtraInformationOrBuilder() { + return getExtraInformation(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (validationError_ != com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError.UNSPECIFIED.getNumber()) { + output.writeEnum(1, validationError_); + } + if (description_ != null) { + output.writeMessage(2, getDescription()); + } + for (int i = 0; i < feedAttributeIds_.size(); i++) { + output.writeMessage(3, feedAttributeIds_.get(i)); + } + if (extraInformation_ != null) { + output.writeMessage(4, getExtraInformation()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (validationError_ != com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, validationError_); + } + if (description_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDescription()); + } + for (int i = 0; i < feedAttributeIds_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, feedAttributeIds_.get(i)); + } + if (extraInformation_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getExtraInformation()); + } + size += unknownFields.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.ads.googleads.v0.resources.FeedItemValidationError)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.resources.FeedItemValidationError other = (com.google.ads.googleads.v0.resources.FeedItemValidationError) obj; + + boolean result = true; + result = result && validationError_ == other.validationError_; + result = result && (hasDescription() == other.hasDescription()); + if (hasDescription()) { + result = result && getDescription() + .equals(other.getDescription()); + } + result = result && getFeedAttributeIdsList() + .equals(other.getFeedAttributeIdsList()); + result = result && (hasExtraInformation() == other.hasExtraInformation()); + if (hasExtraInformation()) { + result = result && getExtraInformation() + .equals(other.getExtraInformation()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VALIDATION_ERROR_FIELD_NUMBER; + hash = (53 * hash) + validationError_; + if (hasDescription()) { + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + } + if (getFeedAttributeIdsCount() > 0) { + hash = (37 * hash) + FEED_ATTRIBUTE_IDS_FIELD_NUMBER; + hash = (53 * hash) + getFeedAttributeIdsList().hashCode(); + } + if (hasExtraInformation()) { + hash = (37 * hash) + EXTRA_INFORMATION_FIELD_NUMBER; + hash = (53 * hash) + getExtraInformation().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.resources.FeedItemValidationError parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.FeedItemValidationError parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.resources.FeedItemValidationError parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.FeedItemValidationError 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.ads.googleads.v0.resources.FeedItemValidationError parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.FeedItemValidationError parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.resources.FeedItemValidationError parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.FeedItemValidationError 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.ads.googleads.v0.resources.FeedItemValidationError parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.FeedItemValidationError 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.ads.googleads.v0.resources.FeedItemValidationError parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.FeedItemValidationError 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.ads.googleads.v0.resources.FeedItemValidationError 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; + } + /** + *
+   * Stores a validation error and the set of offending feed attributes which
+   * together are responsible for causing a feed item validation error.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.resources.FeedItemValidationError} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.resources.FeedItemValidationError) + com.google.ads.googleads.v0.resources.FeedItemValidationErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.resources.FeedItemProto.internal_static_google_ads_googleads_v0_resources_FeedItemValidationError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.resources.FeedItemProto.internal_static_google_ads_googleads_v0_resources_FeedItemValidationError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.resources.FeedItemValidationError.class, com.google.ads.googleads.v0.resources.FeedItemValidationError.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.resources.FeedItemValidationError.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getFeedAttributeIdsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + validationError_ = 0; + + if (descriptionBuilder_ == null) { + description_ = null; + } else { + description_ = null; + descriptionBuilder_ = null; + } + if (feedAttributeIdsBuilder_ == null) { + feedAttributeIds_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + feedAttributeIdsBuilder_.clear(); + } + if (extraInformationBuilder_ == null) { + extraInformation_ = null; + } else { + extraInformation_ = null; + extraInformationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.resources.FeedItemProto.internal_static_google_ads_googleads_v0_resources_FeedItemValidationError_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.FeedItemValidationError getDefaultInstanceForType() { + return com.google.ads.googleads.v0.resources.FeedItemValidationError.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.FeedItemValidationError build() { + com.google.ads.googleads.v0.resources.FeedItemValidationError result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.FeedItemValidationError buildPartial() { + com.google.ads.googleads.v0.resources.FeedItemValidationError result = new com.google.ads.googleads.v0.resources.FeedItemValidationError(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.validationError_ = validationError_; + if (descriptionBuilder_ == null) { + result.description_ = description_; + } else { + result.description_ = descriptionBuilder_.build(); + } + if (feedAttributeIdsBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + feedAttributeIds_ = java.util.Collections.unmodifiableList(feedAttributeIds_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.feedAttributeIds_ = feedAttributeIds_; + } else { + result.feedAttributeIds_ = feedAttributeIdsBuilder_.build(); + } + if (extraInformationBuilder_ == null) { + result.extraInformation_ = extraInformation_; + } else { + result.extraInformation_ = extraInformationBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.resources.FeedItemValidationError) { + return mergeFrom((com.google.ads.googleads.v0.resources.FeedItemValidationError)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.resources.FeedItemValidationError other) { + if (other == com.google.ads.googleads.v0.resources.FeedItemValidationError.getDefaultInstance()) return this; + if (other.validationError_ != 0) { + setValidationErrorValue(other.getValidationErrorValue()); + } + if (other.hasDescription()) { + mergeDescription(other.getDescription()); + } + if (feedAttributeIdsBuilder_ == null) { + if (!other.feedAttributeIds_.isEmpty()) { + if (feedAttributeIds_.isEmpty()) { + feedAttributeIds_ = other.feedAttributeIds_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureFeedAttributeIdsIsMutable(); + feedAttributeIds_.addAll(other.feedAttributeIds_); + } + onChanged(); + } + } else { + if (!other.feedAttributeIds_.isEmpty()) { + if (feedAttributeIdsBuilder_.isEmpty()) { + feedAttributeIdsBuilder_.dispose(); + feedAttributeIdsBuilder_ = null; + feedAttributeIds_ = other.feedAttributeIds_; + bitField0_ = (bitField0_ & ~0x00000004); + feedAttributeIdsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFeedAttributeIdsFieldBuilder() : null; + } else { + feedAttributeIdsBuilder_.addAllMessages(other.feedAttributeIds_); + } + } + } + if (other.hasExtraInformation()) { + mergeExtraInformation(other.getExtraInformation()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.resources.FeedItemValidationError parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.resources.FeedItemValidationError) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int validationError_ = 0; + /** + *
+     * Error code indicating what validation error was triggered. The description
+     * of the error can be found in the 'description' field.
+     * 
+ * + * .google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError validation_error = 1; + */ + public int getValidationErrorValue() { + return validationError_; + } + /** + *
+     * Error code indicating what validation error was triggered. The description
+     * of the error can be found in the 'description' field.
+     * 
+ * + * .google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError validation_error = 1; + */ + public Builder setValidationErrorValue(int value) { + validationError_ = value; + onChanged(); + return this; + } + /** + *
+     * Error code indicating what validation error was triggered. The description
+     * of the error can be found in the 'description' field.
+     * 
+ * + * .google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError validation_error = 1; + */ + public com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError getValidationError() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError result = com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError.valueOf(validationError_); + return result == null ? com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError.UNRECOGNIZED : result; + } + /** + *
+     * Error code indicating what validation error was triggered. The description
+     * of the error can be found in the 'description' field.
+     * 
+ * + * .google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError validation_error = 1; + */ + public Builder setValidationError(com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError value) { + if (value == null) { + throw new NullPointerException(); + } + + validationError_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Error code indicating what validation error was triggered. The description
+     * of the error can be found in the 'description' field.
+     * 
+ * + * .google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError validation_error = 1; + */ + public Builder clearValidationError() { + + validationError_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.StringValue description_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> descriptionBuilder_; + /** + *
+     * The description of the validation error.
+     * 
+ * + * .google.protobuf.StringValue description = 2; + */ + public boolean hasDescription() { + return descriptionBuilder_ != null || description_ != null; + } + /** + *
+     * The description of the validation error.
+     * 
+ * + * .google.protobuf.StringValue description = 2; + */ + public com.google.protobuf.StringValue getDescription() { + if (descriptionBuilder_ == null) { + return description_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : description_; + } else { + return descriptionBuilder_.getMessage(); + } + } + /** + *
+     * The description of the validation error.
+     * 
+ * + * .google.protobuf.StringValue description = 2; + */ + public Builder setDescription(com.google.protobuf.StringValue value) { + if (descriptionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + onChanged(); + } else { + descriptionBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The description of the validation error.
+     * 
+ * + * .google.protobuf.StringValue description = 2; + */ + public Builder setDescription( + com.google.protobuf.StringValue.Builder builderForValue) { + if (descriptionBuilder_ == null) { + description_ = builderForValue.build(); + onChanged(); + } else { + descriptionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The description of the validation error.
+     * 
+ * + * .google.protobuf.StringValue description = 2; + */ + public Builder mergeDescription(com.google.protobuf.StringValue value) { + if (descriptionBuilder_ == null) { + if (description_ != null) { + description_ = + com.google.protobuf.StringValue.newBuilder(description_).mergeFrom(value).buildPartial(); + } else { + description_ = value; + } + onChanged(); + } else { + descriptionBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The description of the validation error.
+     * 
+ * + * .google.protobuf.StringValue description = 2; + */ + public Builder clearDescription() { + if (descriptionBuilder_ == null) { + description_ = null; + onChanged(); + } else { + description_ = null; + descriptionBuilder_ = null; + } + + return this; + } + /** + *
+     * The description of the validation error.
+     * 
+ * + * .google.protobuf.StringValue description = 2; + */ + public com.google.protobuf.StringValue.Builder getDescriptionBuilder() { + + onChanged(); + return getDescriptionFieldBuilder().getBuilder(); + } + /** + *
+     * The description of the validation error.
+     * 
+ * + * .google.protobuf.StringValue description = 2; + */ + public com.google.protobuf.StringValueOrBuilder getDescriptionOrBuilder() { + if (descriptionBuilder_ != null) { + return descriptionBuilder_.getMessageOrBuilder(); + } else { + return description_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : description_; + } + } + /** + *
+     * The description of the validation error.
+     * 
+ * + * .google.protobuf.StringValue description = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getDescriptionFieldBuilder() { + if (descriptionBuilder_ == null) { + descriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getDescription(), + getParentForChildren(), + isClean()); + description_ = null; + } + return descriptionBuilder_; + } + + private java.util.List feedAttributeIds_ = + java.util.Collections.emptyList(); + private void ensureFeedAttributeIdsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + feedAttributeIds_ = new java.util.ArrayList(feedAttributeIds_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> feedAttributeIdsBuilder_; + + /** + *
+     * Set of feed attributes in the feed item flagged during validation. If
+     * empty, no specific feed attributes can be associated with the error
+     * (e.g. error across the entire feed item).
+     * 
+ * + * repeated .google.protobuf.Int64Value feed_attribute_ids = 3; + */ + public java.util.List getFeedAttributeIdsList() { + if (feedAttributeIdsBuilder_ == null) { + return java.util.Collections.unmodifiableList(feedAttributeIds_); + } else { + return feedAttributeIdsBuilder_.getMessageList(); + } + } + /** + *
+     * Set of feed attributes in the feed item flagged during validation. If
+     * empty, no specific feed attributes can be associated with the error
+     * (e.g. error across the entire feed item).
+     * 
+ * + * repeated .google.protobuf.Int64Value feed_attribute_ids = 3; + */ + public int getFeedAttributeIdsCount() { + if (feedAttributeIdsBuilder_ == null) { + return feedAttributeIds_.size(); + } else { + return feedAttributeIdsBuilder_.getCount(); + } + } + /** + *
+     * Set of feed attributes in the feed item flagged during validation. If
+     * empty, no specific feed attributes can be associated with the error
+     * (e.g. error across the entire feed item).
+     * 
+ * + * repeated .google.protobuf.Int64Value feed_attribute_ids = 3; + */ + public com.google.protobuf.Int64Value getFeedAttributeIds(int index) { + if (feedAttributeIdsBuilder_ == null) { + return feedAttributeIds_.get(index); + } else { + return feedAttributeIdsBuilder_.getMessage(index); + } + } + /** + *
+     * Set of feed attributes in the feed item flagged during validation. If
+     * empty, no specific feed attributes can be associated with the error
+     * (e.g. error across the entire feed item).
+     * 
+ * + * repeated .google.protobuf.Int64Value feed_attribute_ids = 3; + */ + public Builder setFeedAttributeIds( + int index, com.google.protobuf.Int64Value value) { + if (feedAttributeIdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFeedAttributeIdsIsMutable(); + feedAttributeIds_.set(index, value); + onChanged(); + } else { + feedAttributeIdsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Set of feed attributes in the feed item flagged during validation. If
+     * empty, no specific feed attributes can be associated with the error
+     * (e.g. error across the entire feed item).
+     * 
+ * + * repeated .google.protobuf.Int64Value feed_attribute_ids = 3; + */ + public Builder setFeedAttributeIds( + int index, com.google.protobuf.Int64Value.Builder builderForValue) { + if (feedAttributeIdsBuilder_ == null) { + ensureFeedAttributeIdsIsMutable(); + feedAttributeIds_.set(index, builderForValue.build()); + onChanged(); + } else { + feedAttributeIdsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Set of feed attributes in the feed item flagged during validation. If
+     * empty, no specific feed attributes can be associated with the error
+     * (e.g. error across the entire feed item).
+     * 
+ * + * repeated .google.protobuf.Int64Value feed_attribute_ids = 3; + */ + public Builder addFeedAttributeIds(com.google.protobuf.Int64Value value) { + if (feedAttributeIdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFeedAttributeIdsIsMutable(); + feedAttributeIds_.add(value); + onChanged(); + } else { + feedAttributeIdsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Set of feed attributes in the feed item flagged during validation. If
+     * empty, no specific feed attributes can be associated with the error
+     * (e.g. error across the entire feed item).
+     * 
+ * + * repeated .google.protobuf.Int64Value feed_attribute_ids = 3; + */ + public Builder addFeedAttributeIds( + int index, com.google.protobuf.Int64Value value) { + if (feedAttributeIdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFeedAttributeIdsIsMutable(); + feedAttributeIds_.add(index, value); + onChanged(); + } else { + feedAttributeIdsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Set of feed attributes in the feed item flagged during validation. If
+     * empty, no specific feed attributes can be associated with the error
+     * (e.g. error across the entire feed item).
+     * 
+ * + * repeated .google.protobuf.Int64Value feed_attribute_ids = 3; + */ + public Builder addFeedAttributeIds( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (feedAttributeIdsBuilder_ == null) { + ensureFeedAttributeIdsIsMutable(); + feedAttributeIds_.add(builderForValue.build()); + onChanged(); + } else { + feedAttributeIdsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Set of feed attributes in the feed item flagged during validation. If
+     * empty, no specific feed attributes can be associated with the error
+     * (e.g. error across the entire feed item).
+     * 
+ * + * repeated .google.protobuf.Int64Value feed_attribute_ids = 3; + */ + public Builder addFeedAttributeIds( + int index, com.google.protobuf.Int64Value.Builder builderForValue) { + if (feedAttributeIdsBuilder_ == null) { + ensureFeedAttributeIdsIsMutable(); + feedAttributeIds_.add(index, builderForValue.build()); + onChanged(); + } else { + feedAttributeIdsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Set of feed attributes in the feed item flagged during validation. If
+     * empty, no specific feed attributes can be associated with the error
+     * (e.g. error across the entire feed item).
+     * 
+ * + * repeated .google.protobuf.Int64Value feed_attribute_ids = 3; + */ + public Builder addAllFeedAttributeIds( + java.lang.Iterable values) { + if (feedAttributeIdsBuilder_ == null) { + ensureFeedAttributeIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, feedAttributeIds_); + onChanged(); + } else { + feedAttributeIdsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Set of feed attributes in the feed item flagged during validation. If
+     * empty, no specific feed attributes can be associated with the error
+     * (e.g. error across the entire feed item).
+     * 
+ * + * repeated .google.protobuf.Int64Value feed_attribute_ids = 3; + */ + public Builder clearFeedAttributeIds() { + if (feedAttributeIdsBuilder_ == null) { + feedAttributeIds_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + feedAttributeIdsBuilder_.clear(); + } + return this; + } + /** + *
+     * Set of feed attributes in the feed item flagged during validation. If
+     * empty, no specific feed attributes can be associated with the error
+     * (e.g. error across the entire feed item).
+     * 
+ * + * repeated .google.protobuf.Int64Value feed_attribute_ids = 3; + */ + public Builder removeFeedAttributeIds(int index) { + if (feedAttributeIdsBuilder_ == null) { + ensureFeedAttributeIdsIsMutable(); + feedAttributeIds_.remove(index); + onChanged(); + } else { + feedAttributeIdsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Set of feed attributes in the feed item flagged during validation. If
+     * empty, no specific feed attributes can be associated with the error
+     * (e.g. error across the entire feed item).
+     * 
+ * + * repeated .google.protobuf.Int64Value feed_attribute_ids = 3; + */ + public com.google.protobuf.Int64Value.Builder getFeedAttributeIdsBuilder( + int index) { + return getFeedAttributeIdsFieldBuilder().getBuilder(index); + } + /** + *
+     * Set of feed attributes in the feed item flagged during validation. If
+     * empty, no specific feed attributes can be associated with the error
+     * (e.g. error across the entire feed item).
+     * 
+ * + * repeated .google.protobuf.Int64Value feed_attribute_ids = 3; + */ + public com.google.protobuf.Int64ValueOrBuilder getFeedAttributeIdsOrBuilder( + int index) { + if (feedAttributeIdsBuilder_ == null) { + return feedAttributeIds_.get(index); } else { + return feedAttributeIdsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Set of feed attributes in the feed item flagged during validation. If
+     * empty, no specific feed attributes can be associated with the error
+     * (e.g. error across the entire feed item).
+     * 
+ * + * repeated .google.protobuf.Int64Value feed_attribute_ids = 3; + */ + public java.util.List + getFeedAttributeIdsOrBuilderList() { + if (feedAttributeIdsBuilder_ != null) { + return feedAttributeIdsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(feedAttributeIds_); + } + } + /** + *
+     * Set of feed attributes in the feed item flagged during validation. If
+     * empty, no specific feed attributes can be associated with the error
+     * (e.g. error across the entire feed item).
+     * 
+ * + * repeated .google.protobuf.Int64Value feed_attribute_ids = 3; + */ + public com.google.protobuf.Int64Value.Builder addFeedAttributeIdsBuilder() { + return getFeedAttributeIdsFieldBuilder().addBuilder( + com.google.protobuf.Int64Value.getDefaultInstance()); + } + /** + *
+     * Set of feed attributes in the feed item flagged during validation. If
+     * empty, no specific feed attributes can be associated with the error
+     * (e.g. error across the entire feed item).
+     * 
+ * + * repeated .google.protobuf.Int64Value feed_attribute_ids = 3; + */ + public com.google.protobuf.Int64Value.Builder addFeedAttributeIdsBuilder( + int index) { + return getFeedAttributeIdsFieldBuilder().addBuilder( + index, com.google.protobuf.Int64Value.getDefaultInstance()); + } + /** + *
+     * Set of feed attributes in the feed item flagged during validation. If
+     * empty, no specific feed attributes can be associated with the error
+     * (e.g. error across the entire feed item).
+     * 
+ * + * repeated .google.protobuf.Int64Value feed_attribute_ids = 3; + */ + public java.util.List + getFeedAttributeIdsBuilderList() { + return getFeedAttributeIdsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + getFeedAttributeIdsFieldBuilder() { + if (feedAttributeIdsBuilder_ == null) { + feedAttributeIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + feedAttributeIds_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + feedAttributeIds_ = null; + } + return feedAttributeIdsBuilder_; + } + + private com.google.protobuf.StringValue extraInformation_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> extraInformationBuilder_; + /** + *
+     * Any extra information related to this error which is not captured by
+     * validation_error and feed_attribute_id (e.g. placeholder field IDs when
+     * feed_attribute_id is not mapped). Note that extra_information is not
+     * localized.
+     * 
+ * + * .google.protobuf.StringValue extra_information = 4; + */ + public boolean hasExtraInformation() { + return extraInformationBuilder_ != null || extraInformation_ != null; + } + /** + *
+     * Any extra information related to this error which is not captured by
+     * validation_error and feed_attribute_id (e.g. placeholder field IDs when
+     * feed_attribute_id is not mapped). Note that extra_information is not
+     * localized.
+     * 
+ * + * .google.protobuf.StringValue extra_information = 4; + */ + public com.google.protobuf.StringValue getExtraInformation() { + if (extraInformationBuilder_ == null) { + return extraInformation_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : extraInformation_; + } else { + return extraInformationBuilder_.getMessage(); + } + } + /** + *
+     * Any extra information related to this error which is not captured by
+     * validation_error and feed_attribute_id (e.g. placeholder field IDs when
+     * feed_attribute_id is not mapped). Note that extra_information is not
+     * localized.
+     * 
+ * + * .google.protobuf.StringValue extra_information = 4; + */ + public Builder setExtraInformation(com.google.protobuf.StringValue value) { + if (extraInformationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + extraInformation_ = value; + onChanged(); + } else { + extraInformationBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Any extra information related to this error which is not captured by
+     * validation_error and feed_attribute_id (e.g. placeholder field IDs when
+     * feed_attribute_id is not mapped). Note that extra_information is not
+     * localized.
+     * 
+ * + * .google.protobuf.StringValue extra_information = 4; + */ + public Builder setExtraInformation( + com.google.protobuf.StringValue.Builder builderForValue) { + if (extraInformationBuilder_ == null) { + extraInformation_ = builderForValue.build(); + onChanged(); + } else { + extraInformationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Any extra information related to this error which is not captured by
+     * validation_error and feed_attribute_id (e.g. placeholder field IDs when
+     * feed_attribute_id is not mapped). Note that extra_information is not
+     * localized.
+     * 
+ * + * .google.protobuf.StringValue extra_information = 4; + */ + public Builder mergeExtraInformation(com.google.protobuf.StringValue value) { + if (extraInformationBuilder_ == null) { + if (extraInformation_ != null) { + extraInformation_ = + com.google.protobuf.StringValue.newBuilder(extraInformation_).mergeFrom(value).buildPartial(); + } else { + extraInformation_ = value; + } + onChanged(); + } else { + extraInformationBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Any extra information related to this error which is not captured by
+     * validation_error and feed_attribute_id (e.g. placeholder field IDs when
+     * feed_attribute_id is not mapped). Note that extra_information is not
+     * localized.
+     * 
+ * + * .google.protobuf.StringValue extra_information = 4; + */ + public Builder clearExtraInformation() { + if (extraInformationBuilder_ == null) { + extraInformation_ = null; + onChanged(); + } else { + extraInformation_ = null; + extraInformationBuilder_ = null; + } + + return this; + } + /** + *
+     * Any extra information related to this error which is not captured by
+     * validation_error and feed_attribute_id (e.g. placeholder field IDs when
+     * feed_attribute_id is not mapped). Note that extra_information is not
+     * localized.
+     * 
+ * + * .google.protobuf.StringValue extra_information = 4; + */ + public com.google.protobuf.StringValue.Builder getExtraInformationBuilder() { + + onChanged(); + return getExtraInformationFieldBuilder().getBuilder(); + } + /** + *
+     * Any extra information related to this error which is not captured by
+     * validation_error and feed_attribute_id (e.g. placeholder field IDs when
+     * feed_attribute_id is not mapped). Note that extra_information is not
+     * localized.
+     * 
+ * + * .google.protobuf.StringValue extra_information = 4; + */ + public com.google.protobuf.StringValueOrBuilder getExtraInformationOrBuilder() { + if (extraInformationBuilder_ != null) { + return extraInformationBuilder_.getMessageOrBuilder(); + } else { + return extraInformation_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : extraInformation_; + } + } + /** + *
+     * Any extra information related to this error which is not captured by
+     * validation_error and feed_attribute_id (e.g. placeholder field IDs when
+     * feed_attribute_id is not mapped). Note that extra_information is not
+     * localized.
+     * 
+ * + * .google.protobuf.StringValue extra_information = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getExtraInformationFieldBuilder() { + if (extraInformationBuilder_ == null) { + extraInformationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getExtraInformation(), + getParentForChildren(), + isClean()); + extraInformation_ = null; + } + return extraInformationBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.resources.FeedItemValidationError) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.resources.FeedItemValidationError) + private static final com.google.ads.googleads.v0.resources.FeedItemValidationError DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.resources.FeedItemValidationError(); + } + + public static com.google.ads.googleads.v0.resources.FeedItemValidationError getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeedItemValidationError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeedItemValidationError(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.resources.FeedItemValidationError getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/FeedItemValidationErrorOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/FeedItemValidationErrorOrBuilder.java new file mode 100644 index 0000000000..b76a33db45 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/FeedItemValidationErrorOrBuilder.java @@ -0,0 +1,141 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/resources/feed_item.proto + +package com.google.ads.googleads.v0.resources; + +public interface FeedItemValidationErrorOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.resources.FeedItemValidationError) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Error code indicating what validation error was triggered. The description
+   * of the error can be found in the 'description' field.
+   * 
+ * + * .google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError validation_error = 1; + */ + int getValidationErrorValue(); + /** + *
+   * Error code indicating what validation error was triggered. The description
+   * of the error can be found in the 'description' field.
+   * 
+ * + * .google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError validation_error = 1; + */ + com.google.ads.googleads.v0.errors.FeedItemValidationErrorEnum.FeedItemValidationError getValidationError(); + + /** + *
+   * The description of the validation error.
+   * 
+ * + * .google.protobuf.StringValue description = 2; + */ + boolean hasDescription(); + /** + *
+   * The description of the validation error.
+   * 
+ * + * .google.protobuf.StringValue description = 2; + */ + com.google.protobuf.StringValue getDescription(); + /** + *
+   * The description of the validation error.
+   * 
+ * + * .google.protobuf.StringValue description = 2; + */ + com.google.protobuf.StringValueOrBuilder getDescriptionOrBuilder(); + + /** + *
+   * Set of feed attributes in the feed item flagged during validation. If
+   * empty, no specific feed attributes can be associated with the error
+   * (e.g. error across the entire feed item).
+   * 
+ * + * repeated .google.protobuf.Int64Value feed_attribute_ids = 3; + */ + java.util.List + getFeedAttributeIdsList(); + /** + *
+   * Set of feed attributes in the feed item flagged during validation. If
+   * empty, no specific feed attributes can be associated with the error
+   * (e.g. error across the entire feed item).
+   * 
+ * + * repeated .google.protobuf.Int64Value feed_attribute_ids = 3; + */ + com.google.protobuf.Int64Value getFeedAttributeIds(int index); + /** + *
+   * Set of feed attributes in the feed item flagged during validation. If
+   * empty, no specific feed attributes can be associated with the error
+   * (e.g. error across the entire feed item).
+   * 
+ * + * repeated .google.protobuf.Int64Value feed_attribute_ids = 3; + */ + int getFeedAttributeIdsCount(); + /** + *
+   * Set of feed attributes in the feed item flagged during validation. If
+   * empty, no specific feed attributes can be associated with the error
+   * (e.g. error across the entire feed item).
+   * 
+ * + * repeated .google.protobuf.Int64Value feed_attribute_ids = 3; + */ + java.util.List + getFeedAttributeIdsOrBuilderList(); + /** + *
+   * Set of feed attributes in the feed item flagged during validation. If
+   * empty, no specific feed attributes can be associated with the error
+   * (e.g. error across the entire feed item).
+   * 
+ * + * repeated .google.protobuf.Int64Value feed_attribute_ids = 3; + */ + com.google.protobuf.Int64ValueOrBuilder getFeedAttributeIdsOrBuilder( + int index); + + /** + *
+   * Any extra information related to this error which is not captured by
+   * validation_error and feed_attribute_id (e.g. placeholder field IDs when
+   * feed_attribute_id is not mapped). Note that extra_information is not
+   * localized.
+   * 
+ * + * .google.protobuf.StringValue extra_information = 4; + */ + boolean hasExtraInformation(); + /** + *
+   * Any extra information related to this error which is not captured by
+   * validation_error and feed_attribute_id (e.g. placeholder field IDs when
+   * feed_attribute_id is not mapped). Note that extra_information is not
+   * localized.
+   * 
+ * + * .google.protobuf.StringValue extra_information = 4; + */ + com.google.protobuf.StringValue getExtraInformation(); + /** + *
+   * Any extra information related to this error which is not captured by
+   * validation_error and feed_attribute_id (e.g. placeholder field IDs when
+   * feed_attribute_id is not mapped). Note that extra_information is not
+   * localized.
+   * 
+ * + * .google.protobuf.StringValue extra_information = 4; + */ + com.google.protobuf.StringValueOrBuilder getExtraInformationOrBuilder(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/FeedMappingProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/FeedMappingProto.java index 3e1767fc8b..fc6cd905b2 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/FeedMappingProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/FeedMappingProto.java @@ -129,12 +129,13 @@ public static void registerAllExtensions( "FieldEnum.LocalPlaceholderFieldH\000\022_\n\tjob" + "_field\030\027 \001(\0162J.google.ads.googleads.v0.e" + "nums.JobPlaceholderFieldEnum.JobPlacehol" + - "derFieldH\000B\007\n\005fieldB\325\001\n%com.google.ads.g" + + "derFieldH\000B\007\n\005fieldB\375\001\n%com.google.ads.g" + "oogleads.v0.resourcesB\020FeedMappingProtoP" + "\001ZJgoogle.golang.org/genproto/googleapis" + "/ads/googleads/v0/resources;resources\242\002\003" + "GAA\252\002!Google.Ads.GoogleAds.V0.Resources\312" + - "\002!Google\\Ads\\GoogleAds\\V0\\Resourcesb\006pro" + + "\002!Google\\Ads\\GoogleAds\\V0\\Resources\352\002%Go" + + "ogle::Ads::GoogleAds::V0::Resourcesb\006pro" + "to3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/FeedProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/FeedProto.java index 7dfe6b8abd..0ca5df0233 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/FeedProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/FeedProto.java @@ -61,7 +61,7 @@ public static void registerAllExtensions( "ribute_type.proto\032/google/ads/googleads/" + "v0/enums/feed_origin.proto\032/google/ads/g" + "oogleads/v0/enums/feed_status.proto\032\036goo" + - "gle/protobuf/wrappers.proto\"\302\013\n\004Feed\022\025\n\r" + + "gle/protobuf/wrappers.proto\"\272\013\n\004Feed\022\025\n\r" + "resource_name\030\001 \001(\t\022\'\n\002id\030\002 \001(\0132\033.google" + ".protobuf.Int64Value\022*\n\004name\030\003 \001(\0132\034.goo" + "gle.protobuf.StringValue\022D\n\nattributes\030\004" + @@ -77,45 +77,46 @@ public static void registerAllExtensions( "es.Feed.PlacesLocationFeedDataH\000\022i\n\034affi" + "liate_location_feed_data\030\007 \001(\0132A.google." + "ads.googleads.v0.resources.Feed.Affiliat" + - "eLocationFeedDataH\000\032\321\004\n\026PlacesLocationFe" + + "eLocationFeedDataH\000\032\311\004\n\026PlacesLocationFe" + "edData\022\\\n\noauth_info\030\001 \001(\0132H.google.ads." + "googleads.v0.resources.Feed.PlacesLocati" + "onFeedData.OAuthInfo\0223\n\remail_address\030\002 " + - "\001(\0132\034.google.protobuf.StringValue\022A\n\033bus" + - "iness_account_identifier\030\003 \001(\0132\034.google." + - "protobuf.StringValue\022:\n\024business_name_fi" + - "lter\030\004 \001(\0132\034.google.protobuf.StringValue" + - "\0226\n\020category_filters\030\005 \003(\0132\034.google.prot" + - "obuf.StringValue\0223\n\rlabel_filters\030\006 \003(\0132" + - "\034.google.protobuf.StringValue\032\267\001\n\tOAuthI" + - "nfo\0221\n\013http_method\030\001 \001(\0132\034.google.protob" + - "uf.StringValue\0226\n\020http_request_url\030\002 \001(\013" + - "2\034.google.protobuf.StringValue\022?\n\031http_a" + - "uthorization_header\030\003 \001(\0132\034.google.proto" + - "buf.StringValue\032\327\001\n\031AffiliateLocationFee" + - "dData\022.\n\tchain_ids\030\001 \003(\0132\033.google.protob" + - "uf.Int64Value\022\211\001\n\021relationship_type\030\002 \001(" + - "\0162n.google.ads.googleads.v0.enums.Affili" + - "ateLocationFeedRelationshipTypeEnum.Affi" + - "liateLocationFeedRelationshipTypeB\035\n\033sys" + - "tem_feed_generation_data\"\356\001\n\rFeedAttribu" + - "te\022\'\n\002id\030\001 \001(\0132\033.google.protobuf.Int64Va" + - "lue\022*\n\004name\030\002 \001(\0132\034.google.protobuf.Stri" + - "ngValue\022T\n\004type\030\003 \001(\0162F.google.ads.googl" + - "eads.v0.enums.FeedAttributeTypeEnum.Feed" + - "AttributeType\0222\n\016is_part_of_key\030\004 \001(\0132\032." + - "google.protobuf.BoolValue\"\342\001\n\026FeedAttrib" + - "uteOperation\022T\n\010operator\030\001 \001(\0162B.google." + - "ads.googleads.v0.resources.FeedAttribute" + - "Operation.Operator\022?\n\005value\030\002 \001(\01320.goog" + - "le.ads.googleads.v0.resources.FeedAttrib" + - "ute\"1\n\010Operator\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKN" + - "OWN\020\001\022\007\n\003ADD\020\002B\316\001\n%com.google.ads.google" + - "ads.v0.resourcesB\tFeedProtoP\001ZJgoogle.go" + - "lang.org/genproto/googleapis/ads/googlea" + - "ds/v0/resources;resources\242\002\003GAA\252\002!Google" + - ".Ads.GoogleAds.V0.Resources\312\002!Google\\Ads" + - "\\GoogleAds\\V0\\Resourcesb\006proto3" + "\001(\0132\034.google.protobuf.StringValue\0229\n\023bus" + + "iness_account_id\030\n \001(\0132\034.google.protobuf" + + ".StringValue\022:\n\024business_name_filter\030\004 \001" + + "(\0132\034.google.protobuf.StringValue\0226\n\020cate" + + "gory_filters\030\005 \003(\0132\034.google.protobuf.Str" + + "ingValue\0223\n\rlabel_filters\030\006 \003(\0132\034.google" + + ".protobuf.StringValue\032\267\001\n\tOAuthInfo\0221\n\013h" + + "ttp_method\030\001 \001(\0132\034.google.protobuf.Strin" + + "gValue\0226\n\020http_request_url\030\002 \001(\0132\034.googl" + + "e.protobuf.StringValue\022?\n\031http_authoriza" + + "tion_header\030\003 \001(\0132\034.google.protobuf.Stri" + + "ngValue\032\327\001\n\031AffiliateLocationFeedData\022.\n" + + "\tchain_ids\030\001 \003(\0132\033.google.protobuf.Int64" + + "Value\022\211\001\n\021relationship_type\030\002 \001(\0162n.goog" + + "le.ads.googleads.v0.enums.AffiliateLocat" + + "ionFeedRelationshipTypeEnum.AffiliateLoc" + + "ationFeedRelationshipTypeB\035\n\033system_feed" + + "_generation_data\"\356\001\n\rFeedAttribute\022\'\n\002id" + + "\030\001 \001(\0132\033.google.protobuf.Int64Value\022*\n\004n" + + "ame\030\002 \001(\0132\034.google.protobuf.StringValue\022" + + "T\n\004type\030\003 \001(\0162F.google.ads.googleads.v0." + + "enums.FeedAttributeTypeEnum.FeedAttribut" + + "eType\0222\n\016is_part_of_key\030\004 \001(\0132\032.google.p" + + "rotobuf.BoolValue\"\342\001\n\026FeedAttributeOpera" + + "tion\022T\n\010operator\030\001 \001(\0162B.google.ads.goog" + + "leads.v0.resources.FeedAttributeOperatio" + + "n.Operator\022?\n\005value\030\002 \001(\01320.google.ads.g" + + "oogleads.v0.resources.FeedAttribute\"1\n\010O" + + "perator\022\017\n\013UNSPECIFIED\020\000\022\013\n\007UNKNOWN\020\001\022\007\n" + + "\003ADD\020\002B\366\001\n%com.google.ads.googleads.v0.r" + + "esourcesB\tFeedProtoP\001ZJgoogle.golang.org" + + "/genproto/googleapis/ads/googleads/v0/re" + + "sources;resources\242\002\003GAA\252\002!Google.Ads.Goo" + + "gleAds.V0.Resources\312\002!Google\\Ads\\GoogleA" + + "ds\\V0\\Resources\352\002%Google::Ads::GoogleAds" + + "::V0::Resourcesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -145,7 +146,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_resources_Feed_PlacesLocationFeedData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_resources_Feed_PlacesLocationFeedData_descriptor, - new java.lang.String[] { "OauthInfo", "EmailAddress", "BusinessAccountIdentifier", "BusinessNameFilter", "CategoryFilters", "LabelFilters", }); + new java.lang.String[] { "OauthInfo", "EmailAddress", "BusinessAccountId", "BusinessNameFilter", "CategoryFilters", "LabelFilters", }); internal_static_google_ads_googleads_v0_resources_Feed_PlacesLocationFeedData_OAuthInfo_descriptor = internal_static_google_ads_googleads_v0_resources_Feed_PlacesLocationFeedData_descriptor.getNestedTypes().get(0); internal_static_google_ads_googleads_v0_resources_Feed_PlacesLocationFeedData_OAuthInfo_fieldAccessorTable = new diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/GenderViewProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/GenderViewProto.java index 33968a77b3..9dbc4708d4 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/GenderViewProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/GenderViewProto.java @@ -31,12 +31,13 @@ public static void registerAllExtensions( "\n3google/ads/googleads/v0/resources/gend" + "er_view.proto\022!google.ads.googleads.v0.r" + "esources\"#\n\nGenderView\022\025\n\rresource_name\030" + - "\001 \001(\tB\324\001\n%com.google.ads.googleads.v0.re" + + "\001 \001(\tB\374\001\n%com.google.ads.googleads.v0.re" + "sourcesB\017GenderViewProtoP\001ZJgoogle.golan" + "g.org/genproto/googleapis/ads/googleads/" + "v0/resources;resources\242\002\003GAA\252\002!Google.Ad" + "s.GoogleAds.V0.Resources\312\002!Google\\Ads\\Go" + - "ogleAds\\V0\\Resourcesb\006proto3" + "ogleAds\\V0\\Resources\352\002%Google::Ads::Goog" + + "leAds::V0::Resourcesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/GeoTargetConstant.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/GeoTargetConstant.java index c5d6cf8562..90b4d5c6fe 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/GeoTargetConstant.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/GeoTargetConstant.java @@ -112,6 +112,19 @@ private GeoTargetConstant( status_ = rawValue; break; } + case 66: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (canonicalName_ != null) { + subBuilder = canonicalName_.toBuilder(); + } + canonicalName_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(canonicalName_); + canonicalName_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -347,6 +360,42 @@ public com.google.ads.googleads.v0.enums.GeoTargetConstantStatusEnum.GeoTargetCo return result == null ? com.google.ads.googleads.v0.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus.UNRECOGNIZED : result; } + public static final int CANONICAL_NAME_FIELD_NUMBER = 8; + private com.google.protobuf.StringValue canonicalName_; + /** + *
+   * The fully qualified English name, consisting of the target's name and that
+   * of its parent and country.
+   * 
+ * + * .google.protobuf.StringValue canonical_name = 8; + */ + public boolean hasCanonicalName() { + return canonicalName_ != null; + } + /** + *
+   * The fully qualified English name, consisting of the target's name and that
+   * of its parent and country.
+   * 
+ * + * .google.protobuf.StringValue canonical_name = 8; + */ + public com.google.protobuf.StringValue getCanonicalName() { + return canonicalName_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : canonicalName_; + } + /** + *
+   * The fully qualified English name, consisting of the target's name and that
+   * of its parent and country.
+   * 
+ * + * .google.protobuf.StringValue canonical_name = 8; + */ + public com.google.protobuf.StringValueOrBuilder getCanonicalNameOrBuilder() { + return getCanonicalName(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -379,6 +428,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (status_ != com.google.ads.googleads.v0.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus.UNSPECIFIED.getNumber()) { output.writeEnum(7, status_); } + if (canonicalName_ != null) { + output.writeMessage(8, getCanonicalName()); + } unknownFields.writeTo(output); } @@ -411,6 +463,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(7, status_); } + if (canonicalName_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getCanonicalName()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -450,6 +506,11 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getTargetType()); } result = result && status_ == other.status_; + result = result && (hasCanonicalName() == other.hasCanonicalName()); + if (hasCanonicalName()) { + result = result && getCanonicalName() + .equals(other.getCanonicalName()); + } result = result && unknownFields.equals(other.unknownFields); return result; } @@ -481,6 +542,10 @@ public int hashCode() { } hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; + if (hasCanonicalName()) { + hash = (37 * hash) + CANONICAL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getCanonicalName().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -646,6 +711,12 @@ public Builder clear() { } status_ = 0; + if (canonicalNameBuilder_ == null) { + canonicalName_ = null; + } else { + canonicalName_ = null; + canonicalNameBuilder_ = null; + } return this; } @@ -694,6 +765,11 @@ public com.google.ads.googleads.v0.resources.GeoTargetConstant buildPartial() { result.targetType_ = targetTypeBuilder_.build(); } result.status_ = status_; + if (canonicalNameBuilder_ == null) { + result.canonicalName_ = canonicalName_; + } else { + result.canonicalName_ = canonicalNameBuilder_.build(); + } onBuilt(); return result; } @@ -761,6 +837,9 @@ public Builder mergeFrom(com.google.ads.googleads.v0.resources.GeoTargetConstant if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } + if (other.hasCanonicalName()) { + mergeCanonicalName(other.getCanonicalName()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1565,6 +1644,168 @@ public Builder clearStatus() { onChanged(); return this; } + + private com.google.protobuf.StringValue canonicalName_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> canonicalNameBuilder_; + /** + *
+     * The fully qualified English name, consisting of the target's name and that
+     * of its parent and country.
+     * 
+ * + * .google.protobuf.StringValue canonical_name = 8; + */ + public boolean hasCanonicalName() { + return canonicalNameBuilder_ != null || canonicalName_ != null; + } + /** + *
+     * The fully qualified English name, consisting of the target's name and that
+     * of its parent and country.
+     * 
+ * + * .google.protobuf.StringValue canonical_name = 8; + */ + public com.google.protobuf.StringValue getCanonicalName() { + if (canonicalNameBuilder_ == null) { + return canonicalName_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : canonicalName_; + } else { + return canonicalNameBuilder_.getMessage(); + } + } + /** + *
+     * The fully qualified English name, consisting of the target's name and that
+     * of its parent and country.
+     * 
+ * + * .google.protobuf.StringValue canonical_name = 8; + */ + public Builder setCanonicalName(com.google.protobuf.StringValue value) { + if (canonicalNameBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + canonicalName_ = value; + onChanged(); + } else { + canonicalNameBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The fully qualified English name, consisting of the target's name and that
+     * of its parent and country.
+     * 
+ * + * .google.protobuf.StringValue canonical_name = 8; + */ + public Builder setCanonicalName( + com.google.protobuf.StringValue.Builder builderForValue) { + if (canonicalNameBuilder_ == null) { + canonicalName_ = builderForValue.build(); + onChanged(); + } else { + canonicalNameBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The fully qualified English name, consisting of the target's name and that
+     * of its parent and country.
+     * 
+ * + * .google.protobuf.StringValue canonical_name = 8; + */ + public Builder mergeCanonicalName(com.google.protobuf.StringValue value) { + if (canonicalNameBuilder_ == null) { + if (canonicalName_ != null) { + canonicalName_ = + com.google.protobuf.StringValue.newBuilder(canonicalName_).mergeFrom(value).buildPartial(); + } else { + canonicalName_ = value; + } + onChanged(); + } else { + canonicalNameBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The fully qualified English name, consisting of the target's name and that
+     * of its parent and country.
+     * 
+ * + * .google.protobuf.StringValue canonical_name = 8; + */ + public Builder clearCanonicalName() { + if (canonicalNameBuilder_ == null) { + canonicalName_ = null; + onChanged(); + } else { + canonicalName_ = null; + canonicalNameBuilder_ = null; + } + + return this; + } + /** + *
+     * The fully qualified English name, consisting of the target's name and that
+     * of its parent and country.
+     * 
+ * + * .google.protobuf.StringValue canonical_name = 8; + */ + public com.google.protobuf.StringValue.Builder getCanonicalNameBuilder() { + + onChanged(); + return getCanonicalNameFieldBuilder().getBuilder(); + } + /** + *
+     * The fully qualified English name, consisting of the target's name and that
+     * of its parent and country.
+     * 
+ * + * .google.protobuf.StringValue canonical_name = 8; + */ + public com.google.protobuf.StringValueOrBuilder getCanonicalNameOrBuilder() { + if (canonicalNameBuilder_ != null) { + return canonicalNameBuilder_.getMessageOrBuilder(); + } else { + return canonicalName_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : canonicalName_; + } + } + /** + *
+     * The fully qualified English name, consisting of the target's name and that
+     * of its parent and country.
+     * 
+ * + * .google.protobuf.StringValue canonical_name = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getCanonicalNameFieldBuilder() { + if (canonicalNameBuilder_ == null) { + canonicalNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getCanonicalName(), + getParentForChildren(), + isClean()); + canonicalName_ = null; + } + return canonicalNameBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/GeoTargetConstantOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/GeoTargetConstantOrBuilder.java index 5fe51ee8d4..bc047faf7d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/GeoTargetConstantOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/GeoTargetConstantOrBuilder.java @@ -145,4 +145,32 @@ public interface GeoTargetConstantOrBuilder extends * .google.ads.googleads.v0.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus status = 7; */ com.google.ads.googleads.v0.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus getStatus(); + + /** + *
+   * The fully qualified English name, consisting of the target's name and that
+   * of its parent and country.
+   * 
+ * + * .google.protobuf.StringValue canonical_name = 8; + */ + boolean hasCanonicalName(); + /** + *
+   * The fully qualified English name, consisting of the target's name and that
+   * of its parent and country.
+   * 
+ * + * .google.protobuf.StringValue canonical_name = 8; + */ + com.google.protobuf.StringValue getCanonicalName(); + /** + *
+   * The fully qualified English name, consisting of the target's name and that
+   * of its parent and country.
+   * 
+ * + * .google.protobuf.StringValue canonical_name = 8; + */ + com.google.protobuf.StringValueOrBuilder getCanonicalNameOrBuilder(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/GeoTargetConstantProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/GeoTargetConstantProto.java index 5c0d1af7ec..d9e3943194 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/GeoTargetConstantProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/GeoTargetConstantProto.java @@ -32,7 +32,7 @@ public static void registerAllExtensions( "target_constant.proto\022!google.ads.google" + "ads.v0.resources\032>google/ads/googleads/v" + "0/enums/geo_target_constant_status.proto" + - "\032\036google/protobuf/wrappers.proto\"\312\002\n\021Geo" + + "\032\036google/protobuf/wrappers.proto\"\200\003\n\021Geo" + "TargetConstant\022\025\n\rresource_name\030\001 \001(\t\022\'\n" + "\002id\030\003 \001(\0132\033.google.protobuf.Int64Value\022*" + "\n\004name\030\004 \001(\0132\034.google.protobuf.StringVal" + @@ -41,12 +41,15 @@ public static void registerAllExtensions( "ogle.protobuf.StringValue\022b\n\006status\030\007 \001(" + "\0162R.google.ads.googleads.v0.enums.GeoTar" + "getConstantStatusEnum.GeoTargetConstantS" + - "tatusB\333\001\n%com.google.ads.googleads.v0.re" + - "sourcesB\026GeoTargetConstantProtoP\001ZJgoogl" + - "e.golang.org/genproto/googleapis/ads/goo" + - "gleads/v0/resources;resources\242\002\003GAA\252\002!Go" + - "ogle.Ads.GoogleAds.V0.Resources\312\002!Google" + - "\\Ads\\GoogleAds\\V0\\Resourcesb\006proto3" + "tatus\0224\n\016canonical_name\030\010 \001(\0132\034.google.p" + + "rotobuf.StringValueB\203\002\n%com.google.ads.g" + + "oogleads.v0.resourcesB\026GeoTargetConstant" + + "ProtoP\001ZJgoogle.golang.org/genproto/goog" + + "leapis/ads/googleads/v0/resources;resour" + + "ces\242\002\003GAA\252\002!Google.Ads.GoogleAds.V0.Reso" + + "urces\312\002!Google\\Ads\\GoogleAds\\V0\\Resource" + + "s\352\002%Google::Ads::GoogleAds::V0::Resource" + + "sb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -67,7 +70,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_resources_GeoTargetConstant_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_resources_GeoTargetConstant_descriptor, - new java.lang.String[] { "ResourceName", "Id", "Name", "CountryCode", "TargetType", "Status", }); + new java.lang.String[] { "ResourceName", "Id", "Name", "CountryCode", "TargetType", "Status", "CanonicalName", }); com.google.ads.googleads.v0.enums.GeoTargetConstantStatusProto.getDescriptor(); com.google.protobuf.WrappersProto.getDescriptor(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/GoogleAdsFieldProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/GoogleAdsFieldProto.java index 8153f58a9e..a2154d4cde 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/GoogleAdsFieldProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/GoogleAdsFieldProto.java @@ -53,13 +53,14 @@ public static void registerAllExtensions( "ds.v0.enums.GoogleAdsFieldDataTypeEnum.G" + "oogleAdsFieldDataType\022.\n\010type_url\030\r \001(\0132" + "\034.google.protobuf.StringValue\022/\n\013is_repe" + - "ated\030\016 \001(\0132\032.google.protobuf.BoolValueB\330" + - "\001\n%com.google.ads.googleads.v0.resources" + + "ated\030\016 \001(\0132\032.google.protobuf.BoolValueB\200" + + "\002\n%com.google.ads.googleads.v0.resources" + "B\023GoogleAdsFieldProtoP\001ZJgoogle.golang.o" + "rg/genproto/googleapis/ads/googleads/v0/" + "resources;resources\242\002\003GAA\252\002!Google.Ads.G" + "oogleAds.V0.Resources\312\002!Google\\Ads\\Googl" + - "eAds\\V0\\Resourcesb\006proto3" + "eAds\\V0\\Resources\352\002%Google::Ads::GoogleA" + + "ds::V0::Resourcesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/HotelGroupViewProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/HotelGroupViewProto.java index 57d5c127c0..dbf6d24a51 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/HotelGroupViewProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/HotelGroupViewProto.java @@ -31,12 +31,13 @@ public static void registerAllExtensions( "\n8google/ads/googleads/v0/resources/hote" + "l_group_view.proto\022!google.ads.googleads" + ".v0.resources\"\'\n\016HotelGroupView\022\025\n\rresou" + - "rce_name\030\001 \001(\tB\330\001\n%com.google.ads.google" + + "rce_name\030\001 \001(\tB\200\002\n%com.google.ads.google" + "ads.v0.resourcesB\023HotelGroupViewProtoP\001Z" + "Jgoogle.golang.org/genproto/googleapis/a" + "ds/googleads/v0/resources;resources\242\002\003GA" + "A\252\002!Google.Ads.GoogleAds.V0.Resources\312\002!" + - "Google\\Ads\\GoogleAds\\V0\\Resourcesb\006proto" + + "Google\\Ads\\GoogleAds\\V0\\Resources\352\002%Goog" + + "le::Ads::GoogleAds::V0::Resourcesb\006proto" + "3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/HotelPerformanceViewProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/HotelPerformanceViewProto.java index f1846b3430..d8a57d9065 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/HotelPerformanceViewProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/HotelPerformanceViewProto.java @@ -31,13 +31,14 @@ public static void registerAllExtensions( "\n>google/ads/googleads/v0/resources/hote" + "l_performance_view.proto\022!google.ads.goo" + "gleads.v0.resources\"-\n\024HotelPerformanceV" + - "iew\022\025\n\rresource_name\030\001 \001(\tB\336\001\n%com.googl" + + "iew\022\025\n\rresource_name\030\001 \001(\tB\206\002\n%com.googl" + "e.ads.googleads.v0.resourcesB\031HotelPerfo" + "rmanceViewProtoP\001ZJgoogle.golang.org/gen" + "proto/googleapis/ads/googleads/v0/resour" + "ces;resources\242\002\003GAA\252\002!Google.Ads.GoogleA" + "ds.V0.Resources\312\002!Google\\Ads\\GoogleAds\\V" + - "0\\Resourcesb\006proto3" + "0\\Resources\352\002%Google::Ads::GoogleAds::V0" + + "::Resourcesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlan.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlan.java index a9df157a0d..be24206aff 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlan.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlan.java @@ -6,6 +6,8 @@ /** *
  * A Keyword Planner plan.
+ * Max number of saved keyword plans: 10000.
+ * It's possible to remove plans if limit is reached.
  * 
* * Protobuf type {@code google.ads.googleads.v0.resources.KeywordPlan} @@ -481,6 +483,8 @@ protected Builder newBuilderForType( /** *
    * A Keyword Planner plan.
+   * Max number of saved keyword plans: 10000.
+   * It's possible to remove plans if limit is reached.
    * 
* * Protobuf type {@code google.ads.googleads.v0.resources.KeywordPlan} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanAdGroup.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanAdGroup.java index 7ea9ed1a88..f0ebba063a 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanAdGroup.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanAdGroup.java @@ -6,6 +6,7 @@ /** *
  * A Keyword Planner ad group.
+ * Max number of keyword plan ad groups per plan: 50.
  * 
* * Protobuf type {@code google.ads.googleads.v0.resources.KeywordPlanAdGroup} @@ -549,6 +550,7 @@ protected Builder newBuilderForType( /** *
    * A Keyword Planner ad group.
+   * Max number of keyword plan ad groups per plan: 50.
    * 
* * Protobuf type {@code google.ads.googleads.v0.resources.KeywordPlanAdGroup} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanAdGroupProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanAdGroupProto.java index dc469040ee..63f76147d7 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanAdGroupProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanAdGroupProto.java @@ -37,12 +37,13 @@ public static void registerAllExtensions( "\002id\030\003 \001(\0132\033.google.protobuf.Int64Value\022*" + "\n\004name\030\004 \001(\0132\034.google.protobuf.StringVal" + "ue\0223\n\016cpc_bid_micros\030\005 \001(\0132\033.google.prot" + - "obuf.Int64ValueB\334\001\n%com.google.ads.googl" + + "obuf.Int64ValueB\204\002\n%com.google.ads.googl" + "eads.v0.resourcesB\027KeywordPlanAdGroupPro" + "toP\001ZJgoogle.golang.org/genproto/googlea" + "pis/ads/googleads/v0/resources;resources" + "\242\002\003GAA\252\002!Google.Ads.GoogleAds.V0.Resourc" + - "es\312\002!Google\\Ads\\GoogleAds\\V0\\Resourcesb\006" + + "es\312\002!Google\\Ads\\GoogleAds\\V0\\Resources\352\002" + + "%Google::Ads::GoogleAds::V0::Resourcesb\006" + "proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanCampaign.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanCampaign.java index 2facc86cc7..dbcd596cc9 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanCampaign.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanCampaign.java @@ -6,6 +6,7 @@ /** *
  * A Keyword Plan campaign.
+ * Max number of keyword plan campaigns per plan allowed: 1.
  * 
* * Protobuf type {@code google.ads.googleads.v0.resources.KeywordPlanCampaign} @@ -327,6 +328,7 @@ public com.google.protobuf.StringValueOrBuilder getNameOrBuilder() { /** *
    * The languages targeted for the Keyword Plan campaign.
+   * Max allowed: 1.
    * 
* * repeated .google.protobuf.StringValue language_constants = 5; @@ -337,6 +339,7 @@ public java.util.List getLanguageConstantsList( /** *
    * The languages targeted for the Keyword Plan campaign.
+   * Max allowed: 1.
    * 
* * repeated .google.protobuf.StringValue language_constants = 5; @@ -348,6 +351,7 @@ public java.util.List getLanguageConstantsList( /** *
    * The languages targeted for the Keyword Plan campaign.
+   * Max allowed: 1.
    * 
* * repeated .google.protobuf.StringValue language_constants = 5; @@ -358,6 +362,7 @@ public int getLanguageConstantsCount() { /** *
    * The languages targeted for the Keyword Plan campaign.
+   * Max allowed: 1.
    * 
* * repeated .google.protobuf.StringValue language_constants = 5; @@ -368,6 +373,7 @@ public com.google.protobuf.StringValue getLanguageConstants(int index) { /** *
    * The languages targeted for the Keyword Plan campaign.
+   * Max allowed: 1.
    * 
* * repeated .google.protobuf.StringValue language_constants = 5; @@ -453,6 +459,7 @@ public com.google.protobuf.Int64ValueOrBuilder getCpcBidMicrosOrBuilder() { /** *
    * The geo targets.
+   * Max number allowed: 20.
    * 
* * repeated .google.ads.googleads.v0.resources.KeywordPlanGeoTarget geo_targets = 8; @@ -463,6 +470,7 @@ public java.util.List * The geo targets. + * Max number allowed: 20. *
* * repeated .google.ads.googleads.v0.resources.KeywordPlanGeoTarget geo_targets = 8; @@ -474,6 +482,7 @@ public java.util.List * The geo targets. + * Max number allowed: 20. *
* * repeated .google.ads.googleads.v0.resources.KeywordPlanGeoTarget geo_targets = 8; @@ -484,6 +493,7 @@ public int getGeoTargetsCount() { /** *
    * The geo targets.
+   * Max number allowed: 20.
    * 
* * repeated .google.ads.googleads.v0.resources.KeywordPlanGeoTarget geo_targets = 8; @@ -494,6 +504,7 @@ public com.google.ads.googleads.v0.resources.KeywordPlanGeoTarget getGeoTargets( /** *
    * The geo targets.
+   * Max number allowed: 20.
    * 
* * repeated .google.ads.googleads.v0.resources.KeywordPlanGeoTarget geo_targets = 8; @@ -761,6 +772,7 @@ protected Builder newBuilderForType( /** *
    * A Keyword Plan campaign.
+   * Max number of keyword plan campaigns per plan allowed: 1.
    * 
* * Protobuf type {@code google.ads.googleads.v0.resources.KeywordPlanCampaign} @@ -1651,6 +1663,7 @@ private void ensureLanguageConstantsIsMutable() { /** *
      * The languages targeted for the Keyword Plan campaign.
+     * Max allowed: 1.
      * 
* * repeated .google.protobuf.StringValue language_constants = 5; @@ -1665,6 +1678,7 @@ public java.util.List getLanguageConstantsList( /** *
      * The languages targeted for the Keyword Plan campaign.
+     * Max allowed: 1.
      * 
* * repeated .google.protobuf.StringValue language_constants = 5; @@ -1679,6 +1693,7 @@ public int getLanguageConstantsCount() { /** *
      * The languages targeted for the Keyword Plan campaign.
+     * Max allowed: 1.
      * 
* * repeated .google.protobuf.StringValue language_constants = 5; @@ -1693,6 +1708,7 @@ public com.google.protobuf.StringValue getLanguageConstants(int index) { /** *
      * The languages targeted for the Keyword Plan campaign.
+     * Max allowed: 1.
      * 
* * repeated .google.protobuf.StringValue language_constants = 5; @@ -1714,6 +1730,7 @@ public Builder setLanguageConstants( /** *
      * The languages targeted for the Keyword Plan campaign.
+     * Max allowed: 1.
      * 
* * repeated .google.protobuf.StringValue language_constants = 5; @@ -1732,6 +1749,7 @@ public Builder setLanguageConstants( /** *
      * The languages targeted for the Keyword Plan campaign.
+     * Max allowed: 1.
      * 
* * repeated .google.protobuf.StringValue language_constants = 5; @@ -1752,6 +1770,7 @@ public Builder addLanguageConstants(com.google.protobuf.StringValue value) { /** *
      * The languages targeted for the Keyword Plan campaign.
+     * Max allowed: 1.
      * 
* * repeated .google.protobuf.StringValue language_constants = 5; @@ -1773,6 +1792,7 @@ public Builder addLanguageConstants( /** *
      * The languages targeted for the Keyword Plan campaign.
+     * Max allowed: 1.
      * 
* * repeated .google.protobuf.StringValue language_constants = 5; @@ -1791,6 +1811,7 @@ public Builder addLanguageConstants( /** *
      * The languages targeted for the Keyword Plan campaign.
+     * Max allowed: 1.
      * 
* * repeated .google.protobuf.StringValue language_constants = 5; @@ -1809,6 +1830,7 @@ public Builder addLanguageConstants( /** *
      * The languages targeted for the Keyword Plan campaign.
+     * Max allowed: 1.
      * 
* * repeated .google.protobuf.StringValue language_constants = 5; @@ -1828,6 +1850,7 @@ public Builder addAllLanguageConstants( /** *
      * The languages targeted for the Keyword Plan campaign.
+     * Max allowed: 1.
      * 
* * repeated .google.protobuf.StringValue language_constants = 5; @@ -1845,6 +1868,7 @@ public Builder clearLanguageConstants() { /** *
      * The languages targeted for the Keyword Plan campaign.
+     * Max allowed: 1.
      * 
* * repeated .google.protobuf.StringValue language_constants = 5; @@ -1862,6 +1886,7 @@ public Builder removeLanguageConstants(int index) { /** *
      * The languages targeted for the Keyword Plan campaign.
+     * Max allowed: 1.
      * 
* * repeated .google.protobuf.StringValue language_constants = 5; @@ -1873,6 +1898,7 @@ public com.google.protobuf.StringValue.Builder getLanguageConstantsBuilder( /** *
      * The languages targeted for the Keyword Plan campaign.
+     * Max allowed: 1.
      * 
* * repeated .google.protobuf.StringValue language_constants = 5; @@ -1887,6 +1913,7 @@ public com.google.protobuf.StringValueOrBuilder getLanguageConstantsOrBuilder( /** *
      * The languages targeted for the Keyword Plan campaign.
+     * Max allowed: 1.
      * 
* * repeated .google.protobuf.StringValue language_constants = 5; @@ -1902,6 +1929,7 @@ public com.google.protobuf.StringValueOrBuilder getLanguageConstantsOrBuilder( /** *
      * The languages targeted for the Keyword Plan campaign.
+     * Max allowed: 1.
      * 
* * repeated .google.protobuf.StringValue language_constants = 5; @@ -1913,6 +1941,7 @@ public com.google.protobuf.StringValue.Builder addLanguageConstantsBuilder() { /** *
      * The languages targeted for the Keyword Plan campaign.
+     * Max allowed: 1.
      * 
* * repeated .google.protobuf.StringValue language_constants = 5; @@ -1925,6 +1954,7 @@ public com.google.protobuf.StringValue.Builder addLanguageConstantsBuilder( /** *
      * The languages targeted for the Keyword Plan campaign.
+     * Max allowed: 1.
      * 
* * repeated .google.protobuf.StringValue language_constants = 5; @@ -2218,6 +2248,7 @@ private void ensureGeoTargetsIsMutable() { /** *
      * The geo targets.
+     * Max number allowed: 20.
      * 
* * repeated .google.ads.googleads.v0.resources.KeywordPlanGeoTarget geo_targets = 8; @@ -2232,6 +2263,7 @@ public java.util.List * The geo targets. + * Max number allowed: 20. *
* * repeated .google.ads.googleads.v0.resources.KeywordPlanGeoTarget geo_targets = 8; @@ -2246,6 +2278,7 @@ public int getGeoTargetsCount() { /** *
      * The geo targets.
+     * Max number allowed: 20.
      * 
* * repeated .google.ads.googleads.v0.resources.KeywordPlanGeoTarget geo_targets = 8; @@ -2260,6 +2293,7 @@ public com.google.ads.googleads.v0.resources.KeywordPlanGeoTarget getGeoTargets( /** *
      * The geo targets.
+     * Max number allowed: 20.
      * 
* * repeated .google.ads.googleads.v0.resources.KeywordPlanGeoTarget geo_targets = 8; @@ -2281,6 +2315,7 @@ public Builder setGeoTargets( /** *
      * The geo targets.
+     * Max number allowed: 20.
      * 
* * repeated .google.ads.googleads.v0.resources.KeywordPlanGeoTarget geo_targets = 8; @@ -2299,6 +2334,7 @@ public Builder setGeoTargets( /** *
      * The geo targets.
+     * Max number allowed: 20.
      * 
* * repeated .google.ads.googleads.v0.resources.KeywordPlanGeoTarget geo_targets = 8; @@ -2319,6 +2355,7 @@ public Builder addGeoTargets(com.google.ads.googleads.v0.resources.KeywordPlanGe /** *
      * The geo targets.
+     * Max number allowed: 20.
      * 
* * repeated .google.ads.googleads.v0.resources.KeywordPlanGeoTarget geo_targets = 8; @@ -2340,6 +2377,7 @@ public Builder addGeoTargets( /** *
      * The geo targets.
+     * Max number allowed: 20.
      * 
* * repeated .google.ads.googleads.v0.resources.KeywordPlanGeoTarget geo_targets = 8; @@ -2358,6 +2396,7 @@ public Builder addGeoTargets( /** *
      * The geo targets.
+     * Max number allowed: 20.
      * 
* * repeated .google.ads.googleads.v0.resources.KeywordPlanGeoTarget geo_targets = 8; @@ -2376,6 +2415,7 @@ public Builder addGeoTargets( /** *
      * The geo targets.
+     * Max number allowed: 20.
      * 
* * repeated .google.ads.googleads.v0.resources.KeywordPlanGeoTarget geo_targets = 8; @@ -2395,6 +2435,7 @@ public Builder addAllGeoTargets( /** *
      * The geo targets.
+     * Max number allowed: 20.
      * 
* * repeated .google.ads.googleads.v0.resources.KeywordPlanGeoTarget geo_targets = 8; @@ -2412,6 +2453,7 @@ public Builder clearGeoTargets() { /** *
      * The geo targets.
+     * Max number allowed: 20.
      * 
* * repeated .google.ads.googleads.v0.resources.KeywordPlanGeoTarget geo_targets = 8; @@ -2429,6 +2471,7 @@ public Builder removeGeoTargets(int index) { /** *
      * The geo targets.
+     * Max number allowed: 20.
      * 
* * repeated .google.ads.googleads.v0.resources.KeywordPlanGeoTarget geo_targets = 8; @@ -2440,6 +2483,7 @@ public com.google.ads.googleads.v0.resources.KeywordPlanGeoTarget.Builder getGeo /** *
      * The geo targets.
+     * Max number allowed: 20.
      * 
* * repeated .google.ads.googleads.v0.resources.KeywordPlanGeoTarget geo_targets = 8; @@ -2454,6 +2498,7 @@ public com.google.ads.googleads.v0.resources.KeywordPlanGeoTargetOrBuilder getGe /** *
      * The geo targets.
+     * Max number allowed: 20.
      * 
* * repeated .google.ads.googleads.v0.resources.KeywordPlanGeoTarget geo_targets = 8; @@ -2469,6 +2514,7 @@ public com.google.ads.googleads.v0.resources.KeywordPlanGeoTargetOrBuilder getGe /** *
      * The geo targets.
+     * Max number allowed: 20.
      * 
* * repeated .google.ads.googleads.v0.resources.KeywordPlanGeoTarget geo_targets = 8; @@ -2480,6 +2526,7 @@ public com.google.ads.googleads.v0.resources.KeywordPlanGeoTarget.Builder addGeo /** *
      * The geo targets.
+     * Max number allowed: 20.
      * 
* * repeated .google.ads.googleads.v0.resources.KeywordPlanGeoTarget geo_targets = 8; @@ -2492,6 +2539,7 @@ public com.google.ads.googleads.v0.resources.KeywordPlanGeoTarget.Builder addGeo /** *
      * The geo targets.
+     * Max number allowed: 20.
      * 
* * repeated .google.ads.googleads.v0.resources.KeywordPlanGeoTarget geo_targets = 8; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanCampaignOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanCampaignOrBuilder.java index e39ee244f2..598cedbec8 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanCampaignOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanCampaignOrBuilder.java @@ -113,6 +113,7 @@ public interface KeywordPlanCampaignOrBuilder extends /** *
    * The languages targeted for the Keyword Plan campaign.
+   * Max allowed: 1.
    * 
* * repeated .google.protobuf.StringValue language_constants = 5; @@ -122,6 +123,7 @@ public interface KeywordPlanCampaignOrBuilder extends /** *
    * The languages targeted for the Keyword Plan campaign.
+   * Max allowed: 1.
    * 
* * repeated .google.protobuf.StringValue language_constants = 5; @@ -130,6 +132,7 @@ public interface KeywordPlanCampaignOrBuilder extends /** *
    * The languages targeted for the Keyword Plan campaign.
+   * Max allowed: 1.
    * 
* * repeated .google.protobuf.StringValue language_constants = 5; @@ -138,6 +141,7 @@ public interface KeywordPlanCampaignOrBuilder extends /** *
    * The languages targeted for the Keyword Plan campaign.
+   * Max allowed: 1.
    * 
* * repeated .google.protobuf.StringValue language_constants = 5; @@ -147,6 +151,7 @@ public interface KeywordPlanCampaignOrBuilder extends /** *
    * The languages targeted for the Keyword Plan campaign.
+   * Max allowed: 1.
    * 
* * repeated .google.protobuf.StringValue language_constants = 5; @@ -212,6 +217,7 @@ com.google.protobuf.StringValueOrBuilder getLanguageConstantsOrBuilder( /** *
    * The geo targets.
+   * Max number allowed: 20.
    * 
* * repeated .google.ads.googleads.v0.resources.KeywordPlanGeoTarget geo_targets = 8; @@ -221,6 +227,7 @@ com.google.protobuf.StringValueOrBuilder getLanguageConstantsOrBuilder( /** *
    * The geo targets.
+   * Max number allowed: 20.
    * 
* * repeated .google.ads.googleads.v0.resources.KeywordPlanGeoTarget geo_targets = 8; @@ -229,6 +236,7 @@ com.google.protobuf.StringValueOrBuilder getLanguageConstantsOrBuilder( /** *
    * The geo targets.
+   * Max number allowed: 20.
    * 
* * repeated .google.ads.googleads.v0.resources.KeywordPlanGeoTarget geo_targets = 8; @@ -237,6 +245,7 @@ com.google.protobuf.StringValueOrBuilder getLanguageConstantsOrBuilder( /** *
    * The geo targets.
+   * Max number allowed: 20.
    * 
* * repeated .google.ads.googleads.v0.resources.KeywordPlanGeoTarget geo_targets = 8; @@ -246,6 +255,7 @@ com.google.protobuf.StringValueOrBuilder getLanguageConstantsOrBuilder( /** *
    * The geo targets.
+   * Max number allowed: 20.
    * 
* * repeated .google.ads.googleads.v0.resources.KeywordPlanGeoTarget geo_targets = 8; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanCampaignProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanCampaignProto.java index ed2d598c04..6e8f20735b 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanCampaignProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanCampaignProto.java @@ -51,13 +51,14 @@ public static void registerAllExtensions( "ts\030\010 \003(\01327.google.ads.googleads.v0.resou" + "rces.KeywordPlanGeoTarget\"Q\n\024KeywordPlan" + "GeoTarget\0229\n\023geo_target_constant\030\001 \001(\0132\034" + - ".google.protobuf.StringValueB\335\001\n%com.goo" + + ".google.protobuf.StringValueB\205\002\n%com.goo" + "gle.ads.googleads.v0.resourcesB\030KeywordP" + "lanCampaignProtoP\001ZJgoogle.golang.org/ge" + "nproto/googleapis/ads/googleads/v0/resou" + "rces;resources\242\002\003GAA\252\002!Google.Ads.Google" + "Ads.V0.Resources\312\002!Google\\Ads\\GoogleAds\\" + - "V0\\Resourcesb\006proto3" + "V0\\Resources\352\002%Google::Ads::GoogleAds::V" + + "0::Resourcesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanKeyword.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanKeyword.java index 27d10dbbed..807850e84f 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanKeyword.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanKeyword.java @@ -6,6 +6,7 @@ /** *
  * A Keyword Plan ad group keyword.
+ * Max number of keyword plan keywords per plan: 2500.
  * 
* * Protobuf type {@code google.ads.googleads.v0.resources.KeywordPlanKeyword} @@ -582,6 +583,7 @@ protected Builder newBuilderForType( /** *
    * A Keyword Plan ad group keyword.
+   * Max number of keyword plan keywords per plan: 2500.
    * 
* * Protobuf type {@code google.ads.googleads.v0.resources.KeywordPlanKeyword} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanKeywordProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanKeywordProto.java index 58b2a4e66b..bc8d81a87d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanKeywordProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanKeywordProto.java @@ -41,12 +41,13 @@ public static void registerAllExtensions( "google.ads.googleads.v0.enums.KeywordMat" + "chTypeEnum.KeywordMatchType\0223\n\016cpc_bid_m" + "icros\030\006 \001(\0132\033.google.protobuf.Int64Value" + - "B\334\001\n%com.google.ads.googleads.v0.resourc" + + "B\204\002\n%com.google.ads.googleads.v0.resourc" + "esB\027KeywordPlanKeywordProtoP\001ZJgoogle.go" + "lang.org/genproto/googleapis/ads/googlea" + "ds/v0/resources;resources\242\002\003GAA\252\002!Google" + ".Ads.GoogleAds.V0.Resources\312\002!Google\\Ads" + - "\\GoogleAds\\V0\\Resourcesb\006proto3" + "\\GoogleAds\\V0\\Resources\352\002%Google::Ads::G" + + "oogleAds::V0::Resourcesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanNegativeKeyword.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanNegativeKeyword.java index fdb7ff05fd..6d3de375b3 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanNegativeKeyword.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanNegativeKeyword.java @@ -6,6 +6,7 @@ /** *
  * A Keyword Plan negative keyword.
+ * Max number of keyword plan negative keywords per plan: 1000.
  * 
* * Protobuf type {@code google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword} @@ -517,6 +518,7 @@ protected Builder newBuilderForType( /** *
    * A Keyword Plan negative keyword.
+   * Max number of keyword plan negative keywords per plan: 1000.
    * 
* * Protobuf type {@code google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanNegativeKeywordProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanNegativeKeywordProto.java index dfd10b9fe3..fee6f09ed7 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanNegativeKeywordProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanNegativeKeywordProto.java @@ -40,12 +40,13 @@ public static void registerAllExtensions( " \001(\0132\034.google.protobuf.StringValue\022X\n\nma" + "tch_type\030\005 \001(\0162D.google.ads.googleads.v0" + ".enums.KeywordMatchTypeEnum.KeywordMatch" + - "TypeB\344\001\n%com.google.ads.googleads.v0.res" + + "TypeB\214\002\n%com.google.ads.googleads.v0.res" + "ourcesB\037KeywordPlanNegativeKeywordProtoP" + "\001ZJgoogle.golang.org/genproto/googleapis" + "/ads/googleads/v0/resources;resources\242\002\003" + "GAA\252\002!Google.Ads.GoogleAds.V0.Resources\312" + - "\002!Google\\Ads\\GoogleAds\\V0\\Resourcesb\006pro" + + "\002!Google\\Ads\\GoogleAds\\V0\\Resources\352\002%Go" + + "ogle::Ads::GoogleAds::V0::Resourcesb\006pro" + "to3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanProto.java index d2acc65e0b..968bd41e10 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordPlanProto.java @@ -49,12 +49,13 @@ public static void registerAllExtensions( ".v0.enums.KeywordPlanForecastIntervalEnu" + "m.KeywordPlanForecastIntervalH\000\022?\n\ndate_" + "range\030\002 \001(\0132).google.ads.googleads.v0.co" + - "mmon.DateRangeH\000B\n\n\010intervalB\325\001\n%com.goo" + + "mmon.DateRangeH\000B\n\n\010intervalB\375\001\n%com.goo" + "gle.ads.googleads.v0.resourcesB\020KeywordP" + "lanProtoP\001ZJgoogle.golang.org/genproto/g" + "oogleapis/ads/googleads/v0/resources;res" + "ources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V0.R" + "esources\312\002!Google\\Ads\\GoogleAds\\V0\\Resou" + + "rces\352\002%Google::Ads::GoogleAds::V0::Resou" + "rcesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordViewProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordViewProto.java index 81315550bc..6920cec742 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordViewProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/KeywordViewProto.java @@ -31,12 +31,13 @@ public static void registerAllExtensions( "\n4google/ads/googleads/v0/resources/keyw" + "ord_view.proto\022!google.ads.googleads.v0." + "resources\"$\n\013KeywordView\022\025\n\rresource_nam" + - "e\030\001 \001(\tB\325\001\n%com.google.ads.googleads.v0." + + "e\030\001 \001(\tB\375\001\n%com.google.ads.googleads.v0." + "resourcesB\020KeywordViewProtoP\001ZJgoogle.go" + "lang.org/genproto/googleapis/ads/googlea" + "ds/v0/resources;resources\242\002\003GAA\252\002!Google" + ".Ads.GoogleAds.V0.Resources\312\002!Google\\Ads" + - "\\GoogleAds\\V0\\Resourcesb\006proto3" + "\\GoogleAds\\V0\\Resources\352\002%Google::Ads::G" + + "oogleAds::V0::Resourcesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/LanguageConstantProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/LanguageConstantProto.java index 27f54fc5d8..56f85552c2 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/LanguageConstantProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/LanguageConstantProto.java @@ -35,12 +35,13 @@ public static void registerAllExtensions( "name\030\001 \001(\t\022\'\n\002id\030\002 \001(\0132\033.google.protobuf" + ".Int64Value\022*\n\004code\030\003 \001(\0132\034.google.proto" + "buf.StringValue\022*\n\004name\030\004 \001(\0132\034.google.p" + - "rotobuf.StringValueB\332\001\n%com.google.ads.g" + + "rotobuf.StringValueB\202\002\n%com.google.ads.g" + "oogleads.v0.resourcesB\025LanguageConstantP" + "rotoP\001ZJgoogle.golang.org/genproto/googl" + "eapis/ads/googleads/v0/resources;resourc" + "es\242\002\003GAA\252\002!Google.Ads.GoogleAds.V0.Resou" + "rces\312\002!Google\\Ads\\GoogleAds\\V0\\Resources" + + "\352\002%Google::Ads::GoogleAds::V0::Resources" + "b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/ManagedPlacementViewProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/ManagedPlacementViewProto.java index 732699afb6..0969db6a78 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/ManagedPlacementViewProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/ManagedPlacementViewProto.java @@ -31,13 +31,14 @@ public static void registerAllExtensions( "\n>google/ads/googleads/v0/resources/mana" + "ged_placement_view.proto\022!google.ads.goo" + "gleads.v0.resources\"-\n\024ManagedPlacementV" + - "iew\022\025\n\rresource_name\030\001 \001(\tB\336\001\n%com.googl" + + "iew\022\025\n\rresource_name\030\001 \001(\tB\206\002\n%com.googl" + "e.ads.googleads.v0.resourcesB\031ManagedPla" + "cementViewProtoP\001ZJgoogle.golang.org/gen" + "proto/googleapis/ads/googleads/v0/resour" + "ces;resources\242\002\003GAA\252\002!Google.Ads.GoogleA" + "ds.V0.Resources\312\002!Google\\Ads\\GoogleAds\\V" + - "0\\Resourcesb\006proto3" + "0\\Resources\352\002%Google::Ads::GoogleAds::V0" + + "::Resourcesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MediaAudio.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MediaAudio.java new file mode 100644 index 0000000000..5cbba6c386 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MediaAudio.java @@ -0,0 +1,651 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/resources/media_file.proto + +package com.google.ads.googleads.v0.resources; + +/** + *
+ * Encapsulates an Audio.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.resources.MediaAudio} + */ +public final class MediaAudio extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.resources.MediaAudio) + MediaAudioOrBuilder { +private static final long serialVersionUID = 0L; + // Use MediaAudio.newBuilder() to construct. + private MediaAudio(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MediaAudio() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MediaAudio( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.Int64Value.Builder subBuilder = null; + if (adDurationMillis_ != null) { + subBuilder = adDurationMillis_.toBuilder(); + } + adDurationMillis_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(adDurationMillis_); + adDurationMillis_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.resources.MediaFileProto.internal_static_google_ads_googleads_v0_resources_MediaAudio_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.resources.MediaFileProto.internal_static_google_ads_googleads_v0_resources_MediaAudio_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.resources.MediaAudio.class, com.google.ads.googleads.v0.resources.MediaAudio.Builder.class); + } + + public static final int AD_DURATION_MILLIS_FIELD_NUMBER = 1; + private com.google.protobuf.Int64Value adDurationMillis_; + /** + *
+   * The duration of the Audio in milliseconds.
+   * 
+ * + * .google.protobuf.Int64Value ad_duration_millis = 1; + */ + public boolean hasAdDurationMillis() { + return adDurationMillis_ != null; + } + /** + *
+   * The duration of the Audio in milliseconds.
+   * 
+ * + * .google.protobuf.Int64Value ad_duration_millis = 1; + */ + public com.google.protobuf.Int64Value getAdDurationMillis() { + return adDurationMillis_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : adDurationMillis_; + } + /** + *
+   * The duration of the Audio in milliseconds.
+   * 
+ * + * .google.protobuf.Int64Value ad_duration_millis = 1; + */ + public com.google.protobuf.Int64ValueOrBuilder getAdDurationMillisOrBuilder() { + return getAdDurationMillis(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (adDurationMillis_ != null) { + output.writeMessage(1, getAdDurationMillis()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (adDurationMillis_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAdDurationMillis()); + } + size += unknownFields.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.ads.googleads.v0.resources.MediaAudio)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.resources.MediaAudio other = (com.google.ads.googleads.v0.resources.MediaAudio) obj; + + boolean result = true; + result = result && (hasAdDurationMillis() == other.hasAdDurationMillis()); + if (hasAdDurationMillis()) { + result = result && getAdDurationMillis() + .equals(other.getAdDurationMillis()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAdDurationMillis()) { + hash = (37 * hash) + AD_DURATION_MILLIS_FIELD_NUMBER; + hash = (53 * hash) + getAdDurationMillis().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.resources.MediaAudio parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.MediaAudio parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.resources.MediaAudio parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.MediaAudio 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.ads.googleads.v0.resources.MediaAudio parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.MediaAudio parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.resources.MediaAudio parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.MediaAudio 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.ads.googleads.v0.resources.MediaAudio parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.MediaAudio 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.ads.googleads.v0.resources.MediaAudio parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.MediaAudio 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.ads.googleads.v0.resources.MediaAudio 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; + } + /** + *
+   * Encapsulates an Audio.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.resources.MediaAudio} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.resources.MediaAudio) + com.google.ads.googleads.v0.resources.MediaAudioOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.resources.MediaFileProto.internal_static_google_ads_googleads_v0_resources_MediaAudio_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.resources.MediaFileProto.internal_static_google_ads_googleads_v0_resources_MediaAudio_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.resources.MediaAudio.class, com.google.ads.googleads.v0.resources.MediaAudio.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.resources.MediaAudio.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (adDurationMillisBuilder_ == null) { + adDurationMillis_ = null; + } else { + adDurationMillis_ = null; + adDurationMillisBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.resources.MediaFileProto.internal_static_google_ads_googleads_v0_resources_MediaAudio_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.MediaAudio getDefaultInstanceForType() { + return com.google.ads.googleads.v0.resources.MediaAudio.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.MediaAudio build() { + com.google.ads.googleads.v0.resources.MediaAudio result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.MediaAudio buildPartial() { + com.google.ads.googleads.v0.resources.MediaAudio result = new com.google.ads.googleads.v0.resources.MediaAudio(this); + if (adDurationMillisBuilder_ == null) { + result.adDurationMillis_ = adDurationMillis_; + } else { + result.adDurationMillis_ = adDurationMillisBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.resources.MediaAudio) { + return mergeFrom((com.google.ads.googleads.v0.resources.MediaAudio)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.resources.MediaAudio other) { + if (other == com.google.ads.googleads.v0.resources.MediaAudio.getDefaultInstance()) return this; + if (other.hasAdDurationMillis()) { + mergeAdDurationMillis(other.getAdDurationMillis()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.resources.MediaAudio parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.resources.MediaAudio) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Int64Value adDurationMillis_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> adDurationMillisBuilder_; + /** + *
+     * The duration of the Audio in milliseconds.
+     * 
+ * + * .google.protobuf.Int64Value ad_duration_millis = 1; + */ + public boolean hasAdDurationMillis() { + return adDurationMillisBuilder_ != null || adDurationMillis_ != null; + } + /** + *
+     * The duration of the Audio in milliseconds.
+     * 
+ * + * .google.protobuf.Int64Value ad_duration_millis = 1; + */ + public com.google.protobuf.Int64Value getAdDurationMillis() { + if (adDurationMillisBuilder_ == null) { + return adDurationMillis_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : adDurationMillis_; + } else { + return adDurationMillisBuilder_.getMessage(); + } + } + /** + *
+     * The duration of the Audio in milliseconds.
+     * 
+ * + * .google.protobuf.Int64Value ad_duration_millis = 1; + */ + public Builder setAdDurationMillis(com.google.protobuf.Int64Value value) { + if (adDurationMillisBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + adDurationMillis_ = value; + onChanged(); + } else { + adDurationMillisBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The duration of the Audio in milliseconds.
+     * 
+ * + * .google.protobuf.Int64Value ad_duration_millis = 1; + */ + public Builder setAdDurationMillis( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (adDurationMillisBuilder_ == null) { + adDurationMillis_ = builderForValue.build(); + onChanged(); + } else { + adDurationMillisBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The duration of the Audio in milliseconds.
+     * 
+ * + * .google.protobuf.Int64Value ad_duration_millis = 1; + */ + public Builder mergeAdDurationMillis(com.google.protobuf.Int64Value value) { + if (adDurationMillisBuilder_ == null) { + if (adDurationMillis_ != null) { + adDurationMillis_ = + com.google.protobuf.Int64Value.newBuilder(adDurationMillis_).mergeFrom(value).buildPartial(); + } else { + adDurationMillis_ = value; + } + onChanged(); + } else { + adDurationMillisBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The duration of the Audio in milliseconds.
+     * 
+ * + * .google.protobuf.Int64Value ad_duration_millis = 1; + */ + public Builder clearAdDurationMillis() { + if (adDurationMillisBuilder_ == null) { + adDurationMillis_ = null; + onChanged(); + } else { + adDurationMillis_ = null; + adDurationMillisBuilder_ = null; + } + + return this; + } + /** + *
+     * The duration of the Audio in milliseconds.
+     * 
+ * + * .google.protobuf.Int64Value ad_duration_millis = 1; + */ + public com.google.protobuf.Int64Value.Builder getAdDurationMillisBuilder() { + + onChanged(); + return getAdDurationMillisFieldBuilder().getBuilder(); + } + /** + *
+     * The duration of the Audio in milliseconds.
+     * 
+ * + * .google.protobuf.Int64Value ad_duration_millis = 1; + */ + public com.google.protobuf.Int64ValueOrBuilder getAdDurationMillisOrBuilder() { + if (adDurationMillisBuilder_ != null) { + return adDurationMillisBuilder_.getMessageOrBuilder(); + } else { + return adDurationMillis_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : adDurationMillis_; + } + } + /** + *
+     * The duration of the Audio in milliseconds.
+     * 
+ * + * .google.protobuf.Int64Value ad_duration_millis = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + getAdDurationMillisFieldBuilder() { + if (adDurationMillisBuilder_ == null) { + adDurationMillisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getAdDurationMillis(), + getParentForChildren(), + isClean()); + adDurationMillis_ = null; + } + return adDurationMillisBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.resources.MediaAudio) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.resources.MediaAudio) + private static final com.google.ads.googleads.v0.resources.MediaAudio DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.resources.MediaAudio(); + } + + public static com.google.ads.googleads.v0.resources.MediaAudio getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MediaAudio parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MediaAudio(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.resources.MediaAudio getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MediaAudioOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MediaAudioOrBuilder.java new file mode 100644 index 0000000000..361ab8a83b --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MediaAudioOrBuilder.java @@ -0,0 +1,34 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/resources/media_file.proto + +package com.google.ads.googleads.v0.resources; + +public interface MediaAudioOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.resources.MediaAudio) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The duration of the Audio in milliseconds.
+   * 
+ * + * .google.protobuf.Int64Value ad_duration_millis = 1; + */ + boolean hasAdDurationMillis(); + /** + *
+   * The duration of the Audio in milliseconds.
+   * 
+ * + * .google.protobuf.Int64Value ad_duration_millis = 1; + */ + com.google.protobuf.Int64Value getAdDurationMillis(); + /** + *
+   * The duration of the Audio in milliseconds.
+   * 
+ * + * .google.protobuf.Int64Value ad_duration_millis = 1; + */ + com.google.protobuf.Int64ValueOrBuilder getAdDurationMillisOrBuilder(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MediaFile.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MediaFile.java index d7c4d70416..1dabe07a73 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MediaFile.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MediaFile.java @@ -147,6 +147,34 @@ private MediaFile( break; } + case 82: { + com.google.ads.googleads.v0.resources.MediaAudio.Builder subBuilder = null; + if (mediatypeCase_ == 10) { + subBuilder = ((com.google.ads.googleads.v0.resources.MediaAudio) mediatype_).toBuilder(); + } + mediatype_ = + input.readMessage(com.google.ads.googleads.v0.resources.MediaAudio.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.ads.googleads.v0.resources.MediaAudio) mediatype_); + mediatype_ = subBuilder.buildPartial(); + } + mediatypeCase_ = 10; + break; + } + case 90: { + com.google.ads.googleads.v0.resources.MediaVideo.Builder subBuilder = null; + if (mediatypeCase_ == 11) { + subBuilder = ((com.google.ads.googleads.v0.resources.MediaVideo) mediatype_).toBuilder(); + } + mediatype_ = + input.readMessage(com.google.ads.googleads.v0.resources.MediaVideo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.ads.googleads.v0.resources.MediaVideo) mediatype_); + mediatype_ = subBuilder.buildPartial(); + } + mediatypeCase_ = 11; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -185,6 +213,8 @@ public enum MediatypeCase implements com.google.protobuf.Internal.EnumLite { IMAGE(3), MEDIA_BUNDLE(4), + AUDIO(10), + VIDEO(11), MEDIATYPE_NOT_SET(0); private final int value; private MediatypeCase(int value) { @@ -202,6 +232,8 @@ public static MediatypeCase forNumber(int value) { switch (value) { case 3: return IMAGE; case 4: return MEDIA_BUNDLE; + case 10: return AUDIO; + case 11: return VIDEO; case 0: return MEDIATYPE_NOT_SET; default: return null; } @@ -527,6 +559,82 @@ public com.google.ads.googleads.v0.resources.MediaBundleOrBuilder getMediaBundle return com.google.ads.googleads.v0.resources.MediaBundle.getDefaultInstance(); } + public static final int AUDIO_FIELD_NUMBER = 10; + /** + *
+   * Encapsulates an Audio.
+   * 
+ * + * .google.ads.googleads.v0.resources.MediaAudio audio = 10; + */ + public boolean hasAudio() { + return mediatypeCase_ == 10; + } + /** + *
+   * Encapsulates an Audio.
+   * 
+ * + * .google.ads.googleads.v0.resources.MediaAudio audio = 10; + */ + public com.google.ads.googleads.v0.resources.MediaAudio getAudio() { + if (mediatypeCase_ == 10) { + return (com.google.ads.googleads.v0.resources.MediaAudio) mediatype_; + } + return com.google.ads.googleads.v0.resources.MediaAudio.getDefaultInstance(); + } + /** + *
+   * Encapsulates an Audio.
+   * 
+ * + * .google.ads.googleads.v0.resources.MediaAudio audio = 10; + */ + public com.google.ads.googleads.v0.resources.MediaAudioOrBuilder getAudioOrBuilder() { + if (mediatypeCase_ == 10) { + return (com.google.ads.googleads.v0.resources.MediaAudio) mediatype_; + } + return com.google.ads.googleads.v0.resources.MediaAudio.getDefaultInstance(); + } + + public static final int VIDEO_FIELD_NUMBER = 11; + /** + *
+   * Encapsulates a Video.
+   * 
+ * + * .google.ads.googleads.v0.resources.MediaVideo video = 11; + */ + public boolean hasVideo() { + return mediatypeCase_ == 11; + } + /** + *
+   * Encapsulates a Video.
+   * 
+ * + * .google.ads.googleads.v0.resources.MediaVideo video = 11; + */ + public com.google.ads.googleads.v0.resources.MediaVideo getVideo() { + if (mediatypeCase_ == 11) { + return (com.google.ads.googleads.v0.resources.MediaVideo) mediatype_; + } + return com.google.ads.googleads.v0.resources.MediaVideo.getDefaultInstance(); + } + /** + *
+   * Encapsulates a Video.
+   * 
+ * + * .google.ads.googleads.v0.resources.MediaVideo video = 11; + */ + public com.google.ads.googleads.v0.resources.MediaVideoOrBuilder getVideoOrBuilder() { + if (mediatypeCase_ == 11) { + return (com.google.ads.googleads.v0.resources.MediaVideo) mediatype_; + } + return com.google.ads.googleads.v0.resources.MediaVideo.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -568,6 +676,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (fileSize_ != null) { output.writeMessage(9, getFileSize()); } + if (mediatypeCase_ == 10) { + output.writeMessage(10, (com.google.ads.googleads.v0.resources.MediaAudio) mediatype_); + } + if (mediatypeCase_ == 11) { + output.writeMessage(11, (com.google.ads.googleads.v0.resources.MediaVideo) mediatype_); + } unknownFields.writeTo(output); } @@ -612,6 +726,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getFileSize()); } + if (mediatypeCase_ == 10) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, (com.google.ads.googleads.v0.resources.MediaAudio) mediatype_); + } + if (mediatypeCase_ == 11) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, (com.google.ads.googleads.v0.resources.MediaVideo) mediatype_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -664,6 +786,14 @@ public boolean equals(final java.lang.Object obj) { result = result && getMediaBundle() .equals(other.getMediaBundle()); break; + case 10: + result = result && getAudio() + .equals(other.getAudio()); + break; + case 11: + result = result && getVideo() + .equals(other.getVideo()); + break; case 0: default: } @@ -709,6 +839,14 @@ public int hashCode() { hash = (37 * hash) + MEDIA_BUNDLE_FIELD_NUMBER; hash = (53 * hash) + getMediaBundle().hashCode(); break; + case 10: + hash = (37 * hash) + AUDIO_FIELD_NUMBER; + hash = (53 * hash) + getAudio().hashCode(); + break; + case 11: + hash = (37 * hash) + VIDEO_FIELD_NUMBER; + hash = (53 * hash) + getVideo().hashCode(); + break; case 0: default: } @@ -944,6 +1082,20 @@ public com.google.ads.googleads.v0.resources.MediaFile buildPartial() { result.mediatype_ = mediaBundleBuilder_.build(); } } + if (mediatypeCase_ == 10) { + if (audioBuilder_ == null) { + result.mediatype_ = mediatype_; + } else { + result.mediatype_ = audioBuilder_.build(); + } + } + if (mediatypeCase_ == 11) { + if (videoBuilder_ == null) { + result.mediatype_ = mediatype_; + } else { + result.mediatype_ = videoBuilder_.build(); + } + } result.mediatypeCase_ = mediatypeCase_; onBuilt(); return result; @@ -1024,6 +1176,14 @@ public Builder mergeFrom(com.google.ads.googleads.v0.resources.MediaFile other) mergeMediaBundle(other.getMediaBundle()); break; } + case AUDIO: { + mergeAudio(other.getAudio()); + break; + } + case VIDEO: { + mergeVideo(other.getVideo()); + break; + } case MEDIATYPE_NOT_SET: { break; } @@ -2274,6 +2434,350 @@ public com.google.ads.googleads.v0.resources.MediaBundleOrBuilder getMediaBundle onChanged();; return mediaBundleBuilder_; } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.MediaAudio, com.google.ads.googleads.v0.resources.MediaAudio.Builder, com.google.ads.googleads.v0.resources.MediaAudioOrBuilder> audioBuilder_; + /** + *
+     * Encapsulates an Audio.
+     * 
+ * + * .google.ads.googleads.v0.resources.MediaAudio audio = 10; + */ + public boolean hasAudio() { + return mediatypeCase_ == 10; + } + /** + *
+     * Encapsulates an Audio.
+     * 
+ * + * .google.ads.googleads.v0.resources.MediaAudio audio = 10; + */ + public com.google.ads.googleads.v0.resources.MediaAudio getAudio() { + if (audioBuilder_ == null) { + if (mediatypeCase_ == 10) { + return (com.google.ads.googleads.v0.resources.MediaAudio) mediatype_; + } + return com.google.ads.googleads.v0.resources.MediaAudio.getDefaultInstance(); + } else { + if (mediatypeCase_ == 10) { + return audioBuilder_.getMessage(); + } + return com.google.ads.googleads.v0.resources.MediaAudio.getDefaultInstance(); + } + } + /** + *
+     * Encapsulates an Audio.
+     * 
+ * + * .google.ads.googleads.v0.resources.MediaAudio audio = 10; + */ + public Builder setAudio(com.google.ads.googleads.v0.resources.MediaAudio value) { + if (audioBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mediatype_ = value; + onChanged(); + } else { + audioBuilder_.setMessage(value); + } + mediatypeCase_ = 10; + return this; + } + /** + *
+     * Encapsulates an Audio.
+     * 
+ * + * .google.ads.googleads.v0.resources.MediaAudio audio = 10; + */ + public Builder setAudio( + com.google.ads.googleads.v0.resources.MediaAudio.Builder builderForValue) { + if (audioBuilder_ == null) { + mediatype_ = builderForValue.build(); + onChanged(); + } else { + audioBuilder_.setMessage(builderForValue.build()); + } + mediatypeCase_ = 10; + return this; + } + /** + *
+     * Encapsulates an Audio.
+     * 
+ * + * .google.ads.googleads.v0.resources.MediaAudio audio = 10; + */ + public Builder mergeAudio(com.google.ads.googleads.v0.resources.MediaAudio value) { + if (audioBuilder_ == null) { + if (mediatypeCase_ == 10 && + mediatype_ != com.google.ads.googleads.v0.resources.MediaAudio.getDefaultInstance()) { + mediatype_ = com.google.ads.googleads.v0.resources.MediaAudio.newBuilder((com.google.ads.googleads.v0.resources.MediaAudio) mediatype_) + .mergeFrom(value).buildPartial(); + } else { + mediatype_ = value; + } + onChanged(); + } else { + if (mediatypeCase_ == 10) { + audioBuilder_.mergeFrom(value); + } + audioBuilder_.setMessage(value); + } + mediatypeCase_ = 10; + return this; + } + /** + *
+     * Encapsulates an Audio.
+     * 
+ * + * .google.ads.googleads.v0.resources.MediaAudio audio = 10; + */ + public Builder clearAudio() { + if (audioBuilder_ == null) { + if (mediatypeCase_ == 10) { + mediatypeCase_ = 0; + mediatype_ = null; + onChanged(); + } + } else { + if (mediatypeCase_ == 10) { + mediatypeCase_ = 0; + mediatype_ = null; + } + audioBuilder_.clear(); + } + return this; + } + /** + *
+     * Encapsulates an Audio.
+     * 
+ * + * .google.ads.googleads.v0.resources.MediaAudio audio = 10; + */ + public com.google.ads.googleads.v0.resources.MediaAudio.Builder getAudioBuilder() { + return getAudioFieldBuilder().getBuilder(); + } + /** + *
+     * Encapsulates an Audio.
+     * 
+ * + * .google.ads.googleads.v0.resources.MediaAudio audio = 10; + */ + public com.google.ads.googleads.v0.resources.MediaAudioOrBuilder getAudioOrBuilder() { + if ((mediatypeCase_ == 10) && (audioBuilder_ != null)) { + return audioBuilder_.getMessageOrBuilder(); + } else { + if (mediatypeCase_ == 10) { + return (com.google.ads.googleads.v0.resources.MediaAudio) mediatype_; + } + return com.google.ads.googleads.v0.resources.MediaAudio.getDefaultInstance(); + } + } + /** + *
+     * Encapsulates an Audio.
+     * 
+ * + * .google.ads.googleads.v0.resources.MediaAudio audio = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.MediaAudio, com.google.ads.googleads.v0.resources.MediaAudio.Builder, com.google.ads.googleads.v0.resources.MediaAudioOrBuilder> + getAudioFieldBuilder() { + if (audioBuilder_ == null) { + if (!(mediatypeCase_ == 10)) { + mediatype_ = com.google.ads.googleads.v0.resources.MediaAudio.getDefaultInstance(); + } + audioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.MediaAudio, com.google.ads.googleads.v0.resources.MediaAudio.Builder, com.google.ads.googleads.v0.resources.MediaAudioOrBuilder>( + (com.google.ads.googleads.v0.resources.MediaAudio) mediatype_, + getParentForChildren(), + isClean()); + mediatype_ = null; + } + mediatypeCase_ = 10; + onChanged();; + return audioBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.MediaVideo, com.google.ads.googleads.v0.resources.MediaVideo.Builder, com.google.ads.googleads.v0.resources.MediaVideoOrBuilder> videoBuilder_; + /** + *
+     * Encapsulates a Video.
+     * 
+ * + * .google.ads.googleads.v0.resources.MediaVideo video = 11; + */ + public boolean hasVideo() { + return mediatypeCase_ == 11; + } + /** + *
+     * Encapsulates a Video.
+     * 
+ * + * .google.ads.googleads.v0.resources.MediaVideo video = 11; + */ + public com.google.ads.googleads.v0.resources.MediaVideo getVideo() { + if (videoBuilder_ == null) { + if (mediatypeCase_ == 11) { + return (com.google.ads.googleads.v0.resources.MediaVideo) mediatype_; + } + return com.google.ads.googleads.v0.resources.MediaVideo.getDefaultInstance(); + } else { + if (mediatypeCase_ == 11) { + return videoBuilder_.getMessage(); + } + return com.google.ads.googleads.v0.resources.MediaVideo.getDefaultInstance(); + } + } + /** + *
+     * Encapsulates a Video.
+     * 
+ * + * .google.ads.googleads.v0.resources.MediaVideo video = 11; + */ + public Builder setVideo(com.google.ads.googleads.v0.resources.MediaVideo value) { + if (videoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mediatype_ = value; + onChanged(); + } else { + videoBuilder_.setMessage(value); + } + mediatypeCase_ = 11; + return this; + } + /** + *
+     * Encapsulates a Video.
+     * 
+ * + * .google.ads.googleads.v0.resources.MediaVideo video = 11; + */ + public Builder setVideo( + com.google.ads.googleads.v0.resources.MediaVideo.Builder builderForValue) { + if (videoBuilder_ == null) { + mediatype_ = builderForValue.build(); + onChanged(); + } else { + videoBuilder_.setMessage(builderForValue.build()); + } + mediatypeCase_ = 11; + return this; + } + /** + *
+     * Encapsulates a Video.
+     * 
+ * + * .google.ads.googleads.v0.resources.MediaVideo video = 11; + */ + public Builder mergeVideo(com.google.ads.googleads.v0.resources.MediaVideo value) { + if (videoBuilder_ == null) { + if (mediatypeCase_ == 11 && + mediatype_ != com.google.ads.googleads.v0.resources.MediaVideo.getDefaultInstance()) { + mediatype_ = com.google.ads.googleads.v0.resources.MediaVideo.newBuilder((com.google.ads.googleads.v0.resources.MediaVideo) mediatype_) + .mergeFrom(value).buildPartial(); + } else { + mediatype_ = value; + } + onChanged(); + } else { + if (mediatypeCase_ == 11) { + videoBuilder_.mergeFrom(value); + } + videoBuilder_.setMessage(value); + } + mediatypeCase_ = 11; + return this; + } + /** + *
+     * Encapsulates a Video.
+     * 
+ * + * .google.ads.googleads.v0.resources.MediaVideo video = 11; + */ + public Builder clearVideo() { + if (videoBuilder_ == null) { + if (mediatypeCase_ == 11) { + mediatypeCase_ = 0; + mediatype_ = null; + onChanged(); + } + } else { + if (mediatypeCase_ == 11) { + mediatypeCase_ = 0; + mediatype_ = null; + } + videoBuilder_.clear(); + } + return this; + } + /** + *
+     * Encapsulates a Video.
+     * 
+ * + * .google.ads.googleads.v0.resources.MediaVideo video = 11; + */ + public com.google.ads.googleads.v0.resources.MediaVideo.Builder getVideoBuilder() { + return getVideoFieldBuilder().getBuilder(); + } + /** + *
+     * Encapsulates a Video.
+     * 
+ * + * .google.ads.googleads.v0.resources.MediaVideo video = 11; + */ + public com.google.ads.googleads.v0.resources.MediaVideoOrBuilder getVideoOrBuilder() { + if ((mediatypeCase_ == 11) && (videoBuilder_ != null)) { + return videoBuilder_.getMessageOrBuilder(); + } else { + if (mediatypeCase_ == 11) { + return (com.google.ads.googleads.v0.resources.MediaVideo) mediatype_; + } + return com.google.ads.googleads.v0.resources.MediaVideo.getDefaultInstance(); + } + } + /** + *
+     * Encapsulates a Video.
+     * 
+ * + * .google.ads.googleads.v0.resources.MediaVideo video = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.MediaVideo, com.google.ads.googleads.v0.resources.MediaVideo.Builder, com.google.ads.googleads.v0.resources.MediaVideoOrBuilder> + getVideoFieldBuilder() { + if (videoBuilder_ == null) { + if (!(mediatypeCase_ == 11)) { + mediatype_ = com.google.ads.googleads.v0.resources.MediaVideo.getDefaultInstance(); + } + videoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.MediaVideo, com.google.ads.googleads.v0.resources.MediaVideo.Builder, com.google.ads.googleads.v0.resources.MediaVideoOrBuilder>( + (com.google.ads.googleads.v0.resources.MediaVideo) mediatype_, + getParentForChildren(), + isClean()); + mediatype_ = null; + } + mediatypeCase_ = 11; + onChanged();; + return videoBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MediaFileOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MediaFileOrBuilder.java index 395a20fe8d..3900582492 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MediaFileOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MediaFileOrBuilder.java @@ -219,5 +219,55 @@ public interface MediaFileOrBuilder extends */ com.google.ads.googleads.v0.resources.MediaBundleOrBuilder getMediaBundleOrBuilder(); + /** + *
+   * Encapsulates an Audio.
+   * 
+ * + * .google.ads.googleads.v0.resources.MediaAudio audio = 10; + */ + boolean hasAudio(); + /** + *
+   * Encapsulates an Audio.
+   * 
+ * + * .google.ads.googleads.v0.resources.MediaAudio audio = 10; + */ + com.google.ads.googleads.v0.resources.MediaAudio getAudio(); + /** + *
+   * Encapsulates an Audio.
+   * 
+ * + * .google.ads.googleads.v0.resources.MediaAudio audio = 10; + */ + com.google.ads.googleads.v0.resources.MediaAudioOrBuilder getAudioOrBuilder(); + + /** + *
+   * Encapsulates a Video.
+   * 
+ * + * .google.ads.googleads.v0.resources.MediaVideo video = 11; + */ + boolean hasVideo(); + /** + *
+   * Encapsulates a Video.
+   * 
+ * + * .google.ads.googleads.v0.resources.MediaVideo video = 11; + */ + com.google.ads.googleads.v0.resources.MediaVideo getVideo(); + /** + *
+   * Encapsulates a Video.
+   * 
+ * + * .google.ads.googleads.v0.resources.MediaVideo video = 11; + */ + com.google.ads.googleads.v0.resources.MediaVideoOrBuilder getVideoOrBuilder(); + public com.google.ads.googleads.v0.resources.MediaFile.MediatypeCase getMediatypeCase(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MediaFileProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MediaFileProto.java index 618bfd99cc..2ef6f77551 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MediaFileProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MediaFileProto.java @@ -29,6 +29,16 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_googleads_v0_resources_MediaBundle_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_resources_MediaAudio_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_resources_MediaAudio_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_resources_MediaVideo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_resources_MediaVideo_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -43,7 +53,7 @@ public static void registerAllExtensions( "sources\032.google/ads/googleads/v0/enums/m" + "edia_type.proto\032-google/ads/googleads/v0" + "/enums/mime_type.proto\032\036google/protobuf/" + - "wrappers.proto\"\375\003\n\tMediaFile\022\025\n\rresource" + + "wrappers.proto\"\375\004\n\tMediaFile\022\025\n\rresource" + "_name\030\001 \001(\t\022\'\n\002id\030\002 \001(\0132\033.google.protobu" + "f.Int64Value\022D\n\004type\030\005 \001(\01626.google.ads." + "googleads.v0.enums.MediaTypeEnum.MediaTy" + @@ -55,16 +65,28 @@ public static void registerAllExtensions( "otobuf.Int64Value\022>\n\005image\030\003 \001(\0132-.googl" + "e.ads.googleads.v0.resources.MediaImageH" + "\000\022F\n\014media_bundle\030\004 \001(\0132..google.ads.goo" + - "gleads.v0.resources.MediaBundleH\000B\013\n\tmed" + - "iatype\"7\n\nMediaImage\022)\n\004data\030\001 \001(\0132\033.goo" + - "gle.protobuf.BytesValue\"8\n\013MediaBundle\022)" + - "\n\004data\030\001 \001(\0132\033.google.protobuf.BytesValu" + - "eB\323\001\n%com.google.ads.googleads.v0.resour" + - "cesB\016MediaFileProtoP\001ZJgoogle.golang.org" + - "/genproto/googleapis/ads/googleads/v0/re" + - "sources;resources\242\002\003GAA\252\002!Google.Ads.Goo" + - "gleAds.V0.Resources\312\002!Google\\Ads\\GoogleA" + - "ds\\V0\\Resourcesb\006proto3" + "gleads.v0.resources.MediaBundleH\000\022>\n\005aud" + + "io\030\n \001(\0132-.google.ads.googleads.v0.resou" + + "rces.MediaAudioH\000\022>\n\005video\030\013 \001(\0132-.googl" + + "e.ads.googleads.v0.resources.MediaVideoH" + + "\000B\013\n\tmediatype\"7\n\nMediaImage\022)\n\004data\030\001 \001" + + "(\0132\033.google.protobuf.BytesValue\"8\n\013Media" + + "Bundle\022)\n\004data\030\001 \001(\0132\033.google.protobuf.B" + + "ytesValue\"E\n\nMediaAudio\0227\n\022ad_duration_m" + + "illis\030\001 \001(\0132\033.google.protobuf.Int64Value" + + "\"\351\001\n\nMediaVideo\0227\n\022ad_duration_millis\030\001 " + + "\001(\0132\033.google.protobuf.Int64Value\0226\n\020yout" + + "ube_video_id\030\002 \001(\0132\034.google.protobuf.Str" + + "ingValue\0229\n\023advertising_id_code\030\003 \001(\0132\034." + + "google.protobuf.StringValue\022/\n\tisci_code" + + "\030\004 \001(\0132\034.google.protobuf.StringValueB\373\001\n" + + "%com.google.ads.googleads.v0.resourcesB\016" + + "MediaFileProtoP\001ZJgoogle.golang.org/genp" + + "roto/googleapis/ads/googleads/v0/resourc" + + "es;resources\242\002\003GAA\252\002!Google.Ads.GoogleAd" + + "s.V0.Resources\312\002!Google\\Ads\\GoogleAds\\V0" + + "\\Resources\352\002%Google::Ads::GoogleAds::V0:" + + ":Resourcesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -86,7 +108,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_resources_MediaFile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_resources_MediaFile_descriptor, - new java.lang.String[] { "ResourceName", "Id", "Type", "MimeType", "SourceUrl", "Name", "FileSize", "Image", "MediaBundle", "Mediatype", }); + new java.lang.String[] { "ResourceName", "Id", "Type", "MimeType", "SourceUrl", "Name", "FileSize", "Image", "MediaBundle", "Audio", "Video", "Mediatype", }); internal_static_google_ads_googleads_v0_resources_MediaImage_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_google_ads_googleads_v0_resources_MediaImage_fieldAccessorTable = new @@ -99,6 +121,18 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_resources_MediaBundle_descriptor, new java.lang.String[] { "Data", }); + internal_static_google_ads_googleads_v0_resources_MediaAudio_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_ads_googleads_v0_resources_MediaAudio_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_resources_MediaAudio_descriptor, + new java.lang.String[] { "AdDurationMillis", }); + internal_static_google_ads_googleads_v0_resources_MediaVideo_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_ads_googleads_v0_resources_MediaVideo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_resources_MediaVideo_descriptor, + new java.lang.String[] { "AdDurationMillis", "YoutubeVideoId", "AdvertisingIdCode", "IsciCode", }); com.google.ads.googleads.v0.enums.MediaTypeProto.getDescriptor(); com.google.ads.googleads.v0.enums.MimeTypeProto.getDescriptor(); com.google.protobuf.WrappersProto.getDescriptor(); diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MediaVideo.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MediaVideo.java new file mode 100644 index 0000000000..0c6fc80d38 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MediaVideo.java @@ -0,0 +1,1374 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/resources/media_file.proto + +package com.google.ads.googleads.v0.resources; + +/** + *
+ * Encapsulates a Video.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.resources.MediaVideo} + */ +public final class MediaVideo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.resources.MediaVideo) + MediaVideoOrBuilder { +private static final long serialVersionUID = 0L; + // Use MediaVideo.newBuilder() to construct. + private MediaVideo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MediaVideo() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MediaVideo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.Int64Value.Builder subBuilder = null; + if (adDurationMillis_ != null) { + subBuilder = adDurationMillis_.toBuilder(); + } + adDurationMillis_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(adDurationMillis_); + adDurationMillis_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (youtubeVideoId_ != null) { + subBuilder = youtubeVideoId_.toBuilder(); + } + youtubeVideoId_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(youtubeVideoId_); + youtubeVideoId_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (advertisingIdCode_ != null) { + subBuilder = advertisingIdCode_.toBuilder(); + } + advertisingIdCode_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(advertisingIdCode_); + advertisingIdCode_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (isciCode_ != null) { + subBuilder = isciCode_.toBuilder(); + } + isciCode_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(isciCode_); + isciCode_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.resources.MediaFileProto.internal_static_google_ads_googleads_v0_resources_MediaVideo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.resources.MediaFileProto.internal_static_google_ads_googleads_v0_resources_MediaVideo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.resources.MediaVideo.class, com.google.ads.googleads.v0.resources.MediaVideo.Builder.class); + } + + public static final int AD_DURATION_MILLIS_FIELD_NUMBER = 1; + private com.google.protobuf.Int64Value adDurationMillis_; + /** + *
+   * The duration of the Video in milliseconds.
+   * 
+ * + * .google.protobuf.Int64Value ad_duration_millis = 1; + */ + public boolean hasAdDurationMillis() { + return adDurationMillis_ != null; + } + /** + *
+   * The duration of the Video in milliseconds.
+   * 
+ * + * .google.protobuf.Int64Value ad_duration_millis = 1; + */ + public com.google.protobuf.Int64Value getAdDurationMillis() { + return adDurationMillis_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : adDurationMillis_; + } + /** + *
+   * The duration of the Video in milliseconds.
+   * 
+ * + * .google.protobuf.Int64Value ad_duration_millis = 1; + */ + public com.google.protobuf.Int64ValueOrBuilder getAdDurationMillisOrBuilder() { + return getAdDurationMillis(); + } + + public static final int YOUTUBE_VIDEO_ID_FIELD_NUMBER = 2; + private com.google.protobuf.StringValue youtubeVideoId_; + /** + *
+   * The YouTube video ID (as seen in YouTube URLs).
+   * 
+ * + * .google.protobuf.StringValue youtube_video_id = 2; + */ + public boolean hasYoutubeVideoId() { + return youtubeVideoId_ != null; + } + /** + *
+   * The YouTube video ID (as seen in YouTube URLs).
+   * 
+ * + * .google.protobuf.StringValue youtube_video_id = 2; + */ + public com.google.protobuf.StringValue getYoutubeVideoId() { + return youtubeVideoId_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : youtubeVideoId_; + } + /** + *
+   * The YouTube video ID (as seen in YouTube URLs).
+   * 
+ * + * .google.protobuf.StringValue youtube_video_id = 2; + */ + public com.google.protobuf.StringValueOrBuilder getYoutubeVideoIdOrBuilder() { + return getYoutubeVideoId(); + } + + public static final int ADVERTISING_ID_CODE_FIELD_NUMBER = 3; + private com.google.protobuf.StringValue advertisingIdCode_; + /** + *
+   * The Advertising Digital Identification code for this video, as defined by
+   * the American Association of Advertising Agencies, used mainly for
+   * television commercials.
+   * 
+ * + * .google.protobuf.StringValue advertising_id_code = 3; + */ + public boolean hasAdvertisingIdCode() { + return advertisingIdCode_ != null; + } + /** + *
+   * The Advertising Digital Identification code for this video, as defined by
+   * the American Association of Advertising Agencies, used mainly for
+   * television commercials.
+   * 
+ * + * .google.protobuf.StringValue advertising_id_code = 3; + */ + public com.google.protobuf.StringValue getAdvertisingIdCode() { + return advertisingIdCode_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : advertisingIdCode_; + } + /** + *
+   * The Advertising Digital Identification code for this video, as defined by
+   * the American Association of Advertising Agencies, used mainly for
+   * television commercials.
+   * 
+ * + * .google.protobuf.StringValue advertising_id_code = 3; + */ + public com.google.protobuf.StringValueOrBuilder getAdvertisingIdCodeOrBuilder() { + return getAdvertisingIdCode(); + } + + public static final int ISCI_CODE_FIELD_NUMBER = 4; + private com.google.protobuf.StringValue isciCode_; + /** + *
+   * The Industry Standard Commercial Identifier code for this video, used
+   * mainly for television commercials.
+   * 
+ * + * .google.protobuf.StringValue isci_code = 4; + */ + public boolean hasIsciCode() { + return isciCode_ != null; + } + /** + *
+   * The Industry Standard Commercial Identifier code for this video, used
+   * mainly for television commercials.
+   * 
+ * + * .google.protobuf.StringValue isci_code = 4; + */ + public com.google.protobuf.StringValue getIsciCode() { + return isciCode_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : isciCode_; + } + /** + *
+   * The Industry Standard Commercial Identifier code for this video, used
+   * mainly for television commercials.
+   * 
+ * + * .google.protobuf.StringValue isci_code = 4; + */ + public com.google.protobuf.StringValueOrBuilder getIsciCodeOrBuilder() { + return getIsciCode(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (adDurationMillis_ != null) { + output.writeMessage(1, getAdDurationMillis()); + } + if (youtubeVideoId_ != null) { + output.writeMessage(2, getYoutubeVideoId()); + } + if (advertisingIdCode_ != null) { + output.writeMessage(3, getAdvertisingIdCode()); + } + if (isciCode_ != null) { + output.writeMessage(4, getIsciCode()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (adDurationMillis_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAdDurationMillis()); + } + if (youtubeVideoId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getYoutubeVideoId()); + } + if (advertisingIdCode_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getAdvertisingIdCode()); + } + if (isciCode_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getIsciCode()); + } + size += unknownFields.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.ads.googleads.v0.resources.MediaVideo)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.resources.MediaVideo other = (com.google.ads.googleads.v0.resources.MediaVideo) obj; + + boolean result = true; + result = result && (hasAdDurationMillis() == other.hasAdDurationMillis()); + if (hasAdDurationMillis()) { + result = result && getAdDurationMillis() + .equals(other.getAdDurationMillis()); + } + result = result && (hasYoutubeVideoId() == other.hasYoutubeVideoId()); + if (hasYoutubeVideoId()) { + result = result && getYoutubeVideoId() + .equals(other.getYoutubeVideoId()); + } + result = result && (hasAdvertisingIdCode() == other.hasAdvertisingIdCode()); + if (hasAdvertisingIdCode()) { + result = result && getAdvertisingIdCode() + .equals(other.getAdvertisingIdCode()); + } + result = result && (hasIsciCode() == other.hasIsciCode()); + if (hasIsciCode()) { + result = result && getIsciCode() + .equals(other.getIsciCode()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAdDurationMillis()) { + hash = (37 * hash) + AD_DURATION_MILLIS_FIELD_NUMBER; + hash = (53 * hash) + getAdDurationMillis().hashCode(); + } + if (hasYoutubeVideoId()) { + hash = (37 * hash) + YOUTUBE_VIDEO_ID_FIELD_NUMBER; + hash = (53 * hash) + getYoutubeVideoId().hashCode(); + } + if (hasAdvertisingIdCode()) { + hash = (37 * hash) + ADVERTISING_ID_CODE_FIELD_NUMBER; + hash = (53 * hash) + getAdvertisingIdCode().hashCode(); + } + if (hasIsciCode()) { + hash = (37 * hash) + ISCI_CODE_FIELD_NUMBER; + hash = (53 * hash) + getIsciCode().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.resources.MediaVideo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.MediaVideo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.resources.MediaVideo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.MediaVideo 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.ads.googleads.v0.resources.MediaVideo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.MediaVideo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.resources.MediaVideo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.MediaVideo 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.ads.googleads.v0.resources.MediaVideo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.MediaVideo 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.ads.googleads.v0.resources.MediaVideo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.MediaVideo 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.ads.googleads.v0.resources.MediaVideo 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; + } + /** + *
+   * Encapsulates a Video.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.resources.MediaVideo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.resources.MediaVideo) + com.google.ads.googleads.v0.resources.MediaVideoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.resources.MediaFileProto.internal_static_google_ads_googleads_v0_resources_MediaVideo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.resources.MediaFileProto.internal_static_google_ads_googleads_v0_resources_MediaVideo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.resources.MediaVideo.class, com.google.ads.googleads.v0.resources.MediaVideo.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.resources.MediaVideo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (adDurationMillisBuilder_ == null) { + adDurationMillis_ = null; + } else { + adDurationMillis_ = null; + adDurationMillisBuilder_ = null; + } + if (youtubeVideoIdBuilder_ == null) { + youtubeVideoId_ = null; + } else { + youtubeVideoId_ = null; + youtubeVideoIdBuilder_ = null; + } + if (advertisingIdCodeBuilder_ == null) { + advertisingIdCode_ = null; + } else { + advertisingIdCode_ = null; + advertisingIdCodeBuilder_ = null; + } + if (isciCodeBuilder_ == null) { + isciCode_ = null; + } else { + isciCode_ = null; + isciCodeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.resources.MediaFileProto.internal_static_google_ads_googleads_v0_resources_MediaVideo_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.MediaVideo getDefaultInstanceForType() { + return com.google.ads.googleads.v0.resources.MediaVideo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.MediaVideo build() { + com.google.ads.googleads.v0.resources.MediaVideo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.MediaVideo buildPartial() { + com.google.ads.googleads.v0.resources.MediaVideo result = new com.google.ads.googleads.v0.resources.MediaVideo(this); + if (adDurationMillisBuilder_ == null) { + result.adDurationMillis_ = adDurationMillis_; + } else { + result.adDurationMillis_ = adDurationMillisBuilder_.build(); + } + if (youtubeVideoIdBuilder_ == null) { + result.youtubeVideoId_ = youtubeVideoId_; + } else { + result.youtubeVideoId_ = youtubeVideoIdBuilder_.build(); + } + if (advertisingIdCodeBuilder_ == null) { + result.advertisingIdCode_ = advertisingIdCode_; + } else { + result.advertisingIdCode_ = advertisingIdCodeBuilder_.build(); + } + if (isciCodeBuilder_ == null) { + result.isciCode_ = isciCode_; + } else { + result.isciCode_ = isciCodeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.resources.MediaVideo) { + return mergeFrom((com.google.ads.googleads.v0.resources.MediaVideo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.resources.MediaVideo other) { + if (other == com.google.ads.googleads.v0.resources.MediaVideo.getDefaultInstance()) return this; + if (other.hasAdDurationMillis()) { + mergeAdDurationMillis(other.getAdDurationMillis()); + } + if (other.hasYoutubeVideoId()) { + mergeYoutubeVideoId(other.getYoutubeVideoId()); + } + if (other.hasAdvertisingIdCode()) { + mergeAdvertisingIdCode(other.getAdvertisingIdCode()); + } + if (other.hasIsciCode()) { + mergeIsciCode(other.getIsciCode()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.resources.MediaVideo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.resources.MediaVideo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Int64Value adDurationMillis_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> adDurationMillisBuilder_; + /** + *
+     * The duration of the Video in milliseconds.
+     * 
+ * + * .google.protobuf.Int64Value ad_duration_millis = 1; + */ + public boolean hasAdDurationMillis() { + return adDurationMillisBuilder_ != null || adDurationMillis_ != null; + } + /** + *
+     * The duration of the Video in milliseconds.
+     * 
+ * + * .google.protobuf.Int64Value ad_duration_millis = 1; + */ + public com.google.protobuf.Int64Value getAdDurationMillis() { + if (adDurationMillisBuilder_ == null) { + return adDurationMillis_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : adDurationMillis_; + } else { + return adDurationMillisBuilder_.getMessage(); + } + } + /** + *
+     * The duration of the Video in milliseconds.
+     * 
+ * + * .google.protobuf.Int64Value ad_duration_millis = 1; + */ + public Builder setAdDurationMillis(com.google.protobuf.Int64Value value) { + if (adDurationMillisBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + adDurationMillis_ = value; + onChanged(); + } else { + adDurationMillisBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The duration of the Video in milliseconds.
+     * 
+ * + * .google.protobuf.Int64Value ad_duration_millis = 1; + */ + public Builder setAdDurationMillis( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (adDurationMillisBuilder_ == null) { + adDurationMillis_ = builderForValue.build(); + onChanged(); + } else { + adDurationMillisBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The duration of the Video in milliseconds.
+     * 
+ * + * .google.protobuf.Int64Value ad_duration_millis = 1; + */ + public Builder mergeAdDurationMillis(com.google.protobuf.Int64Value value) { + if (adDurationMillisBuilder_ == null) { + if (adDurationMillis_ != null) { + adDurationMillis_ = + com.google.protobuf.Int64Value.newBuilder(adDurationMillis_).mergeFrom(value).buildPartial(); + } else { + adDurationMillis_ = value; + } + onChanged(); + } else { + adDurationMillisBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The duration of the Video in milliseconds.
+     * 
+ * + * .google.protobuf.Int64Value ad_duration_millis = 1; + */ + public Builder clearAdDurationMillis() { + if (adDurationMillisBuilder_ == null) { + adDurationMillis_ = null; + onChanged(); + } else { + adDurationMillis_ = null; + adDurationMillisBuilder_ = null; + } + + return this; + } + /** + *
+     * The duration of the Video in milliseconds.
+     * 
+ * + * .google.protobuf.Int64Value ad_duration_millis = 1; + */ + public com.google.protobuf.Int64Value.Builder getAdDurationMillisBuilder() { + + onChanged(); + return getAdDurationMillisFieldBuilder().getBuilder(); + } + /** + *
+     * The duration of the Video in milliseconds.
+     * 
+ * + * .google.protobuf.Int64Value ad_duration_millis = 1; + */ + public com.google.protobuf.Int64ValueOrBuilder getAdDurationMillisOrBuilder() { + if (adDurationMillisBuilder_ != null) { + return adDurationMillisBuilder_.getMessageOrBuilder(); + } else { + return adDurationMillis_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : adDurationMillis_; + } + } + /** + *
+     * The duration of the Video in milliseconds.
+     * 
+ * + * .google.protobuf.Int64Value ad_duration_millis = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + getAdDurationMillisFieldBuilder() { + if (adDurationMillisBuilder_ == null) { + adDurationMillisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getAdDurationMillis(), + getParentForChildren(), + isClean()); + adDurationMillis_ = null; + } + return adDurationMillisBuilder_; + } + + private com.google.protobuf.StringValue youtubeVideoId_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> youtubeVideoIdBuilder_; + /** + *
+     * The YouTube video ID (as seen in YouTube URLs).
+     * 
+ * + * .google.protobuf.StringValue youtube_video_id = 2; + */ + public boolean hasYoutubeVideoId() { + return youtubeVideoIdBuilder_ != null || youtubeVideoId_ != null; + } + /** + *
+     * The YouTube video ID (as seen in YouTube URLs).
+     * 
+ * + * .google.protobuf.StringValue youtube_video_id = 2; + */ + public com.google.protobuf.StringValue getYoutubeVideoId() { + if (youtubeVideoIdBuilder_ == null) { + return youtubeVideoId_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : youtubeVideoId_; + } else { + return youtubeVideoIdBuilder_.getMessage(); + } + } + /** + *
+     * The YouTube video ID (as seen in YouTube URLs).
+     * 
+ * + * .google.protobuf.StringValue youtube_video_id = 2; + */ + public Builder setYoutubeVideoId(com.google.protobuf.StringValue value) { + if (youtubeVideoIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + youtubeVideoId_ = value; + onChanged(); + } else { + youtubeVideoIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The YouTube video ID (as seen in YouTube URLs).
+     * 
+ * + * .google.protobuf.StringValue youtube_video_id = 2; + */ + public Builder setYoutubeVideoId( + com.google.protobuf.StringValue.Builder builderForValue) { + if (youtubeVideoIdBuilder_ == null) { + youtubeVideoId_ = builderForValue.build(); + onChanged(); + } else { + youtubeVideoIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The YouTube video ID (as seen in YouTube URLs).
+     * 
+ * + * .google.protobuf.StringValue youtube_video_id = 2; + */ + public Builder mergeYoutubeVideoId(com.google.protobuf.StringValue value) { + if (youtubeVideoIdBuilder_ == null) { + if (youtubeVideoId_ != null) { + youtubeVideoId_ = + com.google.protobuf.StringValue.newBuilder(youtubeVideoId_).mergeFrom(value).buildPartial(); + } else { + youtubeVideoId_ = value; + } + onChanged(); + } else { + youtubeVideoIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The YouTube video ID (as seen in YouTube URLs).
+     * 
+ * + * .google.protobuf.StringValue youtube_video_id = 2; + */ + public Builder clearYoutubeVideoId() { + if (youtubeVideoIdBuilder_ == null) { + youtubeVideoId_ = null; + onChanged(); + } else { + youtubeVideoId_ = null; + youtubeVideoIdBuilder_ = null; + } + + return this; + } + /** + *
+     * The YouTube video ID (as seen in YouTube URLs).
+     * 
+ * + * .google.protobuf.StringValue youtube_video_id = 2; + */ + public com.google.protobuf.StringValue.Builder getYoutubeVideoIdBuilder() { + + onChanged(); + return getYoutubeVideoIdFieldBuilder().getBuilder(); + } + /** + *
+     * The YouTube video ID (as seen in YouTube URLs).
+     * 
+ * + * .google.protobuf.StringValue youtube_video_id = 2; + */ + public com.google.protobuf.StringValueOrBuilder getYoutubeVideoIdOrBuilder() { + if (youtubeVideoIdBuilder_ != null) { + return youtubeVideoIdBuilder_.getMessageOrBuilder(); + } else { + return youtubeVideoId_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : youtubeVideoId_; + } + } + /** + *
+     * The YouTube video ID (as seen in YouTube URLs).
+     * 
+ * + * .google.protobuf.StringValue youtube_video_id = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getYoutubeVideoIdFieldBuilder() { + if (youtubeVideoIdBuilder_ == null) { + youtubeVideoIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getYoutubeVideoId(), + getParentForChildren(), + isClean()); + youtubeVideoId_ = null; + } + return youtubeVideoIdBuilder_; + } + + private com.google.protobuf.StringValue advertisingIdCode_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> advertisingIdCodeBuilder_; + /** + *
+     * The Advertising Digital Identification code for this video, as defined by
+     * the American Association of Advertising Agencies, used mainly for
+     * television commercials.
+     * 
+ * + * .google.protobuf.StringValue advertising_id_code = 3; + */ + public boolean hasAdvertisingIdCode() { + return advertisingIdCodeBuilder_ != null || advertisingIdCode_ != null; + } + /** + *
+     * The Advertising Digital Identification code for this video, as defined by
+     * the American Association of Advertising Agencies, used mainly for
+     * television commercials.
+     * 
+ * + * .google.protobuf.StringValue advertising_id_code = 3; + */ + public com.google.protobuf.StringValue getAdvertisingIdCode() { + if (advertisingIdCodeBuilder_ == null) { + return advertisingIdCode_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : advertisingIdCode_; + } else { + return advertisingIdCodeBuilder_.getMessage(); + } + } + /** + *
+     * The Advertising Digital Identification code for this video, as defined by
+     * the American Association of Advertising Agencies, used mainly for
+     * television commercials.
+     * 
+ * + * .google.protobuf.StringValue advertising_id_code = 3; + */ + public Builder setAdvertisingIdCode(com.google.protobuf.StringValue value) { + if (advertisingIdCodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + advertisingIdCode_ = value; + onChanged(); + } else { + advertisingIdCodeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The Advertising Digital Identification code for this video, as defined by
+     * the American Association of Advertising Agencies, used mainly for
+     * television commercials.
+     * 
+ * + * .google.protobuf.StringValue advertising_id_code = 3; + */ + public Builder setAdvertisingIdCode( + com.google.protobuf.StringValue.Builder builderForValue) { + if (advertisingIdCodeBuilder_ == null) { + advertisingIdCode_ = builderForValue.build(); + onChanged(); + } else { + advertisingIdCodeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The Advertising Digital Identification code for this video, as defined by
+     * the American Association of Advertising Agencies, used mainly for
+     * television commercials.
+     * 
+ * + * .google.protobuf.StringValue advertising_id_code = 3; + */ + public Builder mergeAdvertisingIdCode(com.google.protobuf.StringValue value) { + if (advertisingIdCodeBuilder_ == null) { + if (advertisingIdCode_ != null) { + advertisingIdCode_ = + com.google.protobuf.StringValue.newBuilder(advertisingIdCode_).mergeFrom(value).buildPartial(); + } else { + advertisingIdCode_ = value; + } + onChanged(); + } else { + advertisingIdCodeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The Advertising Digital Identification code for this video, as defined by
+     * the American Association of Advertising Agencies, used mainly for
+     * television commercials.
+     * 
+ * + * .google.protobuf.StringValue advertising_id_code = 3; + */ + public Builder clearAdvertisingIdCode() { + if (advertisingIdCodeBuilder_ == null) { + advertisingIdCode_ = null; + onChanged(); + } else { + advertisingIdCode_ = null; + advertisingIdCodeBuilder_ = null; + } + + return this; + } + /** + *
+     * The Advertising Digital Identification code for this video, as defined by
+     * the American Association of Advertising Agencies, used mainly for
+     * television commercials.
+     * 
+ * + * .google.protobuf.StringValue advertising_id_code = 3; + */ + public com.google.protobuf.StringValue.Builder getAdvertisingIdCodeBuilder() { + + onChanged(); + return getAdvertisingIdCodeFieldBuilder().getBuilder(); + } + /** + *
+     * The Advertising Digital Identification code for this video, as defined by
+     * the American Association of Advertising Agencies, used mainly for
+     * television commercials.
+     * 
+ * + * .google.protobuf.StringValue advertising_id_code = 3; + */ + public com.google.protobuf.StringValueOrBuilder getAdvertisingIdCodeOrBuilder() { + if (advertisingIdCodeBuilder_ != null) { + return advertisingIdCodeBuilder_.getMessageOrBuilder(); + } else { + return advertisingIdCode_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : advertisingIdCode_; + } + } + /** + *
+     * The Advertising Digital Identification code for this video, as defined by
+     * the American Association of Advertising Agencies, used mainly for
+     * television commercials.
+     * 
+ * + * .google.protobuf.StringValue advertising_id_code = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getAdvertisingIdCodeFieldBuilder() { + if (advertisingIdCodeBuilder_ == null) { + advertisingIdCodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getAdvertisingIdCode(), + getParentForChildren(), + isClean()); + advertisingIdCode_ = null; + } + return advertisingIdCodeBuilder_; + } + + private com.google.protobuf.StringValue isciCode_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> isciCodeBuilder_; + /** + *
+     * The Industry Standard Commercial Identifier code for this video, used
+     * mainly for television commercials.
+     * 
+ * + * .google.protobuf.StringValue isci_code = 4; + */ + public boolean hasIsciCode() { + return isciCodeBuilder_ != null || isciCode_ != null; + } + /** + *
+     * The Industry Standard Commercial Identifier code for this video, used
+     * mainly for television commercials.
+     * 
+ * + * .google.protobuf.StringValue isci_code = 4; + */ + public com.google.protobuf.StringValue getIsciCode() { + if (isciCodeBuilder_ == null) { + return isciCode_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : isciCode_; + } else { + return isciCodeBuilder_.getMessage(); + } + } + /** + *
+     * The Industry Standard Commercial Identifier code for this video, used
+     * mainly for television commercials.
+     * 
+ * + * .google.protobuf.StringValue isci_code = 4; + */ + public Builder setIsciCode(com.google.protobuf.StringValue value) { + if (isciCodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + isciCode_ = value; + onChanged(); + } else { + isciCodeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The Industry Standard Commercial Identifier code for this video, used
+     * mainly for television commercials.
+     * 
+ * + * .google.protobuf.StringValue isci_code = 4; + */ + public Builder setIsciCode( + com.google.protobuf.StringValue.Builder builderForValue) { + if (isciCodeBuilder_ == null) { + isciCode_ = builderForValue.build(); + onChanged(); + } else { + isciCodeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The Industry Standard Commercial Identifier code for this video, used
+     * mainly for television commercials.
+     * 
+ * + * .google.protobuf.StringValue isci_code = 4; + */ + public Builder mergeIsciCode(com.google.protobuf.StringValue value) { + if (isciCodeBuilder_ == null) { + if (isciCode_ != null) { + isciCode_ = + com.google.protobuf.StringValue.newBuilder(isciCode_).mergeFrom(value).buildPartial(); + } else { + isciCode_ = value; + } + onChanged(); + } else { + isciCodeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The Industry Standard Commercial Identifier code for this video, used
+     * mainly for television commercials.
+     * 
+ * + * .google.protobuf.StringValue isci_code = 4; + */ + public Builder clearIsciCode() { + if (isciCodeBuilder_ == null) { + isciCode_ = null; + onChanged(); + } else { + isciCode_ = null; + isciCodeBuilder_ = null; + } + + return this; + } + /** + *
+     * The Industry Standard Commercial Identifier code for this video, used
+     * mainly for television commercials.
+     * 
+ * + * .google.protobuf.StringValue isci_code = 4; + */ + public com.google.protobuf.StringValue.Builder getIsciCodeBuilder() { + + onChanged(); + return getIsciCodeFieldBuilder().getBuilder(); + } + /** + *
+     * The Industry Standard Commercial Identifier code for this video, used
+     * mainly for television commercials.
+     * 
+ * + * .google.protobuf.StringValue isci_code = 4; + */ + public com.google.protobuf.StringValueOrBuilder getIsciCodeOrBuilder() { + if (isciCodeBuilder_ != null) { + return isciCodeBuilder_.getMessageOrBuilder(); + } else { + return isciCode_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : isciCode_; + } + } + /** + *
+     * The Industry Standard Commercial Identifier code for this video, used
+     * mainly for television commercials.
+     * 
+ * + * .google.protobuf.StringValue isci_code = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getIsciCodeFieldBuilder() { + if (isciCodeBuilder_ == null) { + isciCodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getIsciCode(), + getParentForChildren(), + isClean()); + isciCode_ = null; + } + return isciCodeBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.resources.MediaVideo) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.resources.MediaVideo) + private static final com.google.ads.googleads.v0.resources.MediaVideo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.resources.MediaVideo(); + } + + public static com.google.ads.googleads.v0.resources.MediaVideo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MediaVideo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MediaVideo(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.resources.MediaVideo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MediaVideoOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MediaVideoOrBuilder.java new file mode 100644 index 0000000000..3ab38733db --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MediaVideoOrBuilder.java @@ -0,0 +1,118 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/resources/media_file.proto + +package com.google.ads.googleads.v0.resources; + +public interface MediaVideoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.resources.MediaVideo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The duration of the Video in milliseconds.
+   * 
+ * + * .google.protobuf.Int64Value ad_duration_millis = 1; + */ + boolean hasAdDurationMillis(); + /** + *
+   * The duration of the Video in milliseconds.
+   * 
+ * + * .google.protobuf.Int64Value ad_duration_millis = 1; + */ + com.google.protobuf.Int64Value getAdDurationMillis(); + /** + *
+   * The duration of the Video in milliseconds.
+   * 
+ * + * .google.protobuf.Int64Value ad_duration_millis = 1; + */ + com.google.protobuf.Int64ValueOrBuilder getAdDurationMillisOrBuilder(); + + /** + *
+   * The YouTube video ID (as seen in YouTube URLs).
+   * 
+ * + * .google.protobuf.StringValue youtube_video_id = 2; + */ + boolean hasYoutubeVideoId(); + /** + *
+   * The YouTube video ID (as seen in YouTube URLs).
+   * 
+ * + * .google.protobuf.StringValue youtube_video_id = 2; + */ + com.google.protobuf.StringValue getYoutubeVideoId(); + /** + *
+   * The YouTube video ID (as seen in YouTube URLs).
+   * 
+ * + * .google.protobuf.StringValue youtube_video_id = 2; + */ + com.google.protobuf.StringValueOrBuilder getYoutubeVideoIdOrBuilder(); + + /** + *
+   * The Advertising Digital Identification code for this video, as defined by
+   * the American Association of Advertising Agencies, used mainly for
+   * television commercials.
+   * 
+ * + * .google.protobuf.StringValue advertising_id_code = 3; + */ + boolean hasAdvertisingIdCode(); + /** + *
+   * The Advertising Digital Identification code for this video, as defined by
+   * the American Association of Advertising Agencies, used mainly for
+   * television commercials.
+   * 
+ * + * .google.protobuf.StringValue advertising_id_code = 3; + */ + com.google.protobuf.StringValue getAdvertisingIdCode(); + /** + *
+   * The Advertising Digital Identification code for this video, as defined by
+   * the American Association of Advertising Agencies, used mainly for
+   * television commercials.
+   * 
+ * + * .google.protobuf.StringValue advertising_id_code = 3; + */ + com.google.protobuf.StringValueOrBuilder getAdvertisingIdCodeOrBuilder(); + + /** + *
+   * The Industry Standard Commercial Identifier code for this video, used
+   * mainly for television commercials.
+   * 
+ * + * .google.protobuf.StringValue isci_code = 4; + */ + boolean hasIsciCode(); + /** + *
+   * The Industry Standard Commercial Identifier code for this video, used
+   * mainly for television commercials.
+   * 
+ * + * .google.protobuf.StringValue isci_code = 4; + */ + com.google.protobuf.StringValue getIsciCode(); + /** + *
+   * The Industry Standard Commercial Identifier code for this video, used
+   * mainly for television commercials.
+   * 
+ * + * .google.protobuf.StringValue isci_code = 4; + */ + com.google.protobuf.StringValueOrBuilder getIsciCodeOrBuilder(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignGroup.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MobileAppCategoryConstant.java similarity index 57% rename from google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignGroup.java rename to google-ads/src/main/java/com/google/ads/googleads/v0/resources/MobileAppCategoryConstant.java index afc0499201..fa847f058e 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignGroup.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MobileAppCategoryConstant.java @@ -1,27 +1,26 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v0/resources/campaign_group.proto +// source: google/ads/googleads/v0/resources/mobile_app_category_constant.proto package com.google.ads.googleads.v0.resources; /** *
- * A campaign group.
+ * A mobile application category constant.
  * 
* - * Protobuf type {@code google.ads.googleads.v0.resources.CampaignGroup} + * Protobuf type {@code google.ads.googleads.v0.resources.MobileAppCategoryConstant} */ -public final class CampaignGroup extends +public final class MobileAppCategoryConstant extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.resources.CampaignGroup) - CampaignGroupOrBuilder { + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.resources.MobileAppCategoryConstant) + MobileAppCategoryConstantOrBuilder { private static final long serialVersionUID = 0L; - // Use CampaignGroup.newBuilder() to construct. - private CampaignGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use MobileAppCategoryConstant.newBuilder() to construct. + private MobileAppCategoryConstant(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CampaignGroup() { + private MobileAppCategoryConstant() { resourceName_ = ""; - status_ = 0; } @java.lang.Override @@ -29,7 +28,7 @@ private CampaignGroup() { getUnknownFields() { return this.unknownFields; } - private CampaignGroup( + private MobileAppCategoryConstant( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -54,12 +53,12 @@ private CampaignGroup( resourceName_ = s; break; } - case 26: { - com.google.protobuf.Int64Value.Builder subBuilder = null; + case 18: { + com.google.protobuf.Int32Value.Builder subBuilder = null; if (id_ != null) { subBuilder = id_.toBuilder(); } - id_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); + id_ = input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(id_); id_ = subBuilder.buildPartial(); @@ -67,7 +66,7 @@ private CampaignGroup( break; } - case 34: { + case 26: { com.google.protobuf.StringValue.Builder subBuilder = null; if (name_ != null) { subBuilder = name_.toBuilder(); @@ -80,12 +79,6 @@ private CampaignGroup( break; } - case 40: { - int rawValue = input.readEnum(); - - status_ = rawValue; - break; - } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -107,24 +100,24 @@ private CampaignGroup( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.googleads.v0.resources.CampaignGroupProto.internal_static_google_ads_googleads_v0_resources_CampaignGroup_descriptor; + return com.google.ads.googleads.v0.resources.MobileAppCategoryConstantProto.internal_static_google_ads_googleads_v0_resources_MobileAppCategoryConstant_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.googleads.v0.resources.CampaignGroupProto.internal_static_google_ads_googleads_v0_resources_CampaignGroup_fieldAccessorTable + return com.google.ads.googleads.v0.resources.MobileAppCategoryConstantProto.internal_static_google_ads_googleads_v0_resources_MobileAppCategoryConstant_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.ads.googleads.v0.resources.CampaignGroup.class, com.google.ads.googleads.v0.resources.CampaignGroup.Builder.class); + com.google.ads.googleads.v0.resources.MobileAppCategoryConstant.class, com.google.ads.googleads.v0.resources.MobileAppCategoryConstant.Builder.class); } public static final int RESOURCE_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object resourceName_; /** *
-   * The resource name of the campaign group.
-   * Campaign group resource names have the form:
-   * `customers/{customer_id}/campaignGroups/{campaign_group_id}`
+   * The resource name of the mobile app category constant.
+   * Mobile app category constant resource names have the form:
+   * `mobileAppCategoryConstants/{mobile_app_category_id}`
    * 
* * string resource_name = 1; @@ -143,9 +136,9 @@ public java.lang.String getResourceName() { } /** *
-   * The resource name of the campaign group.
-   * Campaign group resource names have the form:
-   * `customers/{customer_id}/campaignGroups/{campaign_group_id}`
+   * The resource name of the mobile app category constant.
+   * Mobile app category constant resource names have the form:
+   * `mobileAppCategoryConstants/{mobile_app_category_id}`
    * 
* * string resource_name = 1; @@ -164,111 +157,72 @@ public java.lang.String getResourceName() { } } - public static final int ID_FIELD_NUMBER = 3; - private com.google.protobuf.Int64Value id_; + public static final int ID_FIELD_NUMBER = 2; + private com.google.protobuf.Int32Value id_; /** *
-   * The ID of the campaign group.
+   * The ID of the mobile app category constant.
    * 
* - * .google.protobuf.Int64Value id = 3; + * .google.protobuf.Int32Value id = 2; */ public boolean hasId() { return id_ != null; } /** *
-   * The ID of the campaign group.
+   * The ID of the mobile app category constant.
    * 
* - * .google.protobuf.Int64Value id = 3; + * .google.protobuf.Int32Value id = 2; */ - public com.google.protobuf.Int64Value getId() { - return id_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : id_; + public com.google.protobuf.Int32Value getId() { + return id_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : id_; } /** *
-   * The ID of the campaign group.
+   * The ID of the mobile app category constant.
    * 
* - * .google.protobuf.Int64Value id = 3; + * .google.protobuf.Int32Value id = 2; */ - public com.google.protobuf.Int64ValueOrBuilder getIdOrBuilder() { + public com.google.protobuf.Int32ValueOrBuilder getIdOrBuilder() { return getId(); } - public static final int NAME_FIELD_NUMBER = 4; + public static final int NAME_FIELD_NUMBER = 3; private com.google.protobuf.StringValue name_; /** *
-   * The name of the campaign group.
-   * This field is required and should not be empty when creating new campaign
-   * groups.
-   * It must not contain any null (code point 0x0), NL line feed
-   * (code point 0xA) or carriage return (code point 0xD) characters.
+   * Mobile app category name.
    * 
* - * .google.protobuf.StringValue name = 4; + * .google.protobuf.StringValue name = 3; */ public boolean hasName() { return name_ != null; } /** *
-   * The name of the campaign group.
-   * This field is required and should not be empty when creating new campaign
-   * groups.
-   * It must not contain any null (code point 0x0), NL line feed
-   * (code point 0xA) or carriage return (code point 0xD) characters.
+   * Mobile app category name.
    * 
* - * .google.protobuf.StringValue name = 4; + * .google.protobuf.StringValue name = 3; */ public com.google.protobuf.StringValue getName() { return name_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : name_; } /** *
-   * The name of the campaign group.
-   * This field is required and should not be empty when creating new campaign
-   * groups.
-   * It must not contain any null (code point 0x0), NL line feed
-   * (code point 0xA) or carriage return (code point 0xD) characters.
+   * Mobile app category name.
    * 
* - * .google.protobuf.StringValue name = 4; + * .google.protobuf.StringValue name = 3; */ public com.google.protobuf.StringValueOrBuilder getNameOrBuilder() { return getName(); } - public static final int STATUS_FIELD_NUMBER = 5; - private int status_; - /** - *
-   * The status of the campaign group.
-   * When a new campaign group is added, the status defaults to ENABLED.
-   * 
- * - * .google.ads.googleads.v0.enums.CampaignGroupStatusEnum.CampaignGroupStatus status = 5; - */ - public int getStatusValue() { - return status_; - } - /** - *
-   * The status of the campaign group.
-   * When a new campaign group is added, the status defaults to ENABLED.
-   * 
- * - * .google.ads.googleads.v0.enums.CampaignGroupStatusEnum.CampaignGroupStatus status = 5; - */ - public com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum.CampaignGroupStatus getStatus() { - @SuppressWarnings("deprecation") - com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum.CampaignGroupStatus result = com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum.CampaignGroupStatus.valueOf(status_); - return result == null ? com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum.CampaignGroupStatus.UNRECOGNIZED : result; - } - private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -287,13 +241,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_); } if (id_ != null) { - output.writeMessage(3, getId()); + output.writeMessage(2, getId()); } if (name_ != null) { - output.writeMessage(4, getName()); - } - if (status_ != com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum.CampaignGroupStatus.UNSPECIFIED.getNumber()) { - output.writeEnum(5, status_); + output.writeMessage(3, getName()); } unknownFields.writeTo(output); } @@ -309,15 +260,11 @@ public int getSerializedSize() { } if (id_ != null) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getId()); + .computeMessageSize(2, getId()); } if (name_ != null) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getName()); - } - if (status_ != com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum.CampaignGroupStatus.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, status_); + .computeMessageSize(3, getName()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -329,10 +276,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.ads.googleads.v0.resources.CampaignGroup)) { + if (!(obj instanceof com.google.ads.googleads.v0.resources.MobileAppCategoryConstant)) { return super.equals(obj); } - com.google.ads.googleads.v0.resources.CampaignGroup other = (com.google.ads.googleads.v0.resources.CampaignGroup) obj; + com.google.ads.googleads.v0.resources.MobileAppCategoryConstant other = (com.google.ads.googleads.v0.resources.MobileAppCategoryConstant) obj; boolean result = true; result = result && getResourceName() @@ -347,7 +294,6 @@ public boolean equals(final java.lang.Object obj) { result = result && getName() .equals(other.getName()); } - result = result && status_ == other.status_; result = result && unknownFields.equals(other.unknownFields); return result; } @@ -369,76 +315,74 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + status_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.ads.googleads.v0.resources.CampaignGroup parseFrom( + public static com.google.ads.googleads.v0.resources.MobileAppCategoryConstant parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.googleads.v0.resources.CampaignGroup parseFrom( + public static com.google.ads.googleads.v0.resources.MobileAppCategoryConstant parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.googleads.v0.resources.CampaignGroup parseFrom( + public static com.google.ads.googleads.v0.resources.MobileAppCategoryConstant parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.googleads.v0.resources.CampaignGroup parseFrom( + public static com.google.ads.googleads.v0.resources.MobileAppCategoryConstant 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.ads.googleads.v0.resources.CampaignGroup parseFrom(byte[] data) + public static com.google.ads.googleads.v0.resources.MobileAppCategoryConstant parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.googleads.v0.resources.CampaignGroup parseFrom( + public static com.google.ads.googleads.v0.resources.MobileAppCategoryConstant parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.googleads.v0.resources.CampaignGroup parseFrom(java.io.InputStream input) + public static com.google.ads.googleads.v0.resources.MobileAppCategoryConstant parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.google.ads.googleads.v0.resources.CampaignGroup parseFrom( + public static com.google.ads.googleads.v0.resources.MobileAppCategoryConstant 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.ads.googleads.v0.resources.CampaignGroup parseDelimitedFrom(java.io.InputStream input) + public static com.google.ads.googleads.v0.resources.MobileAppCategoryConstant parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.google.ads.googleads.v0.resources.CampaignGroup parseDelimitedFrom( + public static com.google.ads.googleads.v0.resources.MobileAppCategoryConstant 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.ads.googleads.v0.resources.CampaignGroup parseFrom( + public static com.google.ads.googleads.v0.resources.MobileAppCategoryConstant parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.google.ads.googleads.v0.resources.CampaignGroup parseFrom( + public static com.google.ads.googleads.v0.resources.MobileAppCategoryConstant parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -451,7 +395,7 @@ public static com.google.ads.googleads.v0.resources.CampaignGroup parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.ads.googleads.v0.resources.CampaignGroup prototype) { + public static Builder newBuilder(com.google.ads.googleads.v0.resources.MobileAppCategoryConstant prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -468,29 +412,29 @@ protected Builder newBuilderForType( } /** *
-   * A campaign group.
+   * A mobile application category constant.
    * 
* - * Protobuf type {@code google.ads.googleads.v0.resources.CampaignGroup} + * Protobuf type {@code google.ads.googleads.v0.resources.MobileAppCategoryConstant} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.resources.CampaignGroup) - com.google.ads.googleads.v0.resources.CampaignGroupOrBuilder { + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.resources.MobileAppCategoryConstant) + com.google.ads.googleads.v0.resources.MobileAppCategoryConstantOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.googleads.v0.resources.CampaignGroupProto.internal_static_google_ads_googleads_v0_resources_CampaignGroup_descriptor; + return com.google.ads.googleads.v0.resources.MobileAppCategoryConstantProto.internal_static_google_ads_googleads_v0_resources_MobileAppCategoryConstant_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.googleads.v0.resources.CampaignGroupProto.internal_static_google_ads_googleads_v0_resources_CampaignGroup_fieldAccessorTable + return com.google.ads.googleads.v0.resources.MobileAppCategoryConstantProto.internal_static_google_ads_googleads_v0_resources_MobileAppCategoryConstant_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.ads.googleads.v0.resources.CampaignGroup.class, com.google.ads.googleads.v0.resources.CampaignGroup.Builder.class); + com.google.ads.googleads.v0.resources.MobileAppCategoryConstant.class, com.google.ads.googleads.v0.resources.MobileAppCategoryConstant.Builder.class); } - // Construct using com.google.ads.googleads.v0.resources.CampaignGroup.newBuilder() + // Construct using com.google.ads.googleads.v0.resources.MobileAppCategoryConstant.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -522,25 +466,23 @@ public Builder clear() { name_ = null; nameBuilder_ = null; } - status_ = 0; - return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.googleads.v0.resources.CampaignGroupProto.internal_static_google_ads_googleads_v0_resources_CampaignGroup_descriptor; + return com.google.ads.googleads.v0.resources.MobileAppCategoryConstantProto.internal_static_google_ads_googleads_v0_resources_MobileAppCategoryConstant_descriptor; } @java.lang.Override - public com.google.ads.googleads.v0.resources.CampaignGroup getDefaultInstanceForType() { - return com.google.ads.googleads.v0.resources.CampaignGroup.getDefaultInstance(); + public com.google.ads.googleads.v0.resources.MobileAppCategoryConstant getDefaultInstanceForType() { + return com.google.ads.googleads.v0.resources.MobileAppCategoryConstant.getDefaultInstance(); } @java.lang.Override - public com.google.ads.googleads.v0.resources.CampaignGroup build() { - com.google.ads.googleads.v0.resources.CampaignGroup result = buildPartial(); + public com.google.ads.googleads.v0.resources.MobileAppCategoryConstant build() { + com.google.ads.googleads.v0.resources.MobileAppCategoryConstant result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -548,8 +490,8 @@ public com.google.ads.googleads.v0.resources.CampaignGroup build() { } @java.lang.Override - public com.google.ads.googleads.v0.resources.CampaignGroup buildPartial() { - com.google.ads.googleads.v0.resources.CampaignGroup result = new com.google.ads.googleads.v0.resources.CampaignGroup(this); + public com.google.ads.googleads.v0.resources.MobileAppCategoryConstant buildPartial() { + com.google.ads.googleads.v0.resources.MobileAppCategoryConstant result = new com.google.ads.googleads.v0.resources.MobileAppCategoryConstant(this); result.resourceName_ = resourceName_; if (idBuilder_ == null) { result.id_ = id_; @@ -561,7 +503,6 @@ public com.google.ads.googleads.v0.resources.CampaignGroup buildPartial() { } else { result.name_ = nameBuilder_.build(); } - result.status_ = status_; onBuilt(); return result; } @@ -600,16 +541,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.ads.googleads.v0.resources.CampaignGroup) { - return mergeFrom((com.google.ads.googleads.v0.resources.CampaignGroup)other); + if (other instanceof com.google.ads.googleads.v0.resources.MobileAppCategoryConstant) { + return mergeFrom((com.google.ads.googleads.v0.resources.MobileAppCategoryConstant)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.ads.googleads.v0.resources.CampaignGroup other) { - if (other == com.google.ads.googleads.v0.resources.CampaignGroup.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.ads.googleads.v0.resources.MobileAppCategoryConstant other) { + if (other == com.google.ads.googleads.v0.resources.MobileAppCategoryConstant.getDefaultInstance()) return this; if (!other.getResourceName().isEmpty()) { resourceName_ = other.resourceName_; onChanged(); @@ -620,9 +561,6 @@ public Builder mergeFrom(com.google.ads.googleads.v0.resources.CampaignGroup oth if (other.hasName()) { mergeName(other.getName()); } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); - } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -638,11 +576,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.ads.googleads.v0.resources.CampaignGroup parsedMessage = null; + com.google.ads.googleads.v0.resources.MobileAppCategoryConstant parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.ads.googleads.v0.resources.CampaignGroup) e.getUnfinishedMessage(); + parsedMessage = (com.google.ads.googleads.v0.resources.MobileAppCategoryConstant) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -655,9 +593,9 @@ public Builder mergeFrom( private java.lang.Object resourceName_ = ""; /** *
-     * The resource name of the campaign group.
-     * Campaign group resource names have the form:
-     * `customers/{customer_id}/campaignGroups/{campaign_group_id}`
+     * The resource name of the mobile app category constant.
+     * Mobile app category constant resource names have the form:
+     * `mobileAppCategoryConstants/{mobile_app_category_id}`
      * 
* * string resource_name = 1; @@ -676,9 +614,9 @@ public java.lang.String getResourceName() { } /** *
-     * The resource name of the campaign group.
-     * Campaign group resource names have the form:
-     * `customers/{customer_id}/campaignGroups/{campaign_group_id}`
+     * The resource name of the mobile app category constant.
+     * Mobile app category constant resource names have the form:
+     * `mobileAppCategoryConstants/{mobile_app_category_id}`
      * 
* * string resource_name = 1; @@ -698,9 +636,9 @@ public java.lang.String getResourceName() { } /** *
-     * The resource name of the campaign group.
-     * Campaign group resource names have the form:
-     * `customers/{customer_id}/campaignGroups/{campaign_group_id}`
+     * The resource name of the mobile app category constant.
+     * Mobile app category constant resource names have the form:
+     * `mobileAppCategoryConstants/{mobile_app_category_id}`
      * 
* * string resource_name = 1; @@ -717,9 +655,9 @@ public Builder setResourceName( } /** *
-     * The resource name of the campaign group.
-     * Campaign group resource names have the form:
-     * `customers/{customer_id}/campaignGroups/{campaign_group_id}`
+     * The resource name of the mobile app category constant.
+     * Mobile app category constant resource names have the form:
+     * `mobileAppCategoryConstants/{mobile_app_category_id}`
      * 
* * string resource_name = 1; @@ -732,9 +670,9 @@ public Builder clearResourceName() { } /** *
-     * The resource name of the campaign group.
-     * Campaign group resource names have the form:
-     * `customers/{customer_id}/campaignGroups/{campaign_group_id}`
+     * The resource name of the mobile app category constant.
+     * Mobile app category constant resource names have the form:
+     * `mobileAppCategoryConstants/{mobile_app_category_id}`
      * 
* * string resource_name = 1; @@ -751,41 +689,41 @@ public Builder setResourceNameBytes( return this; } - private com.google.protobuf.Int64Value id_ = null; + private com.google.protobuf.Int32Value id_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> idBuilder_; + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> idBuilder_; /** *
-     * The ID of the campaign group.
+     * The ID of the mobile app category constant.
      * 
* - * .google.protobuf.Int64Value id = 3; + * .google.protobuf.Int32Value id = 2; */ public boolean hasId() { return idBuilder_ != null || id_ != null; } /** *
-     * The ID of the campaign group.
+     * The ID of the mobile app category constant.
      * 
* - * .google.protobuf.Int64Value id = 3; + * .google.protobuf.Int32Value id = 2; */ - public com.google.protobuf.Int64Value getId() { + public com.google.protobuf.Int32Value getId() { if (idBuilder_ == null) { - return id_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : id_; + return id_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : id_; } else { return idBuilder_.getMessage(); } } /** *
-     * The ID of the campaign group.
+     * The ID of the mobile app category constant.
      * 
* - * .google.protobuf.Int64Value id = 3; + * .google.protobuf.Int32Value id = 2; */ - public Builder setId(com.google.protobuf.Int64Value value) { + public Builder setId(com.google.protobuf.Int32Value value) { if (idBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -800,13 +738,13 @@ public Builder setId(com.google.protobuf.Int64Value value) { } /** *
-     * The ID of the campaign group.
+     * The ID of the mobile app category constant.
      * 
* - * .google.protobuf.Int64Value id = 3; + * .google.protobuf.Int32Value id = 2; */ public Builder setId( - com.google.protobuf.Int64Value.Builder builderForValue) { + com.google.protobuf.Int32Value.Builder builderForValue) { if (idBuilder_ == null) { id_ = builderForValue.build(); onChanged(); @@ -818,16 +756,16 @@ public Builder setId( } /** *
-     * The ID of the campaign group.
+     * The ID of the mobile app category constant.
      * 
* - * .google.protobuf.Int64Value id = 3; + * .google.protobuf.Int32Value id = 2; */ - public Builder mergeId(com.google.protobuf.Int64Value value) { + public Builder mergeId(com.google.protobuf.Int32Value value) { if (idBuilder_ == null) { if (id_ != null) { id_ = - com.google.protobuf.Int64Value.newBuilder(id_).mergeFrom(value).buildPartial(); + com.google.protobuf.Int32Value.newBuilder(id_).mergeFrom(value).buildPartial(); } else { id_ = value; } @@ -840,10 +778,10 @@ public Builder mergeId(com.google.protobuf.Int64Value value) { } /** *
-     * The ID of the campaign group.
+     * The ID of the mobile app category constant.
      * 
* - * .google.protobuf.Int64Value id = 3; + * .google.protobuf.Int32Value id = 2; */ public Builder clearId() { if (idBuilder_ == null) { @@ -858,44 +796,44 @@ public Builder clearId() { } /** *
-     * The ID of the campaign group.
+     * The ID of the mobile app category constant.
      * 
* - * .google.protobuf.Int64Value id = 3; + * .google.protobuf.Int32Value id = 2; */ - public com.google.protobuf.Int64Value.Builder getIdBuilder() { + public com.google.protobuf.Int32Value.Builder getIdBuilder() { onChanged(); return getIdFieldBuilder().getBuilder(); } /** *
-     * The ID of the campaign group.
+     * The ID of the mobile app category constant.
      * 
* - * .google.protobuf.Int64Value id = 3; + * .google.protobuf.Int32Value id = 2; */ - public com.google.protobuf.Int64ValueOrBuilder getIdOrBuilder() { + public com.google.protobuf.Int32ValueOrBuilder getIdOrBuilder() { if (idBuilder_ != null) { return idBuilder_.getMessageOrBuilder(); } else { return id_ == null ? - com.google.protobuf.Int64Value.getDefaultInstance() : id_; + com.google.protobuf.Int32Value.getDefaultInstance() : id_; } } /** *
-     * The ID of the campaign group.
+     * The ID of the mobile app category constant.
      * 
* - * .google.protobuf.Int64Value id = 3; + * .google.protobuf.Int32Value id = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> getIdFieldBuilder() { if (idBuilder_ == null) { idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( getId(), getParentForChildren(), isClean()); @@ -909,28 +847,20 @@ public com.google.protobuf.Int64ValueOrBuilder getIdOrBuilder() { com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> nameBuilder_; /** *
-     * The name of the campaign group.
-     * This field is required and should not be empty when creating new campaign
-     * groups.
-     * It must not contain any null (code point 0x0), NL line feed
-     * (code point 0xA) or carriage return (code point 0xD) characters.
+     * Mobile app category name.
      * 
* - * .google.protobuf.StringValue name = 4; + * .google.protobuf.StringValue name = 3; */ public boolean hasName() { return nameBuilder_ != null || name_ != null; } /** *
-     * The name of the campaign group.
-     * This field is required and should not be empty when creating new campaign
-     * groups.
-     * It must not contain any null (code point 0x0), NL line feed
-     * (code point 0xA) or carriage return (code point 0xD) characters.
+     * Mobile app category name.
      * 
* - * .google.protobuf.StringValue name = 4; + * .google.protobuf.StringValue name = 3; */ public com.google.protobuf.StringValue getName() { if (nameBuilder_ == null) { @@ -941,14 +871,10 @@ public com.google.protobuf.StringValue getName() { } /** *
-     * The name of the campaign group.
-     * This field is required and should not be empty when creating new campaign
-     * groups.
-     * It must not contain any null (code point 0x0), NL line feed
-     * (code point 0xA) or carriage return (code point 0xD) characters.
+     * Mobile app category name.
      * 
* - * .google.protobuf.StringValue name = 4; + * .google.protobuf.StringValue name = 3; */ public Builder setName(com.google.protobuf.StringValue value) { if (nameBuilder_ == null) { @@ -965,14 +891,10 @@ public Builder setName(com.google.protobuf.StringValue value) { } /** *
-     * The name of the campaign group.
-     * This field is required and should not be empty when creating new campaign
-     * groups.
-     * It must not contain any null (code point 0x0), NL line feed
-     * (code point 0xA) or carriage return (code point 0xD) characters.
+     * Mobile app category name.
      * 
* - * .google.protobuf.StringValue name = 4; + * .google.protobuf.StringValue name = 3; */ public Builder setName( com.google.protobuf.StringValue.Builder builderForValue) { @@ -987,14 +909,10 @@ public Builder setName( } /** *
-     * The name of the campaign group.
-     * This field is required and should not be empty when creating new campaign
-     * groups.
-     * It must not contain any null (code point 0x0), NL line feed
-     * (code point 0xA) or carriage return (code point 0xD) characters.
+     * Mobile app category name.
      * 
* - * .google.protobuf.StringValue name = 4; + * .google.protobuf.StringValue name = 3; */ public Builder mergeName(com.google.protobuf.StringValue value) { if (nameBuilder_ == null) { @@ -1013,14 +931,10 @@ public Builder mergeName(com.google.protobuf.StringValue value) { } /** *
-     * The name of the campaign group.
-     * This field is required and should not be empty when creating new campaign
-     * groups.
-     * It must not contain any null (code point 0x0), NL line feed
-     * (code point 0xA) or carriage return (code point 0xD) characters.
+     * Mobile app category name.
      * 
* - * .google.protobuf.StringValue name = 4; + * .google.protobuf.StringValue name = 3; */ public Builder clearName() { if (nameBuilder_ == null) { @@ -1035,14 +949,10 @@ public Builder clearName() { } /** *
-     * The name of the campaign group.
-     * This field is required and should not be empty when creating new campaign
-     * groups.
-     * It must not contain any null (code point 0x0), NL line feed
-     * (code point 0xA) or carriage return (code point 0xD) characters.
+     * Mobile app category name.
      * 
* - * .google.protobuf.StringValue name = 4; + * .google.protobuf.StringValue name = 3; */ public com.google.protobuf.StringValue.Builder getNameBuilder() { @@ -1051,14 +961,10 @@ public com.google.protobuf.StringValue.Builder getNameBuilder() { } /** *
-     * The name of the campaign group.
-     * This field is required and should not be empty when creating new campaign
-     * groups.
-     * It must not contain any null (code point 0x0), NL line feed
-     * (code point 0xA) or carriage return (code point 0xD) characters.
+     * Mobile app category name.
      * 
* - * .google.protobuf.StringValue name = 4; + * .google.protobuf.StringValue name = 3; */ public com.google.protobuf.StringValueOrBuilder getNameOrBuilder() { if (nameBuilder_ != null) { @@ -1070,14 +976,10 @@ public com.google.protobuf.StringValueOrBuilder getNameOrBuilder() { } /** *
-     * The name of the campaign group.
-     * This field is required and should not be empty when creating new campaign
-     * groups.
-     * It must not contain any null (code point 0x0), NL line feed
-     * (code point 0xA) or carriage return (code point 0xD) characters.
+     * Mobile app category name.
      * 
* - * .google.protobuf.StringValue name = 4; + * .google.protobuf.StringValue name = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> @@ -1092,76 +994,6 @@ public com.google.protobuf.StringValueOrBuilder getNameOrBuilder() { } return nameBuilder_; } - - private int status_ = 0; - /** - *
-     * The status of the campaign group.
-     * When a new campaign group is added, the status defaults to ENABLED.
-     * 
- * - * .google.ads.googleads.v0.enums.CampaignGroupStatusEnum.CampaignGroupStatus status = 5; - */ - public int getStatusValue() { - return status_; - } - /** - *
-     * The status of the campaign group.
-     * When a new campaign group is added, the status defaults to ENABLED.
-     * 
- * - * .google.ads.googleads.v0.enums.CampaignGroupStatusEnum.CampaignGroupStatus status = 5; - */ - public Builder setStatusValue(int value) { - status_ = value; - onChanged(); - return this; - } - /** - *
-     * The status of the campaign group.
-     * When a new campaign group is added, the status defaults to ENABLED.
-     * 
- * - * .google.ads.googleads.v0.enums.CampaignGroupStatusEnum.CampaignGroupStatus status = 5; - */ - public com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum.CampaignGroupStatus getStatus() { - @SuppressWarnings("deprecation") - com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum.CampaignGroupStatus result = com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum.CampaignGroupStatus.valueOf(status_); - return result == null ? com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum.CampaignGroupStatus.UNRECOGNIZED : result; - } - /** - *
-     * The status of the campaign group.
-     * When a new campaign group is added, the status defaults to ENABLED.
-     * 
- * - * .google.ads.googleads.v0.enums.CampaignGroupStatusEnum.CampaignGroupStatus status = 5; - */ - public Builder setStatus(com.google.ads.googleads.v0.enums.CampaignGroupStatusEnum.CampaignGroupStatus value) { - if (value == null) { - throw new NullPointerException(); - } - - status_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * The status of the campaign group.
-     * When a new campaign group is added, the status defaults to ENABLED.
-     * 
- * - * .google.ads.googleads.v0.enums.CampaignGroupStatusEnum.CampaignGroupStatus status = 5; - */ - public Builder clearStatus() { - - status_ = 0; - onChanged(); - return this; - } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1175,41 +1007,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.resources.CampaignGroup) + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.resources.MobileAppCategoryConstant) } - // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.resources.CampaignGroup) - private static final com.google.ads.googleads.v0.resources.CampaignGroup DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.resources.MobileAppCategoryConstant) + private static final com.google.ads.googleads.v0.resources.MobileAppCategoryConstant DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.ads.googleads.v0.resources.CampaignGroup(); + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.resources.MobileAppCategoryConstant(); } - public static com.google.ads.googleads.v0.resources.CampaignGroup getDefaultInstance() { + public static com.google.ads.googleads.v0.resources.MobileAppCategoryConstant 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 CampaignGroup parsePartialFrom( + public MobileAppCategoryConstant parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CampaignGroup(input, extensionRegistry); + return new MobileAppCategoryConstant(input, extensionRegistry); } }; - 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.ads.googleads.v0.resources.CampaignGroup getDefaultInstanceForType() { + public com.google.ads.googleads.v0.resources.MobileAppCategoryConstant getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MobileAppCategoryConstantName.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MobileAppCategoryConstantName.java new file mode 100644 index 0000000000..b380b0e428 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MobileAppCategoryConstantName.java @@ -0,0 +1,166 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.ads.googleads.v0.resources; + +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import java.util.Map; +import java.util.ArrayList; +import java.util.List; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class MobileAppCategoryConstantName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("mobileAppCategoryConstants/{mobile_app_category_constant}"); + + private volatile Map fieldValuesMap; + + private final String mobileAppCategoryConstant; + + public String getMobileAppCategoryConstant() { + return mobileAppCategoryConstant; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private MobileAppCategoryConstantName(Builder builder) { + mobileAppCategoryConstant = Preconditions.checkNotNull(builder.getMobileAppCategoryConstant()); + } + + public static MobileAppCategoryConstantName of(String mobileAppCategoryConstant) { + return newBuilder() + .setMobileAppCategoryConstant(mobileAppCategoryConstant) + .build(); + } + + public static String format(String mobileAppCategoryConstant) { + return newBuilder() + .setMobileAppCategoryConstant(mobileAppCategoryConstant) + .build() + .toString(); + } + + public static MobileAppCategoryConstantName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch(formattedString, "MobileAppCategoryConstantName.parse: formattedString not in valid format"); + return of(matchMap.get("mobile_app_category_constant")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (MobileAppCategoryConstantName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("mobileAppCategoryConstant", mobileAppCategoryConstant); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("mobile_app_category_constant", mobileAppCategoryConstant); + } + + /** Builder for MobileAppCategoryConstantName. */ + public static class Builder { + + private String mobileAppCategoryConstant; + + public String getMobileAppCategoryConstant() { + return mobileAppCategoryConstant; + } + + public Builder setMobileAppCategoryConstant(String mobileAppCategoryConstant) { + this.mobileAppCategoryConstant = mobileAppCategoryConstant; + return this; + } + + private Builder() { + } + + private Builder(MobileAppCategoryConstantName mobileAppCategoryConstantName) { + mobileAppCategoryConstant = mobileAppCategoryConstantName.mobileAppCategoryConstant; + } + + public MobileAppCategoryConstantName build() { + return new MobileAppCategoryConstantName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof MobileAppCategoryConstantName) { + MobileAppCategoryConstantName that = (MobileAppCategoryConstantName) o; + return (this.mobileAppCategoryConstant.equals(that.mobileAppCategoryConstant)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= mobileAppCategoryConstant.hashCode(); + return h; + } +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MobileAppCategoryConstantOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MobileAppCategoryConstantOrBuilder.java new file mode 100644 index 0000000000..1300185671 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MobileAppCategoryConstantOrBuilder.java @@ -0,0 +1,81 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/resources/mobile_app_category_constant.proto + +package com.google.ads.googleads.v0.resources; + +public interface MobileAppCategoryConstantOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.resources.MobileAppCategoryConstant) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The resource name of the mobile app category constant.
+   * Mobile app category constant resource names have the form:
+   * `mobileAppCategoryConstants/{mobile_app_category_id}`
+   * 
+ * + * string resource_name = 1; + */ + java.lang.String getResourceName(); + /** + *
+   * The resource name of the mobile app category constant.
+   * Mobile app category constant resource names have the form:
+   * `mobileAppCategoryConstants/{mobile_app_category_id}`
+   * 
+ * + * string resource_name = 1; + */ + com.google.protobuf.ByteString + getResourceNameBytes(); + + /** + *
+   * The ID of the mobile app category constant.
+   * 
+ * + * .google.protobuf.Int32Value id = 2; + */ + boolean hasId(); + /** + *
+   * The ID of the mobile app category constant.
+   * 
+ * + * .google.protobuf.Int32Value id = 2; + */ + com.google.protobuf.Int32Value getId(); + /** + *
+   * The ID of the mobile app category constant.
+   * 
+ * + * .google.protobuf.Int32Value id = 2; + */ + com.google.protobuf.Int32ValueOrBuilder getIdOrBuilder(); + + /** + *
+   * Mobile app category name.
+   * 
+ * + * .google.protobuf.StringValue name = 3; + */ + boolean hasName(); + /** + *
+   * Mobile app category name.
+   * 
+ * + * .google.protobuf.StringValue name = 3; + */ + com.google.protobuf.StringValue getName(); + /** + *
+   * Mobile app category name.
+   * 
+ * + * .google.protobuf.StringValue name = 3; + */ + com.google.protobuf.StringValueOrBuilder getNameOrBuilder(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MobileAppCategoryConstantProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MobileAppCategoryConstantProto.java new file mode 100644 index 0000000000..40bf55cd47 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MobileAppCategoryConstantProto.java @@ -0,0 +1,69 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/resources/mobile_app_category_constant.proto + +package com.google.ads.googleads.v0.resources; + +public final class MobileAppCategoryConstantProto { + private MobileAppCategoryConstantProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_resources_MobileAppCategoryConstant_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_resources_MobileAppCategoryConstant_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nDgoogle/ads/googleads/v0/resources/mobi" + + "le_app_category_constant.proto\022!google.a" + + "ds.googleads.v0.resources\032\036google/protob" + + "uf/wrappers.proto\"\207\001\n\031MobileAppCategoryC" + + "onstant\022\025\n\rresource_name\030\001 \001(\t\022\'\n\002id\030\002 \001" + + "(\0132\033.google.protobuf.Int32Value\022*\n\004name\030" + + "\003 \001(\0132\034.google.protobuf.StringValueB\213\002\n%" + + "com.google.ads.googleads.v0.resourcesB\036M" + + "obileAppCategoryConstantProtoP\001ZJgoogle." + + "golang.org/genproto/googleapis/ads/googl" + + "eads/v0/resources;resources\242\002\003GAA\252\002!Goog" + + "le.Ads.GoogleAds.V0.Resources\312\002!Google\\A" + + "ds\\GoogleAds\\V0\\Resources\352\002%Google::Ads:" + + ":GoogleAds::V0::Resourcesb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.WrappersProto.getDescriptor(), + }, assigner); + internal_static_google_ads_googleads_v0_resources_MobileAppCategoryConstant_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_googleads_v0_resources_MobileAppCategoryConstant_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_resources_MobileAppCategoryConstant_descriptor, + new java.lang.String[] { "ResourceName", "Id", "Name", }); + com.google.protobuf.WrappersProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MobileDeviceConstant.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MobileDeviceConstant.java new file mode 100644 index 0000000000..6aa5beedc3 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MobileDeviceConstant.java @@ -0,0 +1,1620 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/resources/mobile_device_constant.proto + +package com.google.ads.googleads.v0.resources; + +/** + *
+ * A mobile device constant.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.resources.MobileDeviceConstant} + */ +public final class MobileDeviceConstant extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.resources.MobileDeviceConstant) + MobileDeviceConstantOrBuilder { +private static final long serialVersionUID = 0L; + // Use MobileDeviceConstant.newBuilder() to construct. + private MobileDeviceConstant(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MobileDeviceConstant() { + resourceName_ = ""; + type_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MobileDeviceConstant( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + resourceName_ = s; + break; + } + case 18: { + com.google.protobuf.Int64Value.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (name_ != null) { + subBuilder = name_.toBuilder(); + } + name_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(name_); + name_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (manufacturerName_ != null) { + subBuilder = manufacturerName_.toBuilder(); + } + manufacturerName_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(manufacturerName_); + manufacturerName_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (operatingSystemName_ != null) { + subBuilder = operatingSystemName_.toBuilder(); + } + operatingSystemName_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(operatingSystemName_); + operatingSystemName_ = subBuilder.buildPartial(); + } + + break; + } + case 48: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.resources.MobileDeviceConstantProto.internal_static_google_ads_googleads_v0_resources_MobileDeviceConstant_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.resources.MobileDeviceConstantProto.internal_static_google_ads_googleads_v0_resources_MobileDeviceConstant_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.resources.MobileDeviceConstant.class, com.google.ads.googleads.v0.resources.MobileDeviceConstant.Builder.class); + } + + public static final int RESOURCE_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object resourceName_; + /** + *
+   * The resource name of the mobile device constant.
+   * Mobile device constant resource names have the form:
+   * `mobileDeviceConstants/{criterion_id}`
+   * 
+ * + * string resource_name = 1; + */ + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } + } + /** + *
+   * The resource name of the mobile device constant.
+   * Mobile device constant resource names have the form:
+   * `mobileDeviceConstants/{criterion_id}`
+   * 
+ * + * string resource_name = 1; + */ + public com.google.protobuf.ByteString + getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ID_FIELD_NUMBER = 2; + private com.google.protobuf.Int64Value id_; + /** + *
+   * The ID of the mobile device constant.
+   * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+   * The ID of the mobile device constant.
+   * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + public com.google.protobuf.Int64Value getId() { + return id_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : id_; + } + /** + *
+   * The ID of the mobile device constant.
+   * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + public com.google.protobuf.Int64ValueOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int NAME_FIELD_NUMBER = 3; + private com.google.protobuf.StringValue name_; + /** + *
+   * The name of the mobile device.
+   * 
+ * + * .google.protobuf.StringValue name = 3; + */ + public boolean hasName() { + return name_ != null; + } + /** + *
+   * The name of the mobile device.
+   * 
+ * + * .google.protobuf.StringValue name = 3; + */ + public com.google.protobuf.StringValue getName() { + return name_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : name_; + } + /** + *
+   * The name of the mobile device.
+   * 
+ * + * .google.protobuf.StringValue name = 3; + */ + public com.google.protobuf.StringValueOrBuilder getNameOrBuilder() { + return getName(); + } + + public static final int MANUFACTURER_NAME_FIELD_NUMBER = 4; + private com.google.protobuf.StringValue manufacturerName_; + /** + *
+   * The manufacturer of the mobile device.
+   * 
+ * + * .google.protobuf.StringValue manufacturer_name = 4; + */ + public boolean hasManufacturerName() { + return manufacturerName_ != null; + } + /** + *
+   * The manufacturer of the mobile device.
+   * 
+ * + * .google.protobuf.StringValue manufacturer_name = 4; + */ + public com.google.protobuf.StringValue getManufacturerName() { + return manufacturerName_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : manufacturerName_; + } + /** + *
+   * The manufacturer of the mobile device.
+   * 
+ * + * .google.protobuf.StringValue manufacturer_name = 4; + */ + public com.google.protobuf.StringValueOrBuilder getManufacturerNameOrBuilder() { + return getManufacturerName(); + } + + public static final int OPERATING_SYSTEM_NAME_FIELD_NUMBER = 5; + private com.google.protobuf.StringValue operatingSystemName_; + /** + *
+   * The operating system of the mobile device.
+   * 
+ * + * .google.protobuf.StringValue operating_system_name = 5; + */ + public boolean hasOperatingSystemName() { + return operatingSystemName_ != null; + } + /** + *
+   * The operating system of the mobile device.
+   * 
+ * + * .google.protobuf.StringValue operating_system_name = 5; + */ + public com.google.protobuf.StringValue getOperatingSystemName() { + return operatingSystemName_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : operatingSystemName_; + } + /** + *
+   * The operating system of the mobile device.
+   * 
+ * + * .google.protobuf.StringValue operating_system_name = 5; + */ + public com.google.protobuf.StringValueOrBuilder getOperatingSystemNameOrBuilder() { + return getOperatingSystemName(); + } + + public static final int TYPE_FIELD_NUMBER = 6; + private int type_; + /** + *
+   * The type of mobile device.
+   * 
+ * + * .google.ads.googleads.v0.enums.MobileDeviceTypeEnum.MobileDeviceType type = 6; + */ + public int getTypeValue() { + return type_; + } + /** + *
+   * The type of mobile device.
+   * 
+ * + * .google.ads.googleads.v0.enums.MobileDeviceTypeEnum.MobileDeviceType type = 6; + */ + public com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum.MobileDeviceType getType() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum.MobileDeviceType result = com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum.MobileDeviceType.valueOf(type_); + return result == null ? com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum.MobileDeviceType.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getResourceNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_); + } + if (id_ != null) { + output.writeMessage(2, getId()); + } + if (name_ != null) { + output.writeMessage(3, getName()); + } + if (manufacturerName_ != null) { + output.writeMessage(4, getManufacturerName()); + } + if (operatingSystemName_ != null) { + output.writeMessage(5, getOperatingSystemName()); + } + if (type_ != com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum.MobileDeviceType.UNSPECIFIED.getNumber()) { + output.writeEnum(6, type_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getResourceNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_); + } + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getId()); + } + if (name_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getName()); + } + if (manufacturerName_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getManufacturerName()); + } + if (operatingSystemName_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getOperatingSystemName()); + } + if (type_ != com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum.MobileDeviceType.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, type_); + } + size += unknownFields.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.ads.googleads.v0.resources.MobileDeviceConstant)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.resources.MobileDeviceConstant other = (com.google.ads.googleads.v0.resources.MobileDeviceConstant) obj; + + boolean result = true; + result = result && getResourceName() + .equals(other.getResourceName()); + result = result && (hasId() == other.hasId()); + if (hasId()) { + result = result && getId() + .equals(other.getId()); + } + result = result && (hasName() == other.hasName()); + if (hasName()) { + result = result && getName() + .equals(other.getName()); + } + result = result && (hasManufacturerName() == other.hasManufacturerName()); + if (hasManufacturerName()) { + result = result && getManufacturerName() + .equals(other.getManufacturerName()); + } + result = result && (hasOperatingSystemName() == other.hasOperatingSystemName()); + if (hasOperatingSystemName()) { + result = result && getOperatingSystemName() + .equals(other.getOperatingSystemName()); + } + result = result && type_ == other.type_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getResourceName().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + if (hasManufacturerName()) { + hash = (37 * hash) + MANUFACTURER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getManufacturerName().hashCode(); + } + if (hasOperatingSystemName()) { + hash = (37 * hash) + OPERATING_SYSTEM_NAME_FIELD_NUMBER; + hash = (53 * hash) + getOperatingSystemName().hashCode(); + } + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.resources.MobileDeviceConstant parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.MobileDeviceConstant parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.resources.MobileDeviceConstant parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.MobileDeviceConstant 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.ads.googleads.v0.resources.MobileDeviceConstant parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.MobileDeviceConstant parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.resources.MobileDeviceConstant parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.MobileDeviceConstant 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.ads.googleads.v0.resources.MobileDeviceConstant parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.MobileDeviceConstant 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.ads.googleads.v0.resources.MobileDeviceConstant parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.MobileDeviceConstant 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.ads.googleads.v0.resources.MobileDeviceConstant prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A mobile device constant.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.resources.MobileDeviceConstant} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.resources.MobileDeviceConstant) + com.google.ads.googleads.v0.resources.MobileDeviceConstantOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.resources.MobileDeviceConstantProto.internal_static_google_ads_googleads_v0_resources_MobileDeviceConstant_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.resources.MobileDeviceConstantProto.internal_static_google_ads_googleads_v0_resources_MobileDeviceConstant_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.resources.MobileDeviceConstant.class, com.google.ads.googleads.v0.resources.MobileDeviceConstant.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.resources.MobileDeviceConstant.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + resourceName_ = ""; + + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (nameBuilder_ == null) { + name_ = null; + } else { + name_ = null; + nameBuilder_ = null; + } + if (manufacturerNameBuilder_ == null) { + manufacturerName_ = null; + } else { + manufacturerName_ = null; + manufacturerNameBuilder_ = null; + } + if (operatingSystemNameBuilder_ == null) { + operatingSystemName_ = null; + } else { + operatingSystemName_ = null; + operatingSystemNameBuilder_ = null; + } + type_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.resources.MobileDeviceConstantProto.internal_static_google_ads_googleads_v0_resources_MobileDeviceConstant_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.MobileDeviceConstant getDefaultInstanceForType() { + return com.google.ads.googleads.v0.resources.MobileDeviceConstant.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.MobileDeviceConstant build() { + com.google.ads.googleads.v0.resources.MobileDeviceConstant result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.MobileDeviceConstant buildPartial() { + com.google.ads.googleads.v0.resources.MobileDeviceConstant result = new com.google.ads.googleads.v0.resources.MobileDeviceConstant(this); + result.resourceName_ = resourceName_; + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (nameBuilder_ == null) { + result.name_ = name_; + } else { + result.name_ = nameBuilder_.build(); + } + if (manufacturerNameBuilder_ == null) { + result.manufacturerName_ = manufacturerName_; + } else { + result.manufacturerName_ = manufacturerNameBuilder_.build(); + } + if (operatingSystemNameBuilder_ == null) { + result.operatingSystemName_ = operatingSystemName_; + } else { + result.operatingSystemName_ = operatingSystemNameBuilder_.build(); + } + result.type_ = type_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.resources.MobileDeviceConstant) { + return mergeFrom((com.google.ads.googleads.v0.resources.MobileDeviceConstant)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.resources.MobileDeviceConstant other) { + if (other == com.google.ads.googleads.v0.resources.MobileDeviceConstant.getDefaultInstance()) return this; + if (!other.getResourceName().isEmpty()) { + resourceName_ = other.resourceName_; + onChanged(); + } + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasName()) { + mergeName(other.getName()); + } + if (other.hasManufacturerName()) { + mergeManufacturerName(other.getManufacturerName()); + } + if (other.hasOperatingSystemName()) { + mergeOperatingSystemName(other.getOperatingSystemName()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.resources.MobileDeviceConstant parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.resources.MobileDeviceConstant) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object resourceName_ = ""; + /** + *
+     * The resource name of the mobile device constant.
+     * Mobile device constant resource names have the form:
+     * `mobileDeviceConstants/{criterion_id}`
+     * 
+ * + * string resource_name = 1; + */ + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The resource name of the mobile device constant.
+     * Mobile device constant resource names have the form:
+     * `mobileDeviceConstants/{criterion_id}`
+     * 
+ * + * string resource_name = 1; + */ + public com.google.protobuf.ByteString + getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The resource name of the mobile device constant.
+     * Mobile device constant resource names have the form:
+     * `mobileDeviceConstants/{criterion_id}`
+     * 
+ * + * string resource_name = 1; + */ + public Builder setResourceName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceName_ = value; + onChanged(); + return this; + } + /** + *
+     * The resource name of the mobile device constant.
+     * Mobile device constant resource names have the form:
+     * `mobileDeviceConstants/{criterion_id}`
+     * 
+ * + * string resource_name = 1; + */ + public Builder clearResourceName() { + + resourceName_ = getDefaultInstance().getResourceName(); + onChanged(); + return this; + } + /** + *
+     * The resource name of the mobile device constant.
+     * Mobile device constant resource names have the form:
+     * `mobileDeviceConstants/{criterion_id}`
+     * 
+ * + * string resource_name = 1; + */ + public Builder setResourceNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Int64Value id_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> idBuilder_; + /** + *
+     * The ID of the mobile device constant.
+     * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+     * The ID of the mobile device constant.
+     * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + public com.google.protobuf.Int64Value getId() { + if (idBuilder_ == null) { + return id_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+     * The ID of the mobile device constant.
+     * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + public Builder setId(com.google.protobuf.Int64Value value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The ID of the mobile device constant.
+     * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + public Builder setId( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The ID of the mobile device constant.
+     * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + public Builder mergeId(com.google.protobuf.Int64Value value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + com.google.protobuf.Int64Value.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The ID of the mobile device constant.
+     * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+     * The ID of the mobile device constant.
+     * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + public com.google.protobuf.Int64Value.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+     * The ID of the mobile device constant.
+     * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + public com.google.protobuf.Int64ValueOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : id_; + } + } + /** + *
+     * The ID of the mobile device constant.
+     * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private com.google.protobuf.StringValue name_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> nameBuilder_; + /** + *
+     * The name of the mobile device.
+     * 
+ * + * .google.protobuf.StringValue name = 3; + */ + public boolean hasName() { + return nameBuilder_ != null || name_ != null; + } + /** + *
+     * The name of the mobile device.
+     * 
+ * + * .google.protobuf.StringValue name = 3; + */ + public com.google.protobuf.StringValue getName() { + if (nameBuilder_ == null) { + return name_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : name_; + } else { + return nameBuilder_.getMessage(); + } + } + /** + *
+     * The name of the mobile device.
+     * 
+ * + * .google.protobuf.StringValue name = 3; + */ + public Builder setName(com.google.protobuf.StringValue value) { + if (nameBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + onChanged(); + } else { + nameBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The name of the mobile device.
+     * 
+ * + * .google.protobuf.StringValue name = 3; + */ + public Builder setName( + com.google.protobuf.StringValue.Builder builderForValue) { + if (nameBuilder_ == null) { + name_ = builderForValue.build(); + onChanged(); + } else { + nameBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The name of the mobile device.
+     * 
+ * + * .google.protobuf.StringValue name = 3; + */ + public Builder mergeName(com.google.protobuf.StringValue value) { + if (nameBuilder_ == null) { + if (name_ != null) { + name_ = + com.google.protobuf.StringValue.newBuilder(name_).mergeFrom(value).buildPartial(); + } else { + name_ = value; + } + onChanged(); + } else { + nameBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The name of the mobile device.
+     * 
+ * + * .google.protobuf.StringValue name = 3; + */ + public Builder clearName() { + if (nameBuilder_ == null) { + name_ = null; + onChanged(); + } else { + name_ = null; + nameBuilder_ = null; + } + + return this; + } + /** + *
+     * The name of the mobile device.
+     * 
+ * + * .google.protobuf.StringValue name = 3; + */ + public com.google.protobuf.StringValue.Builder getNameBuilder() { + + onChanged(); + return getNameFieldBuilder().getBuilder(); + } + /** + *
+     * The name of the mobile device.
+     * 
+ * + * .google.protobuf.StringValue name = 3; + */ + public com.google.protobuf.StringValueOrBuilder getNameOrBuilder() { + if (nameBuilder_ != null) { + return nameBuilder_.getMessageOrBuilder(); + } else { + return name_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : name_; + } + } + /** + *
+     * The name of the mobile device.
+     * 
+ * + * .google.protobuf.StringValue name = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getNameFieldBuilder() { + if (nameBuilder_ == null) { + nameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getName(), + getParentForChildren(), + isClean()); + name_ = null; + } + return nameBuilder_; + } + + private com.google.protobuf.StringValue manufacturerName_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> manufacturerNameBuilder_; + /** + *
+     * The manufacturer of the mobile device.
+     * 
+ * + * .google.protobuf.StringValue manufacturer_name = 4; + */ + public boolean hasManufacturerName() { + return manufacturerNameBuilder_ != null || manufacturerName_ != null; + } + /** + *
+     * The manufacturer of the mobile device.
+     * 
+ * + * .google.protobuf.StringValue manufacturer_name = 4; + */ + public com.google.protobuf.StringValue getManufacturerName() { + if (manufacturerNameBuilder_ == null) { + return manufacturerName_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : manufacturerName_; + } else { + return manufacturerNameBuilder_.getMessage(); + } + } + /** + *
+     * The manufacturer of the mobile device.
+     * 
+ * + * .google.protobuf.StringValue manufacturer_name = 4; + */ + public Builder setManufacturerName(com.google.protobuf.StringValue value) { + if (manufacturerNameBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + manufacturerName_ = value; + onChanged(); + } else { + manufacturerNameBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The manufacturer of the mobile device.
+     * 
+ * + * .google.protobuf.StringValue manufacturer_name = 4; + */ + public Builder setManufacturerName( + com.google.protobuf.StringValue.Builder builderForValue) { + if (manufacturerNameBuilder_ == null) { + manufacturerName_ = builderForValue.build(); + onChanged(); + } else { + manufacturerNameBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The manufacturer of the mobile device.
+     * 
+ * + * .google.protobuf.StringValue manufacturer_name = 4; + */ + public Builder mergeManufacturerName(com.google.protobuf.StringValue value) { + if (manufacturerNameBuilder_ == null) { + if (manufacturerName_ != null) { + manufacturerName_ = + com.google.protobuf.StringValue.newBuilder(manufacturerName_).mergeFrom(value).buildPartial(); + } else { + manufacturerName_ = value; + } + onChanged(); + } else { + manufacturerNameBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The manufacturer of the mobile device.
+     * 
+ * + * .google.protobuf.StringValue manufacturer_name = 4; + */ + public Builder clearManufacturerName() { + if (manufacturerNameBuilder_ == null) { + manufacturerName_ = null; + onChanged(); + } else { + manufacturerName_ = null; + manufacturerNameBuilder_ = null; + } + + return this; + } + /** + *
+     * The manufacturer of the mobile device.
+     * 
+ * + * .google.protobuf.StringValue manufacturer_name = 4; + */ + public com.google.protobuf.StringValue.Builder getManufacturerNameBuilder() { + + onChanged(); + return getManufacturerNameFieldBuilder().getBuilder(); + } + /** + *
+     * The manufacturer of the mobile device.
+     * 
+ * + * .google.protobuf.StringValue manufacturer_name = 4; + */ + public com.google.protobuf.StringValueOrBuilder getManufacturerNameOrBuilder() { + if (manufacturerNameBuilder_ != null) { + return manufacturerNameBuilder_.getMessageOrBuilder(); + } else { + return manufacturerName_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : manufacturerName_; + } + } + /** + *
+     * The manufacturer of the mobile device.
+     * 
+ * + * .google.protobuf.StringValue manufacturer_name = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getManufacturerNameFieldBuilder() { + if (manufacturerNameBuilder_ == null) { + manufacturerNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getManufacturerName(), + getParentForChildren(), + isClean()); + manufacturerName_ = null; + } + return manufacturerNameBuilder_; + } + + private com.google.protobuf.StringValue operatingSystemName_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> operatingSystemNameBuilder_; + /** + *
+     * The operating system of the mobile device.
+     * 
+ * + * .google.protobuf.StringValue operating_system_name = 5; + */ + public boolean hasOperatingSystemName() { + return operatingSystemNameBuilder_ != null || operatingSystemName_ != null; + } + /** + *
+     * The operating system of the mobile device.
+     * 
+ * + * .google.protobuf.StringValue operating_system_name = 5; + */ + public com.google.protobuf.StringValue getOperatingSystemName() { + if (operatingSystemNameBuilder_ == null) { + return operatingSystemName_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : operatingSystemName_; + } else { + return operatingSystemNameBuilder_.getMessage(); + } + } + /** + *
+     * The operating system of the mobile device.
+     * 
+ * + * .google.protobuf.StringValue operating_system_name = 5; + */ + public Builder setOperatingSystemName(com.google.protobuf.StringValue value) { + if (operatingSystemNameBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + operatingSystemName_ = value; + onChanged(); + } else { + operatingSystemNameBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The operating system of the mobile device.
+     * 
+ * + * .google.protobuf.StringValue operating_system_name = 5; + */ + public Builder setOperatingSystemName( + com.google.protobuf.StringValue.Builder builderForValue) { + if (operatingSystemNameBuilder_ == null) { + operatingSystemName_ = builderForValue.build(); + onChanged(); + } else { + operatingSystemNameBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The operating system of the mobile device.
+     * 
+ * + * .google.protobuf.StringValue operating_system_name = 5; + */ + public Builder mergeOperatingSystemName(com.google.protobuf.StringValue value) { + if (operatingSystemNameBuilder_ == null) { + if (operatingSystemName_ != null) { + operatingSystemName_ = + com.google.protobuf.StringValue.newBuilder(operatingSystemName_).mergeFrom(value).buildPartial(); + } else { + operatingSystemName_ = value; + } + onChanged(); + } else { + operatingSystemNameBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The operating system of the mobile device.
+     * 
+ * + * .google.protobuf.StringValue operating_system_name = 5; + */ + public Builder clearOperatingSystemName() { + if (operatingSystemNameBuilder_ == null) { + operatingSystemName_ = null; + onChanged(); + } else { + operatingSystemName_ = null; + operatingSystemNameBuilder_ = null; + } + + return this; + } + /** + *
+     * The operating system of the mobile device.
+     * 
+ * + * .google.protobuf.StringValue operating_system_name = 5; + */ + public com.google.protobuf.StringValue.Builder getOperatingSystemNameBuilder() { + + onChanged(); + return getOperatingSystemNameFieldBuilder().getBuilder(); + } + /** + *
+     * The operating system of the mobile device.
+     * 
+ * + * .google.protobuf.StringValue operating_system_name = 5; + */ + public com.google.protobuf.StringValueOrBuilder getOperatingSystemNameOrBuilder() { + if (operatingSystemNameBuilder_ != null) { + return operatingSystemNameBuilder_.getMessageOrBuilder(); + } else { + return operatingSystemName_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : operatingSystemName_; + } + } + /** + *
+     * The operating system of the mobile device.
+     * 
+ * + * .google.protobuf.StringValue operating_system_name = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getOperatingSystemNameFieldBuilder() { + if (operatingSystemNameBuilder_ == null) { + operatingSystemNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getOperatingSystemName(), + getParentForChildren(), + isClean()); + operatingSystemName_ = null; + } + return operatingSystemNameBuilder_; + } + + private int type_ = 0; + /** + *
+     * The type of mobile device.
+     * 
+ * + * .google.ads.googleads.v0.enums.MobileDeviceTypeEnum.MobileDeviceType type = 6; + */ + public int getTypeValue() { + return type_; + } + /** + *
+     * The type of mobile device.
+     * 
+ * + * .google.ads.googleads.v0.enums.MobileDeviceTypeEnum.MobileDeviceType type = 6; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + *
+     * The type of mobile device.
+     * 
+ * + * .google.ads.googleads.v0.enums.MobileDeviceTypeEnum.MobileDeviceType type = 6; + */ + public com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum.MobileDeviceType getType() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum.MobileDeviceType result = com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum.MobileDeviceType.valueOf(type_); + return result == null ? com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum.MobileDeviceType.UNRECOGNIZED : result; + } + /** + *
+     * The type of mobile device.
+     * 
+ * + * .google.ads.googleads.v0.enums.MobileDeviceTypeEnum.MobileDeviceType type = 6; + */ + public Builder setType(com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum.MobileDeviceType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The type of mobile device.
+     * 
+ * + * .google.ads.googleads.v0.enums.MobileDeviceTypeEnum.MobileDeviceType type = 6; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.resources.MobileDeviceConstant) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.resources.MobileDeviceConstant) + private static final com.google.ads.googleads.v0.resources.MobileDeviceConstant DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.resources.MobileDeviceConstant(); + } + + public static com.google.ads.googleads.v0.resources.MobileDeviceConstant getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MobileDeviceConstant parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MobileDeviceConstant(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.resources.MobileDeviceConstant getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MobileDeviceConstantName.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MobileDeviceConstantName.java new file mode 100644 index 0000000000..6df2968914 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MobileDeviceConstantName.java @@ -0,0 +1,166 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.ads.googleads.v0.resources; + +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import java.util.Map; +import java.util.ArrayList; +import java.util.List; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class MobileDeviceConstantName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("mobileDeviceConstants/{mobile_device_constant}"); + + private volatile Map fieldValuesMap; + + private final String mobileDeviceConstant; + + public String getMobileDeviceConstant() { + return mobileDeviceConstant; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private MobileDeviceConstantName(Builder builder) { + mobileDeviceConstant = Preconditions.checkNotNull(builder.getMobileDeviceConstant()); + } + + public static MobileDeviceConstantName of(String mobileDeviceConstant) { + return newBuilder() + .setMobileDeviceConstant(mobileDeviceConstant) + .build(); + } + + public static String format(String mobileDeviceConstant) { + return newBuilder() + .setMobileDeviceConstant(mobileDeviceConstant) + .build() + .toString(); + } + + public static MobileDeviceConstantName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch(formattedString, "MobileDeviceConstantName.parse: formattedString not in valid format"); + return of(matchMap.get("mobile_device_constant")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (MobileDeviceConstantName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("mobileDeviceConstant", mobileDeviceConstant); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("mobile_device_constant", mobileDeviceConstant); + } + + /** Builder for MobileDeviceConstantName. */ + public static class Builder { + + private String mobileDeviceConstant; + + public String getMobileDeviceConstant() { + return mobileDeviceConstant; + } + + public Builder setMobileDeviceConstant(String mobileDeviceConstant) { + this.mobileDeviceConstant = mobileDeviceConstant; + return this; + } + + private Builder() { + } + + private Builder(MobileDeviceConstantName mobileDeviceConstantName) { + mobileDeviceConstant = mobileDeviceConstantName.mobileDeviceConstant; + } + + public MobileDeviceConstantName build() { + return new MobileDeviceConstantName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof MobileDeviceConstantName) { + MobileDeviceConstantName that = (MobileDeviceConstantName) o; + return (this.mobileDeviceConstant.equals(that.mobileDeviceConstant)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= mobileDeviceConstant.hashCode(); + return h; + } +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MobileDeviceConstantOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MobileDeviceConstantOrBuilder.java new file mode 100644 index 0000000000..3958f5323c --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MobileDeviceConstantOrBuilder.java @@ -0,0 +1,148 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/resources/mobile_device_constant.proto + +package com.google.ads.googleads.v0.resources; + +public interface MobileDeviceConstantOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.resources.MobileDeviceConstant) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The resource name of the mobile device constant.
+   * Mobile device constant resource names have the form:
+   * `mobileDeviceConstants/{criterion_id}`
+   * 
+ * + * string resource_name = 1; + */ + java.lang.String getResourceName(); + /** + *
+   * The resource name of the mobile device constant.
+   * Mobile device constant resource names have the form:
+   * `mobileDeviceConstants/{criterion_id}`
+   * 
+ * + * string resource_name = 1; + */ + com.google.protobuf.ByteString + getResourceNameBytes(); + + /** + *
+   * The ID of the mobile device constant.
+   * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + boolean hasId(); + /** + *
+   * The ID of the mobile device constant.
+   * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + com.google.protobuf.Int64Value getId(); + /** + *
+   * The ID of the mobile device constant.
+   * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + com.google.protobuf.Int64ValueOrBuilder getIdOrBuilder(); + + /** + *
+   * The name of the mobile device.
+   * 
+ * + * .google.protobuf.StringValue name = 3; + */ + boolean hasName(); + /** + *
+   * The name of the mobile device.
+   * 
+ * + * .google.protobuf.StringValue name = 3; + */ + com.google.protobuf.StringValue getName(); + /** + *
+   * The name of the mobile device.
+   * 
+ * + * .google.protobuf.StringValue name = 3; + */ + com.google.protobuf.StringValueOrBuilder getNameOrBuilder(); + + /** + *
+   * The manufacturer of the mobile device.
+   * 
+ * + * .google.protobuf.StringValue manufacturer_name = 4; + */ + boolean hasManufacturerName(); + /** + *
+   * The manufacturer of the mobile device.
+   * 
+ * + * .google.protobuf.StringValue manufacturer_name = 4; + */ + com.google.protobuf.StringValue getManufacturerName(); + /** + *
+   * The manufacturer of the mobile device.
+   * 
+ * + * .google.protobuf.StringValue manufacturer_name = 4; + */ + com.google.protobuf.StringValueOrBuilder getManufacturerNameOrBuilder(); + + /** + *
+   * The operating system of the mobile device.
+   * 
+ * + * .google.protobuf.StringValue operating_system_name = 5; + */ + boolean hasOperatingSystemName(); + /** + *
+   * The operating system of the mobile device.
+   * 
+ * + * .google.protobuf.StringValue operating_system_name = 5; + */ + com.google.protobuf.StringValue getOperatingSystemName(); + /** + *
+   * The operating system of the mobile device.
+   * 
+ * + * .google.protobuf.StringValue operating_system_name = 5; + */ + com.google.protobuf.StringValueOrBuilder getOperatingSystemNameOrBuilder(); + + /** + *
+   * The type of mobile device.
+   * 
+ * + * .google.ads.googleads.v0.enums.MobileDeviceTypeEnum.MobileDeviceType type = 6; + */ + int getTypeValue(); + /** + *
+   * The type of mobile device.
+   * 
+ * + * .google.ads.googleads.v0.enums.MobileDeviceTypeEnum.MobileDeviceType type = 6; + */ + com.google.ads.googleads.v0.enums.MobileDeviceTypeEnum.MobileDeviceType getType(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MobileDeviceConstantProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MobileDeviceConstantProto.java new file mode 100644 index 0000000000..4c6756ac86 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/MobileDeviceConstantProto.java @@ -0,0 +1,77 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/resources/mobile_device_constant.proto + +package com.google.ads.googleads.v0.resources; + +public final class MobileDeviceConstantProto { + private MobileDeviceConstantProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_resources_MobileDeviceConstant_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_resources_MobileDeviceConstant_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n>google/ads/googleads/v0/resources/mobi" + + "le_device_constant.proto\022!google.ads.goo" + + "gleads.v0.resources\0326google/ads/googlead" + + "s/v0/enums/mobile_device_type.proto\032\036goo" + + "gle/protobuf/wrappers.proto\"\314\002\n\024MobileDe" + + "viceConstant\022\025\n\rresource_name\030\001 \001(\t\022\'\n\002i" + + "d\030\002 \001(\0132\033.google.protobuf.Int64Value\022*\n\004" + + "name\030\003 \001(\0132\034.google.protobuf.StringValue" + + "\0227\n\021manufacturer_name\030\004 \001(\0132\034.google.pro" + + "tobuf.StringValue\022;\n\025operating_system_na" + + "me\030\005 \001(\0132\034.google.protobuf.StringValue\022R" + + "\n\004type\030\006 \001(\0162D.google.ads.googleads.v0.e" + + "nums.MobileDeviceTypeEnum.MobileDeviceTy" + + "peB\206\002\n%com.google.ads.googleads.v0.resou" + + "rcesB\031MobileDeviceConstantProtoP\001ZJgoogl" + + "e.golang.org/genproto/googleapis/ads/goo" + + "gleads/v0/resources;resources\242\002\003GAA\252\002!Go" + + "ogle.Ads.GoogleAds.V0.Resources\312\002!Google" + + "\\Ads\\GoogleAds\\V0\\Resources\352\002%Google::Ad" + + "s::GoogleAds::V0::Resourcesb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.googleads.v0.enums.MobileDeviceTypeProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + }, assigner); + internal_static_google_ads_googleads_v0_resources_MobileDeviceConstant_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_googleads_v0_resources_MobileDeviceConstant_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_resources_MobileDeviceConstant_descriptor, + new java.lang.String[] { "ResourceName", "Id", "Name", "ManufacturerName", "OperatingSystemName", "Type", }); + com.google.ads.googleads.v0.enums.MobileDeviceTypeProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/OperatingSystemVersionConstant.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/OperatingSystemVersionConstant.java new file mode 100644 index 0000000000..14d7af0633 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/OperatingSystemVersionConstant.java @@ -0,0 +1,1635 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/resources/operating_system_version_constant.proto + +package com.google.ads.googleads.v0.resources; + +/** + *
+ * A mobile operating system version or a range of versions, depending on
+ * 'operator_type'. The complete list of available mobile platforms is available
+ * <a
+ * href="https://developers.google.com/adwords/api/docs/appendix/codes-formats#mobile-platforms>
+ * here</a>.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.resources.OperatingSystemVersionConstant} + */ +public final class OperatingSystemVersionConstant extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.resources.OperatingSystemVersionConstant) + OperatingSystemVersionConstantOrBuilder { +private static final long serialVersionUID = 0L; + // Use OperatingSystemVersionConstant.newBuilder() to construct. + private OperatingSystemVersionConstant(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OperatingSystemVersionConstant() { + resourceName_ = ""; + operatorType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private OperatingSystemVersionConstant( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + resourceName_ = s; + break; + } + case 18: { + com.google.protobuf.Int64Value.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (name_ != null) { + subBuilder = name_.toBuilder(); + } + name_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(name_); + name_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + com.google.protobuf.Int32Value.Builder subBuilder = null; + if (osMajorVersion_ != null) { + subBuilder = osMajorVersion_.toBuilder(); + } + osMajorVersion_ = input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(osMajorVersion_); + osMajorVersion_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + com.google.protobuf.Int32Value.Builder subBuilder = null; + if (osMinorVersion_ != null) { + subBuilder = osMinorVersion_.toBuilder(); + } + osMinorVersion_ = input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(osMinorVersion_); + osMinorVersion_ = subBuilder.buildPartial(); + } + + break; + } + case 48: { + int rawValue = input.readEnum(); + + operatorType_ = rawValue; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.resources.OperatingSystemVersionConstantProto.internal_static_google_ads_googleads_v0_resources_OperatingSystemVersionConstant_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.resources.OperatingSystemVersionConstantProto.internal_static_google_ads_googleads_v0_resources_OperatingSystemVersionConstant_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant.class, com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant.Builder.class); + } + + public static final int RESOURCE_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object resourceName_; + /** + *
+   * The resource name of the operating system version constant.
+   * Operating system version constant resource names have the form:
+   * `operatingSystemVersionConstants/{criterion_id}`
+   * 
+ * + * string resource_name = 1; + */ + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } + } + /** + *
+   * The resource name of the operating system version constant.
+   * Operating system version constant resource names have the form:
+   * `operatingSystemVersionConstants/{criterion_id}`
+   * 
+ * + * string resource_name = 1; + */ + public com.google.protobuf.ByteString + getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ID_FIELD_NUMBER = 2; + private com.google.protobuf.Int64Value id_; + /** + *
+   * The ID of the operating system version.
+   * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+   * The ID of the operating system version.
+   * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + public com.google.protobuf.Int64Value getId() { + return id_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : id_; + } + /** + *
+   * The ID of the operating system version.
+   * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + public com.google.protobuf.Int64ValueOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int NAME_FIELD_NUMBER = 3; + private com.google.protobuf.StringValue name_; + /** + *
+   * Name of the operating system.
+   * 
+ * + * .google.protobuf.StringValue name = 3; + */ + public boolean hasName() { + return name_ != null; + } + /** + *
+   * Name of the operating system.
+   * 
+ * + * .google.protobuf.StringValue name = 3; + */ + public com.google.protobuf.StringValue getName() { + return name_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : name_; + } + /** + *
+   * Name of the operating system.
+   * 
+ * + * .google.protobuf.StringValue name = 3; + */ + public com.google.protobuf.StringValueOrBuilder getNameOrBuilder() { + return getName(); + } + + public static final int OS_MAJOR_VERSION_FIELD_NUMBER = 4; + private com.google.protobuf.Int32Value osMajorVersion_; + /** + *
+   * The OS Major Version number.
+   * 
+ * + * .google.protobuf.Int32Value os_major_version = 4; + */ + public boolean hasOsMajorVersion() { + return osMajorVersion_ != null; + } + /** + *
+   * The OS Major Version number.
+   * 
+ * + * .google.protobuf.Int32Value os_major_version = 4; + */ + public com.google.protobuf.Int32Value getOsMajorVersion() { + return osMajorVersion_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : osMajorVersion_; + } + /** + *
+   * The OS Major Version number.
+   * 
+ * + * .google.protobuf.Int32Value os_major_version = 4; + */ + public com.google.protobuf.Int32ValueOrBuilder getOsMajorVersionOrBuilder() { + return getOsMajorVersion(); + } + + public static final int OS_MINOR_VERSION_FIELD_NUMBER = 5; + private com.google.protobuf.Int32Value osMinorVersion_; + /** + *
+   * The OS Minor Version number.
+   * 
+ * + * .google.protobuf.Int32Value os_minor_version = 5; + */ + public boolean hasOsMinorVersion() { + return osMinorVersion_ != null; + } + /** + *
+   * The OS Minor Version number.
+   * 
+ * + * .google.protobuf.Int32Value os_minor_version = 5; + */ + public com.google.protobuf.Int32Value getOsMinorVersion() { + return osMinorVersion_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : osMinorVersion_; + } + /** + *
+   * The OS Minor Version number.
+   * 
+ * + * .google.protobuf.Int32Value os_minor_version = 5; + */ + public com.google.protobuf.Int32ValueOrBuilder getOsMinorVersionOrBuilder() { + return getOsMinorVersion(); + } + + public static final int OPERATOR_TYPE_FIELD_NUMBER = 6; + private int operatorType_; + /** + *
+   * Determines whether this constant represents a single version or a range of
+   * versions.
+   * 
+ * + * .google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType operator_type = 6; + */ + public int getOperatorTypeValue() { + return operatorType_; + } + /** + *
+   * Determines whether this constant represents a single version or a range of
+   * versions.
+   * 
+ * + * .google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType operator_type = 6; + */ + public com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType getOperatorType() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType result = com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType.valueOf(operatorType_); + return result == null ? com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getResourceNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_); + } + if (id_ != null) { + output.writeMessage(2, getId()); + } + if (name_ != null) { + output.writeMessage(3, getName()); + } + if (osMajorVersion_ != null) { + output.writeMessage(4, getOsMajorVersion()); + } + if (osMinorVersion_ != null) { + output.writeMessage(5, getOsMinorVersion()); + } + if (operatorType_ != com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType.UNSPECIFIED.getNumber()) { + output.writeEnum(6, operatorType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getResourceNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_); + } + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getId()); + } + if (name_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getName()); + } + if (osMajorVersion_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getOsMajorVersion()); + } + if (osMinorVersion_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getOsMinorVersion()); + } + if (operatorType_ != com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, operatorType_); + } + size += unknownFields.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.ads.googleads.v0.resources.OperatingSystemVersionConstant)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant other = (com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant) obj; + + boolean result = true; + result = result && getResourceName() + .equals(other.getResourceName()); + result = result && (hasId() == other.hasId()); + if (hasId()) { + result = result && getId() + .equals(other.getId()); + } + result = result && (hasName() == other.hasName()); + if (hasName()) { + result = result && getName() + .equals(other.getName()); + } + result = result && (hasOsMajorVersion() == other.hasOsMajorVersion()); + if (hasOsMajorVersion()) { + result = result && getOsMajorVersion() + .equals(other.getOsMajorVersion()); + } + result = result && (hasOsMinorVersion() == other.hasOsMinorVersion()); + if (hasOsMinorVersion()) { + result = result && getOsMinorVersion() + .equals(other.getOsMinorVersion()); + } + result = result && operatorType_ == other.operatorType_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getResourceName().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + if (hasOsMajorVersion()) { + hash = (37 * hash) + OS_MAJOR_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getOsMajorVersion().hashCode(); + } + if (hasOsMinorVersion()) { + hash = (37 * hash) + OS_MINOR_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getOsMinorVersion().hashCode(); + } + hash = (37 * hash) + OPERATOR_TYPE_FIELD_NUMBER; + hash = (53 * hash) + operatorType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant 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.ads.googleads.v0.resources.OperatingSystemVersionConstant parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant 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.ads.googleads.v0.resources.OperatingSystemVersionConstant parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant 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.ads.googleads.v0.resources.OperatingSystemVersionConstant parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant 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.ads.googleads.v0.resources.OperatingSystemVersionConstant prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A mobile operating system version or a range of versions, depending on
+   * 'operator_type'. The complete list of available mobile platforms is available
+   * <a
+   * href="https://developers.google.com/adwords/api/docs/appendix/codes-formats#mobile-platforms>
+   * here</a>.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.resources.OperatingSystemVersionConstant} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.resources.OperatingSystemVersionConstant) + com.google.ads.googleads.v0.resources.OperatingSystemVersionConstantOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.resources.OperatingSystemVersionConstantProto.internal_static_google_ads_googleads_v0_resources_OperatingSystemVersionConstant_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.resources.OperatingSystemVersionConstantProto.internal_static_google_ads_googleads_v0_resources_OperatingSystemVersionConstant_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant.class, com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + resourceName_ = ""; + + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (nameBuilder_ == null) { + name_ = null; + } else { + name_ = null; + nameBuilder_ = null; + } + if (osMajorVersionBuilder_ == null) { + osMajorVersion_ = null; + } else { + osMajorVersion_ = null; + osMajorVersionBuilder_ = null; + } + if (osMinorVersionBuilder_ == null) { + osMinorVersion_ = null; + } else { + osMinorVersion_ = null; + osMinorVersionBuilder_ = null; + } + operatorType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.resources.OperatingSystemVersionConstantProto.internal_static_google_ads_googleads_v0_resources_OperatingSystemVersionConstant_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant getDefaultInstanceForType() { + return com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant build() { + com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant buildPartial() { + com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant result = new com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant(this); + result.resourceName_ = resourceName_; + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (nameBuilder_ == null) { + result.name_ = name_; + } else { + result.name_ = nameBuilder_.build(); + } + if (osMajorVersionBuilder_ == null) { + result.osMajorVersion_ = osMajorVersion_; + } else { + result.osMajorVersion_ = osMajorVersionBuilder_.build(); + } + if (osMinorVersionBuilder_ == null) { + result.osMinorVersion_ = osMinorVersion_; + } else { + result.osMinorVersion_ = osMinorVersionBuilder_.build(); + } + result.operatorType_ = operatorType_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant) { + return mergeFrom((com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant other) { + if (other == com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant.getDefaultInstance()) return this; + if (!other.getResourceName().isEmpty()) { + resourceName_ = other.resourceName_; + onChanged(); + } + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasName()) { + mergeName(other.getName()); + } + if (other.hasOsMajorVersion()) { + mergeOsMajorVersion(other.getOsMajorVersion()); + } + if (other.hasOsMinorVersion()) { + mergeOsMinorVersion(other.getOsMinorVersion()); + } + if (other.operatorType_ != 0) { + setOperatorTypeValue(other.getOperatorTypeValue()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object resourceName_ = ""; + /** + *
+     * The resource name of the operating system version constant.
+     * Operating system version constant resource names have the form:
+     * `operatingSystemVersionConstants/{criterion_id}`
+     * 
+ * + * string resource_name = 1; + */ + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The resource name of the operating system version constant.
+     * Operating system version constant resource names have the form:
+     * `operatingSystemVersionConstants/{criterion_id}`
+     * 
+ * + * string resource_name = 1; + */ + public com.google.protobuf.ByteString + getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The resource name of the operating system version constant.
+     * Operating system version constant resource names have the form:
+     * `operatingSystemVersionConstants/{criterion_id}`
+     * 
+ * + * string resource_name = 1; + */ + public Builder setResourceName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceName_ = value; + onChanged(); + return this; + } + /** + *
+     * The resource name of the operating system version constant.
+     * Operating system version constant resource names have the form:
+     * `operatingSystemVersionConstants/{criterion_id}`
+     * 
+ * + * string resource_name = 1; + */ + public Builder clearResourceName() { + + resourceName_ = getDefaultInstance().getResourceName(); + onChanged(); + return this; + } + /** + *
+     * The resource name of the operating system version constant.
+     * Operating system version constant resource names have the form:
+     * `operatingSystemVersionConstants/{criterion_id}`
+     * 
+ * + * string resource_name = 1; + */ + public Builder setResourceNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Int64Value id_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> idBuilder_; + /** + *
+     * The ID of the operating system version.
+     * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+     * The ID of the operating system version.
+     * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + public com.google.protobuf.Int64Value getId() { + if (idBuilder_ == null) { + return id_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+     * The ID of the operating system version.
+     * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + public Builder setId(com.google.protobuf.Int64Value value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The ID of the operating system version.
+     * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + public Builder setId( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The ID of the operating system version.
+     * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + public Builder mergeId(com.google.protobuf.Int64Value value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + com.google.protobuf.Int64Value.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The ID of the operating system version.
+     * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+     * The ID of the operating system version.
+     * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + public com.google.protobuf.Int64Value.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+     * The ID of the operating system version.
+     * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + public com.google.protobuf.Int64ValueOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : id_; + } + } + /** + *
+     * The ID of the operating system version.
+     * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private com.google.protobuf.StringValue name_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> nameBuilder_; + /** + *
+     * Name of the operating system.
+     * 
+ * + * .google.protobuf.StringValue name = 3; + */ + public boolean hasName() { + return nameBuilder_ != null || name_ != null; + } + /** + *
+     * Name of the operating system.
+     * 
+ * + * .google.protobuf.StringValue name = 3; + */ + public com.google.protobuf.StringValue getName() { + if (nameBuilder_ == null) { + return name_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : name_; + } else { + return nameBuilder_.getMessage(); + } + } + /** + *
+     * Name of the operating system.
+     * 
+ * + * .google.protobuf.StringValue name = 3; + */ + public Builder setName(com.google.protobuf.StringValue value) { + if (nameBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + onChanged(); + } else { + nameBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Name of the operating system.
+     * 
+ * + * .google.protobuf.StringValue name = 3; + */ + public Builder setName( + com.google.protobuf.StringValue.Builder builderForValue) { + if (nameBuilder_ == null) { + name_ = builderForValue.build(); + onChanged(); + } else { + nameBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Name of the operating system.
+     * 
+ * + * .google.protobuf.StringValue name = 3; + */ + public Builder mergeName(com.google.protobuf.StringValue value) { + if (nameBuilder_ == null) { + if (name_ != null) { + name_ = + com.google.protobuf.StringValue.newBuilder(name_).mergeFrom(value).buildPartial(); + } else { + name_ = value; + } + onChanged(); + } else { + nameBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Name of the operating system.
+     * 
+ * + * .google.protobuf.StringValue name = 3; + */ + public Builder clearName() { + if (nameBuilder_ == null) { + name_ = null; + onChanged(); + } else { + name_ = null; + nameBuilder_ = null; + } + + return this; + } + /** + *
+     * Name of the operating system.
+     * 
+ * + * .google.protobuf.StringValue name = 3; + */ + public com.google.protobuf.StringValue.Builder getNameBuilder() { + + onChanged(); + return getNameFieldBuilder().getBuilder(); + } + /** + *
+     * Name of the operating system.
+     * 
+ * + * .google.protobuf.StringValue name = 3; + */ + public com.google.protobuf.StringValueOrBuilder getNameOrBuilder() { + if (nameBuilder_ != null) { + return nameBuilder_.getMessageOrBuilder(); + } else { + return name_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : name_; + } + } + /** + *
+     * Name of the operating system.
+     * 
+ * + * .google.protobuf.StringValue name = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getNameFieldBuilder() { + if (nameBuilder_ == null) { + nameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getName(), + getParentForChildren(), + isClean()); + name_ = null; + } + return nameBuilder_; + } + + private com.google.protobuf.Int32Value osMajorVersion_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> osMajorVersionBuilder_; + /** + *
+     * The OS Major Version number.
+     * 
+ * + * .google.protobuf.Int32Value os_major_version = 4; + */ + public boolean hasOsMajorVersion() { + return osMajorVersionBuilder_ != null || osMajorVersion_ != null; + } + /** + *
+     * The OS Major Version number.
+     * 
+ * + * .google.protobuf.Int32Value os_major_version = 4; + */ + public com.google.protobuf.Int32Value getOsMajorVersion() { + if (osMajorVersionBuilder_ == null) { + return osMajorVersion_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : osMajorVersion_; + } else { + return osMajorVersionBuilder_.getMessage(); + } + } + /** + *
+     * The OS Major Version number.
+     * 
+ * + * .google.protobuf.Int32Value os_major_version = 4; + */ + public Builder setOsMajorVersion(com.google.protobuf.Int32Value value) { + if (osMajorVersionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + osMajorVersion_ = value; + onChanged(); + } else { + osMajorVersionBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The OS Major Version number.
+     * 
+ * + * .google.protobuf.Int32Value os_major_version = 4; + */ + public Builder setOsMajorVersion( + com.google.protobuf.Int32Value.Builder builderForValue) { + if (osMajorVersionBuilder_ == null) { + osMajorVersion_ = builderForValue.build(); + onChanged(); + } else { + osMajorVersionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The OS Major Version number.
+     * 
+ * + * .google.protobuf.Int32Value os_major_version = 4; + */ + public Builder mergeOsMajorVersion(com.google.protobuf.Int32Value value) { + if (osMajorVersionBuilder_ == null) { + if (osMajorVersion_ != null) { + osMajorVersion_ = + com.google.protobuf.Int32Value.newBuilder(osMajorVersion_).mergeFrom(value).buildPartial(); + } else { + osMajorVersion_ = value; + } + onChanged(); + } else { + osMajorVersionBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The OS Major Version number.
+     * 
+ * + * .google.protobuf.Int32Value os_major_version = 4; + */ + public Builder clearOsMajorVersion() { + if (osMajorVersionBuilder_ == null) { + osMajorVersion_ = null; + onChanged(); + } else { + osMajorVersion_ = null; + osMajorVersionBuilder_ = null; + } + + return this; + } + /** + *
+     * The OS Major Version number.
+     * 
+ * + * .google.protobuf.Int32Value os_major_version = 4; + */ + public com.google.protobuf.Int32Value.Builder getOsMajorVersionBuilder() { + + onChanged(); + return getOsMajorVersionFieldBuilder().getBuilder(); + } + /** + *
+     * The OS Major Version number.
+     * 
+ * + * .google.protobuf.Int32Value os_major_version = 4; + */ + public com.google.protobuf.Int32ValueOrBuilder getOsMajorVersionOrBuilder() { + if (osMajorVersionBuilder_ != null) { + return osMajorVersionBuilder_.getMessageOrBuilder(); + } else { + return osMajorVersion_ == null ? + com.google.protobuf.Int32Value.getDefaultInstance() : osMajorVersion_; + } + } + /** + *
+     * The OS Major Version number.
+     * 
+ * + * .google.protobuf.Int32Value os_major_version = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> + getOsMajorVersionFieldBuilder() { + if (osMajorVersionBuilder_ == null) { + osMajorVersionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( + getOsMajorVersion(), + getParentForChildren(), + isClean()); + osMajorVersion_ = null; + } + return osMajorVersionBuilder_; + } + + private com.google.protobuf.Int32Value osMinorVersion_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> osMinorVersionBuilder_; + /** + *
+     * The OS Minor Version number.
+     * 
+ * + * .google.protobuf.Int32Value os_minor_version = 5; + */ + public boolean hasOsMinorVersion() { + return osMinorVersionBuilder_ != null || osMinorVersion_ != null; + } + /** + *
+     * The OS Minor Version number.
+     * 
+ * + * .google.protobuf.Int32Value os_minor_version = 5; + */ + public com.google.protobuf.Int32Value getOsMinorVersion() { + if (osMinorVersionBuilder_ == null) { + return osMinorVersion_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : osMinorVersion_; + } else { + return osMinorVersionBuilder_.getMessage(); + } + } + /** + *
+     * The OS Minor Version number.
+     * 
+ * + * .google.protobuf.Int32Value os_minor_version = 5; + */ + public Builder setOsMinorVersion(com.google.protobuf.Int32Value value) { + if (osMinorVersionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + osMinorVersion_ = value; + onChanged(); + } else { + osMinorVersionBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The OS Minor Version number.
+     * 
+ * + * .google.protobuf.Int32Value os_minor_version = 5; + */ + public Builder setOsMinorVersion( + com.google.protobuf.Int32Value.Builder builderForValue) { + if (osMinorVersionBuilder_ == null) { + osMinorVersion_ = builderForValue.build(); + onChanged(); + } else { + osMinorVersionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The OS Minor Version number.
+     * 
+ * + * .google.protobuf.Int32Value os_minor_version = 5; + */ + public Builder mergeOsMinorVersion(com.google.protobuf.Int32Value value) { + if (osMinorVersionBuilder_ == null) { + if (osMinorVersion_ != null) { + osMinorVersion_ = + com.google.protobuf.Int32Value.newBuilder(osMinorVersion_).mergeFrom(value).buildPartial(); + } else { + osMinorVersion_ = value; + } + onChanged(); + } else { + osMinorVersionBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The OS Minor Version number.
+     * 
+ * + * .google.protobuf.Int32Value os_minor_version = 5; + */ + public Builder clearOsMinorVersion() { + if (osMinorVersionBuilder_ == null) { + osMinorVersion_ = null; + onChanged(); + } else { + osMinorVersion_ = null; + osMinorVersionBuilder_ = null; + } + + return this; + } + /** + *
+     * The OS Minor Version number.
+     * 
+ * + * .google.protobuf.Int32Value os_minor_version = 5; + */ + public com.google.protobuf.Int32Value.Builder getOsMinorVersionBuilder() { + + onChanged(); + return getOsMinorVersionFieldBuilder().getBuilder(); + } + /** + *
+     * The OS Minor Version number.
+     * 
+ * + * .google.protobuf.Int32Value os_minor_version = 5; + */ + public com.google.protobuf.Int32ValueOrBuilder getOsMinorVersionOrBuilder() { + if (osMinorVersionBuilder_ != null) { + return osMinorVersionBuilder_.getMessageOrBuilder(); + } else { + return osMinorVersion_ == null ? + com.google.protobuf.Int32Value.getDefaultInstance() : osMinorVersion_; + } + } + /** + *
+     * The OS Minor Version number.
+     * 
+ * + * .google.protobuf.Int32Value os_minor_version = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> + getOsMinorVersionFieldBuilder() { + if (osMinorVersionBuilder_ == null) { + osMinorVersionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( + getOsMinorVersion(), + getParentForChildren(), + isClean()); + osMinorVersion_ = null; + } + return osMinorVersionBuilder_; + } + + private int operatorType_ = 0; + /** + *
+     * Determines whether this constant represents a single version or a range of
+     * versions.
+     * 
+ * + * .google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType operator_type = 6; + */ + public int getOperatorTypeValue() { + return operatorType_; + } + /** + *
+     * Determines whether this constant represents a single version or a range of
+     * versions.
+     * 
+ * + * .google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType operator_type = 6; + */ + public Builder setOperatorTypeValue(int value) { + operatorType_ = value; + onChanged(); + return this; + } + /** + *
+     * Determines whether this constant represents a single version or a range of
+     * versions.
+     * 
+ * + * .google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType operator_type = 6; + */ + public com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType getOperatorType() { + @SuppressWarnings("deprecation") + com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType result = com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType.valueOf(operatorType_); + return result == null ? com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType.UNRECOGNIZED : result; + } + /** + *
+     * Determines whether this constant represents a single version or a range of
+     * versions.
+     * 
+ * + * .google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType operator_type = 6; + */ + public Builder setOperatorType(com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType value) { + if (value == null) { + throw new NullPointerException(); + } + + operatorType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Determines whether this constant represents a single version or a range of
+     * versions.
+     * 
+ * + * .google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType operator_type = 6; + */ + public Builder clearOperatorType() { + + operatorType_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.resources.OperatingSystemVersionConstant) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.resources.OperatingSystemVersionConstant) + private static final com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant(); + } + + public static com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperatingSystemVersionConstant parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperatingSystemVersionConstant(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.resources.OperatingSystemVersionConstant getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/OperatingSystemVersionConstantName.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/OperatingSystemVersionConstantName.java new file mode 100644 index 0000000000..6ad2bef151 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/OperatingSystemVersionConstantName.java @@ -0,0 +1,166 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.ads.googleads.v0.resources; + +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import java.util.Map; +import java.util.ArrayList; +import java.util.List; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class OperatingSystemVersionConstantName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("operatingSystemVersionConstants/{operating_system_version_constant}"); + + private volatile Map fieldValuesMap; + + private final String operatingSystemVersionConstant; + + public String getOperatingSystemVersionConstant() { + return operatingSystemVersionConstant; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private OperatingSystemVersionConstantName(Builder builder) { + operatingSystemVersionConstant = Preconditions.checkNotNull(builder.getOperatingSystemVersionConstant()); + } + + public static OperatingSystemVersionConstantName of(String operatingSystemVersionConstant) { + return newBuilder() + .setOperatingSystemVersionConstant(operatingSystemVersionConstant) + .build(); + } + + public static String format(String operatingSystemVersionConstant) { + return newBuilder() + .setOperatingSystemVersionConstant(operatingSystemVersionConstant) + .build() + .toString(); + } + + public static OperatingSystemVersionConstantName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch(formattedString, "OperatingSystemVersionConstantName.parse: formattedString not in valid format"); + return of(matchMap.get("operating_system_version_constant")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (OperatingSystemVersionConstantName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("operatingSystemVersionConstant", operatingSystemVersionConstant); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("operating_system_version_constant", operatingSystemVersionConstant); + } + + /** Builder for OperatingSystemVersionConstantName. */ + public static class Builder { + + private String operatingSystemVersionConstant; + + public String getOperatingSystemVersionConstant() { + return operatingSystemVersionConstant; + } + + public Builder setOperatingSystemVersionConstant(String operatingSystemVersionConstant) { + this.operatingSystemVersionConstant = operatingSystemVersionConstant; + return this; + } + + private Builder() { + } + + private Builder(OperatingSystemVersionConstantName operatingSystemVersionConstantName) { + operatingSystemVersionConstant = operatingSystemVersionConstantName.operatingSystemVersionConstant; + } + + public OperatingSystemVersionConstantName build() { + return new OperatingSystemVersionConstantName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof OperatingSystemVersionConstantName) { + OperatingSystemVersionConstantName that = (OperatingSystemVersionConstantName) o; + return (this.operatingSystemVersionConstant.equals(that.operatingSystemVersionConstant)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= operatingSystemVersionConstant.hashCode(); + return h; + } +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/OperatingSystemVersionConstantOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/OperatingSystemVersionConstantOrBuilder.java new file mode 100644 index 0000000000..b19e0d16ce --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/OperatingSystemVersionConstantOrBuilder.java @@ -0,0 +1,150 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/resources/operating_system_version_constant.proto + +package com.google.ads.googleads.v0.resources; + +public interface OperatingSystemVersionConstantOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.resources.OperatingSystemVersionConstant) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The resource name of the operating system version constant.
+   * Operating system version constant resource names have the form:
+   * `operatingSystemVersionConstants/{criterion_id}`
+   * 
+ * + * string resource_name = 1; + */ + java.lang.String getResourceName(); + /** + *
+   * The resource name of the operating system version constant.
+   * Operating system version constant resource names have the form:
+   * `operatingSystemVersionConstants/{criterion_id}`
+   * 
+ * + * string resource_name = 1; + */ + com.google.protobuf.ByteString + getResourceNameBytes(); + + /** + *
+   * The ID of the operating system version.
+   * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + boolean hasId(); + /** + *
+   * The ID of the operating system version.
+   * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + com.google.protobuf.Int64Value getId(); + /** + *
+   * The ID of the operating system version.
+   * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + com.google.protobuf.Int64ValueOrBuilder getIdOrBuilder(); + + /** + *
+   * Name of the operating system.
+   * 
+ * + * .google.protobuf.StringValue name = 3; + */ + boolean hasName(); + /** + *
+   * Name of the operating system.
+   * 
+ * + * .google.protobuf.StringValue name = 3; + */ + com.google.protobuf.StringValue getName(); + /** + *
+   * Name of the operating system.
+   * 
+ * + * .google.protobuf.StringValue name = 3; + */ + com.google.protobuf.StringValueOrBuilder getNameOrBuilder(); + + /** + *
+   * The OS Major Version number.
+   * 
+ * + * .google.protobuf.Int32Value os_major_version = 4; + */ + boolean hasOsMajorVersion(); + /** + *
+   * The OS Major Version number.
+   * 
+ * + * .google.protobuf.Int32Value os_major_version = 4; + */ + com.google.protobuf.Int32Value getOsMajorVersion(); + /** + *
+   * The OS Major Version number.
+   * 
+ * + * .google.protobuf.Int32Value os_major_version = 4; + */ + com.google.protobuf.Int32ValueOrBuilder getOsMajorVersionOrBuilder(); + + /** + *
+   * The OS Minor Version number.
+   * 
+ * + * .google.protobuf.Int32Value os_minor_version = 5; + */ + boolean hasOsMinorVersion(); + /** + *
+   * The OS Minor Version number.
+   * 
+ * + * .google.protobuf.Int32Value os_minor_version = 5; + */ + com.google.protobuf.Int32Value getOsMinorVersion(); + /** + *
+   * The OS Minor Version number.
+   * 
+ * + * .google.protobuf.Int32Value os_minor_version = 5; + */ + com.google.protobuf.Int32ValueOrBuilder getOsMinorVersionOrBuilder(); + + /** + *
+   * Determines whether this constant represents a single version or a range of
+   * versions.
+   * 
+ * + * .google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType operator_type = 6; + */ + int getOperatorTypeValue(); + /** + *
+   * Determines whether this constant represents a single version or a range of
+   * versions.
+   * 
+ * + * .google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType operator_type = 6; + */ + com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType getOperatorType(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/OperatingSystemVersionConstantProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/OperatingSystemVersionConstantProto.java new file mode 100644 index 0000000000..c67e66a51f --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/OperatingSystemVersionConstantProto.java @@ -0,0 +1,80 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/resources/operating_system_version_constant.proto + +package com.google.ads.googleads.v0.resources; + +public final class OperatingSystemVersionConstantProto { + private OperatingSystemVersionConstantProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_resources_OperatingSystemVersionConstant_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_resources_OperatingSystemVersionConstant_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nIgoogle/ads/googleads/v0/resources/oper" + + "ating_system_version_constant.proto\022!goo" + + "gle.ads.googleads.v0.resources\032Jgoogle/a" + + "ds/googleads/v0/enums/operating_system_v" + + "ersion_operator_type.proto\032\036google/proto" + + "buf/wrappers.proto\"\373\002\n\036OperatingSystemVe" + + "rsionConstant\022\025\n\rresource_name\030\001 \001(\t\022\'\n\002" + + "id\030\002 \001(\0132\033.google.protobuf.Int64Value\022*\n" + + "\004name\030\003 \001(\0132\034.google.protobuf.StringValu" + + "e\0225\n\020os_major_version\030\004 \001(\0132\033.google.pro" + + "tobuf.Int32Value\0225\n\020os_minor_version\030\005 \001" + + "(\0132\033.google.protobuf.Int32Value\022\177\n\ropera" + + "tor_type\030\006 \001(\0162h.google.ads.googleads.v0" + + ".enums.OperatingSystemVersionOperatorTyp" + + "eEnum.OperatingSystemVersionOperatorType" + + "B\220\002\n%com.google.ads.googleads.v0.resourc" + + "esB#OperatingSystemVersionConstantProtoP" + + "\001ZJgoogle.golang.org/genproto/googleapis" + + "/ads/googleads/v0/resources;resources\242\002\003" + + "GAA\252\002!Google.Ads.GoogleAds.V0.Resources\312" + + "\002!Google\\Ads\\GoogleAds\\V0\\Resources\352\002%Go" + + "ogle::Ads::GoogleAds::V0::Resourcesb\006pro" + + "to3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + }, assigner); + internal_static_google_ads_googleads_v0_resources_OperatingSystemVersionConstant_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_googleads_v0_resources_OperatingSystemVersionConstant_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_resources_OperatingSystemVersionConstant_descriptor, + new java.lang.String[] { "ResourceName", "Id", "Name", "OsMajorVersion", "OsMinorVersion", "OperatorType", }); + com.google.ads.googleads.v0.enums.OperatingSystemVersionOperatorTypeProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/ParentalStatusViewProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/ParentalStatusViewProto.java index 420c255dfe..27c2a80000 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/ParentalStatusViewProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/ParentalStatusViewProto.java @@ -31,12 +31,13 @@ public static void registerAllExtensions( "\n * The resource name of the Payments account. * PaymentsAccount resource names have the form: - * `customers/{customer_id}/paymentsAccounts/ - * {payments_profile_id}_{payments_account_id}` + * `customers/{customer_id}/paymentsAccounts/{payments_account_id}` *
* * string resource_name = 1; @@ -178,8 +177,7 @@ public java.lang.String getResourceName() { *
    * The resource name of the Payments account.
    * PaymentsAccount resource names have the form:
-   * `customers/{customer_id}/paymentsAccounts/
-   *                               {payments_profile_id}_{payments_account_id}`
+   * `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
    * 
* * string resource_name = 1; @@ -837,8 +835,7 @@ public Builder mergeFrom( *
      * The resource name of the Payments account.
      * PaymentsAccount resource names have the form:
-     * `customers/{customer_id}/paymentsAccounts/
-     *                               {payments_profile_id}_{payments_account_id}`
+     * `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
      * 
* * string resource_name = 1; @@ -859,8 +856,7 @@ public java.lang.String getResourceName() { *
      * The resource name of the Payments account.
      * PaymentsAccount resource names have the form:
-     * `customers/{customer_id}/paymentsAccounts/
-     *                               {payments_profile_id}_{payments_account_id}`
+     * `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
      * 
* * string resource_name = 1; @@ -882,8 +878,7 @@ public java.lang.String getResourceName() { *
      * The resource name of the Payments account.
      * PaymentsAccount resource names have the form:
-     * `customers/{customer_id}/paymentsAccounts/
-     *                               {payments_profile_id}_{payments_account_id}`
+     * `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
      * 
* * string resource_name = 1; @@ -902,8 +897,7 @@ public Builder setResourceName( *
      * The resource name of the Payments account.
      * PaymentsAccount resource names have the form:
-     * `customers/{customer_id}/paymentsAccounts/
-     *                               {payments_profile_id}_{payments_account_id}`
+     * `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
      * 
* * string resource_name = 1; @@ -918,8 +912,7 @@ public Builder clearResourceName() { *
      * The resource name of the Payments account.
      * PaymentsAccount resource names have the form:
-     * `customers/{customer_id}/paymentsAccounts/
-     *                               {payments_profile_id}_{payments_account_id}`
+     * `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
      * 
* * string resource_name = 1; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/PaymentsAccountOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/PaymentsAccountOrBuilder.java index 614a251097..548efb22fe 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/PaymentsAccountOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/PaymentsAccountOrBuilder.java @@ -11,8 +11,7 @@ public interface PaymentsAccountOrBuilder extends *
    * The resource name of the Payments account.
    * PaymentsAccount resource names have the form:
-   * `customers/{customer_id}/paymentsAccounts/
-   *                               {payments_profile_id}_{payments_account_id}`
+   * `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
    * 
* * string resource_name = 1; @@ -22,8 +21,7 @@ public interface PaymentsAccountOrBuilder extends *
    * The resource name of the Payments account.
    * PaymentsAccount resource names have the form:
-   * `customers/{customer_id}/paymentsAccounts/
-   *                               {payments_profile_id}_{payments_account_id}`
+   * `customers/{customer_id}/paymentsAccounts/{payments_account_id}`
    * 
* * string resource_name = 1; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/PaymentsAccountProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/PaymentsAccountProto.java index 97fafbd26c..4ea43f44f2 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/PaymentsAccountProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/PaymentsAccountProto.java @@ -39,12 +39,13 @@ public static void registerAllExtensions( "alue\0229\n\023payments_profile_id\030\005 \001(\0132\034.goog" + "le.protobuf.StringValue\022C\n\035secondary_pay" + "ments_profile_id\030\006 \001(\0132\034.google.protobuf" + - ".StringValueB\331\001\n%com.google.ads.googlead" + + ".StringValueB\201\002\n%com.google.ads.googlead" + "s.v0.resourcesB\024PaymentsAccountProtoP\001ZJ" + "google.golang.org/genproto/googleapis/ad" + "s/googleads/v0/resources;resources\242\002\003GAA" + "\252\002!Google.Ads.GoogleAds.V0.Resources\312\002!G" + - "oogle\\Ads\\GoogleAds\\V0\\Resourcesb\006proto3" + "oogle\\Ads\\GoogleAds\\V0\\Resources\352\002%Googl" + + "e::Ads::GoogleAds::V0::Resourcesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/ProductGroupViewProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/ProductGroupViewProto.java index 6cbc79349e..8e8932c6e3 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/ProductGroupViewProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/ProductGroupViewProto.java @@ -31,12 +31,13 @@ public static void registerAllExtensions( "\n:google/ads/googleads/v0/resources/prod" + "uct_group_view.proto\022!google.ads.googlea" + "ds.v0.resources\")\n\020ProductGroupView\022\025\n\rr" + - "esource_name\030\001 \001(\tB\332\001\n%com.google.ads.go" + + "esource_name\030\001 \001(\tB\202\002\n%com.google.ads.go" + "ogleads.v0.resourcesB\025ProductGroupViewPr" + "otoP\001ZJgoogle.golang.org/genproto/google" + "apis/ads/googleads/v0/resources;resource" + "s\242\002\003GAA\252\002!Google.Ads.GoogleAds.V0.Resour" + - "ces\312\002!Google\\Ads\\GoogleAds\\V0\\Resourcesb" + + "ces\312\002!Google\\Ads\\GoogleAds\\V0\\Resources\352" + + "\002%Google::Ads::GoogleAds::V0::Resourcesb" + "\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/RecommendationProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/RecommendationProto.java index a3a7592c53..292b77ebbf 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/RecommendationProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/RecommendationProto.java @@ -197,12 +197,13 @@ public static void registerAllExtensions( "InRecommendation\022E\n recommended_budget_a" + "mount_micros\030\001 \001(\0132\033.google.protobuf.Int" + "64Value\032\"\n OptimizeAdRotationRecommendat" + - "ionB\020\n\016recommendationB\330\001\n%com.google.ads" + + "ionB\020\n\016recommendationB\200\002\n%com.google.ads" + ".googleads.v0.resourcesB\023RecommendationP" + "rotoP\001ZJgoogle.golang.org/genproto/googl" + "eapis/ads/googleads/v0/resources;resourc" + "es\242\002\003GAA\252\002!Google.Ads.GoogleAds.V0.Resou" + "rces\312\002!Google\\Ads\\GoogleAds\\V0\\Resources" + + "\352\002%Google::Ads::GoogleAds::V0::Resources" + "b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/RemarketingAction.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/RemarketingAction.java new file mode 100644 index 0000000000..126a619753 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/RemarketingAction.java @@ -0,0 +1,1517 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/resources/remarketing_action.proto + +package com.google.ads.googleads.v0.resources; + +/** + *
+ * A remarketing action. A snippet of JavaScript code that will collect the
+ * product id and the type of page people visited (product page, shopping cart
+ * page, purchase page, general site visit) on an advertiser's website.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.resources.RemarketingAction} + */ +public final class RemarketingAction extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.resources.RemarketingAction) + RemarketingActionOrBuilder { +private static final long serialVersionUID = 0L; + // Use RemarketingAction.newBuilder() to construct. + private RemarketingAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RemarketingAction() { + resourceName_ = ""; + tagSnippets_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RemarketingAction( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + resourceName_ = s; + break; + } + case 18: { + com.google.protobuf.Int64Value.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (name_ != null) { + subBuilder = name_.toBuilder(); + } + name_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(name_); + name_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + tagSnippets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + tagSnippets_.add( + input.readMessage(com.google.ads.googleads.v0.common.TagSnippet.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + tagSnippets_ = java.util.Collections.unmodifiableList(tagSnippets_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.resources.RemarketingActionProto.internal_static_google_ads_googleads_v0_resources_RemarketingAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.resources.RemarketingActionProto.internal_static_google_ads_googleads_v0_resources_RemarketingAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.resources.RemarketingAction.class, com.google.ads.googleads.v0.resources.RemarketingAction.Builder.class); + } + + private int bitField0_; + public static final int RESOURCE_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object resourceName_; + /** + *
+   * The resource name of the remarketing action.
+   * Remarketing action resource names have the form:
+   * `customers/{customer_id}/remarketingActions/{remarketing_action_id}`
+   * 
+ * + * string resource_name = 1; + */ + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } + } + /** + *
+   * The resource name of the remarketing action.
+   * Remarketing action resource names have the form:
+   * `customers/{customer_id}/remarketingActions/{remarketing_action_id}`
+   * 
+ * + * string resource_name = 1; + */ + public com.google.protobuf.ByteString + getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ID_FIELD_NUMBER = 2; + private com.google.protobuf.Int64Value id_; + /** + *
+   * Id of the remarketing action.
+   * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+   * Id of the remarketing action.
+   * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + public com.google.protobuf.Int64Value getId() { + return id_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : id_; + } + /** + *
+   * Id of the remarketing action.
+   * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + public com.google.protobuf.Int64ValueOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int NAME_FIELD_NUMBER = 3; + private com.google.protobuf.StringValue name_; + /** + *
+   * The name of the remarketing action.
+   * This field is required and should not be empty when creating new
+   * remarketing actions.
+   * 
+ * + * .google.protobuf.StringValue name = 3; + */ + public boolean hasName() { + return name_ != null; + } + /** + *
+   * The name of the remarketing action.
+   * This field is required and should not be empty when creating new
+   * remarketing actions.
+   * 
+ * + * .google.protobuf.StringValue name = 3; + */ + public com.google.protobuf.StringValue getName() { + return name_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : name_; + } + /** + *
+   * The name of the remarketing action.
+   * This field is required and should not be empty when creating new
+   * remarketing actions.
+   * 
+ * + * .google.protobuf.StringValue name = 3; + */ + public com.google.protobuf.StringValueOrBuilder getNameOrBuilder() { + return getName(); + } + + public static final int TAG_SNIPPETS_FIELD_NUMBER = 4; + private java.util.List tagSnippets_; + /** + *
+   * The snippets used for tracking remarketing actions.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.TagSnippet tag_snippets = 4; + */ + public java.util.List getTagSnippetsList() { + return tagSnippets_; + } + /** + *
+   * The snippets used for tracking remarketing actions.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.TagSnippet tag_snippets = 4; + */ + public java.util.List + getTagSnippetsOrBuilderList() { + return tagSnippets_; + } + /** + *
+   * The snippets used for tracking remarketing actions.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.TagSnippet tag_snippets = 4; + */ + public int getTagSnippetsCount() { + return tagSnippets_.size(); + } + /** + *
+   * The snippets used for tracking remarketing actions.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.TagSnippet tag_snippets = 4; + */ + public com.google.ads.googleads.v0.common.TagSnippet getTagSnippets(int index) { + return tagSnippets_.get(index); + } + /** + *
+   * The snippets used for tracking remarketing actions.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.TagSnippet tag_snippets = 4; + */ + public com.google.ads.googleads.v0.common.TagSnippetOrBuilder getTagSnippetsOrBuilder( + int index) { + return tagSnippets_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getResourceNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_); + } + if (id_ != null) { + output.writeMessage(2, getId()); + } + if (name_ != null) { + output.writeMessage(3, getName()); + } + for (int i = 0; i < tagSnippets_.size(); i++) { + output.writeMessage(4, tagSnippets_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getResourceNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_); + } + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getId()); + } + if (name_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getName()); + } + for (int i = 0; i < tagSnippets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, tagSnippets_.get(i)); + } + size += unknownFields.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.ads.googleads.v0.resources.RemarketingAction)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.resources.RemarketingAction other = (com.google.ads.googleads.v0.resources.RemarketingAction) obj; + + boolean result = true; + result = result && getResourceName() + .equals(other.getResourceName()); + result = result && (hasId() == other.hasId()); + if (hasId()) { + result = result && getId() + .equals(other.getId()); + } + result = result && (hasName() == other.hasName()); + if (hasName()) { + result = result && getName() + .equals(other.getName()); + } + result = result && getTagSnippetsList() + .equals(other.getTagSnippetsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getResourceName().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + if (getTagSnippetsCount() > 0) { + hash = (37 * hash) + TAG_SNIPPETS_FIELD_NUMBER; + hash = (53 * hash) + getTagSnippetsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.resources.RemarketingAction parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.RemarketingAction parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.resources.RemarketingAction parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.RemarketingAction 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.ads.googleads.v0.resources.RemarketingAction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.resources.RemarketingAction parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.resources.RemarketingAction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.RemarketingAction 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.ads.googleads.v0.resources.RemarketingAction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.RemarketingAction 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.ads.googleads.v0.resources.RemarketingAction parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.resources.RemarketingAction 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.ads.googleads.v0.resources.RemarketingAction prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A remarketing action. A snippet of JavaScript code that will collect the
+   * product id and the type of page people visited (product page, shopping cart
+   * page, purchase page, general site visit) on an advertiser's website.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.resources.RemarketingAction} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.resources.RemarketingAction) + com.google.ads.googleads.v0.resources.RemarketingActionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.resources.RemarketingActionProto.internal_static_google_ads_googleads_v0_resources_RemarketingAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.resources.RemarketingActionProto.internal_static_google_ads_googleads_v0_resources_RemarketingAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.resources.RemarketingAction.class, com.google.ads.googleads.v0.resources.RemarketingAction.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.resources.RemarketingAction.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getTagSnippetsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + resourceName_ = ""; + + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (nameBuilder_ == null) { + name_ = null; + } else { + name_ = null; + nameBuilder_ = null; + } + if (tagSnippetsBuilder_ == null) { + tagSnippets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + tagSnippetsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.resources.RemarketingActionProto.internal_static_google_ads_googleads_v0_resources_RemarketingAction_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.RemarketingAction getDefaultInstanceForType() { + return com.google.ads.googleads.v0.resources.RemarketingAction.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.RemarketingAction build() { + com.google.ads.googleads.v0.resources.RemarketingAction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.resources.RemarketingAction buildPartial() { + com.google.ads.googleads.v0.resources.RemarketingAction result = new com.google.ads.googleads.v0.resources.RemarketingAction(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.resourceName_ = resourceName_; + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (nameBuilder_ == null) { + result.name_ = name_; + } else { + result.name_ = nameBuilder_.build(); + } + if (tagSnippetsBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + tagSnippets_ = java.util.Collections.unmodifiableList(tagSnippets_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.tagSnippets_ = tagSnippets_; + } else { + result.tagSnippets_ = tagSnippetsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.resources.RemarketingAction) { + return mergeFrom((com.google.ads.googleads.v0.resources.RemarketingAction)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.resources.RemarketingAction other) { + if (other == com.google.ads.googleads.v0.resources.RemarketingAction.getDefaultInstance()) return this; + if (!other.getResourceName().isEmpty()) { + resourceName_ = other.resourceName_; + onChanged(); + } + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasName()) { + mergeName(other.getName()); + } + if (tagSnippetsBuilder_ == null) { + if (!other.tagSnippets_.isEmpty()) { + if (tagSnippets_.isEmpty()) { + tagSnippets_ = other.tagSnippets_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureTagSnippetsIsMutable(); + tagSnippets_.addAll(other.tagSnippets_); + } + onChanged(); + } + } else { + if (!other.tagSnippets_.isEmpty()) { + if (tagSnippetsBuilder_.isEmpty()) { + tagSnippetsBuilder_.dispose(); + tagSnippetsBuilder_ = null; + tagSnippets_ = other.tagSnippets_; + bitField0_ = (bitField0_ & ~0x00000008); + tagSnippetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTagSnippetsFieldBuilder() : null; + } else { + tagSnippetsBuilder_.addAllMessages(other.tagSnippets_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.resources.RemarketingAction parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.resources.RemarketingAction) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object resourceName_ = ""; + /** + *
+     * The resource name of the remarketing action.
+     * Remarketing action resource names have the form:
+     * `customers/{customer_id}/remarketingActions/{remarketing_action_id}`
+     * 
+ * + * string resource_name = 1; + */ + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The resource name of the remarketing action.
+     * Remarketing action resource names have the form:
+     * `customers/{customer_id}/remarketingActions/{remarketing_action_id}`
+     * 
+ * + * string resource_name = 1; + */ + public com.google.protobuf.ByteString + getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The resource name of the remarketing action.
+     * Remarketing action resource names have the form:
+     * `customers/{customer_id}/remarketingActions/{remarketing_action_id}`
+     * 
+ * + * string resource_name = 1; + */ + public Builder setResourceName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceName_ = value; + onChanged(); + return this; + } + /** + *
+     * The resource name of the remarketing action.
+     * Remarketing action resource names have the form:
+     * `customers/{customer_id}/remarketingActions/{remarketing_action_id}`
+     * 
+ * + * string resource_name = 1; + */ + public Builder clearResourceName() { + + resourceName_ = getDefaultInstance().getResourceName(); + onChanged(); + return this; + } + /** + *
+     * The resource name of the remarketing action.
+     * Remarketing action resource names have the form:
+     * `customers/{customer_id}/remarketingActions/{remarketing_action_id}`
+     * 
+ * + * string resource_name = 1; + */ + public Builder setResourceNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Int64Value id_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> idBuilder_; + /** + *
+     * Id of the remarketing action.
+     * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+     * Id of the remarketing action.
+     * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + public com.google.protobuf.Int64Value getId() { + if (idBuilder_ == null) { + return id_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+     * Id of the remarketing action.
+     * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + public Builder setId(com.google.protobuf.Int64Value value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Id of the remarketing action.
+     * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + public Builder setId( + com.google.protobuf.Int64Value.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Id of the remarketing action.
+     * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + public Builder mergeId(com.google.protobuf.Int64Value value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + com.google.protobuf.Int64Value.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Id of the remarketing action.
+     * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+     * Id of the remarketing action.
+     * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + public com.google.protobuf.Int64Value.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+     * Id of the remarketing action.
+     * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + public com.google.protobuf.Int64ValueOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + com.google.protobuf.Int64Value.getDefaultInstance() : id_; + } + } + /** + *
+     * Id of the remarketing action.
+     * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private com.google.protobuf.StringValue name_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> nameBuilder_; + /** + *
+     * The name of the remarketing action.
+     * This field is required and should not be empty when creating new
+     * remarketing actions.
+     * 
+ * + * .google.protobuf.StringValue name = 3; + */ + public boolean hasName() { + return nameBuilder_ != null || name_ != null; + } + /** + *
+     * The name of the remarketing action.
+     * This field is required and should not be empty when creating new
+     * remarketing actions.
+     * 
+ * + * .google.protobuf.StringValue name = 3; + */ + public com.google.protobuf.StringValue getName() { + if (nameBuilder_ == null) { + return name_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : name_; + } else { + return nameBuilder_.getMessage(); + } + } + /** + *
+     * The name of the remarketing action.
+     * This field is required and should not be empty when creating new
+     * remarketing actions.
+     * 
+ * + * .google.protobuf.StringValue name = 3; + */ + public Builder setName(com.google.protobuf.StringValue value) { + if (nameBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + onChanged(); + } else { + nameBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The name of the remarketing action.
+     * This field is required and should not be empty when creating new
+     * remarketing actions.
+     * 
+ * + * .google.protobuf.StringValue name = 3; + */ + public Builder setName( + com.google.protobuf.StringValue.Builder builderForValue) { + if (nameBuilder_ == null) { + name_ = builderForValue.build(); + onChanged(); + } else { + nameBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The name of the remarketing action.
+     * This field is required and should not be empty when creating new
+     * remarketing actions.
+     * 
+ * + * .google.protobuf.StringValue name = 3; + */ + public Builder mergeName(com.google.protobuf.StringValue value) { + if (nameBuilder_ == null) { + if (name_ != null) { + name_ = + com.google.protobuf.StringValue.newBuilder(name_).mergeFrom(value).buildPartial(); + } else { + name_ = value; + } + onChanged(); + } else { + nameBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The name of the remarketing action.
+     * This field is required and should not be empty when creating new
+     * remarketing actions.
+     * 
+ * + * .google.protobuf.StringValue name = 3; + */ + public Builder clearName() { + if (nameBuilder_ == null) { + name_ = null; + onChanged(); + } else { + name_ = null; + nameBuilder_ = null; + } + + return this; + } + /** + *
+     * The name of the remarketing action.
+     * This field is required and should not be empty when creating new
+     * remarketing actions.
+     * 
+ * + * .google.protobuf.StringValue name = 3; + */ + public com.google.protobuf.StringValue.Builder getNameBuilder() { + + onChanged(); + return getNameFieldBuilder().getBuilder(); + } + /** + *
+     * The name of the remarketing action.
+     * This field is required and should not be empty when creating new
+     * remarketing actions.
+     * 
+ * + * .google.protobuf.StringValue name = 3; + */ + public com.google.protobuf.StringValueOrBuilder getNameOrBuilder() { + if (nameBuilder_ != null) { + return nameBuilder_.getMessageOrBuilder(); + } else { + return name_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : name_; + } + } + /** + *
+     * The name of the remarketing action.
+     * This field is required and should not be empty when creating new
+     * remarketing actions.
+     * 
+ * + * .google.protobuf.StringValue name = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getNameFieldBuilder() { + if (nameBuilder_ == null) { + nameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getName(), + getParentForChildren(), + isClean()); + name_ = null; + } + return nameBuilder_; + } + + private java.util.List tagSnippets_ = + java.util.Collections.emptyList(); + private void ensureTagSnippetsIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + tagSnippets_ = new java.util.ArrayList(tagSnippets_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.common.TagSnippet, com.google.ads.googleads.v0.common.TagSnippet.Builder, com.google.ads.googleads.v0.common.TagSnippetOrBuilder> tagSnippetsBuilder_; + + /** + *
+     * The snippets used for tracking remarketing actions.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.TagSnippet tag_snippets = 4; + */ + public java.util.List getTagSnippetsList() { + if (tagSnippetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(tagSnippets_); + } else { + return tagSnippetsBuilder_.getMessageList(); + } + } + /** + *
+     * The snippets used for tracking remarketing actions.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.TagSnippet tag_snippets = 4; + */ + public int getTagSnippetsCount() { + if (tagSnippetsBuilder_ == null) { + return tagSnippets_.size(); + } else { + return tagSnippetsBuilder_.getCount(); + } + } + /** + *
+     * The snippets used for tracking remarketing actions.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.TagSnippet tag_snippets = 4; + */ + public com.google.ads.googleads.v0.common.TagSnippet getTagSnippets(int index) { + if (tagSnippetsBuilder_ == null) { + return tagSnippets_.get(index); + } else { + return tagSnippetsBuilder_.getMessage(index); + } + } + /** + *
+     * The snippets used for tracking remarketing actions.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.TagSnippet tag_snippets = 4; + */ + public Builder setTagSnippets( + int index, com.google.ads.googleads.v0.common.TagSnippet value) { + if (tagSnippetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagSnippetsIsMutable(); + tagSnippets_.set(index, value); + onChanged(); + } else { + tagSnippetsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The snippets used for tracking remarketing actions.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.TagSnippet tag_snippets = 4; + */ + public Builder setTagSnippets( + int index, com.google.ads.googleads.v0.common.TagSnippet.Builder builderForValue) { + if (tagSnippetsBuilder_ == null) { + ensureTagSnippetsIsMutable(); + tagSnippets_.set(index, builderForValue.build()); + onChanged(); + } else { + tagSnippetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The snippets used for tracking remarketing actions.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.TagSnippet tag_snippets = 4; + */ + public Builder addTagSnippets(com.google.ads.googleads.v0.common.TagSnippet value) { + if (tagSnippetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagSnippetsIsMutable(); + tagSnippets_.add(value); + onChanged(); + } else { + tagSnippetsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The snippets used for tracking remarketing actions.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.TagSnippet tag_snippets = 4; + */ + public Builder addTagSnippets( + int index, com.google.ads.googleads.v0.common.TagSnippet value) { + if (tagSnippetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagSnippetsIsMutable(); + tagSnippets_.add(index, value); + onChanged(); + } else { + tagSnippetsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The snippets used for tracking remarketing actions.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.TagSnippet tag_snippets = 4; + */ + public Builder addTagSnippets( + com.google.ads.googleads.v0.common.TagSnippet.Builder builderForValue) { + if (tagSnippetsBuilder_ == null) { + ensureTagSnippetsIsMutable(); + tagSnippets_.add(builderForValue.build()); + onChanged(); + } else { + tagSnippetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The snippets used for tracking remarketing actions.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.TagSnippet tag_snippets = 4; + */ + public Builder addTagSnippets( + int index, com.google.ads.googleads.v0.common.TagSnippet.Builder builderForValue) { + if (tagSnippetsBuilder_ == null) { + ensureTagSnippetsIsMutable(); + tagSnippets_.add(index, builderForValue.build()); + onChanged(); + } else { + tagSnippetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The snippets used for tracking remarketing actions.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.TagSnippet tag_snippets = 4; + */ + public Builder addAllTagSnippets( + java.lang.Iterable values) { + if (tagSnippetsBuilder_ == null) { + ensureTagSnippetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tagSnippets_); + onChanged(); + } else { + tagSnippetsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The snippets used for tracking remarketing actions.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.TagSnippet tag_snippets = 4; + */ + public Builder clearTagSnippets() { + if (tagSnippetsBuilder_ == null) { + tagSnippets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + tagSnippetsBuilder_.clear(); + } + return this; + } + /** + *
+     * The snippets used for tracking remarketing actions.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.TagSnippet tag_snippets = 4; + */ + public Builder removeTagSnippets(int index) { + if (tagSnippetsBuilder_ == null) { + ensureTagSnippetsIsMutable(); + tagSnippets_.remove(index); + onChanged(); + } else { + tagSnippetsBuilder_.remove(index); + } + return this; + } + /** + *
+     * The snippets used for tracking remarketing actions.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.TagSnippet tag_snippets = 4; + */ + public com.google.ads.googleads.v0.common.TagSnippet.Builder getTagSnippetsBuilder( + int index) { + return getTagSnippetsFieldBuilder().getBuilder(index); + } + /** + *
+     * The snippets used for tracking remarketing actions.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.TagSnippet tag_snippets = 4; + */ + public com.google.ads.googleads.v0.common.TagSnippetOrBuilder getTagSnippetsOrBuilder( + int index) { + if (tagSnippetsBuilder_ == null) { + return tagSnippets_.get(index); } else { + return tagSnippetsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The snippets used for tracking remarketing actions.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.TagSnippet tag_snippets = 4; + */ + public java.util.List + getTagSnippetsOrBuilderList() { + if (tagSnippetsBuilder_ != null) { + return tagSnippetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tagSnippets_); + } + } + /** + *
+     * The snippets used for tracking remarketing actions.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.TagSnippet tag_snippets = 4; + */ + public com.google.ads.googleads.v0.common.TagSnippet.Builder addTagSnippetsBuilder() { + return getTagSnippetsFieldBuilder().addBuilder( + com.google.ads.googleads.v0.common.TagSnippet.getDefaultInstance()); + } + /** + *
+     * The snippets used for tracking remarketing actions.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.TagSnippet tag_snippets = 4; + */ + public com.google.ads.googleads.v0.common.TagSnippet.Builder addTagSnippetsBuilder( + int index) { + return getTagSnippetsFieldBuilder().addBuilder( + index, com.google.ads.googleads.v0.common.TagSnippet.getDefaultInstance()); + } + /** + *
+     * The snippets used for tracking remarketing actions.
+     * 
+ * + * repeated .google.ads.googleads.v0.common.TagSnippet tag_snippets = 4; + */ + public java.util.List + getTagSnippetsBuilderList() { + return getTagSnippetsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.common.TagSnippet, com.google.ads.googleads.v0.common.TagSnippet.Builder, com.google.ads.googleads.v0.common.TagSnippetOrBuilder> + getTagSnippetsFieldBuilder() { + if (tagSnippetsBuilder_ == null) { + tagSnippetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.common.TagSnippet, com.google.ads.googleads.v0.common.TagSnippet.Builder, com.google.ads.googleads.v0.common.TagSnippetOrBuilder>( + tagSnippets_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + tagSnippets_ = null; + } + return tagSnippetsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.resources.RemarketingAction) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.resources.RemarketingAction) + private static final com.google.ads.googleads.v0.resources.RemarketingAction DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.resources.RemarketingAction(); + } + + public static com.google.ads.googleads.v0.resources.RemarketingAction getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RemarketingAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RemarketingAction(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.resources.RemarketingAction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/RemarketingActionName.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/RemarketingActionName.java new file mode 100644 index 0000000000..56537cbd55 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/RemarketingActionName.java @@ -0,0 +1,189 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.ads.googleads.v0.resources; + +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import java.util.Map; +import java.util.ArrayList; +import java.util.List; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class RemarketingActionName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("customers/{customer}/remarketingActions/{remarketing_action}"); + + private volatile Map fieldValuesMap; + + private final String customer; + private final String remarketingAction; + + public String getCustomer() { + return customer; + } + + public String getRemarketingAction() { + return remarketingAction; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private RemarketingActionName(Builder builder) { + customer = Preconditions.checkNotNull(builder.getCustomer()); + remarketingAction = Preconditions.checkNotNull(builder.getRemarketingAction()); + } + + public static RemarketingActionName of(String customer, String remarketingAction) { + return newBuilder() + .setCustomer(customer) + .setRemarketingAction(remarketingAction) + .build(); + } + + public static String format(String customer, String remarketingAction) { + return newBuilder() + .setCustomer(customer) + .setRemarketingAction(remarketingAction) + .build() + .toString(); + } + + public static RemarketingActionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch(formattedString, "RemarketingActionName.parse: formattedString not in valid format"); + return of(matchMap.get("customer"), matchMap.get("remarketing_action")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (RemarketingActionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("customer", customer); + fieldMapBuilder.put("remarketingAction", remarketingAction); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("customer", customer, "remarketing_action", remarketingAction); + } + + /** Builder for RemarketingActionName. */ + public static class Builder { + + private String customer; + private String remarketingAction; + + public String getCustomer() { + return customer; + } + + public String getRemarketingAction() { + return remarketingAction; + } + + public Builder setCustomer(String customer) { + this.customer = customer; + return this; + } + + public Builder setRemarketingAction(String remarketingAction) { + this.remarketingAction = remarketingAction; + return this; + } + + private Builder() { + } + + private Builder(RemarketingActionName remarketingActionName) { + customer = remarketingActionName.customer; + remarketingAction = remarketingActionName.remarketingAction; + } + + public RemarketingActionName build() { + return new RemarketingActionName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof RemarketingActionName) { + RemarketingActionName that = (RemarketingActionName) o; + return (this.customer.equals(that.customer)) + && (this.remarketingAction.equals(that.remarketingAction)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= customer.hashCode(); + h *= 1000003; + h ^= remarketingAction.hashCode(); + return h; + } +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/RemarketingActionOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/RemarketingActionOrBuilder.java new file mode 100644 index 0000000000..9bf9b56ac5 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/RemarketingActionOrBuilder.java @@ -0,0 +1,131 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/resources/remarketing_action.proto + +package com.google.ads.googleads.v0.resources; + +public interface RemarketingActionOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.resources.RemarketingAction) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The resource name of the remarketing action.
+   * Remarketing action resource names have the form:
+   * `customers/{customer_id}/remarketingActions/{remarketing_action_id}`
+   * 
+ * + * string resource_name = 1; + */ + java.lang.String getResourceName(); + /** + *
+   * The resource name of the remarketing action.
+   * Remarketing action resource names have the form:
+   * `customers/{customer_id}/remarketingActions/{remarketing_action_id}`
+   * 
+ * + * string resource_name = 1; + */ + com.google.protobuf.ByteString + getResourceNameBytes(); + + /** + *
+   * Id of the remarketing action.
+   * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + boolean hasId(); + /** + *
+   * Id of the remarketing action.
+   * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + com.google.protobuf.Int64Value getId(); + /** + *
+   * Id of the remarketing action.
+   * 
+ * + * .google.protobuf.Int64Value id = 2; + */ + com.google.protobuf.Int64ValueOrBuilder getIdOrBuilder(); + + /** + *
+   * The name of the remarketing action.
+   * This field is required and should not be empty when creating new
+   * remarketing actions.
+   * 
+ * + * .google.protobuf.StringValue name = 3; + */ + boolean hasName(); + /** + *
+   * The name of the remarketing action.
+   * This field is required and should not be empty when creating new
+   * remarketing actions.
+   * 
+ * + * .google.protobuf.StringValue name = 3; + */ + com.google.protobuf.StringValue getName(); + /** + *
+   * The name of the remarketing action.
+   * This field is required and should not be empty when creating new
+   * remarketing actions.
+   * 
+ * + * .google.protobuf.StringValue name = 3; + */ + com.google.protobuf.StringValueOrBuilder getNameOrBuilder(); + + /** + *
+   * The snippets used for tracking remarketing actions.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.TagSnippet tag_snippets = 4; + */ + java.util.List + getTagSnippetsList(); + /** + *
+   * The snippets used for tracking remarketing actions.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.TagSnippet tag_snippets = 4; + */ + com.google.ads.googleads.v0.common.TagSnippet getTagSnippets(int index); + /** + *
+   * The snippets used for tracking remarketing actions.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.TagSnippet tag_snippets = 4; + */ + int getTagSnippetsCount(); + /** + *
+   * The snippets used for tracking remarketing actions.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.TagSnippet tag_snippets = 4; + */ + java.util.List + getTagSnippetsOrBuilderList(); + /** + *
+   * The snippets used for tracking remarketing actions.
+   * 
+ * + * repeated .google.ads.googleads.v0.common.TagSnippet tag_snippets = 4; + */ + com.google.ads.googleads.v0.common.TagSnippetOrBuilder getTagSnippetsOrBuilder( + int index); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignGroupProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/RemarketingActionProto.java similarity index 50% rename from google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignGroupProto.java rename to google-ads/src/main/java/com/google/ads/googleads/v0/resources/RemarketingActionProto.java index c622a16dd4..16e9d31601 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/CampaignGroupProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/RemarketingActionProto.java @@ -1,10 +1,10 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v0/resources/campaign_group.proto +// source: google/ads/googleads/v0/resources/remarketing_action.proto package com.google.ads.googleads.v0.resources; -public final class CampaignGroupProto { - private CampaignGroupProto() {} +public final class RemarketingActionProto { + private RemarketingActionProto() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } @@ -15,10 +15,10 @@ public static void registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_googleads_v0_resources_CampaignGroup_descriptor; + internal_static_google_ads_googleads_v0_resources_RemarketingAction_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_googleads_v0_resources_CampaignGroup_fieldAccessorTable; + internal_static_google_ads_googleads_v0_resources_RemarketingAction_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -28,22 +28,23 @@ public static void registerAllExtensions( descriptor; static { java.lang.String[] descriptorData = { - "\n6google/ads/googleads/v0/resources/camp" + - "aign_group.proto\022!google.ads.googleads.v" + - "0.resources\0329google/ads/googleads/v0/enu" + - "ms/campaign_group_status.proto\032\036google/p" + - "rotobuf/wrappers.proto\"\327\001\n\rCampaignGroup" + - "\022\025\n\rresource_name\030\001 \001(\t\022\'\n\002id\030\003 \001(\0132\033.go" + - "ogle.protobuf.Int64Value\022*\n\004name\030\004 \001(\0132\034" + - ".google.protobuf.StringValue\022Z\n\006status\030\005" + - " \001(\0162J.google.ads.googleads.v0.enums.Cam" + - "paignGroupStatusEnum.CampaignGroupStatus" + - "B\327\001\n%com.google.ads.googleads.v0.resourc" + - "esB\022CampaignGroupProtoP\001ZJgoogle.golang." + - "org/genproto/googleapis/ads/googleads/v0" + - "/resources;resources\242\002\003GAA\252\002!Google.Ads." + - "GoogleAds.V0.Resources\312\002!Google\\Ads\\Goog" + - "leAds\\V0\\Resourcesb\006proto3" + "\n:google/ads/googleads/v0/resources/rema" + + "rketing_action.proto\022!google.ads.googlea" + + "ds.v0.resources\0320google/ads/googleads/v0" + + "/common/tag_snippet.proto\032\036google/protob" + + "uf/wrappers.proto\"\301\001\n\021RemarketingAction\022" + + "\025\n\rresource_name\030\001 \001(\t\022\'\n\002id\030\002 \001(\0132\033.goo" + + "gle.protobuf.Int64Value\022*\n\004name\030\003 \001(\0132\034." + + "google.protobuf.StringValue\022@\n\014tag_snipp" + + "ets\030\004 \003(\0132*.google.ads.googleads.v0.comm" + + "on.TagSnippetB\203\002\n%com.google.ads.googlea" + + "ds.v0.resourcesB\026RemarketingActionProtoP" + + "\001ZJgoogle.golang.org/genproto/googleapis" + + "/ads/googleads/v0/resources;resources\242\002\003" + + "GAA\252\002!Google.Ads.GoogleAds.V0.Resources\312" + + "\002!Google\\Ads\\GoogleAds\\V0\\Resources\352\002%Go" + + "ogle::Ads::GoogleAds::V0::Resourcesb\006pro" + + "to3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -56,16 +57,16 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.ads.googleads.v0.enums.CampaignGroupStatusProto.getDescriptor(), + com.google.ads.googleads.v0.common.TagSnippetProto.getDescriptor(), com.google.protobuf.WrappersProto.getDescriptor(), }, assigner); - internal_static_google_ads_googleads_v0_resources_CampaignGroup_descriptor = + internal_static_google_ads_googleads_v0_resources_RemarketingAction_descriptor = getDescriptor().getMessageTypes().get(0); - internal_static_google_ads_googleads_v0_resources_CampaignGroup_fieldAccessorTable = new + internal_static_google_ads_googleads_v0_resources_RemarketingAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_googleads_v0_resources_CampaignGroup_descriptor, - new java.lang.String[] { "ResourceName", "Id", "Name", "Status", }); - com.google.ads.googleads.v0.enums.CampaignGroupStatusProto.getDescriptor(); + internal_static_google_ads_googleads_v0_resources_RemarketingAction_descriptor, + new java.lang.String[] { "ResourceName", "Id", "Name", "TagSnippets", }); + com.google.ads.googleads.v0.common.TagSnippetProto.getDescriptor(); com.google.protobuf.WrappersProto.getDescriptor(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/SearchTermViewProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/SearchTermViewProto.java index 06af3489c6..90aacdcfb3 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/SearchTermViewProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/SearchTermViewProto.java @@ -38,13 +38,14 @@ public static void registerAllExtensions( "alue\022.\n\010ad_group\030\003 \001(\0132\034.google.protobuf" + ".StringValue\022f\n\006status\030\004 \001(\0162V.google.ad" + "s.googleads.v0.enums.SearchTermTargeting" + - "StatusEnum.SearchTermTargetingStatusB\330\001\n" + + "StatusEnum.SearchTermTargetingStatusB\200\002\n" + "%com.google.ads.googleads.v0.resourcesB\023" + "SearchTermViewProtoP\001ZJgoogle.golang.org" + "/genproto/googleapis/ads/googleads/v0/re" + "sources;resources\242\002\003GAA\252\002!Google.Ads.Goo" + "gleAds.V0.Resources\312\002!Google\\Ads\\GoogleA" + - "ds\\V0\\Resourcesb\006proto3" + "ds\\V0\\Resources\352\002%Google::Ads::GoogleAds" + + "::V0::Resourcesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/SharedCriterion.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/SharedCriterion.java index 6f2838cd69..0ea845fa82 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/SharedCriterion.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/SharedCriterion.java @@ -129,6 +129,20 @@ private SharedCriterion( criterionCase_ = 7; break; } + case 66: { + com.google.ads.googleads.v0.common.MobileAppCategoryInfo.Builder subBuilder = null; + if (criterionCase_ == 8) { + subBuilder = ((com.google.ads.googleads.v0.common.MobileAppCategoryInfo) criterion_).toBuilder(); + } + criterion_ = + input.readMessage(com.google.ads.googleads.v0.common.MobileAppCategoryInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.ads.googleads.v0.common.MobileAppCategoryInfo) criterion_); + criterion_ = subBuilder.buildPartial(); + } + criterionCase_ = 8; + break; + } case 210: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (criterionId_ != null) { @@ -182,6 +196,7 @@ public enum CriterionCase YOUTUBE_VIDEO(5), YOUTUBE_CHANNEL(6), PLACEMENT(7), + MOBILE_APP_CATEGORY(8), CRITERION_NOT_SET(0); private final int value; private CriterionCase(int value) { @@ -201,6 +216,7 @@ public static CriterionCase forNumber(int value) { case 5: return YOUTUBE_VIDEO; case 6: return YOUTUBE_CHANNEL; case 7: return PLACEMENT; + case 8: return MOBILE_APP_CATEGORY; case 0: return CRITERION_NOT_SET; default: return null; } @@ -508,6 +524,44 @@ public com.google.ads.googleads.v0.common.PlacementInfoOrBuilder getPlacementOrB return com.google.ads.googleads.v0.common.PlacementInfo.getDefaultInstance(); } + public static final int MOBILE_APP_CATEGORY_FIELD_NUMBER = 8; + /** + *
+   * Mobile App Category.
+   * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 8; + */ + public boolean hasMobileAppCategory() { + return criterionCase_ == 8; + } + /** + *
+   * Mobile App Category.
+   * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 8; + */ + public com.google.ads.googleads.v0.common.MobileAppCategoryInfo getMobileAppCategory() { + if (criterionCase_ == 8) { + return (com.google.ads.googleads.v0.common.MobileAppCategoryInfo) criterion_; + } + return com.google.ads.googleads.v0.common.MobileAppCategoryInfo.getDefaultInstance(); + } + /** + *
+   * Mobile App Category.
+   * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 8; + */ + public com.google.ads.googleads.v0.common.MobileAppCategoryInfoOrBuilder getMobileAppCategoryOrBuilder() { + if (criterionCase_ == 8) { + return (com.google.ads.googleads.v0.common.MobileAppCategoryInfo) criterion_; + } + return com.google.ads.googleads.v0.common.MobileAppCategoryInfo.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -543,6 +597,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (criterionCase_ == 7) { output.writeMessage(7, (com.google.ads.googleads.v0.common.PlacementInfo) criterion_); } + if (criterionCase_ == 8) { + output.writeMessage(8, (com.google.ads.googleads.v0.common.MobileAppCategoryInfo) criterion_); + } if (criterionId_ != null) { output.writeMessage(26, getCriterionId()); } @@ -582,6 +639,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (com.google.ads.googleads.v0.common.PlacementInfo) criterion_); } + if (criterionCase_ == 8) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (com.google.ads.googleads.v0.common.MobileAppCategoryInfo) criterion_); + } if (criterionId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(26, getCriterionId()); @@ -635,6 +696,10 @@ public boolean equals(final java.lang.Object obj) { result = result && getPlacement() .equals(other.getPlacement()); break; + case 8: + result = result && getMobileAppCategory() + .equals(other.getMobileAppCategory()); + break; case 0: default: } @@ -678,6 +743,10 @@ public int hashCode() { hash = (37 * hash) + PLACEMENT_FIELD_NUMBER; hash = (53 * hash) + getPlacement().hashCode(); break; + case 8: + hash = (37 * hash) + MOBILE_APP_CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + getMobileAppCategory().hashCode(); + break; case 0: default: } @@ -902,6 +971,13 @@ public com.google.ads.googleads.v0.resources.SharedCriterion buildPartial() { result.criterion_ = placementBuilder_.build(); } } + if (criterionCase_ == 8) { + if (mobileAppCategoryBuilder_ == null) { + result.criterion_ = criterion_; + } else { + result.criterion_ = mobileAppCategoryBuilder_.build(); + } + } result.criterionCase_ = criterionCase_; onBuilt(); return result; @@ -981,6 +1057,10 @@ public Builder mergeFrom(com.google.ads.googleads.v0.resources.SharedCriterion o mergePlacement(other.getPlacement()); break; } + case MOBILE_APP_CATEGORY: { + mergeMobileAppCategory(other.getMobileAppCategory()); + break; + } case CRITERION_NOT_SET: { break; } @@ -2195,6 +2275,178 @@ public com.google.ads.googleads.v0.common.PlacementInfoOrBuilder getPlacementOrB onChanged();; return placementBuilder_; } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.MobileAppCategoryInfo, com.google.ads.googleads.v0.common.MobileAppCategoryInfo.Builder, com.google.ads.googleads.v0.common.MobileAppCategoryInfoOrBuilder> mobileAppCategoryBuilder_; + /** + *
+     * Mobile App Category.
+     * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 8; + */ + public boolean hasMobileAppCategory() { + return criterionCase_ == 8; + } + /** + *
+     * Mobile App Category.
+     * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 8; + */ + public com.google.ads.googleads.v0.common.MobileAppCategoryInfo getMobileAppCategory() { + if (mobileAppCategoryBuilder_ == null) { + if (criterionCase_ == 8) { + return (com.google.ads.googleads.v0.common.MobileAppCategoryInfo) criterion_; + } + return com.google.ads.googleads.v0.common.MobileAppCategoryInfo.getDefaultInstance(); + } else { + if (criterionCase_ == 8) { + return mobileAppCategoryBuilder_.getMessage(); + } + return com.google.ads.googleads.v0.common.MobileAppCategoryInfo.getDefaultInstance(); + } + } + /** + *
+     * Mobile App Category.
+     * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 8; + */ + public Builder setMobileAppCategory(com.google.ads.googleads.v0.common.MobileAppCategoryInfo value) { + if (mobileAppCategoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + criterion_ = value; + onChanged(); + } else { + mobileAppCategoryBuilder_.setMessage(value); + } + criterionCase_ = 8; + return this; + } + /** + *
+     * Mobile App Category.
+     * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 8; + */ + public Builder setMobileAppCategory( + com.google.ads.googleads.v0.common.MobileAppCategoryInfo.Builder builderForValue) { + if (mobileAppCategoryBuilder_ == null) { + criterion_ = builderForValue.build(); + onChanged(); + } else { + mobileAppCategoryBuilder_.setMessage(builderForValue.build()); + } + criterionCase_ = 8; + return this; + } + /** + *
+     * Mobile App Category.
+     * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 8; + */ + public Builder mergeMobileAppCategory(com.google.ads.googleads.v0.common.MobileAppCategoryInfo value) { + if (mobileAppCategoryBuilder_ == null) { + if (criterionCase_ == 8 && + criterion_ != com.google.ads.googleads.v0.common.MobileAppCategoryInfo.getDefaultInstance()) { + criterion_ = com.google.ads.googleads.v0.common.MobileAppCategoryInfo.newBuilder((com.google.ads.googleads.v0.common.MobileAppCategoryInfo) criterion_) + .mergeFrom(value).buildPartial(); + } else { + criterion_ = value; + } + onChanged(); + } else { + if (criterionCase_ == 8) { + mobileAppCategoryBuilder_.mergeFrom(value); + } + mobileAppCategoryBuilder_.setMessage(value); + } + criterionCase_ = 8; + return this; + } + /** + *
+     * Mobile App Category.
+     * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 8; + */ + public Builder clearMobileAppCategory() { + if (mobileAppCategoryBuilder_ == null) { + if (criterionCase_ == 8) { + criterionCase_ = 0; + criterion_ = null; + onChanged(); + } + } else { + if (criterionCase_ == 8) { + criterionCase_ = 0; + criterion_ = null; + } + mobileAppCategoryBuilder_.clear(); + } + return this; + } + /** + *
+     * Mobile App Category.
+     * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 8; + */ + public com.google.ads.googleads.v0.common.MobileAppCategoryInfo.Builder getMobileAppCategoryBuilder() { + return getMobileAppCategoryFieldBuilder().getBuilder(); + } + /** + *
+     * Mobile App Category.
+     * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 8; + */ + public com.google.ads.googleads.v0.common.MobileAppCategoryInfoOrBuilder getMobileAppCategoryOrBuilder() { + if ((criterionCase_ == 8) && (mobileAppCategoryBuilder_ != null)) { + return mobileAppCategoryBuilder_.getMessageOrBuilder(); + } else { + if (criterionCase_ == 8) { + return (com.google.ads.googleads.v0.common.MobileAppCategoryInfo) criterion_; + } + return com.google.ads.googleads.v0.common.MobileAppCategoryInfo.getDefaultInstance(); + } + } + /** + *
+     * Mobile App Category.
+     * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.MobileAppCategoryInfo, com.google.ads.googleads.v0.common.MobileAppCategoryInfo.Builder, com.google.ads.googleads.v0.common.MobileAppCategoryInfoOrBuilder> + getMobileAppCategoryFieldBuilder() { + if (mobileAppCategoryBuilder_ == null) { + if (!(criterionCase_ == 8)) { + criterion_ = com.google.ads.googleads.v0.common.MobileAppCategoryInfo.getDefaultInstance(); + } + mobileAppCategoryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.MobileAppCategoryInfo, com.google.ads.googleads.v0.common.MobileAppCategoryInfo.Builder, com.google.ads.googleads.v0.common.MobileAppCategoryInfoOrBuilder>( + (com.google.ads.googleads.v0.common.MobileAppCategoryInfo) criterion_, + getParentForChildren(), + isClean()); + criterion_ = null; + } + criterionCase_ = 8; + onChanged();; + return mobileAppCategoryBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/SharedCriterionOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/SharedCriterionOrBuilder.java index 6aca4efe2b..3ff5e96a25 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/SharedCriterionOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/SharedCriterionOrBuilder.java @@ -199,5 +199,30 @@ public interface SharedCriterionOrBuilder extends */ com.google.ads.googleads.v0.common.PlacementInfoOrBuilder getPlacementOrBuilder(); + /** + *
+   * Mobile App Category.
+   * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 8; + */ + boolean hasMobileAppCategory(); + /** + *
+   * Mobile App Category.
+   * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 8; + */ + com.google.ads.googleads.v0.common.MobileAppCategoryInfo getMobileAppCategory(); + /** + *
+   * Mobile App Category.
+   * 
+ * + * .google.ads.googleads.v0.common.MobileAppCategoryInfo mobile_app_category = 8; + */ + com.google.ads.googleads.v0.common.MobileAppCategoryInfoOrBuilder getMobileAppCategoryOrBuilder(); + public com.google.ads.googleads.v0.resources.SharedCriterion.CriterionCase getCriterionCase(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/SharedCriterionProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/SharedCriterionProto.java index c38cb54ee4..d6c22d3a98 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/SharedCriterionProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/SharedCriterionProto.java @@ -33,7 +33,7 @@ public static void registerAllExtensions( ".v0.resources\032-google/ads/googleads/v0/c" + "ommon/criteria.proto\0322google/ads/googlea" + "ds/v0/enums/criterion_type.proto\032\036google" + - "/protobuf/wrappers.proto\"\206\004\n\017SharedCrite" + + "/protobuf/wrappers.proto\"\334\004\n\017SharedCrite" + "rion\022\025\n\rresource_name\030\001 \001(\t\0220\n\nshared_se" + "t\030\002 \001(\0132\034.google.protobuf.StringValue\0221\n" + "\014criterion_id\030\032 \001(\0132\033.google.protobuf.In" + @@ -46,13 +46,16 @@ public static void registerAllExtensions( "nnel\030\006 \001(\01322.google.ads.googleads.v0.com" + "mon.YouTubeChannelInfoH\000\022B\n\tplacement\030\007 " + "\001(\0132-.google.ads.googleads.v0.common.Pla" + - "cementInfoH\000B\013\n\tcriterionB\331\001\n%com.google" + - ".ads.googleads.v0.resourcesB\024SharedCrite" + - "rionProtoP\001ZJgoogle.golang.org/genproto/" + - "googleapis/ads/googleads/v0/resources;re" + - "sources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V0." + - "Resources\312\002!Google\\Ads\\GoogleAds\\V0\\Reso" + - "urcesb\006proto3" + "cementInfoH\000\022T\n\023mobile_app_category\030\010 \001(" + + "\01325.google.ads.googleads.v0.common.Mobil" + + "eAppCategoryInfoH\000B\013\n\tcriterionB\201\002\n%com." + + "google.ads.googleads.v0.resourcesB\024Share" + + "dCriterionProtoP\001ZJgoogle.golang.org/gen" + + "proto/googleapis/ads/googleads/v0/resour" + + "ces;resources\242\002\003GAA\252\002!Google.Ads.GoogleA" + + "ds.V0.Resources\312\002!Google\\Ads\\GoogleAds\\V" + + "0\\Resources\352\002%Google::Ads::GoogleAds::V0" + + "::Resourcesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -74,7 +77,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_resources_SharedCriterion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_resources_SharedCriterion_descriptor, - new java.lang.String[] { "ResourceName", "SharedSet", "CriterionId", "Type", "Keyword", "YoutubeVideo", "YoutubeChannel", "Placement", "Criterion", }); + new java.lang.String[] { "ResourceName", "SharedSet", "CriterionId", "Type", "Keyword", "YoutubeVideo", "YoutubeChannel", "Placement", "MobileAppCategory", "Criterion", }); com.google.ads.googleads.v0.common.CriteriaProto.getDescriptor(); com.google.ads.googleads.v0.enums.CriterionTypeProto.getDescriptor(); com.google.protobuf.WrappersProto.getDescriptor(); diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/SharedSetProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/SharedSetProto.java index 6b616ab52b..f5913d0ea1 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/SharedSetProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/SharedSetProto.java @@ -43,12 +43,13 @@ public static void registerAllExtensions( "edSetStatusEnum.SharedSetStatus\0221\n\014membe" + "r_count\030\006 \001(\0132\033.google.protobuf.Int64Val" + "ue\0224\n\017reference_count\030\007 \001(\0132\033.google.pro" + - "tobuf.Int64ValueB\323\001\n%com.google.ads.goog" + + "tobuf.Int64ValueB\373\001\n%com.google.ads.goog" + "leads.v0.resourcesB\016SharedSetProtoP\001ZJgo" + "ogle.golang.org/genproto/googleapis/ads/" + "googleads/v0/resources;resources\242\002\003GAA\252\002" + "!Google.Ads.GoogleAds.V0.Resources\312\002!Goo" + - "gle\\Ads\\GoogleAds\\V0\\Resourcesb\006proto3" + "gle\\Ads\\GoogleAds\\V0\\Resources\352\002%Google:" + + ":Ads::GoogleAds::V0::Resourcesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/TopicConstantProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/TopicConstantProto.java index 8e3074bfa9..f45b067c96 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/TopicConstantProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/TopicConstantProto.java @@ -35,12 +35,13 @@ public static void registerAllExtensions( " \001(\t\022\'\n\002id\030\002 \001(\0132\033.google.protobuf.Int64" + "Value\022;\n\025topic_constant_parent\030\003 \001(\0132\034.g" + "oogle.protobuf.StringValue\022*\n\004path\030\004 \003(\013" + - "2\034.google.protobuf.StringValueB\327\001\n%com.g" + + "2\034.google.protobuf.StringValueB\377\001\n%com.g" + "oogle.ads.googleads.v0.resourcesB\022TopicC" + "onstantProtoP\001ZJgoogle.golang.org/genpro" + "to/googleapis/ads/googleads/v0/resources" + ";resources\242\002\003GAA\252\002!Google.Ads.GoogleAds." + "V0.Resources\312\002!Google\\Ads\\GoogleAds\\V0\\R" + + "esources\352\002%Google::Ads::GoogleAds::V0::R" + "esourcesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/TopicViewProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/TopicViewProto.java index e52575a21b..edbce83234 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/TopicViewProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/TopicViewProto.java @@ -31,12 +31,13 @@ public static void registerAllExtensions( "\n2google/ads/googleads/v0/resources/topi" + "c_view.proto\022!google.ads.googleads.v0.re" + "sources\"\"\n\tTopicView\022\025\n\rresource_name\030\001 " + - "\001(\tB\323\001\n%com.google.ads.googleads.v0.reso" + + "\001(\tB\373\001\n%com.google.ads.googleads.v0.reso" + "urcesB\016TopicViewProtoP\001ZJgoogle.golang.o" + "rg/genproto/googleapis/ads/googleads/v0/" + "resources;resources\242\002\003GAA\252\002!Google.Ads.G" + "oogleAds.V0.Resources\312\002!Google\\Ads\\Googl" + - "eAds\\V0\\Resourcesb\006proto3" + "eAds\\V0\\Resources\352\002%Google::Ads::GoogleA" + + "ds::V0::Resourcesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/UserInterestProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/UserInterestProto.java index ff56278b77..07d744589c 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/UserInterestProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/UserInterestProto.java @@ -45,12 +45,13 @@ public static void registerAllExtensions( "Value\0223\n\017launched_to_all\030\006 \001(\0132\032.google." + "protobuf.BoolValue\022U\n\016availabilities\030\007 \003" + "(\0132=.google.ads.googleads.v0.common.Crit" + - "erionCategoryAvailabilityB\326\001\n%com.google" + + "erionCategoryAvailabilityB\376\001\n%com.google" + ".ads.googleads.v0.resourcesB\021UserInteres" + "tProtoP\001ZJgoogle.golang.org/genproto/goo" + "gleapis/ads/googleads/v0/resources;resou" + "rces\242\002\003GAA\252\002!Google.Ads.GoogleAds.V0.Res" + "ources\312\002!Google\\Ads\\GoogleAds\\V0\\Resourc" + + "es\352\002%Google::Ads::GoogleAds::V0::Resourc" + "esb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/UserList.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/UserList.java index 11d196d399..55aababa16 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/UserList.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/UserList.java @@ -260,6 +260,48 @@ private UserList( userListCase_ = 20; break; } + case 170: { + com.google.ads.googleads.v0.common.RuleBasedUserListInfo.Builder subBuilder = null; + if (userListCase_ == 21) { + subBuilder = ((com.google.ads.googleads.v0.common.RuleBasedUserListInfo) userList_).toBuilder(); + } + userList_ = + input.readMessage(com.google.ads.googleads.v0.common.RuleBasedUserListInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.ads.googleads.v0.common.RuleBasedUserListInfo) userList_); + userList_ = subBuilder.buildPartial(); + } + userListCase_ = 21; + break; + } + case 178: { + com.google.ads.googleads.v0.common.LogicalUserListInfo.Builder subBuilder = null; + if (userListCase_ == 22) { + subBuilder = ((com.google.ads.googleads.v0.common.LogicalUserListInfo) userList_).toBuilder(); + } + userList_ = + input.readMessage(com.google.ads.googleads.v0.common.LogicalUserListInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.ads.googleads.v0.common.LogicalUserListInfo) userList_); + userList_ = subBuilder.buildPartial(); + } + userListCase_ = 22; + break; + } + case 186: { + com.google.ads.googleads.v0.common.BasicUserListInfo.Builder subBuilder = null; + if (userListCase_ == 23) { + subBuilder = ((com.google.ads.googleads.v0.common.BasicUserListInfo) userList_).toBuilder(); + } + userList_ = + input.readMessage(com.google.ads.googleads.v0.common.BasicUserListInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.ads.googleads.v0.common.BasicUserListInfo) userList_); + userList_ = subBuilder.buildPartial(); + } + userListCase_ = 23; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -298,6 +340,9 @@ public enum UserListCase implements com.google.protobuf.Internal.EnumLite { CRM_BASED_USER_LIST(19), SIMILAR_USER_LIST(20), + RULE_BASED_USER_LIST(21), + LOGICAL_USER_LIST(22), + BASIC_USER_LIST(23), USERLIST_NOT_SET(0); private final int value; private UserListCase(int value) { @@ -315,6 +360,9 @@ public static UserListCase forNumber(int value) { switch (value) { case 19: return CRM_BASED_USER_LIST; case 20: return SIMILAR_USER_LIST; + case 21: return RULE_BASED_USER_LIST; + case 22: return LOGICAL_USER_LIST; + case 23: return BASIC_USER_LIST; case 0: return USERLIST_NOT_SET; default: return null; } @@ -1031,6 +1079,120 @@ public com.google.ads.googleads.v0.common.SimilarUserListInfoOrBuilder getSimila return com.google.ads.googleads.v0.common.SimilarUserListInfo.getDefaultInstance(); } + public static final int RULE_BASED_USER_LIST_FIELD_NUMBER = 21; + /** + *
+   * User list generated by a rule.
+   * 
+ * + * .google.ads.googleads.v0.common.RuleBasedUserListInfo rule_based_user_list = 21; + */ + public boolean hasRuleBasedUserList() { + return userListCase_ == 21; + } + /** + *
+   * User list generated by a rule.
+   * 
+ * + * .google.ads.googleads.v0.common.RuleBasedUserListInfo rule_based_user_list = 21; + */ + public com.google.ads.googleads.v0.common.RuleBasedUserListInfo getRuleBasedUserList() { + if (userListCase_ == 21) { + return (com.google.ads.googleads.v0.common.RuleBasedUserListInfo) userList_; + } + return com.google.ads.googleads.v0.common.RuleBasedUserListInfo.getDefaultInstance(); + } + /** + *
+   * User list generated by a rule.
+   * 
+ * + * .google.ads.googleads.v0.common.RuleBasedUserListInfo rule_based_user_list = 21; + */ + public com.google.ads.googleads.v0.common.RuleBasedUserListInfoOrBuilder getRuleBasedUserListOrBuilder() { + if (userListCase_ == 21) { + return (com.google.ads.googleads.v0.common.RuleBasedUserListInfo) userList_; + } + return com.google.ads.googleads.v0.common.RuleBasedUserListInfo.getDefaultInstance(); + } + + public static final int LOGICAL_USER_LIST_FIELD_NUMBER = 22; + /** + *
+   * User list that is a custom combination of user lists and user interests.
+   * 
+ * + * .google.ads.googleads.v0.common.LogicalUserListInfo logical_user_list = 22; + */ + public boolean hasLogicalUserList() { + return userListCase_ == 22; + } + /** + *
+   * User list that is a custom combination of user lists and user interests.
+   * 
+ * + * .google.ads.googleads.v0.common.LogicalUserListInfo logical_user_list = 22; + */ + public com.google.ads.googleads.v0.common.LogicalUserListInfo getLogicalUserList() { + if (userListCase_ == 22) { + return (com.google.ads.googleads.v0.common.LogicalUserListInfo) userList_; + } + return com.google.ads.googleads.v0.common.LogicalUserListInfo.getDefaultInstance(); + } + /** + *
+   * User list that is a custom combination of user lists and user interests.
+   * 
+ * + * .google.ads.googleads.v0.common.LogicalUserListInfo logical_user_list = 22; + */ + public com.google.ads.googleads.v0.common.LogicalUserListInfoOrBuilder getLogicalUserListOrBuilder() { + if (userListCase_ == 22) { + return (com.google.ads.googleads.v0.common.LogicalUserListInfo) userList_; + } + return com.google.ads.googleads.v0.common.LogicalUserListInfo.getDefaultInstance(); + } + + public static final int BASIC_USER_LIST_FIELD_NUMBER = 23; + /** + *
+   * User list targeting as a collection of conversion or remarketing actions.
+   * 
+ * + * .google.ads.googleads.v0.common.BasicUserListInfo basic_user_list = 23; + */ + public boolean hasBasicUserList() { + return userListCase_ == 23; + } + /** + *
+   * User list targeting as a collection of conversion or remarketing actions.
+   * 
+ * + * .google.ads.googleads.v0.common.BasicUserListInfo basic_user_list = 23; + */ + public com.google.ads.googleads.v0.common.BasicUserListInfo getBasicUserList() { + if (userListCase_ == 23) { + return (com.google.ads.googleads.v0.common.BasicUserListInfo) userList_; + } + return com.google.ads.googleads.v0.common.BasicUserListInfo.getDefaultInstance(); + } + /** + *
+   * User list targeting as a collection of conversion or remarketing actions.
+   * 
+ * + * .google.ads.googleads.v0.common.BasicUserListInfo basic_user_list = 23; + */ + public com.google.ads.googleads.v0.common.BasicUserListInfoOrBuilder getBasicUserListOrBuilder() { + if (userListCase_ == 23) { + return (com.google.ads.googleads.v0.common.BasicUserListInfo) userList_; + } + return com.google.ads.googleads.v0.common.BasicUserListInfo.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -1105,6 +1267,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (userListCase_ == 20) { output.writeMessage(20, (com.google.ads.googleads.v0.common.SimilarUserListInfo) userList_); } + if (userListCase_ == 21) { + output.writeMessage(21, (com.google.ads.googleads.v0.common.RuleBasedUserListInfo) userList_); + } + if (userListCase_ == 22) { + output.writeMessage(22, (com.google.ads.googleads.v0.common.LogicalUserListInfo) userList_); + } + if (userListCase_ == 23) { + output.writeMessage(23, (com.google.ads.googleads.v0.common.BasicUserListInfo) userList_); + } unknownFields.writeTo(output); } @@ -1193,6 +1364,18 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(20, (com.google.ads.googleads.v0.common.SimilarUserListInfo) userList_); } + if (userListCase_ == 21) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, (com.google.ads.googleads.v0.common.RuleBasedUserListInfo) userList_); + } + if (userListCase_ == 22) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, (com.google.ads.googleads.v0.common.LogicalUserListInfo) userList_); + } + if (userListCase_ == 23) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(23, (com.google.ads.googleads.v0.common.BasicUserListInfo) userList_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1280,6 +1463,18 @@ public boolean equals(final java.lang.Object obj) { result = result && getSimilarUserList() .equals(other.getSimilarUserList()); break; + case 21: + result = result && getRuleBasedUserList() + .equals(other.getRuleBasedUserList()); + break; + case 22: + result = result && getLogicalUserList() + .equals(other.getLogicalUserList()); + break; + case 23: + result = result && getBasicUserList() + .equals(other.getBasicUserList()); + break; case 0: default: } @@ -1359,6 +1554,18 @@ public int hashCode() { hash = (37 * hash) + SIMILAR_USER_LIST_FIELD_NUMBER; hash = (53 * hash) + getSimilarUserList().hashCode(); break; + case 21: + hash = (37 * hash) + RULE_BASED_USER_LIST_FIELD_NUMBER; + hash = (53 * hash) + getRuleBasedUserList().hashCode(); + break; + case 22: + hash = (37 * hash) + LOGICAL_USER_LIST_FIELD_NUMBER; + hash = (53 * hash) + getLogicalUserList().hashCode(); + break; + case 23: + hash = (37 * hash) + BASIC_USER_LIST_FIELD_NUMBER; + hash = (53 * hash) + getBasicUserList().hashCode(); + break; case 0: default: } @@ -1675,6 +1882,27 @@ public com.google.ads.googleads.v0.resources.UserList buildPartial() { result.userList_ = similarUserListBuilder_.build(); } } + if (userListCase_ == 21) { + if (ruleBasedUserListBuilder_ == null) { + result.userList_ = userList_; + } else { + result.userList_ = ruleBasedUserListBuilder_.build(); + } + } + if (userListCase_ == 22) { + if (logicalUserListBuilder_ == null) { + result.userList_ = userList_; + } else { + result.userList_ = logicalUserListBuilder_.build(); + } + } + if (userListCase_ == 23) { + if (basicUserListBuilder_ == null) { + result.userList_ = userList_; + } else { + result.userList_ = basicUserListBuilder_.build(); + } + } result.userListCase_ = userListCase_; onBuilt(); return result; @@ -1788,6 +2016,18 @@ public Builder mergeFrom(com.google.ads.googleads.v0.resources.UserList other) { mergeSimilarUserList(other.getSimilarUserList()); break; } + case RULE_BASED_USER_LIST: { + mergeRuleBasedUserList(other.getRuleBasedUserList()); + break; + } + case LOGICAL_USER_LIST: { + mergeLogicalUserList(other.getLogicalUserList()); + break; + } + case BASIC_USER_LIST: { + mergeBasicUserList(other.getBasicUserList()); + break; + } case USERLIST_NOT_SET: { break; } @@ -4472,6 +4712,522 @@ public com.google.ads.googleads.v0.common.SimilarUserListInfoOrBuilder getSimila onChanged();; return similarUserListBuilder_; } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.RuleBasedUserListInfo, com.google.ads.googleads.v0.common.RuleBasedUserListInfo.Builder, com.google.ads.googleads.v0.common.RuleBasedUserListInfoOrBuilder> ruleBasedUserListBuilder_; + /** + *
+     * User list generated by a rule.
+     * 
+ * + * .google.ads.googleads.v0.common.RuleBasedUserListInfo rule_based_user_list = 21; + */ + public boolean hasRuleBasedUserList() { + return userListCase_ == 21; + } + /** + *
+     * User list generated by a rule.
+     * 
+ * + * .google.ads.googleads.v0.common.RuleBasedUserListInfo rule_based_user_list = 21; + */ + public com.google.ads.googleads.v0.common.RuleBasedUserListInfo getRuleBasedUserList() { + if (ruleBasedUserListBuilder_ == null) { + if (userListCase_ == 21) { + return (com.google.ads.googleads.v0.common.RuleBasedUserListInfo) userList_; + } + return com.google.ads.googleads.v0.common.RuleBasedUserListInfo.getDefaultInstance(); + } else { + if (userListCase_ == 21) { + return ruleBasedUserListBuilder_.getMessage(); + } + return com.google.ads.googleads.v0.common.RuleBasedUserListInfo.getDefaultInstance(); + } + } + /** + *
+     * User list generated by a rule.
+     * 
+ * + * .google.ads.googleads.v0.common.RuleBasedUserListInfo rule_based_user_list = 21; + */ + public Builder setRuleBasedUserList(com.google.ads.googleads.v0.common.RuleBasedUserListInfo value) { + if (ruleBasedUserListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userList_ = value; + onChanged(); + } else { + ruleBasedUserListBuilder_.setMessage(value); + } + userListCase_ = 21; + return this; + } + /** + *
+     * User list generated by a rule.
+     * 
+ * + * .google.ads.googleads.v0.common.RuleBasedUserListInfo rule_based_user_list = 21; + */ + public Builder setRuleBasedUserList( + com.google.ads.googleads.v0.common.RuleBasedUserListInfo.Builder builderForValue) { + if (ruleBasedUserListBuilder_ == null) { + userList_ = builderForValue.build(); + onChanged(); + } else { + ruleBasedUserListBuilder_.setMessage(builderForValue.build()); + } + userListCase_ = 21; + return this; + } + /** + *
+     * User list generated by a rule.
+     * 
+ * + * .google.ads.googleads.v0.common.RuleBasedUserListInfo rule_based_user_list = 21; + */ + public Builder mergeRuleBasedUserList(com.google.ads.googleads.v0.common.RuleBasedUserListInfo value) { + if (ruleBasedUserListBuilder_ == null) { + if (userListCase_ == 21 && + userList_ != com.google.ads.googleads.v0.common.RuleBasedUserListInfo.getDefaultInstance()) { + userList_ = com.google.ads.googleads.v0.common.RuleBasedUserListInfo.newBuilder((com.google.ads.googleads.v0.common.RuleBasedUserListInfo) userList_) + .mergeFrom(value).buildPartial(); + } else { + userList_ = value; + } + onChanged(); + } else { + if (userListCase_ == 21) { + ruleBasedUserListBuilder_.mergeFrom(value); + } + ruleBasedUserListBuilder_.setMessage(value); + } + userListCase_ = 21; + return this; + } + /** + *
+     * User list generated by a rule.
+     * 
+ * + * .google.ads.googleads.v0.common.RuleBasedUserListInfo rule_based_user_list = 21; + */ + public Builder clearRuleBasedUserList() { + if (ruleBasedUserListBuilder_ == null) { + if (userListCase_ == 21) { + userListCase_ = 0; + userList_ = null; + onChanged(); + } + } else { + if (userListCase_ == 21) { + userListCase_ = 0; + userList_ = null; + } + ruleBasedUserListBuilder_.clear(); + } + return this; + } + /** + *
+     * User list generated by a rule.
+     * 
+ * + * .google.ads.googleads.v0.common.RuleBasedUserListInfo rule_based_user_list = 21; + */ + public com.google.ads.googleads.v0.common.RuleBasedUserListInfo.Builder getRuleBasedUserListBuilder() { + return getRuleBasedUserListFieldBuilder().getBuilder(); + } + /** + *
+     * User list generated by a rule.
+     * 
+ * + * .google.ads.googleads.v0.common.RuleBasedUserListInfo rule_based_user_list = 21; + */ + public com.google.ads.googleads.v0.common.RuleBasedUserListInfoOrBuilder getRuleBasedUserListOrBuilder() { + if ((userListCase_ == 21) && (ruleBasedUserListBuilder_ != null)) { + return ruleBasedUserListBuilder_.getMessageOrBuilder(); + } else { + if (userListCase_ == 21) { + return (com.google.ads.googleads.v0.common.RuleBasedUserListInfo) userList_; + } + return com.google.ads.googleads.v0.common.RuleBasedUserListInfo.getDefaultInstance(); + } + } + /** + *
+     * User list generated by a rule.
+     * 
+ * + * .google.ads.googleads.v0.common.RuleBasedUserListInfo rule_based_user_list = 21; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.RuleBasedUserListInfo, com.google.ads.googleads.v0.common.RuleBasedUserListInfo.Builder, com.google.ads.googleads.v0.common.RuleBasedUserListInfoOrBuilder> + getRuleBasedUserListFieldBuilder() { + if (ruleBasedUserListBuilder_ == null) { + if (!(userListCase_ == 21)) { + userList_ = com.google.ads.googleads.v0.common.RuleBasedUserListInfo.getDefaultInstance(); + } + ruleBasedUserListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.RuleBasedUserListInfo, com.google.ads.googleads.v0.common.RuleBasedUserListInfo.Builder, com.google.ads.googleads.v0.common.RuleBasedUserListInfoOrBuilder>( + (com.google.ads.googleads.v0.common.RuleBasedUserListInfo) userList_, + getParentForChildren(), + isClean()); + userList_ = null; + } + userListCase_ = 21; + onChanged();; + return ruleBasedUserListBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.LogicalUserListInfo, com.google.ads.googleads.v0.common.LogicalUserListInfo.Builder, com.google.ads.googleads.v0.common.LogicalUserListInfoOrBuilder> logicalUserListBuilder_; + /** + *
+     * User list that is a custom combination of user lists and user interests.
+     * 
+ * + * .google.ads.googleads.v0.common.LogicalUserListInfo logical_user_list = 22; + */ + public boolean hasLogicalUserList() { + return userListCase_ == 22; + } + /** + *
+     * User list that is a custom combination of user lists and user interests.
+     * 
+ * + * .google.ads.googleads.v0.common.LogicalUserListInfo logical_user_list = 22; + */ + public com.google.ads.googleads.v0.common.LogicalUserListInfo getLogicalUserList() { + if (logicalUserListBuilder_ == null) { + if (userListCase_ == 22) { + return (com.google.ads.googleads.v0.common.LogicalUserListInfo) userList_; + } + return com.google.ads.googleads.v0.common.LogicalUserListInfo.getDefaultInstance(); + } else { + if (userListCase_ == 22) { + return logicalUserListBuilder_.getMessage(); + } + return com.google.ads.googleads.v0.common.LogicalUserListInfo.getDefaultInstance(); + } + } + /** + *
+     * User list that is a custom combination of user lists and user interests.
+     * 
+ * + * .google.ads.googleads.v0.common.LogicalUserListInfo logical_user_list = 22; + */ + public Builder setLogicalUserList(com.google.ads.googleads.v0.common.LogicalUserListInfo value) { + if (logicalUserListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userList_ = value; + onChanged(); + } else { + logicalUserListBuilder_.setMessage(value); + } + userListCase_ = 22; + return this; + } + /** + *
+     * User list that is a custom combination of user lists and user interests.
+     * 
+ * + * .google.ads.googleads.v0.common.LogicalUserListInfo logical_user_list = 22; + */ + public Builder setLogicalUserList( + com.google.ads.googleads.v0.common.LogicalUserListInfo.Builder builderForValue) { + if (logicalUserListBuilder_ == null) { + userList_ = builderForValue.build(); + onChanged(); + } else { + logicalUserListBuilder_.setMessage(builderForValue.build()); + } + userListCase_ = 22; + return this; + } + /** + *
+     * User list that is a custom combination of user lists and user interests.
+     * 
+ * + * .google.ads.googleads.v0.common.LogicalUserListInfo logical_user_list = 22; + */ + public Builder mergeLogicalUserList(com.google.ads.googleads.v0.common.LogicalUserListInfo value) { + if (logicalUserListBuilder_ == null) { + if (userListCase_ == 22 && + userList_ != com.google.ads.googleads.v0.common.LogicalUserListInfo.getDefaultInstance()) { + userList_ = com.google.ads.googleads.v0.common.LogicalUserListInfo.newBuilder((com.google.ads.googleads.v0.common.LogicalUserListInfo) userList_) + .mergeFrom(value).buildPartial(); + } else { + userList_ = value; + } + onChanged(); + } else { + if (userListCase_ == 22) { + logicalUserListBuilder_.mergeFrom(value); + } + logicalUserListBuilder_.setMessage(value); + } + userListCase_ = 22; + return this; + } + /** + *
+     * User list that is a custom combination of user lists and user interests.
+     * 
+ * + * .google.ads.googleads.v0.common.LogicalUserListInfo logical_user_list = 22; + */ + public Builder clearLogicalUserList() { + if (logicalUserListBuilder_ == null) { + if (userListCase_ == 22) { + userListCase_ = 0; + userList_ = null; + onChanged(); + } + } else { + if (userListCase_ == 22) { + userListCase_ = 0; + userList_ = null; + } + logicalUserListBuilder_.clear(); + } + return this; + } + /** + *
+     * User list that is a custom combination of user lists and user interests.
+     * 
+ * + * .google.ads.googleads.v0.common.LogicalUserListInfo logical_user_list = 22; + */ + public com.google.ads.googleads.v0.common.LogicalUserListInfo.Builder getLogicalUserListBuilder() { + return getLogicalUserListFieldBuilder().getBuilder(); + } + /** + *
+     * User list that is a custom combination of user lists and user interests.
+     * 
+ * + * .google.ads.googleads.v0.common.LogicalUserListInfo logical_user_list = 22; + */ + public com.google.ads.googleads.v0.common.LogicalUserListInfoOrBuilder getLogicalUserListOrBuilder() { + if ((userListCase_ == 22) && (logicalUserListBuilder_ != null)) { + return logicalUserListBuilder_.getMessageOrBuilder(); + } else { + if (userListCase_ == 22) { + return (com.google.ads.googleads.v0.common.LogicalUserListInfo) userList_; + } + return com.google.ads.googleads.v0.common.LogicalUserListInfo.getDefaultInstance(); + } + } + /** + *
+     * User list that is a custom combination of user lists and user interests.
+     * 
+ * + * .google.ads.googleads.v0.common.LogicalUserListInfo logical_user_list = 22; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.LogicalUserListInfo, com.google.ads.googleads.v0.common.LogicalUserListInfo.Builder, com.google.ads.googleads.v0.common.LogicalUserListInfoOrBuilder> + getLogicalUserListFieldBuilder() { + if (logicalUserListBuilder_ == null) { + if (!(userListCase_ == 22)) { + userList_ = com.google.ads.googleads.v0.common.LogicalUserListInfo.getDefaultInstance(); + } + logicalUserListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.LogicalUserListInfo, com.google.ads.googleads.v0.common.LogicalUserListInfo.Builder, com.google.ads.googleads.v0.common.LogicalUserListInfoOrBuilder>( + (com.google.ads.googleads.v0.common.LogicalUserListInfo) userList_, + getParentForChildren(), + isClean()); + userList_ = null; + } + userListCase_ = 22; + onChanged();; + return logicalUserListBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.BasicUserListInfo, com.google.ads.googleads.v0.common.BasicUserListInfo.Builder, com.google.ads.googleads.v0.common.BasicUserListInfoOrBuilder> basicUserListBuilder_; + /** + *
+     * User list targeting as a collection of conversion or remarketing actions.
+     * 
+ * + * .google.ads.googleads.v0.common.BasicUserListInfo basic_user_list = 23; + */ + public boolean hasBasicUserList() { + return userListCase_ == 23; + } + /** + *
+     * User list targeting as a collection of conversion or remarketing actions.
+     * 
+ * + * .google.ads.googleads.v0.common.BasicUserListInfo basic_user_list = 23; + */ + public com.google.ads.googleads.v0.common.BasicUserListInfo getBasicUserList() { + if (basicUserListBuilder_ == null) { + if (userListCase_ == 23) { + return (com.google.ads.googleads.v0.common.BasicUserListInfo) userList_; + } + return com.google.ads.googleads.v0.common.BasicUserListInfo.getDefaultInstance(); + } else { + if (userListCase_ == 23) { + return basicUserListBuilder_.getMessage(); + } + return com.google.ads.googleads.v0.common.BasicUserListInfo.getDefaultInstance(); + } + } + /** + *
+     * User list targeting as a collection of conversion or remarketing actions.
+     * 
+ * + * .google.ads.googleads.v0.common.BasicUserListInfo basic_user_list = 23; + */ + public Builder setBasicUserList(com.google.ads.googleads.v0.common.BasicUserListInfo value) { + if (basicUserListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userList_ = value; + onChanged(); + } else { + basicUserListBuilder_.setMessage(value); + } + userListCase_ = 23; + return this; + } + /** + *
+     * User list targeting as a collection of conversion or remarketing actions.
+     * 
+ * + * .google.ads.googleads.v0.common.BasicUserListInfo basic_user_list = 23; + */ + public Builder setBasicUserList( + com.google.ads.googleads.v0.common.BasicUserListInfo.Builder builderForValue) { + if (basicUserListBuilder_ == null) { + userList_ = builderForValue.build(); + onChanged(); + } else { + basicUserListBuilder_.setMessage(builderForValue.build()); + } + userListCase_ = 23; + return this; + } + /** + *
+     * User list targeting as a collection of conversion or remarketing actions.
+     * 
+ * + * .google.ads.googleads.v0.common.BasicUserListInfo basic_user_list = 23; + */ + public Builder mergeBasicUserList(com.google.ads.googleads.v0.common.BasicUserListInfo value) { + if (basicUserListBuilder_ == null) { + if (userListCase_ == 23 && + userList_ != com.google.ads.googleads.v0.common.BasicUserListInfo.getDefaultInstance()) { + userList_ = com.google.ads.googleads.v0.common.BasicUserListInfo.newBuilder((com.google.ads.googleads.v0.common.BasicUserListInfo) userList_) + .mergeFrom(value).buildPartial(); + } else { + userList_ = value; + } + onChanged(); + } else { + if (userListCase_ == 23) { + basicUserListBuilder_.mergeFrom(value); + } + basicUserListBuilder_.setMessage(value); + } + userListCase_ = 23; + return this; + } + /** + *
+     * User list targeting as a collection of conversion or remarketing actions.
+     * 
+ * + * .google.ads.googleads.v0.common.BasicUserListInfo basic_user_list = 23; + */ + public Builder clearBasicUserList() { + if (basicUserListBuilder_ == null) { + if (userListCase_ == 23) { + userListCase_ = 0; + userList_ = null; + onChanged(); + } + } else { + if (userListCase_ == 23) { + userListCase_ = 0; + userList_ = null; + } + basicUserListBuilder_.clear(); + } + return this; + } + /** + *
+     * User list targeting as a collection of conversion or remarketing actions.
+     * 
+ * + * .google.ads.googleads.v0.common.BasicUserListInfo basic_user_list = 23; + */ + public com.google.ads.googleads.v0.common.BasicUserListInfo.Builder getBasicUserListBuilder() { + return getBasicUserListFieldBuilder().getBuilder(); + } + /** + *
+     * User list targeting as a collection of conversion or remarketing actions.
+     * 
+ * + * .google.ads.googleads.v0.common.BasicUserListInfo basic_user_list = 23; + */ + public com.google.ads.googleads.v0.common.BasicUserListInfoOrBuilder getBasicUserListOrBuilder() { + if ((userListCase_ == 23) && (basicUserListBuilder_ != null)) { + return basicUserListBuilder_.getMessageOrBuilder(); + } else { + if (userListCase_ == 23) { + return (com.google.ads.googleads.v0.common.BasicUserListInfo) userList_; + } + return com.google.ads.googleads.v0.common.BasicUserListInfo.getDefaultInstance(); + } + } + /** + *
+     * User list targeting as a collection of conversion or remarketing actions.
+     * 
+ * + * .google.ads.googleads.v0.common.BasicUserListInfo basic_user_list = 23; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.BasicUserListInfo, com.google.ads.googleads.v0.common.BasicUserListInfo.Builder, com.google.ads.googleads.v0.common.BasicUserListInfoOrBuilder> + getBasicUserListFieldBuilder() { + if (basicUserListBuilder_ == null) { + if (!(userListCase_ == 23)) { + userList_ = com.google.ads.googleads.v0.common.BasicUserListInfo.getDefaultInstance(); + } + basicUserListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.BasicUserListInfo, com.google.ads.googleads.v0.common.BasicUserListInfo.Builder, com.google.ads.googleads.v0.common.BasicUserListInfoOrBuilder>( + (com.google.ads.googleads.v0.common.BasicUserListInfo) userList_, + getParentForChildren(), + isClean()); + userList_ = null; + } + userListCase_ = 23; + onChanged();; + return basicUserListBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/UserListOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/UserListOrBuilder.java index 1f618fbec5..73554d923a 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/UserListOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/UserListOrBuilder.java @@ -522,5 +522,80 @@ public interface UserListOrBuilder extends */ com.google.ads.googleads.v0.common.SimilarUserListInfoOrBuilder getSimilarUserListOrBuilder(); + /** + *
+   * User list generated by a rule.
+   * 
+ * + * .google.ads.googleads.v0.common.RuleBasedUserListInfo rule_based_user_list = 21; + */ + boolean hasRuleBasedUserList(); + /** + *
+   * User list generated by a rule.
+   * 
+ * + * .google.ads.googleads.v0.common.RuleBasedUserListInfo rule_based_user_list = 21; + */ + com.google.ads.googleads.v0.common.RuleBasedUserListInfo getRuleBasedUserList(); + /** + *
+   * User list generated by a rule.
+   * 
+ * + * .google.ads.googleads.v0.common.RuleBasedUserListInfo rule_based_user_list = 21; + */ + com.google.ads.googleads.v0.common.RuleBasedUserListInfoOrBuilder getRuleBasedUserListOrBuilder(); + + /** + *
+   * User list that is a custom combination of user lists and user interests.
+   * 
+ * + * .google.ads.googleads.v0.common.LogicalUserListInfo logical_user_list = 22; + */ + boolean hasLogicalUserList(); + /** + *
+   * User list that is a custom combination of user lists and user interests.
+   * 
+ * + * .google.ads.googleads.v0.common.LogicalUserListInfo logical_user_list = 22; + */ + com.google.ads.googleads.v0.common.LogicalUserListInfo getLogicalUserList(); + /** + *
+   * User list that is a custom combination of user lists and user interests.
+   * 
+ * + * .google.ads.googleads.v0.common.LogicalUserListInfo logical_user_list = 22; + */ + com.google.ads.googleads.v0.common.LogicalUserListInfoOrBuilder getLogicalUserListOrBuilder(); + + /** + *
+   * User list targeting as a collection of conversion or remarketing actions.
+   * 
+ * + * .google.ads.googleads.v0.common.BasicUserListInfo basic_user_list = 23; + */ + boolean hasBasicUserList(); + /** + *
+   * User list targeting as a collection of conversion or remarketing actions.
+   * 
+ * + * .google.ads.googleads.v0.common.BasicUserListInfo basic_user_list = 23; + */ + com.google.ads.googleads.v0.common.BasicUserListInfo getBasicUserList(); + /** + *
+   * User list targeting as a collection of conversion or remarketing actions.
+   * 
+ * + * .google.ads.googleads.v0.common.BasicUserListInfo basic_user_list = 23; + */ + com.google.ads.googleads.v0.common.BasicUserListInfoOrBuilder getBasicUserListOrBuilder(); + public com.google.ads.googleads.v0.resources.UserList.UserListCase getUserListCase(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/UserListProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/UserListProto.java index 5f58637004..bbedc19cfc 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/UserListProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/UserListProto.java @@ -40,7 +40,7 @@ public static void registerAllExtensions( "p_status.proto\0328google/ads/googleads/v0/" + "enums/user_list_size_range.proto\0322google" + "/ads/googleads/v0/enums/user_list_type.p" + - "roto\032\036google/protobuf/wrappers.proto\"\230\013\n" + + "roto\032\036google/protobuf/wrappers.proto\"\217\r\n" + "\010UserList\022\025\n\rresource_name\030\001 \001(\t\022\'\n\002id\030\002" + " \001(\0132\033.google.protobuf.Int64Value\022-\n\trea" + "d_only\030\003 \001(\0132\032.google.protobuf.BoolValue" + @@ -76,13 +76,20 @@ public static void registerAllExtensions( "24.google.ads.googleads.v0.common.CrmBas" + "edUserListInfoH\000\022P\n\021similar_user_list\030\024 " + "\001(\01323.google.ads.googleads.v0.common.Sim" + - "ilarUserListInfoH\000B\013\n\tuser_listB\322\001\n%com." + - "google.ads.googleads.v0.resourcesB\rUserL" + - "istProtoP\001ZJgoogle.golang.org/genproto/g" + - "oogleapis/ads/googleads/v0/resources;res" + - "ources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V0.R" + - "esources\312\002!Google\\Ads\\GoogleAds\\V0\\Resou" + - "rcesb\006proto3" + "ilarUserListInfoH\000\022U\n\024rule_based_user_li" + + "st\030\025 \001(\01325.google.ads.googleads.v0.commo" + + "n.RuleBasedUserListInfoH\000\022P\n\021logical_use" + + "r_list\030\026 \001(\01323.google.ads.googleads.v0.c" + + "ommon.LogicalUserListInfoH\000\022L\n\017basic_use" + + "r_list\030\027 \001(\01321.google.ads.googleads.v0.c" + + "ommon.BasicUserListInfoH\000B\013\n\tuser_listB\372" + + "\001\n%com.google.ads.googleads.v0.resources" + + "B\rUserListProtoP\001ZJgoogle.golang.org/gen" + + "proto/googleapis/ads/googleads/v0/resour" + + "ces;resources\242\002\003GAA\252\002!Google.Ads.GoogleA" + + "ds.V0.Resources\312\002!Google\\Ads\\GoogleAds\\V" + + "0\\Resources\352\002%Google::Ads::GoogleAds::V0" + + "::Resourcesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -109,7 +116,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_resources_UserList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_resources_UserList_descriptor, - new java.lang.String[] { "ResourceName", "Id", "ReadOnly", "Name", "Description", "MembershipStatus", "IntegrationCode", "MembershipLifeSpan", "SizeForDisplay", "SizeRangeForDisplay", "SizeForSearch", "SizeRangeForSearch", "Type", "ClosingReason", "AccessReason", "AccountUserListStatus", "EligibleForSearch", "EligibleForDisplay", "CrmBasedUserList", "SimilarUserList", "UserList", }); + new java.lang.String[] { "ResourceName", "Id", "ReadOnly", "Name", "Description", "MembershipStatus", "IntegrationCode", "MembershipLifeSpan", "SizeForDisplay", "SizeRangeForDisplay", "SizeForSearch", "SizeRangeForSearch", "Type", "ClosingReason", "AccessReason", "AccountUserListStatus", "EligibleForSearch", "EligibleForDisplay", "CrmBasedUserList", "SimilarUserList", "RuleBasedUserList", "LogicalUserList", "BasicUserList", "UserList", }); com.google.ads.googleads.v0.common.UserListsProto.getDescriptor(); com.google.ads.googleads.v0.enums.AccessReasonProto.getDescriptor(); com.google.ads.googleads.v0.enums.UserListAccessStatusProto.getDescriptor(); diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/VideoProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/VideoProto.java index d35a79df2e..59f7fdd12e 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/resources/VideoProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/resources/VideoProto.java @@ -36,12 +36,13 @@ public static void registerAllExtensions( "_id\030\003 \001(\0132\034.google.protobuf.StringValue\022" + "4\n\017duration_millis\030\004 \001(\0132\033.google.protob" + "uf.Int64Value\022+\n\005title\030\005 \001(\0132\034.google.pr" + - "otobuf.StringValueB\317\001\n%com.google.ads.go" + + "otobuf.StringValueB\367\001\n%com.google.ads.go" + "ogleads.v0.resourcesB\nVideoProtoP\001ZJgoog" + "le.golang.org/genproto/googleapis/ads/go" + "ogleads/v0/resources;resources\242\002\003GAA\252\002!G" + "oogle.Ads.GoogleAds.V0.Resources\312\002!Googl" + - "e\\Ads\\GoogleAds\\V0\\Resourcesb\006proto3" + "e\\Ads\\GoogleAds\\V0\\Resources\352\002%Google::A" + + "ds::GoogleAds::V0::Resourcesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AccountBudgetProposalServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AccountBudgetProposalServiceClient.java index 033f2c36d5..757c2ef2d1 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AccountBudgetProposalServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AccountBudgetProposalServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -237,7 +237,7 @@ public final AccountBudgetProposal getAccountBudgetProposal(String resourceName) * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final AccountBudgetProposal getAccountBudgetProposal( + public final AccountBudgetProposal getAccountBudgetProposal( GetAccountBudgetProposalRequest request) { return getAccountBudgetProposalCallable().call(request); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AccountBudgetProposalServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AccountBudgetProposalServiceProto.java index 65dbb98025..15ae8afbc2 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AccountBudgetProposalServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AccountBudgetProposalServiceProto.java @@ -80,13 +80,14 @@ public static void registerAllExtensions( "lRequest\032E.google.ads.googleads.v0.servi" + "ces.MutateAccountBudgetProposalResponse\"" + "F\202\323\344\223\002@\";/v0/customers/{customer_id=*}/a" + - "ccountBudgetProposals:mutate:\001*B\341\001\n$com." + + "ccountBudgetProposals:mutate:\001*B\210\002\n$com." + "google.ads.googleads.v0.servicesB!Accoun" + "tBudgetProposalServiceProtoP\001ZHgoogle.go" + "lang.org/genproto/googleapis/ads/googlea" + "ds/v0/services;services\242\002\003GAA\252\002 Google.A" + "ds.GoogleAds.V0.Services\312\002 Google\\Ads\\Go" + - "ogleAds\\V0\\Servicesb\006proto3" + "ogleAds\\V0\\Services\352\002$Google::Ads::Googl" + + "eAds::V0::Servicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AccountBudgetProposalServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AccountBudgetProposalServiceSettings.java index 777253dd23..8e1e25bac0 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AccountBudgetProposalServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AccountBudgetProposalServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AccountBudgetServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AccountBudgetServiceClient.java index ddabb3e245..589909a784 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AccountBudgetServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AccountBudgetServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -219,7 +219,7 @@ public final AccountBudget getAccountBudget(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final AccountBudget getAccountBudget(GetAccountBudgetRequest request) { + public final AccountBudget getAccountBudget(GetAccountBudgetRequest request) { return getAccountBudgetCallable().call(request); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AccountBudgetServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AccountBudgetServiceProto.java index c1bc8596b1..bf5b288b25 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AccountBudgetServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AccountBudgetServiceProto.java @@ -39,12 +39,13 @@ public static void registerAllExtensions( "countBudgetRequest\0320.google.ads.googlead" + "s.v0.resources.AccountBudget\"8\202\323\344\223\0022\0220/v" + "0/{resource_name=customers/*/accountBudg" + - "ets/*}B\331\001\n$com.google.ads.googleads.v0.s" + + "ets/*}B\200\002\n$com.google.ads.googleads.v0.s" + "ervicesB\031AccountBudgetServiceProtoP\001ZHgo" + "ogle.golang.org/genproto/googleapis/ads/" + "googleads/v0/services;services\242\002\003GAA\252\002 G" + "oogle.Ads.GoogleAds.V0.Services\312\002 Google" + - "\\Ads\\GoogleAds\\V0\\Servicesb\006proto3" + "\\Ads\\GoogleAds\\V0\\Services\352\002$Google::Ads" + + "::GoogleAds::V0::Servicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AccountBudgetServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AccountBudgetServiceSettings.java index d689f3514d..8e1003b622 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AccountBudgetServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AccountBudgetServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupAdServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupAdServiceClient.java index ac299d0540..c2ad9a4e56 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupAdServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupAdServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -216,7 +216,7 @@ public final AdGroupAd getAdGroupAd(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final AdGroupAd getAdGroupAd(GetAdGroupAdRequest request) { + public final AdGroupAd getAdGroupAd(GetAdGroupAdRequest request) { return getAdGroupAdCallable().call(request); } @@ -242,6 +242,47 @@ public final UnaryCallable getAdGroupAdCallable( return stub.getAdGroupAdCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates, updates, or removes ads. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (AdGroupAdServiceClient adGroupAdServiceClient = AdGroupAdServiceClient.create()) {
+   *   String customerId = "";
+   *   List<AdGroupAdOperation> operations = new ArrayList<>();
+   *   boolean partialFailure = false;
+   *   boolean validateOnly = false;
+   *   MutateAdGroupAdsResponse response = adGroupAdServiceClient.mutateAdGroupAds(customerId, operations, partialFailure, validateOnly);
+   * }
+   * 
+ * + * @param customerId The ID of the customer whose ads are being modified. + * @param operations The list of operations to perform on individual ads. + * @param partialFailure If true, successful operations will be carried out and invalid operations + * will return errors. If false, all operations will be carried out in one transaction if and + * only if they are all valid. Default is false. + * @param validateOnly If true, the request is validated but not executed. Only errors are + * returned, not results. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateAdGroupAdsResponse mutateAdGroupAds( + String customerId, + List operations, + boolean partialFailure, + boolean validateOnly) { + + MutateAdGroupAdsRequest request = + MutateAdGroupAdsRequest.newBuilder() + .setCustomerId(customerId) + .addAllOperations(operations) + .setPartialFailure(partialFailure) + .setValidateOnly(validateOnly) + .build(); + return mutateAdGroupAds(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Creates, updates, or removes ads. Operation statuses are returned. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupAdServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupAdServiceProto.java index 23615d2b62..721a9aa529 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupAdServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupAdServiceProto.java @@ -54,38 +54,43 @@ public static void registerAllExtensions( "common/policy.proto\0323google/ads/googlead" + "s/v0/resources/ad_group_ad.proto\032\034google" + "/api/annotations.proto\032 google/protobuf/" + - "field_mask.proto\",\n\023GetAdGroupAdRequest\022" + - "\025\n\rresource_name\030\001 \001(\t\"x\n\027MutateAdGroupA" + - "dsRequest\022\023\n\013customer_id\030\001 \001(\t\022H\n\noperat" + - "ions\030\002 \003(\01324.google.ads.googleads.v0.ser" + - "vices.AdGroupAdOperation\"\304\002\n\022AdGroupAdOp" + - "eration\022/\n\013update_mask\030\004 \001(\0132\032.google.pr" + - "otobuf.FieldMask\022^\n\033policy_validation_pa" + - "rameter\030\005 \001(\01329.google.ads.googleads.v0." + - "common.PolicyValidationParameter\022>\n\006crea" + - "te\030\001 \001(\0132,.google.ads.googleads.v0.resou" + - "rces.AdGroupAdH\000\022>\n\006update\030\002 \001(\0132,.googl" + - "e.ads.googleads.v0.resources.AdGroupAdH\000" + - "\022\020\n\006remove\030\003 \001(\tH\000B\013\n\toperation\"d\n\030Mutat" + - "eAdGroupAdsResponse\022H\n\007results\030\002 \003(\01327.g" + - "oogle.ads.googleads.v0.services.MutateAd" + - "GroupAdResult\".\n\025MutateAdGroupAdResult\022\025" + - "\n\rresource_name\030\001 \001(\t2\206\003\n\020AdGroupAdServi" + - "ce\022\251\001\n\014GetAdGroupAd\0225.google.ads.googlea" + - "ds.v0.services.GetAdGroupAdRequest\032,.goo" + + "field_mask.proto\032\036google/protobuf/wrappe" + + "rs.proto\032\027google/rpc/status.proto\",\n\023Get" + + "AdGroupAdRequest\022\025\n\rresource_name\030\001 \001(\t\"" + + "\250\001\n\027MutateAdGroupAdsRequest\022\023\n\013customer_" + + "id\030\001 \001(\t\022H\n\noperations\030\002 \003(\01324.google.ad" + + "s.googleads.v0.services.AdGroupAdOperati" + + "on\022\027\n\017partial_failure\030\003 \001(\010\022\025\n\rvalidate_" + + "only\030\004 \001(\010\"\304\002\n\022AdGroupAdOperation\022/\n\013upd" + + "ate_mask\030\004 \001(\0132\032.google.protobuf.FieldMa" + + "sk\022^\n\033policy_validation_parameter\030\005 \001(\0132" + + "9.google.ads.googleads.v0.common.PolicyV" + + "alidationParameter\022>\n\006create\030\001 \001(\0132,.goo" + "gle.ads.googleads.v0.resources.AdGroupAd" + - "\"4\202\323\344\223\002.\022,/v0/{resource_name=customers/*" + - "/adGroupAds/*}\022\305\001\n\020MutateAdGroupAds\0229.go" + - "ogle.ads.googleads.v0.services.MutateAdG" + - "roupAdsRequest\032:.google.ads.googleads.v0" + - ".services.MutateAdGroupAdsResponse\":\202\323\344\223" + - "\0024\"//v0/customers/{customer_id=*}/adGrou" + - "pAds:mutate:\001*B\325\001\n$com.google.ads.google" + - "ads.v0.servicesB\025AdGroupAdServiceProtoP\001" + - "ZHgoogle.golang.org/genproto/googleapis/" + - "ads/googleads/v0/services;services\242\002\003GAA" + - "\252\002 Google.Ads.GoogleAds.V0.Services\312\002 Go" + - "ogle\\Ads\\GoogleAds\\V0\\Servicesb\006proto3" + "H\000\022>\n\006update\030\002 \001(\0132,.google.ads.googlead" + + "s.v0.resources.AdGroupAdH\000\022\020\n\006remove\030\003 \001" + + "(\tH\000B\013\n\toperation\"\227\001\n\030MutateAdGroupAdsRe" + + "sponse\0221\n\025partial_failure_error\030\003 \001(\0132\022." + + "google.rpc.Status\022H\n\007results\030\002 \003(\01327.goo" + + "gle.ads.googleads.v0.services.MutateAdGr" + + "oupAdResult\".\n\025MutateAdGroupAdResult\022\025\n\r" + + "resource_name\030\001 \001(\t2\206\003\n\020AdGroupAdService" + + "\022\251\001\n\014GetAdGroupAd\0225.google.ads.googleads" + + ".v0.services.GetAdGroupAdRequest\032,.googl" + + "e.ads.googleads.v0.resources.AdGroupAd\"4" + + "\202\323\344\223\002.\022,/v0/{resource_name=customers/*/a" + + "dGroupAds/*}\022\305\001\n\020MutateAdGroupAds\0229.goog" + + "le.ads.googleads.v0.services.MutateAdGro" + + "upAdsRequest\032:.google.ads.googleads.v0.s" + + "ervices.MutateAdGroupAdsResponse\":\202\323\344\223\0024" + + "\"//v0/customers/{customer_id=*}/adGroupA" + + "ds:mutate:\001*B\374\001\n$com.google.ads.googlead" + + "s.v0.servicesB\025AdGroupAdServiceProtoP\001ZH" + + "google.golang.org/genproto/googleapis/ad" + + "s/googleads/v0/services;services\242\002\003GAA\252\002" + + " Google.Ads.GoogleAds.V0.Services\312\002 Goog" + + "le\\Ads\\GoogleAds\\V0\\Services\352\002$Google::A" + + "ds::GoogleAds::V0::Servicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -102,6 +107,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.AdGroupAdProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), }, assigner); internal_static_google_ads_googleads_v0_services_GetAdGroupAdRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -114,7 +121,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateAdGroupAdsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateAdGroupAdsRequest_descriptor, - new java.lang.String[] { "CustomerId", "Operations", }); + new java.lang.String[] { "CustomerId", "Operations", "PartialFailure", "ValidateOnly", }); internal_static_google_ads_googleads_v0_services_AdGroupAdOperation_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_ads_googleads_v0_services_AdGroupAdOperation_fieldAccessorTable = new @@ -126,7 +133,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateAdGroupAdsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateAdGroupAdsResponse_descriptor, - new java.lang.String[] { "Results", }); + new java.lang.String[] { "PartialFailureError", "Results", }); internal_static_google_ads_googleads_v0_services_MutateAdGroupAdResult_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_google_ads_googleads_v0_services_MutateAdGroupAdResult_fieldAccessorTable = new @@ -142,6 +149,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.AdGroupAdProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupAdServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupAdServiceSettings.java index 9db0417130..f28bd9a875 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupAdServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupAdServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupAudienceViewServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupAudienceViewServiceClient.java index 4730ddacb6..950b645c95 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupAudienceViewServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupAudienceViewServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -226,7 +226,7 @@ public final AdGroupAudienceView getAdGroupAudienceView(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final AdGroupAudienceView getAdGroupAudienceView(GetAdGroupAudienceViewRequest request) { + public final AdGroupAudienceView getAdGroupAudienceView(GetAdGroupAudienceViewRequest request) { return getAdGroupAudienceViewCallable().call(request); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupAudienceViewServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupAudienceViewServiceProto.java index 207950765f..239a50c757 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupAudienceViewServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupAudienceViewServiceProto.java @@ -40,13 +40,14 @@ public static void registerAllExtensions( "udienceViewRequest\0326.google.ads.googlead" + "s.v0.resources.AdGroupAudienceView\">\202\323\344\223" + "\0028\0226/v0/{resource_name=customers/*/adGro" + - "upAudienceViews/*}B\337\001\n$com.google.ads.go" + + "upAudienceViews/*}B\206\002\n$com.google.ads.go" + "ogleads.v0.servicesB\037AdGroupAudienceView" + "ServiceProtoP\001ZHgoogle.golang.org/genpro" + "to/googleapis/ads/googleads/v0/services;" + "services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V0" + ".Services\312\002 Google\\Ads\\GoogleAds\\V0\\Serv" + - "icesb\006proto3" + "ices\352\002$Google::Ads::GoogleAds::V0::Servi" + + "cesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupAudienceViewServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupAudienceViewServiceSettings.java index 5fbcd20f52..efeefc2ae7 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupAudienceViewServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupAudienceViewServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupBidModifierServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupBidModifierServiceClient.java index b77eee5949..b56990777e 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupBidModifierServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupBidModifierServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -227,7 +227,7 @@ public final AdGroupBidModifier getAdGroupBidModifier(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final AdGroupBidModifier getAdGroupBidModifier(GetAdGroupBidModifierRequest request) { + public final AdGroupBidModifier getAdGroupBidModifier(GetAdGroupBidModifierRequest request) { return getAdGroupBidModifierCallable().call(request); } @@ -254,6 +254,47 @@ private final AdGroupBidModifier getAdGroupBidModifier(GetAdGroupBidModifierRequ return stub.getAdGroupBidModifierCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates, updates, or removes ad group bid modifiers. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (AdGroupBidModifierServiceClient adGroupBidModifierServiceClient = AdGroupBidModifierServiceClient.create()) {
+   *   String customerId = "";
+   *   List<AdGroupBidModifierOperation> operations = new ArrayList<>();
+   *   boolean partialFailure = false;
+   *   boolean validateOnly = false;
+   *   MutateAdGroupBidModifiersResponse response = adGroupBidModifierServiceClient.mutateAdGroupBidModifiers(customerId, operations, partialFailure, validateOnly);
+   * }
+   * 
+ * + * @param customerId ID of the customer whose ad group bid modifiers are being modified. + * @param operations The list of operations to perform on individual ad group bid modifiers. + * @param partialFailure If true, successful operations will be carried out and invalid operations + * will return errors. If false, all operations will be carried out in one transaction if and + * only if they are all valid. Default is false. + * @param validateOnly If true, the request is validated but not executed. Only errors are + * returned, not results. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateAdGroupBidModifiersResponse mutateAdGroupBidModifiers( + String customerId, + List operations, + boolean partialFailure, + boolean validateOnly) { + + MutateAdGroupBidModifiersRequest request = + MutateAdGroupBidModifiersRequest.newBuilder() + .setCustomerId(customerId) + .addAllOperations(operations) + .setPartialFailure(partialFailure) + .setValidateOnly(validateOnly) + .build(); + return mutateAdGroupBidModifiers(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Creates, updates, or removes ad group bid modifiers. Operation statuses are returned. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupBidModifierServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupBidModifierServiceProto.java index 3e6865ea3f..8f4d705332 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupBidModifierServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupBidModifierServiceProto.java @@ -53,41 +53,46 @@ public static void registerAllExtensions( "ds.googleads.v0.services\032=google/ads/goo" + "gleads/v0/resources/ad_group_bid_modifie" + "r.proto\032\034google/api/annotations.proto\032 g" + - "oogle/protobuf/field_mask.proto\"5\n\034GetAd" + - "GroupBidModifierRequest\022\025\n\rresource_name" + - "\030\001 \001(\t\"\212\001\n MutateAdGroupBidModifiersRequ" + - "est\022\023\n\013customer_id\030\001 \001(\t\022Q\n\noperations\030\002" + - " \003(\0132=.google.ads.googleads.v0.services." + - "AdGroupBidModifierOperation\"\377\001\n\033AdGroupB" + - "idModifierOperation\022/\n\013update_mask\030\004 \001(\013" + - "2\032.google.protobuf.FieldMask\022G\n\006create\030\001" + - " \001(\01325.google.ads.googleads.v0.resources" + - ".AdGroupBidModifierH\000\022G\n\006update\030\002 \001(\01325." + - "google.ads.googleads.v0.resources.AdGrou" + - "pBidModifierH\000\022\020\n\006remove\030\003 \001(\tH\000B\013\n\toper" + - "ation\"v\n!MutateAdGroupBidModifiersRespon" + - "se\022Q\n\007results\030\002 \003(\0132@.google.ads.googlea" + - "ds.v0.services.MutateAdGroupBidModifierR" + - "esult\"7\n\036MutateAdGroupBidModifierResult\022" + - "\025\n\rresource_name\030\001 \001(\t2\327\003\n\031AdGroupBidMod" + - "ifierService\022\315\001\n\025GetAdGroupBidModifier\022>" + - ".google.ads.googleads.v0.services.GetAdG" + - "roupBidModifierRequest\0325.google.ads.goog" + - "leads.v0.resources.AdGroupBidModifier\"=\202" + - "\323\344\223\0027\0225/v0/{resource_name=customers/*/ad" + - "GroupBidModifiers/*}\022\351\001\n\031MutateAdGroupBi" + - "dModifiers\022B.google.ads.googleads.v0.ser" + - "vices.MutateAdGroupBidModifiersRequest\032C" + - ".google.ads.googleads.v0.services.Mutate" + - "AdGroupBidModifiersResponse\"C\202\323\344\223\002=\"8/v0" + - "/customers/{customer_id=*}/adGroupBidMod" + - "ifiers:mutate:\001*B\336\001\n$com.google.ads.goog" + - "leads.v0.servicesB\036AdGroupBidModifierSer" + - "viceProtoP\001ZHgoogle.golang.org/genproto/" + - "googleapis/ads/googleads/v0/services;ser" + - "vices\242\002\003GAA\252\002 Google.Ads.GoogleAds.V0.Se" + - "rvices\312\002 Google\\Ads\\GoogleAds\\V0\\Service" + - "sb\006proto3" + "oogle/protobuf/field_mask.proto\032\036google/" + + "protobuf/wrappers.proto\032\027google/rpc/stat" + + "us.proto\"5\n\034GetAdGroupBidModifierRequest" + + "\022\025\n\rresource_name\030\001 \001(\t\"\272\001\n MutateAdGrou" + + "pBidModifiersRequest\022\023\n\013customer_id\030\001 \001(" + + "\t\022Q\n\noperations\030\002 \003(\0132=.google.ads.googl" + + "eads.v0.services.AdGroupBidModifierOpera" + + "tion\022\027\n\017partial_failure\030\003 \001(\010\022\025\n\rvalidat" + + "e_only\030\004 \001(\010\"\377\001\n\033AdGroupBidModifierOpera" + + "tion\022/\n\013update_mask\030\004 \001(\0132\032.google.proto" + + "buf.FieldMask\022G\n\006create\030\001 \001(\01325.google.a" + + "ds.googleads.v0.resources.AdGroupBidModi" + + "fierH\000\022G\n\006update\030\002 \001(\01325.google.ads.goog" + + "leads.v0.resources.AdGroupBidModifierH\000\022" + + "\020\n\006remove\030\003 \001(\tH\000B\013\n\toperation\"\251\001\n!Mutat" + + "eAdGroupBidModifiersResponse\0221\n\025partial_" + + "failure_error\030\003 \001(\0132\022.google.rpc.Status\022" + + "Q\n\007results\030\002 \003(\0132@.google.ads.googleads." + + "v0.services.MutateAdGroupBidModifierResu" + + "lt\"7\n\036MutateAdGroupBidModifierResult\022\025\n\r" + + "resource_name\030\001 \001(\t2\327\003\n\031AdGroupBidModifi" + + "erService\022\315\001\n\025GetAdGroupBidModifier\022>.go" + + "ogle.ads.googleads.v0.services.GetAdGrou" + + "pBidModifierRequest\0325.google.ads.googlea" + + "ds.v0.resources.AdGroupBidModifier\"=\202\323\344\223" + + "\0027\0225/v0/{resource_name=customers/*/adGro" + + "upBidModifiers/*}\022\351\001\n\031MutateAdGroupBidMo" + + "difiers\022B.google.ads.googleads.v0.servic" + + "es.MutateAdGroupBidModifiersRequest\032C.go" + + "ogle.ads.googleads.v0.services.MutateAdG" + + "roupBidModifiersResponse\"C\202\323\344\223\002=\"8/v0/cu" + + "stomers/{customer_id=*}/adGroupBidModifi" + + "ers:mutate:\001*B\205\002\n$com.google.ads.googlea" + + "ds.v0.servicesB\036AdGroupBidModifierServic" + + "eProtoP\001ZHgoogle.golang.org/genproto/goo" + + "gleapis/ads/googleads/v0/services;servic" + + "es\242\002\003GAA\252\002 Google.Ads.GoogleAds.V0.Servi" + + "ces\312\002 Google\\Ads\\GoogleAds\\V0\\Services\352\002" + + "$Google::Ads::GoogleAds::V0::Servicesb\006p" + + "roto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -103,6 +108,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.AdGroupBidModifierProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), }, assigner); internal_static_google_ads_googleads_v0_services_GetAdGroupBidModifierRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -115,7 +122,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateAdGroupBidModifiersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateAdGroupBidModifiersRequest_descriptor, - new java.lang.String[] { "CustomerId", "Operations", }); + new java.lang.String[] { "CustomerId", "Operations", "PartialFailure", "ValidateOnly", }); internal_static_google_ads_googleads_v0_services_AdGroupBidModifierOperation_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_ads_googleads_v0_services_AdGroupBidModifierOperation_fieldAccessorTable = new @@ -127,7 +134,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateAdGroupBidModifiersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateAdGroupBidModifiersResponse_descriptor, - new java.lang.String[] { "Results", }); + new java.lang.String[] { "PartialFailureError", "Results", }); internal_static_google_ads_googleads_v0_services_MutateAdGroupBidModifierResult_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_google_ads_googleads_v0_services_MutateAdGroupBidModifierResult_fieldAccessorTable = new @@ -142,6 +149,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.AdGroupBidModifierProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupBidModifierServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupBidModifierServiceSettings.java index 7f2d525feb..e03115eba7 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupBidModifierServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupBidModifierServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupCriterionServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupCriterionServiceClient.java index 8c3418cb1a..6f01a56253 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupCriterionServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupCriterionServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -221,7 +221,7 @@ public final AdGroupCriterion getAdGroupCriterion(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final AdGroupCriterion getAdGroupCriterion(GetAdGroupCriterionRequest request) { + public final AdGroupCriterion getAdGroupCriterion(GetAdGroupCriterionRequest request) { return getAdGroupCriterionCallable().call(request); } @@ -248,6 +248,47 @@ private final AdGroupCriterion getAdGroupCriterion(GetAdGroupCriterionRequest re return stub.getAdGroupCriterionCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates, updates, or removes criteria. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (AdGroupCriterionServiceClient adGroupCriterionServiceClient = AdGroupCriterionServiceClient.create()) {
+   *   String customerId = "";
+   *   List<AdGroupCriterionOperation> operations = new ArrayList<>();
+   *   boolean partialFailure = false;
+   *   boolean validateOnly = false;
+   *   MutateAdGroupCriteriaResponse response = adGroupCriterionServiceClient.mutateAdGroupCriteria(customerId, operations, partialFailure, validateOnly);
+   * }
+   * 
+ * + * @param customerId ID of the customer whose criteria are being modified. + * @param operations The list of operations to perform on individual criteria. + * @param partialFailure If true, successful operations will be carried out and invalid operations + * will return errors. If false, all operations will be carried out in one transaction if and + * only if they are all valid. Default is false. + * @param validateOnly If true, the request is validated but not executed. Only errors are + * returned, not results. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateAdGroupCriteriaResponse mutateAdGroupCriteria( + String customerId, + List operations, + boolean partialFailure, + boolean validateOnly) { + + MutateAdGroupCriteriaRequest request = + MutateAdGroupCriteriaRequest.newBuilder() + .setCustomerId(customerId) + .addAllOperations(operations) + .setPartialFailure(partialFailure) + .setValidateOnly(validateOnly) + .build(); + return mutateAdGroupCriteria(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Creates, updates, or removes criteria. Operation statuses are returned. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupCriterionServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupCriterionServiceProto.java index bbcb36b8ac..00bf23364e 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupCriterionServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupCriterionServiceProto.java @@ -53,39 +53,44 @@ public static void registerAllExtensions( "googleads.v0.services\032:google/ads/google" + "ads/v0/resources/ad_group_criterion.prot" + "o\032\034google/api/annotations.proto\032 google/" + - "protobuf/field_mask.proto\"3\n\032GetAdGroupC" + - "riterionRequest\022\025\n\rresource_name\030\001 \001(\t\"\204" + - "\001\n\034MutateAdGroupCriteriaRequest\022\023\n\013custo" + - "mer_id\030\001 \001(\t\022O\n\noperations\030\002 \003(\0132;.googl" + - "e.ads.googleads.v0.services.AdGroupCrite" + - "rionOperation\"\371\001\n\031AdGroupCriterionOperat" + - "ion\022/\n\013update_mask\030\004 \001(\0132\032.google.protob" + - "uf.FieldMask\022E\n\006create\030\001 \001(\01323.google.ad" + - "s.googleads.v0.resources.AdGroupCriterio" + - "nH\000\022E\n\006update\030\002 \001(\01323.google.ads.googlea" + - "ds.v0.resources.AdGroupCriterionH\000\022\020\n\006re" + - "move\030\003 \001(\tH\000B\013\n\toperation\"p\n\035MutateAdGro" + - "upCriteriaResponse\022O\n\007results\030\002 \003(\0132>.go" + - "ogle.ads.googleads.v0.services.MutateAdG" + - "roupCriterionResult\"5\n\034MutateAdGroupCrit" + - "erionResult\022\025\n\rresource_name\030\001 \001(\t2\273\003\n\027A" + - "dGroupCriterionService\022\303\001\n\023GetAdGroupCri" + - "terion\022<.google.ads.googleads.v0.service" + - "s.GetAdGroupCriterionRequest\0323.google.ad" + - "s.googleads.v0.resources.AdGroupCriterio" + - "n\"9\202\323\344\223\0023\0221/v0/{resource_name=customers/" + - "*/adGroupCriteria/*}\022\331\001\n\025MutateAdGroupCr" + - "iteria\022>.google.ads.googleads.v0.service" + - "s.MutateAdGroupCriteriaRequest\032?.google." + - "ads.googleads.v0.services.MutateAdGroupC" + - "riteriaResponse\"?\202\323\344\223\0029\"4/v0/customers/{" + - "customer_id=*}/adGroupCriteria:mutate:\001*" + - "B\334\001\n$com.google.ads.googleads.v0.service" + - "sB\034AdGroupCriterionServiceProtoP\001ZHgoogl" + - "e.golang.org/genproto/googleapis/ads/goo" + - "gleads/v0/services;services\242\002\003GAA\252\002 Goog" + - "le.Ads.GoogleAds.V0.Services\312\002 Google\\Ad" + - "s\\GoogleAds\\V0\\Servicesb\006proto3" + "protobuf/field_mask.proto\032\036google/protob" + + "uf/wrappers.proto\032\027google/rpc/status.pro" + + "to\"3\n\032GetAdGroupCriterionRequest\022\025\n\rreso" + + "urce_name\030\001 \001(\t\"\264\001\n\034MutateAdGroupCriteri" + + "aRequest\022\023\n\013customer_id\030\001 \001(\t\022O\n\noperati" + + "ons\030\002 \003(\0132;.google.ads.googleads.v0.serv" + + "ices.AdGroupCriterionOperation\022\027\n\017partia" + + "l_failure\030\003 \001(\010\022\025\n\rvalidate_only\030\004 \001(\010\"\371" + + "\001\n\031AdGroupCriterionOperation\022/\n\013update_m" + + "ask\030\004 \001(\0132\032.google.protobuf.FieldMask\022E\n" + + "\006create\030\001 \001(\01323.google.ads.googleads.v0." + + "resources.AdGroupCriterionH\000\022E\n\006update\030\002" + + " \001(\01323.google.ads.googleads.v0.resources" + + ".AdGroupCriterionH\000\022\020\n\006remove\030\003 \001(\tH\000B\013\n" + + "\toperation\"\243\001\n\035MutateAdGroupCriteriaResp" + + "onse\0221\n\025partial_failure_error\030\003 \001(\0132\022.go" + + "ogle.rpc.Status\022O\n\007results\030\002 \003(\0132>.googl" + + "e.ads.googleads.v0.services.MutateAdGrou" + + "pCriterionResult\"5\n\034MutateAdGroupCriteri" + + "onResult\022\025\n\rresource_name\030\001 \001(\t2\273\003\n\027AdGr" + + "oupCriterionService\022\303\001\n\023GetAdGroupCriter" + + "ion\022<.google.ads.googleads.v0.services.G" + + "etAdGroupCriterionRequest\0323.google.ads.g" + + "oogleads.v0.resources.AdGroupCriterion\"9" + + "\202\323\344\223\0023\0221/v0/{resource_name=customers/*/a" + + "dGroupCriteria/*}\022\331\001\n\025MutateAdGroupCrite" + + "ria\022>.google.ads.googleads.v0.services.M" + + "utateAdGroupCriteriaRequest\032?.google.ads" + + ".googleads.v0.services.MutateAdGroupCrit" + + "eriaResponse\"?\202\323\344\223\0029\"4/v0/customers/{cus" + + "tomer_id=*}/adGroupCriteria:mutate:\001*B\203\002" + + "\n$com.google.ads.googleads.v0.servicesB\034" + + "AdGroupCriterionServiceProtoP\001ZHgoogle.g" + + "olang.org/genproto/googleapis/ads/google" + + "ads/v0/services;services\242\002\003GAA\252\002 Google." + + "Ads.GoogleAds.V0.Services\312\002 Google\\Ads\\G" + + "oogleAds\\V0\\Services\352\002$Google::Ads::Goog" + + "leAds::V0::Servicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -101,6 +106,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.AdGroupCriterionProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), }, assigner); internal_static_google_ads_googleads_v0_services_GetAdGroupCriterionRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -113,7 +120,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateAdGroupCriteriaRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateAdGroupCriteriaRequest_descriptor, - new java.lang.String[] { "CustomerId", "Operations", }); + new java.lang.String[] { "CustomerId", "Operations", "PartialFailure", "ValidateOnly", }); internal_static_google_ads_googleads_v0_services_AdGroupCriterionOperation_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_ads_googleads_v0_services_AdGroupCriterionOperation_fieldAccessorTable = new @@ -125,7 +132,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateAdGroupCriteriaResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateAdGroupCriteriaResponse_descriptor, - new java.lang.String[] { "Results", }); + new java.lang.String[] { "PartialFailureError", "Results", }); internal_static_google_ads_googleads_v0_services_MutateAdGroupCriterionResult_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_google_ads_googleads_v0_services_MutateAdGroupCriterionResult_fieldAccessorTable = new @@ -140,6 +147,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.AdGroupCriterionProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupCriterionServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupCriterionServiceSettings.java index 383761e7a2..469179ceb7 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupCriterionServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupCriterionServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupFeedServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupFeedServiceClient.java index 1f01bc35f6..39993f9167 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupFeedServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupFeedServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -216,7 +216,7 @@ public final AdGroupFeed getAdGroupFeed(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final AdGroupFeed getAdGroupFeed(GetAdGroupFeedRequest request) { + public final AdGroupFeed getAdGroupFeed(GetAdGroupFeedRequest request) { return getAdGroupFeedCallable().call(request); } @@ -242,6 +242,47 @@ public final UnaryCallable getAdGroupFeedCal return stub.getAdGroupFeedCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates, updates, or removes ad group feeds. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (AdGroupFeedServiceClient adGroupFeedServiceClient = AdGroupFeedServiceClient.create()) {
+   *   String customerId = "";
+   *   List<AdGroupFeedOperation> operations = new ArrayList<>();
+   *   boolean partialFailure = false;
+   *   boolean validateOnly = false;
+   *   MutateAdGroupFeedsResponse response = adGroupFeedServiceClient.mutateAdGroupFeeds(customerId, operations, partialFailure, validateOnly);
+   * }
+   * 
+ * + * @param customerId The ID of the customer whose ad group feeds are being modified. + * @param operations The list of operations to perform on individual ad group feeds. + * @param partialFailure If true, successful operations will be carried out and invalid operations + * will return errors. If false, all operations will be carried out in one transaction if and + * only if they are all valid. Default is false. + * @param validateOnly If true, the request is validated but not executed. Only errors are + * returned, not results. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateAdGroupFeedsResponse mutateAdGroupFeeds( + String customerId, + List operations, + boolean partialFailure, + boolean validateOnly) { + + MutateAdGroupFeedsRequest request = + MutateAdGroupFeedsRequest.newBuilder() + .setCustomerId(customerId) + .addAllOperations(operations) + .setPartialFailure(partialFailure) + .setValidateOnly(validateOnly) + .build(); + return mutateAdGroupFeeds(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Creates, updates, or removes ad group feeds. Operation statuses are returned. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupFeedServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupFeedServiceProto.java index 1a6118f58d..d9dbd039d1 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupFeedServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupFeedServiceProto.java @@ -53,37 +53,42 @@ public static void registerAllExtensions( "eads.v0.services\0325google/ads/googleads/v" + "0/resources/ad_group_feed.proto\032\034google/" + "api/annotations.proto\032 google/protobuf/f" + - "ield_mask.proto\".\n\025GetAdGroupFeedRequest" + - "\022\025\n\rresource_name\030\001 \001(\t\"|\n\031MutateAdGroup" + - "FeedsRequest\022\023\n\013customer_id\030\001 \001(\t\022J\n\nope" + - "rations\030\002 \003(\01326.google.ads.googleads.v0." + - "services.AdGroupFeedOperation\"\352\001\n\024AdGrou" + - "pFeedOperation\022/\n\013update_mask\030\004 \001(\0132\032.go" + - "ogle.protobuf.FieldMask\022@\n\006create\030\001 \001(\0132" + + "ield_mask.proto\032\036google/protobuf/wrapper" + + "s.proto\032\027google/rpc/status.proto\".\n\025GetA" + + "dGroupFeedRequest\022\025\n\rresource_name\030\001 \001(\t" + + "\"\254\001\n\031MutateAdGroupFeedsRequest\022\023\n\013custom" + + "er_id\030\001 \001(\t\022J\n\noperations\030\002 \003(\01326.google" + + ".ads.googleads.v0.services.AdGroupFeedOp" + + "eration\022\027\n\017partial_failure\030\003 \001(\010\022\025\n\rvali" + + "date_only\030\004 \001(\010\"\352\001\n\024AdGroupFeedOperation" + + "\022/\n\013update_mask\030\004 \001(\0132\032.google.protobuf." + + "FieldMask\022@\n\006create\030\001 \001(\0132..google.ads.g" + + "oogleads.v0.resources.AdGroupFeedH\000\022@\n\006u" + + "pdate\030\002 \001(\0132..google.ads.googleads.v0.re" + + "sources.AdGroupFeedH\000\022\020\n\006remove\030\003 \001(\tH\000B" + + "\013\n\toperation\"\233\001\n\032MutateAdGroupFeedsRespo" + + "nse\0221\n\025partial_failure_error\030\003 \001(\0132\022.goo" + + "gle.rpc.Status\022J\n\007results\030\002 \003(\01329.google" + + ".ads.googleads.v0.services.MutateAdGroup" + + "FeedResult\"0\n\027MutateAdGroupFeedResult\022\025\n" + + "\rresource_name\030\001 \001(\t2\230\003\n\022AdGroupFeedServ" + + "ice\022\261\001\n\016GetAdGroupFeed\0227.google.ads.goog" + + "leads.v0.services.GetAdGroupFeedRequest\032" + "..google.ads.googleads.v0.resources.AdGr" + - "oupFeedH\000\022@\n\006update\030\002 \001(\0132..google.ads.g" + - "oogleads.v0.resources.AdGroupFeedH\000\022\020\n\006r" + - "emove\030\003 \001(\tH\000B\013\n\toperation\"h\n\032MutateAdGr" + - "oupFeedsResponse\022J\n\007results\030\002 \003(\01329.goog" + - "le.ads.googleads.v0.services.MutateAdGro" + - "upFeedResult\"0\n\027MutateAdGroupFeedResult\022" + - "\025\n\rresource_name\030\001 \001(\t2\230\003\n\022AdGroupFeedSe" + - "rvice\022\261\001\n\016GetAdGroupFeed\0227.google.ads.go" + - "ogleads.v0.services.GetAdGroupFeedReques" + - "t\032..google.ads.googleads.v0.resources.Ad" + - "GroupFeed\"6\202\323\344\223\0020\022./v0/{resource_name=cu" + - "stomers/*/adGroupFeeds/*}\022\315\001\n\022MutateAdGr" + - "oupFeeds\022;.google.ads.googleads.v0.servi" + - "ces.MutateAdGroupFeedsRequest\032<.google.a" + - "ds.googleads.v0.services.MutateAdGroupFe" + - "edsResponse\"<\202\323\344\223\0026\"1/v0/customers/{cust" + - "omer_id=*}/adGroupFeeds:mutate:\001*B\327\001\n$co" + - "m.google.ads.googleads.v0.servicesB\027AdGr" + - "oupFeedServiceProtoP\001ZHgoogle.golang.org" + - "/genproto/googleapis/ads/googleads/v0/se" + - "rvices;services\242\002\003GAA\252\002 Google.Ads.Googl" + - "eAds.V0.Services\312\002 Google\\Ads\\GoogleAds\\" + - "V0\\Servicesb\006proto3" + "oupFeed\"6\202\323\344\223\0020\022./v0/{resource_name=cust" + + "omers/*/adGroupFeeds/*}\022\315\001\n\022MutateAdGrou" + + "pFeeds\022;.google.ads.googleads.v0.service" + + "s.MutateAdGroupFeedsRequest\032<.google.ads" + + ".googleads.v0.services.MutateAdGroupFeed" + + "sResponse\"<\202\323\344\223\0026\"1/v0/customers/{custom" + + "er_id=*}/adGroupFeeds:mutate:\001*B\376\001\n$com." + + "google.ads.googleads.v0.servicesB\027AdGrou" + + "pFeedServiceProtoP\001ZHgoogle.golang.org/g" + + "enproto/googleapis/ads/googleads/v0/serv" + + "ices;services\242\002\003GAA\252\002 Google.Ads.GoogleA" + + "ds.V0.Services\312\002 Google\\Ads\\GoogleAds\\V0" + + "\\Services\352\002$Google::Ads::GoogleAds::V0::" + + "Servicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -99,6 +104,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.AdGroupFeedProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), }, assigner); internal_static_google_ads_googleads_v0_services_GetAdGroupFeedRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -111,7 +118,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateAdGroupFeedsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateAdGroupFeedsRequest_descriptor, - new java.lang.String[] { "CustomerId", "Operations", }); + new java.lang.String[] { "CustomerId", "Operations", "PartialFailure", "ValidateOnly", }); internal_static_google_ads_googleads_v0_services_AdGroupFeedOperation_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_ads_googleads_v0_services_AdGroupFeedOperation_fieldAccessorTable = new @@ -123,7 +130,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateAdGroupFeedsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateAdGroupFeedsResponse_descriptor, - new java.lang.String[] { "Results", }); + new java.lang.String[] { "PartialFailureError", "Results", }); internal_static_google_ads_googleads_v0_services_MutateAdGroupFeedResult_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_google_ads_googleads_v0_services_MutateAdGroupFeedResult_fieldAccessorTable = new @@ -138,6 +145,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.AdGroupFeedProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupFeedServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupFeedServiceSettings.java index bc006e5693..af7def6887 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupFeedServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupFeedServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupServiceClient.java index a61a975ac1..c9a99895c4 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -213,7 +213,7 @@ public final AdGroup getAdGroup(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final AdGroup getAdGroup(GetAdGroupRequest request) { + public final AdGroup getAdGroup(GetAdGroupRequest request) { return getAdGroupCallable().call(request); } @@ -239,6 +239,47 @@ public final UnaryCallable getAdGroupCallable() { return stub.getAdGroupCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates, updates, or removes ad groups. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (AdGroupServiceClient adGroupServiceClient = AdGroupServiceClient.create()) {
+   *   String customerId = "";
+   *   List<AdGroupOperation> operations = new ArrayList<>();
+   *   boolean partialFailure = false;
+   *   boolean validateOnly = false;
+   *   MutateAdGroupsResponse response = adGroupServiceClient.mutateAdGroups(customerId, operations, partialFailure, validateOnly);
+   * }
+   * 
+ * + * @param customerId The ID of the customer whose ad groups are being modified. + * @param operations The list of operations to perform on individual ad groups. + * @param partialFailure If true, successful operations will be carried out and invalid operations + * will return errors. If false, all operations will be carried out in one transaction if and + * only if they are all valid. Default is false. + * @param validateOnly If true, the request is validated but not executed. Only errors are + * returned, not results. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateAdGroupsResponse mutateAdGroups( + String customerId, + List operations, + boolean partialFailure, + boolean validateOnly) { + + MutateAdGroupsRequest request = + MutateAdGroupsRequest.newBuilder() + .setCustomerId(customerId) + .addAllOperations(operations) + .setPartialFailure(partialFailure) + .setValidateOnly(validateOnly) + .build(); + return mutateAdGroups(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Creates, updates, or removes ad groups. Operation statuses are returned. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupServiceProto.java index afa9767fcd..213eb27f16 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupServiceProto.java @@ -53,35 +53,40 @@ public static void registerAllExtensions( "v0.services\0320google/ads/googleads/v0/res" + "ources/ad_group.proto\032\034google/api/annota" + "tions.proto\032 google/protobuf/field_mask." + - "proto\"*\n\021GetAdGroupRequest\022\025\n\rresource_n" + - "ame\030\001 \001(\t\"t\n\025MutateAdGroupsRequest\022\023\n\013cu" + - "stomer_id\030\001 \001(\t\022F\n\noperations\030\002 \003(\01322.go" + - "ogle.ads.googleads.v0.services.AdGroupOp" + - "eration\"\336\001\n\020AdGroupOperation\022/\n\013update_m" + - "ask\030\004 \001(\0132\032.google.protobuf.FieldMask\022<\n" + - "\006create\030\001 \001(\0132*.google.ads.googleads.v0." + - "resources.AdGroupH\000\022<\n\006update\030\002 \001(\0132*.go" + - "ogle.ads.googleads.v0.resources.AdGroupH" + - "\000\022\020\n\006remove\030\003 \001(\tH\000B\013\n\toperation\"`\n\026Muta" + - "teAdGroupsResponse\022F\n\007results\030\002 \003(\01325.go" + - "ogle.ads.googleads.v0.services.MutateAdG" + - "roupResult\",\n\023MutateAdGroupResult\022\025\n\rres" + - "ource_name\030\001 \001(\t2\364\002\n\016AdGroupService\022\241\001\n\n" + - "GetAdGroup\0223.google.ads.googleads.v0.ser" + - "vices.GetAdGroupRequest\032*.google.ads.goo" + - "gleads.v0.resources.AdGroup\"2\202\323\344\223\002,\022*/v0" + - "/{resource_name=customers/*/adGroups/*}\022" + - "\275\001\n\016MutateAdGroups\0227.google.ads.googlead" + - "s.v0.services.MutateAdGroupsRequest\0328.go" + - "ogle.ads.googleads.v0.services.MutateAdG" + - "roupsResponse\"8\202\323\344\223\0022\"-/v0/customers/{cu" + - "stomer_id=*}/adGroups:mutate:\001*B\323\001\n$com." + - "google.ads.googleads.v0.servicesB\023AdGrou" + - "pServiceProtoP\001ZHgoogle.golang.org/genpr" + - "oto/googleapis/ads/googleads/v0/services" + - ";services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V" + - "0.Services\312\002 Google\\Ads\\GoogleAds\\V0\\Ser" + - "vicesb\006proto3" + "proto\032\036google/protobuf/wrappers.proto\032\027g" + + "oogle/rpc/status.proto\"*\n\021GetAdGroupRequ" + + "est\022\025\n\rresource_name\030\001 \001(\t\"\244\001\n\025MutateAdG" + + "roupsRequest\022\023\n\013customer_id\030\001 \001(\t\022F\n\nope" + + "rations\030\002 \003(\01322.google.ads.googleads.v0." + + "services.AdGroupOperation\022\027\n\017partial_fai" + + "lure\030\003 \001(\010\022\025\n\rvalidate_only\030\004 \001(\010\"\336\001\n\020Ad" + + "GroupOperation\022/\n\013update_mask\030\004 \001(\0132\032.go" + + "ogle.protobuf.FieldMask\022<\n\006create\030\001 \001(\0132" + + "*.google.ads.googleads.v0.resources.AdGr" + + "oupH\000\022<\n\006update\030\002 \001(\0132*.google.ads.googl" + + "eads.v0.resources.AdGroupH\000\022\020\n\006remove\030\003 " + + "\001(\tH\000B\013\n\toperation\"\223\001\n\026MutateAdGroupsRes" + + "ponse\0221\n\025partial_failure_error\030\003 \001(\0132\022.g" + + "oogle.rpc.Status\022F\n\007results\030\002 \003(\01325.goog" + + "le.ads.googleads.v0.services.MutateAdGro" + + "upResult\",\n\023MutateAdGroupResult\022\025\n\rresou" + + "rce_name\030\001 \001(\t2\364\002\n\016AdGroupService\022\241\001\n\nGe" + + "tAdGroup\0223.google.ads.googleads.v0.servi" + + "ces.GetAdGroupRequest\032*.google.ads.googl" + + "eads.v0.resources.AdGroup\"2\202\323\344\223\002,\022*/v0/{" + + "resource_name=customers/*/adGroups/*}\022\275\001" + + "\n\016MutateAdGroups\0227.google.ads.googleads." + + "v0.services.MutateAdGroupsRequest\0328.goog" + + "le.ads.googleads.v0.services.MutateAdGro" + + "upsResponse\"8\202\323\344\223\0022\"-/v0/customers/{cust" + + "omer_id=*}/adGroups:mutate:\001*B\372\001\n$com.go" + + "ogle.ads.googleads.v0.servicesB\023AdGroupS" + + "erviceProtoP\001ZHgoogle.golang.org/genprot" + + "o/googleapis/ads/googleads/v0/services;s" + + "ervices\242\002\003GAA\252\002 Google.Ads.GoogleAds.V0." + + "Services\312\002 Google\\Ads\\GoogleAds\\V0\\Servi" + + "ces\352\002$Google::Ads::GoogleAds::V0::Servic" + + "esb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -97,6 +102,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.AdGroupProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), }, assigner); internal_static_google_ads_googleads_v0_services_GetAdGroupRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -109,7 +116,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateAdGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateAdGroupsRequest_descriptor, - new java.lang.String[] { "CustomerId", "Operations", }); + new java.lang.String[] { "CustomerId", "Operations", "PartialFailure", "ValidateOnly", }); internal_static_google_ads_googleads_v0_services_AdGroupOperation_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_ads_googleads_v0_services_AdGroupOperation_fieldAccessorTable = new @@ -121,7 +128,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateAdGroupsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateAdGroupsResponse_descriptor, - new java.lang.String[] { "Results", }); + new java.lang.String[] { "PartialFailureError", "Results", }); internal_static_google_ads_googleads_v0_services_MutateAdGroupResult_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_google_ads_googleads_v0_services_MutateAdGroupResult_fieldAccessorTable = new @@ -136,6 +143,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.AdGroupProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupServiceSettings.java index 45debff729..af353bdf5f 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdGroupServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignGroupOperation.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdParameterOperation.java similarity index 69% rename from google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignGroupOperation.java rename to google-ads/src/main/java/com/google/ads/googleads/v0/services/AdParameterOperation.java index 904c0c0ce5..756fa1e992 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignGroupOperation.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdParameterOperation.java @@ -1,25 +1,25 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v0/services/campaign_group_service.proto +// source: google/ads/googleads/v0/services/ad_parameter_service.proto package com.google.ads.googleads.v0.services; /** *
- * A single operation (create, update, remove) on a campaign group.
+ * A single operation (create, update, remove) on ad parameter.
  * 
* - * Protobuf type {@code google.ads.googleads.v0.services.CampaignGroupOperation} + * Protobuf type {@code google.ads.googleads.v0.services.AdParameterOperation} */ -public final class CampaignGroupOperation extends +public final class AdParameterOperation extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.services.CampaignGroupOperation) - CampaignGroupOperationOrBuilder { + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.services.AdParameterOperation) + AdParameterOperationOrBuilder { private static final long serialVersionUID = 0L; - // Use CampaignGroupOperation.newBuilder() to construct. - private CampaignGroupOperation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use AdParameterOperation.newBuilder() to construct. + private AdParameterOperation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CampaignGroupOperation() { + private AdParameterOperation() { } @java.lang.Override @@ -27,7 +27,7 @@ private CampaignGroupOperation() { getUnknownFields() { return this.unknownFields; } - private CampaignGroupOperation( + private AdParameterOperation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -47,28 +47,28 @@ private CampaignGroupOperation( done = true; break; case 10: { - com.google.ads.googleads.v0.resources.CampaignGroup.Builder subBuilder = null; + com.google.ads.googleads.v0.resources.AdParameter.Builder subBuilder = null; if (operationCase_ == 1) { - subBuilder = ((com.google.ads.googleads.v0.resources.CampaignGroup) operation_).toBuilder(); + subBuilder = ((com.google.ads.googleads.v0.resources.AdParameter) operation_).toBuilder(); } operation_ = - input.readMessage(com.google.ads.googleads.v0.resources.CampaignGroup.parser(), extensionRegistry); + input.readMessage(com.google.ads.googleads.v0.resources.AdParameter.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom((com.google.ads.googleads.v0.resources.CampaignGroup) operation_); + subBuilder.mergeFrom((com.google.ads.googleads.v0.resources.AdParameter) operation_); operation_ = subBuilder.buildPartial(); } operationCase_ = 1; break; } case 18: { - com.google.ads.googleads.v0.resources.CampaignGroup.Builder subBuilder = null; + com.google.ads.googleads.v0.resources.AdParameter.Builder subBuilder = null; if (operationCase_ == 2) { - subBuilder = ((com.google.ads.googleads.v0.resources.CampaignGroup) operation_).toBuilder(); + subBuilder = ((com.google.ads.googleads.v0.resources.AdParameter) operation_).toBuilder(); } operation_ = - input.readMessage(com.google.ads.googleads.v0.resources.CampaignGroup.parser(), extensionRegistry); + input.readMessage(com.google.ads.googleads.v0.resources.AdParameter.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom((com.google.ads.googleads.v0.resources.CampaignGroup) operation_); + subBuilder.mergeFrom((com.google.ads.googleads.v0.resources.AdParameter) operation_); operation_ = subBuilder.buildPartial(); } operationCase_ = 2; @@ -114,15 +114,15 @@ private CampaignGroupOperation( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.googleads.v0.services.CampaignGroupServiceProto.internal_static_google_ads_googleads_v0_services_CampaignGroupOperation_descriptor; + return com.google.ads.googleads.v0.services.AdParameterServiceProto.internal_static_google_ads_googleads_v0_services_AdParameterOperation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.googleads.v0.services.CampaignGroupServiceProto.internal_static_google_ads_googleads_v0_services_CampaignGroupOperation_fieldAccessorTable + return com.google.ads.googleads.v0.services.AdParameterServiceProto.internal_static_google_ads_googleads_v0_services_AdParameterOperation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.ads.googleads.v0.services.CampaignGroupOperation.class, com.google.ads.googleads.v0.services.CampaignGroupOperation.Builder.class); + com.google.ads.googleads.v0.services.AdParameterOperation.class, com.google.ads.googleads.v0.services.AdParameterOperation.Builder.class); } private int operationCase_ = 0; @@ -201,91 +201,88 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int CREATE_FIELD_NUMBER = 1; /** *
-   * Create operation: No resource name is expected for the new campaign
-   * group.
+   * Create operation: No resource name is expected for the new ad parameter.
    * 
* - * .google.ads.googleads.v0.resources.CampaignGroup create = 1; + * .google.ads.googleads.v0.resources.AdParameter create = 1; */ public boolean hasCreate() { return operationCase_ == 1; } /** *
-   * Create operation: No resource name is expected for the new campaign
-   * group.
+   * Create operation: No resource name is expected for the new ad parameter.
    * 
* - * .google.ads.googleads.v0.resources.CampaignGroup create = 1; + * .google.ads.googleads.v0.resources.AdParameter create = 1; */ - public com.google.ads.googleads.v0.resources.CampaignGroup getCreate() { + public com.google.ads.googleads.v0.resources.AdParameter getCreate() { if (operationCase_ == 1) { - return (com.google.ads.googleads.v0.resources.CampaignGroup) operation_; + return (com.google.ads.googleads.v0.resources.AdParameter) operation_; } - return com.google.ads.googleads.v0.resources.CampaignGroup.getDefaultInstance(); + return com.google.ads.googleads.v0.resources.AdParameter.getDefaultInstance(); } /** *
-   * Create operation: No resource name is expected for the new campaign
-   * group.
+   * Create operation: No resource name is expected for the new ad parameter.
    * 
* - * .google.ads.googleads.v0.resources.CampaignGroup create = 1; + * .google.ads.googleads.v0.resources.AdParameter create = 1; */ - public com.google.ads.googleads.v0.resources.CampaignGroupOrBuilder getCreateOrBuilder() { + public com.google.ads.googleads.v0.resources.AdParameterOrBuilder getCreateOrBuilder() { if (operationCase_ == 1) { - return (com.google.ads.googleads.v0.resources.CampaignGroup) operation_; + return (com.google.ads.googleads.v0.resources.AdParameter) operation_; } - return com.google.ads.googleads.v0.resources.CampaignGroup.getDefaultInstance(); + return com.google.ads.googleads.v0.resources.AdParameter.getDefaultInstance(); } public static final int UPDATE_FIELD_NUMBER = 2; /** *
-   * Update operation: The campaign group is expected to have a valid
-   * resource name.
+   * Update operation: The ad parameter is expected to have a valid resource
+   * name.
    * 
* - * .google.ads.googleads.v0.resources.CampaignGroup update = 2; + * .google.ads.googleads.v0.resources.AdParameter update = 2; */ public boolean hasUpdate() { return operationCase_ == 2; } /** *
-   * Update operation: The campaign group is expected to have a valid
-   * resource name.
+   * Update operation: The ad parameter is expected to have a valid resource
+   * name.
    * 
* - * .google.ads.googleads.v0.resources.CampaignGroup update = 2; + * .google.ads.googleads.v0.resources.AdParameter update = 2; */ - public com.google.ads.googleads.v0.resources.CampaignGroup getUpdate() { + public com.google.ads.googleads.v0.resources.AdParameter getUpdate() { if (operationCase_ == 2) { - return (com.google.ads.googleads.v0.resources.CampaignGroup) operation_; + return (com.google.ads.googleads.v0.resources.AdParameter) operation_; } - return com.google.ads.googleads.v0.resources.CampaignGroup.getDefaultInstance(); + return com.google.ads.googleads.v0.resources.AdParameter.getDefaultInstance(); } /** *
-   * Update operation: The campaign group is expected to have a valid
-   * resource name.
+   * Update operation: The ad parameter is expected to have a valid resource
+   * name.
    * 
* - * .google.ads.googleads.v0.resources.CampaignGroup update = 2; + * .google.ads.googleads.v0.resources.AdParameter update = 2; */ - public com.google.ads.googleads.v0.resources.CampaignGroupOrBuilder getUpdateOrBuilder() { + public com.google.ads.googleads.v0.resources.AdParameterOrBuilder getUpdateOrBuilder() { if (operationCase_ == 2) { - return (com.google.ads.googleads.v0.resources.CampaignGroup) operation_; + return (com.google.ads.googleads.v0.resources.AdParameter) operation_; } - return com.google.ads.googleads.v0.resources.CampaignGroup.getDefaultInstance(); + return com.google.ads.googleads.v0.resources.AdParameter.getDefaultInstance(); } public static final int REMOVE_FIELD_NUMBER = 3; /** *
-   * Remove operation: A resource name for the removed campaign group is
-   * expected, in this format:
-   * `customers/{customer_id}/campaignGroups/{campaign_group_id}`
+   * Remove operation: A resource name for the ad parameter to remove is
+   * expected in this format:
+   * `customers/{customer_id}/adParameters/{ad_group_id}_{criterion_id}_{parameter_index}`
    * 
* * string remove = 3; @@ -309,9 +306,9 @@ public java.lang.String getRemove() { } /** *
-   * Remove operation: A resource name for the removed campaign group is
-   * expected, in this format:
-   * `customers/{customer_id}/campaignGroups/{campaign_group_id}`
+   * Remove operation: A resource name for the ad parameter to remove is
+   * expected in this format:
+   * `customers/{customer_id}/adParameters/{ad_group_id}_{criterion_id}_{parameter_index}`
    * 
* * string remove = 3; @@ -350,10 +347,10 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (operationCase_ == 1) { - output.writeMessage(1, (com.google.ads.googleads.v0.resources.CampaignGroup) operation_); + output.writeMessage(1, (com.google.ads.googleads.v0.resources.AdParameter) operation_); } if (operationCase_ == 2) { - output.writeMessage(2, (com.google.ads.googleads.v0.resources.CampaignGroup) operation_); + output.writeMessage(2, (com.google.ads.googleads.v0.resources.AdParameter) operation_); } if (operationCase_ == 3) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, operation_); @@ -372,11 +369,11 @@ public int getSerializedSize() { size = 0; if (operationCase_ == 1) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.ads.googleads.v0.resources.CampaignGroup) operation_); + .computeMessageSize(1, (com.google.ads.googleads.v0.resources.AdParameter) operation_); } if (operationCase_ == 2) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.ads.googleads.v0.resources.CampaignGroup) operation_); + .computeMessageSize(2, (com.google.ads.googleads.v0.resources.AdParameter) operation_); } if (operationCase_ == 3) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, operation_); @@ -395,10 +392,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.ads.googleads.v0.services.CampaignGroupOperation)) { + if (!(obj instanceof com.google.ads.googleads.v0.services.AdParameterOperation)) { return super.equals(obj); } - com.google.ads.googleads.v0.services.CampaignGroupOperation other = (com.google.ads.googleads.v0.services.CampaignGroupOperation) obj; + com.google.ads.googleads.v0.services.AdParameterOperation other = (com.google.ads.googleads.v0.services.AdParameterOperation) obj; boolean result = true; result = result && (hasUpdateMask() == other.hasUpdateMask()); @@ -461,69 +458,69 @@ public int hashCode() { return hash; } - public static com.google.ads.googleads.v0.services.CampaignGroupOperation parseFrom( + public static com.google.ads.googleads.v0.services.AdParameterOperation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.googleads.v0.services.CampaignGroupOperation parseFrom( + public static com.google.ads.googleads.v0.services.AdParameterOperation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.googleads.v0.services.CampaignGroupOperation parseFrom( + public static com.google.ads.googleads.v0.services.AdParameterOperation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.googleads.v0.services.CampaignGroupOperation parseFrom( + public static com.google.ads.googleads.v0.services.AdParameterOperation 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.ads.googleads.v0.services.CampaignGroupOperation parseFrom(byte[] data) + public static com.google.ads.googleads.v0.services.AdParameterOperation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.googleads.v0.services.CampaignGroupOperation parseFrom( + public static com.google.ads.googleads.v0.services.AdParameterOperation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.googleads.v0.services.CampaignGroupOperation parseFrom(java.io.InputStream input) + public static com.google.ads.googleads.v0.services.AdParameterOperation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.google.ads.googleads.v0.services.CampaignGroupOperation parseFrom( + public static com.google.ads.googleads.v0.services.AdParameterOperation 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.ads.googleads.v0.services.CampaignGroupOperation parseDelimitedFrom(java.io.InputStream input) + public static com.google.ads.googleads.v0.services.AdParameterOperation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.google.ads.googleads.v0.services.CampaignGroupOperation parseDelimitedFrom( + public static com.google.ads.googleads.v0.services.AdParameterOperation 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.ads.googleads.v0.services.CampaignGroupOperation parseFrom( + public static com.google.ads.googleads.v0.services.AdParameterOperation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.google.ads.googleads.v0.services.CampaignGroupOperation parseFrom( + public static com.google.ads.googleads.v0.services.AdParameterOperation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -536,7 +533,7 @@ public static com.google.ads.googleads.v0.services.CampaignGroupOperation parseF public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.ads.googleads.v0.services.CampaignGroupOperation prototype) { + public static Builder newBuilder(com.google.ads.googleads.v0.services.AdParameterOperation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -553,29 +550,29 @@ protected Builder newBuilderForType( } /** *
-   * A single operation (create, update, remove) on a campaign group.
+   * A single operation (create, update, remove) on ad parameter.
    * 
* - * Protobuf type {@code google.ads.googleads.v0.services.CampaignGroupOperation} + * Protobuf type {@code google.ads.googleads.v0.services.AdParameterOperation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.services.CampaignGroupOperation) - com.google.ads.googleads.v0.services.CampaignGroupOperationOrBuilder { + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.services.AdParameterOperation) + com.google.ads.googleads.v0.services.AdParameterOperationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.googleads.v0.services.CampaignGroupServiceProto.internal_static_google_ads_googleads_v0_services_CampaignGroupOperation_descriptor; + return com.google.ads.googleads.v0.services.AdParameterServiceProto.internal_static_google_ads_googleads_v0_services_AdParameterOperation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.googleads.v0.services.CampaignGroupServiceProto.internal_static_google_ads_googleads_v0_services_CampaignGroupOperation_fieldAccessorTable + return com.google.ads.googleads.v0.services.AdParameterServiceProto.internal_static_google_ads_googleads_v0_services_AdParameterOperation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.ads.googleads.v0.services.CampaignGroupOperation.class, com.google.ads.googleads.v0.services.CampaignGroupOperation.Builder.class); + com.google.ads.googleads.v0.services.AdParameterOperation.class, com.google.ads.googleads.v0.services.AdParameterOperation.Builder.class); } - // Construct using com.google.ads.googleads.v0.services.CampaignGroupOperation.newBuilder() + // Construct using com.google.ads.googleads.v0.services.AdParameterOperation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -607,17 +604,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.googleads.v0.services.CampaignGroupServiceProto.internal_static_google_ads_googleads_v0_services_CampaignGroupOperation_descriptor; + return com.google.ads.googleads.v0.services.AdParameterServiceProto.internal_static_google_ads_googleads_v0_services_AdParameterOperation_descriptor; } @java.lang.Override - public com.google.ads.googleads.v0.services.CampaignGroupOperation getDefaultInstanceForType() { - return com.google.ads.googleads.v0.services.CampaignGroupOperation.getDefaultInstance(); + public com.google.ads.googleads.v0.services.AdParameterOperation getDefaultInstanceForType() { + return com.google.ads.googleads.v0.services.AdParameterOperation.getDefaultInstance(); } @java.lang.Override - public com.google.ads.googleads.v0.services.CampaignGroupOperation build() { - com.google.ads.googleads.v0.services.CampaignGroupOperation result = buildPartial(); + public com.google.ads.googleads.v0.services.AdParameterOperation build() { + com.google.ads.googleads.v0.services.AdParameterOperation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -625,8 +622,8 @@ public com.google.ads.googleads.v0.services.CampaignGroupOperation build() { } @java.lang.Override - public com.google.ads.googleads.v0.services.CampaignGroupOperation buildPartial() { - com.google.ads.googleads.v0.services.CampaignGroupOperation result = new com.google.ads.googleads.v0.services.CampaignGroupOperation(this); + public com.google.ads.googleads.v0.services.AdParameterOperation buildPartial() { + com.google.ads.googleads.v0.services.AdParameterOperation result = new com.google.ads.googleads.v0.services.AdParameterOperation(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -688,16 +685,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.ads.googleads.v0.services.CampaignGroupOperation) { - return mergeFrom((com.google.ads.googleads.v0.services.CampaignGroupOperation)other); + if (other instanceof com.google.ads.googleads.v0.services.AdParameterOperation) { + return mergeFrom((com.google.ads.googleads.v0.services.AdParameterOperation)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.ads.googleads.v0.services.CampaignGroupOperation other) { - if (other == com.google.ads.googleads.v0.services.CampaignGroupOperation.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.ads.googleads.v0.services.AdParameterOperation other) { + if (other == com.google.ads.googleads.v0.services.AdParameterOperation.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -735,11 +732,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.ads.googleads.v0.services.CampaignGroupOperation parsedMessage = null; + com.google.ads.googleads.v0.services.AdParameterOperation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.ads.googleads.v0.services.CampaignGroupOperation) e.getUnfinishedMessage(); + parsedMessage = (com.google.ads.googleads.v0.services.AdParameterOperation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -918,48 +915,45 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CampaignGroup, com.google.ads.googleads.v0.resources.CampaignGroup.Builder, com.google.ads.googleads.v0.resources.CampaignGroupOrBuilder> createBuilder_; + com.google.ads.googleads.v0.resources.AdParameter, com.google.ads.googleads.v0.resources.AdParameter.Builder, com.google.ads.googleads.v0.resources.AdParameterOrBuilder> createBuilder_; /** *
-     * Create operation: No resource name is expected for the new campaign
-     * group.
+     * Create operation: No resource name is expected for the new ad parameter.
      * 
* - * .google.ads.googleads.v0.resources.CampaignGroup create = 1; + * .google.ads.googleads.v0.resources.AdParameter create = 1; */ public boolean hasCreate() { return operationCase_ == 1; } /** *
-     * Create operation: No resource name is expected for the new campaign
-     * group.
+     * Create operation: No resource name is expected for the new ad parameter.
      * 
* - * .google.ads.googleads.v0.resources.CampaignGroup create = 1; + * .google.ads.googleads.v0.resources.AdParameter create = 1; */ - public com.google.ads.googleads.v0.resources.CampaignGroup getCreate() { + public com.google.ads.googleads.v0.resources.AdParameter getCreate() { if (createBuilder_ == null) { if (operationCase_ == 1) { - return (com.google.ads.googleads.v0.resources.CampaignGroup) operation_; + return (com.google.ads.googleads.v0.resources.AdParameter) operation_; } - return com.google.ads.googleads.v0.resources.CampaignGroup.getDefaultInstance(); + return com.google.ads.googleads.v0.resources.AdParameter.getDefaultInstance(); } else { if (operationCase_ == 1) { return createBuilder_.getMessage(); } - return com.google.ads.googleads.v0.resources.CampaignGroup.getDefaultInstance(); + return com.google.ads.googleads.v0.resources.AdParameter.getDefaultInstance(); } } /** *
-     * Create operation: No resource name is expected for the new campaign
-     * group.
+     * Create operation: No resource name is expected for the new ad parameter.
      * 
* - * .google.ads.googleads.v0.resources.CampaignGroup create = 1; + * .google.ads.googleads.v0.resources.AdParameter create = 1; */ - public Builder setCreate(com.google.ads.googleads.v0.resources.CampaignGroup value) { + public Builder setCreate(com.google.ads.googleads.v0.resources.AdParameter value) { if (createBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -974,14 +968,13 @@ public Builder setCreate(com.google.ads.googleads.v0.resources.CampaignGroup val } /** *
-     * Create operation: No resource name is expected for the new campaign
-     * group.
+     * Create operation: No resource name is expected for the new ad parameter.
      * 
* - * .google.ads.googleads.v0.resources.CampaignGroup create = 1; + * .google.ads.googleads.v0.resources.AdParameter create = 1; */ public Builder setCreate( - com.google.ads.googleads.v0.resources.CampaignGroup.Builder builderForValue) { + com.google.ads.googleads.v0.resources.AdParameter.Builder builderForValue) { if (createBuilder_ == null) { operation_ = builderForValue.build(); onChanged(); @@ -993,17 +986,16 @@ public Builder setCreate( } /** *
-     * Create operation: No resource name is expected for the new campaign
-     * group.
+     * Create operation: No resource name is expected for the new ad parameter.
      * 
* - * .google.ads.googleads.v0.resources.CampaignGroup create = 1; + * .google.ads.googleads.v0.resources.AdParameter create = 1; */ - public Builder mergeCreate(com.google.ads.googleads.v0.resources.CampaignGroup value) { + public Builder mergeCreate(com.google.ads.googleads.v0.resources.AdParameter value) { if (createBuilder_ == null) { if (operationCase_ == 1 && - operation_ != com.google.ads.googleads.v0.resources.CampaignGroup.getDefaultInstance()) { - operation_ = com.google.ads.googleads.v0.resources.CampaignGroup.newBuilder((com.google.ads.googleads.v0.resources.CampaignGroup) operation_) + operation_ != com.google.ads.googleads.v0.resources.AdParameter.getDefaultInstance()) { + operation_ = com.google.ads.googleads.v0.resources.AdParameter.newBuilder((com.google.ads.googleads.v0.resources.AdParameter) operation_) .mergeFrom(value).buildPartial(); } else { operation_ = value; @@ -1020,11 +1012,10 @@ public Builder mergeCreate(com.google.ads.googleads.v0.resources.CampaignGroup v } /** *
-     * Create operation: No resource name is expected for the new campaign
-     * group.
+     * Create operation: No resource name is expected for the new ad parameter.
      * 
* - * .google.ads.googleads.v0.resources.CampaignGroup create = 1; + * .google.ads.googleads.v0.resources.AdParameter create = 1; */ public Builder clearCreate() { if (createBuilder_ == null) { @@ -1044,51 +1035,48 @@ public Builder clearCreate() { } /** *
-     * Create operation: No resource name is expected for the new campaign
-     * group.
+     * Create operation: No resource name is expected for the new ad parameter.
      * 
* - * .google.ads.googleads.v0.resources.CampaignGroup create = 1; + * .google.ads.googleads.v0.resources.AdParameter create = 1; */ - public com.google.ads.googleads.v0.resources.CampaignGroup.Builder getCreateBuilder() { + public com.google.ads.googleads.v0.resources.AdParameter.Builder getCreateBuilder() { return getCreateFieldBuilder().getBuilder(); } /** *
-     * Create operation: No resource name is expected for the new campaign
-     * group.
+     * Create operation: No resource name is expected for the new ad parameter.
      * 
* - * .google.ads.googleads.v0.resources.CampaignGroup create = 1; + * .google.ads.googleads.v0.resources.AdParameter create = 1; */ - public com.google.ads.googleads.v0.resources.CampaignGroupOrBuilder getCreateOrBuilder() { + public com.google.ads.googleads.v0.resources.AdParameterOrBuilder getCreateOrBuilder() { if ((operationCase_ == 1) && (createBuilder_ != null)) { return createBuilder_.getMessageOrBuilder(); } else { if (operationCase_ == 1) { - return (com.google.ads.googleads.v0.resources.CampaignGroup) operation_; + return (com.google.ads.googleads.v0.resources.AdParameter) operation_; } - return com.google.ads.googleads.v0.resources.CampaignGroup.getDefaultInstance(); + return com.google.ads.googleads.v0.resources.AdParameter.getDefaultInstance(); } } /** *
-     * Create operation: No resource name is expected for the new campaign
-     * group.
+     * Create operation: No resource name is expected for the new ad parameter.
      * 
* - * .google.ads.googleads.v0.resources.CampaignGroup create = 1; + * .google.ads.googleads.v0.resources.AdParameter create = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CampaignGroup, com.google.ads.googleads.v0.resources.CampaignGroup.Builder, com.google.ads.googleads.v0.resources.CampaignGroupOrBuilder> + com.google.ads.googleads.v0.resources.AdParameter, com.google.ads.googleads.v0.resources.AdParameter.Builder, com.google.ads.googleads.v0.resources.AdParameterOrBuilder> getCreateFieldBuilder() { if (createBuilder_ == null) { if (!(operationCase_ == 1)) { - operation_ = com.google.ads.googleads.v0.resources.CampaignGroup.getDefaultInstance(); + operation_ = com.google.ads.googleads.v0.resources.AdParameter.getDefaultInstance(); } createBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CampaignGroup, com.google.ads.googleads.v0.resources.CampaignGroup.Builder, com.google.ads.googleads.v0.resources.CampaignGroupOrBuilder>( - (com.google.ads.googleads.v0.resources.CampaignGroup) operation_, + com.google.ads.googleads.v0.resources.AdParameter, com.google.ads.googleads.v0.resources.AdParameter.Builder, com.google.ads.googleads.v0.resources.AdParameterOrBuilder>( + (com.google.ads.googleads.v0.resources.AdParameter) operation_, getParentForChildren(), isClean()); operation_ = null; @@ -1099,48 +1087,48 @@ public com.google.ads.googleads.v0.resources.CampaignGroupOrBuilder getCreateOrB } private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CampaignGroup, com.google.ads.googleads.v0.resources.CampaignGroup.Builder, com.google.ads.googleads.v0.resources.CampaignGroupOrBuilder> updateBuilder_; + com.google.ads.googleads.v0.resources.AdParameter, com.google.ads.googleads.v0.resources.AdParameter.Builder, com.google.ads.googleads.v0.resources.AdParameterOrBuilder> updateBuilder_; /** *
-     * Update operation: The campaign group is expected to have a valid
-     * resource name.
+     * Update operation: The ad parameter is expected to have a valid resource
+     * name.
      * 
* - * .google.ads.googleads.v0.resources.CampaignGroup update = 2; + * .google.ads.googleads.v0.resources.AdParameter update = 2; */ public boolean hasUpdate() { return operationCase_ == 2; } /** *
-     * Update operation: The campaign group is expected to have a valid
-     * resource name.
+     * Update operation: The ad parameter is expected to have a valid resource
+     * name.
      * 
* - * .google.ads.googleads.v0.resources.CampaignGroup update = 2; + * .google.ads.googleads.v0.resources.AdParameter update = 2; */ - public com.google.ads.googleads.v0.resources.CampaignGroup getUpdate() { + public com.google.ads.googleads.v0.resources.AdParameter getUpdate() { if (updateBuilder_ == null) { if (operationCase_ == 2) { - return (com.google.ads.googleads.v0.resources.CampaignGroup) operation_; + return (com.google.ads.googleads.v0.resources.AdParameter) operation_; } - return com.google.ads.googleads.v0.resources.CampaignGroup.getDefaultInstance(); + return com.google.ads.googleads.v0.resources.AdParameter.getDefaultInstance(); } else { if (operationCase_ == 2) { return updateBuilder_.getMessage(); } - return com.google.ads.googleads.v0.resources.CampaignGroup.getDefaultInstance(); + return com.google.ads.googleads.v0.resources.AdParameter.getDefaultInstance(); } } /** *
-     * Update operation: The campaign group is expected to have a valid
-     * resource name.
+     * Update operation: The ad parameter is expected to have a valid resource
+     * name.
      * 
* - * .google.ads.googleads.v0.resources.CampaignGroup update = 2; + * .google.ads.googleads.v0.resources.AdParameter update = 2; */ - public Builder setUpdate(com.google.ads.googleads.v0.resources.CampaignGroup value) { + public Builder setUpdate(com.google.ads.googleads.v0.resources.AdParameter value) { if (updateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1155,14 +1143,14 @@ public Builder setUpdate(com.google.ads.googleads.v0.resources.CampaignGroup val } /** *
-     * Update operation: The campaign group is expected to have a valid
-     * resource name.
+     * Update operation: The ad parameter is expected to have a valid resource
+     * name.
      * 
* - * .google.ads.googleads.v0.resources.CampaignGroup update = 2; + * .google.ads.googleads.v0.resources.AdParameter update = 2; */ public Builder setUpdate( - com.google.ads.googleads.v0.resources.CampaignGroup.Builder builderForValue) { + com.google.ads.googleads.v0.resources.AdParameter.Builder builderForValue) { if (updateBuilder_ == null) { operation_ = builderForValue.build(); onChanged(); @@ -1174,17 +1162,17 @@ public Builder setUpdate( } /** *
-     * Update operation: The campaign group is expected to have a valid
-     * resource name.
+     * Update operation: The ad parameter is expected to have a valid resource
+     * name.
      * 
* - * .google.ads.googleads.v0.resources.CampaignGroup update = 2; + * .google.ads.googleads.v0.resources.AdParameter update = 2; */ - public Builder mergeUpdate(com.google.ads.googleads.v0.resources.CampaignGroup value) { + public Builder mergeUpdate(com.google.ads.googleads.v0.resources.AdParameter value) { if (updateBuilder_ == null) { if (operationCase_ == 2 && - operation_ != com.google.ads.googleads.v0.resources.CampaignGroup.getDefaultInstance()) { - operation_ = com.google.ads.googleads.v0.resources.CampaignGroup.newBuilder((com.google.ads.googleads.v0.resources.CampaignGroup) operation_) + operation_ != com.google.ads.googleads.v0.resources.AdParameter.getDefaultInstance()) { + operation_ = com.google.ads.googleads.v0.resources.AdParameter.newBuilder((com.google.ads.googleads.v0.resources.AdParameter) operation_) .mergeFrom(value).buildPartial(); } else { operation_ = value; @@ -1201,11 +1189,11 @@ public Builder mergeUpdate(com.google.ads.googleads.v0.resources.CampaignGroup v } /** *
-     * Update operation: The campaign group is expected to have a valid
-     * resource name.
+     * Update operation: The ad parameter is expected to have a valid resource
+     * name.
      * 
* - * .google.ads.googleads.v0.resources.CampaignGroup update = 2; + * .google.ads.googleads.v0.resources.AdParameter update = 2; */ public Builder clearUpdate() { if (updateBuilder_ == null) { @@ -1225,51 +1213,51 @@ public Builder clearUpdate() { } /** *
-     * Update operation: The campaign group is expected to have a valid
-     * resource name.
+     * Update operation: The ad parameter is expected to have a valid resource
+     * name.
      * 
* - * .google.ads.googleads.v0.resources.CampaignGroup update = 2; + * .google.ads.googleads.v0.resources.AdParameter update = 2; */ - public com.google.ads.googleads.v0.resources.CampaignGroup.Builder getUpdateBuilder() { + public com.google.ads.googleads.v0.resources.AdParameter.Builder getUpdateBuilder() { return getUpdateFieldBuilder().getBuilder(); } /** *
-     * Update operation: The campaign group is expected to have a valid
-     * resource name.
+     * Update operation: The ad parameter is expected to have a valid resource
+     * name.
      * 
* - * .google.ads.googleads.v0.resources.CampaignGroup update = 2; + * .google.ads.googleads.v0.resources.AdParameter update = 2; */ - public com.google.ads.googleads.v0.resources.CampaignGroupOrBuilder getUpdateOrBuilder() { + public com.google.ads.googleads.v0.resources.AdParameterOrBuilder getUpdateOrBuilder() { if ((operationCase_ == 2) && (updateBuilder_ != null)) { return updateBuilder_.getMessageOrBuilder(); } else { if (operationCase_ == 2) { - return (com.google.ads.googleads.v0.resources.CampaignGroup) operation_; + return (com.google.ads.googleads.v0.resources.AdParameter) operation_; } - return com.google.ads.googleads.v0.resources.CampaignGroup.getDefaultInstance(); + return com.google.ads.googleads.v0.resources.AdParameter.getDefaultInstance(); } } /** *
-     * Update operation: The campaign group is expected to have a valid
-     * resource name.
+     * Update operation: The ad parameter is expected to have a valid resource
+     * name.
      * 
* - * .google.ads.googleads.v0.resources.CampaignGroup update = 2; + * .google.ads.googleads.v0.resources.AdParameter update = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CampaignGroup, com.google.ads.googleads.v0.resources.CampaignGroup.Builder, com.google.ads.googleads.v0.resources.CampaignGroupOrBuilder> + com.google.ads.googleads.v0.resources.AdParameter, com.google.ads.googleads.v0.resources.AdParameter.Builder, com.google.ads.googleads.v0.resources.AdParameterOrBuilder> getUpdateFieldBuilder() { if (updateBuilder_ == null) { if (!(operationCase_ == 2)) { - operation_ = com.google.ads.googleads.v0.resources.CampaignGroup.getDefaultInstance(); + operation_ = com.google.ads.googleads.v0.resources.AdParameter.getDefaultInstance(); } updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CampaignGroup, com.google.ads.googleads.v0.resources.CampaignGroup.Builder, com.google.ads.googleads.v0.resources.CampaignGroupOrBuilder>( - (com.google.ads.googleads.v0.resources.CampaignGroup) operation_, + com.google.ads.googleads.v0.resources.AdParameter, com.google.ads.googleads.v0.resources.AdParameter.Builder, com.google.ads.googleads.v0.resources.AdParameterOrBuilder>( + (com.google.ads.googleads.v0.resources.AdParameter) operation_, getParentForChildren(), isClean()); operation_ = null; @@ -1281,9 +1269,9 @@ public com.google.ads.googleads.v0.resources.CampaignGroupOrBuilder getUpdateOrB /** *
-     * Remove operation: A resource name for the removed campaign group is
-     * expected, in this format:
-     * `customers/{customer_id}/campaignGroups/{campaign_group_id}`
+     * Remove operation: A resource name for the ad parameter to remove is
+     * expected in this format:
+     * `customers/{customer_id}/adParameters/{ad_group_id}_{criterion_id}_{parameter_index}`
      * 
* * string remove = 3; @@ -1307,9 +1295,9 @@ public java.lang.String getRemove() { } /** *
-     * Remove operation: A resource name for the removed campaign group is
-     * expected, in this format:
-     * `customers/{customer_id}/campaignGroups/{campaign_group_id}`
+     * Remove operation: A resource name for the ad parameter to remove is
+     * expected in this format:
+     * `customers/{customer_id}/adParameters/{ad_group_id}_{criterion_id}_{parameter_index}`
      * 
* * string remove = 3; @@ -1334,9 +1322,9 @@ public java.lang.String getRemove() { } /** *
-     * Remove operation: A resource name for the removed campaign group is
-     * expected, in this format:
-     * `customers/{customer_id}/campaignGroups/{campaign_group_id}`
+     * Remove operation: A resource name for the ad parameter to remove is
+     * expected in this format:
+     * `customers/{customer_id}/adParameters/{ad_group_id}_{criterion_id}_{parameter_index}`
      * 
* * string remove = 3; @@ -1353,9 +1341,9 @@ public Builder setRemove( } /** *
-     * Remove operation: A resource name for the removed campaign group is
-     * expected, in this format:
-     * `customers/{customer_id}/campaignGroups/{campaign_group_id}`
+     * Remove operation: A resource name for the ad parameter to remove is
+     * expected in this format:
+     * `customers/{customer_id}/adParameters/{ad_group_id}_{criterion_id}_{parameter_index}`
      * 
* * string remove = 3; @@ -1370,9 +1358,9 @@ public Builder clearRemove() { } /** *
-     * Remove operation: A resource name for the removed campaign group is
-     * expected, in this format:
-     * `customers/{customer_id}/campaignGroups/{campaign_group_id}`
+     * Remove operation: A resource name for the ad parameter to remove is
+     * expected in this format:
+     * `customers/{customer_id}/adParameters/{ad_group_id}_{criterion_id}_{parameter_index}`
      * 
* * string remove = 3; @@ -1401,41 +1389,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.services.CampaignGroupOperation) + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.services.AdParameterOperation) } - // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.CampaignGroupOperation) - private static final com.google.ads.googleads.v0.services.CampaignGroupOperation DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.AdParameterOperation) + private static final com.google.ads.googleads.v0.services.AdParameterOperation DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.ads.googleads.v0.services.CampaignGroupOperation(); + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.services.AdParameterOperation(); } - public static com.google.ads.googleads.v0.services.CampaignGroupOperation getDefaultInstance() { + public static com.google.ads.googleads.v0.services.AdParameterOperation 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 CampaignGroupOperation parsePartialFrom( + public AdParameterOperation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CampaignGroupOperation(input, extensionRegistry); + return new AdParameterOperation(input, extensionRegistry); } }; - 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.ads.googleads.v0.services.CampaignGroupOperation getDefaultInstanceForType() { + public com.google.ads.googleads.v0.services.AdParameterOperation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdParameterOperationOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdParameterOperationOrBuilder.java new file mode 100644 index 0000000000..0f9b84c8c1 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdParameterOperationOrBuilder.java @@ -0,0 +1,111 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/ad_parameter_service.proto + +package com.google.ads.googleads.v0.services; + +public interface AdParameterOperationOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.AdParameterOperation) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * FieldMask that determines which resource fields are modified in an update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + boolean hasUpdateMask(); + /** + *
+   * FieldMask that determines which resource fields are modified in an update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + *
+   * FieldMask that determines which resource fields are modified in an update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + *
+   * Create operation: No resource name is expected for the new ad parameter.
+   * 
+ * + * .google.ads.googleads.v0.resources.AdParameter create = 1; + */ + boolean hasCreate(); + /** + *
+   * Create operation: No resource name is expected for the new ad parameter.
+   * 
+ * + * .google.ads.googleads.v0.resources.AdParameter create = 1; + */ + com.google.ads.googleads.v0.resources.AdParameter getCreate(); + /** + *
+   * Create operation: No resource name is expected for the new ad parameter.
+   * 
+ * + * .google.ads.googleads.v0.resources.AdParameter create = 1; + */ + com.google.ads.googleads.v0.resources.AdParameterOrBuilder getCreateOrBuilder(); + + /** + *
+   * Update operation: The ad parameter is expected to have a valid resource
+   * name.
+   * 
+ * + * .google.ads.googleads.v0.resources.AdParameter update = 2; + */ + boolean hasUpdate(); + /** + *
+   * Update operation: The ad parameter is expected to have a valid resource
+   * name.
+   * 
+ * + * .google.ads.googleads.v0.resources.AdParameter update = 2; + */ + com.google.ads.googleads.v0.resources.AdParameter getUpdate(); + /** + *
+   * Update operation: The ad parameter is expected to have a valid resource
+   * name.
+   * 
+ * + * .google.ads.googleads.v0.resources.AdParameter update = 2; + */ + com.google.ads.googleads.v0.resources.AdParameterOrBuilder getUpdateOrBuilder(); + + /** + *
+   * Remove operation: A resource name for the ad parameter to remove is
+   * expected in this format:
+   * `customers/{customer_id}/adParameters/{ad_group_id}_{criterion_id}_{parameter_index}`
+   * 
+ * + * string remove = 3; + */ + java.lang.String getRemove(); + /** + *
+   * Remove operation: A resource name for the ad parameter to remove is
+   * expected in this format:
+   * `customers/{customer_id}/adParameters/{ad_group_id}_{criterion_id}_{parameter_index}`
+   * 
+ * + * string remove = 3; + */ + com.google.protobuf.ByteString + getRemoveBytes(); + + public com.google.ads.googleads.v0.services.AdParameterOperation.OperationCase getOperationCase(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdParameterServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdParameterServiceClient.java new file mode 100644 index 0000000000..31d9c3f442 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdParameterServiceClient.java @@ -0,0 +1,394 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services; + +import com.google.ads.googleads.v0.resources.AdParameter; +import com.google.ads.googleads.v0.services.stub.AdParameterServiceStub; +import com.google.ads.googleads.v0.services.stub.AdParameterServiceStubSettings; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.api.pathtemplate.PathTemplate; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND SERVICE +/** + * Service Description: Service to manage ad parameters. + * + *

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

+ * 
+ * try (AdParameterServiceClient adParameterServiceClient = AdParameterServiceClient.create()) {
+ *   String formattedResourceName = AdParameterServiceClient.formatAdParameterName("[CUSTOMER]", "[AD_PARAMETER]");
+ *   AdParameter response = adParameterServiceClient.getAdParameter(formattedResourceName);
+ * }
+ * 
+ * 
+ * + *

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

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

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

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

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

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

To customize credentials: + * + *

+ * 
+ * AdParameterServiceSettings adParameterServiceSettings =
+ *     AdParameterServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * AdParameterServiceClient adParameterServiceClient =
+ *     AdParameterServiceClient.create(adParameterServiceSettings);
+ * 
+ * 
+ * + * To customize the endpoint: + * + *
+ * 
+ * AdParameterServiceSettings adParameterServiceSettings =
+ *     AdParameterServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * AdParameterServiceClient adParameterServiceClient =
+ *     AdParameterServiceClient.create(adParameterServiceSettings);
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class AdParameterServiceClient implements BackgroundResource { + private final AdParameterServiceSettings settings; + private final AdParameterServiceStub stub; + + private static final PathTemplate AD_PARAMETER_PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("customers/{customer}/adParameters/{ad_parameter}"); + + /** Formats a string containing the fully-qualified path to represent a ad_parameter resource. */ + public static final String formatAdParameterName(String customer, String adParameter) { + return AD_PARAMETER_PATH_TEMPLATE.instantiate( + "customer", customer, + "ad_parameter", adParameter); + } + + /** + * Parses the customer from the given fully-qualified path which represents a ad_parameter + * resource. + */ + public static final String parseCustomerFromAdParameterName(String adParameterName) { + return AD_PARAMETER_PATH_TEMPLATE.parse(adParameterName).get("customer"); + } + + /** + * Parses the ad_parameter from the given fully-qualified path which represents a ad_parameter + * resource. + */ + public static final String parseAdParameterFromAdParameterName(String adParameterName) { + return AD_PARAMETER_PATH_TEMPLATE.parse(adParameterName).get("ad_parameter"); + } + + /** Constructs an instance of AdParameterServiceClient with default settings. */ + public static final AdParameterServiceClient create() throws IOException { + return create(AdParameterServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of AdParameterServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final AdParameterServiceClient create(AdParameterServiceSettings settings) + throws IOException { + return new AdParameterServiceClient(settings); + } + + /** + * Constructs an instance of AdParameterServiceClient, using the given stub for making calls. This + * is for advanced usage - prefer to use AdParameterServiceSettings}. + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final AdParameterServiceClient create(AdParameterServiceStub stub) { + return new AdParameterServiceClient(stub); + } + + /** + * Constructs an instance of AdParameterServiceClient, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected AdParameterServiceClient(AdParameterServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((AdParameterServiceStubSettings) settings.getStubSettings()).createStub(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected AdParameterServiceClient(AdParameterServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final AdParameterServiceSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public AdParameterServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns the requested ad parameter in full detail. + * + *

Sample code: + * + *


+   * try (AdParameterServiceClient adParameterServiceClient = AdParameterServiceClient.create()) {
+   *   String formattedResourceName = AdParameterServiceClient.formatAdParameterName("[CUSTOMER]", "[AD_PARAMETER]");
+   *   AdParameter response = adParameterServiceClient.getAdParameter(formattedResourceName);
+   * }
+   * 
+ * + * @param resourceName The resource name of the ad parameter to fetch. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AdParameter getAdParameter(String resourceName) { + AD_PARAMETER_PATH_TEMPLATE.validate(resourceName, "getAdParameter"); + GetAdParameterRequest request = + GetAdParameterRequest.newBuilder().setResourceName(resourceName).build(); + return getAdParameter(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns the requested ad parameter in full detail. + * + *

Sample code: + * + *


+   * try (AdParameterServiceClient adParameterServiceClient = AdParameterServiceClient.create()) {
+   *   String formattedResourceName = AdParameterServiceClient.formatAdParameterName("[CUSTOMER]", "[AD_PARAMETER]");
+   *   GetAdParameterRequest request = GetAdParameterRequest.newBuilder()
+   *     .setResourceName(formattedResourceName)
+   *     .build();
+   *   AdParameter response = adParameterServiceClient.getAdParameter(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AdParameter getAdParameter(GetAdParameterRequest request) { + return getAdParameterCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns the requested ad parameter in full detail. + * + *

Sample code: + * + *


+   * try (AdParameterServiceClient adParameterServiceClient = AdParameterServiceClient.create()) {
+   *   String formattedResourceName = AdParameterServiceClient.formatAdParameterName("[CUSTOMER]", "[AD_PARAMETER]");
+   *   GetAdParameterRequest request = GetAdParameterRequest.newBuilder()
+   *     .setResourceName(formattedResourceName)
+   *     .build();
+   *   ApiFuture<AdParameter> future = adParameterServiceClient.getAdParameterCallable().futureCall(request);
+   *   // Do something
+   *   AdParameter response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable getAdParameterCallable() { + return stub.getAdParameterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates, updates, or removes ad parameters. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (AdParameterServiceClient adParameterServiceClient = AdParameterServiceClient.create()) {
+   *   String customerId = "";
+   *   List<AdParameterOperation> operations = new ArrayList<>();
+   *   boolean partialFailure = false;
+   *   boolean validateOnly = false;
+   *   MutateAdParametersResponse response = adParameterServiceClient.mutateAdParameters(customerId, operations, partialFailure, validateOnly);
+   * }
+   * 
+ * + * @param customerId The ID of the customer whose ad parameters are being modified. + * @param operations The list of operations to perform on individual ad parameters. + * @param partialFailure If true, successful operations will be carried out and invalid operations + * will return errors. If false, all operations will be carried out in one transaction if and + * only if they are all valid. Default is false. + * @param validateOnly If true, the request is validated but not executed. Only errors are + * returned, not results. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateAdParametersResponse mutateAdParameters( + String customerId, + List operations, + boolean partialFailure, + boolean validateOnly) { + + MutateAdParametersRequest request = + MutateAdParametersRequest.newBuilder() + .setCustomerId(customerId) + .addAllOperations(operations) + .setPartialFailure(partialFailure) + .setValidateOnly(validateOnly) + .build(); + return mutateAdParameters(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates, updates, or removes ad parameters. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (AdParameterServiceClient adParameterServiceClient = AdParameterServiceClient.create()) {
+   *   String customerId = "";
+   *   List<AdParameterOperation> operations = new ArrayList<>();
+   *   MutateAdParametersResponse response = adParameterServiceClient.mutateAdParameters(customerId, operations);
+   * }
+   * 
+ * + * @param customerId The ID of the customer whose ad parameters are being modified. + * @param operations The list of operations to perform on individual ad parameters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateAdParametersResponse mutateAdParameters( + String customerId, List operations) { + + MutateAdParametersRequest request = + MutateAdParametersRequest.newBuilder() + .setCustomerId(customerId) + .addAllOperations(operations) + .build(); + return mutateAdParameters(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates, updates, or removes ad parameters. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (AdParameterServiceClient adParameterServiceClient = AdParameterServiceClient.create()) {
+   *   String customerId = "";
+   *   List<AdParameterOperation> operations = new ArrayList<>();
+   *   MutateAdParametersRequest request = MutateAdParametersRequest.newBuilder()
+   *     .setCustomerId(customerId)
+   *     .addAllOperations(operations)
+   *     .build();
+   *   MutateAdParametersResponse response = adParameterServiceClient.mutateAdParameters(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateAdParametersResponse mutateAdParameters(MutateAdParametersRequest request) { + return mutateAdParametersCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates, updates, or removes ad parameters. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (AdParameterServiceClient adParameterServiceClient = AdParameterServiceClient.create()) {
+   *   String customerId = "";
+   *   List<AdParameterOperation> operations = new ArrayList<>();
+   *   MutateAdParametersRequest request = MutateAdParametersRequest.newBuilder()
+   *     .setCustomerId(customerId)
+   *     .addAllOperations(operations)
+   *     .build();
+   *   ApiFuture<MutateAdParametersResponse> future = adParameterServiceClient.mutateAdParametersCallable().futureCall(request);
+   *   // Do something
+   *   MutateAdParametersResponse response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + mutateAdParametersCallable() { + return stub.mutateAdParametersCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdParameterServiceGrpc.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdParameterServiceGrpc.java new file mode 100644 index 0000000000..9a3e0e7e62 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdParameterServiceGrpc.java @@ -0,0 +1,409 @@ +package com.google.ads.googleads.v0.services; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; +import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; +import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + *
+ * Service to manage ad parameters.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/ads/googleads/v0/services/ad_parameter_service.proto") +public final class AdParameterServiceGrpc { + + private AdParameterServiceGrpc() {} + + public static final String SERVICE_NAME = "google.ads.googleads.v0.services.AdParameterService"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetAdParameterMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_GET_AD_PARAMETER = getGetAdParameterMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getGetAdParameterMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getGetAdParameterMethod() { + return getGetAdParameterMethodHelper(); + } + + private static io.grpc.MethodDescriptor getGetAdParameterMethodHelper() { + io.grpc.MethodDescriptor getGetAdParameterMethod; + if ((getGetAdParameterMethod = AdParameterServiceGrpc.getGetAdParameterMethod) == null) { + synchronized (AdParameterServiceGrpc.class) { + if ((getGetAdParameterMethod = AdParameterServiceGrpc.getGetAdParameterMethod) == null) { + AdParameterServiceGrpc.getGetAdParameterMethod = getGetAdParameterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.ads.googleads.v0.services.AdParameterService", "GetAdParameter")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.ads.googleads.v0.services.GetAdParameterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.ads.googleads.v0.resources.AdParameter.getDefaultInstance())) + .setSchemaDescriptor(new AdParameterServiceMethodDescriptorSupplier("GetAdParameter")) + .build(); + } + } + } + return getGetAdParameterMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getMutateAdParametersMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_MUTATE_AD_PARAMETERS = getMutateAdParametersMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getMutateAdParametersMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getMutateAdParametersMethod() { + return getMutateAdParametersMethodHelper(); + } + + private static io.grpc.MethodDescriptor getMutateAdParametersMethodHelper() { + io.grpc.MethodDescriptor getMutateAdParametersMethod; + if ((getMutateAdParametersMethod = AdParameterServiceGrpc.getMutateAdParametersMethod) == null) { + synchronized (AdParameterServiceGrpc.class) { + if ((getMutateAdParametersMethod = AdParameterServiceGrpc.getMutateAdParametersMethod) == null) { + AdParameterServiceGrpc.getMutateAdParametersMethod = getMutateAdParametersMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.ads.googleads.v0.services.AdParameterService", "MutateAdParameters")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.ads.googleads.v0.services.MutateAdParametersRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.ads.googleads.v0.services.MutateAdParametersResponse.getDefaultInstance())) + .setSchemaDescriptor(new AdParameterServiceMethodDescriptorSupplier("MutateAdParameters")) + .build(); + } + } + } + return getMutateAdParametersMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static AdParameterServiceStub newStub(io.grpc.Channel channel) { + return new AdParameterServiceStub(channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AdParameterServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + return new AdParameterServiceBlockingStub(channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static AdParameterServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + return new AdParameterServiceFutureStub(channel); + } + + /** + *
+   * Service to manage ad parameters.
+   * 
+ */ + public static abstract class AdParameterServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Returns the requested ad parameter in full detail.
+     * 
+ */ + public void getAdParameter(com.google.ads.googleads.v0.services.GetAdParameterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetAdParameterMethodHelper(), responseObserver); + } + + /** + *
+     * Creates, updates, or removes ad parameters. Operation statuses are
+     * returned.
+     * 
+ */ + public void mutateAdParameters(com.google.ads.googleads.v0.services.MutateAdParametersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getMutateAdParametersMethodHelper(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetAdParameterMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.ads.googleads.v0.services.GetAdParameterRequest, + com.google.ads.googleads.v0.resources.AdParameter>( + this, METHODID_GET_AD_PARAMETER))) + .addMethod( + getMutateAdParametersMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.ads.googleads.v0.services.MutateAdParametersRequest, + com.google.ads.googleads.v0.services.MutateAdParametersResponse>( + this, METHODID_MUTATE_AD_PARAMETERS))) + .build(); + } + } + + /** + *
+   * Service to manage ad parameters.
+   * 
+ */ + public static final class AdParameterServiceStub extends io.grpc.stub.AbstractStub { + private AdParameterServiceStub(io.grpc.Channel channel) { + super(channel); + } + + private AdParameterServiceStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdParameterServiceStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new AdParameterServiceStub(channel, callOptions); + } + + /** + *
+     * Returns the requested ad parameter in full detail.
+     * 
+ */ + public void getAdParameter(com.google.ads.googleads.v0.services.GetAdParameterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetAdParameterMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates, updates, or removes ad parameters. Operation statuses are
+     * returned.
+     * 
+ */ + public void mutateAdParameters(com.google.ads.googleads.v0.services.MutateAdParametersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getMutateAdParametersMethodHelper(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Service to manage ad parameters.
+   * 
+ */ + public static final class AdParameterServiceBlockingStub extends io.grpc.stub.AbstractStub { + private AdParameterServiceBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + private AdParameterServiceBlockingStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdParameterServiceBlockingStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new AdParameterServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Returns the requested ad parameter in full detail.
+     * 
+ */ + public com.google.ads.googleads.v0.resources.AdParameter getAdParameter(com.google.ads.googleads.v0.services.GetAdParameterRequest request) { + return blockingUnaryCall( + getChannel(), getGetAdParameterMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Creates, updates, or removes ad parameters. Operation statuses are
+     * returned.
+     * 
+ */ + public com.google.ads.googleads.v0.services.MutateAdParametersResponse mutateAdParameters(com.google.ads.googleads.v0.services.MutateAdParametersRequest request) { + return blockingUnaryCall( + getChannel(), getMutateAdParametersMethodHelper(), getCallOptions(), request); + } + } + + /** + *
+   * Service to manage ad parameters.
+   * 
+ */ + public static final class AdParameterServiceFutureStub extends io.grpc.stub.AbstractStub { + private AdParameterServiceFutureStub(io.grpc.Channel channel) { + super(channel); + } + + private AdParameterServiceFutureStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdParameterServiceFutureStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new AdParameterServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Returns the requested ad parameter in full detail.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getAdParameter( + com.google.ads.googleads.v0.services.GetAdParameterRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetAdParameterMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Creates, updates, or removes ad parameters. Operation statuses are
+     * returned.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture mutateAdParameters( + com.google.ads.googleads.v0.services.MutateAdParametersRequest request) { + return futureUnaryCall( + getChannel().newCall(getMutateAdParametersMethodHelper(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_AD_PARAMETER = 0; + private static final int METHODID_MUTATE_AD_PARAMETERS = 1; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AdParameterServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(AdParameterServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_AD_PARAMETER: + serviceImpl.getAdParameter((com.google.ads.googleads.v0.services.GetAdParameterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_MUTATE_AD_PARAMETERS: + serviceImpl.mutateAdParameters((com.google.ads.googleads.v0.services.MutateAdParametersRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class AdParameterServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AdParameterServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.ads.googleads.v0.services.AdParameterServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AdParameterService"); + } + } + + private static final class AdParameterServiceFileDescriptorSupplier + extends AdParameterServiceBaseDescriptorSupplier { + AdParameterServiceFileDescriptorSupplier() {} + } + + private static final class AdParameterServiceMethodDescriptorSupplier + extends AdParameterServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + AdParameterServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (AdParameterServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AdParameterServiceFileDescriptorSupplier()) + .addMethod(getGetAdParameterMethodHelper()) + .addMethod(getMutateAdParametersMethodHelper()) + .build(); + } + } + } + return result; + } +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdParameterServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdParameterServiceProto.java new file mode 100644 index 0000000000..6a66626b47 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdParameterServiceProto.java @@ -0,0 +1,153 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/ad_parameter_service.proto + +package com.google.ads.googleads.v0.services; + +public final class AdParameterServiceProto { + private AdParameterServiceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_services_GetAdParameterRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_services_GetAdParameterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_services_MutateAdParametersRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_services_MutateAdParametersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_services_AdParameterOperation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_services_AdParameterOperation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_services_MutateAdParametersResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_services_MutateAdParametersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_services_MutateAdParameterResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_services_MutateAdParameterResult_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n;google/ads/googleads/v0/services/ad_pa" + + "rameter_service.proto\022 google.ads.google" + + "ads.v0.services\0324google/ads/googleads/v0" + + "/resources/ad_parameter.proto\032\034google/ap" + + "i/annotations.proto\032 google/protobuf/fie" + + "ld_mask.proto\032\036google/protobuf/wrappers." + + "proto\032\027google/rpc/status.proto\".\n\025GetAdP" + + "arameterRequest\022\025\n\rresource_name\030\001 \001(\t\"\254" + + "\001\n\031MutateAdParametersRequest\022\023\n\013customer" + + "_id\030\001 \001(\t\022J\n\noperations\030\002 \003(\01326.google.a" + + "ds.googleads.v0.services.AdParameterOper" + + "ation\022\027\n\017partial_failure\030\003 \001(\010\022\025\n\rvalida" + + "te_only\030\004 \001(\010\"\352\001\n\024AdParameterOperation\022/" + + "\n\013update_mask\030\004 \001(\0132\032.google.protobuf.Fi" + + "eldMask\022@\n\006create\030\001 \001(\0132..google.ads.goo" + + "gleads.v0.resources.AdParameterH\000\022@\n\006upd" + + "ate\030\002 \001(\0132..google.ads.googleads.v0.reso" + + "urces.AdParameterH\000\022\020\n\006remove\030\003 \001(\tH\000B\013\n" + + "\toperation\"\233\001\n\032MutateAdParametersRespons" + + "e\0221\n\025partial_failure_error\030\003 \001(\0132\022.googl" + + "e.rpc.Status\022J\n\007results\030\002 \003(\01329.google.a" + + "ds.googleads.v0.services.MutateAdParamet" + + "erResult\"0\n\027MutateAdParameterResult\022\025\n\rr" + + "esource_name\030\001 \001(\t2\230\003\n\022AdParameterServic" + + "e\022\261\001\n\016GetAdParameter\0227.google.ads.google" + + "ads.v0.services.GetAdParameterRequest\032.." + + "google.ads.googleads.v0.resources.AdPara" + + "meter\"6\202\323\344\223\0020\022./v0/{resource_name=custom" + + "ers/*/adParameters/*}\022\315\001\n\022MutateAdParame" + + "ters\022;.google.ads.googleads.v0.services." + + "MutateAdParametersRequest\032<.google.ads.g" + + "oogleads.v0.services.MutateAdParametersR" + + "esponse\"<\202\323\344\223\0026\"1/v0/customers/{customer" + + "_id=*}/adParameters:mutate:\001*B\376\001\n$com.go" + + "ogle.ads.googleads.v0.servicesB\027AdParame" + + "terServiceProtoP\001ZHgoogle.golang.org/gen" + + "proto/googleapis/ads/googleads/v0/servic" + + "es;services\242\002\003GAA\252\002 Google.Ads.GoogleAds" + + ".V0.Services\312\002 Google\\Ads\\GoogleAds\\V0\\S" + + "ervices\352\002$Google::Ads::GoogleAds::V0::Se" + + "rvicesb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.googleads.v0.resources.AdParameterProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }, assigner); + internal_static_google_ads_googleads_v0_services_GetAdParameterRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_googleads_v0_services_GetAdParameterRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_services_GetAdParameterRequest_descriptor, + new java.lang.String[] { "ResourceName", }); + internal_static_google_ads_googleads_v0_services_MutateAdParametersRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_googleads_v0_services_MutateAdParametersRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_services_MutateAdParametersRequest_descriptor, + new java.lang.String[] { "CustomerId", "Operations", "PartialFailure", "ValidateOnly", }); + internal_static_google_ads_googleads_v0_services_AdParameterOperation_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_googleads_v0_services_AdParameterOperation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_services_AdParameterOperation_descriptor, + new java.lang.String[] { "UpdateMask", "Create", "Update", "Remove", "Operation", }); + internal_static_google_ads_googleads_v0_services_MutateAdParametersResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_ads_googleads_v0_services_MutateAdParametersResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_services_MutateAdParametersResponse_descriptor, + new java.lang.String[] { "PartialFailureError", "Results", }); + internal_static_google_ads_googleads_v0_services_MutateAdParameterResult_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_ads_googleads_v0_services_MutateAdParameterResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_services_MutateAdParameterResult_descriptor, + new java.lang.String[] { "ResourceName", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.ads.googleads.v0.resources.AdParameterProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignGroupServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdParameterServiceSettings.java similarity index 59% rename from google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignGroupServiceSettings.java rename to google-ads/src/main/java/com/google/ads/googleads/v0/services/AdParameterServiceSettings.java index 4627db42ca..eebf2838de 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignGroupServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdParameterServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,8 +15,8 @@ */ package com.google.ads.googleads.v0.services; -import com.google.ads.googleads.v0.resources.CampaignGroup; -import com.google.ads.googleads.v0.services.stub.CampaignGroupServiceStubSettings; +import com.google.ads.googleads.v0.resources.AdParameter; +import com.google.ads.googleads.v0.services.stub.AdParameterServiceStubSettings; import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; @@ -33,7 +33,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS /** - * Settings class to configure an instance of {@link CampaignGroupServiceClient}. + * Settings class to configure an instance of {@link AdParameterServiceClient}. * *

The default instance has everything set to sensible defaults: * @@ -45,69 +45,69 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of getCampaignGroup to 30 seconds: + * example, to set the total timeout of getAdParameter to 30 seconds: * *

  * 
- * CampaignGroupServiceSettings.Builder campaignGroupServiceSettingsBuilder =
- *     CampaignGroupServiceSettings.newBuilder();
- * campaignGroupServiceSettingsBuilder.getCampaignGroupSettings().getRetrySettings().toBuilder()
+ * AdParameterServiceSettings.Builder adParameterServiceSettingsBuilder =
+ *     AdParameterServiceSettings.newBuilder();
+ * adParameterServiceSettingsBuilder.getAdParameterSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
- * CampaignGroupServiceSettings campaignGroupServiceSettings = campaignGroupServiceSettingsBuilder.build();
+ * AdParameterServiceSettings adParameterServiceSettings = adParameterServiceSettingsBuilder.build();
  * 
  * 
*/ @Generated("by gapic-generator") @BetaApi -public class CampaignGroupServiceSettings extends ClientSettings { - /** Returns the object with the settings used for calls to getCampaignGroup. */ - public UnaryCallSettings getCampaignGroupSettings() { - return ((CampaignGroupServiceStubSettings) getStubSettings()).getCampaignGroupSettings(); +public class AdParameterServiceSettings extends ClientSettings { + /** Returns the object with the settings used for calls to getAdParameter. */ + public UnaryCallSettings getAdParameterSettings() { + return ((AdParameterServiceStubSettings) getStubSettings()).getAdParameterSettings(); } - /** Returns the object with the settings used for calls to mutateCampaignGroups. */ - public UnaryCallSettings - mutateCampaignGroupsSettings() { - return ((CampaignGroupServiceStubSettings) getStubSettings()).mutateCampaignGroupsSettings(); + /** Returns the object with the settings used for calls to mutateAdParameters. */ + public UnaryCallSettings + mutateAdParametersSettings() { + return ((AdParameterServiceStubSettings) getStubSettings()).mutateAdParametersSettings(); } - public static final CampaignGroupServiceSettings create(CampaignGroupServiceStubSettings stub) + public static final AdParameterServiceSettings create(AdParameterServiceStubSettings stub) throws IOException { - return new CampaignGroupServiceSettings.Builder(stub.toBuilder()).build(); + return new AdParameterServiceSettings.Builder(stub.toBuilder()).build(); } /** Returns a builder for the default ExecutorProvider for this service. */ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return CampaignGroupServiceStubSettings.defaultExecutorProviderBuilder(); + return AdParameterServiceStubSettings.defaultExecutorProviderBuilder(); } /** Returns the default service endpoint. */ public static String getDefaultEndpoint() { - return CampaignGroupServiceStubSettings.getDefaultEndpoint(); + return AdParameterServiceStubSettings.getDefaultEndpoint(); } /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { - return CampaignGroupServiceStubSettings.getDefaultServiceScopes(); + return AdParameterServiceStubSettings.getDefaultServiceScopes(); } /** Returns a builder for the default credentials for this service. */ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return CampaignGroupServiceStubSettings.defaultCredentialsProviderBuilder(); + return AdParameterServiceStubSettings.defaultCredentialsProviderBuilder(); } /** Returns a builder for the default ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return CampaignGroupServiceStubSettings.defaultGrpcTransportProviderBuilder(); + return AdParameterServiceStubSettings.defaultGrpcTransportProviderBuilder(); } public static TransportChannelProvider defaultTransportChannelProvider() { - return CampaignGroupServiceStubSettings.defaultTransportChannelProvider(); + return AdParameterServiceStubSettings.defaultTransportChannelProvider(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return CampaignGroupServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + return AdParameterServiceStubSettings.defaultApiClientHeaderProviderBuilder(); } /** Returns a new builder for this class. */ @@ -125,35 +125,34 @@ public Builder toBuilder() { return new Builder(this); } - protected CampaignGroupServiceSettings(Builder settingsBuilder) throws IOException { + protected AdParameterServiceSettings(Builder settingsBuilder) throws IOException { super(settingsBuilder); } - /** Builder for CampaignGroupServiceSettings. */ - public static class Builder - extends ClientSettings.Builder { + /** Builder for AdParameterServiceSettings. */ + public static class Builder extends ClientSettings.Builder { protected Builder() throws IOException { this((ClientContext) null); } protected Builder(ClientContext clientContext) { - super(CampaignGroupServiceStubSettings.newBuilder(clientContext)); + super(AdParameterServiceStubSettings.newBuilder(clientContext)); } private static Builder createDefault() { - return new Builder(CampaignGroupServiceStubSettings.newBuilder()); + return new Builder(AdParameterServiceStubSettings.newBuilder()); } - protected Builder(CampaignGroupServiceSettings settings) { + protected Builder(AdParameterServiceSettings settings) { super(settings.getStubSettings().toBuilder()); } - protected Builder(CampaignGroupServiceStubSettings.Builder stubSettings) { + protected Builder(AdParameterServiceStubSettings.Builder stubSettings) { super(stubSettings); } - public CampaignGroupServiceStubSettings.Builder getStubSettingsBuilder() { - return ((CampaignGroupServiceStubSettings.Builder) getStubSettings()); + public AdParameterServiceStubSettings.Builder getStubSettingsBuilder() { + return ((AdParameterServiceStubSettings.Builder) getStubSettings()); } // NEXT_MAJOR_VER: remove 'throws Exception' @@ -169,21 +168,20 @@ public Builder applyToAllUnaryMethods( return this; } - /** Returns the builder for the settings used for calls to getCampaignGroup. */ - public UnaryCallSettings.Builder - getCampaignGroupSettings() { - return getStubSettingsBuilder().getCampaignGroupSettings(); + /** Returns the builder for the settings used for calls to getAdParameter. */ + public UnaryCallSettings.Builder getAdParameterSettings() { + return getStubSettingsBuilder().getAdParameterSettings(); } - /** Returns the builder for the settings used for calls to mutateCampaignGroups. */ - public UnaryCallSettings.Builder - mutateCampaignGroupsSettings() { - return getStubSettingsBuilder().mutateCampaignGroupsSettings(); + /** Returns the builder for the settings used for calls to mutateAdParameters. */ + public UnaryCallSettings.Builder + mutateAdParametersSettings() { + return getStubSettingsBuilder().mutateAdParametersSettings(); } @Override - public CampaignGroupServiceSettings build() throws IOException { - return new CampaignGroupServiceSettings(this); + public AdParameterServiceSettings build() throws IOException { + return new AdParameterServiceSettings(this); } } } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdScheduleViewServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdScheduleViewServiceClient.java new file mode 100644 index 0000000000..212d989126 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdScheduleViewServiceClient.java @@ -0,0 +1,276 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services; + +import com.google.ads.googleads.v0.resources.AdScheduleView; +import com.google.ads.googleads.v0.services.stub.AdScheduleViewServiceStub; +import com.google.ads.googleads.v0.services.stub.AdScheduleViewServiceStubSettings; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.api.pathtemplate.PathTemplate; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND SERVICE +/** + * Service Description: Service to fetch ad schedule views. + * + *

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

+ * 
+ * try (AdScheduleViewServiceClient adScheduleViewServiceClient = AdScheduleViewServiceClient.create()) {
+ *   String formattedResourceName = AdScheduleViewServiceClient.formatAdScheduleViewName("[CUSTOMER]", "[AD_SCHEDULE_VIEW]");
+ *   AdScheduleView response = adScheduleViewServiceClient.getAdScheduleView(formattedResourceName);
+ * }
+ * 
+ * 
+ * + *

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

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

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

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

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

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

To customize credentials: + * + *

+ * 
+ * AdScheduleViewServiceSettings adScheduleViewServiceSettings =
+ *     AdScheduleViewServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * AdScheduleViewServiceClient adScheduleViewServiceClient =
+ *     AdScheduleViewServiceClient.create(adScheduleViewServiceSettings);
+ * 
+ * 
+ * + * To customize the endpoint: + * + *
+ * 
+ * AdScheduleViewServiceSettings adScheduleViewServiceSettings =
+ *     AdScheduleViewServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * AdScheduleViewServiceClient adScheduleViewServiceClient =
+ *     AdScheduleViewServiceClient.create(adScheduleViewServiceSettings);
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class AdScheduleViewServiceClient implements BackgroundResource { + private final AdScheduleViewServiceSettings settings; + private final AdScheduleViewServiceStub stub; + + private static final PathTemplate AD_SCHEDULE_VIEW_PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding( + "customers/{customer}/adScheduleViews/{ad_schedule_view}"); + + /** + * Formats a string containing the fully-qualified path to represent a ad_schedule_view resource. + */ + public static final String formatAdScheduleViewName(String customer, String adScheduleView) { + return AD_SCHEDULE_VIEW_PATH_TEMPLATE.instantiate( + "customer", customer, + "ad_schedule_view", adScheduleView); + } + + /** + * Parses the customer from the given fully-qualified path which represents a ad_schedule_view + * resource. + */ + public static final String parseCustomerFromAdScheduleViewName(String adScheduleViewName) { + return AD_SCHEDULE_VIEW_PATH_TEMPLATE.parse(adScheduleViewName).get("customer"); + } + + /** + * Parses the ad_schedule_view from the given fully-qualified path which represents a + * ad_schedule_view resource. + */ + public static final String parseAdScheduleViewFromAdScheduleViewName(String adScheduleViewName) { + return AD_SCHEDULE_VIEW_PATH_TEMPLATE.parse(adScheduleViewName).get("ad_schedule_view"); + } + + /** Constructs an instance of AdScheduleViewServiceClient with default settings. */ + public static final AdScheduleViewServiceClient create() throws IOException { + return create(AdScheduleViewServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of AdScheduleViewServiceClient, using the given settings. The channels + * are created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final AdScheduleViewServiceClient create(AdScheduleViewServiceSettings settings) + throws IOException { + return new AdScheduleViewServiceClient(settings); + } + + /** + * Constructs an instance of AdScheduleViewServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer to use AdScheduleViewServiceSettings}. + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final AdScheduleViewServiceClient create(AdScheduleViewServiceStub stub) { + return new AdScheduleViewServiceClient(stub); + } + + /** + * Constructs an instance of AdScheduleViewServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected AdScheduleViewServiceClient(AdScheduleViewServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((AdScheduleViewServiceStubSettings) settings.getStubSettings()).createStub(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected AdScheduleViewServiceClient(AdScheduleViewServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final AdScheduleViewServiceSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public AdScheduleViewServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns the requested ad schedule view in full detail. + * + *

Sample code: + * + *


+   * try (AdScheduleViewServiceClient adScheduleViewServiceClient = AdScheduleViewServiceClient.create()) {
+   *   String formattedResourceName = AdScheduleViewServiceClient.formatAdScheduleViewName("[CUSTOMER]", "[AD_SCHEDULE_VIEW]");
+   *   AdScheduleView response = adScheduleViewServiceClient.getAdScheduleView(formattedResourceName);
+   * }
+   * 
+ * + * @param resourceName The resource name of the ad schedule view to fetch. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AdScheduleView getAdScheduleView(String resourceName) { + AD_SCHEDULE_VIEW_PATH_TEMPLATE.validate(resourceName, "getAdScheduleView"); + GetAdScheduleViewRequest request = + GetAdScheduleViewRequest.newBuilder().setResourceName(resourceName).build(); + return getAdScheduleView(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns the requested ad schedule view in full detail. + * + *

Sample code: + * + *


+   * try (AdScheduleViewServiceClient adScheduleViewServiceClient = AdScheduleViewServiceClient.create()) {
+   *   String formattedResourceName = AdScheduleViewServiceClient.formatAdScheduleViewName("[CUSTOMER]", "[AD_SCHEDULE_VIEW]");
+   *   GetAdScheduleViewRequest request = GetAdScheduleViewRequest.newBuilder()
+   *     .setResourceName(formattedResourceName)
+   *     .build();
+   *   AdScheduleView response = adScheduleViewServiceClient.getAdScheduleView(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AdScheduleView getAdScheduleView(GetAdScheduleViewRequest request) { + return getAdScheduleViewCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns the requested ad schedule view in full detail. + * + *

Sample code: + * + *


+   * try (AdScheduleViewServiceClient adScheduleViewServiceClient = AdScheduleViewServiceClient.create()) {
+   *   String formattedResourceName = AdScheduleViewServiceClient.formatAdScheduleViewName("[CUSTOMER]", "[AD_SCHEDULE_VIEW]");
+   *   GetAdScheduleViewRequest request = GetAdScheduleViewRequest.newBuilder()
+   *     .setResourceName(formattedResourceName)
+   *     .build();
+   *   ApiFuture<AdScheduleView> future = adScheduleViewServiceClient.getAdScheduleViewCallable().futureCall(request);
+   *   // Do something
+   *   AdScheduleView response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable getAdScheduleViewCallable() { + return stub.getAdScheduleViewCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdScheduleViewServiceGrpc.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdScheduleViewServiceGrpc.java new file mode 100644 index 0000000000..d854b49fd5 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdScheduleViewServiceGrpc.java @@ -0,0 +1,313 @@ +package com.google.ads.googleads.v0.services; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; +import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; +import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + *
+ * Service to fetch ad schedule views.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/ads/googleads/v0/services/ad_schedule_view_service.proto") +public final class AdScheduleViewServiceGrpc { + + private AdScheduleViewServiceGrpc() {} + + public static final String SERVICE_NAME = "google.ads.googleads.v0.services.AdScheduleViewService"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetAdScheduleViewMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_GET_AD_SCHEDULE_VIEW = getGetAdScheduleViewMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getGetAdScheduleViewMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getGetAdScheduleViewMethod() { + return getGetAdScheduleViewMethodHelper(); + } + + private static io.grpc.MethodDescriptor getGetAdScheduleViewMethodHelper() { + io.grpc.MethodDescriptor getGetAdScheduleViewMethod; + if ((getGetAdScheduleViewMethod = AdScheduleViewServiceGrpc.getGetAdScheduleViewMethod) == null) { + synchronized (AdScheduleViewServiceGrpc.class) { + if ((getGetAdScheduleViewMethod = AdScheduleViewServiceGrpc.getGetAdScheduleViewMethod) == null) { + AdScheduleViewServiceGrpc.getGetAdScheduleViewMethod = getGetAdScheduleViewMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.ads.googleads.v0.services.AdScheduleViewService", "GetAdScheduleView")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.ads.googleads.v0.services.GetAdScheduleViewRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.ads.googleads.v0.resources.AdScheduleView.getDefaultInstance())) + .setSchemaDescriptor(new AdScheduleViewServiceMethodDescriptorSupplier("GetAdScheduleView")) + .build(); + } + } + } + return getGetAdScheduleViewMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static AdScheduleViewServiceStub newStub(io.grpc.Channel channel) { + return new AdScheduleViewServiceStub(channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AdScheduleViewServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + return new AdScheduleViewServiceBlockingStub(channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static AdScheduleViewServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + return new AdScheduleViewServiceFutureStub(channel); + } + + /** + *
+   * Service to fetch ad schedule views.
+   * 
+ */ + public static abstract class AdScheduleViewServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Returns the requested ad schedule view in full detail.
+     * 
+ */ + public void getAdScheduleView(com.google.ads.googleads.v0.services.GetAdScheduleViewRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetAdScheduleViewMethodHelper(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetAdScheduleViewMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.ads.googleads.v0.services.GetAdScheduleViewRequest, + com.google.ads.googleads.v0.resources.AdScheduleView>( + this, METHODID_GET_AD_SCHEDULE_VIEW))) + .build(); + } + } + + /** + *
+   * Service to fetch ad schedule views.
+   * 
+ */ + public static final class AdScheduleViewServiceStub extends io.grpc.stub.AbstractStub { + private AdScheduleViewServiceStub(io.grpc.Channel channel) { + super(channel); + } + + private AdScheduleViewServiceStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdScheduleViewServiceStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new AdScheduleViewServiceStub(channel, callOptions); + } + + /** + *
+     * Returns the requested ad schedule view in full detail.
+     * 
+ */ + public void getAdScheduleView(com.google.ads.googleads.v0.services.GetAdScheduleViewRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetAdScheduleViewMethodHelper(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Service to fetch ad schedule views.
+   * 
+ */ + public static final class AdScheduleViewServiceBlockingStub extends io.grpc.stub.AbstractStub { + private AdScheduleViewServiceBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + private AdScheduleViewServiceBlockingStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdScheduleViewServiceBlockingStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new AdScheduleViewServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Returns the requested ad schedule view in full detail.
+     * 
+ */ + public com.google.ads.googleads.v0.resources.AdScheduleView getAdScheduleView(com.google.ads.googleads.v0.services.GetAdScheduleViewRequest request) { + return blockingUnaryCall( + getChannel(), getGetAdScheduleViewMethodHelper(), getCallOptions(), request); + } + } + + /** + *
+   * Service to fetch ad schedule views.
+   * 
+ */ + public static final class AdScheduleViewServiceFutureStub extends io.grpc.stub.AbstractStub { + private AdScheduleViewServiceFutureStub(io.grpc.Channel channel) { + super(channel); + } + + private AdScheduleViewServiceFutureStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdScheduleViewServiceFutureStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new AdScheduleViewServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Returns the requested ad schedule view in full detail.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getAdScheduleView( + com.google.ads.googleads.v0.services.GetAdScheduleViewRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetAdScheduleViewMethodHelper(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_AD_SCHEDULE_VIEW = 0; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AdScheduleViewServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(AdScheduleViewServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_AD_SCHEDULE_VIEW: + serviceImpl.getAdScheduleView((com.google.ads.googleads.v0.services.GetAdScheduleViewRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class AdScheduleViewServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AdScheduleViewServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.ads.googleads.v0.services.AdScheduleViewServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AdScheduleViewService"); + } + } + + private static final class AdScheduleViewServiceFileDescriptorSupplier + extends AdScheduleViewServiceBaseDescriptorSupplier { + AdScheduleViewServiceFileDescriptorSupplier() {} + } + + private static final class AdScheduleViewServiceMethodDescriptorSupplier + extends AdScheduleViewServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + AdScheduleViewServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (AdScheduleViewServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AdScheduleViewServiceFileDescriptorSupplier()) + .addMethod(getGetAdScheduleViewMethodHelper()) + .build(); + } + } + } + return result; + } +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdScheduleViewServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdScheduleViewServiceProto.java new file mode 100644 index 0000000000..e8ed518a87 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdScheduleViewServiceProto.java @@ -0,0 +1,81 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/ad_schedule_view_service.proto + +package com.google.ads.googleads.v0.services; + +public final class AdScheduleViewServiceProto { + private AdScheduleViewServiceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_services_GetAdScheduleViewRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_services_GetAdScheduleViewRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n?google/ads/googleads/v0/services/ad_sc" + + "hedule_view_service.proto\022 google.ads.go" + + "ogleads.v0.services\0328google/ads/googlead" + + "s/v0/resources/ad_schedule_view.proto\032\034g" + + "oogle/api/annotations.proto\"1\n\030GetAdSche" + + "duleViewRequest\022\025\n\rresource_name\030\001 \001(\t2\327" + + "\001\n\025AdScheduleViewService\022\275\001\n\021GetAdSchedu" + + "leView\022:.google.ads.googleads.v0.service" + + "s.GetAdScheduleViewRequest\0321.google.ads." + + "googleads.v0.resources.AdScheduleView\"9\202" + + "\323\344\223\0023\0221/v0/{resource_name=customers/*/ad" + + "ScheduleViews/*}B\201\002\n$com.google.ads.goog" + + "leads.v0.servicesB\032AdScheduleViewService" + + "ProtoP\001ZHgoogle.golang.org/genproto/goog" + + "leapis/ads/googleads/v0/services;service" + + "s\242\002\003GAA\252\002 Google.Ads.GoogleAds.V0.Servic" + + "es\312\002 Google\\Ads\\GoogleAds\\V0\\Services\352\002$" + + "Google::Ads::GoogleAds::V0::Servicesb\006pr" + + "oto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.googleads.v0.resources.AdScheduleViewProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }, assigner); + internal_static_google_ads_googleads_v0_services_GetAdScheduleViewRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_googleads_v0_services_GetAdScheduleViewRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_services_GetAdScheduleViewRequest_descriptor, + new java.lang.String[] { "ResourceName", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.ads.googleads.v0.resources.AdScheduleViewProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdScheduleViewServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdScheduleViewServiceSettings.java new file mode 100644 index 0000000000..de4112f875 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AdScheduleViewServiceSettings.java @@ -0,0 +1,177 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services; + +import com.google.ads.googleads.v0.resources.AdScheduleView; +import com.google.ads.googleads.v0.services.stub.AdScheduleViewServiceStubSettings; +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link AdScheduleViewServiceClient}. + * + *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of getAdScheduleView to 30 seconds: + * + *

+ * 
+ * AdScheduleViewServiceSettings.Builder adScheduleViewServiceSettingsBuilder =
+ *     AdScheduleViewServiceSettings.newBuilder();
+ * adScheduleViewServiceSettingsBuilder.getAdScheduleViewSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * AdScheduleViewServiceSettings adScheduleViewServiceSettings = adScheduleViewServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class AdScheduleViewServiceSettings extends ClientSettings { + /** Returns the object with the settings used for calls to getAdScheduleView. */ + public UnaryCallSettings getAdScheduleViewSettings() { + return ((AdScheduleViewServiceStubSettings) getStubSettings()).getAdScheduleViewSettings(); + } + + public static final AdScheduleViewServiceSettings create(AdScheduleViewServiceStubSettings stub) + throws IOException { + return new AdScheduleViewServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return AdScheduleViewServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return AdScheduleViewServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return AdScheduleViewServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return AdScheduleViewServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return AdScheduleViewServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return AdScheduleViewServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AdScheduleViewServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected AdScheduleViewServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for AdScheduleViewServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + protected Builder() throws IOException { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(AdScheduleViewServiceStubSettings.newBuilder(clientContext)); + } + + private static Builder createDefault() { + return new Builder(AdScheduleViewServiceStubSettings.newBuilder()); + } + + protected Builder(AdScheduleViewServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(AdScheduleViewServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + public AdScheduleViewServiceStubSettings.Builder getStubSettingsBuilder() { + return ((AdScheduleViewServiceStubSettings.Builder) getStubSettings()); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getAdScheduleView. */ + public UnaryCallSettings.Builder + getAdScheduleViewSettings() { + return getStubSettingsBuilder().getAdScheduleViewSettings(); + } + + @Override + public AdScheduleViewServiceSettings build() throws IOException { + return new AdScheduleViewServiceSettings(this); + } + } +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AgeRangeViewServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AgeRangeViewServiceClient.java index 34882197e8..47a7833c75 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AgeRangeViewServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AgeRangeViewServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -217,7 +217,7 @@ public final AgeRangeView getAgeRangeView(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final AgeRangeView getAgeRangeView(GetAgeRangeViewRequest request) { + public final AgeRangeView getAgeRangeView(GetAgeRangeViewRequest request) { return getAgeRangeViewCallable().call(request); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AgeRangeViewServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AgeRangeViewServiceProto.java index d37c87ded2..5f0473f60a 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AgeRangeViewServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AgeRangeViewServiceProto.java @@ -39,12 +39,13 @@ public static void registerAllExtensions( "ngeViewRequest\032/.google.ads.googleads.v0" + ".resources.AgeRangeView\"7\202\323\344\223\0021\022//v0/{re" + "source_name=customers/*/ageRangeViews/*}" + - "B\330\001\n$com.google.ads.googleads.v0.service" + + "B\377\001\n$com.google.ads.googleads.v0.service" + "sB\030AgeRangeViewServiceProtoP\001ZHgoogle.go" + "lang.org/genproto/googleapis/ads/googlea" + "ds/v0/services;services\242\002\003GAA\252\002 Google.A" + "ds.GoogleAds.V0.Services\312\002 Google\\Ads\\Go" + - "ogleAds\\V0\\Servicesb\006proto3" + "ogleAds\\V0\\Services\352\002$Google::Ads::Googl" + + "eAds::V0::Servicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AgeRangeViewServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AgeRangeViewServiceSettings.java index 28cdd8c44a..21787836df 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/AgeRangeViewServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/AgeRangeViewServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/ApplyRecommendationRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/ApplyRecommendationRequest.java index b4cc45a35a..b1f25bf55a 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/ApplyRecommendationRequest.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/ApplyRecommendationRequest.java @@ -21,8 +21,8 @@ private ApplyRecommendationRequest(com.google.protobuf.GeneratedMessageV3.Builde } private ApplyRecommendationRequest() { customerId_ = ""; - partialFailure_ = false; operations_ = java.util.Collections.emptyList(); + partialFailure_ = false; } @java.lang.Override @@ -56,9 +56,9 @@ private ApplyRecommendationRequest( break; } case 18: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { operations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000002; } operations_.add( input.readMessage(com.google.ads.googleads.v0.services.ApplyRecommendationOperation.parser(), extensionRegistry)); @@ -84,7 +84,7 @@ private ApplyRecommendationRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { operations_ = java.util.Collections.unmodifiableList(operations_); } this.unknownFields = unknownFields.build(); @@ -147,22 +147,6 @@ public java.lang.String getCustomerId() { } } - public static final int PARTIAL_FAILURE_FIELD_NUMBER = 3; - private boolean partialFailure_; - /** - *

-   * If true, successful operations will be carried out and invalid
-   * operations will return errors. If false, operations will be carried
-   * out as a transaction if and only if they are all valid.
-   * Default is false.
-   * 
- * - * bool partial_failure = 3; - */ - public boolean getPartialFailure() { - return partialFailure_; - } - public static final int OPERATIONS_FIELD_NUMBER = 2; private java.util.List operations_; /** @@ -228,6 +212,22 @@ public com.google.ads.googleads.v0.services.ApplyRecommendationOperationOrBuilde return operations_.get(index); } + public static final int PARTIAL_FAILURE_FIELD_NUMBER = 3; + private boolean partialFailure_; + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, operations will be carried
+   * out as a transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -289,10 +289,10 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getCustomerId() .equals(other.getCustomerId()); - result = result && (getPartialFailure() - == other.getPartialFailure()); result = result && getOperationsList() .equals(other.getOperationsList()); + result = result && (getPartialFailure() + == other.getPartialFailure()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -306,13 +306,13 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CUSTOMER_ID_FIELD_NUMBER; hash = (53 * hash) + getCustomerId().hashCode(); - hash = (37 * hash) + PARTIAL_FAILURE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPartialFailure()); if (getOperationsCount() > 0) { hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + getOperationsList().hashCode(); } + hash = (37 * hash) + PARTIAL_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPartialFailure()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -453,14 +453,14 @@ public Builder clear() { super.clear(); customerId_ = ""; - partialFailure_ = false; - if (operationsBuilder_ == null) { operations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } else { operationsBuilder_.clear(); } + partialFailure_ = false; + return this; } @@ -490,16 +490,16 @@ public com.google.ads.googleads.v0.services.ApplyRecommendationRequest buildPart int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.customerId_ = customerId_; - result.partialFailure_ = partialFailure_; if (operationsBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { operations_ = java.util.Collections.unmodifiableList(operations_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } result.operations_ = operations_; } else { result.operations_ = operationsBuilder_.build(); } + result.partialFailure_ = partialFailure_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -553,14 +553,11 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.ApplyRecommendatio customerId_ = other.customerId_; onChanged(); } - if (other.getPartialFailure() != false) { - setPartialFailure(other.getPartialFailure()); - } if (operationsBuilder_ == null) { if (!other.operations_.isEmpty()) { if (operations_.isEmpty()) { operations_ = other.operations_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureOperationsIsMutable(); operations_.addAll(other.operations_); @@ -573,7 +570,7 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.ApplyRecommendatio operationsBuilder_.dispose(); operationsBuilder_ = null; operations_ = other.operations_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); operationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOperationsFieldBuilder() : null; @@ -582,6 +579,9 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.ApplyRecommendatio } } } + if (other.getPartialFailure() != false) { + setPartialFailure(other.getPartialFailure()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -701,59 +701,12 @@ public Builder setCustomerIdBytes( return this; } - private boolean partialFailure_ ; - /** - *
-     * If true, successful operations will be carried out and invalid
-     * operations will return errors. If false, operations will be carried
-     * out as a transaction if and only if they are all valid.
-     * Default is false.
-     * 
- * - * bool partial_failure = 3; - */ - public boolean getPartialFailure() { - return partialFailure_; - } - /** - *
-     * If true, successful operations will be carried out and invalid
-     * operations will return errors. If false, operations will be carried
-     * out as a transaction if and only if they are all valid.
-     * Default is false.
-     * 
- * - * bool partial_failure = 3; - */ - public Builder setPartialFailure(boolean value) { - - partialFailure_ = value; - onChanged(); - return this; - } - /** - *
-     * If true, successful operations will be carried out and invalid
-     * operations will return errors. If false, operations will be carried
-     * out as a transaction if and only if they are all valid.
-     * Default is false.
-     * 
- * - * bool partial_failure = 3; - */ - public Builder clearPartialFailure() { - - partialFailure_ = false; - onChanged(); - return this; - } - private java.util.List operations_ = java.util.Collections.emptyList(); private void ensureOperationsIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { operations_ = new java.util.ArrayList(operations_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } @@ -969,7 +922,7 @@ public Builder addAllOperations( public Builder clearOperations() { if (operationsBuilder_ == null) { operations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { operationsBuilder_.clear(); @@ -1088,13 +1041,60 @@ public com.google.ads.googleads.v0.services.ApplyRecommendationOperation.Builder operationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v0.services.ApplyRecommendationOperation, com.google.ads.googleads.v0.services.ApplyRecommendationOperation.Builder, com.google.ads.googleads.v0.services.ApplyRecommendationOperationOrBuilder>( operations_, - ((bitField0_ & 0x00000004) == 0x00000004), + ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); operations_ = null; } return operationsBuilder_; } + + private boolean partialFailure_ ; + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, operations will be carried
+     * out as a transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, operations will be carried
+     * out as a transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder setPartialFailure(boolean value) { + + partialFailure_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, operations will be carried
+     * out as a transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder clearPartialFailure() { + + partialFailure_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/ApplyRecommendationRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/ApplyRecommendationRequestOrBuilder.java index e707d1e263..64a419a8b9 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/ApplyRecommendationRequestOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/ApplyRecommendationRequestOrBuilder.java @@ -25,18 +25,6 @@ public interface ApplyRecommendationRequestOrBuilder extends com.google.protobuf.ByteString getCustomerIdBytes(); - /** - *
-   * If true, successful operations will be carried out and invalid
-   * operations will return errors. If false, operations will be carried
-   * out as a transaction if and only if they are all valid.
-   * Default is false.
-   * 
- * - * bool partial_failure = 3; - */ - boolean getPartialFailure(); - /** *
    * The list of operations to apply recommendations.
@@ -90,4 +78,16 @@ public interface ApplyRecommendationRequestOrBuilder extends
    */
   com.google.ads.googleads.v0.services.ApplyRecommendationOperationOrBuilder getOperationsOrBuilder(
       int index);
+
+  /**
+   * 
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, operations will be carried
+   * out as a transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + boolean getPartialFailure(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/BiddingStrategyServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/BiddingStrategyServiceClient.java index 04556a2cbc..5615af4b38 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/BiddingStrategyServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/BiddingStrategyServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -221,7 +221,7 @@ public final BiddingStrategy getBiddingStrategy(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final BiddingStrategy getBiddingStrategy(GetBiddingStrategyRequest request) { + public final BiddingStrategy getBiddingStrategy(GetBiddingStrategyRequest request) { return getBiddingStrategyCallable().call(request); } @@ -248,6 +248,47 @@ private final BiddingStrategy getBiddingStrategy(GetBiddingStrategyRequest reque return stub.getBiddingStrategyCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates, updates, or removes bidding strategies. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (BiddingStrategyServiceClient biddingStrategyServiceClient = BiddingStrategyServiceClient.create()) {
+   *   String customerId = "";
+   *   List<BiddingStrategyOperation> operations = new ArrayList<>();
+   *   boolean partialFailure = false;
+   *   boolean validateOnly = false;
+   *   MutateBiddingStrategiesResponse response = biddingStrategyServiceClient.mutateBiddingStrategies(customerId, operations, partialFailure, validateOnly);
+   * }
+   * 
+ * + * @param customerId The ID of the customer whose bidding strategies are being modified. + * @param operations The list of operations to perform on individual bidding strategies. + * @param partialFailure If true, successful operations will be carried out and invalid operations + * will return errors. If false, all operations will be carried out in one transaction if and + * only if they are all valid. Default is false. + * @param validateOnly If true, the request is validated but not executed. Only errors are + * returned, not results. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateBiddingStrategiesResponse mutateBiddingStrategies( + String customerId, + List operations, + boolean partialFailure, + boolean validateOnly) { + + MutateBiddingStrategiesRequest request = + MutateBiddingStrategiesRequest.newBuilder() + .setCustomerId(customerId) + .addAllOperations(operations) + .setPartialFailure(partialFailure) + .setValidateOnly(validateOnly) + .build(); + return mutateBiddingStrategies(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Creates, updates, or removes bidding strategies. Operation statuses are returned. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/BiddingStrategyServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/BiddingStrategyServiceProto.java index ca73ac55d6..89b9dc4f48 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/BiddingStrategyServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/BiddingStrategyServiceProto.java @@ -53,39 +53,44 @@ public static void registerAllExtensions( "ogleads.v0.services\0328google/ads/googlead" + "s/v0/resources/bidding_strategy.proto\032\034g" + "oogle/api/annotations.proto\032 google/prot" + - "obuf/field_mask.proto\"2\n\031GetBiddingStrat" + - "egyRequest\022\025\n\rresource_name\030\001 \001(\t\"\205\001\n\036Mu" + - "tateBiddingStrategiesRequest\022\023\n\013customer" + - "_id\030\001 \001(\t\022N\n\noperations\030\002 \003(\0132:.google.a" + - "ds.googleads.v0.services.BiddingStrategy" + - "Operation\"\366\001\n\030BiddingStrategyOperation\022/" + - "\n\013update_mask\030\004 \001(\0132\032.google.protobuf.Fi" + - "eldMask\022D\n\006create\030\001 \001(\01322.google.ads.goo" + - "gleads.v0.resources.BiddingStrategyH\000\022D\n" + - "\006update\030\002 \001(\01322.google.ads.googleads.v0." + - "resources.BiddingStrategyH\000\022\020\n\006remove\030\003 " + - "\001(\tH\000B\013\n\toperation\"q\n\037MutateBiddingStrat" + - "egiesResponse\022N\n\007results\030\002 \003(\0132=.google." + - "ads.googleads.v0.services.MutateBiddingS" + - "trategyResult\"4\n\033MutateBiddingStrategyRe" + - "sult\022\025\n\rresource_name\030\001 \001(\t2\301\003\n\026BiddingS" + - "trategyService\022\302\001\n\022GetBiddingStrategy\022;." + - "google.ads.googleads.v0.services.GetBidd" + - "ingStrategyRequest\0322.google.ads.googlead" + - "s.v0.resources.BiddingStrategy\";\202\323\344\223\0025\0223" + - "/v0/{resource_name=customers/*/biddingSt" + - "rategies/*}\022\341\001\n\027MutateBiddingStrategies\022" + - "@.google.ads.googleads.v0.services.Mutat" + - "eBiddingStrategiesRequest\032A.google.ads.g" + - "oogleads.v0.services.MutateBiddingStrate" + - "giesResponse\"A\202\323\344\223\002;\"6/v0/customers/{cus" + - "tomer_id=*}/biddingStrategies:mutate:\001*B" + - "\333\001\n$com.google.ads.googleads.v0.services" + - "B\033BiddingStrategyServiceProtoP\001ZHgoogle." + - "golang.org/genproto/googleapis/ads/googl" + - "eads/v0/services;services\242\002\003GAA\252\002 Google" + - ".Ads.GoogleAds.V0.Services\312\002 Google\\Ads\\" + - "GoogleAds\\V0\\Servicesb\006proto3" + "obuf/field_mask.proto\032\036google/protobuf/w" + + "rappers.proto\032\027google/rpc/status.proto\"2" + + "\n\031GetBiddingStrategyRequest\022\025\n\rresource_" + + "name\030\001 \001(\t\"\265\001\n\036MutateBiddingStrategiesRe" + + "quest\022\023\n\013customer_id\030\001 \001(\t\022N\n\noperations" + + "\030\002 \003(\0132:.google.ads.googleads.v0.service" + + "s.BiddingStrategyOperation\022\027\n\017partial_fa" + + "ilure\030\003 \001(\010\022\025\n\rvalidate_only\030\004 \001(\010\"\366\001\n\030B" + + "iddingStrategyOperation\022/\n\013update_mask\030\004" + + " \001(\0132\032.google.protobuf.FieldMask\022D\n\006crea" + + "te\030\001 \001(\01322.google.ads.googleads.v0.resou" + + "rces.BiddingStrategyH\000\022D\n\006update\030\002 \001(\01322" + + ".google.ads.googleads.v0.resources.Biddi" + + "ngStrategyH\000\022\020\n\006remove\030\003 \001(\tH\000B\013\n\toperat" + + "ion\"\244\001\n\037MutateBiddingStrategiesResponse\022" + + "1\n\025partial_failure_error\030\003 \001(\0132\022.google." + + "rpc.Status\022N\n\007results\030\002 \003(\0132=.google.ads" + + ".googleads.v0.services.MutateBiddingStra" + + "tegyResult\"4\n\033MutateBiddingStrategyResul" + + "t\022\025\n\rresource_name\030\001 \001(\t2\301\003\n\026BiddingStra" + + "tegyService\022\302\001\n\022GetBiddingStrategy\022;.goo" + + "gle.ads.googleads.v0.services.GetBidding" + + "StrategyRequest\0322.google.ads.googleads.v" + + "0.resources.BiddingStrategy\";\202\323\344\223\0025\0223/v0" + + "/{resource_name=customers/*/biddingStrat" + + "egies/*}\022\341\001\n\027MutateBiddingStrategies\022@.g" + + "oogle.ads.googleads.v0.services.MutateBi" + + "ddingStrategiesRequest\032A.google.ads.goog" + + "leads.v0.services.MutateBiddingStrategie" + + "sResponse\"A\202\323\344\223\002;\"6/v0/customers/{custom" + + "er_id=*}/biddingStrategies:mutate:\001*B\202\002\n" + + "$com.google.ads.googleads.v0.servicesB\033B" + + "iddingStrategyServiceProtoP\001ZHgoogle.gol" + + "ang.org/genproto/googleapis/ads/googlead" + + "s/v0/services;services\242\002\003GAA\252\002 Google.Ad" + + "s.GoogleAds.V0.Services\312\002 Google\\Ads\\Goo" + + "gleAds\\V0\\Services\352\002$Google::Ads::Google" + + "Ads::V0::Servicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -101,6 +106,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.BiddingStrategyProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), }, assigner); internal_static_google_ads_googleads_v0_services_GetBiddingStrategyRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -113,7 +120,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateBiddingStrategiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateBiddingStrategiesRequest_descriptor, - new java.lang.String[] { "CustomerId", "Operations", }); + new java.lang.String[] { "CustomerId", "Operations", "PartialFailure", "ValidateOnly", }); internal_static_google_ads_googleads_v0_services_BiddingStrategyOperation_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_ads_googleads_v0_services_BiddingStrategyOperation_fieldAccessorTable = new @@ -125,7 +132,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateBiddingStrategiesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateBiddingStrategiesResponse_descriptor, - new java.lang.String[] { "Results", }); + new java.lang.String[] { "PartialFailureError", "Results", }); internal_static_google_ads_googleads_v0_services_MutateBiddingStrategyResult_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_google_ads_googleads_v0_services_MutateBiddingStrategyResult_fieldAccessorTable = new @@ -140,6 +147,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.BiddingStrategyProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/BiddingStrategyServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/BiddingStrategyServiceSettings.java index f95494ff72..fb2da2242e 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/BiddingStrategyServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/BiddingStrategyServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/BillingSetupServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/BillingSetupServiceClient.java index bcd6a0949f..9a0630fc08 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/BillingSetupServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/BillingSetupServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -222,7 +222,7 @@ public final BillingSetup getBillingSetup(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final BillingSetup getBillingSetup(GetBillingSetupRequest request) { + public final BillingSetup getBillingSetup(GetBillingSetupRequest request) { return getBillingSetupCallable().call(request); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/BillingSetupServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/BillingSetupServiceProto.java index 4cb0531d73..ca1e188911 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/BillingSetupServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/BillingSetupServiceProto.java @@ -74,12 +74,13 @@ public static void registerAllExtensions( "pRequest\032<.google.ads.googleads.v0.servi" + "ces.MutateBillingSetupResponse\"=\202\323\344\223\0027\"2" + "/v0/customers/{customer_id=*}/billingSet" + - "ups:mutate:\001*B\330\001\n$com.google.ads.googlea" + + "ups:mutate:\001*B\377\001\n$com.google.ads.googlea" + "ds.v0.servicesB\030BillingSetupServiceProto" + "P\001ZHgoogle.golang.org/genproto/googleapi" + "s/ads/googleads/v0/services;services\242\002\003G" + "AA\252\002 Google.Ads.GoogleAds.V0.Services\312\002 " + - "Google\\Ads\\GoogleAds\\V0\\Servicesb\006proto3" + "Google\\Ads\\GoogleAds\\V0\\Services\352\002$Googl" + + "e::Ads::GoogleAds::V0::Servicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/BillingSetupServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/BillingSetupServiceSettings.java index 4a0f1535e6..b83da05818 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/BillingSetupServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/BillingSetupServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignAudienceViewServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignAudienceViewServiceClient.java index de5400b7f3..d96fcbbf20 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignAudienceViewServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignAudienceViewServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -227,7 +227,7 @@ public final CampaignAudienceView getCampaignAudienceView(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final CampaignAudienceView getCampaignAudienceView( + public final CampaignAudienceView getCampaignAudienceView( GetCampaignAudienceViewRequest request) { return getCampaignAudienceViewCallable().call(request); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignAudienceViewServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignAudienceViewServiceProto.java index fb75eeab06..769466676e 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignAudienceViewServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignAudienceViewServiceProto.java @@ -40,13 +40,14 @@ public static void registerAllExtensions( "ignAudienceViewRequest\0327.google.ads.goog" + "leads.v0.resources.CampaignAudienceView\"" + "?\202\323\344\223\0029\0227/v0/{resource_name=customers/*/" + - "campaignAudienceViews/*}B\340\001\n$com.google." + + "campaignAudienceViews/*}B\207\002\n$com.google." + "ads.googleads.v0.servicesB CampaignAudie" + "nceViewServiceProtoP\001ZHgoogle.golang.org" + "/genproto/googleapis/ads/googleads/v0/se" + "rvices;services\242\002\003GAA\252\002 Google.Ads.Googl" + "eAds.V0.Services\312\002 Google\\Ads\\GoogleAds\\" + - "V0\\Servicesb\006proto3" + "V0\\Services\352\002$Google::Ads::GoogleAds::V0" + + "::Servicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignAudienceViewServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignAudienceViewServiceSettings.java index 01e97657cb..249fc22db5 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignAudienceViewServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignAudienceViewServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignBidModifierServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignBidModifierServiceClient.java index 99ce0cdae8..84e39fca8f 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignBidModifierServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignBidModifierServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -227,7 +227,7 @@ public final CampaignBidModifier getCampaignBidModifier(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final CampaignBidModifier getCampaignBidModifier(GetCampaignBidModifierRequest request) { + public final CampaignBidModifier getCampaignBidModifier(GetCampaignBidModifierRequest request) { return getCampaignBidModifierCallable().call(request); } @@ -254,6 +254,47 @@ private final CampaignBidModifier getCampaignBidModifier(GetCampaignBidModifierR return stub.getCampaignBidModifierCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates, updates, or removes campaign bid modifiers. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (CampaignBidModifierServiceClient campaignBidModifierServiceClient = CampaignBidModifierServiceClient.create()) {
+   *   String customerId = "";
+   *   List<CampaignBidModifierOperation> operations = new ArrayList<>();
+   *   boolean partialFailure = false;
+   *   boolean validateOnly = false;
+   *   MutateCampaignBidModifiersResponse response = campaignBidModifierServiceClient.mutateCampaignBidModifiers(customerId, operations, partialFailure, validateOnly);
+   * }
+   * 
+ * + * @param customerId ID of the customer whose campaign bid modifiers are being modified. + * @param operations The list of operations to perform on individual campaign bid modifiers. + * @param partialFailure If true, successful operations will be carried out and invalid operations + * will return errors. If false, all operations will be carried out in one transaction if and + * only if they are all valid. Default is false. + * @param validateOnly If true, the request is validated but not executed. Only errors are + * returned, not results. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateCampaignBidModifiersResponse mutateCampaignBidModifiers( + String customerId, + List operations, + boolean partialFailure, + boolean validateOnly) { + + MutateCampaignBidModifiersRequest request = + MutateCampaignBidModifiersRequest.newBuilder() + .setCustomerId(customerId) + .addAllOperations(operations) + .setPartialFailure(partialFailure) + .setValidateOnly(validateOnly) + .build(); + return mutateCampaignBidModifiers(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Creates, updates, or removes campaign bid modifiers. Operation statuses are returned. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignBidModifierServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignBidModifierServiceProto.java index 20ebe24f89..4fdb5389fb 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignBidModifierServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignBidModifierServiceProto.java @@ -53,41 +53,46 @@ public static void registerAllExtensions( "ds.googleads.v0.services\032=google/ads/goo" + "gleads/v0/resources/campaign_bid_modifie" + "r.proto\032\034google/api/annotations.proto\032 g" + - "oogle/protobuf/field_mask.proto\"6\n\035GetCa" + - "mpaignBidModifierRequest\022\025\n\rresource_nam" + - "e\030\001 \001(\t\"\214\001\n!MutateCampaignBidModifiersRe" + - "quest\022\023\n\013customer_id\030\001 \001(\t\022R\n\noperations" + - "\030\002 \003(\0132>.google.ads.googleads.v0.service" + - "s.CampaignBidModifierOperation\"\202\002\n\034Campa" + - "ignBidModifierOperation\022/\n\013update_mask\030\004" + - " \001(\0132\032.google.protobuf.FieldMask\022H\n\006crea" + - "te\030\001 \001(\01326.google.ads.googleads.v0.resou" + - "rces.CampaignBidModifierH\000\022H\n\006update\030\002 \001" + - "(\01326.google.ads.googleads.v0.resources.C" + - "ampaignBidModifierH\000\022\020\n\006remove\030\003 \001(\tH\000B\013" + - "\n\toperation\"x\n\"MutateCampaignBidModifier" + - "sResponse\022R\n\007results\030\002 \003(\0132A.google.ads." + - "googleads.v0.services.MutateCampaignBidM" + - "odifierResult\"8\n\037MutateCampaignBidModifi" + - "erResult\022\025\n\rresource_name\030\001 \001(\t2\340\003\n\032Camp" + - "aignBidModifierService\022\321\001\n\026GetCampaignBi" + - "dModifier\022?.google.ads.googleads.v0.serv" + - "ices.GetCampaignBidModifierRequest\0326.goo" + - "gle.ads.googleads.v0.resources.CampaignB" + - "idModifier\">\202\323\344\223\0028\0226/v0/{resource_name=c" + - "ustomers/*/campaignBidModifiers/*}\022\355\001\n\032M" + - "utateCampaignBidModifiers\022C.google.ads.g" + - "oogleads.v0.services.MutateCampaignBidMo" + - "difiersRequest\032D.google.ads.googleads.v0" + - ".services.MutateCampaignBidModifiersResp" + - "onse\"D\202\323\344\223\002>\"9/v0/customers/{customer_id" + - "=*}/campaignBidModifiers:mutate:\001*B\337\001\n$c" + - "om.google.ads.googleads.v0.servicesB\037Cam" + - "paignBidModifierServiceProtoP\001ZHgoogle.g" + - "olang.org/genproto/googleapis/ads/google" + - "ads/v0/services;services\242\002\003GAA\252\002 Google." + - "Ads.GoogleAds.V0.Services\312\002 Google\\Ads\\G" + - "oogleAds\\V0\\Servicesb\006proto3" + "oogle/protobuf/field_mask.proto\032\036google/" + + "protobuf/wrappers.proto\032\027google/rpc/stat" + + "us.proto\"6\n\035GetCampaignBidModifierReques" + + "t\022\025\n\rresource_name\030\001 \001(\t\"\274\001\n!MutateCampa" + + "ignBidModifiersRequest\022\023\n\013customer_id\030\001 " + + "\001(\t\022R\n\noperations\030\002 \003(\0132>.google.ads.goo" + + "gleads.v0.services.CampaignBidModifierOp" + + "eration\022\027\n\017partial_failure\030\003 \001(\010\022\025\n\rvali" + + "date_only\030\004 \001(\010\"\202\002\n\034CampaignBidModifierO" + + "peration\022/\n\013update_mask\030\004 \001(\0132\032.google.p" + + "rotobuf.FieldMask\022H\n\006create\030\001 \001(\01326.goog" + + "le.ads.googleads.v0.resources.CampaignBi" + + "dModifierH\000\022H\n\006update\030\002 \001(\01326.google.ads" + + ".googleads.v0.resources.CampaignBidModif" + + "ierH\000\022\020\n\006remove\030\003 \001(\tH\000B\013\n\toperation\"\253\001\n" + + "\"MutateCampaignBidModifiersResponse\0221\n\025p" + + "artial_failure_error\030\003 \001(\0132\022.google.rpc." + + "Status\022R\n\007results\030\002 \003(\0132A.google.ads.goo" + + "gleads.v0.services.MutateCampaignBidModi" + + "fierResult\"8\n\037MutateCampaignBidModifierR" + + "esult\022\025\n\rresource_name\030\001 \001(\t2\340\003\n\032Campaig" + + "nBidModifierService\022\321\001\n\026GetCampaignBidMo" + + "difier\022?.google.ads.googleads.v0.service" + + "s.GetCampaignBidModifierRequest\0326.google" + + ".ads.googleads.v0.resources.CampaignBidM" + + "odifier\">\202\323\344\223\0028\0226/v0/{resource_name=cust" + + "omers/*/campaignBidModifiers/*}\022\355\001\n\032Muta" + + "teCampaignBidModifiers\022C.google.ads.goog" + + "leads.v0.services.MutateCampaignBidModif" + + "iersRequest\032D.google.ads.googleads.v0.se" + + "rvices.MutateCampaignBidModifiersRespons" + + "e\"D\202\323\344\223\002>\"9/v0/customers/{customer_id=*}" + + "/campaignBidModifiers:mutate:\001*B\206\002\n$com." + + "google.ads.googleads.v0.servicesB\037Campai" + + "gnBidModifierServiceProtoP\001ZHgoogle.gola" + + "ng.org/genproto/googleapis/ads/googleads" + + "/v0/services;services\242\002\003GAA\252\002 Google.Ads" + + ".GoogleAds.V0.Services\312\002 Google\\Ads\\Goog" + + "leAds\\V0\\Services\352\002$Google::Ads::GoogleA" + + "ds::V0::Servicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -103,6 +108,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.CampaignBidModifierProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), }, assigner); internal_static_google_ads_googleads_v0_services_GetCampaignBidModifierRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -115,7 +122,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateCampaignBidModifiersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateCampaignBidModifiersRequest_descriptor, - new java.lang.String[] { "CustomerId", "Operations", }); + new java.lang.String[] { "CustomerId", "Operations", "PartialFailure", "ValidateOnly", }); internal_static_google_ads_googleads_v0_services_CampaignBidModifierOperation_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_ads_googleads_v0_services_CampaignBidModifierOperation_fieldAccessorTable = new @@ -127,7 +134,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateCampaignBidModifiersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateCampaignBidModifiersResponse_descriptor, - new java.lang.String[] { "Results", }); + new java.lang.String[] { "PartialFailureError", "Results", }); internal_static_google_ads_googleads_v0_services_MutateCampaignBidModifierResult_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_google_ads_googleads_v0_services_MutateCampaignBidModifierResult_fieldAccessorTable = new @@ -142,6 +149,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.CampaignBidModifierProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignBidModifierServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignBidModifierServiceSettings.java index 2577b1ef00..3fe66bf34a 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignBidModifierServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignBidModifierServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignBudgetServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignBudgetServiceClient.java index 956bfef134..f8e878b1d7 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignBudgetServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignBudgetServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -219,7 +219,7 @@ public final CampaignBudget getCampaignBudget(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final CampaignBudget getCampaignBudget(GetCampaignBudgetRequest request) { + public final CampaignBudget getCampaignBudget(GetCampaignBudgetRequest request) { return getCampaignBudgetCallable().call(request); } @@ -245,6 +245,47 @@ public final UnaryCallable getCampaign return stub.getCampaignBudgetCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates, updates, or removes campaign budgets. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (CampaignBudgetServiceClient campaignBudgetServiceClient = CampaignBudgetServiceClient.create()) {
+   *   String customerId = "";
+   *   List<CampaignBudgetOperation> operations = new ArrayList<>();
+   *   boolean partialFailure = false;
+   *   boolean validateOnly = false;
+   *   MutateCampaignBudgetsResponse response = campaignBudgetServiceClient.mutateCampaignBudgets(customerId, operations, partialFailure, validateOnly);
+   * }
+   * 
+ * + * @param customerId The ID of the customer whose campaign budgets are being modified. + * @param operations The list of operations to perform on individual campaign budgets. + * @param partialFailure If true, successful operations will be carried out and invalid operations + * will return errors. If false, all operations will be carried out in one transaction if and + * only if they are all valid. Default is false. + * @param validateOnly If true, the request is validated but not executed. Only errors are + * returned, not results. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateCampaignBudgetsResponse mutateCampaignBudgets( + String customerId, + List operations, + boolean partialFailure, + boolean validateOnly) { + + MutateCampaignBudgetsRequest request = + MutateCampaignBudgetsRequest.newBuilder() + .setCustomerId(customerId) + .addAllOperations(operations) + .setPartialFailure(partialFailure) + .setValidateOnly(validateOnly) + .build(); + return mutateCampaignBudgets(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Creates, updates, or removes campaign budgets. Operation statuses are returned. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignBudgetServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignBudgetServiceProto.java index 3da3b248fd..bdddb04b4a 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignBudgetServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignBudgetServiceProto.java @@ -53,39 +53,43 @@ public static void registerAllExtensions( "gleads.v0.services\0327google/ads/googleads" + "/v0/resources/campaign_budget.proto\032\034goo" + "gle/api/annotations.proto\032 google/protob" + - "uf/field_mask.proto\"1\n\030GetCampaignBudget" + - "Request\022\025\n\rresource_name\030\001 \001(\t\"\202\001\n\034Mutat" + - "eCampaignBudgetsRequest\022\023\n\013customer_id\030\001" + - " \001(\t\022M\n\noperations\030\002 \003(\01329.google.ads.go" + - "ogleads.v0.services.CampaignBudgetOperat" + - "ion\"\363\001\n\027CampaignBudgetOperation\022/\n\013updat" + - "e_mask\030\004 \001(\0132\032.google.protobuf.FieldMask" + - "\022C\n\006create\030\001 \001(\01321.google.ads.googleads." + - "v0.resources.CampaignBudgetH\000\022C\n\006update\030" + - "\002 \001(\01321.google.ads.googleads.v0.resource" + - "s.CampaignBudgetH\000\022\020\n\006remove\030\003 \001(\tH\000B\013\n\t" + - "operation\"n\n\035MutateCampaignBudgetsRespon" + - "se\022M\n\007results\030\002 \003(\0132<.google.ads.googlea" + - "ds.v0.services.MutateCampaignBudgetResul" + - "t\"3\n\032MutateCampaignBudgetResult\022\025\n\rresou" + - "rce_name\030\001 \001(\t2\263\003\n\025CampaignBudgetService" + - "\022\275\001\n\021GetCampaignBudget\022:.google.ads.goog" + - "leads.v0.services.GetCampaignBudgetReque" + - "st\0321.google.ads.googleads.v0.resources.C" + - "ampaignBudget\"9\202\323\344\223\0023\0221/v0/{resource_nam" + - "e=customers/*/campaignBudgets/*}\022\331\001\n\025Mut" + - "ateCampaignBudgets\022>.google.ads.googlead" + - "s.v0.services.MutateCampaignBudgetsReque" + - "st\032?.google.ads.googleads.v0.services.Mu" + - "tateCampaignBudgetsResponse\"?\202\323\344\223\0029\"4/v0" + - "/customers/{customer_id=*}/campaignBudge" + - "ts:mutate:\001*B\332\001\n$com.google.ads.googlead" + - "s.v0.servicesB\032CampaignBudgetServiceProt" + - "oP\001ZHgoogle.golang.org/genproto/googleap" + - "is/ads/googleads/v0/services;services\242\002\003" + - "GAA\252\002 Google.Ads.GoogleAds.V0.Services\312\002" + - " Google\\Ads\\GoogleAds\\V0\\Servicesb\006proto" + - "3" + "uf/field_mask.proto\032\036google/protobuf/wra" + + "ppers.proto\032\027google/rpc/status.proto\"1\n\030" + + "GetCampaignBudgetRequest\022\025\n\rresource_nam" + + "e\030\001 \001(\t\"\262\001\n\034MutateCampaignBudgetsRequest" + + "\022\023\n\013customer_id\030\001 \001(\t\022M\n\noperations\030\002 \003(" + + "\01329.google.ads.googleads.v0.services.Cam" + + "paignBudgetOperation\022\027\n\017partial_failure\030" + + "\003 \001(\010\022\025\n\rvalidate_only\030\004 \001(\010\"\363\001\n\027Campaig" + + "nBudgetOperation\022/\n\013update_mask\030\004 \001(\0132\032." + + "google.protobuf.FieldMask\022C\n\006create\030\001 \001(" + + "\01321.google.ads.googleads.v0.resources.Ca" + + "mpaignBudgetH\000\022C\n\006update\030\002 \001(\01321.google." + + "ads.googleads.v0.resources.CampaignBudge" + + "tH\000\022\020\n\006remove\030\003 \001(\tH\000B\013\n\toperation\"\241\001\n\035M" + + "utateCampaignBudgetsResponse\0221\n\025partial_" + + "failure_error\030\003 \001(\0132\022.google.rpc.Status\022" + + "M\n\007results\030\002 \003(\0132<.google.ads.googleads." + + "v0.services.MutateCampaignBudgetResult\"3" + + "\n\032MutateCampaignBudgetResult\022\025\n\rresource" + + "_name\030\001 \001(\t2\263\003\n\025CampaignBudgetService\022\275\001" + + "\n\021GetCampaignBudget\022:.google.ads.googlea" + + "ds.v0.services.GetCampaignBudgetRequest\032" + + "1.google.ads.googleads.v0.resources.Camp" + + "aignBudget\"9\202\323\344\223\0023\0221/v0/{resource_name=c" + + "ustomers/*/campaignBudgets/*}\022\331\001\n\025Mutate" + + "CampaignBudgets\022>.google.ads.googleads.v" + + "0.services.MutateCampaignBudgetsRequest\032" + + "?.google.ads.googleads.v0.services.Mutat" + + "eCampaignBudgetsResponse\"?\202\323\344\223\0029\"4/v0/cu" + + "stomers/{customer_id=*}/campaignBudgets:" + + "mutate:\001*B\201\002\n$com.google.ads.googleads.v" + + "0.servicesB\032CampaignBudgetServiceProtoP\001" + + "ZHgoogle.golang.org/genproto/googleapis/" + + "ads/googleads/v0/services;services\242\002\003GAA" + + "\252\002 Google.Ads.GoogleAds.V0.Services\312\002 Go" + + "ogle\\Ads\\GoogleAds\\V0\\Services\352\002$Google:" + + ":Ads::GoogleAds::V0::Servicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -101,6 +105,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.CampaignBudgetProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), }, assigner); internal_static_google_ads_googleads_v0_services_GetCampaignBudgetRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -113,7 +119,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateCampaignBudgetsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateCampaignBudgetsRequest_descriptor, - new java.lang.String[] { "CustomerId", "Operations", }); + new java.lang.String[] { "CustomerId", "Operations", "PartialFailure", "ValidateOnly", }); internal_static_google_ads_googleads_v0_services_CampaignBudgetOperation_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_ads_googleads_v0_services_CampaignBudgetOperation_fieldAccessorTable = new @@ -125,7 +131,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateCampaignBudgetsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateCampaignBudgetsResponse_descriptor, - new java.lang.String[] { "Results", }); + new java.lang.String[] { "PartialFailureError", "Results", }); internal_static_google_ads_googleads_v0_services_MutateCampaignBudgetResult_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_google_ads_googleads_v0_services_MutateCampaignBudgetResult_fieldAccessorTable = new @@ -140,6 +146,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.CampaignBudgetProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignBudgetServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignBudgetServiceSettings.java index 088efe14c7..f5b9d5abd9 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignBudgetServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignBudgetServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignCriterionServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignCriterionServiceClient.java index fc9c992f75..dc0f1197b9 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignCriterionServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignCriterionServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -222,7 +222,7 @@ public final CampaignCriterion getCampaignCriterion(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final CampaignCriterion getCampaignCriterion(GetCampaignCriterionRequest request) { + public final CampaignCriterion getCampaignCriterion(GetCampaignCriterionRequest request) { return getCampaignCriterionCallable().call(request); } @@ -249,6 +249,47 @@ private final CampaignCriterion getCampaignCriterion(GetCampaignCriterionRequest return stub.getCampaignCriterionCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates, updates, or removes criteria. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (CampaignCriterionServiceClient campaignCriterionServiceClient = CampaignCriterionServiceClient.create()) {
+   *   String customerId = "";
+   *   List<CampaignCriterionOperation> operations = new ArrayList<>();
+   *   boolean partialFailure = false;
+   *   boolean validateOnly = false;
+   *   MutateCampaignCriteriaResponse response = campaignCriterionServiceClient.mutateCampaignCriteria(customerId, operations, partialFailure, validateOnly);
+   * }
+   * 
+ * + * @param customerId The ID of the customer whose criteria are being modified. + * @param operations The list of operations to perform on individual criteria. + * @param partialFailure If true, successful operations will be carried out and invalid operations + * will return errors. If false, all operations will be carried out in one transaction if and + * only if they are all valid. Default is false. + * @param validateOnly If true, the request is validated but not executed. Only errors are + * returned, not results. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateCampaignCriteriaResponse mutateCampaignCriteria( + String customerId, + List operations, + boolean partialFailure, + boolean validateOnly) { + + MutateCampaignCriteriaRequest request = + MutateCampaignCriteriaRequest.newBuilder() + .setCustomerId(customerId) + .addAllOperations(operations) + .setPartialFailure(partialFailure) + .setValidateOnly(validateOnly) + .build(); + return mutateCampaignCriteria(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Creates, updates, or removes criteria. Operation statuses are returned. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignCriterionServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignCriterionServiceProto.java index 7a0b96b7ca..6317a33bd0 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignCriterionServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignCriterionServiceProto.java @@ -53,40 +53,45 @@ public static void registerAllExtensions( "googleads.v0.services\032:google/ads/google" + "ads/v0/resources/campaign_criterion.prot" + "o\032\034google/api/annotations.proto\032 google/" + - "protobuf/field_mask.proto\"4\n\033GetCampaign" + - "CriterionRequest\022\025\n\rresource_name\030\001 \001(\t\"" + - "\206\001\n\035MutateCampaignCriteriaRequest\022\023\n\013cus" + - "tomer_id\030\001 \001(\t\022P\n\noperations\030\002 \003(\0132<.goo" + - "gle.ads.googleads.v0.services.CampaignCr" + - "iterionOperation\"\374\001\n\032CampaignCriterionOp" + - "eration\022/\n\013update_mask\030\004 \001(\0132\032.google.pr" + - "otobuf.FieldMask\022F\n\006create\030\001 \001(\01324.googl" + - "e.ads.googleads.v0.resources.CampaignCri" + - "terionH\000\022F\n\006update\030\002 \001(\01324.google.ads.go" + - "ogleads.v0.resources.CampaignCriterionH\000" + - "\022\020\n\006remove\030\003 \001(\tH\000B\013\n\toperation\"r\n\036Mutat" + - "eCampaignCriteriaResponse\022P\n\007results\030\002 \003" + - "(\0132?.google.ads.googleads.v0.services.Mu" + - "tateCampaignCriterionResult\"6\n\035MutateCam" + - "paignCriterionResult\022\025\n\rresource_name\030\001 " + - "\001(\t2\304\003\n\030CampaignCriterionService\022\307\001\n\024Get" + - "CampaignCriterion\022=.google.ads.googleads" + - ".v0.services.GetCampaignCriterionRequest" + - "\0324.google.ads.googleads.v0.resources.Cam" + - "paignCriterion\":\202\323\344\223\0024\0222/v0/{resource_na" + - "me=customers/*/campaignCriteria/*}\022\335\001\n\026M" + - "utateCampaignCriteria\022?.google.ads.googl" + - "eads.v0.services.MutateCampaignCriteriaR" + - "equest\032@.google.ads.googleads.v0.service" + - "s.MutateCampaignCriteriaResponse\"@\202\323\344\223\002:" + - "\"5/v0/customers/{customer_id=*}/campaign" + - "Criteria:mutate:\001*B\335\001\n$com.google.ads.go" + - "ogleads.v0.servicesB\035CampaignCriterionSe" + - "rviceProtoP\001ZHgoogle.golang.org/genproto" + - "/googleapis/ads/googleads/v0/services;se" + - "rvices\242\002\003GAA\252\002 Google.Ads.GoogleAds.V0.S" + - "ervices\312\002 Google\\Ads\\GoogleAds\\V0\\Servic" + - "esb\006proto3" + "protobuf/field_mask.proto\032\036google/protob" + + "uf/wrappers.proto\032\027google/rpc/status.pro" + + "to\"4\n\033GetCampaignCriterionRequest\022\025\n\rres" + + "ource_name\030\001 \001(\t\"\266\001\n\035MutateCampaignCrite" + + "riaRequest\022\023\n\013customer_id\030\001 \001(\t\022P\n\nopera" + + "tions\030\002 \003(\0132<.google.ads.googleads.v0.se" + + "rvices.CampaignCriterionOperation\022\027\n\017par" + + "tial_failure\030\003 \001(\010\022\025\n\rvalidate_only\030\004 \001(" + + "\010\"\374\001\n\032CampaignCriterionOperation\022/\n\013upda" + + "te_mask\030\004 \001(\0132\032.google.protobuf.FieldMas" + + "k\022F\n\006create\030\001 \001(\01324.google.ads.googleads" + + ".v0.resources.CampaignCriterionH\000\022F\n\006upd" + + "ate\030\002 \001(\01324.google.ads.googleads.v0.reso" + + "urces.CampaignCriterionH\000\022\020\n\006remove\030\003 \001(" + + "\tH\000B\013\n\toperation\"\245\001\n\036MutateCampaignCrite" + + "riaResponse\0221\n\025partial_failure_error\030\003 \001" + + "(\0132\022.google.rpc.Status\022P\n\007results\030\002 \003(\0132" + + "?.google.ads.googleads.v0.services.Mutat" + + "eCampaignCriterionResult\"6\n\035MutateCampai" + + "gnCriterionResult\022\025\n\rresource_name\030\001 \001(\t" + + "2\304\003\n\030CampaignCriterionService\022\307\001\n\024GetCam" + + "paignCriterion\022=.google.ads.googleads.v0" + + ".services.GetCampaignCriterionRequest\0324." + + "google.ads.googleads.v0.resources.Campai" + + "gnCriterion\":\202\323\344\223\0024\0222/v0/{resource_name=" + + "customers/*/campaignCriteria/*}\022\335\001\n\026Muta" + + "teCampaignCriteria\022?.google.ads.googlead" + + "s.v0.services.MutateCampaignCriteriaRequ" + + "est\032@.google.ads.googleads.v0.services.M" + + "utateCampaignCriteriaResponse\"@\202\323\344\223\002:\"5/" + + "v0/customers/{customer_id=*}/campaignCri" + + "teria:mutate:\001*B\204\002\n$com.google.ads.googl" + + "eads.v0.servicesB\035CampaignCriterionServi" + + "ceProtoP\001ZHgoogle.golang.org/genproto/go" + + "ogleapis/ads/googleads/v0/services;servi" + + "ces\242\002\003GAA\252\002 Google.Ads.GoogleAds.V0.Serv" + + "ices\312\002 Google\\Ads\\GoogleAds\\V0\\Services\352" + + "\002$Google::Ads::GoogleAds::V0::Servicesb\006" + + "proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -102,6 +107,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.CampaignCriterionProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), }, assigner); internal_static_google_ads_googleads_v0_services_GetCampaignCriterionRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -114,7 +121,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateCampaignCriteriaRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateCampaignCriteriaRequest_descriptor, - new java.lang.String[] { "CustomerId", "Operations", }); + new java.lang.String[] { "CustomerId", "Operations", "PartialFailure", "ValidateOnly", }); internal_static_google_ads_googleads_v0_services_CampaignCriterionOperation_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_ads_googleads_v0_services_CampaignCriterionOperation_fieldAccessorTable = new @@ -126,7 +133,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateCampaignCriteriaResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateCampaignCriteriaResponse_descriptor, - new java.lang.String[] { "Results", }); + new java.lang.String[] { "PartialFailureError", "Results", }); internal_static_google_ads_googleads_v0_services_MutateCampaignCriterionResult_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_google_ads_googleads_v0_services_MutateCampaignCriterionResult_fieldAccessorTable = new @@ -141,6 +148,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.CampaignCriterionProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignCriterionServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignCriterionServiceSettings.java index a3da685e17..b38ccdd2f8 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignCriterionServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignCriterionServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignFeedServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignFeedServiceClient.java index d755f94efb..53cffbe461 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignFeedServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignFeedServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -216,7 +216,7 @@ public final CampaignFeed getCampaignFeed(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final CampaignFeed getCampaignFeed(GetCampaignFeedRequest request) { + public final CampaignFeed getCampaignFeed(GetCampaignFeedRequest request) { return getCampaignFeedCallable().call(request); } @@ -242,6 +242,47 @@ public final UnaryCallable getCampaignFeed return stub.getCampaignFeedCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates, updates, or removes campaign feeds. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (CampaignFeedServiceClient campaignFeedServiceClient = CampaignFeedServiceClient.create()) {
+   *   String customerId = "";
+   *   List<CampaignFeedOperation> operations = new ArrayList<>();
+   *   boolean partialFailure = false;
+   *   boolean validateOnly = false;
+   *   MutateCampaignFeedsResponse response = campaignFeedServiceClient.mutateCampaignFeeds(customerId, operations, partialFailure, validateOnly);
+   * }
+   * 
+ * + * @param customerId The ID of the customer whose campaign feeds are being modified. + * @param operations The list of operations to perform on individual campaign feeds. + * @param partialFailure If true, successful operations will be carried out and invalid operations + * will return errors. If false, all operations will be carried out in one transaction if and + * only if they are all valid. Default is false. + * @param validateOnly If true, the request is validated but not executed. Only errors are + * returned, not results. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateCampaignFeedsResponse mutateCampaignFeeds( + String customerId, + List operations, + boolean partialFailure, + boolean validateOnly) { + + MutateCampaignFeedsRequest request = + MutateCampaignFeedsRequest.newBuilder() + .setCustomerId(customerId) + .addAllOperations(operations) + .setPartialFailure(partialFailure) + .setValidateOnly(validateOnly) + .build(); + return mutateCampaignFeeds(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Creates, updates, or removes campaign feeds. Operation statuses are returned. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignFeedServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignFeedServiceProto.java index bab91ee73b..82d0d0f0a6 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignFeedServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignFeedServiceProto.java @@ -53,37 +53,42 @@ public static void registerAllExtensions( "eads.v0.services\0325google/ads/googleads/v" + "0/resources/campaign_feed.proto\032\034google/" + "api/annotations.proto\032 google/protobuf/f" + - "ield_mask.proto\"/\n\026GetCampaignFeedReques" + - "t\022\025\n\rresource_name\030\001 \001(\t\"~\n\032MutateCampai" + - "gnFeedsRequest\022\023\n\013customer_id\030\001 \001(\t\022K\n\no" + - "perations\030\002 \003(\01327.google.ads.googleads.v" + - "0.services.CampaignFeedOperation\"\355\001\n\025Cam" + - "paignFeedOperation\022/\n\013update_mask\030\004 \001(\0132" + - "\032.google.protobuf.FieldMask\022A\n\006create\030\001 " + - "\001(\0132/.google.ads.googleads.v0.resources." + - "CampaignFeedH\000\022A\n\006update\030\002 \001(\0132/.google." + - "ads.googleads.v0.resources.CampaignFeedH" + - "\000\022\020\n\006remove\030\003 \001(\tH\000B\013\n\toperation\"j\n\033Muta" + - "teCampaignFeedsResponse\022K\n\007results\030\002 \003(\013" + - "2:.google.ads.googleads.v0.services.Muta" + - "teCampaignFeedResult\"1\n\030MutateCampaignFe" + - "edResult\022\025\n\rresource_name\030\001 \001(\t2\241\003\n\023Camp" + - "aignFeedService\022\265\001\n\017GetCampaignFeed\0228.go" + - "ogle.ads.googleads.v0.services.GetCampai" + - "gnFeedRequest\032/.google.ads.googleads.v0." + - "resources.CampaignFeed\"7\202\323\344\223\0021\022//v0/{res" + - "ource_name=customers/*/campaignFeeds/*}\022" + - "\321\001\n\023MutateCampaignFeeds\022<.google.ads.goo" + - "gleads.v0.services.MutateCampaignFeedsRe" + - "quest\032=.google.ads.googleads.v0.services" + - ".MutateCampaignFeedsResponse\"=\202\323\344\223\0027\"2/v" + - "0/customers/{customer_id=*}/campaignFeed" + - "s:mutate:\001*B\330\001\n$com.google.ads.googleads" + - ".v0.servicesB\030CampaignFeedServiceProtoP\001" + - "ZHgoogle.golang.org/genproto/googleapis/" + - "ads/googleads/v0/services;services\242\002\003GAA" + - "\252\002 Google.Ads.GoogleAds.V0.Services\312\002 Go" + - "ogle\\Ads\\GoogleAds\\V0\\Servicesb\006proto3" + "ield_mask.proto\032\036google/protobuf/wrapper" + + "s.proto\032\027google/rpc/status.proto\"/\n\026GetC" + + "ampaignFeedRequest\022\025\n\rresource_name\030\001 \001(" + + "\t\"\256\001\n\032MutateCampaignFeedsRequest\022\023\n\013cust" + + "omer_id\030\001 \001(\t\022K\n\noperations\030\002 \003(\01327.goog" + + "le.ads.googleads.v0.services.CampaignFee" + + "dOperation\022\027\n\017partial_failure\030\003 \001(\010\022\025\n\rv" + + "alidate_only\030\004 \001(\010\"\355\001\n\025CampaignFeedOpera" + + "tion\022/\n\013update_mask\030\004 \001(\0132\032.google.proto" + + "buf.FieldMask\022A\n\006create\030\001 \001(\0132/.google.a" + + "ds.googleads.v0.resources.CampaignFeedH\000" + + "\022A\n\006update\030\002 \001(\0132/.google.ads.googleads." + + "v0.resources.CampaignFeedH\000\022\020\n\006remove\030\003 " + + "\001(\tH\000B\013\n\toperation\"\235\001\n\033MutateCampaignFee" + + "dsResponse\0221\n\025partial_failure_error\030\003 \001(" + + "\0132\022.google.rpc.Status\022K\n\007results\030\002 \003(\0132:" + + ".google.ads.googleads.v0.services.Mutate" + + "CampaignFeedResult\"1\n\030MutateCampaignFeed" + + "Result\022\025\n\rresource_name\030\001 \001(\t2\241\003\n\023Campai" + + "gnFeedService\022\265\001\n\017GetCampaignFeed\0228.goog" + + "le.ads.googleads.v0.services.GetCampaign" + + "FeedRequest\032/.google.ads.googleads.v0.re" + + "sources.CampaignFeed\"7\202\323\344\223\0021\022//v0/{resou" + + "rce_name=customers/*/campaignFeeds/*}\022\321\001" + + "\n\023MutateCampaignFeeds\022<.google.ads.googl" + + "eads.v0.services.MutateCampaignFeedsRequ" + + "est\032=.google.ads.googleads.v0.services.M" + + "utateCampaignFeedsResponse\"=\202\323\344\223\0027\"2/v0/" + + "customers/{customer_id=*}/campaignFeeds:" + + "mutate:\001*B\377\001\n$com.google.ads.googleads.v" + + "0.servicesB\030CampaignFeedServiceProtoP\001ZH" + + "google.golang.org/genproto/googleapis/ad" + + "s/googleads/v0/services;services\242\002\003GAA\252\002" + + " Google.Ads.GoogleAds.V0.Services\312\002 Goog" + + "le\\Ads\\GoogleAds\\V0\\Services\352\002$Google::A" + + "ds::GoogleAds::V0::Servicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -99,6 +104,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.CampaignFeedProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), }, assigner); internal_static_google_ads_googleads_v0_services_GetCampaignFeedRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -111,7 +118,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateCampaignFeedsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateCampaignFeedsRequest_descriptor, - new java.lang.String[] { "CustomerId", "Operations", }); + new java.lang.String[] { "CustomerId", "Operations", "PartialFailure", "ValidateOnly", }); internal_static_google_ads_googleads_v0_services_CampaignFeedOperation_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_ads_googleads_v0_services_CampaignFeedOperation_fieldAccessorTable = new @@ -123,7 +130,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateCampaignFeedsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateCampaignFeedsResponse_descriptor, - new java.lang.String[] { "Results", }); + new java.lang.String[] { "PartialFailureError", "Results", }); internal_static_google_ads_googleads_v0_services_MutateCampaignFeedResult_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_google_ads_googleads_v0_services_MutateCampaignFeedResult_fieldAccessorTable = new @@ -138,6 +145,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.CampaignFeedProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignFeedServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignFeedServiceSettings.java index 9cbe803c6d..d0e87cbe2a 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignFeedServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignFeedServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignGroupOperationOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignGroupOperationOrBuilder.java deleted file mode 100644 index 0a6b5dd211..0000000000 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignGroupOperationOrBuilder.java +++ /dev/null @@ -1,114 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v0/services/campaign_group_service.proto - -package com.google.ads.googleads.v0.services; - -public interface CampaignGroupOperationOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.CampaignGroupOperation) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * FieldMask that determines which resource fields are modified in an update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 4; - */ - boolean hasUpdateMask(); - /** - *
-   * FieldMask that determines which resource fields are modified in an update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 4; - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
-   * FieldMask that determines which resource fields are modified in an update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 4; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); - - /** - *
-   * Create operation: No resource name is expected for the new campaign
-   * group.
-   * 
- * - * .google.ads.googleads.v0.resources.CampaignGroup create = 1; - */ - boolean hasCreate(); - /** - *
-   * Create operation: No resource name is expected for the new campaign
-   * group.
-   * 
- * - * .google.ads.googleads.v0.resources.CampaignGroup create = 1; - */ - com.google.ads.googleads.v0.resources.CampaignGroup getCreate(); - /** - *
-   * Create operation: No resource name is expected for the new campaign
-   * group.
-   * 
- * - * .google.ads.googleads.v0.resources.CampaignGroup create = 1; - */ - com.google.ads.googleads.v0.resources.CampaignGroupOrBuilder getCreateOrBuilder(); - - /** - *
-   * Update operation: The campaign group is expected to have a valid
-   * resource name.
-   * 
- * - * .google.ads.googleads.v0.resources.CampaignGroup update = 2; - */ - boolean hasUpdate(); - /** - *
-   * Update operation: The campaign group is expected to have a valid
-   * resource name.
-   * 
- * - * .google.ads.googleads.v0.resources.CampaignGroup update = 2; - */ - com.google.ads.googleads.v0.resources.CampaignGroup getUpdate(); - /** - *
-   * Update operation: The campaign group is expected to have a valid
-   * resource name.
-   * 
- * - * .google.ads.googleads.v0.resources.CampaignGroup update = 2; - */ - com.google.ads.googleads.v0.resources.CampaignGroupOrBuilder getUpdateOrBuilder(); - - /** - *
-   * Remove operation: A resource name for the removed campaign group is
-   * expected, in this format:
-   * `customers/{customer_id}/campaignGroups/{campaign_group_id}`
-   * 
- * - * string remove = 3; - */ - java.lang.String getRemove(); - /** - *
-   * Remove operation: A resource name for the removed campaign group is
-   * expected, in this format:
-   * `customers/{customer_id}/campaignGroups/{campaign_group_id}`
-   * 
- * - * string remove = 3; - */ - com.google.protobuf.ByteString - getRemoveBytes(); - - public com.google.ads.googleads.v0.services.CampaignGroupOperation.OperationCase getOperationCase(); -} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignGroupServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignGroupServiceClient.java deleted file mode 100644 index 6b255f9584..0000000000 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignGroupServiceClient.java +++ /dev/null @@ -1,356 +0,0 @@ -/* - * Copyright 2018 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.ads.googleads.v0.services; - -import com.google.ads.googleads.v0.resources.CampaignGroup; -import com.google.ads.googleads.v0.services.stub.CampaignGroupServiceStub; -import com.google.ads.googleads.v0.services.stub.CampaignGroupServiceStubSettings; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.api.pathtemplate.PathTemplate; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND SERVICE -/** - * Service Description: Service to manage campaign groups. - * - *

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

- * 
- * try (CampaignGroupServiceClient campaignGroupServiceClient = CampaignGroupServiceClient.create()) {
- *   String formattedResourceName = CampaignGroupServiceClient.formatCampaignGroupName("[CUSTOMER]", "[CAMPAIGN_GROUP]");
- *   CampaignGroup response = campaignGroupServiceClient.getCampaignGroup(formattedResourceName);
- * }
- * 
- * 
- * - *

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

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

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

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

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

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

To customize credentials: - * - *

- * 
- * CampaignGroupServiceSettings campaignGroupServiceSettings =
- *     CampaignGroupServiceSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * CampaignGroupServiceClient campaignGroupServiceClient =
- *     CampaignGroupServiceClient.create(campaignGroupServiceSettings);
- * 
- * 
- * - * To customize the endpoint: - * - *
- * 
- * CampaignGroupServiceSettings campaignGroupServiceSettings =
- *     CampaignGroupServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
- * CampaignGroupServiceClient campaignGroupServiceClient =
- *     CampaignGroupServiceClient.create(campaignGroupServiceSettings);
- * 
- * 
- */ -@Generated("by gapic-generator") -@BetaApi -public class CampaignGroupServiceClient implements BackgroundResource { - private final CampaignGroupServiceSettings settings; - private final CampaignGroupServiceStub stub; - - private static final PathTemplate CAMPAIGN_GROUP_PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding("customers/{customer}/campaignGroups/{campaign_group}"); - - /** - * Formats a string containing the fully-qualified path to represent a campaign_group resource. - */ - public static final String formatCampaignGroupName(String customer, String campaignGroup) { - return CAMPAIGN_GROUP_PATH_TEMPLATE.instantiate( - "customer", customer, - "campaign_group", campaignGroup); - } - - /** - * Parses the customer from the given fully-qualified path which represents a campaign_group - * resource. - */ - public static final String parseCustomerFromCampaignGroupName(String campaignGroupName) { - return CAMPAIGN_GROUP_PATH_TEMPLATE.parse(campaignGroupName).get("customer"); - } - - /** - * Parses the campaign_group from the given fully-qualified path which represents a campaign_group - * resource. - */ - public static final String parseCampaignGroupFromCampaignGroupName(String campaignGroupName) { - return CAMPAIGN_GROUP_PATH_TEMPLATE.parse(campaignGroupName).get("campaign_group"); - } - - /** Constructs an instance of CampaignGroupServiceClient with default settings. */ - public static final CampaignGroupServiceClient create() throws IOException { - return create(CampaignGroupServiceSettings.newBuilder().build()); - } - - /** - * Constructs an instance of CampaignGroupServiceClient, using the given settings. The channels - * are created based on the settings passed in, or defaults for any settings that are not set. - */ - public static final CampaignGroupServiceClient create(CampaignGroupServiceSettings settings) - throws IOException { - return new CampaignGroupServiceClient(settings); - } - - /** - * Constructs an instance of CampaignGroupServiceClient, using the given stub for making calls. - * This is for advanced usage - prefer to use CampaignGroupServiceSettings}. - */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public static final CampaignGroupServiceClient create(CampaignGroupServiceStub stub) { - return new CampaignGroupServiceClient(stub); - } - - /** - * Constructs an instance of CampaignGroupServiceClient, using the given settings. This is - * protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected CampaignGroupServiceClient(CampaignGroupServiceSettings settings) throws IOException { - this.settings = settings; - this.stub = ((CampaignGroupServiceStubSettings) settings.getStubSettings()).createStub(); - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - protected CampaignGroupServiceClient(CampaignGroupServiceStub stub) { - this.settings = null; - this.stub = stub; - } - - public final CampaignGroupServiceSettings getSettings() { - return settings; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public CampaignGroupServiceStub getStub() { - return stub; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Returns the requested campaign group in full detail. - * - *

Sample code: - * - *


-   * try (CampaignGroupServiceClient campaignGroupServiceClient = CampaignGroupServiceClient.create()) {
-   *   String formattedResourceName = CampaignGroupServiceClient.formatCampaignGroupName("[CUSTOMER]", "[CAMPAIGN_GROUP]");
-   *   CampaignGroup response = campaignGroupServiceClient.getCampaignGroup(formattedResourceName);
-   * }
-   * 
- * - * @param resourceName The resource name of the campaign group to fetch. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CampaignGroup getCampaignGroup(String resourceName) { - CAMPAIGN_GROUP_PATH_TEMPLATE.validate(resourceName, "getCampaignGroup"); - GetCampaignGroupRequest request = - GetCampaignGroupRequest.newBuilder().setResourceName(resourceName).build(); - return getCampaignGroup(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Returns the requested campaign group in full detail. - * - *

Sample code: - * - *


-   * try (CampaignGroupServiceClient campaignGroupServiceClient = CampaignGroupServiceClient.create()) {
-   *   String formattedResourceName = CampaignGroupServiceClient.formatCampaignGroupName("[CUSTOMER]", "[CAMPAIGN_GROUP]");
-   *   GetCampaignGroupRequest request = GetCampaignGroupRequest.newBuilder()
-   *     .setResourceName(formattedResourceName)
-   *     .build();
-   *   CampaignGroup response = campaignGroupServiceClient.getCampaignGroup(request);
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - private final CampaignGroup getCampaignGroup(GetCampaignGroupRequest request) { - return getCampaignGroupCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Returns the requested campaign group in full detail. - * - *

Sample code: - * - *


-   * try (CampaignGroupServiceClient campaignGroupServiceClient = CampaignGroupServiceClient.create()) {
-   *   String formattedResourceName = CampaignGroupServiceClient.formatCampaignGroupName("[CUSTOMER]", "[CAMPAIGN_GROUP]");
-   *   GetCampaignGroupRequest request = GetCampaignGroupRequest.newBuilder()
-   *     .setResourceName(formattedResourceName)
-   *     .build();
-   *   ApiFuture<CampaignGroup> future = campaignGroupServiceClient.getCampaignGroupCallable().futureCall(request);
-   *   // Do something
-   *   CampaignGroup response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable getCampaignGroupCallable() { - return stub.getCampaignGroupCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Creates, updates, or removes campaign groups. Operation statuses are returned. - * - *

Sample code: - * - *


-   * try (CampaignGroupServiceClient campaignGroupServiceClient = CampaignGroupServiceClient.create()) {
-   *   String customerId = "";
-   *   List<CampaignGroupOperation> operations = new ArrayList<>();
-   *   MutateCampaignGroupsResponse response = campaignGroupServiceClient.mutateCampaignGroups(customerId, operations);
-   * }
-   * 
- * - * @param customerId The ID of the customer whose campaign groups are being modified. - * @param operations The list of operations to perform on individual campaign groups. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final MutateCampaignGroupsResponse mutateCampaignGroups( - String customerId, List operations) { - - MutateCampaignGroupsRequest request = - MutateCampaignGroupsRequest.newBuilder() - .setCustomerId(customerId) - .addAllOperations(operations) - .build(); - return mutateCampaignGroups(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Creates, updates, or removes campaign groups. Operation statuses are returned. - * - *

Sample code: - * - *


-   * try (CampaignGroupServiceClient campaignGroupServiceClient = CampaignGroupServiceClient.create()) {
-   *   String customerId = "";
-   *   List<CampaignGroupOperation> operations = new ArrayList<>();
-   *   MutateCampaignGroupsRequest request = MutateCampaignGroupsRequest.newBuilder()
-   *     .setCustomerId(customerId)
-   *     .addAllOperations(operations)
-   *     .build();
-   *   MutateCampaignGroupsResponse response = campaignGroupServiceClient.mutateCampaignGroups(request);
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final MutateCampaignGroupsResponse mutateCampaignGroups( - MutateCampaignGroupsRequest request) { - return mutateCampaignGroupsCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Creates, updates, or removes campaign groups. Operation statuses are returned. - * - *

Sample code: - * - *


-   * try (CampaignGroupServiceClient campaignGroupServiceClient = CampaignGroupServiceClient.create()) {
-   *   String customerId = "";
-   *   List<CampaignGroupOperation> operations = new ArrayList<>();
-   *   MutateCampaignGroupsRequest request = MutateCampaignGroupsRequest.newBuilder()
-   *     .setCustomerId(customerId)
-   *     .addAllOperations(operations)
-   *     .build();
-   *   ApiFuture<MutateCampaignGroupsResponse> future = campaignGroupServiceClient.mutateCampaignGroupsCallable().futureCall(request);
-   *   // Do something
-   *   MutateCampaignGroupsResponse response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable - mutateCampaignGroupsCallable() { - return stub.mutateCampaignGroupsCallable(); - } - - @Override - public final void close() { - stub.close(); - } - - @Override - public void shutdown() { - stub.shutdown(); - } - - @Override - public boolean isShutdown() { - return stub.isShutdown(); - } - - @Override - public boolean isTerminated() { - return stub.isTerminated(); - } - - @Override - public void shutdownNow() { - stub.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); - } -} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignGroupServiceGrpc.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignGroupServiceGrpc.java deleted file mode 100644 index 86b8ead816..0000000000 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignGroupServiceGrpc.java +++ /dev/null @@ -1,409 +0,0 @@ -package com.google.ads.googleads.v0.services; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - *
- * Service to manage campaign groups.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.10.0)", - comments = "Source: google/ads/googleads/v0/services/campaign_group_service.proto") -public final class CampaignGroupServiceGrpc { - - private CampaignGroupServiceGrpc() {} - - public static final String SERVICE_NAME = "google.ads.googleads.v0.services.CampaignGroupService"; - - // Static method descriptors that strictly reflect the proto. - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getGetCampaignGroupMethod()} instead. - public static final io.grpc.MethodDescriptor METHOD_GET_CAMPAIGN_GROUP = getGetCampaignGroupMethodHelper(); - - private static volatile io.grpc.MethodDescriptor getGetCampaignGroupMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor getGetCampaignGroupMethod() { - return getGetCampaignGroupMethodHelper(); - } - - private static io.grpc.MethodDescriptor getGetCampaignGroupMethodHelper() { - io.grpc.MethodDescriptor getGetCampaignGroupMethod; - if ((getGetCampaignGroupMethod = CampaignGroupServiceGrpc.getGetCampaignGroupMethod) == null) { - synchronized (CampaignGroupServiceGrpc.class) { - if ((getGetCampaignGroupMethod = CampaignGroupServiceGrpc.getGetCampaignGroupMethod) == null) { - CampaignGroupServiceGrpc.getGetCampaignGroupMethod = getGetCampaignGroupMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "google.ads.googleads.v0.services.CampaignGroupService", "GetCampaignGroup")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.ads.googleads.v0.services.GetCampaignGroupRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.ads.googleads.v0.resources.CampaignGroup.getDefaultInstance())) - .setSchemaDescriptor(new CampaignGroupServiceMethodDescriptorSupplier("GetCampaignGroup")) - .build(); - } - } - } - return getGetCampaignGroupMethod; - } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getMutateCampaignGroupsMethod()} instead. - public static final io.grpc.MethodDescriptor METHOD_MUTATE_CAMPAIGN_GROUPS = getMutateCampaignGroupsMethodHelper(); - - private static volatile io.grpc.MethodDescriptor getMutateCampaignGroupsMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor getMutateCampaignGroupsMethod() { - return getMutateCampaignGroupsMethodHelper(); - } - - private static io.grpc.MethodDescriptor getMutateCampaignGroupsMethodHelper() { - io.grpc.MethodDescriptor getMutateCampaignGroupsMethod; - if ((getMutateCampaignGroupsMethod = CampaignGroupServiceGrpc.getMutateCampaignGroupsMethod) == null) { - synchronized (CampaignGroupServiceGrpc.class) { - if ((getMutateCampaignGroupsMethod = CampaignGroupServiceGrpc.getMutateCampaignGroupsMethod) == null) { - CampaignGroupServiceGrpc.getMutateCampaignGroupsMethod = getMutateCampaignGroupsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "google.ads.googleads.v0.services.CampaignGroupService", "MutateCampaignGroups")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse.getDefaultInstance())) - .setSchemaDescriptor(new CampaignGroupServiceMethodDescriptorSupplier("MutateCampaignGroups")) - .build(); - } - } - } - return getMutateCampaignGroupsMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static CampaignGroupServiceStub newStub(io.grpc.Channel channel) { - return new CampaignGroupServiceStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static CampaignGroupServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - return new CampaignGroupServiceBlockingStub(channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static CampaignGroupServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - return new CampaignGroupServiceFutureStub(channel); - } - - /** - *
-   * Service to manage campaign groups.
-   * 
- */ - public static abstract class CampaignGroupServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Returns the requested campaign group in full detail.
-     * 
- */ - public void getCampaignGroup(com.google.ads.googleads.v0.services.GetCampaignGroupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetCampaignGroupMethodHelper(), responseObserver); - } - - /** - *
-     * Creates, updates, or removes campaign groups. Operation statuses are
-     * returned.
-     * 
- */ - public void mutateCampaignGroups(com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getMutateCampaignGroupsMethodHelper(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetCampaignGroupMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.ads.googleads.v0.services.GetCampaignGroupRequest, - com.google.ads.googleads.v0.resources.CampaignGroup>( - this, METHODID_GET_CAMPAIGN_GROUP))) - .addMethod( - getMutateCampaignGroupsMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest, - com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse>( - this, METHODID_MUTATE_CAMPAIGN_GROUPS))) - .build(); - } - } - - /** - *
-   * Service to manage campaign groups.
-   * 
- */ - public static final class CampaignGroupServiceStub extends io.grpc.stub.AbstractStub { - private CampaignGroupServiceStub(io.grpc.Channel channel) { - super(channel); - } - - private CampaignGroupServiceStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CampaignGroupServiceStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new CampaignGroupServiceStub(channel, callOptions); - } - - /** - *
-     * Returns the requested campaign group in full detail.
-     * 
- */ - public void getCampaignGroup(com.google.ads.googleads.v0.services.GetCampaignGroupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetCampaignGroupMethodHelper(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates, updates, or removes campaign groups. Operation statuses are
-     * returned.
-     * 
- */ - public void mutateCampaignGroups(com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getMutateCampaignGroupsMethodHelper(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Service to manage campaign groups.
-   * 
- */ - public static final class CampaignGroupServiceBlockingStub extends io.grpc.stub.AbstractStub { - private CampaignGroupServiceBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private CampaignGroupServiceBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CampaignGroupServiceBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new CampaignGroupServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Returns the requested campaign group in full detail.
-     * 
- */ - public com.google.ads.googleads.v0.resources.CampaignGroup getCampaignGroup(com.google.ads.googleads.v0.services.GetCampaignGroupRequest request) { - return blockingUnaryCall( - getChannel(), getGetCampaignGroupMethodHelper(), getCallOptions(), request); - } - - /** - *
-     * Creates, updates, or removes campaign groups. Operation statuses are
-     * returned.
-     * 
- */ - public com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse mutateCampaignGroups(com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest request) { - return blockingUnaryCall( - getChannel(), getMutateCampaignGroupsMethodHelper(), getCallOptions(), request); - } - } - - /** - *
-   * Service to manage campaign groups.
-   * 
- */ - public static final class CampaignGroupServiceFutureStub extends io.grpc.stub.AbstractStub { - private CampaignGroupServiceFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private CampaignGroupServiceFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CampaignGroupServiceFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { - return new CampaignGroupServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Returns the requested campaign group in full detail.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getCampaignGroup( - com.google.ads.googleads.v0.services.GetCampaignGroupRequest request) { - return futureUnaryCall( - getChannel().newCall(getGetCampaignGroupMethodHelper(), getCallOptions()), request); - } - - /** - *
-     * Creates, updates, or removes campaign groups. Operation statuses are
-     * returned.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture mutateCampaignGroups( - com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest request) { - return futureUnaryCall( - getChannel().newCall(getMutateCampaignGroupsMethodHelper(), getCallOptions()), request); - } - } - - private static final int METHODID_GET_CAMPAIGN_GROUP = 0; - private static final int METHODID_MUTATE_CAMPAIGN_GROUPS = 1; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final CampaignGroupServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(CampaignGroupServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_GET_CAMPAIGN_GROUP: - serviceImpl.getCampaignGroup((com.google.ads.googleads.v0.services.GetCampaignGroupRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_MUTATE_CAMPAIGN_GROUPS: - serviceImpl.mutateCampaignGroups((com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class CampaignGroupServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - CampaignGroupServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.ads.googleads.v0.services.CampaignGroupServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("CampaignGroupService"); - } - } - - private static final class CampaignGroupServiceFileDescriptorSupplier - extends CampaignGroupServiceBaseDescriptorSupplier { - CampaignGroupServiceFileDescriptorSupplier() {} - } - - private static final class CampaignGroupServiceMethodDescriptorSupplier - extends CampaignGroupServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - CampaignGroupServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (CampaignGroupServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new CampaignGroupServiceFileDescriptorSupplier()) - .addMethod(getGetCampaignGroupMethodHelper()) - .addMethod(getMutateCampaignGroupsMethodHelper()) - .build(); - } - } - } - return result; - } -} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignGroupServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignGroupServiceProto.java deleted file mode 100644 index 9e1aa900f6..0000000000 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignGroupServiceProto.java +++ /dev/null @@ -1,145 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v0/services/campaign_group_service.proto - -package com.google.ads.googleads.v0.services; - -public final class CampaignGroupServiceProto { - private CampaignGroupServiceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_googleads_v0_services_GetCampaignGroupRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_googleads_v0_services_GetCampaignGroupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_googleads_v0_services_MutateCampaignGroupsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_googleads_v0_services_MutateCampaignGroupsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_googleads_v0_services_CampaignGroupOperation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_googleads_v0_services_CampaignGroupOperation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_googleads_v0_services_MutateCampaignGroupsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_googleads_v0_services_MutateCampaignGroupsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_ads_googleads_v0_services_MutateCampaignGroupResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_ads_googleads_v0_services_MutateCampaignGroupResult_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n=google/ads/googleads/v0/services/campa" + - "ign_group_service.proto\022 google.ads.goog" + - "leads.v0.services\0326google/ads/googleads/" + - "v0/resources/campaign_group.proto\032\034googl" + - "e/api/annotations.proto\032 google/protobuf" + - "/field_mask.proto\"0\n\027GetCampaignGroupReq" + - "uest\022\025\n\rresource_name\030\001 \001(\t\"\200\001\n\033MutateCa" + - "mpaignGroupsRequest\022\023\n\013customer_id\030\001 \001(\t" + - "\022L\n\noperations\030\002 \003(\01328.google.ads.google" + - "ads.v0.services.CampaignGroupOperation\"\360" + - "\001\n\026CampaignGroupOperation\022/\n\013update_mask" + - "\030\004 \001(\0132\032.google.protobuf.FieldMask\022B\n\006cr" + - "eate\030\001 \001(\01320.google.ads.googleads.v0.res" + - "ources.CampaignGroupH\000\022B\n\006update\030\002 \001(\01320" + - ".google.ads.googleads.v0.resources.Campa" + - "ignGroupH\000\022\020\n\006remove\030\003 \001(\tH\000B\013\n\toperatio" + - "n\"l\n\034MutateCampaignGroupsResponse\022L\n\007res" + - "ults\030\002 \003(\0132;.google.ads.googleads.v0.ser" + - "vices.MutateCampaignGroupResult\"2\n\031Mutat" + - "eCampaignGroupResult\022\025\n\rresource_name\030\001 " + - "\001(\t2\252\003\n\024CampaignGroupService\022\271\001\n\020GetCamp" + - "aignGroup\0229.google.ads.googleads.v0.serv" + - "ices.GetCampaignGroupRequest\0320.google.ad" + - "s.googleads.v0.resources.CampaignGroup\"8" + - "\202\323\344\223\0022\0220/v0/{resource_name=customers/*/c" + - "ampaignGroups/*}\022\325\001\n\024MutateCampaignGroup" + - "s\022=.google.ads.googleads.v0.services.Mut" + - "ateCampaignGroupsRequest\032>.google.ads.go" + - "ogleads.v0.services.MutateCampaignGroups" + - "Response\">\202\323\344\223\0028\"3/v0/customers/{custome" + - "r_id=*}/campaignGroups:mutate:\001*B\331\001\n$com" + - ".google.ads.googleads.v0.servicesB\031Campa" + - "ignGroupServiceProtoP\001ZHgoogle.golang.or" + - "g/genproto/googleapis/ads/googleads/v0/s" + - "ervices;services\242\002\003GAA\252\002 Google.Ads.Goog" + - "leAds.V0.Services\312\002 Google\\Ads\\GoogleAds" + - "\\V0\\Servicesb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.ads.googleads.v0.resources.CampaignGroupProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }, assigner); - internal_static_google_ads_googleads_v0_services_GetCampaignGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_ads_googleads_v0_services_GetCampaignGroupRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_googleads_v0_services_GetCampaignGroupRequest_descriptor, - new java.lang.String[] { "ResourceName", }); - internal_static_google_ads_googleads_v0_services_MutateCampaignGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_ads_googleads_v0_services_MutateCampaignGroupsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_googleads_v0_services_MutateCampaignGroupsRequest_descriptor, - new java.lang.String[] { "CustomerId", "Operations", }); - internal_static_google_ads_googleads_v0_services_CampaignGroupOperation_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_ads_googleads_v0_services_CampaignGroupOperation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_googleads_v0_services_CampaignGroupOperation_descriptor, - new java.lang.String[] { "UpdateMask", "Create", "Update", "Remove", "Operation", }); - internal_static_google_ads_googleads_v0_services_MutateCampaignGroupsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_ads_googleads_v0_services_MutateCampaignGroupsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_googleads_v0_services_MutateCampaignGroupsResponse_descriptor, - new java.lang.String[] { "Results", }); - internal_static_google_ads_googleads_v0_services_MutateCampaignGroupResult_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_ads_googleads_v0_services_MutateCampaignGroupResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_ads_googleads_v0_services_MutateCampaignGroupResult_descriptor, - new java.lang.String[] { "ResourceName", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.ads.googleads.v0.resources.CampaignGroupProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignServiceClient.java index efa4f66567..757150840a 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -214,7 +214,7 @@ public final Campaign getCampaign(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final Campaign getCampaign(GetCampaignRequest request) { + public final Campaign getCampaign(GetCampaignRequest request) { return getCampaignCallable().call(request); } @@ -240,6 +240,47 @@ public final UnaryCallable getCampaignCallable() { return stub.getCampaignCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates, updates, or removes campaigns. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (CampaignServiceClient campaignServiceClient = CampaignServiceClient.create()) {
+   *   String customerId = "";
+   *   List<CampaignOperation> operations = new ArrayList<>();
+   *   boolean partialFailure = false;
+   *   boolean validateOnly = false;
+   *   MutateCampaignsResponse response = campaignServiceClient.mutateCampaigns(customerId, operations, partialFailure, validateOnly);
+   * }
+   * 
+ * + * @param customerId The ID of the customer whose campaigns are being modified. + * @param operations The list of operations to perform on individual campaigns. + * @param partialFailure If true, successful operations will be carried out and invalid operations + * will return errors. If false, all operations will be carried out in one transaction if and + * only if they are all valid. Default is false. + * @param validateOnly If true, the request is validated but not executed. Only errors are + * returned, not results. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateCampaignsResponse mutateCampaigns( + String customerId, + List operations, + boolean partialFailure, + boolean validateOnly) { + + MutateCampaignsRequest request = + MutateCampaignsRequest.newBuilder() + .setCustomerId(customerId) + .addAllOperations(operations) + .setPartialFailure(partialFailure) + .setValidateOnly(validateOnly) + .build(); + return mutateCampaigns(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Creates, updates, or removes campaigns. Operation statuses are returned. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignServiceProto.java index a1d8a2d335..6d38f16623 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignServiceProto.java @@ -53,35 +53,40 @@ public static void registerAllExtensions( "v0.services\0320google/ads/googleads/v0/res" + "ources/campaign.proto\032\034google/api/annota" + "tions.proto\032 google/protobuf/field_mask." + - "proto\"+\n\022GetCampaignRequest\022\025\n\rresource_" + - "name\030\001 \001(\t\"v\n\026MutateCampaignsRequest\022\023\n\013" + - "customer_id\030\001 \001(\t\022G\n\noperations\030\002 \003(\01323." + - "google.ads.googleads.v0.services.Campaig" + - "nOperation\"\341\001\n\021CampaignOperation\022/\n\013upda" + - "te_mask\030\004 \001(\0132\032.google.protobuf.FieldMas" + - "k\022=\n\006create\030\001 \001(\0132+.google.ads.googleads" + - ".v0.resources.CampaignH\000\022=\n\006update\030\002 \001(\013" + - "2+.google.ads.googleads.v0.resources.Cam" + - "paignH\000\022\020\n\006remove\030\003 \001(\tH\000B\013\n\toperation\"b" + - "\n\027MutateCampaignsResponse\022G\n\007results\030\002 \003" + - "(\01326.google.ads.googleads.v0.services.Mu" + - "tateCampaignResult\"-\n\024MutateCampaignResu" + - "lt\022\025\n\rresource_name\030\001 \001(\t2\375\002\n\017CampaignSe" + - "rvice\022\245\001\n\013GetCampaign\0224.google.ads.googl" + - "eads.v0.services.GetCampaignRequest\032+.go" + - "ogle.ads.googleads.v0.resources.Campaign" + - "\"3\202\323\344\223\002-\022+/v0/{resource_name=customers/*" + - "/campaigns/*}\022\301\001\n\017MutateCampaigns\0228.goog" + - "le.ads.googleads.v0.services.MutateCampa" + - "ignsRequest\0329.google.ads.googleads.v0.se" + - "rvices.MutateCampaignsResponse\"9\202\323\344\223\0023\"." + - "/v0/customers/{customer_id=*}/campaigns:" + - "mutate:\001*B\324\001\n$com.google.ads.googleads.v" + - "0.servicesB\024CampaignServiceProtoP\001ZHgoog" + - "le.golang.org/genproto/googleapis/ads/go" + - "ogleads/v0/services;services\242\002\003GAA\252\002 Goo" + - "gle.Ads.GoogleAds.V0.Services\312\002 Google\\A" + - "ds\\GoogleAds\\V0\\Servicesb\006proto3" + "proto\032\036google/protobuf/wrappers.proto\032\027g" + + "oogle/rpc/status.proto\"+\n\022GetCampaignReq" + + "uest\022\025\n\rresource_name\030\001 \001(\t\"\246\001\n\026MutateCa" + + "mpaignsRequest\022\023\n\013customer_id\030\001 \001(\t\022G\n\no" + + "perations\030\002 \003(\01323.google.ads.googleads.v" + + "0.services.CampaignOperation\022\027\n\017partial_" + + "failure\030\003 \001(\010\022\025\n\rvalidate_only\030\004 \001(\010\"\341\001\n" + + "\021CampaignOperation\022/\n\013update_mask\030\004 \001(\0132" + + "\032.google.protobuf.FieldMask\022=\n\006create\030\001 " + + "\001(\0132+.google.ads.googleads.v0.resources." + + "CampaignH\000\022=\n\006update\030\002 \001(\0132+.google.ads." + + "googleads.v0.resources.CampaignH\000\022\020\n\006rem" + + "ove\030\003 \001(\tH\000B\013\n\toperation\"\225\001\n\027MutateCampa" + + "ignsResponse\0221\n\025partial_failure_error\030\003 " + + "\001(\0132\022.google.rpc.Status\022G\n\007results\030\002 \003(\013" + + "26.google.ads.googleads.v0.services.Muta" + + "teCampaignResult\"-\n\024MutateCampaignResult" + + "\022\025\n\rresource_name\030\001 \001(\t2\375\002\n\017CampaignServ" + + "ice\022\245\001\n\013GetCampaign\0224.google.ads.googlea" + + "ds.v0.services.GetCampaignRequest\032+.goog" + + "le.ads.googleads.v0.resources.Campaign\"3" + + "\202\323\344\223\002-\022+/v0/{resource_name=customers/*/c" + + "ampaigns/*}\022\301\001\n\017MutateCampaigns\0228.google" + + ".ads.googleads.v0.services.MutateCampaig" + + "nsRequest\0329.google.ads.googleads.v0.serv" + + "ices.MutateCampaignsResponse\"9\202\323\344\223\0023\"./v" + + "0/customers/{customer_id=*}/campaigns:mu" + + "tate:\001*B\373\001\n$com.google.ads.googleads.v0." + + "servicesB\024CampaignServiceProtoP\001ZHgoogle" + + ".golang.org/genproto/googleapis/ads/goog" + + "leads/v0/services;services\242\002\003GAA\252\002 Googl" + + "e.Ads.GoogleAds.V0.Services\312\002 Google\\Ads" + + "\\GoogleAds\\V0\\Services\352\002$Google::Ads::Go" + + "ogleAds::V0::Servicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -97,6 +102,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.CampaignProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), }, assigner); internal_static_google_ads_googleads_v0_services_GetCampaignRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -109,7 +116,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateCampaignsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateCampaignsRequest_descriptor, - new java.lang.String[] { "CustomerId", "Operations", }); + new java.lang.String[] { "CustomerId", "Operations", "PartialFailure", "ValidateOnly", }); internal_static_google_ads_googleads_v0_services_CampaignOperation_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_ads_googleads_v0_services_CampaignOperation_fieldAccessorTable = new @@ -121,7 +128,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateCampaignsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateCampaignsResponse_descriptor, - new java.lang.String[] { "Results", }); + new java.lang.String[] { "PartialFailureError", "Results", }); internal_static_google_ads_googleads_v0_services_MutateCampaignResult_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_google_ads_googleads_v0_services_MutateCampaignResult_fieldAccessorTable = new @@ -136,6 +143,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.CampaignProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignServiceSettings.java index e634ade7d0..2f56c3bc00 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignSharedSetServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignSharedSetServiceClient.java index 0e326ecd5a..bc5cb229b0 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignSharedSetServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignSharedSetServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -226,7 +226,7 @@ public final CampaignSharedSet getCampaignSharedSet(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final CampaignSharedSet getCampaignSharedSet(GetCampaignSharedSetRequest request) { + public final CampaignSharedSet getCampaignSharedSet(GetCampaignSharedSetRequest request) { return getCampaignSharedSetCallable().call(request); } @@ -253,6 +253,47 @@ private final CampaignSharedSet getCampaignSharedSet(GetCampaignSharedSetRequest return stub.getCampaignSharedSetCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates or removes campaign shared sets. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (CampaignSharedSetServiceClient campaignSharedSetServiceClient = CampaignSharedSetServiceClient.create()) {
+   *   String customerId = "";
+   *   List<CampaignSharedSetOperation> operations = new ArrayList<>();
+   *   boolean partialFailure = false;
+   *   boolean validateOnly = false;
+   *   MutateCampaignSharedSetsResponse response = campaignSharedSetServiceClient.mutateCampaignSharedSets(customerId, operations, partialFailure, validateOnly);
+   * }
+   * 
+ * + * @param customerId The ID of the customer whose campaign shared sets are being modified. + * @param operations The list of operations to perform on individual campaign shared sets. + * @param partialFailure If true, successful operations will be carried out and invalid operations + * will return errors. If false, all operations will be carried out in one transaction if and + * only if they are all valid. Default is false. + * @param validateOnly If true, the request is validated but not executed. Only errors are + * returned, not results. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateCampaignSharedSetsResponse mutateCampaignSharedSets( + String customerId, + List operations, + boolean partialFailure, + boolean validateOnly) { + + MutateCampaignSharedSetsRequest request = + MutateCampaignSharedSetsRequest.newBuilder() + .setCustomerId(customerId) + .addAllOperations(operations) + .setPartialFailure(partialFailure) + .setValidateOnly(validateOnly) + .build(); + return mutateCampaignSharedSets(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Creates or removes campaign shared sets. Operation statuses are returned. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignSharedSetServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignSharedSetServiceProto.java index 3b66a39728..49c7183432 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignSharedSetServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignSharedSetServiceProto.java @@ -52,37 +52,42 @@ public static void registerAllExtensions( "ign_shared_set_service.proto\022 google.ads" + ".googleads.v0.services\032;google/ads/googl" + "eads/v0/resources/campaign_shared_set.pr" + - "oto\032\034google/api/annotations.proto\"4\n\033Get" + - "CampaignSharedSetRequest\022\025\n\rresource_nam" + - "e\030\001 \001(\t\"\210\001\n\037MutateCampaignSharedSetsRequ" + - "est\022\023\n\013customer_id\030\001 \001(\t\022P\n\noperations\030\002" + - " \003(\0132<.google.ads.googleads.v0.services." + - "CampaignSharedSetOperation\"\203\001\n\032CampaignS" + - "haredSetOperation\022F\n\006create\030\001 \001(\01324.goog" + - "le.ads.googleads.v0.resources.CampaignSh" + - "aredSetH\000\022\020\n\006remove\030\003 \001(\tH\000B\013\n\toperation" + - "\"t\n MutateCampaignSharedSetsResponse\022P\n\007" + - "results\030\002 \003(\0132?.google.ads.googleads.v0." + - "services.MutateCampaignSharedSetResult\"6" + - "\n\035MutateCampaignSharedSetResult\022\025\n\rresou" + - "rce_name\030\001 \001(\t2\316\003\n\030CampaignSharedSetServ" + - "ice\022\311\001\n\024GetCampaignSharedSet\022=.google.ad" + - "s.googleads.v0.services.GetCampaignShare" + - "dSetRequest\0324.google.ads.googleads.v0.re" + - "sources.CampaignSharedSet\"<\202\323\344\223\0026\0224/v0/{" + - "resource_name=customers/*/campaignShared" + - "Sets/*}\022\345\001\n\030MutateCampaignSharedSets\022A.g" + - "oogle.ads.googleads.v0.services.MutateCa" + - "mpaignSharedSetsRequest\032B.google.ads.goo" + - "gleads.v0.services.MutateCampaignSharedS" + - "etsResponse\"B\202\323\344\223\002<\"7/v0/customers/{cust" + - "omer_id=*}/campaignSharedSets:mutate:\001*B" + - "\335\001\n$com.google.ads.googleads.v0.services" + - "B\035CampaignSharedSetServiceProtoP\001ZHgoogl" + - "e.golang.org/genproto/googleapis/ads/goo" + - "gleads/v0/services;services\242\002\003GAA\252\002 Goog" + - "le.Ads.GoogleAds.V0.Services\312\002 Google\\Ad" + - "s\\GoogleAds\\V0\\Servicesb\006proto3" + "oto\032\034google/api/annotations.proto\032\036googl" + + "e/protobuf/wrappers.proto\032\027google/rpc/st" + + "atus.proto\"4\n\033GetCampaignSharedSetReques" + + "t\022\025\n\rresource_name\030\001 \001(\t\"\270\001\n\037MutateCampa" + + "ignSharedSetsRequest\022\023\n\013customer_id\030\001 \001(" + + "\t\022P\n\noperations\030\002 \003(\0132<.google.ads.googl" + + "eads.v0.services.CampaignSharedSetOperat" + + "ion\022\027\n\017partial_failure\030\003 \001(\010\022\025\n\rvalidate" + + "_only\030\004 \001(\010\"\203\001\n\032CampaignSharedSetOperati" + + "on\022F\n\006create\030\001 \001(\01324.google.ads.googlead" + + "s.v0.resources.CampaignSharedSetH\000\022\020\n\006re" + + "move\030\003 \001(\tH\000B\013\n\toperation\"\247\001\n MutateCamp" + + "aignSharedSetsResponse\0221\n\025partial_failur" + + "e_error\030\003 \001(\0132\022.google.rpc.Status\022P\n\007res" + + "ults\030\002 \003(\0132?.google.ads.googleads.v0.ser" + + "vices.MutateCampaignSharedSetResult\"6\n\035M" + + "utateCampaignSharedSetResult\022\025\n\rresource" + + "_name\030\001 \001(\t2\316\003\n\030CampaignSharedSetService" + + "\022\311\001\n\024GetCampaignSharedSet\022=.google.ads.g" + + "oogleads.v0.services.GetCampaignSharedSe" + + "tRequest\0324.google.ads.googleads.v0.resou" + + "rces.CampaignSharedSet\"<\202\323\344\223\0026\0224/v0/{res" + + "ource_name=customers/*/campaignSharedSet" + + "s/*}\022\345\001\n\030MutateCampaignSharedSets\022A.goog" + + "le.ads.googleads.v0.services.MutateCampa" + + "ignSharedSetsRequest\032B.google.ads.google" + + "ads.v0.services.MutateCampaignSharedSets" + + "Response\"B\202\323\344\223\002<\"7/v0/customers/{custome" + + "r_id=*}/campaignSharedSets:mutate:\001*B\204\002\n" + + "$com.google.ads.googleads.v0.servicesB\035C" + + "ampaignSharedSetServiceProtoP\001ZHgoogle.g" + + "olang.org/genproto/googleapis/ads/google" + + "ads/v0/services;services\242\002\003GAA\252\002 Google." + + "Ads.GoogleAds.V0.Services\312\002 Google\\Ads\\G" + + "oogleAds\\V0\\Services\352\002$Google::Ads::Goog" + + "leAds::V0::Servicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -97,6 +102,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.ads.googleads.v0.resources.CampaignSharedSetProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), }, assigner); internal_static_google_ads_googleads_v0_services_GetCampaignSharedSetRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -109,7 +116,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateCampaignSharedSetsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateCampaignSharedSetsRequest_descriptor, - new java.lang.String[] { "CustomerId", "Operations", }); + new java.lang.String[] { "CustomerId", "Operations", "PartialFailure", "ValidateOnly", }); internal_static_google_ads_googleads_v0_services_CampaignSharedSetOperation_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_ads_googleads_v0_services_CampaignSharedSetOperation_fieldAccessorTable = new @@ -121,7 +128,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateCampaignSharedSetsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateCampaignSharedSetsResponse_descriptor, - new java.lang.String[] { "Results", }); + new java.lang.String[] { "PartialFailureError", "Results", }); internal_static_google_ads_googleads_v0_services_MutateCampaignSharedSetResult_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_google_ads_googleads_v0_services_MutateCampaignSharedSetResult_fieldAccessorTable = new @@ -135,6 +142,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( .internalUpdateFileDescriptor(descriptor, registry); com.google.ads.googleads.v0.resources.CampaignSharedSetProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignSharedSetServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignSharedSetServiceSettings.java index 2d92704cd4..c92c0da18d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignSharedSetServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CampaignSharedSetServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CarrierConstantServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CarrierConstantServiceClient.java index ff86b9d2e4..11b35d3ed2 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CarrierConstantServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CarrierConstantServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -209,7 +209,7 @@ public final CarrierConstant getCarrierConstant(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final CarrierConstant getCarrierConstant(GetCarrierConstantRequest request) { + public final CarrierConstant getCarrierConstant(GetCarrierConstantRequest request) { return getCarrierConstantCallable().call(request); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CarrierConstantServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CarrierConstantServiceProto.java index 2546d15fe2..1a1bc85485 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CarrierConstantServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CarrierConstantServiceProto.java @@ -39,12 +39,13 @@ public static void registerAllExtensions( "ices.GetCarrierConstantRequest\0322.google." + "ads.googleads.v0.resources.CarrierConsta" + "nt\".\202\323\344\223\002(\022&/v0/{resource_name=carrierCo" + - "nstants/*}B\333\001\n$com.google.ads.googleads." + + "nstants/*}B\202\002\n$com.google.ads.googleads." + "v0.servicesB\033CarrierConstantServiceProto" + "P\001ZHgoogle.golang.org/genproto/googleapi" + "s/ads/googleads/v0/services;services\242\002\003G" + "AA\252\002 Google.Ads.GoogleAds.V0.Services\312\002 " + - "Google\\Ads\\GoogleAds\\V0\\Servicesb\006proto3" + "Google\\Ads\\GoogleAds\\V0\\Services\352\002$Googl" + + "e::Ads::GoogleAds::V0::Servicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CarrierConstantServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CarrierConstantServiceSettings.java index 1558b89193..6a766acc0f 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CarrierConstantServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CarrierConstantServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/ChangeStatusServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/ChangeStatusServiceClient.java index 7615379029..a7bbe2edfb 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/ChangeStatusServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/ChangeStatusServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -215,7 +215,7 @@ public final ChangeStatus getChangeStatus(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final ChangeStatus getChangeStatus(GetChangeStatusRequest request) { + public final ChangeStatus getChangeStatus(GetChangeStatusRequest request) { return getChangeStatusCallable().call(request); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/ChangeStatusServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/ChangeStatusServiceProto.java index 306888807a..30b28ae5bc 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/ChangeStatusServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/ChangeStatusServiceProto.java @@ -38,13 +38,14 @@ public static void registerAllExtensions( "gle.ads.googleads.v0.services.GetChangeS" + "tatusRequest\032/.google.ads.googleads.v0.r" + "esources.ChangeStatus\"6\202\323\344\223\0020\022./v0/{reso" + - "urce_name=customers/*/changeStatus/*}B\330\001" + + "urce_name=customers/*/changeStatus/*}B\377\001" + "\n$com.google.ads.googleads.v0.servicesB\030" + "ChangeStatusServiceProtoP\001ZHgoogle.golan" + "g.org/genproto/googleapis/ads/googleads/" + "v0/services;services\242\002\003GAA\252\002 Google.Ads." + "GoogleAds.V0.Services\312\002 Google\\Ads\\Googl" + - "eAds\\V0\\Servicesb\006proto3" + "eAds\\V0\\Services\352\002$Google::Ads::GoogleAd" + + "s::V0::Servicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/ChangeStatusServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/ChangeStatusServiceSettings.java index f2ef679d17..487555bb80 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/ChangeStatusServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/ChangeStatusServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/ConversionActionServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/ConversionActionServiceClient.java index 4972cdfa22..0da501b1fa 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/ConversionActionServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/ConversionActionServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -221,7 +221,7 @@ public final ConversionAction getConversionAction(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final ConversionAction getConversionAction(GetConversionActionRequest request) { + public final ConversionAction getConversionAction(GetConversionActionRequest request) { return getConversionActionCallable().call(request); } @@ -248,6 +248,47 @@ private final ConversionAction getConversionAction(GetConversionActionRequest re return stub.getConversionActionCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates, updates or removes conversion actions. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (ConversionActionServiceClient conversionActionServiceClient = ConversionActionServiceClient.create()) {
+   *   String customerId = "";
+   *   List<ConversionActionOperation> operations = new ArrayList<>();
+   *   boolean partialFailure = false;
+   *   boolean validateOnly = false;
+   *   MutateConversionActionsResponse response = conversionActionServiceClient.mutateConversionActions(customerId, operations, partialFailure, validateOnly);
+   * }
+   * 
+ * + * @param customerId The ID of the customer whose conversion actions are being modified. + * @param operations The list of operations to perform on individual conversion actions. + * @param partialFailure If true, successful operations will be carried out and invalid operations + * will return errors. If false, all operations will be carried out in one transaction if and + * only if they are all valid. Default is false. + * @param validateOnly If true, the request is validated but not executed. Only errors are + * returned, not results. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateConversionActionsResponse mutateConversionActions( + String customerId, + List operations, + boolean partialFailure, + boolean validateOnly) { + + MutateConversionActionsRequest request = + MutateConversionActionsRequest.newBuilder() + .setCustomerId(customerId) + .addAllOperations(operations) + .setPartialFailure(partialFailure) + .setValidateOnly(validateOnly) + .build(); + return mutateConversionActions(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Creates, updates or removes conversion actions. Operation statuses are returned. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/ConversionActionServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/ConversionActionServiceProto.java index 103b69667e..9f56d917b7 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/ConversionActionServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/ConversionActionServiceProto.java @@ -53,40 +53,44 @@ public static void registerAllExtensions( "oogleads.v0.services\0329google/ads/googlea" + "ds/v0/resources/conversion_action.proto\032" + "\034google/api/annotations.proto\032 google/pr" + - "otobuf/field_mask.proto\"3\n\032GetConversion" + - "ActionRequest\022\025\n\rresource_name\030\001 \001(\t\"\206\001\n" + - "\036MutateConversionActionsRequest\022\023\n\013custo" + - "mer_id\030\001 \001(\t\022O\n\noperations\030\002 \003(\0132;.googl" + - "e.ads.googleads.v0.services.ConversionAc" + - "tionOperation\"\371\001\n\031ConversionActionOperat" + - "ion\022/\n\013update_mask\030\004 \001(\0132\032.google.protob" + - "uf.FieldMask\022E\n\006create\030\001 \001(\01323.google.ad" + - "s.googleads.v0.resources.ConversionActio" + - "nH\000\022E\n\006update\030\002 \001(\01323.google.ads.googlea" + - "ds.v0.resources.ConversionActionH\000\022\020\n\006re" + - "move\030\003 \001(\tH\000B\013\n\toperation\"r\n\037MutateConve" + - "rsionActionsResponse\022O\n\007results\030\002 \003(\0132>." + - "google.ads.googleads.v0.services.MutateC" + - "onversionActionResult\"5\n\034MutateConversio" + - "nActionResult\022\025\n\rresource_name\030\001 \001(\t2\305\003\n" + - "\027ConversionActionService\022\305\001\n\023GetConversi" + - "onAction\022<.google.ads.googleads.v0.servi" + - "ces.GetConversionActionRequest\0323.google." + - "ads.googleads.v0.resources.ConversionAct" + - "ion\";\202\323\344\223\0025\0223/v0/{resource_name=customer" + - "s/*/conversionActions/*}\022\341\001\n\027MutateConve" + - "rsionActions\022@.google.ads.googleads.v0.s" + - "ervices.MutateConversionActionsRequest\032A" + - ".google.ads.googleads.v0.services.Mutate" + - "ConversionActionsResponse\"A\202\323\344\223\002;\"6/v0/c" + - "ustomers/{customer_id=*}/conversionActio" + - "ns:mutate:\001*B\334\001\n$com.google.ads.googlead" + - "s.v0.servicesB\034ConversionActionServicePr" + - "otoP\001ZHgoogle.golang.org/genproto/google" + - "apis/ads/googleads/v0/services;services\242" + - "\002\003GAA\252\002 Google.Ads.GoogleAds.V0.Services" + - "\312\002 Google\\Ads\\GoogleAds\\V0\\Servicesb\006pro" + - "to3" + "otobuf/field_mask.proto\032\036google/protobuf" + + "/wrappers.proto\032\027google/rpc/status.proto" + + "\"3\n\032GetConversionActionRequest\022\025\n\rresour" + + "ce_name\030\001 \001(\t\"\266\001\n\036MutateConversionAction" + + "sRequest\022\023\n\013customer_id\030\001 \001(\t\022O\n\noperati" + + "ons\030\002 \003(\0132;.google.ads.googleads.v0.serv" + + "ices.ConversionActionOperation\022\027\n\017partia" + + "l_failure\030\003 \001(\010\022\025\n\rvalidate_only\030\004 \001(\010\"\371" + + "\001\n\031ConversionActionOperation\022/\n\013update_m" + + "ask\030\004 \001(\0132\032.google.protobuf.FieldMask\022E\n" + + "\006create\030\001 \001(\01323.google.ads.googleads.v0." + + "resources.ConversionActionH\000\022E\n\006update\030\002" + + " \001(\01323.google.ads.googleads.v0.resources" + + ".ConversionActionH\000\022\020\n\006remove\030\003 \001(\tH\000B\013\n" + + "\toperation\"\245\001\n\037MutateConversionActionsRe" + + "sponse\0221\n\025partial_failure_error\030\003 \001(\0132\022." + + "google.rpc.Status\022O\n\007results\030\002 \003(\0132>.goo" + + "gle.ads.googleads.v0.services.MutateConv" + + "ersionActionResult\"5\n\034MutateConversionAc" + + "tionResult\022\025\n\rresource_name\030\001 \001(\t2\305\003\n\027Co" + + "nversionActionService\022\305\001\n\023GetConversionA" + + "ction\022<.google.ads.googleads.v0.services" + + ".GetConversionActionRequest\0323.google.ads" + + ".googleads.v0.resources.ConversionAction" + + "\";\202\323\344\223\0025\0223/v0/{resource_name=customers/*" + + "/conversionActions/*}\022\341\001\n\027MutateConversi" + + "onActions\022@.google.ads.googleads.v0.serv" + + "ices.MutateConversionActionsRequest\032A.go" + + "ogle.ads.googleads.v0.services.MutateCon" + + "versionActionsResponse\"A\202\323\344\223\002;\"6/v0/cust" + + "omers/{customer_id=*}/conversionActions:" + + "mutate:\001*B\203\002\n$com.google.ads.googleads.v" + + "0.servicesB\034ConversionActionServiceProto" + + "P\001ZHgoogle.golang.org/genproto/googleapi" + + "s/ads/googleads/v0/services;services\242\002\003G" + + "AA\252\002 Google.Ads.GoogleAds.V0.Services\312\002 " + + "Google\\Ads\\GoogleAds\\V0\\Services\352\002$Googl" + + "e::Ads::GoogleAds::V0::Servicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -102,6 +106,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.ConversionActionProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), }, assigner); internal_static_google_ads_googleads_v0_services_GetConversionActionRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -114,7 +120,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateConversionActionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateConversionActionsRequest_descriptor, - new java.lang.String[] { "CustomerId", "Operations", }); + new java.lang.String[] { "CustomerId", "Operations", "PartialFailure", "ValidateOnly", }); internal_static_google_ads_googleads_v0_services_ConversionActionOperation_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_ads_googleads_v0_services_ConversionActionOperation_fieldAccessorTable = new @@ -126,7 +132,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateConversionActionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateConversionActionsResponse_descriptor, - new java.lang.String[] { "Results", }); + new java.lang.String[] { "PartialFailureError", "Results", }); internal_static_google_ads_googleads_v0_services_MutateConversionActionResult_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_google_ads_googleads_v0_services_MutateConversionActionResult_fieldAccessorTable = new @@ -141,6 +147,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.ConversionActionProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/ConversionActionServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/ConversionActionServiceSettings.java index 0f6b592d17..10de2bcb4d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/ConversionActionServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/ConversionActionServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientLinkOperation.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientLinkOperation.java new file mode 100644 index 0000000000..889966def8 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientLinkOperation.java @@ -0,0 +1,1223 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/customer_client_link_service.proto + +package com.google.ads.googleads.v0.services; + +/** + *
+ * A single operation (create, update) on a CustomerClientLink.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.services.CustomerClientLinkOperation} + */ +public final class CustomerClientLinkOperation extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.services.CustomerClientLinkOperation) + CustomerClientLinkOperationOrBuilder { +private static final long serialVersionUID = 0L; + // Use CustomerClientLinkOperation.newBuilder() to construct. + private CustomerClientLinkOperation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CustomerClientLinkOperation() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CustomerClientLinkOperation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.ads.googleads.v0.resources.CustomerClientLink.Builder subBuilder = null; + if (operationCase_ == 1) { + subBuilder = ((com.google.ads.googleads.v0.resources.CustomerClientLink) operation_).toBuilder(); + } + operation_ = + input.readMessage(com.google.ads.googleads.v0.resources.CustomerClientLink.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.ads.googleads.v0.resources.CustomerClientLink) operation_); + operation_ = subBuilder.buildPartial(); + } + operationCase_ = 1; + break; + } + case 18: { + com.google.ads.googleads.v0.resources.CustomerClientLink.Builder subBuilder = null; + if (operationCase_ == 2) { + subBuilder = ((com.google.ads.googleads.v0.resources.CustomerClientLink) operation_).toBuilder(); + } + operation_ = + input.readMessage(com.google.ads.googleads.v0.resources.CustomerClientLink.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.ads.googleads.v0.resources.CustomerClientLink) operation_); + operation_ = subBuilder.buildPartial(); + } + operationCase_ = 2; + break; + } + case 34: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.services.CustomerClientLinkServiceProto.internal_static_google_ads_googleads_v0_services_CustomerClientLinkOperation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.services.CustomerClientLinkServiceProto.internal_static_google_ads_googleads_v0_services_CustomerClientLinkOperation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.services.CustomerClientLinkOperation.class, com.google.ads.googleads.v0.services.CustomerClientLinkOperation.Builder.class); + } + + private int operationCase_ = 0; + private java.lang.Object operation_; + public enum OperationCase + implements com.google.protobuf.Internal.EnumLite { + CREATE(1), + UPDATE(2), + OPERATION_NOT_SET(0); + private final int value; + private OperationCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OperationCase valueOf(int value) { + return forNumber(value); + } + + public static OperationCase forNumber(int value) { + switch (value) { + case 1: return CREATE; + case 2: return UPDATE; + case 0: return OPERATION_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OperationCase + getOperationCase() { + return OperationCase.forNumber( + operationCase_); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 4; + private com.google.protobuf.FieldMask updateMask_; + /** + *
+   * FieldMask that determines which resource fields are modified in an update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + *
+   * FieldMask that determines which resource fields are modified in an update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + *
+   * FieldMask that determines which resource fields are modified in an update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + public static final int CREATE_FIELD_NUMBER = 1; + /** + *
+   * Create operation: No resource name is expected for the new link.
+   * 
+ * + * .google.ads.googleads.v0.resources.CustomerClientLink create = 1; + */ + public boolean hasCreate() { + return operationCase_ == 1; + } + /** + *
+   * Create operation: No resource name is expected for the new link.
+   * 
+ * + * .google.ads.googleads.v0.resources.CustomerClientLink create = 1; + */ + public com.google.ads.googleads.v0.resources.CustomerClientLink getCreate() { + if (operationCase_ == 1) { + return (com.google.ads.googleads.v0.resources.CustomerClientLink) operation_; + } + return com.google.ads.googleads.v0.resources.CustomerClientLink.getDefaultInstance(); + } + /** + *
+   * Create operation: No resource name is expected for the new link.
+   * 
+ * + * .google.ads.googleads.v0.resources.CustomerClientLink create = 1; + */ + public com.google.ads.googleads.v0.resources.CustomerClientLinkOrBuilder getCreateOrBuilder() { + if (operationCase_ == 1) { + return (com.google.ads.googleads.v0.resources.CustomerClientLink) operation_; + } + return com.google.ads.googleads.v0.resources.CustomerClientLink.getDefaultInstance(); + } + + public static final int UPDATE_FIELD_NUMBER = 2; + /** + *
+   * Update operation: The link is expected to have a valid resource name.
+   * 
+ * + * .google.ads.googleads.v0.resources.CustomerClientLink update = 2; + */ + public boolean hasUpdate() { + return operationCase_ == 2; + } + /** + *
+   * Update operation: The link is expected to have a valid resource name.
+   * 
+ * + * .google.ads.googleads.v0.resources.CustomerClientLink update = 2; + */ + public com.google.ads.googleads.v0.resources.CustomerClientLink getUpdate() { + if (operationCase_ == 2) { + return (com.google.ads.googleads.v0.resources.CustomerClientLink) operation_; + } + return com.google.ads.googleads.v0.resources.CustomerClientLink.getDefaultInstance(); + } + /** + *
+   * Update operation: The link is expected to have a valid resource name.
+   * 
+ * + * .google.ads.googleads.v0.resources.CustomerClientLink update = 2; + */ + public com.google.ads.googleads.v0.resources.CustomerClientLinkOrBuilder getUpdateOrBuilder() { + if (operationCase_ == 2) { + return (com.google.ads.googleads.v0.resources.CustomerClientLink) operation_; + } + return com.google.ads.googleads.v0.resources.CustomerClientLink.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (operationCase_ == 1) { + output.writeMessage(1, (com.google.ads.googleads.v0.resources.CustomerClientLink) operation_); + } + if (operationCase_ == 2) { + output.writeMessage(2, (com.google.ads.googleads.v0.resources.CustomerClientLink) operation_); + } + if (updateMask_ != null) { + output.writeMessage(4, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (operationCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.ads.googleads.v0.resources.CustomerClientLink) operation_); + } + if (operationCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.ads.googleads.v0.resources.CustomerClientLink) operation_); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUpdateMask()); + } + size += unknownFields.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.ads.googleads.v0.services.CustomerClientLinkOperation)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.services.CustomerClientLinkOperation other = (com.google.ads.googleads.v0.services.CustomerClientLinkOperation) obj; + + boolean result = true; + result = result && (hasUpdateMask() == other.hasUpdateMask()); + if (hasUpdateMask()) { + result = result && getUpdateMask() + .equals(other.getUpdateMask()); + } + result = result && getOperationCase().equals( + other.getOperationCase()); + if (!result) return false; + switch (operationCase_) { + case 1: + result = result && getCreate() + .equals(other.getCreate()); + break; + case 2: + result = result && getUpdate() + .equals(other.getUpdate()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + switch (operationCase_) { + case 1: + hash = (37 * hash) + CREATE_FIELD_NUMBER; + hash = (53 * hash) + getCreate().hashCode(); + break; + case 2: + hash = (37 * hash) + UPDATE_FIELD_NUMBER; + hash = (53 * hash) + getUpdate().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.services.CustomerClientLinkOperation parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.CustomerClientLinkOperation parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.services.CustomerClientLinkOperation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.CustomerClientLinkOperation 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.ads.googleads.v0.services.CustomerClientLinkOperation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.CustomerClientLinkOperation parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.services.CustomerClientLinkOperation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.CustomerClientLinkOperation 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.ads.googleads.v0.services.CustomerClientLinkOperation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.CustomerClientLinkOperation 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.ads.googleads.v0.services.CustomerClientLinkOperation parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.CustomerClientLinkOperation 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.ads.googleads.v0.services.CustomerClientLinkOperation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A single operation (create, update) on a CustomerClientLink.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.services.CustomerClientLinkOperation} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.services.CustomerClientLinkOperation) + com.google.ads.googleads.v0.services.CustomerClientLinkOperationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.services.CustomerClientLinkServiceProto.internal_static_google_ads_googleads_v0_services_CustomerClientLinkOperation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.services.CustomerClientLinkServiceProto.internal_static_google_ads_googleads_v0_services_CustomerClientLinkOperation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.services.CustomerClientLinkOperation.class, com.google.ads.googleads.v0.services.CustomerClientLinkOperation.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.services.CustomerClientLinkOperation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + operationCase_ = 0; + operation_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.services.CustomerClientLinkServiceProto.internal_static_google_ads_googleads_v0_services_CustomerClientLinkOperation_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.CustomerClientLinkOperation getDefaultInstanceForType() { + return com.google.ads.googleads.v0.services.CustomerClientLinkOperation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.CustomerClientLinkOperation build() { + com.google.ads.googleads.v0.services.CustomerClientLinkOperation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.CustomerClientLinkOperation buildPartial() { + com.google.ads.googleads.v0.services.CustomerClientLinkOperation result = new com.google.ads.googleads.v0.services.CustomerClientLinkOperation(this); + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + if (operationCase_ == 1) { + if (createBuilder_ == null) { + result.operation_ = operation_; + } else { + result.operation_ = createBuilder_.build(); + } + } + if (operationCase_ == 2) { + if (updateBuilder_ == null) { + result.operation_ = operation_; + } else { + result.operation_ = updateBuilder_.build(); + } + } + result.operationCase_ = operationCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.services.CustomerClientLinkOperation) { + return mergeFrom((com.google.ads.googleads.v0.services.CustomerClientLinkOperation)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.services.CustomerClientLinkOperation other) { + if (other == com.google.ads.googleads.v0.services.CustomerClientLinkOperation.getDefaultInstance()) return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + switch (other.getOperationCase()) { + case CREATE: { + mergeCreate(other.getCreate()); + break; + } + case UPDATE: { + mergeUpdate(other.getUpdate()); + break; + } + case OPERATION_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.services.CustomerClientLinkOperation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.services.CustomerClientLinkOperation) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int operationCase_ = 0; + private java.lang.Object operation_; + public OperationCase + getOperationCase() { + return OperationCase.forNumber( + operationCase_); + } + + public Builder clearOperation() { + operationCase_ = 0; + operation_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.FieldMask updateMask_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + /** + *
+     * FieldMask that determines which resource fields are modified in an update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + *
+     * FieldMask that determines which resource fields are modified in an update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + *
+     * FieldMask that determines which resource fields are modified in an update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * FieldMask that determines which resource fields are modified in an update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * FieldMask that determines which resource fields are modified in an update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * FieldMask that determines which resource fields are modified in an update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + *
+     * FieldMask that determines which resource fields are modified in an update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + *
+     * FieldMask that determines which resource fields are modified in an update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + } + /** + *
+     * FieldMask that determines which resource fields are modified in an update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.CustomerClientLink, com.google.ads.googleads.v0.resources.CustomerClientLink.Builder, com.google.ads.googleads.v0.resources.CustomerClientLinkOrBuilder> createBuilder_; + /** + *
+     * Create operation: No resource name is expected for the new link.
+     * 
+ * + * .google.ads.googleads.v0.resources.CustomerClientLink create = 1; + */ + public boolean hasCreate() { + return operationCase_ == 1; + } + /** + *
+     * Create operation: No resource name is expected for the new link.
+     * 
+ * + * .google.ads.googleads.v0.resources.CustomerClientLink create = 1; + */ + public com.google.ads.googleads.v0.resources.CustomerClientLink getCreate() { + if (createBuilder_ == null) { + if (operationCase_ == 1) { + return (com.google.ads.googleads.v0.resources.CustomerClientLink) operation_; + } + return com.google.ads.googleads.v0.resources.CustomerClientLink.getDefaultInstance(); + } else { + if (operationCase_ == 1) { + return createBuilder_.getMessage(); + } + return com.google.ads.googleads.v0.resources.CustomerClientLink.getDefaultInstance(); + } + } + /** + *
+     * Create operation: No resource name is expected for the new link.
+     * 
+ * + * .google.ads.googleads.v0.resources.CustomerClientLink create = 1; + */ + public Builder setCreate(com.google.ads.googleads.v0.resources.CustomerClientLink value) { + if (createBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + operation_ = value; + onChanged(); + } else { + createBuilder_.setMessage(value); + } + operationCase_ = 1; + return this; + } + /** + *
+     * Create operation: No resource name is expected for the new link.
+     * 
+ * + * .google.ads.googleads.v0.resources.CustomerClientLink create = 1; + */ + public Builder setCreate( + com.google.ads.googleads.v0.resources.CustomerClientLink.Builder builderForValue) { + if (createBuilder_ == null) { + operation_ = builderForValue.build(); + onChanged(); + } else { + createBuilder_.setMessage(builderForValue.build()); + } + operationCase_ = 1; + return this; + } + /** + *
+     * Create operation: No resource name is expected for the new link.
+     * 
+ * + * .google.ads.googleads.v0.resources.CustomerClientLink create = 1; + */ + public Builder mergeCreate(com.google.ads.googleads.v0.resources.CustomerClientLink value) { + if (createBuilder_ == null) { + if (operationCase_ == 1 && + operation_ != com.google.ads.googleads.v0.resources.CustomerClientLink.getDefaultInstance()) { + operation_ = com.google.ads.googleads.v0.resources.CustomerClientLink.newBuilder((com.google.ads.googleads.v0.resources.CustomerClientLink) operation_) + .mergeFrom(value).buildPartial(); + } else { + operation_ = value; + } + onChanged(); + } else { + if (operationCase_ == 1) { + createBuilder_.mergeFrom(value); + } + createBuilder_.setMessage(value); + } + operationCase_ = 1; + return this; + } + /** + *
+     * Create operation: No resource name is expected for the new link.
+     * 
+ * + * .google.ads.googleads.v0.resources.CustomerClientLink create = 1; + */ + public Builder clearCreate() { + if (createBuilder_ == null) { + if (operationCase_ == 1) { + operationCase_ = 0; + operation_ = null; + onChanged(); + } + } else { + if (operationCase_ == 1) { + operationCase_ = 0; + operation_ = null; + } + createBuilder_.clear(); + } + return this; + } + /** + *
+     * Create operation: No resource name is expected for the new link.
+     * 
+ * + * .google.ads.googleads.v0.resources.CustomerClientLink create = 1; + */ + public com.google.ads.googleads.v0.resources.CustomerClientLink.Builder getCreateBuilder() { + return getCreateFieldBuilder().getBuilder(); + } + /** + *
+     * Create operation: No resource name is expected for the new link.
+     * 
+ * + * .google.ads.googleads.v0.resources.CustomerClientLink create = 1; + */ + public com.google.ads.googleads.v0.resources.CustomerClientLinkOrBuilder getCreateOrBuilder() { + if ((operationCase_ == 1) && (createBuilder_ != null)) { + return createBuilder_.getMessageOrBuilder(); + } else { + if (operationCase_ == 1) { + return (com.google.ads.googleads.v0.resources.CustomerClientLink) operation_; + } + return com.google.ads.googleads.v0.resources.CustomerClientLink.getDefaultInstance(); + } + } + /** + *
+     * Create operation: No resource name is expected for the new link.
+     * 
+ * + * .google.ads.googleads.v0.resources.CustomerClientLink create = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.CustomerClientLink, com.google.ads.googleads.v0.resources.CustomerClientLink.Builder, com.google.ads.googleads.v0.resources.CustomerClientLinkOrBuilder> + getCreateFieldBuilder() { + if (createBuilder_ == null) { + if (!(operationCase_ == 1)) { + operation_ = com.google.ads.googleads.v0.resources.CustomerClientLink.getDefaultInstance(); + } + createBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.CustomerClientLink, com.google.ads.googleads.v0.resources.CustomerClientLink.Builder, com.google.ads.googleads.v0.resources.CustomerClientLinkOrBuilder>( + (com.google.ads.googleads.v0.resources.CustomerClientLink) operation_, + getParentForChildren(), + isClean()); + operation_ = null; + } + operationCase_ = 1; + onChanged();; + return createBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.CustomerClientLink, com.google.ads.googleads.v0.resources.CustomerClientLink.Builder, com.google.ads.googleads.v0.resources.CustomerClientLinkOrBuilder> updateBuilder_; + /** + *
+     * Update operation: The link is expected to have a valid resource name.
+     * 
+ * + * .google.ads.googleads.v0.resources.CustomerClientLink update = 2; + */ + public boolean hasUpdate() { + return operationCase_ == 2; + } + /** + *
+     * Update operation: The link is expected to have a valid resource name.
+     * 
+ * + * .google.ads.googleads.v0.resources.CustomerClientLink update = 2; + */ + public com.google.ads.googleads.v0.resources.CustomerClientLink getUpdate() { + if (updateBuilder_ == null) { + if (operationCase_ == 2) { + return (com.google.ads.googleads.v0.resources.CustomerClientLink) operation_; + } + return com.google.ads.googleads.v0.resources.CustomerClientLink.getDefaultInstance(); + } else { + if (operationCase_ == 2) { + return updateBuilder_.getMessage(); + } + return com.google.ads.googleads.v0.resources.CustomerClientLink.getDefaultInstance(); + } + } + /** + *
+     * Update operation: The link is expected to have a valid resource name.
+     * 
+ * + * .google.ads.googleads.v0.resources.CustomerClientLink update = 2; + */ + public Builder setUpdate(com.google.ads.googleads.v0.resources.CustomerClientLink value) { + if (updateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + operation_ = value; + onChanged(); + } else { + updateBuilder_.setMessage(value); + } + operationCase_ = 2; + return this; + } + /** + *
+     * Update operation: The link is expected to have a valid resource name.
+     * 
+ * + * .google.ads.googleads.v0.resources.CustomerClientLink update = 2; + */ + public Builder setUpdate( + com.google.ads.googleads.v0.resources.CustomerClientLink.Builder builderForValue) { + if (updateBuilder_ == null) { + operation_ = builderForValue.build(); + onChanged(); + } else { + updateBuilder_.setMessage(builderForValue.build()); + } + operationCase_ = 2; + return this; + } + /** + *
+     * Update operation: The link is expected to have a valid resource name.
+     * 
+ * + * .google.ads.googleads.v0.resources.CustomerClientLink update = 2; + */ + public Builder mergeUpdate(com.google.ads.googleads.v0.resources.CustomerClientLink value) { + if (updateBuilder_ == null) { + if (operationCase_ == 2 && + operation_ != com.google.ads.googleads.v0.resources.CustomerClientLink.getDefaultInstance()) { + operation_ = com.google.ads.googleads.v0.resources.CustomerClientLink.newBuilder((com.google.ads.googleads.v0.resources.CustomerClientLink) operation_) + .mergeFrom(value).buildPartial(); + } else { + operation_ = value; + } + onChanged(); + } else { + if (operationCase_ == 2) { + updateBuilder_.mergeFrom(value); + } + updateBuilder_.setMessage(value); + } + operationCase_ = 2; + return this; + } + /** + *
+     * Update operation: The link is expected to have a valid resource name.
+     * 
+ * + * .google.ads.googleads.v0.resources.CustomerClientLink update = 2; + */ + public Builder clearUpdate() { + if (updateBuilder_ == null) { + if (operationCase_ == 2) { + operationCase_ = 0; + operation_ = null; + onChanged(); + } + } else { + if (operationCase_ == 2) { + operationCase_ = 0; + operation_ = null; + } + updateBuilder_.clear(); + } + return this; + } + /** + *
+     * Update operation: The link is expected to have a valid resource name.
+     * 
+ * + * .google.ads.googleads.v0.resources.CustomerClientLink update = 2; + */ + public com.google.ads.googleads.v0.resources.CustomerClientLink.Builder getUpdateBuilder() { + return getUpdateFieldBuilder().getBuilder(); + } + /** + *
+     * Update operation: The link is expected to have a valid resource name.
+     * 
+ * + * .google.ads.googleads.v0.resources.CustomerClientLink update = 2; + */ + public com.google.ads.googleads.v0.resources.CustomerClientLinkOrBuilder getUpdateOrBuilder() { + if ((operationCase_ == 2) && (updateBuilder_ != null)) { + return updateBuilder_.getMessageOrBuilder(); + } else { + if (operationCase_ == 2) { + return (com.google.ads.googleads.v0.resources.CustomerClientLink) operation_; + } + return com.google.ads.googleads.v0.resources.CustomerClientLink.getDefaultInstance(); + } + } + /** + *
+     * Update operation: The link is expected to have a valid resource name.
+     * 
+ * + * .google.ads.googleads.v0.resources.CustomerClientLink update = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.CustomerClientLink, com.google.ads.googleads.v0.resources.CustomerClientLink.Builder, com.google.ads.googleads.v0.resources.CustomerClientLinkOrBuilder> + getUpdateFieldBuilder() { + if (updateBuilder_ == null) { + if (!(operationCase_ == 2)) { + operation_ = com.google.ads.googleads.v0.resources.CustomerClientLink.getDefaultInstance(); + } + updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.CustomerClientLink, com.google.ads.googleads.v0.resources.CustomerClientLink.Builder, com.google.ads.googleads.v0.resources.CustomerClientLinkOrBuilder>( + (com.google.ads.googleads.v0.resources.CustomerClientLink) operation_, + getParentForChildren(), + isClean()); + operation_ = null; + } + operationCase_ = 2; + onChanged();; + return updateBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.services.CustomerClientLinkOperation) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.CustomerClientLinkOperation) + private static final com.google.ads.googleads.v0.services.CustomerClientLinkOperation DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.services.CustomerClientLinkOperation(); + } + + public static com.google.ads.googleads.v0.services.CustomerClientLinkOperation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomerClientLinkOperation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomerClientLinkOperation(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.services.CustomerClientLinkOperation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientLinkOperationOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientLinkOperationOrBuilder.java new file mode 100644 index 0000000000..8311ce9021 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientLinkOperationOrBuilder.java @@ -0,0 +1,86 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/customer_client_link_service.proto + +package com.google.ads.googleads.v0.services; + +public interface CustomerClientLinkOperationOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.CustomerClientLinkOperation) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * FieldMask that determines which resource fields are modified in an update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + boolean hasUpdateMask(); + /** + *
+   * FieldMask that determines which resource fields are modified in an update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + *
+   * FieldMask that determines which resource fields are modified in an update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + *
+   * Create operation: No resource name is expected for the new link.
+   * 
+ * + * .google.ads.googleads.v0.resources.CustomerClientLink create = 1; + */ + boolean hasCreate(); + /** + *
+   * Create operation: No resource name is expected for the new link.
+   * 
+ * + * .google.ads.googleads.v0.resources.CustomerClientLink create = 1; + */ + com.google.ads.googleads.v0.resources.CustomerClientLink getCreate(); + /** + *
+   * Create operation: No resource name is expected for the new link.
+   * 
+ * + * .google.ads.googleads.v0.resources.CustomerClientLink create = 1; + */ + com.google.ads.googleads.v0.resources.CustomerClientLinkOrBuilder getCreateOrBuilder(); + + /** + *
+   * Update operation: The link is expected to have a valid resource name.
+   * 
+ * + * .google.ads.googleads.v0.resources.CustomerClientLink update = 2; + */ + boolean hasUpdate(); + /** + *
+   * Update operation: The link is expected to have a valid resource name.
+   * 
+ * + * .google.ads.googleads.v0.resources.CustomerClientLink update = 2; + */ + com.google.ads.googleads.v0.resources.CustomerClientLink getUpdate(); + /** + *
+   * Update operation: The link is expected to have a valid resource name.
+   * 
+ * + * .google.ads.googleads.v0.resources.CustomerClientLink update = 2; + */ + com.google.ads.googleads.v0.resources.CustomerClientLinkOrBuilder getUpdateOrBuilder(); + + public com.google.ads.googleads.v0.services.CustomerClientLinkOperation.OperationCase getOperationCase(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientLinkServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientLinkServiceClient.java index 4dc7db6a1f..437f8a6a34 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientLinkServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientLinkServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -226,7 +226,7 @@ public final CustomerClientLink getCustomerClientLink(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final CustomerClientLink getCustomerClientLink(GetCustomerClientLinkRequest request) { + public final CustomerClientLink getCustomerClientLink(GetCustomerClientLinkRequest request) { return getCustomerClientLinkCallable().call(request); } @@ -253,6 +253,86 @@ private final CustomerClientLink getCustomerClientLink(GetCustomerClientLinkRequ return stub.getCustomerClientLinkCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates or updates a customer client link. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (CustomerClientLinkServiceClient customerClientLinkServiceClient = CustomerClientLinkServiceClient.create()) {
+   *   String customerId = "";
+   *   CustomerClientLinkOperation operation = CustomerClientLinkOperation.newBuilder().build();
+   *   MutateCustomerClientLinkResponse response = customerClientLinkServiceClient.mutateCustomerClientLink(customerId, operation);
+   * }
+   * 
+ * + * @param customerId The ID of the customer whose customer link are being modified. + * @param operation The operation to perform on the individual CustomerClientLink. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateCustomerClientLinkResponse mutateCustomerClientLink( + String customerId, CustomerClientLinkOperation operation) { + + MutateCustomerClientLinkRequest request = + MutateCustomerClientLinkRequest.newBuilder() + .setCustomerId(customerId) + .setOperation(operation) + .build(); + return mutateCustomerClientLink(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates or updates a customer client link. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (CustomerClientLinkServiceClient customerClientLinkServiceClient = CustomerClientLinkServiceClient.create()) {
+   *   String customerId = "";
+   *   CustomerClientLinkOperation operation = CustomerClientLinkOperation.newBuilder().build();
+   *   MutateCustomerClientLinkRequest request = MutateCustomerClientLinkRequest.newBuilder()
+   *     .setCustomerId(customerId)
+   *     .setOperation(operation)
+   *     .build();
+   *   MutateCustomerClientLinkResponse response = customerClientLinkServiceClient.mutateCustomerClientLink(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateCustomerClientLinkResponse mutateCustomerClientLink( + MutateCustomerClientLinkRequest request) { + return mutateCustomerClientLinkCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates or updates a customer client link. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (CustomerClientLinkServiceClient customerClientLinkServiceClient = CustomerClientLinkServiceClient.create()) {
+   *   String customerId = "";
+   *   CustomerClientLinkOperation operation = CustomerClientLinkOperation.newBuilder().build();
+   *   MutateCustomerClientLinkRequest request = MutateCustomerClientLinkRequest.newBuilder()
+   *     .setCustomerId(customerId)
+   *     .setOperation(operation)
+   *     .build();
+   *   ApiFuture<MutateCustomerClientLinkResponse> future = customerClientLinkServiceClient.mutateCustomerClientLinkCallable().futureCall(request);
+   *   // Do something
+   *   MutateCustomerClientLinkResponse response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + mutateCustomerClientLinkCallable() { + return stub.mutateCustomerClientLinkCallable(); + } + @Override public final void close() { stub.close(); diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientLinkServiceGrpc.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientLinkServiceGrpc.java index 7e6690bfc5..5c0262dc6c 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientLinkServiceGrpc.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientLinkServiceGrpc.java @@ -67,6 +67,43 @@ com.google.ads.googleads.v0.resources.CustomerClientLink> getGetCustomerClientLi } return getGetCustomerClientLinkMethod; } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getMutateCustomerClientLinkMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_MUTATE_CUSTOMER_CLIENT_LINK = getMutateCustomerClientLinkMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getMutateCustomerClientLinkMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getMutateCustomerClientLinkMethod() { + return getMutateCustomerClientLinkMethodHelper(); + } + + private static io.grpc.MethodDescriptor getMutateCustomerClientLinkMethodHelper() { + io.grpc.MethodDescriptor getMutateCustomerClientLinkMethod; + if ((getMutateCustomerClientLinkMethod = CustomerClientLinkServiceGrpc.getMutateCustomerClientLinkMethod) == null) { + synchronized (CustomerClientLinkServiceGrpc.class) { + if ((getMutateCustomerClientLinkMethod = CustomerClientLinkServiceGrpc.getMutateCustomerClientLinkMethod) == null) { + CustomerClientLinkServiceGrpc.getMutateCustomerClientLinkMethod = getMutateCustomerClientLinkMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.ads.googleads.v0.services.CustomerClientLinkService", "MutateCustomerClientLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse.getDefaultInstance())) + .setSchemaDescriptor(new CustomerClientLinkServiceMethodDescriptorSupplier("MutateCustomerClientLink")) + .build(); + } + } + } + return getMutateCustomerClientLinkMethod; + } /** * Creates a new async stub that supports all call types for the service @@ -108,6 +145,16 @@ public void getCustomerClientLink(com.google.ads.googleads.v0.services.GetCustom asyncUnimplementedUnaryCall(getGetCustomerClientLinkMethodHelper(), responseObserver); } + /** + *
+     * Creates or updates a customer client link. Operation statuses are returned.
+     * 
+ */ + public void mutateCustomerClientLink(com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getMutateCustomerClientLinkMethodHelper(), responseObserver); + } + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( @@ -117,6 +164,13 @@ public void getCustomerClientLink(com.google.ads.googleads.v0.services.GetCustom com.google.ads.googleads.v0.services.GetCustomerClientLinkRequest, com.google.ads.googleads.v0.resources.CustomerClientLink>( this, METHODID_GET_CUSTOMER_CLIENT_LINK))) + .addMethod( + getMutateCustomerClientLinkMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest, + com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse>( + this, METHODID_MUTATE_CUSTOMER_CLIENT_LINK))) .build(); } } @@ -152,6 +206,17 @@ public void getCustomerClientLink(com.google.ads.googleads.v0.services.GetCustom asyncUnaryCall( getChannel().newCall(getGetCustomerClientLinkMethodHelper(), getCallOptions()), request, responseObserver); } + + /** + *
+     * Creates or updates a customer client link. Operation statuses are returned.
+     * 
+ */ + public void mutateCustomerClientLink(com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getMutateCustomerClientLinkMethodHelper(), getCallOptions()), request, responseObserver); + } } /** @@ -184,6 +249,16 @@ public com.google.ads.googleads.v0.resources.CustomerClientLink getCustomerClien return blockingUnaryCall( getChannel(), getGetCustomerClientLinkMethodHelper(), getCallOptions(), request); } + + /** + *
+     * Creates or updates a customer client link. Operation statuses are returned.
+     * 
+ */ + public com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse mutateCustomerClientLink(com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest request) { + return blockingUnaryCall( + getChannel(), getMutateCustomerClientLinkMethodHelper(), getCallOptions(), request); + } } /** @@ -217,9 +292,21 @@ public com.google.common.util.concurrent.ListenableFuture + * Creates or updates a customer client link. Operation statuses are returned. + *
+ */ + public com.google.common.util.concurrent.ListenableFuture mutateCustomerClientLink( + com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest request) { + return futureUnaryCall( + getChannel().newCall(getMutateCustomerClientLinkMethodHelper(), getCallOptions()), request); + } } private static final int METHODID_GET_CUSTOMER_CLIENT_LINK = 0; + private static final int METHODID_MUTATE_CUSTOMER_CLIENT_LINK = 1; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -242,6 +329,10 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv serviceImpl.getCustomerClientLink((com.google.ads.googleads.v0.services.GetCustomerClientLinkRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_MUTATE_CUSTOMER_CLIENT_LINK: + serviceImpl.mutateCustomerClientLink((com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -304,6 +395,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new CustomerClientLinkServiceFileDescriptorSupplier()) .addMethod(getGetCustomerClientLinkMethodHelper()) + .addMethod(getMutateCustomerClientLinkMethodHelper()) .build(); } } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientLinkServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientLinkServiceProto.java index ccbc2f7e7f..343d177703 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientLinkServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientLinkServiceProto.java @@ -19,6 +19,26 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_googleads_v0_services_GetCustomerClientLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_services_MutateCustomerClientLinkRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_services_MutateCustomerClientLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_services_CustomerClientLinkOperation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_services_CustomerClientLinkOperation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_services_MutateCustomerClientLinkResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_services_MutateCustomerClientLinkResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_services_MutateCustomerClientLinkResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_services_MutateCustomerClientLinkResult_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -32,21 +52,43 @@ public static void registerAllExtensions( "mer_client_link_service.proto\022 google.ad" + "s.googleads.v0.services\032.google.ads." + - "googleads.v0.services.GetCustomerClientL" + - "inkRequest\0325.google.ads.googleads.v0.res" + - "ources.CustomerClientLink\"=\202\323\344\223\0027\0225/v0/{" + - "resource_name=customers/*/customerClient" + - "Links/*}B\336\001\n$com.google.ads.googleads.v0" + - ".servicesB\036CustomerClientLinkServiceProt" + - "oP\001ZHgoogle.golang.org/genproto/googleap" + - "is/ads/googleads/v0/services;services\242\002\003" + - "GAA\252\002 Google.Ads.GoogleAds.V0.Services\312\002" + - " Google\\Ads\\GoogleAds\\V0\\Servicesb\006proto" + - "3" + "proto\032\034google/api/annotations.proto\032 goo" + + "gle/protobuf/field_mask.proto\032\036google/pr" + + "otobuf/wrappers.proto\"5\n\034GetCustomerClie" + + "ntLinkRequest\022\025\n\rresource_name\030\001 \001(\t\"\210\001\n" + + "\037MutateCustomerClientLinkRequest\022\023\n\013cust" + + "omer_id\030\001 \001(\t\022P\n\toperation\030\002 \001(\0132=.googl" + + "e.ads.googleads.v0.services.CustomerClie" + + "ntLinkOperation\"\355\001\n\033CustomerClientLinkOp" + + "eration\022/\n\013update_mask\030\004 \001(\0132\032.google.pr" + + "otobuf.FieldMask\022G\n\006create\030\001 \001(\01325.googl" + + "e.ads.googleads.v0.resources.CustomerCli" + + "entLinkH\000\022G\n\006update\030\002 \001(\01325.google.ads.g" + + "oogleads.v0.resources.CustomerClientLink" + + "H\000B\013\n\toperation\"t\n MutateCustomerClientL" + + "inkResponse\022P\n\006result\030\001 \001(\0132@.google.ads" + + ".googleads.v0.services.MutateCustomerCli" + + "entLinkResult\"7\n\036MutateCustomerClientLin" + + "kResult\022\025\n\rresource_name\030\001 \001(\t2\324\003\n\031Custo" + + "merClientLinkService\022\315\001\n\025GetCustomerClie" + + "ntLink\022>.google.ads.googleads.v0.service" + + "s.GetCustomerClientLinkRequest\0325.google." + + "ads.googleads.v0.resources.CustomerClien" + + "tLink\"=\202\323\344\223\0027\0225/v0/{resource_name=custom" + + "ers/*/customerClientLinks/*}\022\346\001\n\030MutateC" + + "ustomerClientLink\022A.google.ads.googleads" + + ".v0.services.MutateCustomerClientLinkReq" + + "uest\032B.google.ads.googleads.v0.services." + + "MutateCustomerClientLinkResponse\"C\202\323\344\223\002=" + + "\"8/v0/customers/{customer_id=*}/customer" + + "ClientLinks:mutate:\001*B\205\002\n$com.google.ads" + + ".googleads.v0.servicesB\036CustomerClientLi" + + "nkServiceProtoP\001ZHgoogle.golang.org/genp" + + "roto/googleapis/ads/googleads/v0/service" + + "s;services\242\002\003GAA\252\002 Google.Ads.GoogleAds." + + "V0.Services\312\002 Google\\Ads\\GoogleAds\\V0\\Se" + + "rvices\352\002$Google::Ads::GoogleAds::V0::Ser" + + "vicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -61,6 +103,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.ads.googleads.v0.resources.CustomerClientLinkProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), }, assigner); internal_static_google_ads_googleads_v0_services_GetCustomerClientLinkRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -68,6 +112,30 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_GetCustomerClientLinkRequest_descriptor, new java.lang.String[] { "ResourceName", }); + internal_static_google_ads_googleads_v0_services_MutateCustomerClientLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_googleads_v0_services_MutateCustomerClientLinkRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_services_MutateCustomerClientLinkRequest_descriptor, + new java.lang.String[] { "CustomerId", "Operation", }); + internal_static_google_ads_googleads_v0_services_CustomerClientLinkOperation_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_googleads_v0_services_CustomerClientLinkOperation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_services_CustomerClientLinkOperation_descriptor, + new java.lang.String[] { "UpdateMask", "Create", "Update", "Operation", }); + internal_static_google_ads_googleads_v0_services_MutateCustomerClientLinkResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_ads_googleads_v0_services_MutateCustomerClientLinkResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_services_MutateCustomerClientLinkResponse_descriptor, + new java.lang.String[] { "Result", }); + internal_static_google_ads_googleads_v0_services_MutateCustomerClientLinkResult_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_ads_googleads_v0_services_MutateCustomerClientLinkResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_services_MutateCustomerClientLinkResult_descriptor, + new java.lang.String[] { "ResourceName", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.AnnotationsProto.http); @@ -75,6 +143,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( .internalUpdateFileDescriptor(descriptor, registry); com.google.ads.googleads.v0.resources.CustomerClientLinkProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientLinkServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientLinkServiceSettings.java index d9d86fb739..0830e90f30 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientLinkServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientLinkServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -68,6 +68,13 @@ public class CustomerClientLinkServiceSettings .getCustomerClientLinkSettings(); } + /** Returns the object with the settings used for calls to mutateCustomerClientLink. */ + public UnaryCallSettings + mutateCustomerClientLinkSettings() { + return ((CustomerClientLinkServiceStubSettings) getStubSettings()) + .mutateCustomerClientLinkSettings(); + } + public static final CustomerClientLinkServiceSettings create( CustomerClientLinkServiceStubSettings stub) throws IOException { return new CustomerClientLinkServiceSettings.Builder(stub.toBuilder()).build(); @@ -172,6 +179,13 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().getCustomerClientLinkSettings(); } + /** Returns the builder for the settings used for calls to mutateCustomerClientLink. */ + public UnaryCallSettings.Builder< + MutateCustomerClientLinkRequest, MutateCustomerClientLinkResponse> + mutateCustomerClientLinkSettings() { + return getStubSettingsBuilder().mutateCustomerClientLinkSettings(); + } + @Override public CustomerClientLinkServiceSettings build() throws IOException { return new CustomerClientLinkServiceSettings(this); diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientServiceClient.java index 8179b294e3..928c4dc366 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,7 +28,7 @@ // AUTO-GENERATED DOCUMENTATION AND SERVICE /** - * Service Description: Service to manage customer clients in a manager hierarchy. + * Service Description: Service to get clients in a customer's hierarchy. * *

This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -178,7 +178,7 @@ public CustomerClientServiceStub getStub() { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Returns the requested customer client in full detail. + * Returns the requested client in full detail. * *

Sample code: * @@ -189,7 +189,7 @@ public CustomerClientServiceStub getStub() { * } *

* - * @param resourceName The resource name of the customer client to fetch. + * @param resourceName The resource name of the client to fetch. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CustomerClient getCustomerClient(String resourceName) { @@ -201,7 +201,7 @@ public final CustomerClient getCustomerClient(String resourceName) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Returns the requested customer client in full detail. + * Returns the requested client in full detail. * *

Sample code: * @@ -218,13 +218,13 @@ public final CustomerClient getCustomerClient(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final CustomerClient getCustomerClient(GetCustomerClientRequest request) { + public final CustomerClient getCustomerClient(GetCustomerClientRequest request) { return getCustomerClientCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Returns the requested customer client in full detail. + * Returns the requested client in full detail. * *

Sample code: * diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientServiceGrpc.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientServiceGrpc.java index 204687c907..55be62707a 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientServiceGrpc.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientServiceGrpc.java @@ -17,7 +17,7 @@ /** *

- * Service to manage customer clients in a manager hierarchy.
+ * Service to get clients in a customer's hierarchy.
  * 
*/ @javax.annotation.Generated( @@ -93,14 +93,14 @@ public static CustomerClientServiceFutureStub newFutureStub( /** *
-   * Service to manage customer clients in a manager hierarchy.
+   * Service to get clients in a customer's hierarchy.
    * 
*/ public static abstract class CustomerClientServiceImplBase implements io.grpc.BindableService { /** *
-     * Returns the requested customer client in full detail.
+     * Returns the requested client in full detail.
      * 
*/ public void getCustomerClient(com.google.ads.googleads.v0.services.GetCustomerClientRequest request, @@ -123,7 +123,7 @@ public void getCustomerClient(com.google.ads.googleads.v0.services.GetCustomerCl /** *
-   * Service to manage customer clients in a manager hierarchy.
+   * Service to get clients in a customer's hierarchy.
    * 
*/ public static final class CustomerClientServiceStub extends io.grpc.stub.AbstractStub { @@ -144,7 +144,7 @@ protected CustomerClientServiceStub build(io.grpc.Channel channel, /** *
-     * Returns the requested customer client in full detail.
+     * Returns the requested client in full detail.
      * 
*/ public void getCustomerClient(com.google.ads.googleads.v0.services.GetCustomerClientRequest request, @@ -156,7 +156,7 @@ public void getCustomerClient(com.google.ads.googleads.v0.services.GetCustomerCl /** *
-   * Service to manage customer clients in a manager hierarchy.
+   * Service to get clients in a customer's hierarchy.
    * 
*/ public static final class CustomerClientServiceBlockingStub extends io.grpc.stub.AbstractStub { @@ -177,7 +177,7 @@ protected CustomerClientServiceBlockingStub build(io.grpc.Channel channel, /** *
-     * Returns the requested customer client in full detail.
+     * Returns the requested client in full detail.
      * 
*/ public com.google.ads.googleads.v0.resources.CustomerClient getCustomerClient(com.google.ads.googleads.v0.services.GetCustomerClientRequest request) { @@ -188,7 +188,7 @@ public com.google.ads.googleads.v0.resources.CustomerClient getCustomerClient(co /** *
-   * Service to manage customer clients in a manager hierarchy.
+   * Service to get clients in a customer's hierarchy.
    * 
*/ public static final class CustomerClientServiceFutureStub extends io.grpc.stub.AbstractStub { @@ -209,7 +209,7 @@ protected CustomerClientServiceFutureStub build(io.grpc.Channel channel, /** *
-     * Returns the requested customer client in full detail.
+     * Returns the requested client in full detail.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture getCustomerClient( diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientServiceProto.java index 4bc0cf9599..d99c3352d9 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientServiceProto.java @@ -39,13 +39,14 @@ public static void registerAllExtensions( "GetCustomerClientRequest\0321.google.ads.go" + "ogleads.v0.resources.CustomerClient\"9\202\323\344" + "\223\0023\0221/v0/{resource_name=customers/*/cust" + - "omerClients/*}B\332\001\n$com.google.ads.google" + + "omerClients/*}B\201\002\n$com.google.ads.google" + "ads.v0.servicesB\032CustomerClientServicePr" + "otoP\001ZHgoogle.golang.org/genproto/google" + "apis/ads/googleads/v0/services;services\242" + "\002\003GAA\252\002 Google.Ads.GoogleAds.V0.Services" + - "\312\002 Google\\Ads\\GoogleAds\\V0\\Servicesb\006pro" + - "to3" + "\312\002 Google\\Ads\\GoogleAds\\V0\\Services\352\002$Go" + + "ogle::Ads::GoogleAds::V0::Servicesb\006prot" + + "o3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientServiceSettings.java index d971a36a24..14b274d689 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerClientServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerFeedServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerFeedServiceClient.java index e9a0c627e5..9618705ec3 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerFeedServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerFeedServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -216,7 +216,7 @@ public final CustomerFeed getCustomerFeed(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final CustomerFeed getCustomerFeed(GetCustomerFeedRequest request) { + public final CustomerFeed getCustomerFeed(GetCustomerFeedRequest request) { return getCustomerFeedCallable().call(request); } @@ -242,6 +242,47 @@ public final UnaryCallable getCustomerFeed return stub.getCustomerFeedCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates, updates, or removes customer feeds. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (CustomerFeedServiceClient customerFeedServiceClient = CustomerFeedServiceClient.create()) {
+   *   String customerId = "";
+   *   List<CustomerFeedOperation> operations = new ArrayList<>();
+   *   boolean partialFailure = false;
+   *   boolean validateOnly = false;
+   *   MutateCustomerFeedsResponse response = customerFeedServiceClient.mutateCustomerFeeds(customerId, operations, partialFailure, validateOnly);
+   * }
+   * 
+ * + * @param customerId The ID of the customer whose customer feeds are being modified. + * @param operations The list of operations to perform on individual customer feeds. + * @param partialFailure If true, successful operations will be carried out and invalid operations + * will return errors. If false, all operations will be carried out in one transaction if and + * only if they are all valid. Default is false. + * @param validateOnly If true, the request is validated but not executed. Only errors are + * returned, not results. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateCustomerFeedsResponse mutateCustomerFeeds( + String customerId, + List operations, + boolean partialFailure, + boolean validateOnly) { + + MutateCustomerFeedsRequest request = + MutateCustomerFeedsRequest.newBuilder() + .setCustomerId(customerId) + .addAllOperations(operations) + .setPartialFailure(partialFailure) + .setValidateOnly(validateOnly) + .build(); + return mutateCustomerFeeds(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Creates, updates, or removes customer feeds. Operation statuses are returned. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerFeedServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerFeedServiceProto.java index 9e12bfe24d..2ae764174f 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerFeedServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerFeedServiceProto.java @@ -53,37 +53,42 @@ public static void registerAllExtensions( "eads.v0.services\0325google/ads/googleads/v" + "0/resources/customer_feed.proto\032\034google/" + "api/annotations.proto\032 google/protobuf/f" + - "ield_mask.proto\"/\n\026GetCustomerFeedReques" + - "t\022\025\n\rresource_name\030\001 \001(\t\"~\n\032MutateCustom" + - "erFeedsRequest\022\023\n\013customer_id\030\001 \001(\t\022K\n\no" + - "perations\030\002 \003(\01327.google.ads.googleads.v" + - "0.services.CustomerFeedOperation\"\355\001\n\025Cus" + - "tomerFeedOperation\022/\n\013update_mask\030\004 \001(\0132" + - "\032.google.protobuf.FieldMask\022A\n\006create\030\001 " + - "\001(\0132/.google.ads.googleads.v0.resources." + - "CustomerFeedH\000\022A\n\006update\030\002 \001(\0132/.google." + - "ads.googleads.v0.resources.CustomerFeedH" + - "\000\022\020\n\006remove\030\003 \001(\tH\000B\013\n\toperation\"j\n\033Muta" + - "teCustomerFeedsResponse\022K\n\007results\030\002 \003(\013" + - "2:.google.ads.googleads.v0.services.Muta" + - "teCustomerFeedResult\"1\n\030MutateCustomerFe" + - "edResult\022\025\n\rresource_name\030\001 \001(\t2\241\003\n\023Cust" + - "omerFeedService\022\265\001\n\017GetCustomerFeed\0228.go" + - "ogle.ads.googleads.v0.services.GetCustom" + - "erFeedRequest\032/.google.ads.googleads.v0." + - "resources.CustomerFeed\"7\202\323\344\223\0021\022//v0/{res" + - "ource_name=customers/*/customerFeeds/*}\022" + - "\321\001\n\023MutateCustomerFeeds\022<.google.ads.goo" + - "gleads.v0.services.MutateCustomerFeedsRe" + - "quest\032=.google.ads.googleads.v0.services" + - ".MutateCustomerFeedsResponse\"=\202\323\344\223\0027\"2/v" + - "0/customers/{customer_id=*}/customerFeed" + - "s:mutate:\001*B\330\001\n$com.google.ads.googleads" + - ".v0.servicesB\030CustomerFeedServiceProtoP\001" + - "ZHgoogle.golang.org/genproto/googleapis/" + - "ads/googleads/v0/services;services\242\002\003GAA" + - "\252\002 Google.Ads.GoogleAds.V0.Services\312\002 Go" + - "ogle\\Ads\\GoogleAds\\V0\\Servicesb\006proto3" + "ield_mask.proto\032\036google/protobuf/wrapper" + + "s.proto\032\027google/rpc/status.proto\"/\n\026GetC" + + "ustomerFeedRequest\022\025\n\rresource_name\030\001 \001(" + + "\t\"\256\001\n\032MutateCustomerFeedsRequest\022\023\n\013cust" + + "omer_id\030\001 \001(\t\022K\n\noperations\030\002 \003(\01327.goog" + + "le.ads.googleads.v0.services.CustomerFee" + + "dOperation\022\027\n\017partial_failure\030\003 \001(\010\022\025\n\rv" + + "alidate_only\030\004 \001(\010\"\355\001\n\025CustomerFeedOpera" + + "tion\022/\n\013update_mask\030\004 \001(\0132\032.google.proto" + + "buf.FieldMask\022A\n\006create\030\001 \001(\0132/.google.a" + + "ds.googleads.v0.resources.CustomerFeedH\000" + + "\022A\n\006update\030\002 \001(\0132/.google.ads.googleads." + + "v0.resources.CustomerFeedH\000\022\020\n\006remove\030\003 " + + "\001(\tH\000B\013\n\toperation\"\235\001\n\033MutateCustomerFee" + + "dsResponse\0221\n\025partial_failure_error\030\003 \001(" + + "\0132\022.google.rpc.Status\022K\n\007results\030\002 \003(\0132:" + + ".google.ads.googleads.v0.services.Mutate" + + "CustomerFeedResult\"1\n\030MutateCustomerFeed" + + "Result\022\025\n\rresource_name\030\001 \001(\t2\241\003\n\023Custom" + + "erFeedService\022\265\001\n\017GetCustomerFeed\0228.goog" + + "le.ads.googleads.v0.services.GetCustomer" + + "FeedRequest\032/.google.ads.googleads.v0.re" + + "sources.CustomerFeed\"7\202\323\344\223\0021\022//v0/{resou" + + "rce_name=customers/*/customerFeeds/*}\022\321\001" + + "\n\023MutateCustomerFeeds\022<.google.ads.googl" + + "eads.v0.services.MutateCustomerFeedsRequ" + + "est\032=.google.ads.googleads.v0.services.M" + + "utateCustomerFeedsResponse\"=\202\323\344\223\0027\"2/v0/" + + "customers/{customer_id=*}/customerFeeds:" + + "mutate:\001*B\377\001\n$com.google.ads.googleads.v" + + "0.servicesB\030CustomerFeedServiceProtoP\001ZH" + + "google.golang.org/genproto/googleapis/ad" + + "s/googleads/v0/services;services\242\002\003GAA\252\002" + + " Google.Ads.GoogleAds.V0.Services\312\002 Goog" + + "le\\Ads\\GoogleAds\\V0\\Services\352\002$Google::A" + + "ds::GoogleAds::V0::Servicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -99,6 +104,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.CustomerFeedProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), }, assigner); internal_static_google_ads_googleads_v0_services_GetCustomerFeedRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -111,7 +118,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateCustomerFeedsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateCustomerFeedsRequest_descriptor, - new java.lang.String[] { "CustomerId", "Operations", }); + new java.lang.String[] { "CustomerId", "Operations", "PartialFailure", "ValidateOnly", }); internal_static_google_ads_googleads_v0_services_CustomerFeedOperation_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_ads_googleads_v0_services_CustomerFeedOperation_fieldAccessorTable = new @@ -123,7 +130,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateCustomerFeedsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateCustomerFeedsResponse_descriptor, - new java.lang.String[] { "Results", }); + new java.lang.String[] { "PartialFailureError", "Results", }); internal_static_google_ads_googleads_v0_services_MutateCustomerFeedResult_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_google_ads_googleads_v0_services_MutateCustomerFeedResult_fieldAccessorTable = new @@ -138,6 +145,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.CustomerFeedProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerFeedServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerFeedServiceSettings.java index 80b2ded4cc..b2f6be73ab 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerFeedServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerFeedServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerManagerLinkOperation.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerManagerLinkOperation.java new file mode 100644 index 0000000000..101bdfd1d4 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerManagerLinkOperation.java @@ -0,0 +1,979 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/customer_manager_link_service.proto + +package com.google.ads.googleads.v0.services; + +/** + *
+ * Updates the status of a CustomerManagerLink.
+ * The following actions are possible:
+ * 1. Update operation with status ACTIVE accepts a pending invitation.
+ * 2. Update operation with status REFUSED declines a pending invitation.
+ * 3. Update operation with status INACTIVE terminates link to manager.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.services.CustomerManagerLinkOperation} + */ +public final class CustomerManagerLinkOperation extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.services.CustomerManagerLinkOperation) + CustomerManagerLinkOperationOrBuilder { +private static final long serialVersionUID = 0L; + // Use CustomerManagerLinkOperation.newBuilder() to construct. + private CustomerManagerLinkOperation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CustomerManagerLinkOperation() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CustomerManagerLinkOperation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: { + com.google.ads.googleads.v0.resources.CustomerManagerLink.Builder subBuilder = null; + if (operationCase_ == 2) { + subBuilder = ((com.google.ads.googleads.v0.resources.CustomerManagerLink) operation_).toBuilder(); + } + operation_ = + input.readMessage(com.google.ads.googleads.v0.resources.CustomerManagerLink.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.ads.googleads.v0.resources.CustomerManagerLink) operation_); + operation_ = subBuilder.buildPartial(); + } + operationCase_ = 2; + break; + } + case 34: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.services.CustomerManagerLinkServiceProto.internal_static_google_ads_googleads_v0_services_CustomerManagerLinkOperation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.services.CustomerManagerLinkServiceProto.internal_static_google_ads_googleads_v0_services_CustomerManagerLinkOperation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.services.CustomerManagerLinkOperation.class, com.google.ads.googleads.v0.services.CustomerManagerLinkOperation.Builder.class); + } + + private int operationCase_ = 0; + private java.lang.Object operation_; + public enum OperationCase + implements com.google.protobuf.Internal.EnumLite { + UPDATE(2), + OPERATION_NOT_SET(0); + private final int value; + private OperationCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OperationCase valueOf(int value) { + return forNumber(value); + } + + public static OperationCase forNumber(int value) { + switch (value) { + case 2: return UPDATE; + case 0: return OPERATION_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OperationCase + getOperationCase() { + return OperationCase.forNumber( + operationCase_); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 4; + private com.google.protobuf.FieldMask updateMask_; + /** + *
+   * FieldMask that determines which resource fields are modified in an update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + *
+   * FieldMask that determines which resource fields are modified in an update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + *
+   * FieldMask that determines which resource fields are modified in an update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + public static final int UPDATE_FIELD_NUMBER = 2; + /** + *
+   * Update operation: The link is expected to have a valid resource name.
+   * 
+ * + * .google.ads.googleads.v0.resources.CustomerManagerLink update = 2; + */ + public boolean hasUpdate() { + return operationCase_ == 2; + } + /** + *
+   * Update operation: The link is expected to have a valid resource name.
+   * 
+ * + * .google.ads.googleads.v0.resources.CustomerManagerLink update = 2; + */ + public com.google.ads.googleads.v0.resources.CustomerManagerLink getUpdate() { + if (operationCase_ == 2) { + return (com.google.ads.googleads.v0.resources.CustomerManagerLink) operation_; + } + return com.google.ads.googleads.v0.resources.CustomerManagerLink.getDefaultInstance(); + } + /** + *
+   * Update operation: The link is expected to have a valid resource name.
+   * 
+ * + * .google.ads.googleads.v0.resources.CustomerManagerLink update = 2; + */ + public com.google.ads.googleads.v0.resources.CustomerManagerLinkOrBuilder getUpdateOrBuilder() { + if (operationCase_ == 2) { + return (com.google.ads.googleads.v0.resources.CustomerManagerLink) operation_; + } + return com.google.ads.googleads.v0.resources.CustomerManagerLink.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (operationCase_ == 2) { + output.writeMessage(2, (com.google.ads.googleads.v0.resources.CustomerManagerLink) operation_); + } + if (updateMask_ != null) { + output.writeMessage(4, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (operationCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.ads.googleads.v0.resources.CustomerManagerLink) operation_); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUpdateMask()); + } + size += unknownFields.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.ads.googleads.v0.services.CustomerManagerLinkOperation)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.services.CustomerManagerLinkOperation other = (com.google.ads.googleads.v0.services.CustomerManagerLinkOperation) obj; + + boolean result = true; + result = result && (hasUpdateMask() == other.hasUpdateMask()); + if (hasUpdateMask()) { + result = result && getUpdateMask() + .equals(other.getUpdateMask()); + } + result = result && getOperationCase().equals( + other.getOperationCase()); + if (!result) return false; + switch (operationCase_) { + case 2: + result = result && getUpdate() + .equals(other.getUpdate()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + switch (operationCase_) { + case 2: + hash = (37 * hash) + UPDATE_FIELD_NUMBER; + hash = (53 * hash) + getUpdate().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.services.CustomerManagerLinkOperation parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.CustomerManagerLinkOperation parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.services.CustomerManagerLinkOperation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.CustomerManagerLinkOperation 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.ads.googleads.v0.services.CustomerManagerLinkOperation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.CustomerManagerLinkOperation parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.services.CustomerManagerLinkOperation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.CustomerManagerLinkOperation 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.ads.googleads.v0.services.CustomerManagerLinkOperation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.CustomerManagerLinkOperation 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.ads.googleads.v0.services.CustomerManagerLinkOperation parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.CustomerManagerLinkOperation 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.ads.googleads.v0.services.CustomerManagerLinkOperation 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; + } + /** + *
+   * Updates the status of a CustomerManagerLink.
+   * The following actions are possible:
+   * 1. Update operation with status ACTIVE accepts a pending invitation.
+   * 2. Update operation with status REFUSED declines a pending invitation.
+   * 3. Update operation with status INACTIVE terminates link to manager.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.services.CustomerManagerLinkOperation} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.services.CustomerManagerLinkOperation) + com.google.ads.googleads.v0.services.CustomerManagerLinkOperationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.services.CustomerManagerLinkServiceProto.internal_static_google_ads_googleads_v0_services_CustomerManagerLinkOperation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.services.CustomerManagerLinkServiceProto.internal_static_google_ads_googleads_v0_services_CustomerManagerLinkOperation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.services.CustomerManagerLinkOperation.class, com.google.ads.googleads.v0.services.CustomerManagerLinkOperation.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.services.CustomerManagerLinkOperation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + operationCase_ = 0; + operation_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.services.CustomerManagerLinkServiceProto.internal_static_google_ads_googleads_v0_services_CustomerManagerLinkOperation_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.CustomerManagerLinkOperation getDefaultInstanceForType() { + return com.google.ads.googleads.v0.services.CustomerManagerLinkOperation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.CustomerManagerLinkOperation build() { + com.google.ads.googleads.v0.services.CustomerManagerLinkOperation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.CustomerManagerLinkOperation buildPartial() { + com.google.ads.googleads.v0.services.CustomerManagerLinkOperation result = new com.google.ads.googleads.v0.services.CustomerManagerLinkOperation(this); + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + if (operationCase_ == 2) { + if (updateBuilder_ == null) { + result.operation_ = operation_; + } else { + result.operation_ = updateBuilder_.build(); + } + } + result.operationCase_ = operationCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.services.CustomerManagerLinkOperation) { + return mergeFrom((com.google.ads.googleads.v0.services.CustomerManagerLinkOperation)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.services.CustomerManagerLinkOperation other) { + if (other == com.google.ads.googleads.v0.services.CustomerManagerLinkOperation.getDefaultInstance()) return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + switch (other.getOperationCase()) { + case UPDATE: { + mergeUpdate(other.getUpdate()); + break; + } + case OPERATION_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.services.CustomerManagerLinkOperation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.services.CustomerManagerLinkOperation) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int operationCase_ = 0; + private java.lang.Object operation_; + public OperationCase + getOperationCase() { + return OperationCase.forNumber( + operationCase_); + } + + public Builder clearOperation() { + operationCase_ = 0; + operation_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.FieldMask updateMask_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + /** + *
+     * FieldMask that determines which resource fields are modified in an update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + *
+     * FieldMask that determines which resource fields are modified in an update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + *
+     * FieldMask that determines which resource fields are modified in an update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * FieldMask that determines which resource fields are modified in an update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * FieldMask that determines which resource fields are modified in an update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * FieldMask that determines which resource fields are modified in an update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + *
+     * FieldMask that determines which resource fields are modified in an update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + *
+     * FieldMask that determines which resource fields are modified in an update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + } + /** + *
+     * FieldMask that determines which resource fields are modified in an update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.CustomerManagerLink, com.google.ads.googleads.v0.resources.CustomerManagerLink.Builder, com.google.ads.googleads.v0.resources.CustomerManagerLinkOrBuilder> updateBuilder_; + /** + *
+     * Update operation: The link is expected to have a valid resource name.
+     * 
+ * + * .google.ads.googleads.v0.resources.CustomerManagerLink update = 2; + */ + public boolean hasUpdate() { + return operationCase_ == 2; + } + /** + *
+     * Update operation: The link is expected to have a valid resource name.
+     * 
+ * + * .google.ads.googleads.v0.resources.CustomerManagerLink update = 2; + */ + public com.google.ads.googleads.v0.resources.CustomerManagerLink getUpdate() { + if (updateBuilder_ == null) { + if (operationCase_ == 2) { + return (com.google.ads.googleads.v0.resources.CustomerManagerLink) operation_; + } + return com.google.ads.googleads.v0.resources.CustomerManagerLink.getDefaultInstance(); + } else { + if (operationCase_ == 2) { + return updateBuilder_.getMessage(); + } + return com.google.ads.googleads.v0.resources.CustomerManagerLink.getDefaultInstance(); + } + } + /** + *
+     * Update operation: The link is expected to have a valid resource name.
+     * 
+ * + * .google.ads.googleads.v0.resources.CustomerManagerLink update = 2; + */ + public Builder setUpdate(com.google.ads.googleads.v0.resources.CustomerManagerLink value) { + if (updateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + operation_ = value; + onChanged(); + } else { + updateBuilder_.setMessage(value); + } + operationCase_ = 2; + return this; + } + /** + *
+     * Update operation: The link is expected to have a valid resource name.
+     * 
+ * + * .google.ads.googleads.v0.resources.CustomerManagerLink update = 2; + */ + public Builder setUpdate( + com.google.ads.googleads.v0.resources.CustomerManagerLink.Builder builderForValue) { + if (updateBuilder_ == null) { + operation_ = builderForValue.build(); + onChanged(); + } else { + updateBuilder_.setMessage(builderForValue.build()); + } + operationCase_ = 2; + return this; + } + /** + *
+     * Update operation: The link is expected to have a valid resource name.
+     * 
+ * + * .google.ads.googleads.v0.resources.CustomerManagerLink update = 2; + */ + public Builder mergeUpdate(com.google.ads.googleads.v0.resources.CustomerManagerLink value) { + if (updateBuilder_ == null) { + if (operationCase_ == 2 && + operation_ != com.google.ads.googleads.v0.resources.CustomerManagerLink.getDefaultInstance()) { + operation_ = com.google.ads.googleads.v0.resources.CustomerManagerLink.newBuilder((com.google.ads.googleads.v0.resources.CustomerManagerLink) operation_) + .mergeFrom(value).buildPartial(); + } else { + operation_ = value; + } + onChanged(); + } else { + if (operationCase_ == 2) { + updateBuilder_.mergeFrom(value); + } + updateBuilder_.setMessage(value); + } + operationCase_ = 2; + return this; + } + /** + *
+     * Update operation: The link is expected to have a valid resource name.
+     * 
+ * + * .google.ads.googleads.v0.resources.CustomerManagerLink update = 2; + */ + public Builder clearUpdate() { + if (updateBuilder_ == null) { + if (operationCase_ == 2) { + operationCase_ = 0; + operation_ = null; + onChanged(); + } + } else { + if (operationCase_ == 2) { + operationCase_ = 0; + operation_ = null; + } + updateBuilder_.clear(); + } + return this; + } + /** + *
+     * Update operation: The link is expected to have a valid resource name.
+     * 
+ * + * .google.ads.googleads.v0.resources.CustomerManagerLink update = 2; + */ + public com.google.ads.googleads.v0.resources.CustomerManagerLink.Builder getUpdateBuilder() { + return getUpdateFieldBuilder().getBuilder(); + } + /** + *
+     * Update operation: The link is expected to have a valid resource name.
+     * 
+ * + * .google.ads.googleads.v0.resources.CustomerManagerLink update = 2; + */ + public com.google.ads.googleads.v0.resources.CustomerManagerLinkOrBuilder getUpdateOrBuilder() { + if ((operationCase_ == 2) && (updateBuilder_ != null)) { + return updateBuilder_.getMessageOrBuilder(); + } else { + if (operationCase_ == 2) { + return (com.google.ads.googleads.v0.resources.CustomerManagerLink) operation_; + } + return com.google.ads.googleads.v0.resources.CustomerManagerLink.getDefaultInstance(); + } + } + /** + *
+     * Update operation: The link is expected to have a valid resource name.
+     * 
+ * + * .google.ads.googleads.v0.resources.CustomerManagerLink update = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.CustomerManagerLink, com.google.ads.googleads.v0.resources.CustomerManagerLink.Builder, com.google.ads.googleads.v0.resources.CustomerManagerLinkOrBuilder> + getUpdateFieldBuilder() { + if (updateBuilder_ == null) { + if (!(operationCase_ == 2)) { + operation_ = com.google.ads.googleads.v0.resources.CustomerManagerLink.getDefaultInstance(); + } + updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.CustomerManagerLink, com.google.ads.googleads.v0.resources.CustomerManagerLink.Builder, com.google.ads.googleads.v0.resources.CustomerManagerLinkOrBuilder>( + (com.google.ads.googleads.v0.resources.CustomerManagerLink) operation_, + getParentForChildren(), + isClean()); + operation_ = null; + } + operationCase_ = 2; + onChanged();; + return updateBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.services.CustomerManagerLinkOperation) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.CustomerManagerLinkOperation) + private static final com.google.ads.googleads.v0.services.CustomerManagerLinkOperation DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.services.CustomerManagerLinkOperation(); + } + + public static com.google.ads.googleads.v0.services.CustomerManagerLinkOperation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomerManagerLinkOperation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomerManagerLinkOperation(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.services.CustomerManagerLinkOperation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerManagerLinkOperationOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerManagerLinkOperationOrBuilder.java new file mode 100644 index 0000000000..c317dbb833 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerManagerLinkOperationOrBuilder.java @@ -0,0 +1,61 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/customer_manager_link_service.proto + +package com.google.ads.googleads.v0.services; + +public interface CustomerManagerLinkOperationOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.CustomerManagerLinkOperation) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * FieldMask that determines which resource fields are modified in an update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + boolean hasUpdateMask(); + /** + *
+   * FieldMask that determines which resource fields are modified in an update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + *
+   * FieldMask that determines which resource fields are modified in an update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + *
+   * Update operation: The link is expected to have a valid resource name.
+   * 
+ * + * .google.ads.googleads.v0.resources.CustomerManagerLink update = 2; + */ + boolean hasUpdate(); + /** + *
+   * Update operation: The link is expected to have a valid resource name.
+   * 
+ * + * .google.ads.googleads.v0.resources.CustomerManagerLink update = 2; + */ + com.google.ads.googleads.v0.resources.CustomerManagerLink getUpdate(); + /** + *
+   * Update operation: The link is expected to have a valid resource name.
+   * 
+ * + * .google.ads.googleads.v0.resources.CustomerManagerLink update = 2; + */ + com.google.ads.googleads.v0.resources.CustomerManagerLinkOrBuilder getUpdateOrBuilder(); + + public com.google.ads.googleads.v0.services.CustomerManagerLinkOperation.OperationCase getOperationCase(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerManagerLinkServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerManagerLinkServiceClient.java index 148ff8a714..ed3f83c113 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerManagerLinkServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerManagerLinkServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,6 +23,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.api.pathtemplate.PathTemplate; import java.io.IOException; +import java.util.List; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -226,7 +227,7 @@ public final CustomerManagerLink getCustomerManagerLink(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final CustomerManagerLink getCustomerManagerLink(GetCustomerManagerLinkRequest request) { + public final CustomerManagerLink getCustomerManagerLink(GetCustomerManagerLinkRequest request) { return getCustomerManagerLinkCallable().call(request); } @@ -253,6 +254,86 @@ private final CustomerManagerLink getCustomerManagerLink(GetCustomerManagerLinkR return stub.getCustomerManagerLinkCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates or updates customer manager links. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (CustomerManagerLinkServiceClient customerManagerLinkServiceClient = CustomerManagerLinkServiceClient.create()) {
+   *   String customerId = "";
+   *   List<CustomerManagerLinkOperation> operations = new ArrayList<>();
+   *   MutateCustomerManagerLinkResponse response = customerManagerLinkServiceClient.mutateCustomerManagerLink(customerId, operations);
+   * }
+   * 
+ * + * @param customerId The ID of the customer whose customer manager links are being modified. + * @param operations The list of operations to perform on individual customer manager links. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateCustomerManagerLinkResponse mutateCustomerManagerLink( + String customerId, List operations) { + + MutateCustomerManagerLinkRequest request = + MutateCustomerManagerLinkRequest.newBuilder() + .setCustomerId(customerId) + .addAllOperations(operations) + .build(); + return mutateCustomerManagerLink(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates or updates customer manager links. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (CustomerManagerLinkServiceClient customerManagerLinkServiceClient = CustomerManagerLinkServiceClient.create()) {
+   *   String customerId = "";
+   *   List<CustomerManagerLinkOperation> operations = new ArrayList<>();
+   *   MutateCustomerManagerLinkRequest request = MutateCustomerManagerLinkRequest.newBuilder()
+   *     .setCustomerId(customerId)
+   *     .addAllOperations(operations)
+   *     .build();
+   *   MutateCustomerManagerLinkResponse response = customerManagerLinkServiceClient.mutateCustomerManagerLink(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateCustomerManagerLinkResponse mutateCustomerManagerLink( + MutateCustomerManagerLinkRequest request) { + return mutateCustomerManagerLinkCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates or updates customer manager links. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (CustomerManagerLinkServiceClient customerManagerLinkServiceClient = CustomerManagerLinkServiceClient.create()) {
+   *   String customerId = "";
+   *   List<CustomerManagerLinkOperation> operations = new ArrayList<>();
+   *   MutateCustomerManagerLinkRequest request = MutateCustomerManagerLinkRequest.newBuilder()
+   *     .setCustomerId(customerId)
+   *     .addAllOperations(operations)
+   *     .build();
+   *   ApiFuture<MutateCustomerManagerLinkResponse> future = customerManagerLinkServiceClient.mutateCustomerManagerLinkCallable().futureCall(request);
+   *   // Do something
+   *   MutateCustomerManagerLinkResponse response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + mutateCustomerManagerLinkCallable() { + return stub.mutateCustomerManagerLinkCallable(); + } + @Override public final void close() { stub.close(); diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerManagerLinkServiceGrpc.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerManagerLinkServiceGrpc.java index c81bdbfb86..ffa2318649 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerManagerLinkServiceGrpc.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerManagerLinkServiceGrpc.java @@ -67,6 +67,43 @@ com.google.ads.googleads.v0.resources.CustomerManagerLink> getGetCustomerManager } return getGetCustomerManagerLinkMethod; } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getMutateCustomerManagerLinkMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_MUTATE_CUSTOMER_MANAGER_LINK = getMutateCustomerManagerLinkMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getMutateCustomerManagerLinkMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getMutateCustomerManagerLinkMethod() { + return getMutateCustomerManagerLinkMethodHelper(); + } + + private static io.grpc.MethodDescriptor getMutateCustomerManagerLinkMethodHelper() { + io.grpc.MethodDescriptor getMutateCustomerManagerLinkMethod; + if ((getMutateCustomerManagerLinkMethod = CustomerManagerLinkServiceGrpc.getMutateCustomerManagerLinkMethod) == null) { + synchronized (CustomerManagerLinkServiceGrpc.class) { + if ((getMutateCustomerManagerLinkMethod = CustomerManagerLinkServiceGrpc.getMutateCustomerManagerLinkMethod) == null) { + CustomerManagerLinkServiceGrpc.getMutateCustomerManagerLinkMethod = getMutateCustomerManagerLinkMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.ads.googleads.v0.services.CustomerManagerLinkService", "MutateCustomerManagerLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse.getDefaultInstance())) + .setSchemaDescriptor(new CustomerManagerLinkServiceMethodDescriptorSupplier("MutateCustomerManagerLink")) + .build(); + } + } + } + return getMutateCustomerManagerLinkMethod; + } /** * Creates a new async stub that supports all call types for the service @@ -108,6 +145,16 @@ public void getCustomerManagerLink(com.google.ads.googleads.v0.services.GetCusto asyncUnimplementedUnaryCall(getGetCustomerManagerLinkMethodHelper(), responseObserver); } + /** + *
+     * Creates or updates customer manager links. Operation statuses are returned.
+     * 
+ */ + public void mutateCustomerManagerLink(com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getMutateCustomerManagerLinkMethodHelper(), responseObserver); + } + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( @@ -117,6 +164,13 @@ public void getCustomerManagerLink(com.google.ads.googleads.v0.services.GetCusto com.google.ads.googleads.v0.services.GetCustomerManagerLinkRequest, com.google.ads.googleads.v0.resources.CustomerManagerLink>( this, METHODID_GET_CUSTOMER_MANAGER_LINK))) + .addMethod( + getMutateCustomerManagerLinkMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest, + com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse>( + this, METHODID_MUTATE_CUSTOMER_MANAGER_LINK))) .build(); } } @@ -152,6 +206,17 @@ public void getCustomerManagerLink(com.google.ads.googleads.v0.services.GetCusto asyncUnaryCall( getChannel().newCall(getGetCustomerManagerLinkMethodHelper(), getCallOptions()), request, responseObserver); } + + /** + *
+     * Creates or updates customer manager links. Operation statuses are returned.
+     * 
+ */ + public void mutateCustomerManagerLink(com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getMutateCustomerManagerLinkMethodHelper(), getCallOptions()), request, responseObserver); + } } /** @@ -184,6 +249,16 @@ public com.google.ads.googleads.v0.resources.CustomerManagerLink getCustomerMana return blockingUnaryCall( getChannel(), getGetCustomerManagerLinkMethodHelper(), getCallOptions(), request); } + + /** + *
+     * Creates or updates customer manager links. Operation statuses are returned.
+     * 
+ */ + public com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse mutateCustomerManagerLink(com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest request) { + return blockingUnaryCall( + getChannel(), getMutateCustomerManagerLinkMethodHelper(), getCallOptions(), request); + } } /** @@ -217,9 +292,21 @@ public com.google.common.util.concurrent.ListenableFuture + * Creates or updates customer manager links. Operation statuses are returned. + *
+ */ + public com.google.common.util.concurrent.ListenableFuture mutateCustomerManagerLink( + com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest request) { + return futureUnaryCall( + getChannel().newCall(getMutateCustomerManagerLinkMethodHelper(), getCallOptions()), request); + } } private static final int METHODID_GET_CUSTOMER_MANAGER_LINK = 0; + private static final int METHODID_MUTATE_CUSTOMER_MANAGER_LINK = 1; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -242,6 +329,10 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv serviceImpl.getCustomerManagerLink((com.google.ads.googleads.v0.services.GetCustomerManagerLinkRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_MUTATE_CUSTOMER_MANAGER_LINK: + serviceImpl.mutateCustomerManagerLink((com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -304,6 +395,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new CustomerManagerLinkServiceFileDescriptorSupplier()) .addMethod(getGetCustomerManagerLinkMethodHelper()) + .addMethod(getMutateCustomerManagerLinkMethodHelper()) .build(); } } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerManagerLinkServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerManagerLinkServiceProto.java index 90706f769e..d2a998c6de 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerManagerLinkServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerManagerLinkServiceProto.java @@ -19,6 +19,26 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_googleads_v0_services_GetCustomerManagerLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_services_MutateCustomerManagerLinkRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_services_MutateCustomerManagerLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_services_CustomerManagerLinkOperation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_services_CustomerManagerLinkOperation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_services_MutateCustomerManagerLinkResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_services_MutateCustomerManagerLinkResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_services_MutateCustomerManagerLinkResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_services_MutateCustomerManagerLinkResult_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -32,20 +52,40 @@ public static void registerAllExtensions( "mer_manager_link_service.proto\022 google.a" + "ds.googleads.v0.services\032=google/ads/goo" + "gleads/v0/resources/customer_manager_lin" + - "k.proto\032\034google/api/annotations.proto\"6\n" + - "\035GetCustomerManagerLinkRequest\022\025\n\rresour" + - "ce_name\030\001 \001(\t2\360\001\n\032CustomerManagerLinkSer" + - "vice\022\321\001\n\026GetCustomerManagerLink\022?.google" + - ".ads.googleads.v0.services.GetCustomerMa" + - "nagerLinkRequest\0326.google.ads.googleads." + - "v0.resources.CustomerManagerLink\">\202\323\344\223\0028" + - "\0226/v0/{resource_name=customers/*/custome" + - "rManagerLinks/*}B\337\001\n$com.google.ads.goog" + - "leads.v0.servicesB\037CustomerManagerLinkSe" + - "rviceProtoP\001ZHgoogle.golang.org/genproto" + - "/googleapis/ads/googleads/v0/services;se" + - "rvices\242\002\003GAA\252\002 Google.Ads.GoogleAds.V0.S" + - "ervices\312\002 Google\\Ads\\GoogleAds\\V0\\Servic" + + "k.proto\032\034google/api/annotations.proto\032 g" + + "oogle/protobuf/field_mask.proto\"6\n\035GetCu" + + "stomerManagerLinkRequest\022\025\n\rresource_nam" + + "e\030\001 \001(\t\"\213\001\n MutateCustomerManagerLinkReq" + + "uest\022\023\n\013customer_id\030\001 \001(\t\022R\n\noperations\030" + + "\002 \003(\0132>.google.ads.googleads.v0.services" + + ".CustomerManagerLinkOperation\"\246\001\n\034Custom" + + "erManagerLinkOperation\022/\n\013update_mask\030\004 " + + "\001(\0132\032.google.protobuf.FieldMask\022H\n\006updat" + + "e\030\002 \001(\01326.google.ads.googleads.v0.resour" + + "ces.CustomerManagerLinkH\000B\013\n\toperation\"w" + + "\n!MutateCustomerManagerLinkResponse\022R\n\007r" + + "esults\030\001 \003(\0132A.google.ads.googleads.v0.s" + + "ervices.MutateCustomerManagerLinkResult\"" + + "8\n\037MutateCustomerManagerLinkResult\022\025\n\rre" + + "source_name\030\001 \001(\t2\335\003\n\032CustomerManagerLin" + + "kService\022\321\001\n\026GetCustomerManagerLink\022?.go" + + "ogle.ads.googleads.v0.services.GetCustom" + + "erManagerLinkRequest\0326.google.ads.google" + + "ads.v0.resources.CustomerManagerLink\">\202\323" + + "\344\223\0028\0226/v0/{resource_name=customers/*/cus" + + "tomerManagerLinks/*}\022\352\001\n\031MutateCustomerM" + + "anagerLink\022B.google.ads.googleads.v0.ser" + + "vices.MutateCustomerManagerLinkRequest\032C" + + ".google.ads.googleads.v0.services.Mutate" + + "CustomerManagerLinkResponse\"D\202\323\344\223\002>\"9/v0" + + "/customers/{customer_id=*}/customerManag" + + "erLinks:mutate:\001*B\206\002\n$com.google.ads.goo" + + "gleads.v0.servicesB\037CustomerManagerLinkS" + + "erviceProtoP\001ZHgoogle.golang.org/genprot" + + "o/googleapis/ads/googleads/v0/services;s" + + "ervices\242\002\003GAA\252\002 Google.Ads.GoogleAds.V0." + + "Services\312\002 Google\\Ads\\GoogleAds\\V0\\Servi" + + "ces\352\002$Google::Ads::GoogleAds::V0::Servic" + "esb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = @@ -61,6 +101,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.ads.googleads.v0.resources.CustomerManagerLinkProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), }, assigner); internal_static_google_ads_googleads_v0_services_GetCustomerManagerLinkRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -68,6 +109,30 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_GetCustomerManagerLinkRequest_descriptor, new java.lang.String[] { "ResourceName", }); + internal_static_google_ads_googleads_v0_services_MutateCustomerManagerLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_googleads_v0_services_MutateCustomerManagerLinkRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_services_MutateCustomerManagerLinkRequest_descriptor, + new java.lang.String[] { "CustomerId", "Operations", }); + internal_static_google_ads_googleads_v0_services_CustomerManagerLinkOperation_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_googleads_v0_services_CustomerManagerLinkOperation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_services_CustomerManagerLinkOperation_descriptor, + new java.lang.String[] { "UpdateMask", "Update", "Operation", }); + internal_static_google_ads_googleads_v0_services_MutateCustomerManagerLinkResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_ads_googleads_v0_services_MutateCustomerManagerLinkResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_services_MutateCustomerManagerLinkResponse_descriptor, + new java.lang.String[] { "Results", }); + internal_static_google_ads_googleads_v0_services_MutateCustomerManagerLinkResult_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_ads_googleads_v0_services_MutateCustomerManagerLinkResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_services_MutateCustomerManagerLinkResult_descriptor, + new java.lang.String[] { "ResourceName", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.AnnotationsProto.http); @@ -75,6 +140,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( .internalUpdateFileDescriptor(descriptor, registry); com.google.ads.googleads.v0.resources.CustomerManagerLinkProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerManagerLinkServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerManagerLinkServiceSettings.java index 22703d313a..a3c6f091ef 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerManagerLinkServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerManagerLinkServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -68,6 +68,13 @@ public class CustomerManagerLinkServiceSettings .getCustomerManagerLinkSettings(); } + /** Returns the object with the settings used for calls to mutateCustomerManagerLink. */ + public UnaryCallSettings + mutateCustomerManagerLinkSettings() { + return ((CustomerManagerLinkServiceStubSettings) getStubSettings()) + .mutateCustomerManagerLinkSettings(); + } + public static final CustomerManagerLinkServiceSettings create( CustomerManagerLinkServiceStubSettings stub) throws IOException { return new CustomerManagerLinkServiceSettings.Builder(stub.toBuilder()).build(); @@ -172,6 +179,13 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().getCustomerManagerLinkSettings(); } + /** Returns the builder for the settings used for calls to mutateCustomerManagerLink. */ + public UnaryCallSettings.Builder< + MutateCustomerManagerLinkRequest, MutateCustomerManagerLinkResponse> + mutateCustomerManagerLinkSettings() { + return getStubSettingsBuilder().mutateCustomerManagerLinkSettings(); + } + @Override public CustomerManagerLinkServiceSettings build() throws IOException { return new CustomerManagerLinkServiceSettings(this); diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerServiceClient.java index e3d922bea1..4584efb3ea 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -204,7 +204,7 @@ public final Customer getCustomer(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final Customer getCustomer(GetCustomerRequest request) { + public final Customer getCustomer(GetCustomerRequest request) { return getCustomerCallable().call(request); } @@ -230,6 +230,39 @@ public final UnaryCallable getCustomerCallable() { return stub.getCustomerCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates a customer. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (CustomerServiceClient customerServiceClient = CustomerServiceClient.create()) {
+   *   String customerId = "";
+   *   CustomerOperation operation = CustomerOperation.newBuilder().build();
+   *   boolean validateOnly = false;
+   *   MutateCustomerResponse response = customerServiceClient.mutateCustomer(customerId, operation, validateOnly);
+   * }
+   * 
+ * + * @param customerId The ID of the customer being modified. + * @param operation The operation to perform on the customer + * @param validateOnly If true, the request is validated but not executed. Only errors are + * returned, not results. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateCustomerResponse mutateCustomer( + String customerId, CustomerOperation operation, boolean validateOnly) { + + MutateCustomerRequest request = + MutateCustomerRequest.newBuilder() + .setCustomerId(customerId) + .setOperation(operation) + .setValidateOnly(validateOnly) + .build(); + return mutateCustomer(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Updates a customer. Operation statuses are returned. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerServiceProto.java index 91f86ce866..f58a312b27 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerServiceProto.java @@ -75,48 +75,50 @@ public static void registerAllExtensions( "tions.proto\032 google/protobuf/field_mask." + "proto\032\036google/protobuf/wrappers.proto\"+\n" + "\022GetCustomerRequest\022\025\n\rresource_name\030\001 \001" + - "(\t\"t\n\025MutateCustomerRequest\022\023\n\013customer_" + - "id\030\001 \001(\t\022F\n\toperation\030\004 \001(\01323.google.ads" + - ".googleads.v0.services.CustomerOperation" + - "\"x\n\033CreateCustomerClientRequest\022\023\n\013custo" + - "mer_id\030\001 \001(\t\022D\n\017customer_client\030\002 \001(\0132+." + - "google.ads.googleads.v0.resources.Custom" + - "er\"\201\001\n\021CustomerOperation\022;\n\006update\030\001 \001(\013" + - "2+.google.ads.googleads.v0.resources.Cus" + - "tomer\022/\n\013update_mask\030\002 \001(\0132\032.google.prot" + - "obuf.FieldMask\"5\n\034CreateCustomerClientRe" + - "sponse\022\025\n\rresource_name\030\002 \001(\t\"`\n\026MutateC" + - "ustomerResponse\022F\n\006result\030\002 \001(\01326.google" + - ".ads.googleads.v0.services.MutateCustome" + - "rResult\"-\n\024MutateCustomerResult\022\025\n\rresou" + - "rce_name\030\001 \001(\t\" \n\036ListAccessibleCustomer" + - "sRequest\"9\n\037ListAccessibleCustomersRespo" + - "nse\022\026\n\016resource_names\030\001 \003(\t2\213\006\n\017Customer" + - "Service\022\231\001\n\013GetCustomer\0224.google.ads.goo" + - "gleads.v0.services.GetCustomerRequest\032+." + - "google.ads.googleads.v0.resources.Custom" + - "er\"\'\202\323\344\223\002!\022\037/v0/{resource_name=customers" + - "/*}\022\264\001\n\016MutateCustomer\0227.google.ads.goog" + - "leads.v0.services.MutateCustomerRequest\032" + - "8.google.ads.googleads.v0.services.Mutat" + - "eCustomerResponse\"/\202\323\344\223\002)\"$/v0/customers" + - "/{customer_id=*}:mutate:\001*\022\315\001\n\027ListAcces" + - "sibleCustomers\022@.google.ads.googleads.v0" + - ".services.ListAccessibleCustomersRequest" + - "\032A.google.ads.googleads.v0.services.List" + - "AccessibleCustomersResponse\"-\202\323\344\223\002\'\022%/v0" + - "/customers:listAccessibleCustomers\022\324\001\n\024C" + - "reateCustomerClient\022=.google.ads.googlea" + - "ds.v0.services.CreateCustomerClientReque" + - "st\032>.google.ads.googleads.v0.services.Cr" + - "eateCustomerClientResponse\"=\202\323\344\223\0027\"2/v0/" + - "customers/{customer_id=*}:createCustomer" + - "Client:\001*B\324\001\n$com.google.ads.googleads.v" + - "0.servicesB\024CustomerServiceProtoP\001ZHgoog" + - "le.golang.org/genproto/googleapis/ads/go" + - "ogleads/v0/services;services\242\002\003GAA\252\002 Goo" + - "gle.Ads.GoogleAds.V0.Services\312\002 Google\\A" + - "ds\\GoogleAds\\V0\\Servicesb\006proto3" + "(\t\"\213\001\n\025MutateCustomerRequest\022\023\n\013customer" + + "_id\030\001 \001(\t\022F\n\toperation\030\004 \001(\01323.google.ad" + + "s.googleads.v0.services.CustomerOperatio" + + "n\022\025\n\rvalidate_only\030\005 \001(\010\"x\n\033CreateCustom" + + "erClientRequest\022\023\n\013customer_id\030\001 \001(\t\022D\n\017" + + "customer_client\030\002 \001(\0132+.google.ads.googl" + + "eads.v0.resources.Customer\"\201\001\n\021CustomerO" + + "peration\022;\n\006update\030\001 \001(\0132+.google.ads.go" + + "ogleads.v0.resources.Customer\022/\n\013update_" + + "mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"5" + + "\n\034CreateCustomerClientResponse\022\025\n\rresour" + + "ce_name\030\002 \001(\t\"`\n\026MutateCustomerResponse\022" + + "F\n\006result\030\002 \001(\01326.google.ads.googleads.v" + + "0.services.MutateCustomerResult\"-\n\024Mutat" + + "eCustomerResult\022\025\n\rresource_name\030\001 \001(\t\" " + + "\n\036ListAccessibleCustomersRequest\"9\n\037List" + + "AccessibleCustomersResponse\022\026\n\016resource_" + + "names\030\001 \003(\t2\213\006\n\017CustomerService\022\231\001\n\013GetC" + + "ustomer\0224.google.ads.googleads.v0.servic" + + "es.GetCustomerRequest\032+.google.ads.googl" + + "eads.v0.resources.Customer\"\'\202\323\344\223\002!\022\037/v0/" + + "{resource_name=customers/*}\022\264\001\n\016MutateCu" + + "stomer\0227.google.ads.googleads.v0.service" + + "s.MutateCustomerRequest\0328.google.ads.goo" + + "gleads.v0.services.MutateCustomerRespons" + + "e\"/\202\323\344\223\002)\"$/v0/customers/{customer_id=*}" + + ":mutate:\001*\022\315\001\n\027ListAccessibleCustomers\022@" + + ".google.ads.googleads.v0.services.ListAc" + + "cessibleCustomersRequest\032A.google.ads.go" + + "ogleads.v0.services.ListAccessibleCustom" + + "ersResponse\"-\202\323\344\223\002\'\022%/v0/customers:listA" + + "ccessibleCustomers\022\324\001\n\024CreateCustomerCli" + + "ent\022=.google.ads.googleads.v0.services.C" + + "reateCustomerClientRequest\032>.google.ads." + + "googleads.v0.services.CreateCustomerClie" + + "ntResponse\"=\202\323\344\223\0027\"2/v0/customers/{custo" + + "mer_id=*}:createCustomerClient:\001*B\373\001\n$co" + + "m.google.ads.googleads.v0.servicesB\024Cust" + + "omerServiceProtoP\001ZHgoogle.golang.org/ge" + + "nproto/googleapis/ads/googleads/v0/servi" + + "ces;services\242\002\003GAA\252\002 Google.Ads.GoogleAd" + + "s.V0.Services\312\002 Google\\Ads\\GoogleAds\\V0\\" + + "Services\352\002$Google::Ads::GoogleAds::V0::S" + + "ervicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -145,7 +147,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateCustomerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateCustomerRequest_descriptor, - new java.lang.String[] { "CustomerId", "Operation", }); + new java.lang.String[] { "CustomerId", "Operation", "ValidateOnly", }); internal_static_google_ads_googleads_v0_services_CreateCustomerClientRequest_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_ads_googleads_v0_services_CreateCustomerClientRequest_fieldAccessorTable = new diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerServiceSettings.java index 78dbac3874..8d49d997cd 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/CustomerServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/DismissRecommendationRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/DismissRecommendationRequest.java index 4903d222da..1f0379f21f 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/DismissRecommendationRequest.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/DismissRecommendationRequest.java @@ -21,8 +21,8 @@ private DismissRecommendationRequest(com.google.protobuf.GeneratedMessageV3.Buil } private DismissRecommendationRequest() { customerId_ = ""; - partialFailure_ = false; operations_ = java.util.Collections.emptyList(); + partialFailure_ = false; } @java.lang.Override @@ -61,9 +61,9 @@ private DismissRecommendationRequest( break; } case 26: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { operations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000002; } operations_.add( input.readMessage(com.google.ads.googleads.v0.services.DismissRecommendationRequest.DismissRecommendationOperation.parser(), extensionRegistry)); @@ -84,7 +84,7 @@ private DismissRecommendationRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { operations_ = java.util.Collections.unmodifiableList(operations_); } this.unknownFields = unknownFields.build(); @@ -741,22 +741,6 @@ public java.lang.String getCustomerId() { } } - public static final int PARTIAL_FAILURE_FIELD_NUMBER = 2; - private boolean partialFailure_; - /** - *
-   * If true, successful operations will be carried out and invalid
-   * operations will return errors. If false, operations will be carried in a
-   * single transaction if and only if they are all valid.
-   * Default is false.
-   * 
- * - * bool partial_failure = 2; - */ - public boolean getPartialFailure() { - return partialFailure_; - } - public static final int OPERATIONS_FIELD_NUMBER = 3; private java.util.List operations_; /** @@ -822,6 +806,22 @@ public com.google.ads.googleads.v0.services.DismissRecommendationRequest.Dismiss return operations_.get(index); } + public static final int PARTIAL_FAILURE_FIELD_NUMBER = 2; + private boolean partialFailure_; + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, operations will be carried in a
+   * single transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 2; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -883,10 +883,10 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getCustomerId() .equals(other.getCustomerId()); - result = result && (getPartialFailure() - == other.getPartialFailure()); result = result && getOperationsList() .equals(other.getOperationsList()); + result = result && (getPartialFailure() + == other.getPartialFailure()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -900,13 +900,13 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CUSTOMER_ID_FIELD_NUMBER; hash = (53 * hash) + getCustomerId().hashCode(); - hash = (37 * hash) + PARTIAL_FAILURE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPartialFailure()); if (getOperationsCount() > 0) { hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + getOperationsList().hashCode(); } + hash = (37 * hash) + PARTIAL_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPartialFailure()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1047,14 +1047,14 @@ public Builder clear() { super.clear(); customerId_ = ""; - partialFailure_ = false; - if (operationsBuilder_ == null) { operations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } else { operationsBuilder_.clear(); } + partialFailure_ = false; + return this; } @@ -1084,16 +1084,16 @@ public com.google.ads.googleads.v0.services.DismissRecommendationRequest buildPa int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.customerId_ = customerId_; - result.partialFailure_ = partialFailure_; if (operationsBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { operations_ = java.util.Collections.unmodifiableList(operations_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } result.operations_ = operations_; } else { result.operations_ = operationsBuilder_.build(); } + result.partialFailure_ = partialFailure_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -1147,14 +1147,11 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.DismissRecommendat customerId_ = other.customerId_; onChanged(); } - if (other.getPartialFailure() != false) { - setPartialFailure(other.getPartialFailure()); - } if (operationsBuilder_ == null) { if (!other.operations_.isEmpty()) { if (operations_.isEmpty()) { operations_ = other.operations_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureOperationsIsMutable(); operations_.addAll(other.operations_); @@ -1167,7 +1164,7 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.DismissRecommendat operationsBuilder_.dispose(); operationsBuilder_ = null; operations_ = other.operations_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); operationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOperationsFieldBuilder() : null; @@ -1176,6 +1173,9 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.DismissRecommendat } } } + if (other.getPartialFailure() != false) { + setPartialFailure(other.getPartialFailure()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1295,59 +1295,12 @@ public Builder setCustomerIdBytes( return this; } - private boolean partialFailure_ ; - /** - *
-     * If true, successful operations will be carried out and invalid
-     * operations will return errors. If false, operations will be carried in a
-     * single transaction if and only if they are all valid.
-     * Default is false.
-     * 
- * - * bool partial_failure = 2; - */ - public boolean getPartialFailure() { - return partialFailure_; - } - /** - *
-     * If true, successful operations will be carried out and invalid
-     * operations will return errors. If false, operations will be carried in a
-     * single transaction if and only if they are all valid.
-     * Default is false.
-     * 
- * - * bool partial_failure = 2; - */ - public Builder setPartialFailure(boolean value) { - - partialFailure_ = value; - onChanged(); - return this; - } - /** - *
-     * If true, successful operations will be carried out and invalid
-     * operations will return errors. If false, operations will be carried in a
-     * single transaction if and only if they are all valid.
-     * Default is false.
-     * 
- * - * bool partial_failure = 2; - */ - public Builder clearPartialFailure() { - - partialFailure_ = false; - onChanged(); - return this; - } - private java.util.List operations_ = java.util.Collections.emptyList(); private void ensureOperationsIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { operations_ = new java.util.ArrayList(operations_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } @@ -1563,7 +1516,7 @@ public Builder addAllOperations( public Builder clearOperations() { if (operationsBuilder_ == null) { operations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { operationsBuilder_.clear(); @@ -1682,13 +1635,60 @@ public com.google.ads.googleads.v0.services.DismissRecommendationRequest.Dismiss operationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v0.services.DismissRecommendationRequest.DismissRecommendationOperation, com.google.ads.googleads.v0.services.DismissRecommendationRequest.DismissRecommendationOperation.Builder, com.google.ads.googleads.v0.services.DismissRecommendationRequest.DismissRecommendationOperationOrBuilder>( operations_, - ((bitField0_ & 0x00000004) == 0x00000004), + ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); operations_ = null; } return operationsBuilder_; } + + private boolean partialFailure_ ; + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, operations will be carried in a
+     * single transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 2; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, operations will be carried in a
+     * single transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 2; + */ + public Builder setPartialFailure(boolean value) { + + partialFailure_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, operations will be carried in a
+     * single transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 2; + */ + public Builder clearPartialFailure() { + + partialFailure_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/DismissRecommendationRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/DismissRecommendationRequestOrBuilder.java index 04483cfe9a..af386c32da 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/DismissRecommendationRequestOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/DismissRecommendationRequestOrBuilder.java @@ -25,18 +25,6 @@ public interface DismissRecommendationRequestOrBuilder extends com.google.protobuf.ByteString getCustomerIdBytes(); - /** - *
-   * If true, successful operations will be carried out and invalid
-   * operations will return errors. If false, operations will be carried in a
-   * single transaction if and only if they are all valid.
-   * Default is false.
-   * 
- * - * bool partial_failure = 2; - */ - boolean getPartialFailure(); - /** *
    * The list of operations to dismiss recommendations.
@@ -90,4 +78,16 @@ public interface DismissRecommendationRequestOrBuilder extends
    */
   com.google.ads.googleads.v0.services.DismissRecommendationRequest.DismissRecommendationOperationOrBuilder getOperationsOrBuilder(
       int index);
+
+  /**
+   * 
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, operations will be carried in a
+   * single transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 2; + */ + boolean getPartialFailure(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/DisplayKeywordViewServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/DisplayKeywordViewServiceClient.java index 82c7e3b6ef..d8982a09f3 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/DisplayKeywordViewServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/DisplayKeywordViewServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -226,7 +226,7 @@ public final DisplayKeywordView getDisplayKeywordView(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final DisplayKeywordView getDisplayKeywordView(GetDisplayKeywordViewRequest request) { + public final DisplayKeywordView getDisplayKeywordView(GetDisplayKeywordViewRequest request) { return getDisplayKeywordViewCallable().call(request); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/DisplayKeywordViewServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/DisplayKeywordViewServiceProto.java index 1222ac526a..f009f0dda6 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/DisplayKeywordViewServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/DisplayKeywordViewServiceProto.java @@ -40,13 +40,13 @@ public static void registerAllExtensions( "iewRequest\0325.google.ads.googleads.v0.res" + "ources.DisplayKeywordView\"=\202\323\344\223\0027\0225/v0/{" + "resource_name=customers/*/displayKeyword" + - "Views/*}B\336\001\n$com.google.ads.googleads.v0" + + "Views/*}B\205\002\n$com.google.ads.googleads.v0" + ".servicesB\036DisplayKeywordViewServiceProt" + "oP\001ZHgoogle.golang.org/genproto/googleap" + "is/ads/googleads/v0/services;services\242\002\003" + "GAA\252\002 Google.Ads.GoogleAds.V0.Services\312\002" + - " Google\\Ads\\GoogleAds\\V0\\Servicesb\006proto" + - "3" + " Google\\Ads\\GoogleAds\\V0\\Services\352\002$Goog" + + "le::Ads::GoogleAds::V0::Servicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/DisplayKeywordViewServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/DisplayKeywordViewServiceSettings.java index 5d1003403b..b5515f97f0 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/DisplayKeywordViewServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/DisplayKeywordViewServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/FeedItemServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/FeedItemServiceClient.java index 4356d915ea..5c1937a001 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/FeedItemServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/FeedItemServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -214,7 +214,7 @@ public final FeedItem getFeedItem(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final FeedItem getFeedItem(GetFeedItemRequest request) { + public final FeedItem getFeedItem(GetFeedItemRequest request) { return getFeedItemCallable().call(request); } @@ -240,6 +240,47 @@ public final UnaryCallable getFeedItemCallable() { return stub.getFeedItemCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates, updates, or removes feed items. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (FeedItemServiceClient feedItemServiceClient = FeedItemServiceClient.create()) {
+   *   String customerId = "";
+   *   List<FeedItemOperation> operations = new ArrayList<>();
+   *   boolean partialFailure = false;
+   *   boolean validateOnly = false;
+   *   MutateFeedItemsResponse response = feedItemServiceClient.mutateFeedItems(customerId, operations, partialFailure, validateOnly);
+   * }
+   * 
+ * + * @param customerId The ID of the customer whose feed items are being modified. + * @param operations The list of operations to perform on individual feed items. + * @param partialFailure If true, successful operations will be carried out and invalid operations + * will return errors. If false, all operations will be carried out in one transaction if and + * only if they are all valid. Default is false. + * @param validateOnly If true, the request is validated but not executed. Only errors are + * returned, not results. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateFeedItemsResponse mutateFeedItems( + String customerId, + List operations, + boolean partialFailure, + boolean validateOnly) { + + MutateFeedItemsRequest request = + MutateFeedItemsRequest.newBuilder() + .setCustomerId(customerId) + .addAllOperations(operations) + .setPartialFailure(partialFailure) + .setValidateOnly(validateOnly) + .build(); + return mutateFeedItems(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Creates, updates, or removes feed items. Operation statuses are returned. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/FeedItemServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/FeedItemServiceProto.java index cdf8649292..798bad4eff 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/FeedItemServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/FeedItemServiceProto.java @@ -53,35 +53,40 @@ public static void registerAllExtensions( ".v0.services\0321google/ads/googleads/v0/re" + "sources/feed_item.proto\032\034google/api/anno" + "tations.proto\032 google/protobuf/field_mas" + - "k.proto\"+\n\022GetFeedItemRequest\022\025\n\rresourc" + - "e_name\030\001 \001(\t\"v\n\026MutateFeedItemsRequest\022\023" + - "\n\013customer_id\030\001 \001(\t\022G\n\noperations\030\002 \003(\0132" + - "3.google.ads.googleads.v0.services.FeedI" + - "temOperation\"\341\001\n\021FeedItemOperation\022/\n\013up" + - "date_mask\030\004 \001(\0132\032.google.protobuf.FieldM" + - "ask\022=\n\006create\030\001 \001(\0132+.google.ads.googlea" + - "ds.v0.resources.FeedItemH\000\022=\n\006update\030\002 \001" + - "(\0132+.google.ads.googleads.v0.resources.F" + - "eedItemH\000\022\020\n\006remove\030\003 \001(\tH\000B\013\n\toperation" + - "\"b\n\027MutateFeedItemsResponse\022G\n\007results\030\002" + - " \003(\01326.google.ads.googleads.v0.services." + - "MutateFeedItemResult\"-\n\024MutateFeedItemRe" + - "sult\022\025\n\rresource_name\030\001 \001(\t2\375\002\n\017FeedItem" + - "Service\022\245\001\n\013GetFeedItem\0224.google.ads.goo" + - "gleads.v0.services.GetFeedItemRequest\032+." + - "google.ads.googleads.v0.resources.FeedIt" + - "em\"3\202\323\344\223\002-\022+/v0/{resource_name=customers" + - "/*/feedItems/*}\022\301\001\n\017MutateFeedItems\0228.go" + - "ogle.ads.googleads.v0.services.MutateFee" + - "dItemsRequest\0329.google.ads.googleads.v0." + - "services.MutateFeedItemsResponse\"9\202\323\344\223\0023" + - "\"./v0/customers/{customer_id=*}/feedItem" + - "s:mutate:\001*B\324\001\n$com.google.ads.googleads" + - ".v0.servicesB\024FeedItemServiceProtoP\001ZHgo" + - "ogle.golang.org/genproto/googleapis/ads/" + - "googleads/v0/services;services\242\002\003GAA\252\002 G" + - "oogle.Ads.GoogleAds.V0.Services\312\002 Google" + - "\\Ads\\GoogleAds\\V0\\Servicesb\006proto3" + "k.proto\032\036google/protobuf/wrappers.proto\032" + + "\027google/rpc/status.proto\"+\n\022GetFeedItemR" + + "equest\022\025\n\rresource_name\030\001 \001(\t\"\246\001\n\026Mutate" + + "FeedItemsRequest\022\023\n\013customer_id\030\001 \001(\t\022G\n" + + "\noperations\030\002 \003(\01323.google.ads.googleads" + + ".v0.services.FeedItemOperation\022\027\n\017partia" + + "l_failure\030\003 \001(\010\022\025\n\rvalidate_only\030\004 \001(\010\"\341" + + "\001\n\021FeedItemOperation\022/\n\013update_mask\030\004 \001(" + + "\0132\032.google.protobuf.FieldMask\022=\n\006create\030" + + "\001 \001(\0132+.google.ads.googleads.v0.resource" + + "s.FeedItemH\000\022=\n\006update\030\002 \001(\0132+.google.ad" + + "s.googleads.v0.resources.FeedItemH\000\022\020\n\006r" + + "emove\030\003 \001(\tH\000B\013\n\toperation\"\225\001\n\027MutateFee" + + "dItemsResponse\0221\n\025partial_failure_error\030" + + "\003 \001(\0132\022.google.rpc.Status\022G\n\007results\030\002 \003" + + "(\01326.google.ads.googleads.v0.services.Mu" + + "tateFeedItemResult\"-\n\024MutateFeedItemResu" + + "lt\022\025\n\rresource_name\030\001 \001(\t2\375\002\n\017FeedItemSe" + + "rvice\022\245\001\n\013GetFeedItem\0224.google.ads.googl" + + "eads.v0.services.GetFeedItemRequest\032+.go" + + "ogle.ads.googleads.v0.resources.FeedItem" + + "\"3\202\323\344\223\002-\022+/v0/{resource_name=customers/*" + + "/feedItems/*}\022\301\001\n\017MutateFeedItems\0228.goog" + + "le.ads.googleads.v0.services.MutateFeedI" + + "temsRequest\0329.google.ads.googleads.v0.se" + + "rvices.MutateFeedItemsResponse\"9\202\323\344\223\0023\"." + + "/v0/customers/{customer_id=*}/feedItems:" + + "mutate:\001*B\373\001\n$com.google.ads.googleads.v" + + "0.servicesB\024FeedItemServiceProtoP\001ZHgoog" + + "le.golang.org/genproto/googleapis/ads/go" + + "ogleads/v0/services;services\242\002\003GAA\252\002 Goo" + + "gle.Ads.GoogleAds.V0.Services\312\002 Google\\A" + + "ds\\GoogleAds\\V0\\Services\352\002$Google::Ads::" + + "GoogleAds::V0::Servicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -97,6 +102,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.FeedItemProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), }, assigner); internal_static_google_ads_googleads_v0_services_GetFeedItemRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -109,7 +116,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateFeedItemsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateFeedItemsRequest_descriptor, - new java.lang.String[] { "CustomerId", "Operations", }); + new java.lang.String[] { "CustomerId", "Operations", "PartialFailure", "ValidateOnly", }); internal_static_google_ads_googleads_v0_services_FeedItemOperation_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_ads_googleads_v0_services_FeedItemOperation_fieldAccessorTable = new @@ -121,7 +128,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateFeedItemsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateFeedItemsResponse_descriptor, - new java.lang.String[] { "Results", }); + new java.lang.String[] { "PartialFailureError", "Results", }); internal_static_google_ads_googleads_v0_services_MutateFeedItemResult_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_google_ads_googleads_v0_services_MutateFeedItemResult_fieldAccessorTable = new @@ -136,6 +143,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.FeedItemProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/FeedItemServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/FeedItemServiceSettings.java index 0026b29ab6..37310b10e6 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/FeedItemServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/FeedItemServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/FeedMappingServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/FeedMappingServiceClient.java index db9d9d403b..fa73ac1bcd 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/FeedMappingServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/FeedMappingServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -216,7 +216,7 @@ public final FeedMapping getFeedMapping(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final FeedMapping getFeedMapping(GetFeedMappingRequest request) { + public final FeedMapping getFeedMapping(GetFeedMappingRequest request) { return getFeedMappingCallable().call(request); } @@ -242,6 +242,47 @@ public final UnaryCallable getFeedMappingCal return stub.getFeedMappingCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates or removes feed mappings. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (FeedMappingServiceClient feedMappingServiceClient = FeedMappingServiceClient.create()) {
+   *   String customerId = "";
+   *   List<FeedMappingOperation> operations = new ArrayList<>();
+   *   boolean partialFailure = false;
+   *   boolean validateOnly = false;
+   *   MutateFeedMappingsResponse response = feedMappingServiceClient.mutateFeedMappings(customerId, operations, partialFailure, validateOnly);
+   * }
+   * 
+ * + * @param customerId The ID of the customer whose feed mappings are being modified. + * @param operations The list of operations to perform on individual feed mappings. + * @param partialFailure If true, successful operations will be carried out and invalid operations + * will return errors. If false, all operations will be carried out in one transaction if and + * only if they are all valid. Default is false. + * @param validateOnly If true, the request is validated but not executed. Only errors are + * returned, not results. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateFeedMappingsResponse mutateFeedMappings( + String customerId, + List operations, + boolean partialFailure, + boolean validateOnly) { + + MutateFeedMappingsRequest request = + MutateFeedMappingsRequest.newBuilder() + .setCustomerId(customerId) + .addAllOperations(operations) + .setPartialFailure(partialFailure) + .setValidateOnly(validateOnly) + .build(); + return mutateFeedMappings(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Creates or removes feed mappings. Operation statuses are returned. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/FeedMappingServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/FeedMappingServiceProto.java index f5da82acc3..8f10412bfa 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/FeedMappingServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/FeedMappingServiceProto.java @@ -52,34 +52,39 @@ public static void registerAllExtensions( "mapping_service.proto\022 google.ads.google" + "ads.v0.services\0324google/ads/googleads/v0" + "/resources/feed_mapping.proto\032\034google/ap" + - "i/annotations.proto\".\n\025GetFeedMappingReq" + - "uest\022\025\n\rresource_name\030\001 \001(\t\"|\n\031MutateFee" + - "dMappingsRequest\022\023\n\013customer_id\030\001 \001(\t\022J\n" + - "\noperations\030\002 \003(\01326.google.ads.googleads" + - ".v0.services.FeedMappingOperation\"w\n\024Fee" + - "dMappingOperation\022@\n\006create\030\001 \001(\0132..goog" + - "le.ads.googleads.v0.resources.FeedMappin" + - "gH\000\022\020\n\006remove\030\003 \001(\tH\000B\013\n\toperation\"h\n\032Mu" + - "tateFeedMappingsResponse\022J\n\007results\030\002 \003(" + - "\01329.google.ads.googleads.v0.services.Mut" + - "ateFeedMappingResult\"0\n\027MutateFeedMappin" + - "gResult\022\025\n\rresource_name\030\001 \001(\t2\230\003\n\022FeedM" + - "appingService\022\261\001\n\016GetFeedMapping\0227.googl" + - "e.ads.googleads.v0.services.GetFeedMappi" + - "ngRequest\032..google.ads.googleads.v0.reso" + - "urces.FeedMapping\"6\202\323\344\223\0020\022./v0/{resource" + - "_name=customers/*/feedMappings/*}\022\315\001\n\022Mu" + - "tateFeedMappings\022;.google.ads.googleads." + - "v0.services.MutateFeedMappingsRequest\032<." + - "google.ads.googleads.v0.services.MutateF" + - "eedMappingsResponse\"<\202\323\344\223\0026\"1/v0/custome" + - "rs/{customer_id=*}/feedMappings:mutate:\001" + - "*B\327\001\n$com.google.ads.googleads.v0.servic" + - "esB\027FeedMappingServiceProtoP\001ZHgoogle.go" + - "lang.org/genproto/googleapis/ads/googlea" + - "ds/v0/services;services\242\002\003GAA\252\002 Google.A" + - "ds.GoogleAds.V0.Services\312\002 Google\\Ads\\Go" + - "ogleAds\\V0\\Servicesb\006proto3" + "i/annotations.proto\032\036google/protobuf/wra" + + "ppers.proto\032\027google/rpc/status.proto\".\n\025" + + "GetFeedMappingRequest\022\025\n\rresource_name\030\001" + + " \001(\t\"\254\001\n\031MutateFeedMappingsRequest\022\023\n\013cu" + + "stomer_id\030\001 \001(\t\022J\n\noperations\030\002 \003(\01326.go" + + "ogle.ads.googleads.v0.services.FeedMappi" + + "ngOperation\022\027\n\017partial_failure\030\003 \001(\010\022\025\n\r" + + "validate_only\030\004 \001(\010\"w\n\024FeedMappingOperat" + + "ion\022@\n\006create\030\001 \001(\0132..google.ads.googlea" + + "ds.v0.resources.FeedMappingH\000\022\020\n\006remove\030" + + "\003 \001(\tH\000B\013\n\toperation\"\233\001\n\032MutateFeedMappi" + + "ngsResponse\0221\n\025partial_failure_error\030\003 \001" + + "(\0132\022.google.rpc.Status\022J\n\007results\030\002 \003(\0132" + + "9.google.ads.googleads.v0.services.Mutat" + + "eFeedMappingResult\"0\n\027MutateFeedMappingR" + + "esult\022\025\n\rresource_name\030\001 \001(\t2\230\003\n\022FeedMap" + + "pingService\022\261\001\n\016GetFeedMapping\0227.google." + + "ads.googleads.v0.services.GetFeedMapping" + + "Request\032..google.ads.googleads.v0.resour" + + "ces.FeedMapping\"6\202\323\344\223\0020\022./v0/{resource_n" + + "ame=customers/*/feedMappings/*}\022\315\001\n\022Muta" + + "teFeedMappings\022;.google.ads.googleads.v0" + + ".services.MutateFeedMappingsRequest\032<.go" + + "ogle.ads.googleads.v0.services.MutateFee" + + "dMappingsResponse\"<\202\323\344\223\0026\"1/v0/customers" + + "/{customer_id=*}/feedMappings:mutate:\001*B" + + "\376\001\n$com.google.ads.googleads.v0.services" + + "B\027FeedMappingServiceProtoP\001ZHgoogle.gola" + + "ng.org/genproto/googleapis/ads/googleads" + + "/v0/services;services\242\002\003GAA\252\002 Google.Ads" + + ".GoogleAds.V0.Services\312\002 Google\\Ads\\Goog" + + "leAds\\V0\\Services\352\002$Google::Ads::GoogleA" + + "ds::V0::Servicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -94,6 +99,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.ads.googleads.v0.resources.FeedMappingProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), }, assigner); internal_static_google_ads_googleads_v0_services_GetFeedMappingRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -106,7 +113,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateFeedMappingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateFeedMappingsRequest_descriptor, - new java.lang.String[] { "CustomerId", "Operations", }); + new java.lang.String[] { "CustomerId", "Operations", "PartialFailure", "ValidateOnly", }); internal_static_google_ads_googleads_v0_services_FeedMappingOperation_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_ads_googleads_v0_services_FeedMappingOperation_fieldAccessorTable = new @@ -118,7 +125,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateFeedMappingsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateFeedMappingsResponse_descriptor, - new java.lang.String[] { "Results", }); + new java.lang.String[] { "PartialFailureError", "Results", }); internal_static_google_ads_googleads_v0_services_MutateFeedMappingResult_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_google_ads_googleads_v0_services_MutateFeedMappingResult_fieldAccessorTable = new @@ -132,6 +139,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( .internalUpdateFileDescriptor(descriptor, registry); com.google.ads.googleads.v0.resources.FeedMappingProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/FeedMappingServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/FeedMappingServiceSettings.java index d04f9a215f..6102a79b06 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/FeedMappingServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/FeedMappingServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/FeedServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/FeedServiceClient.java index df654c618a..a2e697ed99 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/FeedServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/FeedServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -207,7 +207,7 @@ public final Feed getFeed(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final Feed getFeed(GetFeedRequest request) { + public final Feed getFeed(GetFeedRequest request) { return getFeedCallable().call(request); } @@ -233,6 +233,47 @@ public final UnaryCallable getFeedCallable() { return stub.getFeedCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates, updates, or removes feeds. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (FeedServiceClient feedServiceClient = FeedServiceClient.create()) {
+   *   String customerId = "";
+   *   List<FeedOperation> operations = new ArrayList<>();
+   *   boolean partialFailure = false;
+   *   boolean validateOnly = false;
+   *   MutateFeedsResponse response = feedServiceClient.mutateFeeds(customerId, operations, partialFailure, validateOnly);
+   * }
+   * 
+ * + * @param customerId The ID of the customer whose feeds are being modified. + * @param operations The list of operations to perform on individual feeds. + * @param partialFailure If true, successful operations will be carried out and invalid operations + * will return errors. If false, all operations will be carried out in one transaction if and + * only if they are all valid. Default is false. + * @param validateOnly If true, the request is validated but not executed. Only errors are + * returned, not results. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateFeedsResponse mutateFeeds( + String customerId, + List operations, + boolean partialFailure, + boolean validateOnly) { + + MutateFeedsRequest request = + MutateFeedsRequest.newBuilder() + .setCustomerId(customerId) + .addAllOperations(operations) + .setPartialFailure(partialFailure) + .setValidateOnly(validateOnly) + .build(); + return mutateFeeds(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Creates, updates, or removes feeds. Operation statuses are returned. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/FeedServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/FeedServiceProto.java index a5da6fcc5f..834cdebb81 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/FeedServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/FeedServiceProto.java @@ -52,34 +52,39 @@ public static void registerAllExtensions( "service.proto\022 google.ads.googleads.v0.s" + "ervices\032,google/ads/googleads/v0/resourc" + "es/feed.proto\032\034google/api/annotations.pr" + - "oto\032 google/protobuf/field_mask.proto\"\'\n" + - "\016GetFeedRequest\022\025\n\rresource_name\030\001 \001(\t\"n" + - "\n\022MutateFeedsRequest\022\023\n\013customer_id\030\001 \001(" + - "\t\022C\n\noperations\030\002 \003(\0132/.google.ads.googl" + - "eads.v0.services.FeedOperation\"\325\001\n\rFeedO" + - "peration\022/\n\013update_mask\030\004 \001(\0132\032.google.p" + - "rotobuf.FieldMask\0229\n\006create\030\001 \001(\0132\'.goog" + - "le.ads.googleads.v0.resources.FeedH\000\0229\n\006" + - "update\030\002 \001(\0132\'.google.ads.googleads.v0.r" + - "esources.FeedH\000\022\020\n\006remove\030\003 \001(\tH\000B\013\n\tope" + - "ration\"Z\n\023MutateFeedsResponse\022C\n\007results" + - "\030\002 \003(\01322.google.ads.googleads.v0.service" + - "s.MutateFeedResult\")\n\020MutateFeedResult\022\025" + - "\n\rresource_name\030\001 \001(\t2\331\002\n\013FeedService\022\225\001" + - "\n\007GetFeed\0220.google.ads.googleads.v0.serv" + - "ices.GetFeedRequest\032\'.google.ads.googlea" + - "ds.v0.resources.Feed\"/\202\323\344\223\002)\022\'/v0/{resou" + - "rce_name=customers/*/feeds/*}\022\261\001\n\013Mutate" + - "Feeds\0224.google.ads.googleads.v0.services" + - ".MutateFeedsRequest\0325.google.ads.googlea" + - "ds.v0.services.MutateFeedsResponse\"5\202\323\344\223" + - "\002/\"*/v0/customers/{customer_id=*}/feeds:" + - "mutate:\001*B\320\001\n$com.google.ads.googleads.v" + - "0.servicesB\020FeedServiceProtoP\001ZHgoogle.g" + - "olang.org/genproto/googleapis/ads/google" + - "ads/v0/services;services\242\002\003GAA\252\002 Google." + - "Ads.GoogleAds.V0.Services\312\002 Google\\Ads\\G" + - "oogleAds\\V0\\Servicesb\006proto3" + "oto\032 google/protobuf/field_mask.proto\032\036g" + + "oogle/protobuf/wrappers.proto\032\027google/rp" + + "c/status.proto\"\'\n\016GetFeedRequest\022\025\n\rreso" + + "urce_name\030\001 \001(\t\"\236\001\n\022MutateFeedsRequest\022\023" + + "\n\013customer_id\030\001 \001(\t\022C\n\noperations\030\002 \003(\0132" + + "/.google.ads.googleads.v0.services.FeedO" + + "peration\022\027\n\017partial_failure\030\003 \001(\010\022\025\n\rval" + + "idate_only\030\004 \001(\010\"\325\001\n\rFeedOperation\022/\n\013up" + + "date_mask\030\004 \001(\0132\032.google.protobuf.FieldM" + + "ask\0229\n\006create\030\001 \001(\0132\'.google.ads.googlea" + + "ds.v0.resources.FeedH\000\0229\n\006update\030\002 \001(\0132\'" + + ".google.ads.googleads.v0.resources.FeedH" + + "\000\022\020\n\006remove\030\003 \001(\tH\000B\013\n\toperation\"\215\001\n\023Mut" + + "ateFeedsResponse\0221\n\025partial_failure_erro" + + "r\030\003 \001(\0132\022.google.rpc.Status\022C\n\007results\030\002" + + " \003(\01322.google.ads.googleads.v0.services." + + "MutateFeedResult\")\n\020MutateFeedResult\022\025\n\r" + + "resource_name\030\001 \001(\t2\331\002\n\013FeedService\022\225\001\n\007" + + "GetFeed\0220.google.ads.googleads.v0.servic" + + "es.GetFeedRequest\032\'.google.ads.googleads" + + ".v0.resources.Feed\"/\202\323\344\223\002)\022\'/v0/{resourc" + + "e_name=customers/*/feeds/*}\022\261\001\n\013MutateFe" + + "eds\0224.google.ads.googleads.v0.services.M" + + "utateFeedsRequest\0325.google.ads.googleads" + + ".v0.services.MutateFeedsResponse\"5\202\323\344\223\002/" + + "\"*/v0/customers/{customer_id=*}/feeds:mu" + + "tate:\001*B\367\001\n$com.google.ads.googleads.v0." + + "servicesB\020FeedServiceProtoP\001ZHgoogle.gol" + + "ang.org/genproto/googleapis/ads/googlead" + + "s/v0/services;services\242\002\003GAA\252\002 Google.Ad" + + "s.GoogleAds.V0.Services\312\002 Google\\Ads\\Goo" + + "gleAds\\V0\\Services\352\002$Google::Ads::Google" + + "Ads::V0::Servicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -95,6 +100,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.FeedProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), }, assigner); internal_static_google_ads_googleads_v0_services_GetFeedRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -107,7 +114,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateFeedsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateFeedsRequest_descriptor, - new java.lang.String[] { "CustomerId", "Operations", }); + new java.lang.String[] { "CustomerId", "Operations", "PartialFailure", "ValidateOnly", }); internal_static_google_ads_googleads_v0_services_FeedOperation_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_ads_googleads_v0_services_FeedOperation_fieldAccessorTable = new @@ -119,7 +126,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateFeedsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateFeedsResponse_descriptor, - new java.lang.String[] { "Results", }); + new java.lang.String[] { "PartialFailureError", "Results", }); internal_static_google_ads_googleads_v0_services_MutateFeedResult_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_google_ads_googleads_v0_services_MutateFeedResult_fieldAccessorTable = new @@ -134,6 +141,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.FeedProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/FeedServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/FeedServiceSettings.java index 2604f0adf0..bf924b6881 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/FeedServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/FeedServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GenderViewServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GenderViewServiceClient.java index b56e1ba3d5..93856e3742 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GenderViewServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GenderViewServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -215,7 +215,7 @@ public final GenderView getGenderView(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final GenderView getGenderView(GetGenderViewRequest request) { + public final GenderView getGenderView(GetGenderViewRequest request) { return getGenderViewCallable().call(request); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GenderViewServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GenderViewServiceProto.java index c6d6556d89..f0b8d5477d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GenderViewServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GenderViewServiceProto.java @@ -38,13 +38,14 @@ public static void registerAllExtensions( "ogleads.v0.services.GetGenderViewRequest" + "\032-.google.ads.googleads.v0.resources.Gen" + "derView\"5\202\323\344\223\002/\022-/v0/{resource_name=cust" + - "omers/*/genderViews/*}B\326\001\n$com.google.ad" + + "omers/*/genderViews/*}B\375\001\n$com.google.ad" + "s.googleads.v0.servicesB\026GenderViewServi" + "ceProtoP\001ZHgoogle.golang.org/genproto/go" + "ogleapis/ads/googleads/v0/services;servi" + "ces\242\002\003GAA\252\002 Google.Ads.GoogleAds.V0.Serv" + - "ices\312\002 Google\\Ads\\GoogleAds\\V0\\Servicesb" + - "\006proto3" + "ices\312\002 Google\\Ads\\GoogleAds\\V0\\Services\352" + + "\002$Google::Ads::GoogleAds::V0::Servicesb\006" + + "proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GenderViewServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GenderViewServiceSettings.java index fc6886b81d..4c72569796 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GenderViewServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GenderViewServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GeoTargetConstantServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GeoTargetConstantServiceClient.java index 6531c51485..a9f3260e3e 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GeoTargetConstantServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GeoTargetConstantServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -214,7 +214,7 @@ public final GeoTargetConstant getGeoTargetConstant(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final GeoTargetConstant getGeoTargetConstant(GetGeoTargetConstantRequest request) { + public final GeoTargetConstant getGeoTargetConstant(GetGeoTargetConstantRequest request) { return getGeoTargetConstantCallable().call(request); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GeoTargetConstantServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GeoTargetConstantServiceProto.java index 04f90c6386..67c84fbd54 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GeoTargetConstantServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GeoTargetConstantServiceProto.java @@ -95,13 +95,13 @@ public static void registerAllExtensions( "tConstantsRequest\032C.google.ads.googleads" + ".v0.services.SuggestGeoTargetConstantsRe" + "sponse\")\202\323\344\223\002#\"\036/v0/geoTargetConstants:s" + - "uggest:\001*B\335\001\n$com.google.ads.googleads.v" + + "uggest:\001*B\204\002\n$com.google.ads.googleads.v" + "0.servicesB\035GeoTargetConstantServiceProt" + "oP\001ZHgoogle.golang.org/genproto/googleap" + "is/ads/googleads/v0/services;services\242\002\003" + "GAA\252\002 Google.Ads.GoogleAds.V0.Services\312\002" + - " Google\\Ads\\GoogleAds\\V0\\Servicesb\006proto" + - "3" + " Google\\Ads\\GoogleAds\\V0\\Services\352\002$Goog" + + "le::Ads::GoogleAds::V0::Servicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GeoTargetConstantServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GeoTargetConstantServiceSettings.java index 972ae5a2c9..1727ae26bb 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GeoTargetConstantServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GeoTargetConstantServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetCampaignGroupRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetAdParameterRequest.java similarity index 72% rename from google-ads/src/main/java/com/google/ads/googleads/v0/services/GetCampaignGroupRequest.java rename to google-ads/src/main/java/com/google/ads/googleads/v0/services/GetAdParameterRequest.java index 61d872150d..3e1b2afc7a 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetCampaignGroupRequest.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetAdParameterRequest.java @@ -1,25 +1,25 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v0/services/campaign_group_service.proto +// source: google/ads/googleads/v0/services/ad_parameter_service.proto package com.google.ads.googleads.v0.services; /** *
- * Request message for [CampaignGroupService.GetCampaignGroup][google.ads.googleads.v0.services.CampaignGroupService.GetCampaignGroup].
+ * Request message for [AdParameterService.GetAdParameter][google.ads.googleads.v0.services.AdParameterService.GetAdParameter]
  * 
* - * Protobuf type {@code google.ads.googleads.v0.services.GetCampaignGroupRequest} + * Protobuf type {@code google.ads.googleads.v0.services.GetAdParameterRequest} */ -public final class GetCampaignGroupRequest extends +public final class GetAdParameterRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.services.GetCampaignGroupRequest) - GetCampaignGroupRequestOrBuilder { + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.services.GetAdParameterRequest) + GetAdParameterRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use GetCampaignGroupRequest.newBuilder() to construct. - private GetCampaignGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use GetAdParameterRequest.newBuilder() to construct. + private GetAdParameterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetCampaignGroupRequest() { + private GetAdParameterRequest() { resourceName_ = ""; } @@ -28,7 +28,7 @@ private GetCampaignGroupRequest() { getUnknownFields() { return this.unknownFields; } - private GetCampaignGroupRequest( + private GetAdParameterRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -74,22 +74,22 @@ private GetCampaignGroupRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.googleads.v0.services.CampaignGroupServiceProto.internal_static_google_ads_googleads_v0_services_GetCampaignGroupRequest_descriptor; + return com.google.ads.googleads.v0.services.AdParameterServiceProto.internal_static_google_ads_googleads_v0_services_GetAdParameterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.googleads.v0.services.CampaignGroupServiceProto.internal_static_google_ads_googleads_v0_services_GetCampaignGroupRequest_fieldAccessorTable + return com.google.ads.googleads.v0.services.AdParameterServiceProto.internal_static_google_ads_googleads_v0_services_GetAdParameterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.ads.googleads.v0.services.GetCampaignGroupRequest.class, com.google.ads.googleads.v0.services.GetCampaignGroupRequest.Builder.class); + com.google.ads.googleads.v0.services.GetAdParameterRequest.class, com.google.ads.googleads.v0.services.GetAdParameterRequest.Builder.class); } public static final int RESOURCE_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object resourceName_; /** *
-   * The resource name of the campaign group to fetch.
+   * The resource name of the ad parameter to fetch.
    * 
* * string resource_name = 1; @@ -108,7 +108,7 @@ public java.lang.String getResourceName() { } /** *
-   * The resource name of the campaign group to fetch.
+   * The resource name of the ad parameter to fetch.
    * 
* * string resource_name = 1; @@ -166,10 +166,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.ads.googleads.v0.services.GetCampaignGroupRequest)) { + if (!(obj instanceof com.google.ads.googleads.v0.services.GetAdParameterRequest)) { return super.equals(obj); } - com.google.ads.googleads.v0.services.GetCampaignGroupRequest other = (com.google.ads.googleads.v0.services.GetCampaignGroupRequest) obj; + com.google.ads.googleads.v0.services.GetAdParameterRequest other = (com.google.ads.googleads.v0.services.GetAdParameterRequest) obj; boolean result = true; result = result && getResourceName() @@ -192,69 +192,69 @@ public int hashCode() { return hash; } - public static com.google.ads.googleads.v0.services.GetCampaignGroupRequest parseFrom( + public static com.google.ads.googleads.v0.services.GetAdParameterRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.googleads.v0.services.GetCampaignGroupRequest parseFrom( + public static com.google.ads.googleads.v0.services.GetAdParameterRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.googleads.v0.services.GetCampaignGroupRequest parseFrom( + public static com.google.ads.googleads.v0.services.GetAdParameterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.googleads.v0.services.GetCampaignGroupRequest parseFrom( + public static com.google.ads.googleads.v0.services.GetAdParameterRequest 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.ads.googleads.v0.services.GetCampaignGroupRequest parseFrom(byte[] data) + public static com.google.ads.googleads.v0.services.GetAdParameterRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.googleads.v0.services.GetCampaignGroupRequest parseFrom( + public static com.google.ads.googleads.v0.services.GetAdParameterRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.googleads.v0.services.GetCampaignGroupRequest parseFrom(java.io.InputStream input) + public static com.google.ads.googleads.v0.services.GetAdParameterRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.google.ads.googleads.v0.services.GetCampaignGroupRequest parseFrom( + public static com.google.ads.googleads.v0.services.GetAdParameterRequest 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.ads.googleads.v0.services.GetCampaignGroupRequest parseDelimitedFrom(java.io.InputStream input) + public static com.google.ads.googleads.v0.services.GetAdParameterRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.google.ads.googleads.v0.services.GetCampaignGroupRequest parseDelimitedFrom( + public static com.google.ads.googleads.v0.services.GetAdParameterRequest 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.ads.googleads.v0.services.GetCampaignGroupRequest parseFrom( + public static com.google.ads.googleads.v0.services.GetAdParameterRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.google.ads.googleads.v0.services.GetCampaignGroupRequest parseFrom( + public static com.google.ads.googleads.v0.services.GetAdParameterRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -267,7 +267,7 @@ public static com.google.ads.googleads.v0.services.GetCampaignGroupRequest parse public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.ads.googleads.v0.services.GetCampaignGroupRequest prototype) { + public static Builder newBuilder(com.google.ads.googleads.v0.services.GetAdParameterRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -284,29 +284,29 @@ protected Builder newBuilderForType( } /** *
-   * Request message for [CampaignGroupService.GetCampaignGroup][google.ads.googleads.v0.services.CampaignGroupService.GetCampaignGroup].
+   * Request message for [AdParameterService.GetAdParameter][google.ads.googleads.v0.services.AdParameterService.GetAdParameter]
    * 
* - * Protobuf type {@code google.ads.googleads.v0.services.GetCampaignGroupRequest} + * Protobuf type {@code google.ads.googleads.v0.services.GetAdParameterRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.services.GetCampaignGroupRequest) - com.google.ads.googleads.v0.services.GetCampaignGroupRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.services.GetAdParameterRequest) + com.google.ads.googleads.v0.services.GetAdParameterRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.googleads.v0.services.CampaignGroupServiceProto.internal_static_google_ads_googleads_v0_services_GetCampaignGroupRequest_descriptor; + return com.google.ads.googleads.v0.services.AdParameterServiceProto.internal_static_google_ads_googleads_v0_services_GetAdParameterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.googleads.v0.services.CampaignGroupServiceProto.internal_static_google_ads_googleads_v0_services_GetCampaignGroupRequest_fieldAccessorTable + return com.google.ads.googleads.v0.services.AdParameterServiceProto.internal_static_google_ads_googleads_v0_services_GetAdParameterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.ads.googleads.v0.services.GetCampaignGroupRequest.class, com.google.ads.googleads.v0.services.GetCampaignGroupRequest.Builder.class); + com.google.ads.googleads.v0.services.GetAdParameterRequest.class, com.google.ads.googleads.v0.services.GetAdParameterRequest.Builder.class); } - // Construct using com.google.ads.googleads.v0.services.GetCampaignGroupRequest.newBuilder() + // Construct using com.google.ads.googleads.v0.services.GetAdParameterRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -332,17 +332,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.googleads.v0.services.CampaignGroupServiceProto.internal_static_google_ads_googleads_v0_services_GetCampaignGroupRequest_descriptor; + return com.google.ads.googleads.v0.services.AdParameterServiceProto.internal_static_google_ads_googleads_v0_services_GetAdParameterRequest_descriptor; } @java.lang.Override - public com.google.ads.googleads.v0.services.GetCampaignGroupRequest getDefaultInstanceForType() { - return com.google.ads.googleads.v0.services.GetCampaignGroupRequest.getDefaultInstance(); + public com.google.ads.googleads.v0.services.GetAdParameterRequest getDefaultInstanceForType() { + return com.google.ads.googleads.v0.services.GetAdParameterRequest.getDefaultInstance(); } @java.lang.Override - public com.google.ads.googleads.v0.services.GetCampaignGroupRequest build() { - com.google.ads.googleads.v0.services.GetCampaignGroupRequest result = buildPartial(); + public com.google.ads.googleads.v0.services.GetAdParameterRequest build() { + com.google.ads.googleads.v0.services.GetAdParameterRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -350,8 +350,8 @@ public com.google.ads.googleads.v0.services.GetCampaignGroupRequest build() { } @java.lang.Override - public com.google.ads.googleads.v0.services.GetCampaignGroupRequest buildPartial() { - com.google.ads.googleads.v0.services.GetCampaignGroupRequest result = new com.google.ads.googleads.v0.services.GetCampaignGroupRequest(this); + public com.google.ads.googleads.v0.services.GetAdParameterRequest buildPartial() { + com.google.ads.googleads.v0.services.GetAdParameterRequest result = new com.google.ads.googleads.v0.services.GetAdParameterRequest(this); result.resourceName_ = resourceName_; onBuilt(); return result; @@ -391,16 +391,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.ads.googleads.v0.services.GetCampaignGroupRequest) { - return mergeFrom((com.google.ads.googleads.v0.services.GetCampaignGroupRequest)other); + if (other instanceof com.google.ads.googleads.v0.services.GetAdParameterRequest) { + return mergeFrom((com.google.ads.googleads.v0.services.GetAdParameterRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.ads.googleads.v0.services.GetCampaignGroupRequest other) { - if (other == com.google.ads.googleads.v0.services.GetCampaignGroupRequest.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.ads.googleads.v0.services.GetAdParameterRequest other) { + if (other == com.google.ads.googleads.v0.services.GetAdParameterRequest.getDefaultInstance()) return this; if (!other.getResourceName().isEmpty()) { resourceName_ = other.resourceName_; onChanged(); @@ -420,11 +420,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.ads.googleads.v0.services.GetCampaignGroupRequest parsedMessage = null; + com.google.ads.googleads.v0.services.GetAdParameterRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.ads.googleads.v0.services.GetCampaignGroupRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.ads.googleads.v0.services.GetAdParameterRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -437,7 +437,7 @@ public Builder mergeFrom( private java.lang.Object resourceName_ = ""; /** *
-     * The resource name of the campaign group to fetch.
+     * The resource name of the ad parameter to fetch.
      * 
* * string resource_name = 1; @@ -456,7 +456,7 @@ public java.lang.String getResourceName() { } /** *
-     * The resource name of the campaign group to fetch.
+     * The resource name of the ad parameter to fetch.
      * 
* * string resource_name = 1; @@ -476,7 +476,7 @@ public java.lang.String getResourceName() { } /** *
-     * The resource name of the campaign group to fetch.
+     * The resource name of the ad parameter to fetch.
      * 
* * string resource_name = 1; @@ -493,7 +493,7 @@ public Builder setResourceName( } /** *
-     * The resource name of the campaign group to fetch.
+     * The resource name of the ad parameter to fetch.
      * 
* * string resource_name = 1; @@ -506,7 +506,7 @@ public Builder clearResourceName() { } /** *
-     * The resource name of the campaign group to fetch.
+     * The resource name of the ad parameter to fetch.
      * 
* * string resource_name = 1; @@ -535,41 +535,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.services.GetCampaignGroupRequest) + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.services.GetAdParameterRequest) } - // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.GetCampaignGroupRequest) - private static final com.google.ads.googleads.v0.services.GetCampaignGroupRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.GetAdParameterRequest) + private static final com.google.ads.googleads.v0.services.GetAdParameterRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.ads.googleads.v0.services.GetCampaignGroupRequest(); + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.services.GetAdParameterRequest(); } - public static com.google.ads.googleads.v0.services.GetCampaignGroupRequest getDefaultInstance() { + public static com.google.ads.googleads.v0.services.GetAdParameterRequest 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 GetCampaignGroupRequest parsePartialFrom( + public GetAdParameterRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetCampaignGroupRequest(input, extensionRegistry); + return new GetAdParameterRequest(input, extensionRegistry); } }; - 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.ads.googleads.v0.services.GetCampaignGroupRequest getDefaultInstanceForType() { + public com.google.ads.googleads.v0.services.GetAdParameterRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetCampaignGroupRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetAdParameterRequestOrBuilder.java similarity index 63% rename from google-ads/src/main/java/com/google/ads/googleads/v0/services/GetCampaignGroupRequestOrBuilder.java rename to google-ads/src/main/java/com/google/ads/googleads/v0/services/GetAdParameterRequestOrBuilder.java index e87bd610aa..25a5cfdbce 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetCampaignGroupRequestOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetAdParameterRequestOrBuilder.java @@ -1,15 +1,15 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v0/services/campaign_group_service.proto +// source: google/ads/googleads/v0/services/ad_parameter_service.proto package com.google.ads.googleads.v0.services; -public interface GetCampaignGroupRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.GetCampaignGroupRequest) +public interface GetAdParameterRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.GetAdParameterRequest) com.google.protobuf.MessageOrBuilder { /** *
-   * The resource name of the campaign group to fetch.
+   * The resource name of the ad parameter to fetch.
    * 
* * string resource_name = 1; @@ -17,7 +17,7 @@ public interface GetCampaignGroupRequestOrBuilder extends java.lang.String getResourceName(); /** *
-   * The resource name of the campaign group to fetch.
+   * The resource name of the ad parameter to fetch.
    * 
* * string resource_name = 1; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetAdScheduleViewRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetAdScheduleViewRequest.java new file mode 100644 index 0000000000..cb203de0aa --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetAdScheduleViewRequest.java @@ -0,0 +1,577 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/ad_schedule_view_service.proto + +package com.google.ads.googleads.v0.services; + +/** + *
+ * Request message for [AdScheduleViewService.GetAdScheduleView][google.ads.googleads.v0.services.AdScheduleViewService.GetAdScheduleView].
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.services.GetAdScheduleViewRequest} + */ +public final class GetAdScheduleViewRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.services.GetAdScheduleViewRequest) + GetAdScheduleViewRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetAdScheduleViewRequest.newBuilder() to construct. + private GetAdScheduleViewRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetAdScheduleViewRequest() { + resourceName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetAdScheduleViewRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + resourceName_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.services.AdScheduleViewServiceProto.internal_static_google_ads_googleads_v0_services_GetAdScheduleViewRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.services.AdScheduleViewServiceProto.internal_static_google_ads_googleads_v0_services_GetAdScheduleViewRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.services.GetAdScheduleViewRequest.class, com.google.ads.googleads.v0.services.GetAdScheduleViewRequest.Builder.class); + } + + public static final int RESOURCE_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object resourceName_; + /** + *
+   * The resource name of the ad schedule view to fetch.
+   * 
+ * + * string resource_name = 1; + */ + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } + } + /** + *
+   * The resource name of the ad schedule view to fetch.
+   * 
+ * + * string resource_name = 1; + */ + public com.google.protobuf.ByteString + getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getResourceNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getResourceNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_); + } + size += unknownFields.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.ads.googleads.v0.services.GetAdScheduleViewRequest)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.services.GetAdScheduleViewRequest other = (com.google.ads.googleads.v0.services.GetAdScheduleViewRequest) obj; + + boolean result = true; + result = result && getResourceName() + .equals(other.getResourceName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getResourceName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.services.GetAdScheduleViewRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.GetAdScheduleViewRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.services.GetAdScheduleViewRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.GetAdScheduleViewRequest 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.ads.googleads.v0.services.GetAdScheduleViewRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.GetAdScheduleViewRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.services.GetAdScheduleViewRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.GetAdScheduleViewRequest 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.ads.googleads.v0.services.GetAdScheduleViewRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.GetAdScheduleViewRequest 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.ads.googleads.v0.services.GetAdScheduleViewRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.GetAdScheduleViewRequest 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.ads.googleads.v0.services.GetAdScheduleViewRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request message for [AdScheduleViewService.GetAdScheduleView][google.ads.googleads.v0.services.AdScheduleViewService.GetAdScheduleView].
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.services.GetAdScheduleViewRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.services.GetAdScheduleViewRequest) + com.google.ads.googleads.v0.services.GetAdScheduleViewRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.services.AdScheduleViewServiceProto.internal_static_google_ads_googleads_v0_services_GetAdScheduleViewRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.services.AdScheduleViewServiceProto.internal_static_google_ads_googleads_v0_services_GetAdScheduleViewRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.services.GetAdScheduleViewRequest.class, com.google.ads.googleads.v0.services.GetAdScheduleViewRequest.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.services.GetAdScheduleViewRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + resourceName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.services.AdScheduleViewServiceProto.internal_static_google_ads_googleads_v0_services_GetAdScheduleViewRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.GetAdScheduleViewRequest getDefaultInstanceForType() { + return com.google.ads.googleads.v0.services.GetAdScheduleViewRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.GetAdScheduleViewRequest build() { + com.google.ads.googleads.v0.services.GetAdScheduleViewRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.GetAdScheduleViewRequest buildPartial() { + com.google.ads.googleads.v0.services.GetAdScheduleViewRequest result = new com.google.ads.googleads.v0.services.GetAdScheduleViewRequest(this); + result.resourceName_ = resourceName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.services.GetAdScheduleViewRequest) { + return mergeFrom((com.google.ads.googleads.v0.services.GetAdScheduleViewRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.services.GetAdScheduleViewRequest other) { + if (other == com.google.ads.googleads.v0.services.GetAdScheduleViewRequest.getDefaultInstance()) return this; + if (!other.getResourceName().isEmpty()) { + resourceName_ = other.resourceName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.services.GetAdScheduleViewRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.services.GetAdScheduleViewRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object resourceName_ = ""; + /** + *
+     * The resource name of the ad schedule view to fetch.
+     * 
+ * + * string resource_name = 1; + */ + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The resource name of the ad schedule view to fetch.
+     * 
+ * + * string resource_name = 1; + */ + public com.google.protobuf.ByteString + getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The resource name of the ad schedule view to fetch.
+     * 
+ * + * string resource_name = 1; + */ + public Builder setResourceName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceName_ = value; + onChanged(); + return this; + } + /** + *
+     * The resource name of the ad schedule view to fetch.
+     * 
+ * + * string resource_name = 1; + */ + public Builder clearResourceName() { + + resourceName_ = getDefaultInstance().getResourceName(); + onChanged(); + return this; + } + /** + *
+     * The resource name of the ad schedule view to fetch.
+     * 
+ * + * string resource_name = 1; + */ + public Builder setResourceNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceName_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.services.GetAdScheduleViewRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.GetAdScheduleViewRequest) + private static final com.google.ads.googleads.v0.services.GetAdScheduleViewRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.services.GetAdScheduleViewRequest(); + } + + public static com.google.ads.googleads.v0.services.GetAdScheduleViewRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAdScheduleViewRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetAdScheduleViewRequest(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.services.GetAdScheduleViewRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetAdScheduleViewRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetAdScheduleViewRequestOrBuilder.java new file mode 100644 index 0000000000..105bf1b718 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetAdScheduleViewRequestOrBuilder.java @@ -0,0 +1,27 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/ad_schedule_view_service.proto + +package com.google.ads.googleads.v0.services; + +public interface GetAdScheduleViewRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.GetAdScheduleViewRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The resource name of the ad schedule view to fetch.
+   * 
+ * + * string resource_name = 1; + */ + java.lang.String getResourceName(); + /** + *
+   * The resource name of the ad schedule view to fetch.
+   * 
+ * + * string resource_name = 1; + */ + com.google.protobuf.ByteString + getResourceNameBytes(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetCustomerClientRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetCustomerClientRequest.java index 72e6b24509..b9f01c21a1 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetCustomerClientRequest.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetCustomerClientRequest.java @@ -89,7 +89,7 @@ private GetCustomerClientRequest( private volatile java.lang.Object resourceName_; /** *
-   * The resource name of the customer client to fetch.
+   * The resource name of the client to fetch.
    * 
* * string resource_name = 1; @@ -108,7 +108,7 @@ public java.lang.String getResourceName() { } /** *
-   * The resource name of the customer client to fetch.
+   * The resource name of the client to fetch.
    * 
* * string resource_name = 1; @@ -437,7 +437,7 @@ public Builder mergeFrom( private java.lang.Object resourceName_ = ""; /** *
-     * The resource name of the customer client to fetch.
+     * The resource name of the client to fetch.
      * 
* * string resource_name = 1; @@ -456,7 +456,7 @@ public java.lang.String getResourceName() { } /** *
-     * The resource name of the customer client to fetch.
+     * The resource name of the client to fetch.
      * 
* * string resource_name = 1; @@ -476,7 +476,7 @@ public java.lang.String getResourceName() { } /** *
-     * The resource name of the customer client to fetch.
+     * The resource name of the client to fetch.
      * 
* * string resource_name = 1; @@ -493,7 +493,7 @@ public Builder setResourceName( } /** *
-     * The resource name of the customer client to fetch.
+     * The resource name of the client to fetch.
      * 
* * string resource_name = 1; @@ -506,7 +506,7 @@ public Builder clearResourceName() { } /** *
-     * The resource name of the customer client to fetch.
+     * The resource name of the client to fetch.
      * 
* * string resource_name = 1; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetCustomerClientRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetCustomerClientRequestOrBuilder.java index d86c1f298f..72ba8c1bda 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetCustomerClientRequestOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetCustomerClientRequestOrBuilder.java @@ -9,7 +9,7 @@ public interface GetCustomerClientRequestOrBuilder extends /** *
-   * The resource name of the customer client to fetch.
+   * The resource name of the client to fetch.
    * 
* * string resource_name = 1; @@ -17,7 +17,7 @@ public interface GetCustomerClientRequestOrBuilder extends java.lang.String getResourceName(); /** *
-   * The resource name of the customer client to fetch.
+   * The resource name of the client to fetch.
    * 
* * string resource_name = 1; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetMobileAppCategoryConstantRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetMobileAppCategoryConstantRequest.java new file mode 100644 index 0000000000..077fe91bd6 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetMobileAppCategoryConstantRequest.java @@ -0,0 +1,579 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/mobile_app_category_constant_service.proto + +package com.google.ads.googleads.v0.services; + +/** + *
+ * Request message for
+ * [MobileAppCategoryConstantService.GetMobileAppCategoryConstant][google.ads.googleads.v0.services.MobileAppCategoryConstantService.GetMobileAppCategoryConstant].
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest} + */ +public final class GetMobileAppCategoryConstantRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest) + GetMobileAppCategoryConstantRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetMobileAppCategoryConstantRequest.newBuilder() to construct. + private GetMobileAppCategoryConstantRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetMobileAppCategoryConstantRequest() { + resourceName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetMobileAppCategoryConstantRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + resourceName_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.services.MobileAppCategoryConstantServiceProto.internal_static_google_ads_googleads_v0_services_GetMobileAppCategoryConstantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.services.MobileAppCategoryConstantServiceProto.internal_static_google_ads_googleads_v0_services_GetMobileAppCategoryConstantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest.class, com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest.Builder.class); + } + + public static final int RESOURCE_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object resourceName_; + /** + *
+   * Resource name of the mobile app category constant to fetch.
+   * 
+ * + * string resource_name = 1; + */ + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } + } + /** + *
+   * Resource name of the mobile app category constant to fetch.
+   * 
+ * + * string resource_name = 1; + */ + public com.google.protobuf.ByteString + getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getResourceNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getResourceNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_); + } + size += unknownFields.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.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest other = (com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest) obj; + + boolean result = true; + result = result && getResourceName() + .equals(other.getResourceName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getResourceName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest 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.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest 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.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest 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.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest 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.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request message for
+   * [MobileAppCategoryConstantService.GetMobileAppCategoryConstant][google.ads.googleads.v0.services.MobileAppCategoryConstantService.GetMobileAppCategoryConstant].
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest) + com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.services.MobileAppCategoryConstantServiceProto.internal_static_google_ads_googleads_v0_services_GetMobileAppCategoryConstantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.services.MobileAppCategoryConstantServiceProto.internal_static_google_ads_googleads_v0_services_GetMobileAppCategoryConstantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest.class, com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + resourceName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.services.MobileAppCategoryConstantServiceProto.internal_static_google_ads_googleads_v0_services_GetMobileAppCategoryConstantRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest getDefaultInstanceForType() { + return com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest build() { + com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest buildPartial() { + com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest result = new com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest(this); + result.resourceName_ = resourceName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest) { + return mergeFrom((com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest other) { + if (other == com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest.getDefaultInstance()) return this; + if (!other.getResourceName().isEmpty()) { + resourceName_ = other.resourceName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object resourceName_ = ""; + /** + *
+     * Resource name of the mobile app category constant to fetch.
+     * 
+ * + * string resource_name = 1; + */ + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Resource name of the mobile app category constant to fetch.
+     * 
+ * + * string resource_name = 1; + */ + public com.google.protobuf.ByteString + getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Resource name of the mobile app category constant to fetch.
+     * 
+ * + * string resource_name = 1; + */ + public Builder setResourceName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceName_ = value; + onChanged(); + return this; + } + /** + *
+     * Resource name of the mobile app category constant to fetch.
+     * 
+ * + * string resource_name = 1; + */ + public Builder clearResourceName() { + + resourceName_ = getDefaultInstance().getResourceName(); + onChanged(); + return this; + } + /** + *
+     * Resource name of the mobile app category constant to fetch.
+     * 
+ * + * string resource_name = 1; + */ + public Builder setResourceNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceName_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest) + private static final com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest(); + } + + public static com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMobileAppCategoryConstantRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetMobileAppCategoryConstantRequest(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetMobileAppCategoryConstantRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetMobileAppCategoryConstantRequestOrBuilder.java new file mode 100644 index 0000000000..6c8586a7e8 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetMobileAppCategoryConstantRequestOrBuilder.java @@ -0,0 +1,27 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/mobile_app_category_constant_service.proto + +package com.google.ads.googleads.v0.services; + +public interface GetMobileAppCategoryConstantRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Resource name of the mobile app category constant to fetch.
+   * 
+ * + * string resource_name = 1; + */ + java.lang.String getResourceName(); + /** + *
+   * Resource name of the mobile app category constant to fetch.
+   * 
+ * + * string resource_name = 1; + */ + com.google.protobuf.ByteString + getResourceNameBytes(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetMobileDeviceConstantRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetMobileDeviceConstantRequest.java new file mode 100644 index 0000000000..d15168407e --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetMobileDeviceConstantRequest.java @@ -0,0 +1,577 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/mobile_device_constant_service.proto + +package com.google.ads.googleads.v0.services; + +/** + *
+ * Request message for [MobileDeviceConstantService.GetMobileDeviceConstant][google.ads.googleads.v0.services.MobileDeviceConstantService.GetMobileDeviceConstant].
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.services.GetMobileDeviceConstantRequest} + */ +public final class GetMobileDeviceConstantRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.services.GetMobileDeviceConstantRequest) + GetMobileDeviceConstantRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetMobileDeviceConstantRequest.newBuilder() to construct. + private GetMobileDeviceConstantRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetMobileDeviceConstantRequest() { + resourceName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetMobileDeviceConstantRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + resourceName_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.services.MobileDeviceConstantServiceProto.internal_static_google_ads_googleads_v0_services_GetMobileDeviceConstantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.services.MobileDeviceConstantServiceProto.internal_static_google_ads_googleads_v0_services_GetMobileDeviceConstantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest.class, com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest.Builder.class); + } + + public static final int RESOURCE_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object resourceName_; + /** + *
+   * Resource name of the mobile device to fetch.
+   * 
+ * + * string resource_name = 1; + */ + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } + } + /** + *
+   * Resource name of the mobile device to fetch.
+   * 
+ * + * string resource_name = 1; + */ + public com.google.protobuf.ByteString + getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getResourceNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getResourceNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_); + } + size += unknownFields.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.ads.googleads.v0.services.GetMobileDeviceConstantRequest)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest other = (com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest) obj; + + boolean result = true; + result = result && getResourceName() + .equals(other.getResourceName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getResourceName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest 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.ads.googleads.v0.services.GetMobileDeviceConstantRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest 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.ads.googleads.v0.services.GetMobileDeviceConstantRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest 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.ads.googleads.v0.services.GetMobileDeviceConstantRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest 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.ads.googleads.v0.services.GetMobileDeviceConstantRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request message for [MobileDeviceConstantService.GetMobileDeviceConstant][google.ads.googleads.v0.services.MobileDeviceConstantService.GetMobileDeviceConstant].
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.services.GetMobileDeviceConstantRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.services.GetMobileDeviceConstantRequest) + com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.services.MobileDeviceConstantServiceProto.internal_static_google_ads_googleads_v0_services_GetMobileDeviceConstantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.services.MobileDeviceConstantServiceProto.internal_static_google_ads_googleads_v0_services_GetMobileDeviceConstantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest.class, com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + resourceName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.services.MobileDeviceConstantServiceProto.internal_static_google_ads_googleads_v0_services_GetMobileDeviceConstantRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest getDefaultInstanceForType() { + return com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest build() { + com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest buildPartial() { + com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest result = new com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest(this); + result.resourceName_ = resourceName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest) { + return mergeFrom((com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest other) { + if (other == com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest.getDefaultInstance()) return this; + if (!other.getResourceName().isEmpty()) { + resourceName_ = other.resourceName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object resourceName_ = ""; + /** + *
+     * Resource name of the mobile device to fetch.
+     * 
+ * + * string resource_name = 1; + */ + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Resource name of the mobile device to fetch.
+     * 
+ * + * string resource_name = 1; + */ + public com.google.protobuf.ByteString + getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Resource name of the mobile device to fetch.
+     * 
+ * + * string resource_name = 1; + */ + public Builder setResourceName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceName_ = value; + onChanged(); + return this; + } + /** + *
+     * Resource name of the mobile device to fetch.
+     * 
+ * + * string resource_name = 1; + */ + public Builder clearResourceName() { + + resourceName_ = getDefaultInstance().getResourceName(); + onChanged(); + return this; + } + /** + *
+     * Resource name of the mobile device to fetch.
+     * 
+ * + * string resource_name = 1; + */ + public Builder setResourceNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceName_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.services.GetMobileDeviceConstantRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.GetMobileDeviceConstantRequest) + private static final com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest(); + } + + public static com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMobileDeviceConstantRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetMobileDeviceConstantRequest(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.services.GetMobileDeviceConstantRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetMobileDeviceConstantRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetMobileDeviceConstantRequestOrBuilder.java new file mode 100644 index 0000000000..25878fd4eb --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetMobileDeviceConstantRequestOrBuilder.java @@ -0,0 +1,27 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/mobile_device_constant_service.proto + +package com.google.ads.googleads.v0.services; + +public interface GetMobileDeviceConstantRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.GetMobileDeviceConstantRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Resource name of the mobile device to fetch.
+   * 
+ * + * string resource_name = 1; + */ + java.lang.String getResourceName(); + /** + *
+   * Resource name of the mobile device to fetch.
+   * 
+ * + * string resource_name = 1; + */ + com.google.protobuf.ByteString + getResourceNameBytes(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetOperatingSystemVersionConstantRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetOperatingSystemVersionConstantRequest.java new file mode 100644 index 0000000000..fdd9f0b546 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetOperatingSystemVersionConstantRequest.java @@ -0,0 +1,579 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/operating_system_version_constant_service.proto + +package com.google.ads.googleads.v0.services; + +/** + *
+ * Request message for
+ * [OperatingSystemVersionConstantService.GetOperatingSystemVersionConstant][google.ads.googleads.v0.services.OperatingSystemVersionConstantService.GetOperatingSystemVersionConstant].
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest} + */ +public final class GetOperatingSystemVersionConstantRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest) + GetOperatingSystemVersionConstantRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetOperatingSystemVersionConstantRequest.newBuilder() to construct. + private GetOperatingSystemVersionConstantRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetOperatingSystemVersionConstantRequest() { + resourceName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetOperatingSystemVersionConstantRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + resourceName_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.services.OperatingSystemVersionConstantServiceProto.internal_static_google_ads_googleads_v0_services_GetOperatingSystemVersionConstantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.services.OperatingSystemVersionConstantServiceProto.internal_static_google_ads_googleads_v0_services_GetOperatingSystemVersionConstantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest.class, com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest.Builder.class); + } + + public static final int RESOURCE_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object resourceName_; + /** + *
+   * Resource name of the OS version to fetch.
+   * 
+ * + * string resource_name = 1; + */ + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } + } + /** + *
+   * Resource name of the OS version to fetch.
+   * 
+ * + * string resource_name = 1; + */ + public com.google.protobuf.ByteString + getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getResourceNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getResourceNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_); + } + size += unknownFields.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.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest other = (com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest) obj; + + boolean result = true; + result = result && getResourceName() + .equals(other.getResourceName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getResourceName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest 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.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest 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.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest 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.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest 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.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request message for
+   * [OperatingSystemVersionConstantService.GetOperatingSystemVersionConstant][google.ads.googleads.v0.services.OperatingSystemVersionConstantService.GetOperatingSystemVersionConstant].
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest) + com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.services.OperatingSystemVersionConstantServiceProto.internal_static_google_ads_googleads_v0_services_GetOperatingSystemVersionConstantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.services.OperatingSystemVersionConstantServiceProto.internal_static_google_ads_googleads_v0_services_GetOperatingSystemVersionConstantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest.class, com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + resourceName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.services.OperatingSystemVersionConstantServiceProto.internal_static_google_ads_googleads_v0_services_GetOperatingSystemVersionConstantRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest getDefaultInstanceForType() { + return com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest build() { + com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest buildPartial() { + com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest result = new com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest(this); + result.resourceName_ = resourceName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest) { + return mergeFrom((com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest other) { + if (other == com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest.getDefaultInstance()) return this; + if (!other.getResourceName().isEmpty()) { + resourceName_ = other.resourceName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object resourceName_ = ""; + /** + *
+     * Resource name of the OS version to fetch.
+     * 
+ * + * string resource_name = 1; + */ + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Resource name of the OS version to fetch.
+     * 
+ * + * string resource_name = 1; + */ + public com.google.protobuf.ByteString + getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Resource name of the OS version to fetch.
+     * 
+ * + * string resource_name = 1; + */ + public Builder setResourceName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceName_ = value; + onChanged(); + return this; + } + /** + *
+     * Resource name of the OS version to fetch.
+     * 
+ * + * string resource_name = 1; + */ + public Builder clearResourceName() { + + resourceName_ = getDefaultInstance().getResourceName(); + onChanged(); + return this; + } + /** + *
+     * Resource name of the OS version to fetch.
+     * 
+ * + * string resource_name = 1; + */ + public Builder setResourceNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceName_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest) + private static final com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest(); + } + + public static com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOperatingSystemVersionConstantRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetOperatingSystemVersionConstantRequest(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetOperatingSystemVersionConstantRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetOperatingSystemVersionConstantRequestOrBuilder.java new file mode 100644 index 0000000000..4a382f4a63 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetOperatingSystemVersionConstantRequestOrBuilder.java @@ -0,0 +1,27 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/operating_system_version_constant_service.proto + +package com.google.ads.googleads.v0.services; + +public interface GetOperatingSystemVersionConstantRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Resource name of the OS version to fetch.
+   * 
+ * + * string resource_name = 1; + */ + java.lang.String getResourceName(); + /** + *
+   * Resource name of the OS version to fetch.
+   * 
+ * + * string resource_name = 1; + */ + com.google.protobuf.ByteString + getResourceNameBytes(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetRemarketingActionRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetRemarketingActionRequest.java new file mode 100644 index 0000000000..a3c31125d3 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetRemarketingActionRequest.java @@ -0,0 +1,577 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/remarketing_action_service.proto + +package com.google.ads.googleads.v0.services; + +/** + *
+ * Request message for [RemarketingActionService.GetRemarketingAction][google.ads.googleads.v0.services.RemarketingActionService.GetRemarketingAction].
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.services.GetRemarketingActionRequest} + */ +public final class GetRemarketingActionRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.services.GetRemarketingActionRequest) + GetRemarketingActionRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetRemarketingActionRequest.newBuilder() to construct. + private GetRemarketingActionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetRemarketingActionRequest() { + resourceName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetRemarketingActionRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + resourceName_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.services.RemarketingActionServiceProto.internal_static_google_ads_googleads_v0_services_GetRemarketingActionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.services.RemarketingActionServiceProto.internal_static_google_ads_googleads_v0_services_GetRemarketingActionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.services.GetRemarketingActionRequest.class, com.google.ads.googleads.v0.services.GetRemarketingActionRequest.Builder.class); + } + + public static final int RESOURCE_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object resourceName_; + /** + *
+   * The resource name of the remarketing action to fetch.
+   * 
+ * + * string resource_name = 1; + */ + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } + } + /** + *
+   * The resource name of the remarketing action to fetch.
+   * 
+ * + * string resource_name = 1; + */ + public com.google.protobuf.ByteString + getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getResourceNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getResourceNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_); + } + size += unknownFields.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.ads.googleads.v0.services.GetRemarketingActionRequest)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.services.GetRemarketingActionRequest other = (com.google.ads.googleads.v0.services.GetRemarketingActionRequest) obj; + + boolean result = true; + result = result && getResourceName() + .equals(other.getResourceName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getResourceName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.services.GetRemarketingActionRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.GetRemarketingActionRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.services.GetRemarketingActionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.GetRemarketingActionRequest 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.ads.googleads.v0.services.GetRemarketingActionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.GetRemarketingActionRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.services.GetRemarketingActionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.GetRemarketingActionRequest 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.ads.googleads.v0.services.GetRemarketingActionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.GetRemarketingActionRequest 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.ads.googleads.v0.services.GetRemarketingActionRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.GetRemarketingActionRequest 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.ads.googleads.v0.services.GetRemarketingActionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request message for [RemarketingActionService.GetRemarketingAction][google.ads.googleads.v0.services.RemarketingActionService.GetRemarketingAction].
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.services.GetRemarketingActionRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.services.GetRemarketingActionRequest) + com.google.ads.googleads.v0.services.GetRemarketingActionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.services.RemarketingActionServiceProto.internal_static_google_ads_googleads_v0_services_GetRemarketingActionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.services.RemarketingActionServiceProto.internal_static_google_ads_googleads_v0_services_GetRemarketingActionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.services.GetRemarketingActionRequest.class, com.google.ads.googleads.v0.services.GetRemarketingActionRequest.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.services.GetRemarketingActionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + resourceName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.services.RemarketingActionServiceProto.internal_static_google_ads_googleads_v0_services_GetRemarketingActionRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.GetRemarketingActionRequest getDefaultInstanceForType() { + return com.google.ads.googleads.v0.services.GetRemarketingActionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.GetRemarketingActionRequest build() { + com.google.ads.googleads.v0.services.GetRemarketingActionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.GetRemarketingActionRequest buildPartial() { + com.google.ads.googleads.v0.services.GetRemarketingActionRequest result = new com.google.ads.googleads.v0.services.GetRemarketingActionRequest(this); + result.resourceName_ = resourceName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.services.GetRemarketingActionRequest) { + return mergeFrom((com.google.ads.googleads.v0.services.GetRemarketingActionRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.services.GetRemarketingActionRequest other) { + if (other == com.google.ads.googleads.v0.services.GetRemarketingActionRequest.getDefaultInstance()) return this; + if (!other.getResourceName().isEmpty()) { + resourceName_ = other.resourceName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.services.GetRemarketingActionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.services.GetRemarketingActionRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object resourceName_ = ""; + /** + *
+     * The resource name of the remarketing action to fetch.
+     * 
+ * + * string resource_name = 1; + */ + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The resource name of the remarketing action to fetch.
+     * 
+ * + * string resource_name = 1; + */ + public com.google.protobuf.ByteString + getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The resource name of the remarketing action to fetch.
+     * 
+ * + * string resource_name = 1; + */ + public Builder setResourceName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceName_ = value; + onChanged(); + return this; + } + /** + *
+     * The resource name of the remarketing action to fetch.
+     * 
+ * + * string resource_name = 1; + */ + public Builder clearResourceName() { + + resourceName_ = getDefaultInstance().getResourceName(); + onChanged(); + return this; + } + /** + *
+     * The resource name of the remarketing action to fetch.
+     * 
+ * + * string resource_name = 1; + */ + public Builder setResourceNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceName_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.services.GetRemarketingActionRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.GetRemarketingActionRequest) + private static final com.google.ads.googleads.v0.services.GetRemarketingActionRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.services.GetRemarketingActionRequest(); + } + + public static com.google.ads.googleads.v0.services.GetRemarketingActionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRemarketingActionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetRemarketingActionRequest(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.services.GetRemarketingActionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetRemarketingActionRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetRemarketingActionRequestOrBuilder.java new file mode 100644 index 0000000000..91ebd3f88a --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GetRemarketingActionRequestOrBuilder.java @@ -0,0 +1,27 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/remarketing_action_service.proto + +package com.google.ads.googleads.v0.services; + +public interface GetRemarketingActionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.GetRemarketingActionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The resource name of the remarketing action to fetch.
+   * 
+ * + * string resource_name = 1; + */ + java.lang.String getResourceName(); + /** + *
+   * The resource name of the remarketing action to fetch.
+   * 
+ * + * string resource_name = 1; + */ + com.google.protobuf.ByteString + getResourceNameBytes(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GoogleAdsFieldServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GoogleAdsFieldServiceClient.java index 87ed42046b..1840eb408d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GoogleAdsFieldServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GoogleAdsFieldServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -215,7 +215,7 @@ public final GoogleAdsField getGoogleAdsField(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final GoogleAdsField getGoogleAdsField(GetGoogleAdsFieldRequest request) { + public final GoogleAdsField getGoogleAdsField(GetGoogleAdsFieldRequest request) { return getGoogleAdsFieldCallable().call(request); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GoogleAdsFieldServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GoogleAdsFieldServiceProto.java index 7989986a87..6202869115 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GoogleAdsFieldServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GoogleAdsFieldServiceProto.java @@ -60,12 +60,13 @@ public static void registerAllExtensions( "AdsFieldsRequest\032?.google.ads.googleads." + "v0.services.SearchGoogleAdsFieldsRespons" + "e\"%\202\323\344\223\002\037\"\032/v0/googleAdsFields:search:\001*" + - "B\332\001\n$com.google.ads.googleads.v0.service" + + "B\201\002\n$com.google.ads.googleads.v0.service" + "sB\032GoogleAdsFieldServiceProtoP\001ZHgoogle." + "golang.org/genproto/googleapis/ads/googl" + "eads/v0/services;services\242\002\003GAA\252\002 Google" + ".Ads.GoogleAds.V0.Services\312\002 Google\\Ads\\" + - "GoogleAds\\V0\\Servicesb\006proto3" + "GoogleAds\\V0\\Services\352\002$Google::Ads::Goo" + + "gleAds::V0::Servicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GoogleAdsFieldServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GoogleAdsFieldServiceSettings.java index 07e9cbec0b..ffdd6fc2ae 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GoogleAdsFieldServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GoogleAdsFieldServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GoogleAdsRow.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GoogleAdsRow.java index f94393512c..df311c9781 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GoogleAdsRow.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GoogleAdsRow.java @@ -20,15 +20,6 @@ private GoogleAdsRow(com.google.protobuf.GeneratedMessageV3.Builder builder) super(builder); } private GoogleAdsRow() { - adNetworkType_ = 0; - dayOfWeek_ = 0; - device_ = 0; - hotelCheckInDayOfWeek_ = 0; - hotelDateSelectionType_ = 0; - monthOfYear_ = 0; - placeholderType_ = 0; - searchTermMatchType_ = 0; - slot_ = 0; } @java.lang.Override @@ -46,7 +37,6 @@ private GoogleAdsRow( } int mutable_bitField0_ = 0; int mutable_bitField1_ = 0; - int mutable_bitField2_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -109,108 +99,6 @@ private GoogleAdsRow( break; } - case 40: { - int rawValue = input.readEnum(); - - adNetworkType_ = rawValue; - break; - } - case 50: { - com.google.protobuf.StringValue.Builder subBuilder = null; - if (date_ != null) { - subBuilder = date_.toBuilder(); - } - date_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(date_); - date_ = subBuilder.buildPartial(); - } - - break; - } - case 56: { - int rawValue = input.readEnum(); - - dayOfWeek_ = rawValue; - break; - } - case 64: { - int rawValue = input.readEnum(); - - device_ = rawValue; - break; - } - case 74: { - com.google.protobuf.Int32Value.Builder subBuilder = null; - if (hour_ != null) { - subBuilder = hour_.toBuilder(); - } - hour_ = input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(hour_); - hour_ = subBuilder.buildPartial(); - } - - break; - } - case 82: { - com.google.protobuf.StringValue.Builder subBuilder = null; - if (month_ != null) { - subBuilder = month_.toBuilder(); - } - month_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(month_); - month_ = subBuilder.buildPartial(); - } - - break; - } - case 98: { - com.google.protobuf.StringValue.Builder subBuilder = null; - if (quarter_ != null) { - subBuilder = quarter_.toBuilder(); - } - quarter_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(quarter_); - quarter_ = subBuilder.buildPartial(); - } - - break; - } - case 104: { - int rawValue = input.readEnum(); - - slot_ = rawValue; - break; - } - case 114: { - com.google.protobuf.StringValue.Builder subBuilder = null; - if (week_ != null) { - subBuilder = week_.toBuilder(); - } - week_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(week_); - week_ = subBuilder.buildPartial(); - } - - break; - } - case 122: { - com.google.protobuf.Int32Value.Builder subBuilder = null; - if (year_ != null) { - subBuilder = year_.toBuilder(); - } - year_ = input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(year_); - year_ = subBuilder.buildPartial(); - } - - break; - } case 130: { com.google.ads.googleads.v0.resources.AdGroupAd.Builder subBuilder = null; if (adGroupAd_ != null) { @@ -328,19 +216,6 @@ private GoogleAdsRow( break; } - case 202: { - com.google.ads.googleads.v0.resources.CampaignGroup.Builder subBuilder = null; - if (campaignGroup_ != null) { - subBuilder = campaignGroup_.toBuilder(); - } - campaignGroup_ = input.readMessage(com.google.ads.googleads.v0.resources.CampaignGroup.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(campaignGroup_); - campaignGroup_ = subBuilder.buildPartial(); - } - - break; - } case 210: { com.google.ads.googleads.v0.resources.CampaignBidModifier.Builder subBuilder = null; if (campaignBidModifier_ != null) { @@ -367,12 +242,6 @@ private GoogleAdsRow( break; } - case 224: { - int rawValue = input.readEnum(); - - monthOfYear_ = rawValue; - break; - } case 234: { com.google.ads.googleads.v0.resources.SharedCriterion.Builder subBuilder = null; if (sharedCriterion_ != null) { @@ -698,12 +567,6 @@ private GoogleAdsRow( break; } - case 448: { - int rawValue = input.readEnum(); - - searchTermMatchType_ = rawValue; - break; - } case 458: { com.google.ads.googleads.v0.resources.AdGroupAudienceView.Builder subBuilder = null; if (adGroupAudienceView_ != null) { @@ -743,6 +606,19 @@ private GoogleAdsRow( break; } + case 482: { + com.google.ads.googleads.v0.resources.RemarketingAction.Builder subBuilder = null; + if (remarketingAction_ != null) { + subBuilder = remarketingAction_.toBuilder(); + } + remarketingAction_ = input.readMessage(com.google.ads.googleads.v0.resources.RemarketingAction.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(remarketingAction_); + remarketingAction_ = subBuilder.buildPartial(); + } + + break; + } case 490: { com.google.ads.googleads.v0.resources.CustomerManagerLink.Builder subBuilder = null; if (customerManagerLink_ != null) { @@ -795,12 +671,6 @@ private GoogleAdsRow( break; } - case 520: { - int rawValue = input.readEnum(); - - placeholderType_ = rawValue; - break; - } case 530: { com.google.ads.googleads.v0.resources.CarrierConstant.Builder subBuilder = null; if (carrierConstant_ != null) { @@ -879,131 +749,93 @@ private GoogleAdsRow( break; } - case 578: { - com.google.protobuf.Int64Value.Builder subBuilder = null; - if (hotelCenterId_ != null) { - subBuilder = hotelCenterId_.toBuilder(); - } - hotelCenterId_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(hotelCenterId_); - hotelCenterId_ = subBuilder.buildPartial(); - } - - break; - } - case 586: { - com.google.protobuf.StringValue.Builder subBuilder = null; - if (hotelCheckInDate_ != null) { - subBuilder = hotelCheckInDate_.toBuilder(); - } - hotelCheckInDate_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(hotelCheckInDate_); - hotelCheckInDate_ = subBuilder.buildPartial(); - } - - break; - } - case 592: { - int rawValue = input.readEnum(); - - hotelCheckInDayOfWeek_ = rawValue; - break; - } - case 602: { - com.google.protobuf.StringValue.Builder subBuilder = null; - if (hotelCity_ != null) { - subBuilder = hotelCity_.toBuilder(); + case 690: { + com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant.Builder subBuilder = null; + if (operatingSystemVersionConstant_ != null) { + subBuilder = operatingSystemVersionConstant_.toBuilder(); } - hotelCity_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + operatingSystemVersionConstant_ = input.readMessage(com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom(hotelCity_); - hotelCity_ = subBuilder.buildPartial(); + subBuilder.mergeFrom(operatingSystemVersionConstant_); + operatingSystemVersionConstant_ = subBuilder.buildPartial(); } break; } - case 610: { - com.google.protobuf.Int32Value.Builder subBuilder = null; - if (hotelClass_ != null) { - subBuilder = hotelClass_.toBuilder(); + case 698: { + com.google.ads.googleads.v0.resources.MobileAppCategoryConstant.Builder subBuilder = null; + if (mobileAppCategoryConstant_ != null) { + subBuilder = mobileAppCategoryConstant_.toBuilder(); } - hotelClass_ = input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry); + mobileAppCategoryConstant_ = input.readMessage(com.google.ads.googleads.v0.resources.MobileAppCategoryConstant.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom(hotelClass_); - hotelClass_ = subBuilder.buildPartial(); + subBuilder.mergeFrom(mobileAppCategoryConstant_); + mobileAppCategoryConstant_ = subBuilder.buildPartial(); } break; } - case 618: { - com.google.protobuf.StringValue.Builder subBuilder = null; - if (hotelCountry_ != null) { - subBuilder = hotelCountry_.toBuilder(); + case 714: { + com.google.ads.googleads.v0.resources.AdScheduleView.Builder subBuilder = null; + if (adScheduleView_ != null) { + subBuilder = adScheduleView_.toBuilder(); } - hotelCountry_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + adScheduleView_ = input.readMessage(com.google.ads.googleads.v0.resources.AdScheduleView.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom(hotelCountry_); - hotelCountry_ = subBuilder.buildPartial(); + subBuilder.mergeFrom(adScheduleView_); + adScheduleView_ = subBuilder.buildPartial(); } break; } - case 624: { - int rawValue = input.readEnum(); - - hotelDateSelectionType_ = rawValue; - break; - } - case 634: { - com.google.protobuf.Int32Value.Builder subBuilder = null; - if (hotelLengthOfStay_ != null) { - subBuilder = hotelLengthOfStay_.toBuilder(); + case 722: { + com.google.ads.googleads.v0.resources.MediaFile.Builder subBuilder = null; + if (mediaFile_ != null) { + subBuilder = mediaFile_.toBuilder(); } - hotelLengthOfStay_ = input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry); + mediaFile_ = input.readMessage(com.google.ads.googleads.v0.resources.MediaFile.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom(hotelLengthOfStay_); - hotelLengthOfStay_ = subBuilder.buildPartial(); + subBuilder.mergeFrom(mediaFile_); + mediaFile_ = subBuilder.buildPartial(); } break; } - case 650: { - com.google.protobuf.StringValue.Builder subBuilder = null; - if (hotelState_ != null) { - subBuilder = hotelState_.toBuilder(); + case 786: { + com.google.ads.googleads.v0.resources.MobileDeviceConstant.Builder subBuilder = null; + if (mobileDeviceConstant_ != null) { + subBuilder = mobileDeviceConstant_.toBuilder(); } - hotelState_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + mobileDeviceConstant_ = input.readMessage(com.google.ads.googleads.v0.resources.MobileDeviceConstant.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom(hotelState_); - hotelState_ = subBuilder.buildPartial(); + subBuilder.mergeFrom(mobileDeviceConstant_); + mobileDeviceConstant_ = subBuilder.buildPartial(); } break; } - case 658: { - com.google.protobuf.StringValue.Builder subBuilder = null; - if (partnerHotelId_ != null) { - subBuilder = partnerHotelId_.toBuilder(); + case 818: { + com.google.ads.googleads.v0.common.Segments.Builder subBuilder = null; + if (segments_ != null) { + subBuilder = segments_.toBuilder(); } - partnerHotelId_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + segments_ = input.readMessage(com.google.ads.googleads.v0.common.Segments.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom(partnerHotelId_); - partnerHotelId_ = subBuilder.buildPartial(); + subBuilder.mergeFrom(segments_); + segments_ = subBuilder.buildPartial(); } break; } - case 666: { - com.google.protobuf.Int64Value.Builder subBuilder = null; - if (hotelBookingWindowDays_ != null) { - subBuilder = hotelBookingWindowDays_.toBuilder(); + case 826: { + com.google.ads.googleads.v0.resources.ConversionAction.Builder subBuilder = null; + if (conversionAction_ != null) { + subBuilder = conversionAction_.toBuilder(); } - hotelBookingWindowDays_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); + conversionAction_ = input.readMessage(com.google.ads.googleads.v0.resources.ConversionAction.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom(hotelBookingWindowDays_); - hotelBookingWindowDays_ = subBuilder.buildPartial(); + subBuilder.mergeFrom(conversionAction_); + conversionAction_ = subBuilder.buildPartial(); } break; @@ -1337,6 +1169,39 @@ public com.google.ads.googleads.v0.resources.AgeRangeViewOrBuilder getAgeRangeVi return getAgeRangeView(); } + public static final int AD_SCHEDULE_VIEW_FIELD_NUMBER = 89; + private com.google.ads.googleads.v0.resources.AdScheduleView adScheduleView_; + /** + *
+   * The ad schedule view referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.AdScheduleView ad_schedule_view = 89; + */ + public boolean hasAdScheduleView() { + return adScheduleView_ != null; + } + /** + *
+   * The ad schedule view referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.AdScheduleView ad_schedule_view = 89; + */ + public com.google.ads.googleads.v0.resources.AdScheduleView getAdScheduleView() { + return adScheduleView_ == null ? com.google.ads.googleads.v0.resources.AdScheduleView.getDefaultInstance() : adScheduleView_; + } + /** + *
+   * The ad schedule view referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.AdScheduleView ad_schedule_view = 89; + */ + public com.google.ads.googleads.v0.resources.AdScheduleViewOrBuilder getAdScheduleViewOrBuilder() { + return getAdScheduleView(); + } + public static final int BIDDING_STRATEGY_FIELD_NUMBER = 18; private com.google.ads.googleads.v0.resources.BiddingStrategy biddingStrategy_; /** @@ -1601,39 +1466,6 @@ public com.google.ads.googleads.v0.resources.CampaignFeedOrBuilder getCampaignFe return getCampaignFeed(); } - public static final int CAMPAIGN_GROUP_FIELD_NUMBER = 25; - private com.google.ads.googleads.v0.resources.CampaignGroup campaignGroup_; - /** - *
-   * Campaign Group referenced in AWQL query.
-   * 
- * - * .google.ads.googleads.v0.resources.CampaignGroup campaign_group = 25; - */ - public boolean hasCampaignGroup() { - return campaignGroup_ != null; - } - /** - *
-   * Campaign Group referenced in AWQL query.
-   * 
- * - * .google.ads.googleads.v0.resources.CampaignGroup campaign_group = 25; - */ - public com.google.ads.googleads.v0.resources.CampaignGroup getCampaignGroup() { - return campaignGroup_ == null ? com.google.ads.googleads.v0.resources.CampaignGroup.getDefaultInstance() : campaignGroup_; - } - /** - *
-   * Campaign Group referenced in AWQL query.
-   * 
- * - * .google.ads.googleads.v0.resources.CampaignGroup campaign_group = 25; - */ - public com.google.ads.googleads.v0.resources.CampaignGroupOrBuilder getCampaignGroupOrBuilder() { - return getCampaignGroup(); - } - public static final int CAMPAIGN_SHARED_SET_FIELD_NUMBER = 30; private com.google.ads.googleads.v0.resources.CampaignSharedSet campaignSharedSet_; /** @@ -1733,6 +1565,39 @@ public com.google.ads.googleads.v0.resources.ChangeStatusOrBuilder getChangeStat return getChangeStatus(); } + public static final int CONVERSION_ACTION_FIELD_NUMBER = 103; + private com.google.ads.googleads.v0.resources.ConversionAction conversionAction_; + /** + *
+   * The conversion action referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.ConversionAction conversion_action = 103; + */ + public boolean hasConversionAction() { + return conversionAction_ != null; + } + /** + *
+   * The conversion action referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.ConversionAction conversion_action = 103; + */ + public com.google.ads.googleads.v0.resources.ConversionAction getConversionAction() { + return conversionAction_ == null ? com.google.ads.googleads.v0.resources.ConversionAction.getDefaultInstance() : conversionAction_; + } + /** + *
+   * The conversion action referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.ConversionAction conversion_action = 103; + */ + public com.google.ads.googleads.v0.resources.ConversionActionOrBuilder getConversionActionOrBuilder() { + return getConversionAction(); + } + public static final int CUSTOMER_FIELD_NUMBER = 1; private com.google.ads.googleads.v0.resources.Customer customer_; /** @@ -2426,6 +2291,138 @@ public com.google.ads.googleads.v0.resources.ManagedPlacementViewOrBuilder getMa return getManagedPlacementView(); } + public static final int MEDIA_FILE_FIELD_NUMBER = 90; + private com.google.ads.googleads.v0.resources.MediaFile mediaFile_; + /** + *
+   * The media file referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.MediaFile media_file = 90; + */ + public boolean hasMediaFile() { + return mediaFile_ != null; + } + /** + *
+   * The media file referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.MediaFile media_file = 90; + */ + public com.google.ads.googleads.v0.resources.MediaFile getMediaFile() { + return mediaFile_ == null ? com.google.ads.googleads.v0.resources.MediaFile.getDefaultInstance() : mediaFile_; + } + /** + *
+   * The media file referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.MediaFile media_file = 90; + */ + public com.google.ads.googleads.v0.resources.MediaFileOrBuilder getMediaFileOrBuilder() { + return getMediaFile(); + } + + public static final int MOBILE_APP_CATEGORY_CONSTANT_FIELD_NUMBER = 87; + private com.google.ads.googleads.v0.resources.MobileAppCategoryConstant mobileAppCategoryConstant_; + /** + *
+   * The mobile app category constant referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.MobileAppCategoryConstant mobile_app_category_constant = 87; + */ + public boolean hasMobileAppCategoryConstant() { + return mobileAppCategoryConstant_ != null; + } + /** + *
+   * The mobile app category constant referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.MobileAppCategoryConstant mobile_app_category_constant = 87; + */ + public com.google.ads.googleads.v0.resources.MobileAppCategoryConstant getMobileAppCategoryConstant() { + return mobileAppCategoryConstant_ == null ? com.google.ads.googleads.v0.resources.MobileAppCategoryConstant.getDefaultInstance() : mobileAppCategoryConstant_; + } + /** + *
+   * The mobile app category constant referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.MobileAppCategoryConstant mobile_app_category_constant = 87; + */ + public com.google.ads.googleads.v0.resources.MobileAppCategoryConstantOrBuilder getMobileAppCategoryConstantOrBuilder() { + return getMobileAppCategoryConstant(); + } + + public static final int MOBILE_DEVICE_CONSTANT_FIELD_NUMBER = 98; + private com.google.ads.googleads.v0.resources.MobileDeviceConstant mobileDeviceConstant_; + /** + *
+   * The mobile device constant referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.MobileDeviceConstant mobile_device_constant = 98; + */ + public boolean hasMobileDeviceConstant() { + return mobileDeviceConstant_ != null; + } + /** + *
+   * The mobile device constant referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.MobileDeviceConstant mobile_device_constant = 98; + */ + public com.google.ads.googleads.v0.resources.MobileDeviceConstant getMobileDeviceConstant() { + return mobileDeviceConstant_ == null ? com.google.ads.googleads.v0.resources.MobileDeviceConstant.getDefaultInstance() : mobileDeviceConstant_; + } + /** + *
+   * The mobile device constant referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.MobileDeviceConstant mobile_device_constant = 98; + */ + public com.google.ads.googleads.v0.resources.MobileDeviceConstantOrBuilder getMobileDeviceConstantOrBuilder() { + return getMobileDeviceConstant(); + } + + public static final int OPERATING_SYSTEM_VERSION_CONSTANT_FIELD_NUMBER = 86; + private com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant operatingSystemVersionConstant_; + /** + *
+   * The operating system version constant referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.OperatingSystemVersionConstant operating_system_version_constant = 86; + */ + public boolean hasOperatingSystemVersionConstant() { + return operatingSystemVersionConstant_ != null; + } + /** + *
+   * The operating system version constant referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.OperatingSystemVersionConstant operating_system_version_constant = 86; + */ + public com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant getOperatingSystemVersionConstant() { + return operatingSystemVersionConstant_ == null ? com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant.getDefaultInstance() : operatingSystemVersionConstant_; + } + /** + *
+   * The operating system version constant referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.OperatingSystemVersionConstant operating_system_version_constant = 86; + */ + public com.google.ads.googleads.v0.resources.OperatingSystemVersionConstantOrBuilder getOperatingSystemVersionConstantOrBuilder() { + return getOperatingSystemVersionConstant(); + } + public static final int PARENTAL_STATUS_VIEW_FIELD_NUMBER = 45; private com.google.ads.googleads.v0.resources.ParentalStatusView parentalStatusView_; /** @@ -2723,6 +2720,39 @@ public com.google.ads.googleads.v0.resources.UserListOrBuilder getUserListOrBuil return getUserList(); } + public static final int REMARKETING_ACTION_FIELD_NUMBER = 60; + private com.google.ads.googleads.v0.resources.RemarketingAction remarketingAction_; + /** + *
+   * The remarketing action referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.RemarketingAction remarketing_action = 60; + */ + public boolean hasRemarketingAction() { + return remarketingAction_ != null; + } + /** + *
+   * The remarketing action referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.RemarketingAction remarketing_action = 60; + */ + public com.google.ads.googleads.v0.resources.RemarketingAction getRemarketingAction() { + return remarketingAction_ == null ? com.google.ads.googleads.v0.resources.RemarketingAction.getDefaultInstance() : remarketingAction_; + } + /** + *
+   * The remarketing action referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.RemarketingAction remarketing_action = 60; + */ + public com.google.ads.googleads.v0.resources.RemarketingActionOrBuilder getRemarketingActionOrBuilder() { + return getRemarketingAction(); + } + public static final int TOPIC_CONSTANT_FIELD_NUMBER = 31; private com.google.ads.googleads.v0.resources.TopicConstant topicConstant_; /** @@ -2822,14430 +2852,11490 @@ public com.google.ads.googleads.v0.common.MetricsOrBuilder getMetricsOrBuilder() return getMetrics(); } - public static final int AD_NETWORK_TYPE_FIELD_NUMBER = 5; - private int adNetworkType_; - /** - *
-   * Ad network type.
-   * 
- * - * .google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType ad_network_type = 5; - */ - public int getAdNetworkTypeValue() { - return adNetworkType_; - } - /** - *
-   * Ad network type.
-   * 
- * - * .google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType ad_network_type = 5; - */ - public com.google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType getAdNetworkType() { - @SuppressWarnings("deprecation") - com.google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType result = com.google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType.valueOf(adNetworkType_); - return result == null ? com.google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType.UNRECOGNIZED : result; - } - - public static final int DATE_FIELD_NUMBER = 6; - private com.google.protobuf.StringValue date_; + public static final int SEGMENTS_FIELD_NUMBER = 102; + private com.google.ads.googleads.v0.common.Segments segments_; /** *
-   * Date to which metrics apply.
-   * yyyy-MM-dd format, e.g., 2018-04-17.
+   * The segments.
    * 
* - * .google.protobuf.StringValue date = 6; + * .google.ads.googleads.v0.common.Segments segments = 102; */ - public boolean hasDate() { - return date_ != null; + public boolean hasSegments() { + return segments_ != null; } /** *
-   * Date to which metrics apply.
-   * yyyy-MM-dd format, e.g., 2018-04-17.
+   * The segments.
    * 
* - * .google.protobuf.StringValue date = 6; + * .google.ads.googleads.v0.common.Segments segments = 102; */ - public com.google.protobuf.StringValue getDate() { - return date_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : date_; + public com.google.ads.googleads.v0.common.Segments getSegments() { + return segments_ == null ? com.google.ads.googleads.v0.common.Segments.getDefaultInstance() : segments_; } /** *
-   * Date to which metrics apply.
-   * yyyy-MM-dd format, e.g., 2018-04-17.
+   * The segments.
    * 
* - * .google.protobuf.StringValue date = 6; + * .google.ads.googleads.v0.common.Segments segments = 102; */ - public com.google.protobuf.StringValueOrBuilder getDateOrBuilder() { - return getDate(); + public com.google.ads.googleads.v0.common.SegmentsOrBuilder getSegmentsOrBuilder() { + return getSegments(); } - public static final int DAY_OF_WEEK_FIELD_NUMBER = 7; - private int dayOfWeek_; - /** - *
-   * Day of the week, e.g., MONDAY.
-   * 
- * - * .google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek day_of_week = 7; - */ - public int getDayOfWeekValue() { - return dayOfWeek_; - } - /** - *
-   * Day of the week, e.g., MONDAY.
-   * 
- * - * .google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek day_of_week = 7; - */ - public com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek getDayOfWeek() { - @SuppressWarnings("deprecation") - com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek result = com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek.valueOf(dayOfWeek_); - return result == null ? com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek.UNRECOGNIZED : result; - } - - public static final int DEVICE_FIELD_NUMBER = 8; - private int device_; - /** - *
-   * Device to which metrics apply.
-   * 
- * - * .google.ads.googleads.v0.enums.DeviceEnum.Device device = 8; - */ - public int getDeviceValue() { - return device_; - } - /** - *
-   * Device to which metrics apply.
-   * 
- * - * .google.ads.googleads.v0.enums.DeviceEnum.Device device = 8; - */ - public com.google.ads.googleads.v0.enums.DeviceEnum.Device getDevice() { - @SuppressWarnings("deprecation") - com.google.ads.googleads.v0.enums.DeviceEnum.Device result = com.google.ads.googleads.v0.enums.DeviceEnum.Device.valueOf(device_); - return result == null ? com.google.ads.googleads.v0.enums.DeviceEnum.Device.UNRECOGNIZED : result; - } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static final int HOTEL_BOOKING_WINDOW_DAYS_FIELD_NUMBER = 83; - private com.google.protobuf.Int64Value hotelBookingWindowDays_; - /** - *
-   * Hotel booking window in days.
-   * 
- * - * .google.protobuf.Int64Value hotel_booking_window_days = 83; - */ - public boolean hasHotelBookingWindowDays() { - return hotelBookingWindowDays_ != null; - } - /** - *
-   * Hotel booking window in days.
-   * 
- * - * .google.protobuf.Int64Value hotel_booking_window_days = 83; - */ - public com.google.protobuf.Int64Value getHotelBookingWindowDays() { - return hotelBookingWindowDays_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : hotelBookingWindowDays_; - } - /** - *
-   * Hotel booking window in days.
-   * 
- * - * .google.protobuf.Int64Value hotel_booking_window_days = 83; - */ - public com.google.protobuf.Int64ValueOrBuilder getHotelBookingWindowDaysOrBuilder() { - return getHotelBookingWindowDays(); + memoizedIsInitialized = 1; + return true; } - public static final int HOTEL_CENTER_ID_FIELD_NUMBER = 72; - private com.google.protobuf.Int64Value hotelCenterId_; - /** - *
-   * Hotel center ID.
-   * 
- * - * .google.protobuf.Int64Value hotel_center_id = 72; - */ - public boolean hasHotelCenterId() { - return hotelCenterId_ != null; - } - /** - *
-   * Hotel center ID.
-   * 
- * - * .google.protobuf.Int64Value hotel_center_id = 72; - */ - public com.google.protobuf.Int64Value getHotelCenterId() { - return hotelCenterId_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : hotelCenterId_; - } - /** - *
-   * Hotel center ID.
-   * 
- * - * .google.protobuf.Int64Value hotel_center_id = 72; - */ - public com.google.protobuf.Int64ValueOrBuilder getHotelCenterIdOrBuilder() { - return getHotelCenterId(); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (customer_ != null) { + output.writeMessage(1, getCustomer()); + } + if (campaign_ != null) { + output.writeMessage(2, getCampaign()); + } + if (adGroup_ != null) { + output.writeMessage(3, getAdGroup()); + } + if (metrics_ != null) { + output.writeMessage(4, getMetrics()); + } + if (adGroupAd_ != null) { + output.writeMessage(16, getAdGroupAd()); + } + if (adGroupCriterion_ != null) { + output.writeMessage(17, getAdGroupCriterion()); + } + if (biddingStrategy_ != null) { + output.writeMessage(18, getBiddingStrategy()); + } + if (campaignBudget_ != null) { + output.writeMessage(19, getCampaignBudget()); + } + if (campaignCriterion_ != null) { + output.writeMessage(20, getCampaignCriterion()); + } + if (keywordView_ != null) { + output.writeMessage(21, getKeywordView()); + } + if (recommendation_ != null) { + output.writeMessage(22, getRecommendation()); + } + if (geoTargetConstant_ != null) { + output.writeMessage(23, getGeoTargetConstant()); + } + if (adGroupBidModifier_ != null) { + output.writeMessage(24, getAdGroupBidModifier()); + } + if (campaignBidModifier_ != null) { + output.writeMessage(26, getCampaignBidModifier()); + } + if (sharedSet_ != null) { + output.writeMessage(27, getSharedSet()); + } + if (sharedCriterion_ != null) { + output.writeMessage(29, getSharedCriterion()); + } + if (campaignSharedSet_ != null) { + output.writeMessage(30, getCampaignSharedSet()); + } + if (topicConstant_ != null) { + output.writeMessage(31, getTopicConstant()); + } + if (keywordPlan_ != null) { + output.writeMessage(32, getKeywordPlan()); + } + if (keywordPlanCampaign_ != null) { + output.writeMessage(33, getKeywordPlanCampaign()); + } + if (keywordPlanNegativeKeyword_ != null) { + output.writeMessage(34, getKeywordPlanNegativeKeyword()); + } + if (keywordPlanAdGroup_ != null) { + output.writeMessage(35, getKeywordPlanAdGroup()); + } + if (keywordPlanKeyword_ != null) { + output.writeMessage(36, getKeywordPlanKeyword()); + } + if (changeStatus_ != null) { + output.writeMessage(37, getChangeStatus()); + } + if (userList_ != null) { + output.writeMessage(38, getUserList()); + } + if (video_ != null) { + output.writeMessage(39, getVideo()); + } + if (genderView_ != null) { + output.writeMessage(40, getGenderView()); + } + if (billingSetup_ != null) { + output.writeMessage(41, getBillingSetup()); + } + if (accountBudget_ != null) { + output.writeMessage(42, getAccountBudget()); + } + if (accountBudgetProposal_ != null) { + output.writeMessage(43, getAccountBudgetProposal()); + } + if (topicView_ != null) { + output.writeMessage(44, getTopicView()); + } + if (parentalStatusView_ != null) { + output.writeMessage(45, getParentalStatusView()); + } + if (feed_ != null) { + output.writeMessage(46, getFeed()); + } + if (displayKeywordView_ != null) { + output.writeMessage(47, getDisplayKeywordView()); + } + if (ageRangeView_ != null) { + output.writeMessage(48, getAgeRangeView()); + } + if (feedItem_ != null) { + output.writeMessage(50, getFeedItem()); + } + if (hotelGroupView_ != null) { + output.writeMessage(51, getHotelGroupView()); + } + if (managedPlacementView_ != null) { + output.writeMessage(53, getManagedPlacementView()); + } + if (productGroupView_ != null) { + output.writeMessage(54, getProductGroupView()); + } + if (languageConstant_ != null) { + output.writeMessage(55, getLanguageConstant()); + } + if (adGroupAudienceView_ != null) { + output.writeMessage(57, getAdGroupAudienceView()); + } + if (feedMapping_ != null) { + output.writeMessage(58, getFeedMapping()); + } + if (userInterest_ != null) { + output.writeMessage(59, getUserInterest()); + } + if (remarketingAction_ != null) { + output.writeMessage(60, getRemarketingAction()); + } + if (customerManagerLink_ != null) { + output.writeMessage(61, getCustomerManagerLink()); + } + if (customerClientLink_ != null) { + output.writeMessage(62, getCustomerClientLink()); + } + if (campaignFeed_ != null) { + output.writeMessage(63, getCampaignFeed()); + } + if (customerFeed_ != null) { + output.writeMessage(64, getCustomerFeed()); + } + if (carrierConstant_ != null) { + output.writeMessage(66, getCarrierConstant()); + } + if (adGroupFeed_ != null) { + output.writeMessage(67, getAdGroupFeed()); + } + if (searchTermView_ != null) { + output.writeMessage(68, getSearchTermView()); + } + if (campaignAudienceView_ != null) { + output.writeMessage(69, getCampaignAudienceView()); + } + if (customerClient_ != null) { + output.writeMessage(70, getCustomerClient()); + } + if (hotelPerformanceView_ != null) { + output.writeMessage(71, getHotelPerformanceView()); + } + if (operatingSystemVersionConstant_ != null) { + output.writeMessage(86, getOperatingSystemVersionConstant()); + } + if (mobileAppCategoryConstant_ != null) { + output.writeMessage(87, getMobileAppCategoryConstant()); + } + if (adScheduleView_ != null) { + output.writeMessage(89, getAdScheduleView()); + } + if (mediaFile_ != null) { + output.writeMessage(90, getMediaFile()); + } + if (mobileDeviceConstant_ != null) { + output.writeMessage(98, getMobileDeviceConstant()); + } + if (segments_ != null) { + output.writeMessage(102, getSegments()); + } + if (conversionAction_ != null) { + output.writeMessage(103, getConversionAction()); + } + unknownFields.writeTo(output); } - public static final int HOTEL_CHECK_IN_DATE_FIELD_NUMBER = 73; - private com.google.protobuf.StringValue hotelCheckInDate_; - /** - *
-   * Hotel check-in date. Formatted as yyyy-MM-dd.
-   * 
- * - * .google.protobuf.StringValue hotel_check_in_date = 73; - */ - public boolean hasHotelCheckInDate() { - return hotelCheckInDate_ != null; - } - /** - *
-   * Hotel check-in date. Formatted as yyyy-MM-dd.
-   * 
- * - * .google.protobuf.StringValue hotel_check_in_date = 73; - */ - public com.google.protobuf.StringValue getHotelCheckInDate() { - return hotelCheckInDate_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : hotelCheckInDate_; - } - /** - *
-   * Hotel check-in date. Formatted as yyyy-MM-dd.
-   * 
- * - * .google.protobuf.StringValue hotel_check_in_date = 73; - */ - public com.google.protobuf.StringValueOrBuilder getHotelCheckInDateOrBuilder() { - return getHotelCheckInDate(); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static final int HOTEL_CHECK_IN_DAY_OF_WEEK_FIELD_NUMBER = 74; - private int hotelCheckInDayOfWeek_; - /** - *
-   * Hotel check-in day of week.
-   * 
- * - * .google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek hotel_check_in_day_of_week = 74; - */ - public int getHotelCheckInDayOfWeekValue() { - return hotelCheckInDayOfWeek_; - } - /** - *
-   * Hotel check-in day of week.
-   * 
- * - * .google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek hotel_check_in_day_of_week = 74; - */ - public com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek getHotelCheckInDayOfWeek() { - @SuppressWarnings("deprecation") - com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek result = com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek.valueOf(hotelCheckInDayOfWeek_); - return result == null ? com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek.UNRECOGNIZED : result; + size = 0; + if (customer_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCustomer()); + } + if (campaign_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCampaign()); + } + if (adGroup_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getAdGroup()); + } + if (metrics_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getMetrics()); + } + if (adGroupAd_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getAdGroupAd()); + } + if (adGroupCriterion_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getAdGroupCriterion()); + } + if (biddingStrategy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, getBiddingStrategy()); + } + if (campaignBudget_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, getCampaignBudget()); + } + if (campaignCriterion_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, getCampaignCriterion()); + } + if (keywordView_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, getKeywordView()); + } + if (recommendation_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, getRecommendation()); + } + if (geoTargetConstant_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(23, getGeoTargetConstant()); + } + if (adGroupBidModifier_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(24, getAdGroupBidModifier()); + } + if (campaignBidModifier_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(26, getCampaignBidModifier()); + } + if (sharedSet_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(27, getSharedSet()); + } + if (sharedCriterion_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(29, getSharedCriterion()); + } + if (campaignSharedSet_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(30, getCampaignSharedSet()); + } + if (topicConstant_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(31, getTopicConstant()); + } + if (keywordPlan_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(32, getKeywordPlan()); + } + if (keywordPlanCampaign_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(33, getKeywordPlanCampaign()); + } + if (keywordPlanNegativeKeyword_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(34, getKeywordPlanNegativeKeyword()); + } + if (keywordPlanAdGroup_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(35, getKeywordPlanAdGroup()); + } + if (keywordPlanKeyword_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(36, getKeywordPlanKeyword()); + } + if (changeStatus_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(37, getChangeStatus()); + } + if (userList_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(38, getUserList()); + } + if (video_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(39, getVideo()); + } + if (genderView_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(40, getGenderView()); + } + if (billingSetup_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(41, getBillingSetup()); + } + if (accountBudget_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(42, getAccountBudget()); + } + if (accountBudgetProposal_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(43, getAccountBudgetProposal()); + } + if (topicView_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(44, getTopicView()); + } + if (parentalStatusView_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(45, getParentalStatusView()); + } + if (feed_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(46, getFeed()); + } + if (displayKeywordView_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(47, getDisplayKeywordView()); + } + if (ageRangeView_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(48, getAgeRangeView()); + } + if (feedItem_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(50, getFeedItem()); + } + if (hotelGroupView_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(51, getHotelGroupView()); + } + if (managedPlacementView_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(53, getManagedPlacementView()); + } + if (productGroupView_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(54, getProductGroupView()); + } + if (languageConstant_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(55, getLanguageConstant()); + } + if (adGroupAudienceView_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(57, getAdGroupAudienceView()); + } + if (feedMapping_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(58, getFeedMapping()); + } + if (userInterest_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(59, getUserInterest()); + } + if (remarketingAction_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(60, getRemarketingAction()); + } + if (customerManagerLink_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(61, getCustomerManagerLink()); + } + if (customerClientLink_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(62, getCustomerClientLink()); + } + if (campaignFeed_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(63, getCampaignFeed()); + } + if (customerFeed_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(64, getCustomerFeed()); + } + if (carrierConstant_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(66, getCarrierConstant()); + } + if (adGroupFeed_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(67, getAdGroupFeed()); + } + if (searchTermView_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(68, getSearchTermView()); + } + if (campaignAudienceView_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(69, getCampaignAudienceView()); + } + if (customerClient_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(70, getCustomerClient()); + } + if (hotelPerformanceView_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(71, getHotelPerformanceView()); + } + if (operatingSystemVersionConstant_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(86, getOperatingSystemVersionConstant()); + } + if (mobileAppCategoryConstant_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(87, getMobileAppCategoryConstant()); + } + if (adScheduleView_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(89, getAdScheduleView()); + } + if (mediaFile_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(90, getMediaFile()); + } + if (mobileDeviceConstant_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(98, getMobileDeviceConstant()); + } + if (segments_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(102, getSegments()); + } + if (conversionAction_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(103, getConversionAction()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; } - public static final int HOTEL_CITY_FIELD_NUMBER = 75; - private com.google.protobuf.StringValue hotelCity_; - /** - *
-   * Hotel city.
-   * 
- * - * .google.protobuf.StringValue hotel_city = 75; - */ - public boolean hasHotelCity() { - return hotelCity_ != null; - } - /** - *
-   * Hotel city.
-   * 
- * - * .google.protobuf.StringValue hotel_city = 75; - */ - public com.google.protobuf.StringValue getHotelCity() { - return hotelCity_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : hotelCity_; - } - /** - *
-   * Hotel city.
-   * 
- * - * .google.protobuf.StringValue hotel_city = 75; - */ - public com.google.protobuf.StringValueOrBuilder getHotelCityOrBuilder() { - return getHotelCity(); - } - - public static final int HOTEL_CLASS_FIELD_NUMBER = 76; - private com.google.protobuf.Int32Value hotelClass_; - /** - *
-   * Hotel class.
-   * 
- * - * .google.protobuf.Int32Value hotel_class = 76; - */ - public boolean hasHotelClass() { - return hotelClass_ != null; - } - /** - *
-   * Hotel class.
-   * 
- * - * .google.protobuf.Int32Value hotel_class = 76; - */ - public com.google.protobuf.Int32Value getHotelClass() { - return hotelClass_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : hotelClass_; - } - /** - *
-   * Hotel class.
-   * 
- * - * .google.protobuf.Int32Value hotel_class = 76; - */ - public com.google.protobuf.Int32ValueOrBuilder getHotelClassOrBuilder() { - return getHotelClass(); - } - - public static final int HOTEL_COUNTRY_FIELD_NUMBER = 77; - private com.google.protobuf.StringValue hotelCountry_; - /** - *
-   * Hotel country.
-   * 
- * - * .google.protobuf.StringValue hotel_country = 77; - */ - public boolean hasHotelCountry() { - return hotelCountry_ != null; - } - /** - *
-   * Hotel country.
-   * 
- * - * .google.protobuf.StringValue hotel_country = 77; - */ - public com.google.protobuf.StringValue getHotelCountry() { - return hotelCountry_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : hotelCountry_; - } - /** - *
-   * Hotel country.
-   * 
- * - * .google.protobuf.StringValue hotel_country = 77; - */ - public com.google.protobuf.StringValueOrBuilder getHotelCountryOrBuilder() { - return getHotelCountry(); - } - - public static final int HOTEL_DATE_SELECTION_TYPE_FIELD_NUMBER = 78; - private int hotelDateSelectionType_; - /** - *
-   * Hotel date selection type.
-   * 
- * - * .google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType hotel_date_selection_type = 78; - */ - public int getHotelDateSelectionTypeValue() { - return hotelDateSelectionType_; - } - /** - *
-   * Hotel date selection type.
-   * 
- * - * .google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType hotel_date_selection_type = 78; - */ - public com.google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType getHotelDateSelectionType() { - @SuppressWarnings("deprecation") - com.google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType result = com.google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType.valueOf(hotelDateSelectionType_); - return result == null ? com.google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType.UNRECOGNIZED : result; - } - - public static final int HOTEL_LENGTH_OF_STAY_FIELD_NUMBER = 79; - private com.google.protobuf.Int32Value hotelLengthOfStay_; - /** - *
-   * Hotel length of stay.
-   * 
- * - * .google.protobuf.Int32Value hotel_length_of_stay = 79; - */ - public boolean hasHotelLengthOfStay() { - return hotelLengthOfStay_ != null; - } - /** - *
-   * Hotel length of stay.
-   * 
- * - * .google.protobuf.Int32Value hotel_length_of_stay = 79; - */ - public com.google.protobuf.Int32Value getHotelLengthOfStay() { - return hotelLengthOfStay_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : hotelLengthOfStay_; - } - /** - *
-   * Hotel length of stay.
-   * 
- * - * .google.protobuf.Int32Value hotel_length_of_stay = 79; - */ - public com.google.protobuf.Int32ValueOrBuilder getHotelLengthOfStayOrBuilder() { - return getHotelLengthOfStay(); - } - - public static final int HOTEL_STATE_FIELD_NUMBER = 81; - private com.google.protobuf.StringValue hotelState_; - /** - *
-   * Hotel state.
-   * 
- * - * .google.protobuf.StringValue hotel_state = 81; - */ - public boolean hasHotelState() { - return hotelState_ != null; - } - /** - *
-   * Hotel state.
-   * 
- * - * .google.protobuf.StringValue hotel_state = 81; - */ - public com.google.protobuf.StringValue getHotelState() { - return hotelState_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : hotelState_; - } - /** - *
-   * Hotel state.
-   * 
- * - * .google.protobuf.StringValue hotel_state = 81; - */ - public com.google.protobuf.StringValueOrBuilder getHotelStateOrBuilder() { - return getHotelState(); - } - - public static final int HOUR_FIELD_NUMBER = 9; - private com.google.protobuf.Int32Value hour_; - /** - *
-   * Hour of day as a number between 0 and 23, inclusive.
-   * 
- * - * .google.protobuf.Int32Value hour = 9; - */ - public boolean hasHour() { - return hour_ != null; - } - /** - *
-   * Hour of day as a number between 0 and 23, inclusive.
-   * 
- * - * .google.protobuf.Int32Value hour = 9; - */ - public com.google.protobuf.Int32Value getHour() { - return hour_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : hour_; - } - /** - *
-   * Hour of day as a number between 0 and 23, inclusive.
-   * 
- * - * .google.protobuf.Int32Value hour = 9; - */ - public com.google.protobuf.Int32ValueOrBuilder getHourOrBuilder() { - return getHour(); - } - - public static final int MONTH_FIELD_NUMBER = 10; - private com.google.protobuf.StringValue month_; - /** - *
-   * Month as represented by the date of the first day of a month. Formatted as
-   * yyyy-MM-dd.
-   * 
- * - * .google.protobuf.StringValue month = 10; - */ - public boolean hasMonth() { - return month_ != null; - } - /** - *
-   * Month as represented by the date of the first day of a month. Formatted as
-   * yyyy-MM-dd.
-   * 
- * - * .google.protobuf.StringValue month = 10; - */ - public com.google.protobuf.StringValue getMonth() { - return month_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : month_; - } - /** - *
-   * Month as represented by the date of the first day of a month. Formatted as
-   * yyyy-MM-dd.
-   * 
- * - * .google.protobuf.StringValue month = 10; - */ - public com.google.protobuf.StringValueOrBuilder getMonthOrBuilder() { - return getMonth(); - } - - public static final int MONTH_OF_YEAR_FIELD_NUMBER = 28; - private int monthOfYear_; - /** - *
-   * Month of the year, e.g., January.
-   * 
- * - * .google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear month_of_year = 28; - */ - public int getMonthOfYearValue() { - return monthOfYear_; - } - /** - *
-   * Month of the year, e.g., January.
-   * 
- * - * .google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear month_of_year = 28; - */ - public com.google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear getMonthOfYear() { - @SuppressWarnings("deprecation") - com.google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear result = com.google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear.valueOf(monthOfYear_); - return result == null ? com.google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear.UNRECOGNIZED : result; - } - - public static final int PARTNER_HOTEL_ID_FIELD_NUMBER = 82; - private com.google.protobuf.StringValue partnerHotelId_; - /** - *
-   * Partner hotel ID.
-   * 
- * - * .google.protobuf.StringValue partner_hotel_id = 82; - */ - public boolean hasPartnerHotelId() { - return partnerHotelId_ != null; - } - /** - *
-   * Partner hotel ID.
-   * 
- * - * .google.protobuf.StringValue partner_hotel_id = 82; - */ - public com.google.protobuf.StringValue getPartnerHotelId() { - return partnerHotelId_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : partnerHotelId_; - } - /** - *
-   * Partner hotel ID.
-   * 
- * - * .google.protobuf.StringValue partner_hotel_id = 82; - */ - public com.google.protobuf.StringValueOrBuilder getPartnerHotelIdOrBuilder() { - return getPartnerHotelId(); - } - - public static final int PLACEHOLDER_TYPE_FIELD_NUMBER = 65; - private int placeholderType_; - /** - *
-   * Placeholder type. This is only used with feed item metrics.
-   * 
- * - * .google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type = 65; - */ - public int getPlaceholderTypeValue() { - return placeholderType_; - } - /** - *
-   * Placeholder type. This is only used with feed item metrics.
-   * 
- * - * .google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type = 65; - */ - public com.google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType getPlaceholderType() { - @SuppressWarnings("deprecation") - com.google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType result = com.google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType.valueOf(placeholderType_); - return result == null ? com.google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType.UNRECOGNIZED : result; - } - - public static final int QUARTER_FIELD_NUMBER = 12; - private com.google.protobuf.StringValue quarter_; - /** - *
-   * Quarter as represented by the date of the first day of a quarter.
-   * Uses the calendar year for quarters, e.g., the second quarter of 2018
-   * starts on 2018-04-01. Formatted as yyyy-MM-dd.
-   * 
- * - * .google.protobuf.StringValue quarter = 12; - */ - public boolean hasQuarter() { - return quarter_ != null; - } - /** - *
-   * Quarter as represented by the date of the first day of a quarter.
-   * Uses the calendar year for quarters, e.g., the second quarter of 2018
-   * starts on 2018-04-01. Formatted as yyyy-MM-dd.
-   * 
- * - * .google.protobuf.StringValue quarter = 12; - */ - public com.google.protobuf.StringValue getQuarter() { - return quarter_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : quarter_; - } - /** - *
-   * Quarter as represented by the date of the first day of a quarter.
-   * Uses the calendar year for quarters, e.g., the second quarter of 2018
-   * starts on 2018-04-01. Formatted as yyyy-MM-dd.
-   * 
- * - * .google.protobuf.StringValue quarter = 12; - */ - public com.google.protobuf.StringValueOrBuilder getQuarterOrBuilder() { - return getQuarter(); - } - - public static final int SEARCH_TERM_MATCH_TYPE_FIELD_NUMBER = 56; - private int searchTermMatchType_; - /** - *
-   * Match type of the keyword that triggered the ad, including variants.
-   * 
- * - * .google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType search_term_match_type = 56; - */ - public int getSearchTermMatchTypeValue() { - return searchTermMatchType_; - } - /** - *
-   * Match type of the keyword that triggered the ad, including variants.
-   * 
- * - * .google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType search_term_match_type = 56; - */ - public com.google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType getSearchTermMatchType() { - @SuppressWarnings("deprecation") - com.google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType result = com.google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType.valueOf(searchTermMatchType_); - return result == null ? com.google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType.UNRECOGNIZED : result; - } - - public static final int SLOT_FIELD_NUMBER = 13; - private int slot_; - /** - *
-   * Position of the ad.
-   * 
- * - * .google.ads.googleads.v0.enums.SlotEnum.Slot slot = 13; - */ - public int getSlotValue() { - return slot_; - } - /** - *
-   * Position of the ad.
-   * 
- * - * .google.ads.googleads.v0.enums.SlotEnum.Slot slot = 13; - */ - public com.google.ads.googleads.v0.enums.SlotEnum.Slot getSlot() { - @SuppressWarnings("deprecation") - com.google.ads.googleads.v0.enums.SlotEnum.Slot result = com.google.ads.googleads.v0.enums.SlotEnum.Slot.valueOf(slot_); - return result == null ? com.google.ads.googleads.v0.enums.SlotEnum.Slot.UNRECOGNIZED : result; - } - - public static final int WEEK_FIELD_NUMBER = 14; - private com.google.protobuf.StringValue week_; - /** - *
-   * Week as defined as Monday through Sunday, and represented by the date of
-   * Monday. Formatted as yyyy-MM-dd.
-   * 
- * - * .google.protobuf.StringValue week = 14; - */ - public boolean hasWeek() { - return week_ != null; - } - /** - *
-   * Week as defined as Monday through Sunday, and represented by the date of
-   * Monday. Formatted as yyyy-MM-dd.
-   * 
- * - * .google.protobuf.StringValue week = 14; - */ - public com.google.protobuf.StringValue getWeek() { - return week_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : week_; - } - /** - *
-   * Week as defined as Monday through Sunday, and represented by the date of
-   * Monday. Formatted as yyyy-MM-dd.
-   * 
- * - * .google.protobuf.StringValue week = 14; - */ - public com.google.protobuf.StringValueOrBuilder getWeekOrBuilder() { - return getWeek(); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.googleads.v0.services.GoogleAdsRow)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.services.GoogleAdsRow other = (com.google.ads.googleads.v0.services.GoogleAdsRow) obj; - public static final int YEAR_FIELD_NUMBER = 15; - private com.google.protobuf.Int32Value year_; - /** - *
-   * Year, formatted as yyyy.
-   * 
- * - * .google.protobuf.Int32Value year = 15; - */ - public boolean hasYear() { - return year_ != null; - } - /** - *
-   * Year, formatted as yyyy.
-   * 
- * - * .google.protobuf.Int32Value year = 15; - */ - public com.google.protobuf.Int32Value getYear() { - return year_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : year_; - } - /** - *
-   * Year, formatted as yyyy.
-   * 
- * - * .google.protobuf.Int32Value year = 15; - */ - public com.google.protobuf.Int32ValueOrBuilder getYearOrBuilder() { - return getYear(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (customer_ != null) { - output.writeMessage(1, getCustomer()); + boolean result = true; + result = result && (hasAccountBudget() == other.hasAccountBudget()); + if (hasAccountBudget()) { + result = result && getAccountBudget() + .equals(other.getAccountBudget()); } - if (campaign_ != null) { - output.writeMessage(2, getCampaign()); + result = result && (hasAccountBudgetProposal() == other.hasAccountBudgetProposal()); + if (hasAccountBudgetProposal()) { + result = result && getAccountBudgetProposal() + .equals(other.getAccountBudgetProposal()); } - if (adGroup_ != null) { - output.writeMessage(3, getAdGroup()); + result = result && (hasAdGroup() == other.hasAdGroup()); + if (hasAdGroup()) { + result = result && getAdGroup() + .equals(other.getAdGroup()); } - if (metrics_ != null) { - output.writeMessage(4, getMetrics()); + result = result && (hasAdGroupAd() == other.hasAdGroupAd()); + if (hasAdGroupAd()) { + result = result && getAdGroupAd() + .equals(other.getAdGroupAd()); } - if (adNetworkType_ != com.google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType.UNSPECIFIED.getNumber()) { - output.writeEnum(5, adNetworkType_); + result = result && (hasAdGroupAudienceView() == other.hasAdGroupAudienceView()); + if (hasAdGroupAudienceView()) { + result = result && getAdGroupAudienceView() + .equals(other.getAdGroupAudienceView()); } - if (date_ != null) { - output.writeMessage(6, getDate()); + result = result && (hasAdGroupBidModifier() == other.hasAdGroupBidModifier()); + if (hasAdGroupBidModifier()) { + result = result && getAdGroupBidModifier() + .equals(other.getAdGroupBidModifier()); } - if (dayOfWeek_ != com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek.UNSPECIFIED.getNumber()) { - output.writeEnum(7, dayOfWeek_); + result = result && (hasAdGroupCriterion() == other.hasAdGroupCriterion()); + if (hasAdGroupCriterion()) { + result = result && getAdGroupCriterion() + .equals(other.getAdGroupCriterion()); } - if (device_ != com.google.ads.googleads.v0.enums.DeviceEnum.Device.UNSPECIFIED.getNumber()) { - output.writeEnum(8, device_); + result = result && (hasAdGroupFeed() == other.hasAdGroupFeed()); + if (hasAdGroupFeed()) { + result = result && getAdGroupFeed() + .equals(other.getAdGroupFeed()); } - if (hour_ != null) { - output.writeMessage(9, getHour()); + result = result && (hasAgeRangeView() == other.hasAgeRangeView()); + if (hasAgeRangeView()) { + result = result && getAgeRangeView() + .equals(other.getAgeRangeView()); } - if (month_ != null) { - output.writeMessage(10, getMonth()); + result = result && (hasAdScheduleView() == other.hasAdScheduleView()); + if (hasAdScheduleView()) { + result = result && getAdScheduleView() + .equals(other.getAdScheduleView()); } - if (quarter_ != null) { - output.writeMessage(12, getQuarter()); + result = result && (hasBiddingStrategy() == other.hasBiddingStrategy()); + if (hasBiddingStrategy()) { + result = result && getBiddingStrategy() + .equals(other.getBiddingStrategy()); } - if (slot_ != com.google.ads.googleads.v0.enums.SlotEnum.Slot.UNSPECIFIED.getNumber()) { - output.writeEnum(13, slot_); + result = result && (hasBillingSetup() == other.hasBillingSetup()); + if (hasBillingSetup()) { + result = result && getBillingSetup() + .equals(other.getBillingSetup()); } - if (week_ != null) { - output.writeMessage(14, getWeek()); + result = result && (hasCampaignBudget() == other.hasCampaignBudget()); + if (hasCampaignBudget()) { + result = result && getCampaignBudget() + .equals(other.getCampaignBudget()); } - if (year_ != null) { - output.writeMessage(15, getYear()); + result = result && (hasCampaign() == other.hasCampaign()); + if (hasCampaign()) { + result = result && getCampaign() + .equals(other.getCampaign()); } - if (adGroupAd_ != null) { - output.writeMessage(16, getAdGroupAd()); + result = result && (hasCampaignAudienceView() == other.hasCampaignAudienceView()); + if (hasCampaignAudienceView()) { + result = result && getCampaignAudienceView() + .equals(other.getCampaignAudienceView()); } - if (adGroupCriterion_ != null) { - output.writeMessage(17, getAdGroupCriterion()); + result = result && (hasCampaignBidModifier() == other.hasCampaignBidModifier()); + if (hasCampaignBidModifier()) { + result = result && getCampaignBidModifier() + .equals(other.getCampaignBidModifier()); } - if (biddingStrategy_ != null) { - output.writeMessage(18, getBiddingStrategy()); + result = result && (hasCampaignCriterion() == other.hasCampaignCriterion()); + if (hasCampaignCriterion()) { + result = result && getCampaignCriterion() + .equals(other.getCampaignCriterion()); } - if (campaignBudget_ != null) { - output.writeMessage(19, getCampaignBudget()); + result = result && (hasCampaignFeed() == other.hasCampaignFeed()); + if (hasCampaignFeed()) { + result = result && getCampaignFeed() + .equals(other.getCampaignFeed()); } - if (campaignCriterion_ != null) { - output.writeMessage(20, getCampaignCriterion()); + result = result && (hasCampaignSharedSet() == other.hasCampaignSharedSet()); + if (hasCampaignSharedSet()) { + result = result && getCampaignSharedSet() + .equals(other.getCampaignSharedSet()); } - if (keywordView_ != null) { - output.writeMessage(21, getKeywordView()); + result = result && (hasCarrierConstant() == other.hasCarrierConstant()); + if (hasCarrierConstant()) { + result = result && getCarrierConstant() + .equals(other.getCarrierConstant()); } - if (recommendation_ != null) { - output.writeMessage(22, getRecommendation()); + result = result && (hasChangeStatus() == other.hasChangeStatus()); + if (hasChangeStatus()) { + result = result && getChangeStatus() + .equals(other.getChangeStatus()); } - if (geoTargetConstant_ != null) { - output.writeMessage(23, getGeoTargetConstant()); + result = result && (hasConversionAction() == other.hasConversionAction()); + if (hasConversionAction()) { + result = result && getConversionAction() + .equals(other.getConversionAction()); } - if (adGroupBidModifier_ != null) { - output.writeMessage(24, getAdGroupBidModifier()); + result = result && (hasCustomer() == other.hasCustomer()); + if (hasCustomer()) { + result = result && getCustomer() + .equals(other.getCustomer()); } - if (campaignGroup_ != null) { - output.writeMessage(25, getCampaignGroup()); + result = result && (hasCustomerManagerLink() == other.hasCustomerManagerLink()); + if (hasCustomerManagerLink()) { + result = result && getCustomerManagerLink() + .equals(other.getCustomerManagerLink()); } - if (campaignBidModifier_ != null) { - output.writeMessage(26, getCampaignBidModifier()); + result = result && (hasCustomerClientLink() == other.hasCustomerClientLink()); + if (hasCustomerClientLink()) { + result = result && getCustomerClientLink() + .equals(other.getCustomerClientLink()); } - if (sharedSet_ != null) { - output.writeMessage(27, getSharedSet()); + result = result && (hasCustomerClient() == other.hasCustomerClient()); + if (hasCustomerClient()) { + result = result && getCustomerClient() + .equals(other.getCustomerClient()); } - if (monthOfYear_ != com.google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear.UNSPECIFIED.getNumber()) { - output.writeEnum(28, monthOfYear_); + result = result && (hasCustomerFeed() == other.hasCustomerFeed()); + if (hasCustomerFeed()) { + result = result && getCustomerFeed() + .equals(other.getCustomerFeed()); } - if (sharedCriterion_ != null) { - output.writeMessage(29, getSharedCriterion()); + result = result && (hasDisplayKeywordView() == other.hasDisplayKeywordView()); + if (hasDisplayKeywordView()) { + result = result && getDisplayKeywordView() + .equals(other.getDisplayKeywordView()); } - if (campaignSharedSet_ != null) { - output.writeMessage(30, getCampaignSharedSet()); + result = result && (hasFeed() == other.hasFeed()); + if (hasFeed()) { + result = result && getFeed() + .equals(other.getFeed()); } - if (topicConstant_ != null) { - output.writeMessage(31, getTopicConstant()); + result = result && (hasFeedItem() == other.hasFeedItem()); + if (hasFeedItem()) { + result = result && getFeedItem() + .equals(other.getFeedItem()); } - if (keywordPlan_ != null) { - output.writeMessage(32, getKeywordPlan()); + result = result && (hasFeedMapping() == other.hasFeedMapping()); + if (hasFeedMapping()) { + result = result && getFeedMapping() + .equals(other.getFeedMapping()); } - if (keywordPlanCampaign_ != null) { - output.writeMessage(33, getKeywordPlanCampaign()); + result = result && (hasGenderView() == other.hasGenderView()); + if (hasGenderView()) { + result = result && getGenderView() + .equals(other.getGenderView()); } - if (keywordPlanNegativeKeyword_ != null) { - output.writeMessage(34, getKeywordPlanNegativeKeyword()); + result = result && (hasGeoTargetConstant() == other.hasGeoTargetConstant()); + if (hasGeoTargetConstant()) { + result = result && getGeoTargetConstant() + .equals(other.getGeoTargetConstant()); } - if (keywordPlanAdGroup_ != null) { - output.writeMessage(35, getKeywordPlanAdGroup()); + result = result && (hasHotelGroupView() == other.hasHotelGroupView()); + if (hasHotelGroupView()) { + result = result && getHotelGroupView() + .equals(other.getHotelGroupView()); } - if (keywordPlanKeyword_ != null) { - output.writeMessage(36, getKeywordPlanKeyword()); + result = result && (hasHotelPerformanceView() == other.hasHotelPerformanceView()); + if (hasHotelPerformanceView()) { + result = result && getHotelPerformanceView() + .equals(other.getHotelPerformanceView()); } - if (changeStatus_ != null) { - output.writeMessage(37, getChangeStatus()); + result = result && (hasKeywordView() == other.hasKeywordView()); + if (hasKeywordView()) { + result = result && getKeywordView() + .equals(other.getKeywordView()); } - if (userList_ != null) { - output.writeMessage(38, getUserList()); + result = result && (hasKeywordPlan() == other.hasKeywordPlan()); + if (hasKeywordPlan()) { + result = result && getKeywordPlan() + .equals(other.getKeywordPlan()); } - if (video_ != null) { - output.writeMessage(39, getVideo()); + result = result && (hasKeywordPlanCampaign() == other.hasKeywordPlanCampaign()); + if (hasKeywordPlanCampaign()) { + result = result && getKeywordPlanCampaign() + .equals(other.getKeywordPlanCampaign()); } - if (genderView_ != null) { - output.writeMessage(40, getGenderView()); + result = result && (hasKeywordPlanNegativeKeyword() == other.hasKeywordPlanNegativeKeyword()); + if (hasKeywordPlanNegativeKeyword()) { + result = result && getKeywordPlanNegativeKeyword() + .equals(other.getKeywordPlanNegativeKeyword()); } - if (billingSetup_ != null) { - output.writeMessage(41, getBillingSetup()); + result = result && (hasKeywordPlanAdGroup() == other.hasKeywordPlanAdGroup()); + if (hasKeywordPlanAdGroup()) { + result = result && getKeywordPlanAdGroup() + .equals(other.getKeywordPlanAdGroup()); } - if (accountBudget_ != null) { - output.writeMessage(42, getAccountBudget()); + result = result && (hasKeywordPlanKeyword() == other.hasKeywordPlanKeyword()); + if (hasKeywordPlanKeyword()) { + result = result && getKeywordPlanKeyword() + .equals(other.getKeywordPlanKeyword()); } - if (accountBudgetProposal_ != null) { - output.writeMessage(43, getAccountBudgetProposal()); + result = result && (hasLanguageConstant() == other.hasLanguageConstant()); + if (hasLanguageConstant()) { + result = result && getLanguageConstant() + .equals(other.getLanguageConstant()); } - if (topicView_ != null) { - output.writeMessage(44, getTopicView()); + result = result && (hasManagedPlacementView() == other.hasManagedPlacementView()); + if (hasManagedPlacementView()) { + result = result && getManagedPlacementView() + .equals(other.getManagedPlacementView()); } - if (parentalStatusView_ != null) { - output.writeMessage(45, getParentalStatusView()); + result = result && (hasMediaFile() == other.hasMediaFile()); + if (hasMediaFile()) { + result = result && getMediaFile() + .equals(other.getMediaFile()); } - if (feed_ != null) { - output.writeMessage(46, getFeed()); - } - if (displayKeywordView_ != null) { - output.writeMessage(47, getDisplayKeywordView()); - } - if (ageRangeView_ != null) { - output.writeMessage(48, getAgeRangeView()); - } - if (feedItem_ != null) { - output.writeMessage(50, getFeedItem()); - } - if (hotelGroupView_ != null) { - output.writeMessage(51, getHotelGroupView()); - } - if (managedPlacementView_ != null) { - output.writeMessage(53, getManagedPlacementView()); - } - if (productGroupView_ != null) { - output.writeMessage(54, getProductGroupView()); - } - if (languageConstant_ != null) { - output.writeMessage(55, getLanguageConstant()); - } - if (searchTermMatchType_ != com.google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType.UNSPECIFIED.getNumber()) { - output.writeEnum(56, searchTermMatchType_); - } - if (adGroupAudienceView_ != null) { - output.writeMessage(57, getAdGroupAudienceView()); - } - if (feedMapping_ != null) { - output.writeMessage(58, getFeedMapping()); - } - if (userInterest_ != null) { - output.writeMessage(59, getUserInterest()); - } - if (customerManagerLink_ != null) { - output.writeMessage(61, getCustomerManagerLink()); - } - if (customerClientLink_ != null) { - output.writeMessage(62, getCustomerClientLink()); - } - if (campaignFeed_ != null) { - output.writeMessage(63, getCampaignFeed()); - } - if (customerFeed_ != null) { - output.writeMessage(64, getCustomerFeed()); - } - if (placeholderType_ != com.google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType.UNSPECIFIED.getNumber()) { - output.writeEnum(65, placeholderType_); - } - if (carrierConstant_ != null) { - output.writeMessage(66, getCarrierConstant()); + result = result && (hasMobileAppCategoryConstant() == other.hasMobileAppCategoryConstant()); + if (hasMobileAppCategoryConstant()) { + result = result && getMobileAppCategoryConstant() + .equals(other.getMobileAppCategoryConstant()); } - if (adGroupFeed_ != null) { - output.writeMessage(67, getAdGroupFeed()); + result = result && (hasMobileDeviceConstant() == other.hasMobileDeviceConstant()); + if (hasMobileDeviceConstant()) { + result = result && getMobileDeviceConstant() + .equals(other.getMobileDeviceConstant()); } - if (searchTermView_ != null) { - output.writeMessage(68, getSearchTermView()); + result = result && (hasOperatingSystemVersionConstant() == other.hasOperatingSystemVersionConstant()); + if (hasOperatingSystemVersionConstant()) { + result = result && getOperatingSystemVersionConstant() + .equals(other.getOperatingSystemVersionConstant()); } - if (campaignAudienceView_ != null) { - output.writeMessage(69, getCampaignAudienceView()); + result = result && (hasParentalStatusView() == other.hasParentalStatusView()); + if (hasParentalStatusView()) { + result = result && getParentalStatusView() + .equals(other.getParentalStatusView()); } - if (customerClient_ != null) { - output.writeMessage(70, getCustomerClient()); + result = result && (hasProductGroupView() == other.hasProductGroupView()); + if (hasProductGroupView()) { + result = result && getProductGroupView() + .equals(other.getProductGroupView()); } - if (hotelPerformanceView_ != null) { - output.writeMessage(71, getHotelPerformanceView()); + result = result && (hasRecommendation() == other.hasRecommendation()); + if (hasRecommendation()) { + result = result && getRecommendation() + .equals(other.getRecommendation()); } - if (hotelCenterId_ != null) { - output.writeMessage(72, getHotelCenterId()); + result = result && (hasSearchTermView() == other.hasSearchTermView()); + if (hasSearchTermView()) { + result = result && getSearchTermView() + .equals(other.getSearchTermView()); } - if (hotelCheckInDate_ != null) { - output.writeMessage(73, getHotelCheckInDate()); + result = result && (hasSharedCriterion() == other.hasSharedCriterion()); + if (hasSharedCriterion()) { + result = result && getSharedCriterion() + .equals(other.getSharedCriterion()); } - if (hotelCheckInDayOfWeek_ != com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek.UNSPECIFIED.getNumber()) { - output.writeEnum(74, hotelCheckInDayOfWeek_); + result = result && (hasSharedSet() == other.hasSharedSet()); + if (hasSharedSet()) { + result = result && getSharedSet() + .equals(other.getSharedSet()); } - if (hotelCity_ != null) { - output.writeMessage(75, getHotelCity()); + result = result && (hasTopicView() == other.hasTopicView()); + if (hasTopicView()) { + result = result && getTopicView() + .equals(other.getTopicView()); } - if (hotelClass_ != null) { - output.writeMessage(76, getHotelClass()); + result = result && (hasUserInterest() == other.hasUserInterest()); + if (hasUserInterest()) { + result = result && getUserInterest() + .equals(other.getUserInterest()); } - if (hotelCountry_ != null) { - output.writeMessage(77, getHotelCountry()); + result = result && (hasUserList() == other.hasUserList()); + if (hasUserList()) { + result = result && getUserList() + .equals(other.getUserList()); } - if (hotelDateSelectionType_ != com.google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType.UNSPECIFIED.getNumber()) { - output.writeEnum(78, hotelDateSelectionType_); + result = result && (hasRemarketingAction() == other.hasRemarketingAction()); + if (hasRemarketingAction()) { + result = result && getRemarketingAction() + .equals(other.getRemarketingAction()); } - if (hotelLengthOfStay_ != null) { - output.writeMessage(79, getHotelLengthOfStay()); + result = result && (hasTopicConstant() == other.hasTopicConstant()); + if (hasTopicConstant()) { + result = result && getTopicConstant() + .equals(other.getTopicConstant()); } - if (hotelState_ != null) { - output.writeMessage(81, getHotelState()); + result = result && (hasVideo() == other.hasVideo()); + if (hasVideo()) { + result = result && getVideo() + .equals(other.getVideo()); } - if (partnerHotelId_ != null) { - output.writeMessage(82, getPartnerHotelId()); + result = result && (hasMetrics() == other.hasMetrics()); + if (hasMetrics()) { + result = result && getMetrics() + .equals(other.getMetrics()); } - if (hotelBookingWindowDays_ != null) { - output.writeMessage(83, getHotelBookingWindowDays()); + result = result && (hasSegments() == other.hasSegments()); + if (hasSegments()) { + result = result && getSegments() + .equals(other.getSegments()); } - unknownFields.writeTo(output); + result = result && unknownFields.equals(other.unknownFields); + return result; } @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (customer_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCustomer()); + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - if (campaign_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCampaign()); + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAccountBudget()) { + hash = (37 * hash) + ACCOUNT_BUDGET_FIELD_NUMBER; + hash = (53 * hash) + getAccountBudget().hashCode(); } - if (adGroup_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getAdGroup()); + if (hasAccountBudgetProposal()) { + hash = (37 * hash) + ACCOUNT_BUDGET_PROPOSAL_FIELD_NUMBER; + hash = (53 * hash) + getAccountBudgetProposal().hashCode(); } - if (metrics_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getMetrics()); + if (hasAdGroup()) { + hash = (37 * hash) + AD_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getAdGroup().hashCode(); } - if (adNetworkType_ != com.google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, adNetworkType_); + if (hasAdGroupAd()) { + hash = (37 * hash) + AD_GROUP_AD_FIELD_NUMBER; + hash = (53 * hash) + getAdGroupAd().hashCode(); } - if (date_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getDate()); + if (hasAdGroupAudienceView()) { + hash = (37 * hash) + AD_GROUP_AUDIENCE_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getAdGroupAudienceView().hashCode(); } - if (dayOfWeek_ != com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, dayOfWeek_); + if (hasAdGroupBidModifier()) { + hash = (37 * hash) + AD_GROUP_BID_MODIFIER_FIELD_NUMBER; + hash = (53 * hash) + getAdGroupBidModifier().hashCode(); } - if (device_ != com.google.ads.googleads.v0.enums.DeviceEnum.Device.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, device_); + if (hasAdGroupCriterion()) { + hash = (37 * hash) + AD_GROUP_CRITERION_FIELD_NUMBER; + hash = (53 * hash) + getAdGroupCriterion().hashCode(); } - if (hour_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getHour()); + if (hasAdGroupFeed()) { + hash = (37 * hash) + AD_GROUP_FEED_FIELD_NUMBER; + hash = (53 * hash) + getAdGroupFeed().hashCode(); } - if (month_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getMonth()); + if (hasAgeRangeView()) { + hash = (37 * hash) + AGE_RANGE_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getAgeRangeView().hashCode(); } - if (quarter_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getQuarter()); + if (hasAdScheduleView()) { + hash = (37 * hash) + AD_SCHEDULE_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getAdScheduleView().hashCode(); } - if (slot_ != com.google.ads.googleads.v0.enums.SlotEnum.Slot.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(13, slot_); + if (hasBiddingStrategy()) { + hash = (37 * hash) + BIDDING_STRATEGY_FIELD_NUMBER; + hash = (53 * hash) + getBiddingStrategy().hashCode(); } - if (week_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getWeek()); + if (hasBillingSetup()) { + hash = (37 * hash) + BILLING_SETUP_FIELD_NUMBER; + hash = (53 * hash) + getBillingSetup().hashCode(); } - if (year_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, getYear()); + if (hasCampaignBudget()) { + hash = (37 * hash) + CAMPAIGN_BUDGET_FIELD_NUMBER; + hash = (53 * hash) + getCampaignBudget().hashCode(); } - if (adGroupAd_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getAdGroupAd()); + if (hasCampaign()) { + hash = (37 * hash) + CAMPAIGN_FIELD_NUMBER; + hash = (53 * hash) + getCampaign().hashCode(); } - if (adGroupCriterion_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getAdGroupCriterion()); + if (hasCampaignAudienceView()) { + hash = (37 * hash) + CAMPAIGN_AUDIENCE_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getCampaignAudienceView().hashCode(); } - if (biddingStrategy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, getBiddingStrategy()); + if (hasCampaignBidModifier()) { + hash = (37 * hash) + CAMPAIGN_BID_MODIFIER_FIELD_NUMBER; + hash = (53 * hash) + getCampaignBidModifier().hashCode(); } - if (campaignBudget_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, getCampaignBudget()); + if (hasCampaignCriterion()) { + hash = (37 * hash) + CAMPAIGN_CRITERION_FIELD_NUMBER; + hash = (53 * hash) + getCampaignCriterion().hashCode(); } - if (campaignCriterion_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, getCampaignCriterion()); + if (hasCampaignFeed()) { + hash = (37 * hash) + CAMPAIGN_FEED_FIELD_NUMBER; + hash = (53 * hash) + getCampaignFeed().hashCode(); } - if (keywordView_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, getKeywordView()); + if (hasCampaignSharedSet()) { + hash = (37 * hash) + CAMPAIGN_SHARED_SET_FIELD_NUMBER; + hash = (53 * hash) + getCampaignSharedSet().hashCode(); } - if (recommendation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, getRecommendation()); + if (hasCarrierConstant()) { + hash = (37 * hash) + CARRIER_CONSTANT_FIELD_NUMBER; + hash = (53 * hash) + getCarrierConstant().hashCode(); } - if (geoTargetConstant_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(23, getGeoTargetConstant()); + if (hasChangeStatus()) { + hash = (37 * hash) + CHANGE_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getChangeStatus().hashCode(); } - if (adGroupBidModifier_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(24, getAdGroupBidModifier()); + if (hasConversionAction()) { + hash = (37 * hash) + CONVERSION_ACTION_FIELD_NUMBER; + hash = (53 * hash) + getConversionAction().hashCode(); } - if (campaignGroup_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(25, getCampaignGroup()); + if (hasCustomer()) { + hash = (37 * hash) + CUSTOMER_FIELD_NUMBER; + hash = (53 * hash) + getCustomer().hashCode(); } - if (campaignBidModifier_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(26, getCampaignBidModifier()); + if (hasCustomerManagerLink()) { + hash = (37 * hash) + CUSTOMER_MANAGER_LINK_FIELD_NUMBER; + hash = (53 * hash) + getCustomerManagerLink().hashCode(); } - if (sharedSet_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(27, getSharedSet()); + if (hasCustomerClientLink()) { + hash = (37 * hash) + CUSTOMER_CLIENT_LINK_FIELD_NUMBER; + hash = (53 * hash) + getCustomerClientLink().hashCode(); } - if (monthOfYear_ != com.google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(28, monthOfYear_); + if (hasCustomerClient()) { + hash = (37 * hash) + CUSTOMER_CLIENT_FIELD_NUMBER; + hash = (53 * hash) + getCustomerClient().hashCode(); } - if (sharedCriterion_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(29, getSharedCriterion()); + if (hasCustomerFeed()) { + hash = (37 * hash) + CUSTOMER_FEED_FIELD_NUMBER; + hash = (53 * hash) + getCustomerFeed().hashCode(); } - if (campaignSharedSet_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(30, getCampaignSharedSet()); - } - if (topicConstant_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(31, getTopicConstant()); - } - if (keywordPlan_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(32, getKeywordPlan()); - } - if (keywordPlanCampaign_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(33, getKeywordPlanCampaign()); - } - if (keywordPlanNegativeKeyword_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(34, getKeywordPlanNegativeKeyword()); - } - if (keywordPlanAdGroup_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(35, getKeywordPlanAdGroup()); - } - if (keywordPlanKeyword_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(36, getKeywordPlanKeyword()); - } - if (changeStatus_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(37, getChangeStatus()); - } - if (userList_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(38, getUserList()); - } - if (video_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(39, getVideo()); - } - if (genderView_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(40, getGenderView()); - } - if (billingSetup_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(41, getBillingSetup()); - } - if (accountBudget_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(42, getAccountBudget()); - } - if (accountBudgetProposal_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(43, getAccountBudgetProposal()); - } - if (topicView_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(44, getTopicView()); - } - if (parentalStatusView_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(45, getParentalStatusView()); - } - if (feed_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(46, getFeed()); - } - if (displayKeywordView_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(47, getDisplayKeywordView()); - } - if (ageRangeView_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(48, getAgeRangeView()); - } - if (feedItem_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(50, getFeedItem()); - } - if (hotelGroupView_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(51, getHotelGroupView()); - } - if (managedPlacementView_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(53, getManagedPlacementView()); - } - if (productGroupView_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(54, getProductGroupView()); - } - if (languageConstant_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(55, getLanguageConstant()); - } - if (searchTermMatchType_ != com.google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(56, searchTermMatchType_); - } - if (adGroupAudienceView_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(57, getAdGroupAudienceView()); - } - if (feedMapping_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(58, getFeedMapping()); - } - if (userInterest_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(59, getUserInterest()); - } - if (customerManagerLink_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(61, getCustomerManagerLink()); - } - if (customerClientLink_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(62, getCustomerClientLink()); - } - if (campaignFeed_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(63, getCampaignFeed()); - } - if (customerFeed_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(64, getCustomerFeed()); - } - if (placeholderType_ != com.google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(65, placeholderType_); - } - if (carrierConstant_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(66, getCarrierConstant()); - } - if (adGroupFeed_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(67, getAdGroupFeed()); - } - if (searchTermView_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(68, getSearchTermView()); - } - if (campaignAudienceView_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(69, getCampaignAudienceView()); - } - if (customerClient_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(70, getCustomerClient()); - } - if (hotelPerformanceView_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(71, getHotelPerformanceView()); - } - if (hotelCenterId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(72, getHotelCenterId()); - } - if (hotelCheckInDate_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(73, getHotelCheckInDate()); - } - if (hotelCheckInDayOfWeek_ != com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(74, hotelCheckInDayOfWeek_); - } - if (hotelCity_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(75, getHotelCity()); - } - if (hotelClass_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(76, getHotelClass()); - } - if (hotelCountry_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(77, getHotelCountry()); - } - if (hotelDateSelectionType_ != com.google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(78, hotelDateSelectionType_); - } - if (hotelLengthOfStay_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(79, getHotelLengthOfStay()); - } - if (hotelState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(81, getHotelState()); - } - if (partnerHotelId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(82, getPartnerHotelId()); - } - if (hotelBookingWindowDays_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(83, getHotelBookingWindowDays()); - } - size += unknownFields.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.ads.googleads.v0.services.GoogleAdsRow)) { - return super.equals(obj); - } - com.google.ads.googleads.v0.services.GoogleAdsRow other = (com.google.ads.googleads.v0.services.GoogleAdsRow) obj; - - boolean result = true; - result = result && (hasAccountBudget() == other.hasAccountBudget()); - if (hasAccountBudget()) { - result = result && getAccountBudget() - .equals(other.getAccountBudget()); - } - result = result && (hasAccountBudgetProposal() == other.hasAccountBudgetProposal()); - if (hasAccountBudgetProposal()) { - result = result && getAccountBudgetProposal() - .equals(other.getAccountBudgetProposal()); - } - result = result && (hasAdGroup() == other.hasAdGroup()); - if (hasAdGroup()) { - result = result && getAdGroup() - .equals(other.getAdGroup()); - } - result = result && (hasAdGroupAd() == other.hasAdGroupAd()); - if (hasAdGroupAd()) { - result = result && getAdGroupAd() - .equals(other.getAdGroupAd()); - } - result = result && (hasAdGroupAudienceView() == other.hasAdGroupAudienceView()); - if (hasAdGroupAudienceView()) { - result = result && getAdGroupAudienceView() - .equals(other.getAdGroupAudienceView()); - } - result = result && (hasAdGroupBidModifier() == other.hasAdGroupBidModifier()); - if (hasAdGroupBidModifier()) { - result = result && getAdGroupBidModifier() - .equals(other.getAdGroupBidModifier()); - } - result = result && (hasAdGroupCriterion() == other.hasAdGroupCriterion()); - if (hasAdGroupCriterion()) { - result = result && getAdGroupCriterion() - .equals(other.getAdGroupCriterion()); - } - result = result && (hasAdGroupFeed() == other.hasAdGroupFeed()); - if (hasAdGroupFeed()) { - result = result && getAdGroupFeed() - .equals(other.getAdGroupFeed()); - } - result = result && (hasAgeRangeView() == other.hasAgeRangeView()); - if (hasAgeRangeView()) { - result = result && getAgeRangeView() - .equals(other.getAgeRangeView()); - } - result = result && (hasBiddingStrategy() == other.hasBiddingStrategy()); - if (hasBiddingStrategy()) { - result = result && getBiddingStrategy() - .equals(other.getBiddingStrategy()); - } - result = result && (hasBillingSetup() == other.hasBillingSetup()); - if (hasBillingSetup()) { - result = result && getBillingSetup() - .equals(other.getBillingSetup()); - } - result = result && (hasCampaignBudget() == other.hasCampaignBudget()); - if (hasCampaignBudget()) { - result = result && getCampaignBudget() - .equals(other.getCampaignBudget()); - } - result = result && (hasCampaign() == other.hasCampaign()); - if (hasCampaign()) { - result = result && getCampaign() - .equals(other.getCampaign()); - } - result = result && (hasCampaignAudienceView() == other.hasCampaignAudienceView()); - if (hasCampaignAudienceView()) { - result = result && getCampaignAudienceView() - .equals(other.getCampaignAudienceView()); - } - result = result && (hasCampaignBidModifier() == other.hasCampaignBidModifier()); - if (hasCampaignBidModifier()) { - result = result && getCampaignBidModifier() - .equals(other.getCampaignBidModifier()); - } - result = result && (hasCampaignCriterion() == other.hasCampaignCriterion()); - if (hasCampaignCriterion()) { - result = result && getCampaignCriterion() - .equals(other.getCampaignCriterion()); - } - result = result && (hasCampaignFeed() == other.hasCampaignFeed()); - if (hasCampaignFeed()) { - result = result && getCampaignFeed() - .equals(other.getCampaignFeed()); - } - result = result && (hasCampaignGroup() == other.hasCampaignGroup()); - if (hasCampaignGroup()) { - result = result && getCampaignGroup() - .equals(other.getCampaignGroup()); - } - result = result && (hasCampaignSharedSet() == other.hasCampaignSharedSet()); - if (hasCampaignSharedSet()) { - result = result && getCampaignSharedSet() - .equals(other.getCampaignSharedSet()); - } - result = result && (hasCarrierConstant() == other.hasCarrierConstant()); - if (hasCarrierConstant()) { - result = result && getCarrierConstant() - .equals(other.getCarrierConstant()); - } - result = result && (hasChangeStatus() == other.hasChangeStatus()); - if (hasChangeStatus()) { - result = result && getChangeStatus() - .equals(other.getChangeStatus()); - } - result = result && (hasCustomer() == other.hasCustomer()); - if (hasCustomer()) { - result = result && getCustomer() - .equals(other.getCustomer()); - } - result = result && (hasCustomerManagerLink() == other.hasCustomerManagerLink()); - if (hasCustomerManagerLink()) { - result = result && getCustomerManagerLink() - .equals(other.getCustomerManagerLink()); - } - result = result && (hasCustomerClientLink() == other.hasCustomerClientLink()); - if (hasCustomerClientLink()) { - result = result && getCustomerClientLink() - .equals(other.getCustomerClientLink()); - } - result = result && (hasCustomerClient() == other.hasCustomerClient()); - if (hasCustomerClient()) { - result = result && getCustomerClient() - .equals(other.getCustomerClient()); - } - result = result && (hasCustomerFeed() == other.hasCustomerFeed()); - if (hasCustomerFeed()) { - result = result && getCustomerFeed() - .equals(other.getCustomerFeed()); - } - result = result && (hasDisplayKeywordView() == other.hasDisplayKeywordView()); - if (hasDisplayKeywordView()) { - result = result && getDisplayKeywordView() - .equals(other.getDisplayKeywordView()); - } - result = result && (hasFeed() == other.hasFeed()); - if (hasFeed()) { - result = result && getFeed() - .equals(other.getFeed()); - } - result = result && (hasFeedItem() == other.hasFeedItem()); - if (hasFeedItem()) { - result = result && getFeedItem() - .equals(other.getFeedItem()); - } - result = result && (hasFeedMapping() == other.hasFeedMapping()); - if (hasFeedMapping()) { - result = result && getFeedMapping() - .equals(other.getFeedMapping()); - } - result = result && (hasGenderView() == other.hasGenderView()); - if (hasGenderView()) { - result = result && getGenderView() - .equals(other.getGenderView()); - } - result = result && (hasGeoTargetConstant() == other.hasGeoTargetConstant()); - if (hasGeoTargetConstant()) { - result = result && getGeoTargetConstant() - .equals(other.getGeoTargetConstant()); - } - result = result && (hasHotelGroupView() == other.hasHotelGroupView()); - if (hasHotelGroupView()) { - result = result && getHotelGroupView() - .equals(other.getHotelGroupView()); - } - result = result && (hasHotelPerformanceView() == other.hasHotelPerformanceView()); - if (hasHotelPerformanceView()) { - result = result && getHotelPerformanceView() - .equals(other.getHotelPerformanceView()); - } - result = result && (hasKeywordView() == other.hasKeywordView()); - if (hasKeywordView()) { - result = result && getKeywordView() - .equals(other.getKeywordView()); - } - result = result && (hasKeywordPlan() == other.hasKeywordPlan()); - if (hasKeywordPlan()) { - result = result && getKeywordPlan() - .equals(other.getKeywordPlan()); - } - result = result && (hasKeywordPlanCampaign() == other.hasKeywordPlanCampaign()); - if (hasKeywordPlanCampaign()) { - result = result && getKeywordPlanCampaign() - .equals(other.getKeywordPlanCampaign()); - } - result = result && (hasKeywordPlanNegativeKeyword() == other.hasKeywordPlanNegativeKeyword()); - if (hasKeywordPlanNegativeKeyword()) { - result = result && getKeywordPlanNegativeKeyword() - .equals(other.getKeywordPlanNegativeKeyword()); - } - result = result && (hasKeywordPlanAdGroup() == other.hasKeywordPlanAdGroup()); - if (hasKeywordPlanAdGroup()) { - result = result && getKeywordPlanAdGroup() - .equals(other.getKeywordPlanAdGroup()); - } - result = result && (hasKeywordPlanKeyword() == other.hasKeywordPlanKeyword()); - if (hasKeywordPlanKeyword()) { - result = result && getKeywordPlanKeyword() - .equals(other.getKeywordPlanKeyword()); - } - result = result && (hasLanguageConstant() == other.hasLanguageConstant()); - if (hasLanguageConstant()) { - result = result && getLanguageConstant() - .equals(other.getLanguageConstant()); - } - result = result && (hasManagedPlacementView() == other.hasManagedPlacementView()); - if (hasManagedPlacementView()) { - result = result && getManagedPlacementView() - .equals(other.getManagedPlacementView()); - } - result = result && (hasParentalStatusView() == other.hasParentalStatusView()); - if (hasParentalStatusView()) { - result = result && getParentalStatusView() - .equals(other.getParentalStatusView()); - } - result = result && (hasProductGroupView() == other.hasProductGroupView()); - if (hasProductGroupView()) { - result = result && getProductGroupView() - .equals(other.getProductGroupView()); - } - result = result && (hasRecommendation() == other.hasRecommendation()); - if (hasRecommendation()) { - result = result && getRecommendation() - .equals(other.getRecommendation()); - } - result = result && (hasSearchTermView() == other.hasSearchTermView()); - if (hasSearchTermView()) { - result = result && getSearchTermView() - .equals(other.getSearchTermView()); - } - result = result && (hasSharedCriterion() == other.hasSharedCriterion()); - if (hasSharedCriterion()) { - result = result && getSharedCriterion() - .equals(other.getSharedCriterion()); - } - result = result && (hasSharedSet() == other.hasSharedSet()); - if (hasSharedSet()) { - result = result && getSharedSet() - .equals(other.getSharedSet()); - } - result = result && (hasTopicView() == other.hasTopicView()); - if (hasTopicView()) { - result = result && getTopicView() - .equals(other.getTopicView()); - } - result = result && (hasUserInterest() == other.hasUserInterest()); - if (hasUserInterest()) { - result = result && getUserInterest() - .equals(other.getUserInterest()); - } - result = result && (hasUserList() == other.hasUserList()); - if (hasUserList()) { - result = result && getUserList() - .equals(other.getUserList()); - } - result = result && (hasTopicConstant() == other.hasTopicConstant()); - if (hasTopicConstant()) { - result = result && getTopicConstant() - .equals(other.getTopicConstant()); - } - result = result && (hasVideo() == other.hasVideo()); - if (hasVideo()) { - result = result && getVideo() - .equals(other.getVideo()); - } - result = result && (hasMetrics() == other.hasMetrics()); - if (hasMetrics()) { - result = result && getMetrics() - .equals(other.getMetrics()); - } - result = result && adNetworkType_ == other.adNetworkType_; - result = result && (hasDate() == other.hasDate()); - if (hasDate()) { - result = result && getDate() - .equals(other.getDate()); - } - result = result && dayOfWeek_ == other.dayOfWeek_; - result = result && device_ == other.device_; - result = result && (hasHotelBookingWindowDays() == other.hasHotelBookingWindowDays()); - if (hasHotelBookingWindowDays()) { - result = result && getHotelBookingWindowDays() - .equals(other.getHotelBookingWindowDays()); - } - result = result && (hasHotelCenterId() == other.hasHotelCenterId()); - if (hasHotelCenterId()) { - result = result && getHotelCenterId() - .equals(other.getHotelCenterId()); - } - result = result && (hasHotelCheckInDate() == other.hasHotelCheckInDate()); - if (hasHotelCheckInDate()) { - result = result && getHotelCheckInDate() - .equals(other.getHotelCheckInDate()); - } - result = result && hotelCheckInDayOfWeek_ == other.hotelCheckInDayOfWeek_; - result = result && (hasHotelCity() == other.hasHotelCity()); - if (hasHotelCity()) { - result = result && getHotelCity() - .equals(other.getHotelCity()); - } - result = result && (hasHotelClass() == other.hasHotelClass()); - if (hasHotelClass()) { - result = result && getHotelClass() - .equals(other.getHotelClass()); - } - result = result && (hasHotelCountry() == other.hasHotelCountry()); - if (hasHotelCountry()) { - result = result && getHotelCountry() - .equals(other.getHotelCountry()); - } - result = result && hotelDateSelectionType_ == other.hotelDateSelectionType_; - result = result && (hasHotelLengthOfStay() == other.hasHotelLengthOfStay()); - if (hasHotelLengthOfStay()) { - result = result && getHotelLengthOfStay() - .equals(other.getHotelLengthOfStay()); - } - result = result && (hasHotelState() == other.hasHotelState()); - if (hasHotelState()) { - result = result && getHotelState() - .equals(other.getHotelState()); - } - result = result && (hasHour() == other.hasHour()); - if (hasHour()) { - result = result && getHour() - .equals(other.getHour()); - } - result = result && (hasMonth() == other.hasMonth()); - if (hasMonth()) { - result = result && getMonth() - .equals(other.getMonth()); - } - result = result && monthOfYear_ == other.monthOfYear_; - result = result && (hasPartnerHotelId() == other.hasPartnerHotelId()); - if (hasPartnerHotelId()) { - result = result && getPartnerHotelId() - .equals(other.getPartnerHotelId()); - } - result = result && placeholderType_ == other.placeholderType_; - result = result && (hasQuarter() == other.hasQuarter()); - if (hasQuarter()) { - result = result && getQuarter() - .equals(other.getQuarter()); - } - result = result && searchTermMatchType_ == other.searchTermMatchType_; - result = result && slot_ == other.slot_; - result = result && (hasWeek() == other.hasWeek()); - if (hasWeek()) { - result = result && getWeek() - .equals(other.getWeek()); - } - result = result && (hasYear() == other.hasYear()); - if (hasYear()) { - result = result && getYear() - .equals(other.getYear()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasAccountBudget()) { - hash = (37 * hash) + ACCOUNT_BUDGET_FIELD_NUMBER; - hash = (53 * hash) + getAccountBudget().hashCode(); - } - if (hasAccountBudgetProposal()) { - hash = (37 * hash) + ACCOUNT_BUDGET_PROPOSAL_FIELD_NUMBER; - hash = (53 * hash) + getAccountBudgetProposal().hashCode(); - } - if (hasAdGroup()) { - hash = (37 * hash) + AD_GROUP_FIELD_NUMBER; - hash = (53 * hash) + getAdGroup().hashCode(); - } - if (hasAdGroupAd()) { - hash = (37 * hash) + AD_GROUP_AD_FIELD_NUMBER; - hash = (53 * hash) + getAdGroupAd().hashCode(); - } - if (hasAdGroupAudienceView()) { - hash = (37 * hash) + AD_GROUP_AUDIENCE_VIEW_FIELD_NUMBER; - hash = (53 * hash) + getAdGroupAudienceView().hashCode(); - } - if (hasAdGroupBidModifier()) { - hash = (37 * hash) + AD_GROUP_BID_MODIFIER_FIELD_NUMBER; - hash = (53 * hash) + getAdGroupBidModifier().hashCode(); - } - if (hasAdGroupCriterion()) { - hash = (37 * hash) + AD_GROUP_CRITERION_FIELD_NUMBER; - hash = (53 * hash) + getAdGroupCriterion().hashCode(); - } - if (hasAdGroupFeed()) { - hash = (37 * hash) + AD_GROUP_FEED_FIELD_NUMBER; - hash = (53 * hash) + getAdGroupFeed().hashCode(); - } - if (hasAgeRangeView()) { - hash = (37 * hash) + AGE_RANGE_VIEW_FIELD_NUMBER; - hash = (53 * hash) + getAgeRangeView().hashCode(); - } - if (hasBiddingStrategy()) { - hash = (37 * hash) + BIDDING_STRATEGY_FIELD_NUMBER; - hash = (53 * hash) + getBiddingStrategy().hashCode(); - } - if (hasBillingSetup()) { - hash = (37 * hash) + BILLING_SETUP_FIELD_NUMBER; - hash = (53 * hash) + getBillingSetup().hashCode(); - } - if (hasCampaignBudget()) { - hash = (37 * hash) + CAMPAIGN_BUDGET_FIELD_NUMBER; - hash = (53 * hash) + getCampaignBudget().hashCode(); - } - if (hasCampaign()) { - hash = (37 * hash) + CAMPAIGN_FIELD_NUMBER; - hash = (53 * hash) + getCampaign().hashCode(); - } - if (hasCampaignAudienceView()) { - hash = (37 * hash) + CAMPAIGN_AUDIENCE_VIEW_FIELD_NUMBER; - hash = (53 * hash) + getCampaignAudienceView().hashCode(); - } - if (hasCampaignBidModifier()) { - hash = (37 * hash) + CAMPAIGN_BID_MODIFIER_FIELD_NUMBER; - hash = (53 * hash) + getCampaignBidModifier().hashCode(); - } - if (hasCampaignCriterion()) { - hash = (37 * hash) + CAMPAIGN_CRITERION_FIELD_NUMBER; - hash = (53 * hash) + getCampaignCriterion().hashCode(); - } - if (hasCampaignFeed()) { - hash = (37 * hash) + CAMPAIGN_FEED_FIELD_NUMBER; - hash = (53 * hash) + getCampaignFeed().hashCode(); - } - if (hasCampaignGroup()) { - hash = (37 * hash) + CAMPAIGN_GROUP_FIELD_NUMBER; - hash = (53 * hash) + getCampaignGroup().hashCode(); - } - if (hasCampaignSharedSet()) { - hash = (37 * hash) + CAMPAIGN_SHARED_SET_FIELD_NUMBER; - hash = (53 * hash) + getCampaignSharedSet().hashCode(); - } - if (hasCarrierConstant()) { - hash = (37 * hash) + CARRIER_CONSTANT_FIELD_NUMBER; - hash = (53 * hash) + getCarrierConstant().hashCode(); - } - if (hasChangeStatus()) { - hash = (37 * hash) + CHANGE_STATUS_FIELD_NUMBER; - hash = (53 * hash) + getChangeStatus().hashCode(); - } - if (hasCustomer()) { - hash = (37 * hash) + CUSTOMER_FIELD_NUMBER; - hash = (53 * hash) + getCustomer().hashCode(); - } - if (hasCustomerManagerLink()) { - hash = (37 * hash) + CUSTOMER_MANAGER_LINK_FIELD_NUMBER; - hash = (53 * hash) + getCustomerManagerLink().hashCode(); - } - if (hasCustomerClientLink()) { - hash = (37 * hash) + CUSTOMER_CLIENT_LINK_FIELD_NUMBER; - hash = (53 * hash) + getCustomerClientLink().hashCode(); - } - if (hasCustomerClient()) { - hash = (37 * hash) + CUSTOMER_CLIENT_FIELD_NUMBER; - hash = (53 * hash) + getCustomerClient().hashCode(); - } - if (hasCustomerFeed()) { - hash = (37 * hash) + CUSTOMER_FEED_FIELD_NUMBER; - hash = (53 * hash) + getCustomerFeed().hashCode(); - } - if (hasDisplayKeywordView()) { - hash = (37 * hash) + DISPLAY_KEYWORD_VIEW_FIELD_NUMBER; - hash = (53 * hash) + getDisplayKeywordView().hashCode(); - } - if (hasFeed()) { - hash = (37 * hash) + FEED_FIELD_NUMBER; - hash = (53 * hash) + getFeed().hashCode(); - } - if (hasFeedItem()) { - hash = (37 * hash) + FEED_ITEM_FIELD_NUMBER; - hash = (53 * hash) + getFeedItem().hashCode(); - } - if (hasFeedMapping()) { - hash = (37 * hash) + FEED_MAPPING_FIELD_NUMBER; - hash = (53 * hash) + getFeedMapping().hashCode(); - } - if (hasGenderView()) { - hash = (37 * hash) + GENDER_VIEW_FIELD_NUMBER; - hash = (53 * hash) + getGenderView().hashCode(); - } - if (hasGeoTargetConstant()) { - hash = (37 * hash) + GEO_TARGET_CONSTANT_FIELD_NUMBER; - hash = (53 * hash) + getGeoTargetConstant().hashCode(); - } - if (hasHotelGroupView()) { - hash = (37 * hash) + HOTEL_GROUP_VIEW_FIELD_NUMBER; - hash = (53 * hash) + getHotelGroupView().hashCode(); - } - if (hasHotelPerformanceView()) { - hash = (37 * hash) + HOTEL_PERFORMANCE_VIEW_FIELD_NUMBER; - hash = (53 * hash) + getHotelPerformanceView().hashCode(); - } - if (hasKeywordView()) { - hash = (37 * hash) + KEYWORD_VIEW_FIELD_NUMBER; - hash = (53 * hash) + getKeywordView().hashCode(); - } - if (hasKeywordPlan()) { - hash = (37 * hash) + KEYWORD_PLAN_FIELD_NUMBER; - hash = (53 * hash) + getKeywordPlan().hashCode(); - } - if (hasKeywordPlanCampaign()) { - hash = (37 * hash) + KEYWORD_PLAN_CAMPAIGN_FIELD_NUMBER; - hash = (53 * hash) + getKeywordPlanCampaign().hashCode(); - } - if (hasKeywordPlanNegativeKeyword()) { - hash = (37 * hash) + KEYWORD_PLAN_NEGATIVE_KEYWORD_FIELD_NUMBER; - hash = (53 * hash) + getKeywordPlanNegativeKeyword().hashCode(); - } - if (hasKeywordPlanAdGroup()) { - hash = (37 * hash) + KEYWORD_PLAN_AD_GROUP_FIELD_NUMBER; - hash = (53 * hash) + getKeywordPlanAdGroup().hashCode(); - } - if (hasKeywordPlanKeyword()) { - hash = (37 * hash) + KEYWORD_PLAN_KEYWORD_FIELD_NUMBER; - hash = (53 * hash) + getKeywordPlanKeyword().hashCode(); - } - if (hasLanguageConstant()) { - hash = (37 * hash) + LANGUAGE_CONSTANT_FIELD_NUMBER; - hash = (53 * hash) + getLanguageConstant().hashCode(); - } - if (hasManagedPlacementView()) { - hash = (37 * hash) + MANAGED_PLACEMENT_VIEW_FIELD_NUMBER; - hash = (53 * hash) + getManagedPlacementView().hashCode(); - } - if (hasParentalStatusView()) { - hash = (37 * hash) + PARENTAL_STATUS_VIEW_FIELD_NUMBER; - hash = (53 * hash) + getParentalStatusView().hashCode(); - } - if (hasProductGroupView()) { - hash = (37 * hash) + PRODUCT_GROUP_VIEW_FIELD_NUMBER; - hash = (53 * hash) + getProductGroupView().hashCode(); - } - if (hasRecommendation()) { - hash = (37 * hash) + RECOMMENDATION_FIELD_NUMBER; - hash = (53 * hash) + getRecommendation().hashCode(); - } - if (hasSearchTermView()) { - hash = (37 * hash) + SEARCH_TERM_VIEW_FIELD_NUMBER; - hash = (53 * hash) + getSearchTermView().hashCode(); - } - if (hasSharedCriterion()) { - hash = (37 * hash) + SHARED_CRITERION_FIELD_NUMBER; - hash = (53 * hash) + getSharedCriterion().hashCode(); - } - if (hasSharedSet()) { - hash = (37 * hash) + SHARED_SET_FIELD_NUMBER; - hash = (53 * hash) + getSharedSet().hashCode(); - } - if (hasTopicView()) { - hash = (37 * hash) + TOPIC_VIEW_FIELD_NUMBER; - hash = (53 * hash) + getTopicView().hashCode(); - } - if (hasUserInterest()) { - hash = (37 * hash) + USER_INTEREST_FIELD_NUMBER; - hash = (53 * hash) + getUserInterest().hashCode(); - } - if (hasUserList()) { - hash = (37 * hash) + USER_LIST_FIELD_NUMBER; - hash = (53 * hash) + getUserList().hashCode(); - } - if (hasTopicConstant()) { - hash = (37 * hash) + TOPIC_CONSTANT_FIELD_NUMBER; - hash = (53 * hash) + getTopicConstant().hashCode(); - } - if (hasVideo()) { - hash = (37 * hash) + VIDEO_FIELD_NUMBER; - hash = (53 * hash) + getVideo().hashCode(); - } - if (hasMetrics()) { - hash = (37 * hash) + METRICS_FIELD_NUMBER; - hash = (53 * hash) + getMetrics().hashCode(); - } - hash = (37 * hash) + AD_NETWORK_TYPE_FIELD_NUMBER; - hash = (53 * hash) + adNetworkType_; - if (hasDate()) { - hash = (37 * hash) + DATE_FIELD_NUMBER; - hash = (53 * hash) + getDate().hashCode(); - } - hash = (37 * hash) + DAY_OF_WEEK_FIELD_NUMBER; - hash = (53 * hash) + dayOfWeek_; - hash = (37 * hash) + DEVICE_FIELD_NUMBER; - hash = (53 * hash) + device_; - if (hasHotelBookingWindowDays()) { - hash = (37 * hash) + HOTEL_BOOKING_WINDOW_DAYS_FIELD_NUMBER; - hash = (53 * hash) + getHotelBookingWindowDays().hashCode(); - } - if (hasHotelCenterId()) { - hash = (37 * hash) + HOTEL_CENTER_ID_FIELD_NUMBER; - hash = (53 * hash) + getHotelCenterId().hashCode(); - } - if (hasHotelCheckInDate()) { - hash = (37 * hash) + HOTEL_CHECK_IN_DATE_FIELD_NUMBER; - hash = (53 * hash) + getHotelCheckInDate().hashCode(); - } - hash = (37 * hash) + HOTEL_CHECK_IN_DAY_OF_WEEK_FIELD_NUMBER; - hash = (53 * hash) + hotelCheckInDayOfWeek_; - if (hasHotelCity()) { - hash = (37 * hash) + HOTEL_CITY_FIELD_NUMBER; - hash = (53 * hash) + getHotelCity().hashCode(); - } - if (hasHotelClass()) { - hash = (37 * hash) + HOTEL_CLASS_FIELD_NUMBER; - hash = (53 * hash) + getHotelClass().hashCode(); - } - if (hasHotelCountry()) { - hash = (37 * hash) + HOTEL_COUNTRY_FIELD_NUMBER; - hash = (53 * hash) + getHotelCountry().hashCode(); - } - hash = (37 * hash) + HOTEL_DATE_SELECTION_TYPE_FIELD_NUMBER; - hash = (53 * hash) + hotelDateSelectionType_; - if (hasHotelLengthOfStay()) { - hash = (37 * hash) + HOTEL_LENGTH_OF_STAY_FIELD_NUMBER; - hash = (53 * hash) + getHotelLengthOfStay().hashCode(); - } - if (hasHotelState()) { - hash = (37 * hash) + HOTEL_STATE_FIELD_NUMBER; - hash = (53 * hash) + getHotelState().hashCode(); - } - if (hasHour()) { - hash = (37 * hash) + HOUR_FIELD_NUMBER; - hash = (53 * hash) + getHour().hashCode(); - } - if (hasMonth()) { - hash = (37 * hash) + MONTH_FIELD_NUMBER; - hash = (53 * hash) + getMonth().hashCode(); - } - hash = (37 * hash) + MONTH_OF_YEAR_FIELD_NUMBER; - hash = (53 * hash) + monthOfYear_; - if (hasPartnerHotelId()) { - hash = (37 * hash) + PARTNER_HOTEL_ID_FIELD_NUMBER; - hash = (53 * hash) + getPartnerHotelId().hashCode(); - } - hash = (37 * hash) + PLACEHOLDER_TYPE_FIELD_NUMBER; - hash = (53 * hash) + placeholderType_; - if (hasQuarter()) { - hash = (37 * hash) + QUARTER_FIELD_NUMBER; - hash = (53 * hash) + getQuarter().hashCode(); - } - hash = (37 * hash) + SEARCH_TERM_MATCH_TYPE_FIELD_NUMBER; - hash = (53 * hash) + searchTermMatchType_; - hash = (37 * hash) + SLOT_FIELD_NUMBER; - hash = (53 * hash) + slot_; - if (hasWeek()) { - hash = (37 * hash) + WEEK_FIELD_NUMBER; - hash = (53 * hash) + getWeek().hashCode(); - } - if (hasYear()) { - hash = (37 * hash) + YEAR_FIELD_NUMBER; - hash = (53 * hash) + getYear().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.ads.googleads.v0.services.GoogleAdsRow parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.ads.googleads.v0.services.GoogleAdsRow parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.ads.googleads.v0.services.GoogleAdsRow parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.ads.googleads.v0.services.GoogleAdsRow 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.ads.googleads.v0.services.GoogleAdsRow parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.ads.googleads.v0.services.GoogleAdsRow parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.ads.googleads.v0.services.GoogleAdsRow parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.ads.googleads.v0.services.GoogleAdsRow 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.ads.googleads.v0.services.GoogleAdsRow parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.ads.googleads.v0.services.GoogleAdsRow 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.ads.googleads.v0.services.GoogleAdsRow parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.ads.googleads.v0.services.GoogleAdsRow 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.ads.googleads.v0.services.GoogleAdsRow prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A returned row from the query.
-   * 
- * - * Protobuf type {@code google.ads.googleads.v0.services.GoogleAdsRow} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.services.GoogleAdsRow) - com.google.ads.googleads.v0.services.GoogleAdsRowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.ads.googleads.v0.services.GoogleAdsServiceProto.internal_static_google_ads_googleads_v0_services_GoogleAdsRow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.googleads.v0.services.GoogleAdsServiceProto.internal_static_google_ads_googleads_v0_services_GoogleAdsRow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.googleads.v0.services.GoogleAdsRow.class, com.google.ads.googleads.v0.services.GoogleAdsRow.Builder.class); - } - - // Construct using com.google.ads.googleads.v0.services.GoogleAdsRow.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (accountBudgetBuilder_ == null) { - accountBudget_ = null; - } else { - accountBudget_ = null; - accountBudgetBuilder_ = null; - } - if (accountBudgetProposalBuilder_ == null) { - accountBudgetProposal_ = null; - } else { - accountBudgetProposal_ = null; - accountBudgetProposalBuilder_ = null; - } - if (adGroupBuilder_ == null) { - adGroup_ = null; - } else { - adGroup_ = null; - adGroupBuilder_ = null; - } - if (adGroupAdBuilder_ == null) { - adGroupAd_ = null; - } else { - adGroupAd_ = null; - adGroupAdBuilder_ = null; - } - if (adGroupAudienceViewBuilder_ == null) { - adGroupAudienceView_ = null; - } else { - adGroupAudienceView_ = null; - adGroupAudienceViewBuilder_ = null; - } - if (adGroupBidModifierBuilder_ == null) { - adGroupBidModifier_ = null; - } else { - adGroupBidModifier_ = null; - adGroupBidModifierBuilder_ = null; - } - if (adGroupCriterionBuilder_ == null) { - adGroupCriterion_ = null; - } else { - adGroupCriterion_ = null; - adGroupCriterionBuilder_ = null; - } - if (adGroupFeedBuilder_ == null) { - adGroupFeed_ = null; - } else { - adGroupFeed_ = null; - adGroupFeedBuilder_ = null; - } - if (ageRangeViewBuilder_ == null) { - ageRangeView_ = null; - } else { - ageRangeView_ = null; - ageRangeViewBuilder_ = null; - } - if (biddingStrategyBuilder_ == null) { - biddingStrategy_ = null; - } else { - biddingStrategy_ = null; - biddingStrategyBuilder_ = null; - } - if (billingSetupBuilder_ == null) { - billingSetup_ = null; - } else { - billingSetup_ = null; - billingSetupBuilder_ = null; - } - if (campaignBudgetBuilder_ == null) { - campaignBudget_ = null; - } else { - campaignBudget_ = null; - campaignBudgetBuilder_ = null; - } - if (campaignBuilder_ == null) { - campaign_ = null; - } else { - campaign_ = null; - campaignBuilder_ = null; - } - if (campaignAudienceViewBuilder_ == null) { - campaignAudienceView_ = null; - } else { - campaignAudienceView_ = null; - campaignAudienceViewBuilder_ = null; - } - if (campaignBidModifierBuilder_ == null) { - campaignBidModifier_ = null; - } else { - campaignBidModifier_ = null; - campaignBidModifierBuilder_ = null; - } - if (campaignCriterionBuilder_ == null) { - campaignCriterion_ = null; - } else { - campaignCriterion_ = null; - campaignCriterionBuilder_ = null; - } - if (campaignFeedBuilder_ == null) { - campaignFeed_ = null; - } else { - campaignFeed_ = null; - campaignFeedBuilder_ = null; - } - if (campaignGroupBuilder_ == null) { - campaignGroup_ = null; - } else { - campaignGroup_ = null; - campaignGroupBuilder_ = null; - } - if (campaignSharedSetBuilder_ == null) { - campaignSharedSet_ = null; - } else { - campaignSharedSet_ = null; - campaignSharedSetBuilder_ = null; - } - if (carrierConstantBuilder_ == null) { - carrierConstant_ = null; - } else { - carrierConstant_ = null; - carrierConstantBuilder_ = null; - } - if (changeStatusBuilder_ == null) { - changeStatus_ = null; - } else { - changeStatus_ = null; - changeStatusBuilder_ = null; - } - if (customerBuilder_ == null) { - customer_ = null; - } else { - customer_ = null; - customerBuilder_ = null; - } - if (customerManagerLinkBuilder_ == null) { - customerManagerLink_ = null; - } else { - customerManagerLink_ = null; - customerManagerLinkBuilder_ = null; - } - if (customerClientLinkBuilder_ == null) { - customerClientLink_ = null; - } else { - customerClientLink_ = null; - customerClientLinkBuilder_ = null; - } - if (customerClientBuilder_ == null) { - customerClient_ = null; - } else { - customerClient_ = null; - customerClientBuilder_ = null; - } - if (customerFeedBuilder_ == null) { - customerFeed_ = null; - } else { - customerFeed_ = null; - customerFeedBuilder_ = null; - } - if (displayKeywordViewBuilder_ == null) { - displayKeywordView_ = null; - } else { - displayKeywordView_ = null; - displayKeywordViewBuilder_ = null; - } - if (feedBuilder_ == null) { - feed_ = null; - } else { - feed_ = null; - feedBuilder_ = null; - } - if (feedItemBuilder_ == null) { - feedItem_ = null; - } else { - feedItem_ = null; - feedItemBuilder_ = null; - } - if (feedMappingBuilder_ == null) { - feedMapping_ = null; - } else { - feedMapping_ = null; - feedMappingBuilder_ = null; - } - if (genderViewBuilder_ == null) { - genderView_ = null; - } else { - genderView_ = null; - genderViewBuilder_ = null; - } - if (geoTargetConstantBuilder_ == null) { - geoTargetConstant_ = null; - } else { - geoTargetConstant_ = null; - geoTargetConstantBuilder_ = null; - } - if (hotelGroupViewBuilder_ == null) { - hotelGroupView_ = null; - } else { - hotelGroupView_ = null; - hotelGroupViewBuilder_ = null; - } - if (hotelPerformanceViewBuilder_ == null) { - hotelPerformanceView_ = null; - } else { - hotelPerformanceView_ = null; - hotelPerformanceViewBuilder_ = null; - } - if (keywordViewBuilder_ == null) { - keywordView_ = null; - } else { - keywordView_ = null; - keywordViewBuilder_ = null; - } - if (keywordPlanBuilder_ == null) { - keywordPlan_ = null; - } else { - keywordPlan_ = null; - keywordPlanBuilder_ = null; - } - if (keywordPlanCampaignBuilder_ == null) { - keywordPlanCampaign_ = null; - } else { - keywordPlanCampaign_ = null; - keywordPlanCampaignBuilder_ = null; - } - if (keywordPlanNegativeKeywordBuilder_ == null) { - keywordPlanNegativeKeyword_ = null; - } else { - keywordPlanNegativeKeyword_ = null; - keywordPlanNegativeKeywordBuilder_ = null; - } - if (keywordPlanAdGroupBuilder_ == null) { - keywordPlanAdGroup_ = null; - } else { - keywordPlanAdGroup_ = null; - keywordPlanAdGroupBuilder_ = null; - } - if (keywordPlanKeywordBuilder_ == null) { - keywordPlanKeyword_ = null; - } else { - keywordPlanKeyword_ = null; - keywordPlanKeywordBuilder_ = null; - } - if (languageConstantBuilder_ == null) { - languageConstant_ = null; - } else { - languageConstant_ = null; - languageConstantBuilder_ = null; - } - if (managedPlacementViewBuilder_ == null) { - managedPlacementView_ = null; - } else { - managedPlacementView_ = null; - managedPlacementViewBuilder_ = null; - } - if (parentalStatusViewBuilder_ == null) { - parentalStatusView_ = null; - } else { - parentalStatusView_ = null; - parentalStatusViewBuilder_ = null; - } - if (productGroupViewBuilder_ == null) { - productGroupView_ = null; - } else { - productGroupView_ = null; - productGroupViewBuilder_ = null; - } - if (recommendationBuilder_ == null) { - recommendation_ = null; - } else { - recommendation_ = null; - recommendationBuilder_ = null; - } - if (searchTermViewBuilder_ == null) { - searchTermView_ = null; - } else { - searchTermView_ = null; - searchTermViewBuilder_ = null; - } - if (sharedCriterionBuilder_ == null) { - sharedCriterion_ = null; - } else { - sharedCriterion_ = null; - sharedCriterionBuilder_ = null; - } - if (sharedSetBuilder_ == null) { - sharedSet_ = null; - } else { - sharedSet_ = null; - sharedSetBuilder_ = null; - } - if (topicViewBuilder_ == null) { - topicView_ = null; - } else { - topicView_ = null; - topicViewBuilder_ = null; - } - if (userInterestBuilder_ == null) { - userInterest_ = null; - } else { - userInterest_ = null; - userInterestBuilder_ = null; - } - if (userListBuilder_ == null) { - userList_ = null; - } else { - userList_ = null; - userListBuilder_ = null; - } - if (topicConstantBuilder_ == null) { - topicConstant_ = null; - } else { - topicConstant_ = null; - topicConstantBuilder_ = null; - } - if (videoBuilder_ == null) { - video_ = null; - } else { - video_ = null; - videoBuilder_ = null; - } - if (metricsBuilder_ == null) { - metrics_ = null; - } else { - metrics_ = null; - metricsBuilder_ = null; - } - adNetworkType_ = 0; - - if (dateBuilder_ == null) { - date_ = null; - } else { - date_ = null; - dateBuilder_ = null; - } - dayOfWeek_ = 0; - - device_ = 0; - - if (hotelBookingWindowDaysBuilder_ == null) { - hotelBookingWindowDays_ = null; - } else { - hotelBookingWindowDays_ = null; - hotelBookingWindowDaysBuilder_ = null; - } - if (hotelCenterIdBuilder_ == null) { - hotelCenterId_ = null; - } else { - hotelCenterId_ = null; - hotelCenterIdBuilder_ = null; - } - if (hotelCheckInDateBuilder_ == null) { - hotelCheckInDate_ = null; - } else { - hotelCheckInDate_ = null; - hotelCheckInDateBuilder_ = null; - } - hotelCheckInDayOfWeek_ = 0; - - if (hotelCityBuilder_ == null) { - hotelCity_ = null; - } else { - hotelCity_ = null; - hotelCityBuilder_ = null; - } - if (hotelClassBuilder_ == null) { - hotelClass_ = null; - } else { - hotelClass_ = null; - hotelClassBuilder_ = null; - } - if (hotelCountryBuilder_ == null) { - hotelCountry_ = null; - } else { - hotelCountry_ = null; - hotelCountryBuilder_ = null; - } - hotelDateSelectionType_ = 0; - - if (hotelLengthOfStayBuilder_ == null) { - hotelLengthOfStay_ = null; - } else { - hotelLengthOfStay_ = null; - hotelLengthOfStayBuilder_ = null; - } - if (hotelStateBuilder_ == null) { - hotelState_ = null; - } else { - hotelState_ = null; - hotelStateBuilder_ = null; - } - if (hourBuilder_ == null) { - hour_ = null; - } else { - hour_ = null; - hourBuilder_ = null; - } - if (monthBuilder_ == null) { - month_ = null; - } else { - month_ = null; - monthBuilder_ = null; - } - monthOfYear_ = 0; - - if (partnerHotelIdBuilder_ == null) { - partnerHotelId_ = null; - } else { - partnerHotelId_ = null; - partnerHotelIdBuilder_ = null; - } - placeholderType_ = 0; - - if (quarterBuilder_ == null) { - quarter_ = null; - } else { - quarter_ = null; - quarterBuilder_ = null; - } - searchTermMatchType_ = 0; - - slot_ = 0; - - if (weekBuilder_ == null) { - week_ = null; - } else { - week_ = null; - weekBuilder_ = null; - } - if (yearBuilder_ == null) { - year_ = null; - } else { - year_ = null; - yearBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.ads.googleads.v0.services.GoogleAdsServiceProto.internal_static_google_ads_googleads_v0_services_GoogleAdsRow_descriptor; - } - - @java.lang.Override - public com.google.ads.googleads.v0.services.GoogleAdsRow getDefaultInstanceForType() { - return com.google.ads.googleads.v0.services.GoogleAdsRow.getDefaultInstance(); - } - - @java.lang.Override - public com.google.ads.googleads.v0.services.GoogleAdsRow build() { - com.google.ads.googleads.v0.services.GoogleAdsRow result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.ads.googleads.v0.services.GoogleAdsRow buildPartial() { - com.google.ads.googleads.v0.services.GoogleAdsRow result = new com.google.ads.googleads.v0.services.GoogleAdsRow(this); - if (accountBudgetBuilder_ == null) { - result.accountBudget_ = accountBudget_; - } else { - result.accountBudget_ = accountBudgetBuilder_.build(); - } - if (accountBudgetProposalBuilder_ == null) { - result.accountBudgetProposal_ = accountBudgetProposal_; - } else { - result.accountBudgetProposal_ = accountBudgetProposalBuilder_.build(); - } - if (adGroupBuilder_ == null) { - result.adGroup_ = adGroup_; - } else { - result.adGroup_ = adGroupBuilder_.build(); - } - if (adGroupAdBuilder_ == null) { - result.adGroupAd_ = adGroupAd_; - } else { - result.adGroupAd_ = adGroupAdBuilder_.build(); - } - if (adGroupAudienceViewBuilder_ == null) { - result.adGroupAudienceView_ = adGroupAudienceView_; - } else { - result.adGroupAudienceView_ = adGroupAudienceViewBuilder_.build(); - } - if (adGroupBidModifierBuilder_ == null) { - result.adGroupBidModifier_ = adGroupBidModifier_; - } else { - result.adGroupBidModifier_ = adGroupBidModifierBuilder_.build(); - } - if (adGroupCriterionBuilder_ == null) { - result.adGroupCriterion_ = adGroupCriterion_; - } else { - result.adGroupCriterion_ = adGroupCriterionBuilder_.build(); - } - if (adGroupFeedBuilder_ == null) { - result.adGroupFeed_ = adGroupFeed_; - } else { - result.adGroupFeed_ = adGroupFeedBuilder_.build(); - } - if (ageRangeViewBuilder_ == null) { - result.ageRangeView_ = ageRangeView_; - } else { - result.ageRangeView_ = ageRangeViewBuilder_.build(); - } - if (biddingStrategyBuilder_ == null) { - result.biddingStrategy_ = biddingStrategy_; - } else { - result.biddingStrategy_ = biddingStrategyBuilder_.build(); - } - if (billingSetupBuilder_ == null) { - result.billingSetup_ = billingSetup_; - } else { - result.billingSetup_ = billingSetupBuilder_.build(); - } - if (campaignBudgetBuilder_ == null) { - result.campaignBudget_ = campaignBudget_; - } else { - result.campaignBudget_ = campaignBudgetBuilder_.build(); - } - if (campaignBuilder_ == null) { - result.campaign_ = campaign_; - } else { - result.campaign_ = campaignBuilder_.build(); - } - if (campaignAudienceViewBuilder_ == null) { - result.campaignAudienceView_ = campaignAudienceView_; - } else { - result.campaignAudienceView_ = campaignAudienceViewBuilder_.build(); - } - if (campaignBidModifierBuilder_ == null) { - result.campaignBidModifier_ = campaignBidModifier_; - } else { - result.campaignBidModifier_ = campaignBidModifierBuilder_.build(); - } - if (campaignCriterionBuilder_ == null) { - result.campaignCriterion_ = campaignCriterion_; - } else { - result.campaignCriterion_ = campaignCriterionBuilder_.build(); - } - if (campaignFeedBuilder_ == null) { - result.campaignFeed_ = campaignFeed_; - } else { - result.campaignFeed_ = campaignFeedBuilder_.build(); - } - if (campaignGroupBuilder_ == null) { - result.campaignGroup_ = campaignGroup_; - } else { - result.campaignGroup_ = campaignGroupBuilder_.build(); - } - if (campaignSharedSetBuilder_ == null) { - result.campaignSharedSet_ = campaignSharedSet_; - } else { - result.campaignSharedSet_ = campaignSharedSetBuilder_.build(); - } - if (carrierConstantBuilder_ == null) { - result.carrierConstant_ = carrierConstant_; - } else { - result.carrierConstant_ = carrierConstantBuilder_.build(); - } - if (changeStatusBuilder_ == null) { - result.changeStatus_ = changeStatus_; - } else { - result.changeStatus_ = changeStatusBuilder_.build(); - } - if (customerBuilder_ == null) { - result.customer_ = customer_; - } else { - result.customer_ = customerBuilder_.build(); - } - if (customerManagerLinkBuilder_ == null) { - result.customerManagerLink_ = customerManagerLink_; - } else { - result.customerManagerLink_ = customerManagerLinkBuilder_.build(); - } - if (customerClientLinkBuilder_ == null) { - result.customerClientLink_ = customerClientLink_; - } else { - result.customerClientLink_ = customerClientLinkBuilder_.build(); - } - if (customerClientBuilder_ == null) { - result.customerClient_ = customerClient_; - } else { - result.customerClient_ = customerClientBuilder_.build(); - } - if (customerFeedBuilder_ == null) { - result.customerFeed_ = customerFeed_; - } else { - result.customerFeed_ = customerFeedBuilder_.build(); - } - if (displayKeywordViewBuilder_ == null) { - result.displayKeywordView_ = displayKeywordView_; - } else { - result.displayKeywordView_ = displayKeywordViewBuilder_.build(); - } - if (feedBuilder_ == null) { - result.feed_ = feed_; - } else { - result.feed_ = feedBuilder_.build(); - } - if (feedItemBuilder_ == null) { - result.feedItem_ = feedItem_; - } else { - result.feedItem_ = feedItemBuilder_.build(); - } - if (feedMappingBuilder_ == null) { - result.feedMapping_ = feedMapping_; - } else { - result.feedMapping_ = feedMappingBuilder_.build(); - } - if (genderViewBuilder_ == null) { - result.genderView_ = genderView_; - } else { - result.genderView_ = genderViewBuilder_.build(); - } - if (geoTargetConstantBuilder_ == null) { - result.geoTargetConstant_ = geoTargetConstant_; - } else { - result.geoTargetConstant_ = geoTargetConstantBuilder_.build(); - } - if (hotelGroupViewBuilder_ == null) { - result.hotelGroupView_ = hotelGroupView_; - } else { - result.hotelGroupView_ = hotelGroupViewBuilder_.build(); - } - if (hotelPerformanceViewBuilder_ == null) { - result.hotelPerformanceView_ = hotelPerformanceView_; - } else { - result.hotelPerformanceView_ = hotelPerformanceViewBuilder_.build(); - } - if (keywordViewBuilder_ == null) { - result.keywordView_ = keywordView_; - } else { - result.keywordView_ = keywordViewBuilder_.build(); - } - if (keywordPlanBuilder_ == null) { - result.keywordPlan_ = keywordPlan_; - } else { - result.keywordPlan_ = keywordPlanBuilder_.build(); - } - if (keywordPlanCampaignBuilder_ == null) { - result.keywordPlanCampaign_ = keywordPlanCampaign_; - } else { - result.keywordPlanCampaign_ = keywordPlanCampaignBuilder_.build(); - } - if (keywordPlanNegativeKeywordBuilder_ == null) { - result.keywordPlanNegativeKeyword_ = keywordPlanNegativeKeyword_; - } else { - result.keywordPlanNegativeKeyword_ = keywordPlanNegativeKeywordBuilder_.build(); - } - if (keywordPlanAdGroupBuilder_ == null) { - result.keywordPlanAdGroup_ = keywordPlanAdGroup_; - } else { - result.keywordPlanAdGroup_ = keywordPlanAdGroupBuilder_.build(); - } - if (keywordPlanKeywordBuilder_ == null) { - result.keywordPlanKeyword_ = keywordPlanKeyword_; - } else { - result.keywordPlanKeyword_ = keywordPlanKeywordBuilder_.build(); - } - if (languageConstantBuilder_ == null) { - result.languageConstant_ = languageConstant_; - } else { - result.languageConstant_ = languageConstantBuilder_.build(); - } - if (managedPlacementViewBuilder_ == null) { - result.managedPlacementView_ = managedPlacementView_; - } else { - result.managedPlacementView_ = managedPlacementViewBuilder_.build(); - } - if (parentalStatusViewBuilder_ == null) { - result.parentalStatusView_ = parentalStatusView_; - } else { - result.parentalStatusView_ = parentalStatusViewBuilder_.build(); - } - if (productGroupViewBuilder_ == null) { - result.productGroupView_ = productGroupView_; - } else { - result.productGroupView_ = productGroupViewBuilder_.build(); - } - if (recommendationBuilder_ == null) { - result.recommendation_ = recommendation_; - } else { - result.recommendation_ = recommendationBuilder_.build(); - } - if (searchTermViewBuilder_ == null) { - result.searchTermView_ = searchTermView_; - } else { - result.searchTermView_ = searchTermViewBuilder_.build(); - } - if (sharedCriterionBuilder_ == null) { - result.sharedCriterion_ = sharedCriterion_; - } else { - result.sharedCriterion_ = sharedCriterionBuilder_.build(); - } - if (sharedSetBuilder_ == null) { - result.sharedSet_ = sharedSet_; - } else { - result.sharedSet_ = sharedSetBuilder_.build(); - } - if (topicViewBuilder_ == null) { - result.topicView_ = topicView_; - } else { - result.topicView_ = topicViewBuilder_.build(); - } - if (userInterestBuilder_ == null) { - result.userInterest_ = userInterest_; - } else { - result.userInterest_ = userInterestBuilder_.build(); - } - if (userListBuilder_ == null) { - result.userList_ = userList_; - } else { - result.userList_ = userListBuilder_.build(); - } - if (topicConstantBuilder_ == null) { - result.topicConstant_ = topicConstant_; - } else { - result.topicConstant_ = topicConstantBuilder_.build(); - } - if (videoBuilder_ == null) { - result.video_ = video_; - } else { - result.video_ = videoBuilder_.build(); - } - if (metricsBuilder_ == null) { - result.metrics_ = metrics_; - } else { - result.metrics_ = metricsBuilder_.build(); + if (hasDisplayKeywordView()) { + hash = (37 * hash) + DISPLAY_KEYWORD_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getDisplayKeywordView().hashCode(); + } + if (hasFeed()) { + hash = (37 * hash) + FEED_FIELD_NUMBER; + hash = (53 * hash) + getFeed().hashCode(); + } + if (hasFeedItem()) { + hash = (37 * hash) + FEED_ITEM_FIELD_NUMBER; + hash = (53 * hash) + getFeedItem().hashCode(); + } + if (hasFeedMapping()) { + hash = (37 * hash) + FEED_MAPPING_FIELD_NUMBER; + hash = (53 * hash) + getFeedMapping().hashCode(); + } + if (hasGenderView()) { + hash = (37 * hash) + GENDER_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getGenderView().hashCode(); + } + if (hasGeoTargetConstant()) { + hash = (37 * hash) + GEO_TARGET_CONSTANT_FIELD_NUMBER; + hash = (53 * hash) + getGeoTargetConstant().hashCode(); + } + if (hasHotelGroupView()) { + hash = (37 * hash) + HOTEL_GROUP_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getHotelGroupView().hashCode(); + } + if (hasHotelPerformanceView()) { + hash = (37 * hash) + HOTEL_PERFORMANCE_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getHotelPerformanceView().hashCode(); + } + if (hasKeywordView()) { + hash = (37 * hash) + KEYWORD_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getKeywordView().hashCode(); + } + if (hasKeywordPlan()) { + hash = (37 * hash) + KEYWORD_PLAN_FIELD_NUMBER; + hash = (53 * hash) + getKeywordPlan().hashCode(); + } + if (hasKeywordPlanCampaign()) { + hash = (37 * hash) + KEYWORD_PLAN_CAMPAIGN_FIELD_NUMBER; + hash = (53 * hash) + getKeywordPlanCampaign().hashCode(); + } + if (hasKeywordPlanNegativeKeyword()) { + hash = (37 * hash) + KEYWORD_PLAN_NEGATIVE_KEYWORD_FIELD_NUMBER; + hash = (53 * hash) + getKeywordPlanNegativeKeyword().hashCode(); + } + if (hasKeywordPlanAdGroup()) { + hash = (37 * hash) + KEYWORD_PLAN_AD_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getKeywordPlanAdGroup().hashCode(); + } + if (hasKeywordPlanKeyword()) { + hash = (37 * hash) + KEYWORD_PLAN_KEYWORD_FIELD_NUMBER; + hash = (53 * hash) + getKeywordPlanKeyword().hashCode(); + } + if (hasLanguageConstant()) { + hash = (37 * hash) + LANGUAGE_CONSTANT_FIELD_NUMBER; + hash = (53 * hash) + getLanguageConstant().hashCode(); + } + if (hasManagedPlacementView()) { + hash = (37 * hash) + MANAGED_PLACEMENT_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getManagedPlacementView().hashCode(); + } + if (hasMediaFile()) { + hash = (37 * hash) + MEDIA_FILE_FIELD_NUMBER; + hash = (53 * hash) + getMediaFile().hashCode(); + } + if (hasMobileAppCategoryConstant()) { + hash = (37 * hash) + MOBILE_APP_CATEGORY_CONSTANT_FIELD_NUMBER; + hash = (53 * hash) + getMobileAppCategoryConstant().hashCode(); + } + if (hasMobileDeviceConstant()) { + hash = (37 * hash) + MOBILE_DEVICE_CONSTANT_FIELD_NUMBER; + hash = (53 * hash) + getMobileDeviceConstant().hashCode(); + } + if (hasOperatingSystemVersionConstant()) { + hash = (37 * hash) + OPERATING_SYSTEM_VERSION_CONSTANT_FIELD_NUMBER; + hash = (53 * hash) + getOperatingSystemVersionConstant().hashCode(); + } + if (hasParentalStatusView()) { + hash = (37 * hash) + PARENTAL_STATUS_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getParentalStatusView().hashCode(); + } + if (hasProductGroupView()) { + hash = (37 * hash) + PRODUCT_GROUP_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getProductGroupView().hashCode(); + } + if (hasRecommendation()) { + hash = (37 * hash) + RECOMMENDATION_FIELD_NUMBER; + hash = (53 * hash) + getRecommendation().hashCode(); + } + if (hasSearchTermView()) { + hash = (37 * hash) + SEARCH_TERM_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getSearchTermView().hashCode(); + } + if (hasSharedCriterion()) { + hash = (37 * hash) + SHARED_CRITERION_FIELD_NUMBER; + hash = (53 * hash) + getSharedCriterion().hashCode(); + } + if (hasSharedSet()) { + hash = (37 * hash) + SHARED_SET_FIELD_NUMBER; + hash = (53 * hash) + getSharedSet().hashCode(); + } + if (hasTopicView()) { + hash = (37 * hash) + TOPIC_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getTopicView().hashCode(); + } + if (hasUserInterest()) { + hash = (37 * hash) + USER_INTEREST_FIELD_NUMBER; + hash = (53 * hash) + getUserInterest().hashCode(); + } + if (hasUserList()) { + hash = (37 * hash) + USER_LIST_FIELD_NUMBER; + hash = (53 * hash) + getUserList().hashCode(); + } + if (hasRemarketingAction()) { + hash = (37 * hash) + REMARKETING_ACTION_FIELD_NUMBER; + hash = (53 * hash) + getRemarketingAction().hashCode(); + } + if (hasTopicConstant()) { + hash = (37 * hash) + TOPIC_CONSTANT_FIELD_NUMBER; + hash = (53 * hash) + getTopicConstant().hashCode(); + } + if (hasVideo()) { + hash = (37 * hash) + VIDEO_FIELD_NUMBER; + hash = (53 * hash) + getVideo().hashCode(); + } + if (hasMetrics()) { + hash = (37 * hash) + METRICS_FIELD_NUMBER; + hash = (53 * hash) + getMetrics().hashCode(); + } + if (hasSegments()) { + hash = (37 * hash) + SEGMENTS_FIELD_NUMBER; + hash = (53 * hash) + getSegments().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.services.GoogleAdsRow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.GoogleAdsRow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.services.GoogleAdsRow parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.GoogleAdsRow 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.ads.googleads.v0.services.GoogleAdsRow parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.GoogleAdsRow parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.services.GoogleAdsRow parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.GoogleAdsRow 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.ads.googleads.v0.services.GoogleAdsRow parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.GoogleAdsRow 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.ads.googleads.v0.services.GoogleAdsRow parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.GoogleAdsRow 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.ads.googleads.v0.services.GoogleAdsRow prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A returned row from the query.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.services.GoogleAdsRow} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.services.GoogleAdsRow) + com.google.ads.googleads.v0.services.GoogleAdsRowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.services.GoogleAdsServiceProto.internal_static_google_ads_googleads_v0_services_GoogleAdsRow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.services.GoogleAdsServiceProto.internal_static_google_ads_googleads_v0_services_GoogleAdsRow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.services.GoogleAdsRow.class, com.google.ads.googleads.v0.services.GoogleAdsRow.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.services.GoogleAdsRow.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { } - result.adNetworkType_ = adNetworkType_; - if (dateBuilder_ == null) { - result.date_ = date_; + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (accountBudgetBuilder_ == null) { + accountBudget_ = null; } else { - result.date_ = dateBuilder_.build(); + accountBudget_ = null; + accountBudgetBuilder_ = null; } - result.dayOfWeek_ = dayOfWeek_; - result.device_ = device_; - if (hotelBookingWindowDaysBuilder_ == null) { - result.hotelBookingWindowDays_ = hotelBookingWindowDays_; + if (accountBudgetProposalBuilder_ == null) { + accountBudgetProposal_ = null; } else { - result.hotelBookingWindowDays_ = hotelBookingWindowDaysBuilder_.build(); + accountBudgetProposal_ = null; + accountBudgetProposalBuilder_ = null; } - if (hotelCenterIdBuilder_ == null) { - result.hotelCenterId_ = hotelCenterId_; + if (adGroupBuilder_ == null) { + adGroup_ = null; } else { - result.hotelCenterId_ = hotelCenterIdBuilder_.build(); + adGroup_ = null; + adGroupBuilder_ = null; } - if (hotelCheckInDateBuilder_ == null) { - result.hotelCheckInDate_ = hotelCheckInDate_; + if (adGroupAdBuilder_ == null) { + adGroupAd_ = null; } else { - result.hotelCheckInDate_ = hotelCheckInDateBuilder_.build(); + adGroupAd_ = null; + adGroupAdBuilder_ = null; } - result.hotelCheckInDayOfWeek_ = hotelCheckInDayOfWeek_; - if (hotelCityBuilder_ == null) { - result.hotelCity_ = hotelCity_; + if (adGroupAudienceViewBuilder_ == null) { + adGroupAudienceView_ = null; } else { - result.hotelCity_ = hotelCityBuilder_.build(); + adGroupAudienceView_ = null; + adGroupAudienceViewBuilder_ = null; } - if (hotelClassBuilder_ == null) { - result.hotelClass_ = hotelClass_; + if (adGroupBidModifierBuilder_ == null) { + adGroupBidModifier_ = null; } else { - result.hotelClass_ = hotelClassBuilder_.build(); + adGroupBidModifier_ = null; + adGroupBidModifierBuilder_ = null; } - if (hotelCountryBuilder_ == null) { - result.hotelCountry_ = hotelCountry_; + if (adGroupCriterionBuilder_ == null) { + adGroupCriterion_ = null; } else { - result.hotelCountry_ = hotelCountryBuilder_.build(); + adGroupCriterion_ = null; + adGroupCriterionBuilder_ = null; } - result.hotelDateSelectionType_ = hotelDateSelectionType_; - if (hotelLengthOfStayBuilder_ == null) { - result.hotelLengthOfStay_ = hotelLengthOfStay_; + if (adGroupFeedBuilder_ == null) { + adGroupFeed_ = null; } else { - result.hotelLengthOfStay_ = hotelLengthOfStayBuilder_.build(); + adGroupFeed_ = null; + adGroupFeedBuilder_ = null; } - if (hotelStateBuilder_ == null) { - result.hotelState_ = hotelState_; + if (ageRangeViewBuilder_ == null) { + ageRangeView_ = null; } else { - result.hotelState_ = hotelStateBuilder_.build(); + ageRangeView_ = null; + ageRangeViewBuilder_ = null; } - if (hourBuilder_ == null) { - result.hour_ = hour_; + if (adScheduleViewBuilder_ == null) { + adScheduleView_ = null; } else { - result.hour_ = hourBuilder_.build(); + adScheduleView_ = null; + adScheduleViewBuilder_ = null; } - if (monthBuilder_ == null) { - result.month_ = month_; + if (biddingStrategyBuilder_ == null) { + biddingStrategy_ = null; } else { - result.month_ = monthBuilder_.build(); + biddingStrategy_ = null; + biddingStrategyBuilder_ = null; } - result.monthOfYear_ = monthOfYear_; - if (partnerHotelIdBuilder_ == null) { - result.partnerHotelId_ = partnerHotelId_; + if (billingSetupBuilder_ == null) { + billingSetup_ = null; } else { - result.partnerHotelId_ = partnerHotelIdBuilder_.build(); + billingSetup_ = null; + billingSetupBuilder_ = null; } - result.placeholderType_ = placeholderType_; - if (quarterBuilder_ == null) { - result.quarter_ = quarter_; + if (campaignBudgetBuilder_ == null) { + campaignBudget_ = null; } else { - result.quarter_ = quarterBuilder_.build(); + campaignBudget_ = null; + campaignBudgetBuilder_ = null; } - result.searchTermMatchType_ = searchTermMatchType_; - result.slot_ = slot_; - if (weekBuilder_ == null) { - result.week_ = week_; + if (campaignBuilder_ == null) { + campaign_ = null; } else { - result.week_ = weekBuilder_.build(); + campaign_ = null; + campaignBuilder_ = null; } - if (yearBuilder_ == null) { - result.year_ = year_; + if (campaignAudienceViewBuilder_ == null) { + campaignAudienceView_ = null; } else { - result.year_ = yearBuilder_.build(); + campaignAudienceView_ = null; + campaignAudienceViewBuilder_ = null; } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.ads.googleads.v0.services.GoogleAdsRow) { - return mergeFrom((com.google.ads.googleads.v0.services.GoogleAdsRow)other); + if (campaignBidModifierBuilder_ == null) { + campaignBidModifier_ = null; } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.ads.googleads.v0.services.GoogleAdsRow other) { - if (other == com.google.ads.googleads.v0.services.GoogleAdsRow.getDefaultInstance()) return this; - if (other.hasAccountBudget()) { - mergeAccountBudget(other.getAccountBudget()); - } - if (other.hasAccountBudgetProposal()) { - mergeAccountBudgetProposal(other.getAccountBudgetProposal()); - } - if (other.hasAdGroup()) { - mergeAdGroup(other.getAdGroup()); - } - if (other.hasAdGroupAd()) { - mergeAdGroupAd(other.getAdGroupAd()); - } - if (other.hasAdGroupAudienceView()) { - mergeAdGroupAudienceView(other.getAdGroupAudienceView()); - } - if (other.hasAdGroupBidModifier()) { - mergeAdGroupBidModifier(other.getAdGroupBidModifier()); - } - if (other.hasAdGroupCriterion()) { - mergeAdGroupCriterion(other.getAdGroupCriterion()); - } - if (other.hasAdGroupFeed()) { - mergeAdGroupFeed(other.getAdGroupFeed()); - } - if (other.hasAgeRangeView()) { - mergeAgeRangeView(other.getAgeRangeView()); - } - if (other.hasBiddingStrategy()) { - mergeBiddingStrategy(other.getBiddingStrategy()); - } - if (other.hasBillingSetup()) { - mergeBillingSetup(other.getBillingSetup()); - } - if (other.hasCampaignBudget()) { - mergeCampaignBudget(other.getCampaignBudget()); - } - if (other.hasCampaign()) { - mergeCampaign(other.getCampaign()); - } - if (other.hasCampaignAudienceView()) { - mergeCampaignAudienceView(other.getCampaignAudienceView()); - } - if (other.hasCampaignBidModifier()) { - mergeCampaignBidModifier(other.getCampaignBidModifier()); - } - if (other.hasCampaignCriterion()) { - mergeCampaignCriterion(other.getCampaignCriterion()); - } - if (other.hasCampaignFeed()) { - mergeCampaignFeed(other.getCampaignFeed()); - } - if (other.hasCampaignGroup()) { - mergeCampaignGroup(other.getCampaignGroup()); - } - if (other.hasCampaignSharedSet()) { - mergeCampaignSharedSet(other.getCampaignSharedSet()); - } - if (other.hasCarrierConstant()) { - mergeCarrierConstant(other.getCarrierConstant()); - } - if (other.hasChangeStatus()) { - mergeChangeStatus(other.getChangeStatus()); - } - if (other.hasCustomer()) { - mergeCustomer(other.getCustomer()); - } - if (other.hasCustomerManagerLink()) { - mergeCustomerManagerLink(other.getCustomerManagerLink()); - } - if (other.hasCustomerClientLink()) { - mergeCustomerClientLink(other.getCustomerClientLink()); - } - if (other.hasCustomerClient()) { - mergeCustomerClient(other.getCustomerClient()); - } - if (other.hasCustomerFeed()) { - mergeCustomerFeed(other.getCustomerFeed()); - } - if (other.hasDisplayKeywordView()) { - mergeDisplayKeywordView(other.getDisplayKeywordView()); - } - if (other.hasFeed()) { - mergeFeed(other.getFeed()); - } - if (other.hasFeedItem()) { - mergeFeedItem(other.getFeedItem()); - } - if (other.hasFeedMapping()) { - mergeFeedMapping(other.getFeedMapping()); - } - if (other.hasGenderView()) { - mergeGenderView(other.getGenderView()); - } - if (other.hasGeoTargetConstant()) { - mergeGeoTargetConstant(other.getGeoTargetConstant()); - } - if (other.hasHotelGroupView()) { - mergeHotelGroupView(other.getHotelGroupView()); - } - if (other.hasHotelPerformanceView()) { - mergeHotelPerformanceView(other.getHotelPerformanceView()); - } - if (other.hasKeywordView()) { - mergeKeywordView(other.getKeywordView()); - } - if (other.hasKeywordPlan()) { - mergeKeywordPlan(other.getKeywordPlan()); - } - if (other.hasKeywordPlanCampaign()) { - mergeKeywordPlanCampaign(other.getKeywordPlanCampaign()); - } - if (other.hasKeywordPlanNegativeKeyword()) { - mergeKeywordPlanNegativeKeyword(other.getKeywordPlanNegativeKeyword()); - } - if (other.hasKeywordPlanAdGroup()) { - mergeKeywordPlanAdGroup(other.getKeywordPlanAdGroup()); - } - if (other.hasKeywordPlanKeyword()) { - mergeKeywordPlanKeyword(other.getKeywordPlanKeyword()); - } - if (other.hasLanguageConstant()) { - mergeLanguageConstant(other.getLanguageConstant()); - } - if (other.hasManagedPlacementView()) { - mergeManagedPlacementView(other.getManagedPlacementView()); - } - if (other.hasParentalStatusView()) { - mergeParentalStatusView(other.getParentalStatusView()); - } - if (other.hasProductGroupView()) { - mergeProductGroupView(other.getProductGroupView()); - } - if (other.hasRecommendation()) { - mergeRecommendation(other.getRecommendation()); - } - if (other.hasSearchTermView()) { - mergeSearchTermView(other.getSearchTermView()); - } - if (other.hasSharedCriterion()) { - mergeSharedCriterion(other.getSharedCriterion()); - } - if (other.hasSharedSet()) { - mergeSharedSet(other.getSharedSet()); - } - if (other.hasTopicView()) { - mergeTopicView(other.getTopicView()); - } - if (other.hasUserInterest()) { - mergeUserInterest(other.getUserInterest()); - } - if (other.hasUserList()) { - mergeUserList(other.getUserList()); - } - if (other.hasTopicConstant()) { - mergeTopicConstant(other.getTopicConstant()); + campaignBidModifier_ = null; + campaignBidModifierBuilder_ = null; } - if (other.hasVideo()) { - mergeVideo(other.getVideo()); + if (campaignCriterionBuilder_ == null) { + campaignCriterion_ = null; + } else { + campaignCriterion_ = null; + campaignCriterionBuilder_ = null; } - if (other.hasMetrics()) { - mergeMetrics(other.getMetrics()); + if (campaignFeedBuilder_ == null) { + campaignFeed_ = null; + } else { + campaignFeed_ = null; + campaignFeedBuilder_ = null; } - if (other.adNetworkType_ != 0) { - setAdNetworkTypeValue(other.getAdNetworkTypeValue()); + if (campaignSharedSetBuilder_ == null) { + campaignSharedSet_ = null; + } else { + campaignSharedSet_ = null; + campaignSharedSetBuilder_ = null; } - if (other.hasDate()) { - mergeDate(other.getDate()); + if (carrierConstantBuilder_ == null) { + carrierConstant_ = null; + } else { + carrierConstant_ = null; + carrierConstantBuilder_ = null; } - if (other.dayOfWeek_ != 0) { - setDayOfWeekValue(other.getDayOfWeekValue()); + if (changeStatusBuilder_ == null) { + changeStatus_ = null; + } else { + changeStatus_ = null; + changeStatusBuilder_ = null; } - if (other.device_ != 0) { - setDeviceValue(other.getDeviceValue()); + if (conversionActionBuilder_ == null) { + conversionAction_ = null; + } else { + conversionAction_ = null; + conversionActionBuilder_ = null; } - if (other.hasHotelBookingWindowDays()) { - mergeHotelBookingWindowDays(other.getHotelBookingWindowDays()); + if (customerBuilder_ == null) { + customer_ = null; + } else { + customer_ = null; + customerBuilder_ = null; } - if (other.hasHotelCenterId()) { - mergeHotelCenterId(other.getHotelCenterId()); + if (customerManagerLinkBuilder_ == null) { + customerManagerLink_ = null; + } else { + customerManagerLink_ = null; + customerManagerLinkBuilder_ = null; } - if (other.hasHotelCheckInDate()) { - mergeHotelCheckInDate(other.getHotelCheckInDate()); + if (customerClientLinkBuilder_ == null) { + customerClientLink_ = null; + } else { + customerClientLink_ = null; + customerClientLinkBuilder_ = null; } - if (other.hotelCheckInDayOfWeek_ != 0) { - setHotelCheckInDayOfWeekValue(other.getHotelCheckInDayOfWeekValue()); + if (customerClientBuilder_ == null) { + customerClient_ = null; + } else { + customerClient_ = null; + customerClientBuilder_ = null; } - if (other.hasHotelCity()) { - mergeHotelCity(other.getHotelCity()); + if (customerFeedBuilder_ == null) { + customerFeed_ = null; + } else { + customerFeed_ = null; + customerFeedBuilder_ = null; } - if (other.hasHotelClass()) { - mergeHotelClass(other.getHotelClass()); + if (displayKeywordViewBuilder_ == null) { + displayKeywordView_ = null; + } else { + displayKeywordView_ = null; + displayKeywordViewBuilder_ = null; } - if (other.hasHotelCountry()) { - mergeHotelCountry(other.getHotelCountry()); + if (feedBuilder_ == null) { + feed_ = null; + } else { + feed_ = null; + feedBuilder_ = null; } - if (other.hotelDateSelectionType_ != 0) { - setHotelDateSelectionTypeValue(other.getHotelDateSelectionTypeValue()); + if (feedItemBuilder_ == null) { + feedItem_ = null; + } else { + feedItem_ = null; + feedItemBuilder_ = null; } - if (other.hasHotelLengthOfStay()) { - mergeHotelLengthOfStay(other.getHotelLengthOfStay()); + if (feedMappingBuilder_ == null) { + feedMapping_ = null; + } else { + feedMapping_ = null; + feedMappingBuilder_ = null; } - if (other.hasHotelState()) { - mergeHotelState(other.getHotelState()); + if (genderViewBuilder_ == null) { + genderView_ = null; + } else { + genderView_ = null; + genderViewBuilder_ = null; } - if (other.hasHour()) { - mergeHour(other.getHour()); + if (geoTargetConstantBuilder_ == null) { + geoTargetConstant_ = null; + } else { + geoTargetConstant_ = null; + geoTargetConstantBuilder_ = null; } - if (other.hasMonth()) { - mergeMonth(other.getMonth()); + if (hotelGroupViewBuilder_ == null) { + hotelGroupView_ = null; + } else { + hotelGroupView_ = null; + hotelGroupViewBuilder_ = null; } - if (other.monthOfYear_ != 0) { - setMonthOfYearValue(other.getMonthOfYearValue()); + if (hotelPerformanceViewBuilder_ == null) { + hotelPerformanceView_ = null; + } else { + hotelPerformanceView_ = null; + hotelPerformanceViewBuilder_ = null; } - if (other.hasPartnerHotelId()) { - mergePartnerHotelId(other.getPartnerHotelId()); + if (keywordViewBuilder_ == null) { + keywordView_ = null; + } else { + keywordView_ = null; + keywordViewBuilder_ = null; } - if (other.placeholderType_ != 0) { - setPlaceholderTypeValue(other.getPlaceholderTypeValue()); + if (keywordPlanBuilder_ == null) { + keywordPlan_ = null; + } else { + keywordPlan_ = null; + keywordPlanBuilder_ = null; } - if (other.hasQuarter()) { - mergeQuarter(other.getQuarter()); + if (keywordPlanCampaignBuilder_ == null) { + keywordPlanCampaign_ = null; + } else { + keywordPlanCampaign_ = null; + keywordPlanCampaignBuilder_ = null; } - if (other.searchTermMatchType_ != 0) { - setSearchTermMatchTypeValue(other.getSearchTermMatchTypeValue()); + if (keywordPlanNegativeKeywordBuilder_ == null) { + keywordPlanNegativeKeyword_ = null; + } else { + keywordPlanNegativeKeyword_ = null; + keywordPlanNegativeKeywordBuilder_ = null; } - if (other.slot_ != 0) { - setSlotValue(other.getSlotValue()); + if (keywordPlanAdGroupBuilder_ == null) { + keywordPlanAdGroup_ = null; + } else { + keywordPlanAdGroup_ = null; + keywordPlanAdGroupBuilder_ = null; } - if (other.hasWeek()) { - mergeWeek(other.getWeek()); + if (keywordPlanKeywordBuilder_ == null) { + keywordPlanKeyword_ = null; + } else { + keywordPlanKeyword_ = null; + keywordPlanKeywordBuilder_ = null; } - if (other.hasYear()) { - mergeYear(other.getYear()); + if (languageConstantBuilder_ == null) { + languageConstant_ = null; + } else { + languageConstant_ = null; + languageConstantBuilder_ = null; } - this.mergeUnknownFields(other.unknownFields); - 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 { - com.google.ads.googleads.v0.services.GoogleAdsRow parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.ads.googleads.v0.services.GoogleAdsRow) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } + if (managedPlacementViewBuilder_ == null) { + managedPlacementView_ = null; + } else { + managedPlacementView_ = null; + managedPlacementViewBuilder_ = null; } - return this; - } - - private com.google.ads.googleads.v0.resources.AccountBudget accountBudget_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.AccountBudget, com.google.ads.googleads.v0.resources.AccountBudget.Builder, com.google.ads.googleads.v0.resources.AccountBudgetOrBuilder> accountBudgetBuilder_; - /** - *
-     * The account budget in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AccountBudget account_budget = 42; - */ - public boolean hasAccountBudget() { - return accountBudgetBuilder_ != null || accountBudget_ != null; - } - /** - *
-     * The account budget in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AccountBudget account_budget = 42; - */ - public com.google.ads.googleads.v0.resources.AccountBudget getAccountBudget() { - if (accountBudgetBuilder_ == null) { - return accountBudget_ == null ? com.google.ads.googleads.v0.resources.AccountBudget.getDefaultInstance() : accountBudget_; + if (mediaFileBuilder_ == null) { + mediaFile_ = null; } else { - return accountBudgetBuilder_.getMessage(); + mediaFile_ = null; + mediaFileBuilder_ = null; } - } - /** - *
-     * The account budget in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AccountBudget account_budget = 42; - */ - public Builder setAccountBudget(com.google.ads.googleads.v0.resources.AccountBudget value) { - if (accountBudgetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - accountBudget_ = value; - onChanged(); + if (mobileAppCategoryConstantBuilder_ == null) { + mobileAppCategoryConstant_ = null; } else { - accountBudgetBuilder_.setMessage(value); + mobileAppCategoryConstant_ = null; + mobileAppCategoryConstantBuilder_ = null; } - - return this; - } - /** - *
-     * The account budget in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AccountBudget account_budget = 42; - */ - public Builder setAccountBudget( - com.google.ads.googleads.v0.resources.AccountBudget.Builder builderForValue) { - if (accountBudgetBuilder_ == null) { - accountBudget_ = builderForValue.build(); - onChanged(); + if (mobileDeviceConstantBuilder_ == null) { + mobileDeviceConstant_ = null; } else { - accountBudgetBuilder_.setMessage(builderForValue.build()); + mobileDeviceConstant_ = null; + mobileDeviceConstantBuilder_ = null; } - - return this; - } - /** - *
-     * The account budget in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AccountBudget account_budget = 42; - */ - public Builder mergeAccountBudget(com.google.ads.googleads.v0.resources.AccountBudget value) { - if (accountBudgetBuilder_ == null) { - if (accountBudget_ != null) { - accountBudget_ = - com.google.ads.googleads.v0.resources.AccountBudget.newBuilder(accountBudget_).mergeFrom(value).buildPartial(); - } else { - accountBudget_ = value; - } - onChanged(); + if (operatingSystemVersionConstantBuilder_ == null) { + operatingSystemVersionConstant_ = null; } else { - accountBudgetBuilder_.mergeFrom(value); + operatingSystemVersionConstant_ = null; + operatingSystemVersionConstantBuilder_ = null; } - - return this; - } - /** - *
-     * The account budget in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AccountBudget account_budget = 42; - */ - public Builder clearAccountBudget() { - if (accountBudgetBuilder_ == null) { - accountBudget_ = null; - onChanged(); + if (parentalStatusViewBuilder_ == null) { + parentalStatusView_ = null; } else { - accountBudget_ = null; - accountBudgetBuilder_ = null; + parentalStatusView_ = null; + parentalStatusViewBuilder_ = null; } - - return this; - } - /** - *
-     * The account budget in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AccountBudget account_budget = 42; - */ - public com.google.ads.googleads.v0.resources.AccountBudget.Builder getAccountBudgetBuilder() { - - onChanged(); - return getAccountBudgetFieldBuilder().getBuilder(); - } - /** - *
-     * The account budget in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AccountBudget account_budget = 42; - */ - public com.google.ads.googleads.v0.resources.AccountBudgetOrBuilder getAccountBudgetOrBuilder() { - if (accountBudgetBuilder_ != null) { - return accountBudgetBuilder_.getMessageOrBuilder(); + if (productGroupViewBuilder_ == null) { + productGroupView_ = null; } else { - return accountBudget_ == null ? - com.google.ads.googleads.v0.resources.AccountBudget.getDefaultInstance() : accountBudget_; + productGroupView_ = null; + productGroupViewBuilder_ = null; } - } - /** - *
-     * The account budget in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AccountBudget account_budget = 42; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.AccountBudget, com.google.ads.googleads.v0.resources.AccountBudget.Builder, com.google.ads.googleads.v0.resources.AccountBudgetOrBuilder> - getAccountBudgetFieldBuilder() { - if (accountBudgetBuilder_ == null) { - accountBudgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.AccountBudget, com.google.ads.googleads.v0.resources.AccountBudget.Builder, com.google.ads.googleads.v0.resources.AccountBudgetOrBuilder>( - getAccountBudget(), - getParentForChildren(), - isClean()); - accountBudget_ = null; + if (recommendationBuilder_ == null) { + recommendation_ = null; + } else { + recommendation_ = null; + recommendationBuilder_ = null; } - return accountBudgetBuilder_; - } - - private com.google.ads.googleads.v0.resources.AccountBudgetProposal accountBudgetProposal_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.AccountBudgetProposal, com.google.ads.googleads.v0.resources.AccountBudgetProposal.Builder, com.google.ads.googleads.v0.resources.AccountBudgetProposalOrBuilder> accountBudgetProposalBuilder_; - /** - *
-     * The account budget proposal referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AccountBudgetProposal account_budget_proposal = 43; - */ - public boolean hasAccountBudgetProposal() { - return accountBudgetProposalBuilder_ != null || accountBudgetProposal_ != null; - } - /** - *
-     * The account budget proposal referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AccountBudgetProposal account_budget_proposal = 43; - */ - public com.google.ads.googleads.v0.resources.AccountBudgetProposal getAccountBudgetProposal() { - if (accountBudgetProposalBuilder_ == null) { - return accountBudgetProposal_ == null ? com.google.ads.googleads.v0.resources.AccountBudgetProposal.getDefaultInstance() : accountBudgetProposal_; + if (searchTermViewBuilder_ == null) { + searchTermView_ = null; } else { - return accountBudgetProposalBuilder_.getMessage(); + searchTermView_ = null; + searchTermViewBuilder_ = null; } - } - /** - *
-     * The account budget proposal referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AccountBudgetProposal account_budget_proposal = 43; - */ - public Builder setAccountBudgetProposal(com.google.ads.googleads.v0.resources.AccountBudgetProposal value) { - if (accountBudgetProposalBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - accountBudgetProposal_ = value; - onChanged(); + if (sharedCriterionBuilder_ == null) { + sharedCriterion_ = null; } else { - accountBudgetProposalBuilder_.setMessage(value); + sharedCriterion_ = null; + sharedCriterionBuilder_ = null; } - - return this; - } - /** - *
-     * The account budget proposal referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AccountBudgetProposal account_budget_proposal = 43; - */ - public Builder setAccountBudgetProposal( - com.google.ads.googleads.v0.resources.AccountBudgetProposal.Builder builderForValue) { - if (accountBudgetProposalBuilder_ == null) { - accountBudgetProposal_ = builderForValue.build(); - onChanged(); + if (sharedSetBuilder_ == null) { + sharedSet_ = null; } else { - accountBudgetProposalBuilder_.setMessage(builderForValue.build()); + sharedSet_ = null; + sharedSetBuilder_ = null; } - - return this; - } - /** - *
-     * The account budget proposal referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AccountBudgetProposal account_budget_proposal = 43; - */ - public Builder mergeAccountBudgetProposal(com.google.ads.googleads.v0.resources.AccountBudgetProposal value) { - if (accountBudgetProposalBuilder_ == null) { - if (accountBudgetProposal_ != null) { - accountBudgetProposal_ = - com.google.ads.googleads.v0.resources.AccountBudgetProposal.newBuilder(accountBudgetProposal_).mergeFrom(value).buildPartial(); - } else { - accountBudgetProposal_ = value; - } - onChanged(); + if (topicViewBuilder_ == null) { + topicView_ = null; } else { - accountBudgetProposalBuilder_.mergeFrom(value); + topicView_ = null; + topicViewBuilder_ = null; } - - return this; - } - /** - *
-     * The account budget proposal referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AccountBudgetProposal account_budget_proposal = 43; - */ - public Builder clearAccountBudgetProposal() { - if (accountBudgetProposalBuilder_ == null) { - accountBudgetProposal_ = null; - onChanged(); + if (userInterestBuilder_ == null) { + userInterest_ = null; } else { - accountBudgetProposal_ = null; - accountBudgetProposalBuilder_ = null; + userInterest_ = null; + userInterestBuilder_ = null; } - - return this; - } - /** - *
-     * The account budget proposal referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AccountBudgetProposal account_budget_proposal = 43; - */ - public com.google.ads.googleads.v0.resources.AccountBudgetProposal.Builder getAccountBudgetProposalBuilder() { - - onChanged(); - return getAccountBudgetProposalFieldBuilder().getBuilder(); - } - /** - *
-     * The account budget proposal referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AccountBudgetProposal account_budget_proposal = 43; - */ - public com.google.ads.googleads.v0.resources.AccountBudgetProposalOrBuilder getAccountBudgetProposalOrBuilder() { - if (accountBudgetProposalBuilder_ != null) { - return accountBudgetProposalBuilder_.getMessageOrBuilder(); + if (userListBuilder_ == null) { + userList_ = null; } else { - return accountBudgetProposal_ == null ? - com.google.ads.googleads.v0.resources.AccountBudgetProposal.getDefaultInstance() : accountBudgetProposal_; + userList_ = null; + userListBuilder_ = null; } - } - /** - *
-     * The account budget proposal referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AccountBudgetProposal account_budget_proposal = 43; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.AccountBudgetProposal, com.google.ads.googleads.v0.resources.AccountBudgetProposal.Builder, com.google.ads.googleads.v0.resources.AccountBudgetProposalOrBuilder> - getAccountBudgetProposalFieldBuilder() { - if (accountBudgetProposalBuilder_ == null) { - accountBudgetProposalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.AccountBudgetProposal, com.google.ads.googleads.v0.resources.AccountBudgetProposal.Builder, com.google.ads.googleads.v0.resources.AccountBudgetProposalOrBuilder>( - getAccountBudgetProposal(), - getParentForChildren(), - isClean()); - accountBudgetProposal_ = null; + if (remarketingActionBuilder_ == null) { + remarketingAction_ = null; + } else { + remarketingAction_ = null; + remarketingActionBuilder_ = null; } - return accountBudgetProposalBuilder_; - } - - private com.google.ads.googleads.v0.resources.AdGroup adGroup_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.AdGroup, com.google.ads.googleads.v0.resources.AdGroup.Builder, com.google.ads.googleads.v0.resources.AdGroupOrBuilder> adGroupBuilder_; - /** - *
-     * The ad group referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroup ad_group = 3; - */ - public boolean hasAdGroup() { - return adGroupBuilder_ != null || adGroup_ != null; - } - /** - *
-     * The ad group referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroup ad_group = 3; - */ - public com.google.ads.googleads.v0.resources.AdGroup getAdGroup() { - if (adGroupBuilder_ == null) { - return adGroup_ == null ? com.google.ads.googleads.v0.resources.AdGroup.getDefaultInstance() : adGroup_; + if (topicConstantBuilder_ == null) { + topicConstant_ = null; + } else { + topicConstant_ = null; + topicConstantBuilder_ = null; + } + if (videoBuilder_ == null) { + video_ = null; } else { - return adGroupBuilder_.getMessage(); + video_ = null; + videoBuilder_ = null; } - } - /** - *
-     * The ad group referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroup ad_group = 3; - */ - public Builder setAdGroup(com.google.ads.googleads.v0.resources.AdGroup value) { - if (adGroupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - adGroup_ = value; - onChanged(); + if (metricsBuilder_ == null) { + metrics_ = null; } else { - adGroupBuilder_.setMessage(value); + metrics_ = null; + metricsBuilder_ = null; } - - return this; - } - /** - *
-     * The ad group referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroup ad_group = 3; - */ - public Builder setAdGroup( - com.google.ads.googleads.v0.resources.AdGroup.Builder builderForValue) { - if (adGroupBuilder_ == null) { - adGroup_ = builderForValue.build(); - onChanged(); + if (segmentsBuilder_ == null) { + segments_ = null; } else { - adGroupBuilder_.setMessage(builderForValue.build()); + segments_ = null; + segmentsBuilder_ = null; } - return this; } - /** - *
-     * The ad group referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroup ad_group = 3; - */ - public Builder mergeAdGroup(com.google.ads.googleads.v0.resources.AdGroup value) { - if (adGroupBuilder_ == null) { - if (adGroup_ != null) { - adGroup_ = - com.google.ads.googleads.v0.resources.AdGroup.newBuilder(adGroup_).mergeFrom(value).buildPartial(); - } else { - adGroup_ = value; - } - onChanged(); - } else { - adGroupBuilder_.mergeFrom(value); - } - return this; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.services.GoogleAdsServiceProto.internal_static_google_ads_googleads_v0_services_GoogleAdsRow_descriptor; } - /** - *
-     * The ad group referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroup ad_group = 3; - */ - public Builder clearAdGroup() { - if (adGroupBuilder_ == null) { - adGroup_ = null; - onChanged(); - } else { - adGroup_ = null; - adGroupBuilder_ = null; - } - return this; + @java.lang.Override + public com.google.ads.googleads.v0.services.GoogleAdsRow getDefaultInstanceForType() { + return com.google.ads.googleads.v0.services.GoogleAdsRow.getDefaultInstance(); } - /** - *
-     * The ad group referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroup ad_group = 3; - */ - public com.google.ads.googleads.v0.resources.AdGroup.Builder getAdGroupBuilder() { - - onChanged(); - return getAdGroupFieldBuilder().getBuilder(); + + @java.lang.Override + public com.google.ads.googleads.v0.services.GoogleAdsRow build() { + com.google.ads.googleads.v0.services.GoogleAdsRow result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } - /** - *
-     * The ad group referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroup ad_group = 3; - */ - public com.google.ads.googleads.v0.resources.AdGroupOrBuilder getAdGroupOrBuilder() { - if (adGroupBuilder_ != null) { - return adGroupBuilder_.getMessageOrBuilder(); + + @java.lang.Override + public com.google.ads.googleads.v0.services.GoogleAdsRow buildPartial() { + com.google.ads.googleads.v0.services.GoogleAdsRow result = new com.google.ads.googleads.v0.services.GoogleAdsRow(this); + if (accountBudgetBuilder_ == null) { + result.accountBudget_ = accountBudget_; } else { - return adGroup_ == null ? - com.google.ads.googleads.v0.resources.AdGroup.getDefaultInstance() : adGroup_; + result.accountBudget_ = accountBudgetBuilder_.build(); + } + if (accountBudgetProposalBuilder_ == null) { + result.accountBudgetProposal_ = accountBudgetProposal_; + } else { + result.accountBudgetProposal_ = accountBudgetProposalBuilder_.build(); } - } - /** - *
-     * The ad group referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroup ad_group = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.AdGroup, com.google.ads.googleads.v0.resources.AdGroup.Builder, com.google.ads.googleads.v0.resources.AdGroupOrBuilder> - getAdGroupFieldBuilder() { if (adGroupBuilder_ == null) { - adGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.AdGroup, com.google.ads.googleads.v0.resources.AdGroup.Builder, com.google.ads.googleads.v0.resources.AdGroupOrBuilder>( - getAdGroup(), - getParentForChildren(), - isClean()); - adGroup_ = null; + result.adGroup_ = adGroup_; + } else { + result.adGroup_ = adGroupBuilder_.build(); } - return adGroupBuilder_; - } - - private com.google.ads.googleads.v0.resources.AdGroupAd adGroupAd_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.AdGroupAd, com.google.ads.googleads.v0.resources.AdGroupAd.Builder, com.google.ads.googleads.v0.resources.AdGroupAdOrBuilder> adGroupAdBuilder_; - /** - *
-     * The ad referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupAd ad_group_ad = 16; - */ - public boolean hasAdGroupAd() { - return adGroupAdBuilder_ != null || adGroupAd_ != null; - } - /** - *
-     * The ad referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupAd ad_group_ad = 16; - */ - public com.google.ads.googleads.v0.resources.AdGroupAd getAdGroupAd() { if (adGroupAdBuilder_ == null) { - return adGroupAd_ == null ? com.google.ads.googleads.v0.resources.AdGroupAd.getDefaultInstance() : adGroupAd_; + result.adGroupAd_ = adGroupAd_; + } else { + result.adGroupAd_ = adGroupAdBuilder_.build(); + } + if (adGroupAudienceViewBuilder_ == null) { + result.adGroupAudienceView_ = adGroupAudienceView_; + } else { + result.adGroupAudienceView_ = adGroupAudienceViewBuilder_.build(); + } + if (adGroupBidModifierBuilder_ == null) { + result.adGroupBidModifier_ = adGroupBidModifier_; + } else { + result.adGroupBidModifier_ = adGroupBidModifierBuilder_.build(); + } + if (adGroupCriterionBuilder_ == null) { + result.adGroupCriterion_ = adGroupCriterion_; + } else { + result.adGroupCriterion_ = adGroupCriterionBuilder_.build(); + } + if (adGroupFeedBuilder_ == null) { + result.adGroupFeed_ = adGroupFeed_; + } else { + result.adGroupFeed_ = adGroupFeedBuilder_.build(); + } + if (ageRangeViewBuilder_ == null) { + result.ageRangeView_ = ageRangeView_; + } else { + result.ageRangeView_ = ageRangeViewBuilder_.build(); + } + if (adScheduleViewBuilder_ == null) { + result.adScheduleView_ = adScheduleView_; + } else { + result.adScheduleView_ = adScheduleViewBuilder_.build(); + } + if (biddingStrategyBuilder_ == null) { + result.biddingStrategy_ = biddingStrategy_; + } else { + result.biddingStrategy_ = biddingStrategyBuilder_.build(); + } + if (billingSetupBuilder_ == null) { + result.billingSetup_ = billingSetup_; + } else { + result.billingSetup_ = billingSetupBuilder_.build(); + } + if (campaignBudgetBuilder_ == null) { + result.campaignBudget_ = campaignBudget_; + } else { + result.campaignBudget_ = campaignBudgetBuilder_.build(); + } + if (campaignBuilder_ == null) { + result.campaign_ = campaign_; + } else { + result.campaign_ = campaignBuilder_.build(); + } + if (campaignAudienceViewBuilder_ == null) { + result.campaignAudienceView_ = campaignAudienceView_; + } else { + result.campaignAudienceView_ = campaignAudienceViewBuilder_.build(); + } + if (campaignBidModifierBuilder_ == null) { + result.campaignBidModifier_ = campaignBidModifier_; + } else { + result.campaignBidModifier_ = campaignBidModifierBuilder_.build(); + } + if (campaignCriterionBuilder_ == null) { + result.campaignCriterion_ = campaignCriterion_; + } else { + result.campaignCriterion_ = campaignCriterionBuilder_.build(); + } + if (campaignFeedBuilder_ == null) { + result.campaignFeed_ = campaignFeed_; + } else { + result.campaignFeed_ = campaignFeedBuilder_.build(); + } + if (campaignSharedSetBuilder_ == null) { + result.campaignSharedSet_ = campaignSharedSet_; + } else { + result.campaignSharedSet_ = campaignSharedSetBuilder_.build(); + } + if (carrierConstantBuilder_ == null) { + result.carrierConstant_ = carrierConstant_; + } else { + result.carrierConstant_ = carrierConstantBuilder_.build(); + } + if (changeStatusBuilder_ == null) { + result.changeStatus_ = changeStatus_; } else { - return adGroupAdBuilder_.getMessage(); + result.changeStatus_ = changeStatusBuilder_.build(); } - } - /** - *
-     * The ad referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupAd ad_group_ad = 16; - */ - public Builder setAdGroupAd(com.google.ads.googleads.v0.resources.AdGroupAd value) { - if (adGroupAdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - adGroupAd_ = value; - onChanged(); + if (conversionActionBuilder_ == null) { + result.conversionAction_ = conversionAction_; } else { - adGroupAdBuilder_.setMessage(value); + result.conversionAction_ = conversionActionBuilder_.build(); } - - return this; - } - /** - *
-     * The ad referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupAd ad_group_ad = 16; - */ - public Builder setAdGroupAd( - com.google.ads.googleads.v0.resources.AdGroupAd.Builder builderForValue) { - if (adGroupAdBuilder_ == null) { - adGroupAd_ = builderForValue.build(); - onChanged(); + if (customerBuilder_ == null) { + result.customer_ = customer_; } else { - adGroupAdBuilder_.setMessage(builderForValue.build()); + result.customer_ = customerBuilder_.build(); } - - return this; - } - /** - *
-     * The ad referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupAd ad_group_ad = 16; - */ - public Builder mergeAdGroupAd(com.google.ads.googleads.v0.resources.AdGroupAd value) { - if (adGroupAdBuilder_ == null) { - if (adGroupAd_ != null) { - adGroupAd_ = - com.google.ads.googleads.v0.resources.AdGroupAd.newBuilder(adGroupAd_).mergeFrom(value).buildPartial(); - } else { - adGroupAd_ = value; - } - onChanged(); + if (customerManagerLinkBuilder_ == null) { + result.customerManagerLink_ = customerManagerLink_; } else { - adGroupAdBuilder_.mergeFrom(value); + result.customerManagerLink_ = customerManagerLinkBuilder_.build(); } - - return this; - } - /** - *
-     * The ad referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupAd ad_group_ad = 16; - */ - public Builder clearAdGroupAd() { - if (adGroupAdBuilder_ == null) { - adGroupAd_ = null; - onChanged(); + if (customerClientLinkBuilder_ == null) { + result.customerClientLink_ = customerClientLink_; } else { - adGroupAd_ = null; - adGroupAdBuilder_ = null; + result.customerClientLink_ = customerClientLinkBuilder_.build(); } - - return this; - } - /** - *
-     * The ad referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupAd ad_group_ad = 16; - */ - public com.google.ads.googleads.v0.resources.AdGroupAd.Builder getAdGroupAdBuilder() { - - onChanged(); - return getAdGroupAdFieldBuilder().getBuilder(); - } - /** - *
-     * The ad referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupAd ad_group_ad = 16; - */ - public com.google.ads.googleads.v0.resources.AdGroupAdOrBuilder getAdGroupAdOrBuilder() { - if (adGroupAdBuilder_ != null) { - return adGroupAdBuilder_.getMessageOrBuilder(); + if (customerClientBuilder_ == null) { + result.customerClient_ = customerClient_; } else { - return adGroupAd_ == null ? - com.google.ads.googleads.v0.resources.AdGroupAd.getDefaultInstance() : adGroupAd_; + result.customerClient_ = customerClientBuilder_.build(); } - } - /** - *
-     * The ad referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupAd ad_group_ad = 16; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.AdGroupAd, com.google.ads.googleads.v0.resources.AdGroupAd.Builder, com.google.ads.googleads.v0.resources.AdGroupAdOrBuilder> - getAdGroupAdFieldBuilder() { - if (adGroupAdBuilder_ == null) { - adGroupAdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.AdGroupAd, com.google.ads.googleads.v0.resources.AdGroupAd.Builder, com.google.ads.googleads.v0.resources.AdGroupAdOrBuilder>( - getAdGroupAd(), - getParentForChildren(), - isClean()); - adGroupAd_ = null; + if (customerFeedBuilder_ == null) { + result.customerFeed_ = customerFeed_; + } else { + result.customerFeed_ = customerFeedBuilder_.build(); } - return adGroupAdBuilder_; - } - - private com.google.ads.googleads.v0.resources.AdGroupAudienceView adGroupAudienceView_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.AdGroupAudienceView, com.google.ads.googleads.v0.resources.AdGroupAudienceView.Builder, com.google.ads.googleads.v0.resources.AdGroupAudienceViewOrBuilder> adGroupAudienceViewBuilder_; - /** - *
-     * The ad group audience view referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupAudienceView ad_group_audience_view = 57; - */ - public boolean hasAdGroupAudienceView() { - return adGroupAudienceViewBuilder_ != null || adGroupAudienceView_ != null; - } - /** - *
-     * The ad group audience view referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupAudienceView ad_group_audience_view = 57; - */ - public com.google.ads.googleads.v0.resources.AdGroupAudienceView getAdGroupAudienceView() { - if (adGroupAudienceViewBuilder_ == null) { - return adGroupAudienceView_ == null ? com.google.ads.googleads.v0.resources.AdGroupAudienceView.getDefaultInstance() : adGroupAudienceView_; + if (displayKeywordViewBuilder_ == null) { + result.displayKeywordView_ = displayKeywordView_; } else { - return adGroupAudienceViewBuilder_.getMessage(); + result.displayKeywordView_ = displayKeywordViewBuilder_.build(); } - } - /** - *
-     * The ad group audience view referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupAudienceView ad_group_audience_view = 57; - */ - public Builder setAdGroupAudienceView(com.google.ads.googleads.v0.resources.AdGroupAudienceView value) { - if (adGroupAudienceViewBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - adGroupAudienceView_ = value; - onChanged(); + if (feedBuilder_ == null) { + result.feed_ = feed_; } else { - adGroupAudienceViewBuilder_.setMessage(value); + result.feed_ = feedBuilder_.build(); } - - return this; - } - /** - *
-     * The ad group audience view referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupAudienceView ad_group_audience_view = 57; - */ - public Builder setAdGroupAudienceView( - com.google.ads.googleads.v0.resources.AdGroupAudienceView.Builder builderForValue) { - if (adGroupAudienceViewBuilder_ == null) { - adGroupAudienceView_ = builderForValue.build(); - onChanged(); + if (feedItemBuilder_ == null) { + result.feedItem_ = feedItem_; } else { - adGroupAudienceViewBuilder_.setMessage(builderForValue.build()); + result.feedItem_ = feedItemBuilder_.build(); } - - return this; - } - /** - *
-     * The ad group audience view referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupAudienceView ad_group_audience_view = 57; - */ - public Builder mergeAdGroupAudienceView(com.google.ads.googleads.v0.resources.AdGroupAudienceView value) { - if (adGroupAudienceViewBuilder_ == null) { - if (adGroupAudienceView_ != null) { - adGroupAudienceView_ = - com.google.ads.googleads.v0.resources.AdGroupAudienceView.newBuilder(adGroupAudienceView_).mergeFrom(value).buildPartial(); - } else { - adGroupAudienceView_ = value; - } - onChanged(); + if (feedMappingBuilder_ == null) { + result.feedMapping_ = feedMapping_; } else { - adGroupAudienceViewBuilder_.mergeFrom(value); + result.feedMapping_ = feedMappingBuilder_.build(); } - - return this; - } - /** - *
-     * The ad group audience view referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupAudienceView ad_group_audience_view = 57; - */ - public Builder clearAdGroupAudienceView() { - if (adGroupAudienceViewBuilder_ == null) { - adGroupAudienceView_ = null; - onChanged(); + if (genderViewBuilder_ == null) { + result.genderView_ = genderView_; + } else { + result.genderView_ = genderViewBuilder_.build(); + } + if (geoTargetConstantBuilder_ == null) { + result.geoTargetConstant_ = geoTargetConstant_; + } else { + result.geoTargetConstant_ = geoTargetConstantBuilder_.build(); + } + if (hotelGroupViewBuilder_ == null) { + result.hotelGroupView_ = hotelGroupView_; + } else { + result.hotelGroupView_ = hotelGroupViewBuilder_.build(); + } + if (hotelPerformanceViewBuilder_ == null) { + result.hotelPerformanceView_ = hotelPerformanceView_; + } else { + result.hotelPerformanceView_ = hotelPerformanceViewBuilder_.build(); + } + if (keywordViewBuilder_ == null) { + result.keywordView_ = keywordView_; } else { - adGroupAudienceView_ = null; - adGroupAudienceViewBuilder_ = null; + result.keywordView_ = keywordViewBuilder_.build(); } - - return this; - } - /** - *
-     * The ad group audience view referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupAudienceView ad_group_audience_view = 57; - */ - public com.google.ads.googleads.v0.resources.AdGroupAudienceView.Builder getAdGroupAudienceViewBuilder() { - - onChanged(); - return getAdGroupAudienceViewFieldBuilder().getBuilder(); - } - /** - *
-     * The ad group audience view referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupAudienceView ad_group_audience_view = 57; - */ - public com.google.ads.googleads.v0.resources.AdGroupAudienceViewOrBuilder getAdGroupAudienceViewOrBuilder() { - if (adGroupAudienceViewBuilder_ != null) { - return adGroupAudienceViewBuilder_.getMessageOrBuilder(); + if (keywordPlanBuilder_ == null) { + result.keywordPlan_ = keywordPlan_; } else { - return adGroupAudienceView_ == null ? - com.google.ads.googleads.v0.resources.AdGroupAudienceView.getDefaultInstance() : adGroupAudienceView_; + result.keywordPlan_ = keywordPlanBuilder_.build(); } - } - /** - *
-     * The ad group audience view referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupAudienceView ad_group_audience_view = 57; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.AdGroupAudienceView, com.google.ads.googleads.v0.resources.AdGroupAudienceView.Builder, com.google.ads.googleads.v0.resources.AdGroupAudienceViewOrBuilder> - getAdGroupAudienceViewFieldBuilder() { - if (adGroupAudienceViewBuilder_ == null) { - adGroupAudienceViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.AdGroupAudienceView, com.google.ads.googleads.v0.resources.AdGroupAudienceView.Builder, com.google.ads.googleads.v0.resources.AdGroupAudienceViewOrBuilder>( - getAdGroupAudienceView(), - getParentForChildren(), - isClean()); - adGroupAudienceView_ = null; + if (keywordPlanCampaignBuilder_ == null) { + result.keywordPlanCampaign_ = keywordPlanCampaign_; + } else { + result.keywordPlanCampaign_ = keywordPlanCampaignBuilder_.build(); } - return adGroupAudienceViewBuilder_; - } - - private com.google.ads.googleads.v0.resources.AdGroupBidModifier adGroupBidModifier_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.AdGroupBidModifier, com.google.ads.googleads.v0.resources.AdGroupBidModifier.Builder, com.google.ads.googleads.v0.resources.AdGroupBidModifierOrBuilder> adGroupBidModifierBuilder_; - /** - *
-     * The bid modifier referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupBidModifier ad_group_bid_modifier = 24; - */ - public boolean hasAdGroupBidModifier() { - return adGroupBidModifierBuilder_ != null || adGroupBidModifier_ != null; - } - /** - *
-     * The bid modifier referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupBidModifier ad_group_bid_modifier = 24; - */ - public com.google.ads.googleads.v0.resources.AdGroupBidModifier getAdGroupBidModifier() { - if (adGroupBidModifierBuilder_ == null) { - return adGroupBidModifier_ == null ? com.google.ads.googleads.v0.resources.AdGroupBidModifier.getDefaultInstance() : adGroupBidModifier_; + if (keywordPlanNegativeKeywordBuilder_ == null) { + result.keywordPlanNegativeKeyword_ = keywordPlanNegativeKeyword_; } else { - return adGroupBidModifierBuilder_.getMessage(); + result.keywordPlanNegativeKeyword_ = keywordPlanNegativeKeywordBuilder_.build(); } - } - /** - *
-     * The bid modifier referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupBidModifier ad_group_bid_modifier = 24; - */ - public Builder setAdGroupBidModifier(com.google.ads.googleads.v0.resources.AdGroupBidModifier value) { - if (adGroupBidModifierBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - adGroupBidModifier_ = value; - onChanged(); + if (keywordPlanAdGroupBuilder_ == null) { + result.keywordPlanAdGroup_ = keywordPlanAdGroup_; } else { - adGroupBidModifierBuilder_.setMessage(value); + result.keywordPlanAdGroup_ = keywordPlanAdGroupBuilder_.build(); } - - return this; - } - /** - *
-     * The bid modifier referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupBidModifier ad_group_bid_modifier = 24; - */ - public Builder setAdGroupBidModifier( - com.google.ads.googleads.v0.resources.AdGroupBidModifier.Builder builderForValue) { - if (adGroupBidModifierBuilder_ == null) { - adGroupBidModifier_ = builderForValue.build(); - onChanged(); + if (keywordPlanKeywordBuilder_ == null) { + result.keywordPlanKeyword_ = keywordPlanKeyword_; } else { - adGroupBidModifierBuilder_.setMessage(builderForValue.build()); + result.keywordPlanKeyword_ = keywordPlanKeywordBuilder_.build(); } - - return this; - } - /** - *
-     * The bid modifier referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupBidModifier ad_group_bid_modifier = 24; - */ - public Builder mergeAdGroupBidModifier(com.google.ads.googleads.v0.resources.AdGroupBidModifier value) { - if (adGroupBidModifierBuilder_ == null) { - if (adGroupBidModifier_ != null) { - adGroupBidModifier_ = - com.google.ads.googleads.v0.resources.AdGroupBidModifier.newBuilder(adGroupBidModifier_).mergeFrom(value).buildPartial(); - } else { - adGroupBidModifier_ = value; - } - onChanged(); + if (languageConstantBuilder_ == null) { + result.languageConstant_ = languageConstant_; } else { - adGroupBidModifierBuilder_.mergeFrom(value); + result.languageConstant_ = languageConstantBuilder_.build(); } - - return this; - } - /** - *
-     * The bid modifier referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupBidModifier ad_group_bid_modifier = 24; - */ - public Builder clearAdGroupBidModifier() { - if (adGroupBidModifierBuilder_ == null) { - adGroupBidModifier_ = null; - onChanged(); + if (managedPlacementViewBuilder_ == null) { + result.managedPlacementView_ = managedPlacementView_; } else { - adGroupBidModifier_ = null; - adGroupBidModifierBuilder_ = null; + result.managedPlacementView_ = managedPlacementViewBuilder_.build(); } - - return this; - } - /** - *
-     * The bid modifier referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupBidModifier ad_group_bid_modifier = 24; - */ - public com.google.ads.googleads.v0.resources.AdGroupBidModifier.Builder getAdGroupBidModifierBuilder() { - - onChanged(); - return getAdGroupBidModifierFieldBuilder().getBuilder(); - } - /** - *
-     * The bid modifier referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupBidModifier ad_group_bid_modifier = 24; - */ - public com.google.ads.googleads.v0.resources.AdGroupBidModifierOrBuilder getAdGroupBidModifierOrBuilder() { - if (adGroupBidModifierBuilder_ != null) { - return adGroupBidModifierBuilder_.getMessageOrBuilder(); + if (mediaFileBuilder_ == null) { + result.mediaFile_ = mediaFile_; } else { - return adGroupBidModifier_ == null ? - com.google.ads.googleads.v0.resources.AdGroupBidModifier.getDefaultInstance() : adGroupBidModifier_; + result.mediaFile_ = mediaFileBuilder_.build(); } - } - /** - *
-     * The bid modifier referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupBidModifier ad_group_bid_modifier = 24; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.AdGroupBidModifier, com.google.ads.googleads.v0.resources.AdGroupBidModifier.Builder, com.google.ads.googleads.v0.resources.AdGroupBidModifierOrBuilder> - getAdGroupBidModifierFieldBuilder() { - if (adGroupBidModifierBuilder_ == null) { - adGroupBidModifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.AdGroupBidModifier, com.google.ads.googleads.v0.resources.AdGroupBidModifier.Builder, com.google.ads.googleads.v0.resources.AdGroupBidModifierOrBuilder>( - getAdGroupBidModifier(), - getParentForChildren(), - isClean()); - adGroupBidModifier_ = null; + if (mobileAppCategoryConstantBuilder_ == null) { + result.mobileAppCategoryConstant_ = mobileAppCategoryConstant_; + } else { + result.mobileAppCategoryConstant_ = mobileAppCategoryConstantBuilder_.build(); } - return adGroupBidModifierBuilder_; - } - - private com.google.ads.googleads.v0.resources.AdGroupCriterion adGroupCriterion_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.AdGroupCriterion, com.google.ads.googleads.v0.resources.AdGroupCriterion.Builder, com.google.ads.googleads.v0.resources.AdGroupCriterionOrBuilder> adGroupCriterionBuilder_; - /** - *
-     * The criterion referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupCriterion ad_group_criterion = 17; - */ - public boolean hasAdGroupCriterion() { - return adGroupCriterionBuilder_ != null || adGroupCriterion_ != null; - } - /** - *
-     * The criterion referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupCriterion ad_group_criterion = 17; - */ - public com.google.ads.googleads.v0.resources.AdGroupCriterion getAdGroupCriterion() { - if (adGroupCriterionBuilder_ == null) { - return adGroupCriterion_ == null ? com.google.ads.googleads.v0.resources.AdGroupCriterion.getDefaultInstance() : adGroupCriterion_; + if (mobileDeviceConstantBuilder_ == null) { + result.mobileDeviceConstant_ = mobileDeviceConstant_; } else { - return adGroupCriterionBuilder_.getMessage(); + result.mobileDeviceConstant_ = mobileDeviceConstantBuilder_.build(); } - } - /** - *
-     * The criterion referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupCriterion ad_group_criterion = 17; - */ - public Builder setAdGroupCriterion(com.google.ads.googleads.v0.resources.AdGroupCriterion value) { - if (adGroupCriterionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - adGroupCriterion_ = value; - onChanged(); + if (operatingSystemVersionConstantBuilder_ == null) { + result.operatingSystemVersionConstant_ = operatingSystemVersionConstant_; + } else { + result.operatingSystemVersionConstant_ = operatingSystemVersionConstantBuilder_.build(); + } + if (parentalStatusViewBuilder_ == null) { + result.parentalStatusView_ = parentalStatusView_; } else { - adGroupCriterionBuilder_.setMessage(value); + result.parentalStatusView_ = parentalStatusViewBuilder_.build(); } - - return this; - } - /** - *
-     * The criterion referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupCriterion ad_group_criterion = 17; - */ - public Builder setAdGroupCriterion( - com.google.ads.googleads.v0.resources.AdGroupCriterion.Builder builderForValue) { - if (adGroupCriterionBuilder_ == null) { - adGroupCriterion_ = builderForValue.build(); - onChanged(); + if (productGroupViewBuilder_ == null) { + result.productGroupView_ = productGroupView_; } else { - adGroupCriterionBuilder_.setMessage(builderForValue.build()); + result.productGroupView_ = productGroupViewBuilder_.build(); } - - return this; - } - /** - *
-     * The criterion referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupCriterion ad_group_criterion = 17; - */ - public Builder mergeAdGroupCriterion(com.google.ads.googleads.v0.resources.AdGroupCriterion value) { - if (adGroupCriterionBuilder_ == null) { - if (adGroupCriterion_ != null) { - adGroupCriterion_ = - com.google.ads.googleads.v0.resources.AdGroupCriterion.newBuilder(adGroupCriterion_).mergeFrom(value).buildPartial(); - } else { - adGroupCriterion_ = value; - } - onChanged(); + if (recommendationBuilder_ == null) { + result.recommendation_ = recommendation_; } else { - adGroupCriterionBuilder_.mergeFrom(value); + result.recommendation_ = recommendationBuilder_.build(); } - - return this; - } - /** - *
-     * The criterion referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupCriterion ad_group_criterion = 17; - */ - public Builder clearAdGroupCriterion() { - if (adGroupCriterionBuilder_ == null) { - adGroupCriterion_ = null; - onChanged(); + if (searchTermViewBuilder_ == null) { + result.searchTermView_ = searchTermView_; } else { - adGroupCriterion_ = null; - adGroupCriterionBuilder_ = null; + result.searchTermView_ = searchTermViewBuilder_.build(); } - - return this; - } - /** - *
-     * The criterion referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupCriterion ad_group_criterion = 17; - */ - public com.google.ads.googleads.v0.resources.AdGroupCriterion.Builder getAdGroupCriterionBuilder() { - - onChanged(); - return getAdGroupCriterionFieldBuilder().getBuilder(); - } - /** - *
-     * The criterion referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupCriterion ad_group_criterion = 17; - */ - public com.google.ads.googleads.v0.resources.AdGroupCriterionOrBuilder getAdGroupCriterionOrBuilder() { - if (adGroupCriterionBuilder_ != null) { - return adGroupCriterionBuilder_.getMessageOrBuilder(); + if (sharedCriterionBuilder_ == null) { + result.sharedCriterion_ = sharedCriterion_; } else { - return adGroupCriterion_ == null ? - com.google.ads.googleads.v0.resources.AdGroupCriterion.getDefaultInstance() : adGroupCriterion_; + result.sharedCriterion_ = sharedCriterionBuilder_.build(); } - } - /** - *
-     * The criterion referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupCriterion ad_group_criterion = 17; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.AdGroupCriterion, com.google.ads.googleads.v0.resources.AdGroupCriterion.Builder, com.google.ads.googleads.v0.resources.AdGroupCriterionOrBuilder> - getAdGroupCriterionFieldBuilder() { - if (adGroupCriterionBuilder_ == null) { - adGroupCriterionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.AdGroupCriterion, com.google.ads.googleads.v0.resources.AdGroupCriterion.Builder, com.google.ads.googleads.v0.resources.AdGroupCriterionOrBuilder>( - getAdGroupCriterion(), - getParentForChildren(), - isClean()); - adGroupCriterion_ = null; + if (sharedSetBuilder_ == null) { + result.sharedSet_ = sharedSet_; + } else { + result.sharedSet_ = sharedSetBuilder_.build(); } - return adGroupCriterionBuilder_; - } - - private com.google.ads.googleads.v0.resources.AdGroupFeed adGroupFeed_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.AdGroupFeed, com.google.ads.googleads.v0.resources.AdGroupFeed.Builder, com.google.ads.googleads.v0.resources.AdGroupFeedOrBuilder> adGroupFeedBuilder_; - /** - *
-     * The ad group feed referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupFeed ad_group_feed = 67; - */ - public boolean hasAdGroupFeed() { - return adGroupFeedBuilder_ != null || adGroupFeed_ != null; - } - /** - *
-     * The ad group feed referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupFeed ad_group_feed = 67; - */ - public com.google.ads.googleads.v0.resources.AdGroupFeed getAdGroupFeed() { - if (adGroupFeedBuilder_ == null) { - return adGroupFeed_ == null ? com.google.ads.googleads.v0.resources.AdGroupFeed.getDefaultInstance() : adGroupFeed_; + if (topicViewBuilder_ == null) { + result.topicView_ = topicView_; } else { - return adGroupFeedBuilder_.getMessage(); + result.topicView_ = topicViewBuilder_.build(); } - } - /** - *
-     * The ad group feed referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupFeed ad_group_feed = 67; - */ - public Builder setAdGroupFeed(com.google.ads.googleads.v0.resources.AdGroupFeed value) { - if (adGroupFeedBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - adGroupFeed_ = value; - onChanged(); + if (userInterestBuilder_ == null) { + result.userInterest_ = userInterest_; } else { - adGroupFeedBuilder_.setMessage(value); + result.userInterest_ = userInterestBuilder_.build(); } - - return this; - } - /** - *
-     * The ad group feed referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupFeed ad_group_feed = 67; - */ - public Builder setAdGroupFeed( - com.google.ads.googleads.v0.resources.AdGroupFeed.Builder builderForValue) { - if (adGroupFeedBuilder_ == null) { - adGroupFeed_ = builderForValue.build(); - onChanged(); + if (userListBuilder_ == null) { + result.userList_ = userList_; } else { - adGroupFeedBuilder_.setMessage(builderForValue.build()); + result.userList_ = userListBuilder_.build(); } - - return this; - } - /** - *
-     * The ad group feed referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupFeed ad_group_feed = 67; - */ - public Builder mergeAdGroupFeed(com.google.ads.googleads.v0.resources.AdGroupFeed value) { - if (adGroupFeedBuilder_ == null) { - if (adGroupFeed_ != null) { - adGroupFeed_ = - com.google.ads.googleads.v0.resources.AdGroupFeed.newBuilder(adGroupFeed_).mergeFrom(value).buildPartial(); - } else { - adGroupFeed_ = value; - } - onChanged(); + if (remarketingActionBuilder_ == null) { + result.remarketingAction_ = remarketingAction_; } else { - adGroupFeedBuilder_.mergeFrom(value); + result.remarketingAction_ = remarketingActionBuilder_.build(); } - - return this; - } - /** - *
-     * The ad group feed referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupFeed ad_group_feed = 67; - */ - public Builder clearAdGroupFeed() { - if (adGroupFeedBuilder_ == null) { - adGroupFeed_ = null; - onChanged(); + if (topicConstantBuilder_ == null) { + result.topicConstant_ = topicConstant_; } else { - adGroupFeed_ = null; - adGroupFeedBuilder_ = null; + result.topicConstant_ = topicConstantBuilder_.build(); } - - return this; - } - /** - *
-     * The ad group feed referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupFeed ad_group_feed = 67; - */ - public com.google.ads.googleads.v0.resources.AdGroupFeed.Builder getAdGroupFeedBuilder() { - - onChanged(); - return getAdGroupFeedFieldBuilder().getBuilder(); - } - /** - *
-     * The ad group feed referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupFeed ad_group_feed = 67; - */ - public com.google.ads.googleads.v0.resources.AdGroupFeedOrBuilder getAdGroupFeedOrBuilder() { - if (adGroupFeedBuilder_ != null) { - return adGroupFeedBuilder_.getMessageOrBuilder(); + if (videoBuilder_ == null) { + result.video_ = video_; + } else { + result.video_ = videoBuilder_.build(); + } + if (metricsBuilder_ == null) { + result.metrics_ = metrics_; } else { - return adGroupFeed_ == null ? - com.google.ads.googleads.v0.resources.AdGroupFeed.getDefaultInstance() : adGroupFeed_; + result.metrics_ = metricsBuilder_.build(); } - } - /** - *
-     * The ad group feed referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AdGroupFeed ad_group_feed = 67; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.AdGroupFeed, com.google.ads.googleads.v0.resources.AdGroupFeed.Builder, com.google.ads.googleads.v0.resources.AdGroupFeedOrBuilder> - getAdGroupFeedFieldBuilder() { - if (adGroupFeedBuilder_ == null) { - adGroupFeedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.AdGroupFeed, com.google.ads.googleads.v0.resources.AdGroupFeed.Builder, com.google.ads.googleads.v0.resources.AdGroupFeedOrBuilder>( - getAdGroupFeed(), - getParentForChildren(), - isClean()); - adGroupFeed_ = null; + if (segmentsBuilder_ == null) { + result.segments_ = segments_; + } else { + result.segments_ = segmentsBuilder_.build(); } - return adGroupFeedBuilder_; + onBuilt(); + return result; } - private com.google.ads.googleads.v0.resources.AgeRangeView ageRangeView_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.AgeRangeView, com.google.ads.googleads.v0.resources.AgeRangeView.Builder, com.google.ads.googleads.v0.resources.AgeRangeViewOrBuilder> ageRangeViewBuilder_; - /** - *
-     * The age range view referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AgeRangeView age_range_view = 48; - */ - public boolean hasAgeRangeView() { - return ageRangeViewBuilder_ != null || ageRangeView_ != null; + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); } - /** - *
-     * The age range view referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AgeRangeView age_range_view = 48; - */ - public com.google.ads.googleads.v0.resources.AgeRangeView getAgeRangeView() { - if (ageRangeViewBuilder_ == null) { - return ageRangeView_ == null ? com.google.ads.googleads.v0.resources.AgeRangeView.getDefaultInstance() : ageRangeView_; - } else { - return ageRangeViewBuilder_.getMessage(); - } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); } - /** - *
-     * The age range view referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AgeRangeView age_range_view = 48; - */ - public Builder setAgeRangeView(com.google.ads.googleads.v0.resources.AgeRangeView value) { - if (ageRangeViewBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ageRangeView_ = value; - onChanged(); - } else { - ageRangeViewBuilder_.setMessage(value); - } - - return this; + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); } - /** - *
-     * The age range view referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AgeRangeView age_range_view = 48; - */ - public Builder setAgeRangeView( - com.google.ads.googleads.v0.resources.AgeRangeView.Builder builderForValue) { - if (ageRangeViewBuilder_ == null) { - ageRangeView_ = builderForValue.build(); - onChanged(); + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.services.GoogleAdsRow) { + return mergeFrom((com.google.ads.googleads.v0.services.GoogleAdsRow)other); } else { - ageRangeViewBuilder_.setMessage(builderForValue.build()); + super.mergeFrom(other); + return this; } - - return this; } - /** - *
-     * The age range view referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AgeRangeView age_range_view = 48; - */ - public Builder mergeAgeRangeView(com.google.ads.googleads.v0.resources.AgeRangeView value) { - if (ageRangeViewBuilder_ == null) { - if (ageRangeView_ != null) { - ageRangeView_ = - com.google.ads.googleads.v0.resources.AgeRangeView.newBuilder(ageRangeView_).mergeFrom(value).buildPartial(); - } else { - ageRangeView_ = value; - } - onChanged(); - } else { - ageRangeViewBuilder_.mergeFrom(value); + + public Builder mergeFrom(com.google.ads.googleads.v0.services.GoogleAdsRow other) { + if (other == com.google.ads.googleads.v0.services.GoogleAdsRow.getDefaultInstance()) return this; + if (other.hasAccountBudget()) { + mergeAccountBudget(other.getAccountBudget()); + } + if (other.hasAccountBudgetProposal()) { + mergeAccountBudgetProposal(other.getAccountBudgetProposal()); + } + if (other.hasAdGroup()) { + mergeAdGroup(other.getAdGroup()); + } + if (other.hasAdGroupAd()) { + mergeAdGroupAd(other.getAdGroupAd()); + } + if (other.hasAdGroupAudienceView()) { + mergeAdGroupAudienceView(other.getAdGroupAudienceView()); + } + if (other.hasAdGroupBidModifier()) { + mergeAdGroupBidModifier(other.getAdGroupBidModifier()); + } + if (other.hasAdGroupCriterion()) { + mergeAdGroupCriterion(other.getAdGroupCriterion()); + } + if (other.hasAdGroupFeed()) { + mergeAdGroupFeed(other.getAdGroupFeed()); + } + if (other.hasAgeRangeView()) { + mergeAgeRangeView(other.getAgeRangeView()); + } + if (other.hasAdScheduleView()) { + mergeAdScheduleView(other.getAdScheduleView()); + } + if (other.hasBiddingStrategy()) { + mergeBiddingStrategy(other.getBiddingStrategy()); + } + if (other.hasBillingSetup()) { + mergeBillingSetup(other.getBillingSetup()); + } + if (other.hasCampaignBudget()) { + mergeCampaignBudget(other.getCampaignBudget()); + } + if (other.hasCampaign()) { + mergeCampaign(other.getCampaign()); + } + if (other.hasCampaignAudienceView()) { + mergeCampaignAudienceView(other.getCampaignAudienceView()); + } + if (other.hasCampaignBidModifier()) { + mergeCampaignBidModifier(other.getCampaignBidModifier()); + } + if (other.hasCampaignCriterion()) { + mergeCampaignCriterion(other.getCampaignCriterion()); + } + if (other.hasCampaignFeed()) { + mergeCampaignFeed(other.getCampaignFeed()); + } + if (other.hasCampaignSharedSet()) { + mergeCampaignSharedSet(other.getCampaignSharedSet()); + } + if (other.hasCarrierConstant()) { + mergeCarrierConstant(other.getCarrierConstant()); + } + if (other.hasChangeStatus()) { + mergeChangeStatus(other.getChangeStatus()); + } + if (other.hasConversionAction()) { + mergeConversionAction(other.getConversionAction()); + } + if (other.hasCustomer()) { + mergeCustomer(other.getCustomer()); + } + if (other.hasCustomerManagerLink()) { + mergeCustomerManagerLink(other.getCustomerManagerLink()); + } + if (other.hasCustomerClientLink()) { + mergeCustomerClientLink(other.getCustomerClientLink()); + } + if (other.hasCustomerClient()) { + mergeCustomerClient(other.getCustomerClient()); + } + if (other.hasCustomerFeed()) { + mergeCustomerFeed(other.getCustomerFeed()); + } + if (other.hasDisplayKeywordView()) { + mergeDisplayKeywordView(other.getDisplayKeywordView()); + } + if (other.hasFeed()) { + mergeFeed(other.getFeed()); + } + if (other.hasFeedItem()) { + mergeFeedItem(other.getFeedItem()); + } + if (other.hasFeedMapping()) { + mergeFeedMapping(other.getFeedMapping()); + } + if (other.hasGenderView()) { + mergeGenderView(other.getGenderView()); + } + if (other.hasGeoTargetConstant()) { + mergeGeoTargetConstant(other.getGeoTargetConstant()); + } + if (other.hasHotelGroupView()) { + mergeHotelGroupView(other.getHotelGroupView()); + } + if (other.hasHotelPerformanceView()) { + mergeHotelPerformanceView(other.getHotelPerformanceView()); + } + if (other.hasKeywordView()) { + mergeKeywordView(other.getKeywordView()); + } + if (other.hasKeywordPlan()) { + mergeKeywordPlan(other.getKeywordPlan()); + } + if (other.hasKeywordPlanCampaign()) { + mergeKeywordPlanCampaign(other.getKeywordPlanCampaign()); + } + if (other.hasKeywordPlanNegativeKeyword()) { + mergeKeywordPlanNegativeKeyword(other.getKeywordPlanNegativeKeyword()); + } + if (other.hasKeywordPlanAdGroup()) { + mergeKeywordPlanAdGroup(other.getKeywordPlanAdGroup()); } - - return this; - } - /** - *
-     * The age range view referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AgeRangeView age_range_view = 48; - */ - public Builder clearAgeRangeView() { - if (ageRangeViewBuilder_ == null) { - ageRangeView_ = null; - onChanged(); - } else { - ageRangeView_ = null; - ageRangeViewBuilder_ = null; + if (other.hasKeywordPlanKeyword()) { + mergeKeywordPlanKeyword(other.getKeywordPlanKeyword()); } - - return this; - } - /** - *
-     * The age range view referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AgeRangeView age_range_view = 48; - */ - public com.google.ads.googleads.v0.resources.AgeRangeView.Builder getAgeRangeViewBuilder() { - - onChanged(); - return getAgeRangeViewFieldBuilder().getBuilder(); - } - /** - *
-     * The age range view referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AgeRangeView age_range_view = 48; - */ - public com.google.ads.googleads.v0.resources.AgeRangeViewOrBuilder getAgeRangeViewOrBuilder() { - if (ageRangeViewBuilder_ != null) { - return ageRangeViewBuilder_.getMessageOrBuilder(); - } else { - return ageRangeView_ == null ? - com.google.ads.googleads.v0.resources.AgeRangeView.getDefaultInstance() : ageRangeView_; + if (other.hasLanguageConstant()) { + mergeLanguageConstant(other.getLanguageConstant()); } - } - /** - *
-     * The age range view referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.AgeRangeView age_range_view = 48; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.AgeRangeView, com.google.ads.googleads.v0.resources.AgeRangeView.Builder, com.google.ads.googleads.v0.resources.AgeRangeViewOrBuilder> - getAgeRangeViewFieldBuilder() { - if (ageRangeViewBuilder_ == null) { - ageRangeViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.AgeRangeView, com.google.ads.googleads.v0.resources.AgeRangeView.Builder, com.google.ads.googleads.v0.resources.AgeRangeViewOrBuilder>( - getAgeRangeView(), - getParentForChildren(), - isClean()); - ageRangeView_ = null; + if (other.hasManagedPlacementView()) { + mergeManagedPlacementView(other.getManagedPlacementView()); } - return ageRangeViewBuilder_; - } - - private com.google.ads.googleads.v0.resources.BiddingStrategy biddingStrategy_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.BiddingStrategy, com.google.ads.googleads.v0.resources.BiddingStrategy.Builder, com.google.ads.googleads.v0.resources.BiddingStrategyOrBuilder> biddingStrategyBuilder_; - /** - *
-     * The bidding strategy referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.BiddingStrategy bidding_strategy = 18; - */ - public boolean hasBiddingStrategy() { - return biddingStrategyBuilder_ != null || biddingStrategy_ != null; - } - /** - *
-     * The bidding strategy referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.BiddingStrategy bidding_strategy = 18; - */ - public com.google.ads.googleads.v0.resources.BiddingStrategy getBiddingStrategy() { - if (biddingStrategyBuilder_ == null) { - return biddingStrategy_ == null ? com.google.ads.googleads.v0.resources.BiddingStrategy.getDefaultInstance() : biddingStrategy_; - } else { - return biddingStrategyBuilder_.getMessage(); + if (other.hasMediaFile()) { + mergeMediaFile(other.getMediaFile()); } - } - /** - *
-     * The bidding strategy referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.BiddingStrategy bidding_strategy = 18; - */ - public Builder setBiddingStrategy(com.google.ads.googleads.v0.resources.BiddingStrategy value) { - if (biddingStrategyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - biddingStrategy_ = value; - onChanged(); - } else { - biddingStrategyBuilder_.setMessage(value); + if (other.hasMobileAppCategoryConstant()) { + mergeMobileAppCategoryConstant(other.getMobileAppCategoryConstant()); } - - return this; - } - /** - *
-     * The bidding strategy referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.BiddingStrategy bidding_strategy = 18; - */ - public Builder setBiddingStrategy( - com.google.ads.googleads.v0.resources.BiddingStrategy.Builder builderForValue) { - if (biddingStrategyBuilder_ == null) { - biddingStrategy_ = builderForValue.build(); - onChanged(); - } else { - biddingStrategyBuilder_.setMessage(builderForValue.build()); + if (other.hasMobileDeviceConstant()) { + mergeMobileDeviceConstant(other.getMobileDeviceConstant()); } - - return this; - } - /** - *
-     * The bidding strategy referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.BiddingStrategy bidding_strategy = 18; - */ - public Builder mergeBiddingStrategy(com.google.ads.googleads.v0.resources.BiddingStrategy value) { - if (biddingStrategyBuilder_ == null) { - if (biddingStrategy_ != null) { - biddingStrategy_ = - com.google.ads.googleads.v0.resources.BiddingStrategy.newBuilder(biddingStrategy_).mergeFrom(value).buildPartial(); - } else { - biddingStrategy_ = value; - } - onChanged(); - } else { - biddingStrategyBuilder_.mergeFrom(value); + if (other.hasOperatingSystemVersionConstant()) { + mergeOperatingSystemVersionConstant(other.getOperatingSystemVersionConstant()); } - - return this; - } - /** - *
-     * The bidding strategy referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.BiddingStrategy bidding_strategy = 18; - */ - public Builder clearBiddingStrategy() { - if (biddingStrategyBuilder_ == null) { - biddingStrategy_ = null; - onChanged(); - } else { - biddingStrategy_ = null; - biddingStrategyBuilder_ = null; + if (other.hasParentalStatusView()) { + mergeParentalStatusView(other.getParentalStatusView()); } - - return this; - } - /** - *
-     * The bidding strategy referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.BiddingStrategy bidding_strategy = 18; - */ - public com.google.ads.googleads.v0.resources.BiddingStrategy.Builder getBiddingStrategyBuilder() { - - onChanged(); - return getBiddingStrategyFieldBuilder().getBuilder(); - } - /** - *
-     * The bidding strategy referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.BiddingStrategy bidding_strategy = 18; - */ - public com.google.ads.googleads.v0.resources.BiddingStrategyOrBuilder getBiddingStrategyOrBuilder() { - if (biddingStrategyBuilder_ != null) { - return biddingStrategyBuilder_.getMessageOrBuilder(); - } else { - return biddingStrategy_ == null ? - com.google.ads.googleads.v0.resources.BiddingStrategy.getDefaultInstance() : biddingStrategy_; + if (other.hasProductGroupView()) { + mergeProductGroupView(other.getProductGroupView()); } - } - /** - *
-     * The bidding strategy referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.BiddingStrategy bidding_strategy = 18; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.BiddingStrategy, com.google.ads.googleads.v0.resources.BiddingStrategy.Builder, com.google.ads.googleads.v0.resources.BiddingStrategyOrBuilder> - getBiddingStrategyFieldBuilder() { - if (biddingStrategyBuilder_ == null) { - biddingStrategyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.BiddingStrategy, com.google.ads.googleads.v0.resources.BiddingStrategy.Builder, com.google.ads.googleads.v0.resources.BiddingStrategyOrBuilder>( - getBiddingStrategy(), - getParentForChildren(), - isClean()); - biddingStrategy_ = null; + if (other.hasRecommendation()) { + mergeRecommendation(other.getRecommendation()); } - return biddingStrategyBuilder_; - } - - private com.google.ads.googleads.v0.resources.BillingSetup billingSetup_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.BillingSetup, com.google.ads.googleads.v0.resources.BillingSetup.Builder, com.google.ads.googleads.v0.resources.BillingSetupOrBuilder> billingSetupBuilder_; - /** - *
-     * The billing setup referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.BillingSetup billing_setup = 41; - */ - public boolean hasBillingSetup() { - return billingSetupBuilder_ != null || billingSetup_ != null; - } - /** - *
-     * The billing setup referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.BillingSetup billing_setup = 41; - */ - public com.google.ads.googleads.v0.resources.BillingSetup getBillingSetup() { - if (billingSetupBuilder_ == null) { - return billingSetup_ == null ? com.google.ads.googleads.v0.resources.BillingSetup.getDefaultInstance() : billingSetup_; - } else { - return billingSetupBuilder_.getMessage(); + if (other.hasSearchTermView()) { + mergeSearchTermView(other.getSearchTermView()); + } + if (other.hasSharedCriterion()) { + mergeSharedCriterion(other.getSharedCriterion()); + } + if (other.hasSharedSet()) { + mergeSharedSet(other.getSharedSet()); } - } - /** - *
-     * The billing setup referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.BillingSetup billing_setup = 41; - */ - public Builder setBillingSetup(com.google.ads.googleads.v0.resources.BillingSetup value) { - if (billingSetupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - billingSetup_ = value; - onChanged(); - } else { - billingSetupBuilder_.setMessage(value); + if (other.hasTopicView()) { + mergeTopicView(other.getTopicView()); } - - return this; - } - /** - *
-     * The billing setup referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.BillingSetup billing_setup = 41; - */ - public Builder setBillingSetup( - com.google.ads.googleads.v0.resources.BillingSetup.Builder builderForValue) { - if (billingSetupBuilder_ == null) { - billingSetup_ = builderForValue.build(); - onChanged(); - } else { - billingSetupBuilder_.setMessage(builderForValue.build()); + if (other.hasUserInterest()) { + mergeUserInterest(other.getUserInterest()); } - - return this; - } - /** - *
-     * The billing setup referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.BillingSetup billing_setup = 41; - */ - public Builder mergeBillingSetup(com.google.ads.googleads.v0.resources.BillingSetup value) { - if (billingSetupBuilder_ == null) { - if (billingSetup_ != null) { - billingSetup_ = - com.google.ads.googleads.v0.resources.BillingSetup.newBuilder(billingSetup_).mergeFrom(value).buildPartial(); - } else { - billingSetup_ = value; - } - onChanged(); - } else { - billingSetupBuilder_.mergeFrom(value); + if (other.hasUserList()) { + mergeUserList(other.getUserList()); } - - return this; - } - /** - *
-     * The billing setup referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.BillingSetup billing_setup = 41; - */ - public Builder clearBillingSetup() { - if (billingSetupBuilder_ == null) { - billingSetup_ = null; - onChanged(); - } else { - billingSetup_ = null; - billingSetupBuilder_ = null; + if (other.hasRemarketingAction()) { + mergeRemarketingAction(other.getRemarketingAction()); } - - return this; - } - /** - *
-     * The billing setup referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.BillingSetup billing_setup = 41; - */ - public com.google.ads.googleads.v0.resources.BillingSetup.Builder getBillingSetupBuilder() { - + if (other.hasTopicConstant()) { + mergeTopicConstant(other.getTopicConstant()); + } + if (other.hasVideo()) { + mergeVideo(other.getVideo()); + } + if (other.hasMetrics()) { + mergeMetrics(other.getMetrics()); + } + if (other.hasSegments()) { + mergeSegments(other.getSegments()); + } + this.mergeUnknownFields(other.unknownFields); onChanged(); - return getBillingSetupFieldBuilder().getBuilder(); + return this; } - /** - *
-     * The billing setup referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.BillingSetup billing_setup = 41; - */ - public com.google.ads.googleads.v0.resources.BillingSetupOrBuilder getBillingSetupOrBuilder() { - if (billingSetupBuilder_ != null) { - return billingSetupBuilder_.getMessageOrBuilder(); - } else { - return billingSetup_ == null ? - com.google.ads.googleads.v0.resources.BillingSetup.getDefaultInstance() : billingSetup_; - } + + @java.lang.Override + public final boolean isInitialized() { + return true; } - /** - *
-     * The billing setup referenced in the query.
-     * 
- * - * .google.ads.googleads.v0.resources.BillingSetup billing_setup = 41; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.BillingSetup, com.google.ads.googleads.v0.resources.BillingSetup.Builder, com.google.ads.googleads.v0.resources.BillingSetupOrBuilder> - getBillingSetupFieldBuilder() { - if (billingSetupBuilder_ == null) { - billingSetupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.BillingSetup, com.google.ads.googleads.v0.resources.BillingSetup.Builder, com.google.ads.googleads.v0.resources.BillingSetupOrBuilder>( - getBillingSetup(), - getParentForChildren(), - isClean()); - billingSetup_ = null; + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.ads.googleads.v0.services.GoogleAdsRow parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.services.GoogleAdsRow) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } } - return billingSetupBuilder_; + return this; } - private com.google.ads.googleads.v0.resources.CampaignBudget campaignBudget_ = null; + private com.google.ads.googleads.v0.resources.AccountBudget accountBudget_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CampaignBudget, com.google.ads.googleads.v0.resources.CampaignBudget.Builder, com.google.ads.googleads.v0.resources.CampaignBudgetOrBuilder> campaignBudgetBuilder_; + com.google.ads.googleads.v0.resources.AccountBudget, com.google.ads.googleads.v0.resources.AccountBudget.Builder, com.google.ads.googleads.v0.resources.AccountBudgetOrBuilder> accountBudgetBuilder_; /** *
-     * The campaign budget referenced in the query.
+     * The account budget in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignBudget campaign_budget = 19; + * .google.ads.googleads.v0.resources.AccountBudget account_budget = 42; */ - public boolean hasCampaignBudget() { - return campaignBudgetBuilder_ != null || campaignBudget_ != null; + public boolean hasAccountBudget() { + return accountBudgetBuilder_ != null || accountBudget_ != null; } /** *
-     * The campaign budget referenced in the query.
+     * The account budget in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignBudget campaign_budget = 19; + * .google.ads.googleads.v0.resources.AccountBudget account_budget = 42; */ - public com.google.ads.googleads.v0.resources.CampaignBudget getCampaignBudget() { - if (campaignBudgetBuilder_ == null) { - return campaignBudget_ == null ? com.google.ads.googleads.v0.resources.CampaignBudget.getDefaultInstance() : campaignBudget_; + public com.google.ads.googleads.v0.resources.AccountBudget getAccountBudget() { + if (accountBudgetBuilder_ == null) { + return accountBudget_ == null ? com.google.ads.googleads.v0.resources.AccountBudget.getDefaultInstance() : accountBudget_; } else { - return campaignBudgetBuilder_.getMessage(); + return accountBudgetBuilder_.getMessage(); } } /** *
-     * The campaign budget referenced in the query.
+     * The account budget in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignBudget campaign_budget = 19; + * .google.ads.googleads.v0.resources.AccountBudget account_budget = 42; */ - public Builder setCampaignBudget(com.google.ads.googleads.v0.resources.CampaignBudget value) { - if (campaignBudgetBuilder_ == null) { + public Builder setAccountBudget(com.google.ads.googleads.v0.resources.AccountBudget value) { + if (accountBudgetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - campaignBudget_ = value; + accountBudget_ = value; onChanged(); } else { - campaignBudgetBuilder_.setMessage(value); + accountBudgetBuilder_.setMessage(value); } return this; } /** *
-     * The campaign budget referenced in the query.
+     * The account budget in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignBudget campaign_budget = 19; + * .google.ads.googleads.v0.resources.AccountBudget account_budget = 42; */ - public Builder setCampaignBudget( - com.google.ads.googleads.v0.resources.CampaignBudget.Builder builderForValue) { - if (campaignBudgetBuilder_ == null) { - campaignBudget_ = builderForValue.build(); + public Builder setAccountBudget( + com.google.ads.googleads.v0.resources.AccountBudget.Builder builderForValue) { + if (accountBudgetBuilder_ == null) { + accountBudget_ = builderForValue.build(); onChanged(); } else { - campaignBudgetBuilder_.setMessage(builderForValue.build()); + accountBudgetBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The campaign budget referenced in the query.
+     * The account budget in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignBudget campaign_budget = 19; + * .google.ads.googleads.v0.resources.AccountBudget account_budget = 42; */ - public Builder mergeCampaignBudget(com.google.ads.googleads.v0.resources.CampaignBudget value) { - if (campaignBudgetBuilder_ == null) { - if (campaignBudget_ != null) { - campaignBudget_ = - com.google.ads.googleads.v0.resources.CampaignBudget.newBuilder(campaignBudget_).mergeFrom(value).buildPartial(); + public Builder mergeAccountBudget(com.google.ads.googleads.v0.resources.AccountBudget value) { + if (accountBudgetBuilder_ == null) { + if (accountBudget_ != null) { + accountBudget_ = + com.google.ads.googleads.v0.resources.AccountBudget.newBuilder(accountBudget_).mergeFrom(value).buildPartial(); } else { - campaignBudget_ = value; + accountBudget_ = value; } onChanged(); } else { - campaignBudgetBuilder_.mergeFrom(value); + accountBudgetBuilder_.mergeFrom(value); } return this; } /** *
-     * The campaign budget referenced in the query.
+     * The account budget in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignBudget campaign_budget = 19; + * .google.ads.googleads.v0.resources.AccountBudget account_budget = 42; */ - public Builder clearCampaignBudget() { - if (campaignBudgetBuilder_ == null) { - campaignBudget_ = null; + public Builder clearAccountBudget() { + if (accountBudgetBuilder_ == null) { + accountBudget_ = null; onChanged(); } else { - campaignBudget_ = null; - campaignBudgetBuilder_ = null; + accountBudget_ = null; + accountBudgetBuilder_ = null; } return this; } /** *
-     * The campaign budget referenced in the query.
+     * The account budget in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignBudget campaign_budget = 19; + * .google.ads.googleads.v0.resources.AccountBudget account_budget = 42; */ - public com.google.ads.googleads.v0.resources.CampaignBudget.Builder getCampaignBudgetBuilder() { + public com.google.ads.googleads.v0.resources.AccountBudget.Builder getAccountBudgetBuilder() { onChanged(); - return getCampaignBudgetFieldBuilder().getBuilder(); + return getAccountBudgetFieldBuilder().getBuilder(); } /** *
-     * The campaign budget referenced in the query.
+     * The account budget in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignBudget campaign_budget = 19; + * .google.ads.googleads.v0.resources.AccountBudget account_budget = 42; */ - public com.google.ads.googleads.v0.resources.CampaignBudgetOrBuilder getCampaignBudgetOrBuilder() { - if (campaignBudgetBuilder_ != null) { - return campaignBudgetBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.AccountBudgetOrBuilder getAccountBudgetOrBuilder() { + if (accountBudgetBuilder_ != null) { + return accountBudgetBuilder_.getMessageOrBuilder(); } else { - return campaignBudget_ == null ? - com.google.ads.googleads.v0.resources.CampaignBudget.getDefaultInstance() : campaignBudget_; + return accountBudget_ == null ? + com.google.ads.googleads.v0.resources.AccountBudget.getDefaultInstance() : accountBudget_; } } /** *
-     * The campaign budget referenced in the query.
+     * The account budget in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignBudget campaign_budget = 19; + * .google.ads.googleads.v0.resources.AccountBudget account_budget = 42; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CampaignBudget, com.google.ads.googleads.v0.resources.CampaignBudget.Builder, com.google.ads.googleads.v0.resources.CampaignBudgetOrBuilder> - getCampaignBudgetFieldBuilder() { - if (campaignBudgetBuilder_ == null) { - campaignBudgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CampaignBudget, com.google.ads.googleads.v0.resources.CampaignBudget.Builder, com.google.ads.googleads.v0.resources.CampaignBudgetOrBuilder>( - getCampaignBudget(), + com.google.ads.googleads.v0.resources.AccountBudget, com.google.ads.googleads.v0.resources.AccountBudget.Builder, com.google.ads.googleads.v0.resources.AccountBudgetOrBuilder> + getAccountBudgetFieldBuilder() { + if (accountBudgetBuilder_ == null) { + accountBudgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.AccountBudget, com.google.ads.googleads.v0.resources.AccountBudget.Builder, com.google.ads.googleads.v0.resources.AccountBudgetOrBuilder>( + getAccountBudget(), getParentForChildren(), isClean()); - campaignBudget_ = null; + accountBudget_ = null; } - return campaignBudgetBuilder_; + return accountBudgetBuilder_; } - private com.google.ads.googleads.v0.resources.Campaign campaign_ = null; + private com.google.ads.googleads.v0.resources.AccountBudgetProposal accountBudgetProposal_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.Campaign, com.google.ads.googleads.v0.resources.Campaign.Builder, com.google.ads.googleads.v0.resources.CampaignOrBuilder> campaignBuilder_; + com.google.ads.googleads.v0.resources.AccountBudgetProposal, com.google.ads.googleads.v0.resources.AccountBudgetProposal.Builder, com.google.ads.googleads.v0.resources.AccountBudgetProposalOrBuilder> accountBudgetProposalBuilder_; /** *
-     * The campaign referenced in the query.
+     * The account budget proposal referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Campaign campaign = 2; + * .google.ads.googleads.v0.resources.AccountBudgetProposal account_budget_proposal = 43; */ - public boolean hasCampaign() { - return campaignBuilder_ != null || campaign_ != null; + public boolean hasAccountBudgetProposal() { + return accountBudgetProposalBuilder_ != null || accountBudgetProposal_ != null; } /** *
-     * The campaign referenced in the query.
+     * The account budget proposal referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Campaign campaign = 2; + * .google.ads.googleads.v0.resources.AccountBudgetProposal account_budget_proposal = 43; */ - public com.google.ads.googleads.v0.resources.Campaign getCampaign() { - if (campaignBuilder_ == null) { - return campaign_ == null ? com.google.ads.googleads.v0.resources.Campaign.getDefaultInstance() : campaign_; + public com.google.ads.googleads.v0.resources.AccountBudgetProposal getAccountBudgetProposal() { + if (accountBudgetProposalBuilder_ == null) { + return accountBudgetProposal_ == null ? com.google.ads.googleads.v0.resources.AccountBudgetProposal.getDefaultInstance() : accountBudgetProposal_; } else { - return campaignBuilder_.getMessage(); + return accountBudgetProposalBuilder_.getMessage(); } } /** *
-     * The campaign referenced in the query.
+     * The account budget proposal referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Campaign campaign = 2; + * .google.ads.googleads.v0.resources.AccountBudgetProposal account_budget_proposal = 43; */ - public Builder setCampaign(com.google.ads.googleads.v0.resources.Campaign value) { - if (campaignBuilder_ == null) { + public Builder setAccountBudgetProposal(com.google.ads.googleads.v0.resources.AccountBudgetProposal value) { + if (accountBudgetProposalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - campaign_ = value; + accountBudgetProposal_ = value; onChanged(); } else { - campaignBuilder_.setMessage(value); + accountBudgetProposalBuilder_.setMessage(value); } return this; } /** *
-     * The campaign referenced in the query.
+     * The account budget proposal referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Campaign campaign = 2; + * .google.ads.googleads.v0.resources.AccountBudgetProposal account_budget_proposal = 43; */ - public Builder setCampaign( - com.google.ads.googleads.v0.resources.Campaign.Builder builderForValue) { - if (campaignBuilder_ == null) { - campaign_ = builderForValue.build(); + public Builder setAccountBudgetProposal( + com.google.ads.googleads.v0.resources.AccountBudgetProposal.Builder builderForValue) { + if (accountBudgetProposalBuilder_ == null) { + accountBudgetProposal_ = builderForValue.build(); onChanged(); } else { - campaignBuilder_.setMessage(builderForValue.build()); + accountBudgetProposalBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The campaign referenced in the query.
+     * The account budget proposal referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Campaign campaign = 2; + * .google.ads.googleads.v0.resources.AccountBudgetProposal account_budget_proposal = 43; */ - public Builder mergeCampaign(com.google.ads.googleads.v0.resources.Campaign value) { - if (campaignBuilder_ == null) { - if (campaign_ != null) { - campaign_ = - com.google.ads.googleads.v0.resources.Campaign.newBuilder(campaign_).mergeFrom(value).buildPartial(); + public Builder mergeAccountBudgetProposal(com.google.ads.googleads.v0.resources.AccountBudgetProposal value) { + if (accountBudgetProposalBuilder_ == null) { + if (accountBudgetProposal_ != null) { + accountBudgetProposal_ = + com.google.ads.googleads.v0.resources.AccountBudgetProposal.newBuilder(accountBudgetProposal_).mergeFrom(value).buildPartial(); } else { - campaign_ = value; + accountBudgetProposal_ = value; } onChanged(); } else { - campaignBuilder_.mergeFrom(value); + accountBudgetProposalBuilder_.mergeFrom(value); } return this; } /** *
-     * The campaign referenced in the query.
+     * The account budget proposal referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Campaign campaign = 2; + * .google.ads.googleads.v0.resources.AccountBudgetProposal account_budget_proposal = 43; */ - public Builder clearCampaign() { - if (campaignBuilder_ == null) { - campaign_ = null; + public Builder clearAccountBudgetProposal() { + if (accountBudgetProposalBuilder_ == null) { + accountBudgetProposal_ = null; onChanged(); } else { - campaign_ = null; - campaignBuilder_ = null; + accountBudgetProposal_ = null; + accountBudgetProposalBuilder_ = null; } return this; } /** *
-     * The campaign referenced in the query.
+     * The account budget proposal referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Campaign campaign = 2; + * .google.ads.googleads.v0.resources.AccountBudgetProposal account_budget_proposal = 43; */ - public com.google.ads.googleads.v0.resources.Campaign.Builder getCampaignBuilder() { + public com.google.ads.googleads.v0.resources.AccountBudgetProposal.Builder getAccountBudgetProposalBuilder() { onChanged(); - return getCampaignFieldBuilder().getBuilder(); + return getAccountBudgetProposalFieldBuilder().getBuilder(); } /** *
-     * The campaign referenced in the query.
+     * The account budget proposal referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Campaign campaign = 2; + * .google.ads.googleads.v0.resources.AccountBudgetProposal account_budget_proposal = 43; */ - public com.google.ads.googleads.v0.resources.CampaignOrBuilder getCampaignOrBuilder() { - if (campaignBuilder_ != null) { - return campaignBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.AccountBudgetProposalOrBuilder getAccountBudgetProposalOrBuilder() { + if (accountBudgetProposalBuilder_ != null) { + return accountBudgetProposalBuilder_.getMessageOrBuilder(); } else { - return campaign_ == null ? - com.google.ads.googleads.v0.resources.Campaign.getDefaultInstance() : campaign_; + return accountBudgetProposal_ == null ? + com.google.ads.googleads.v0.resources.AccountBudgetProposal.getDefaultInstance() : accountBudgetProposal_; } } /** *
-     * The campaign referenced in the query.
+     * The account budget proposal referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Campaign campaign = 2; + * .google.ads.googleads.v0.resources.AccountBudgetProposal account_budget_proposal = 43; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.Campaign, com.google.ads.googleads.v0.resources.Campaign.Builder, com.google.ads.googleads.v0.resources.CampaignOrBuilder> - getCampaignFieldBuilder() { - if (campaignBuilder_ == null) { - campaignBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.Campaign, com.google.ads.googleads.v0.resources.Campaign.Builder, com.google.ads.googleads.v0.resources.CampaignOrBuilder>( - getCampaign(), + com.google.ads.googleads.v0.resources.AccountBudgetProposal, com.google.ads.googleads.v0.resources.AccountBudgetProposal.Builder, com.google.ads.googleads.v0.resources.AccountBudgetProposalOrBuilder> + getAccountBudgetProposalFieldBuilder() { + if (accountBudgetProposalBuilder_ == null) { + accountBudgetProposalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.AccountBudgetProposal, com.google.ads.googleads.v0.resources.AccountBudgetProposal.Builder, com.google.ads.googleads.v0.resources.AccountBudgetProposalOrBuilder>( + getAccountBudgetProposal(), getParentForChildren(), isClean()); - campaign_ = null; + accountBudgetProposal_ = null; } - return campaignBuilder_; + return accountBudgetProposalBuilder_; } - private com.google.ads.googleads.v0.resources.CampaignAudienceView campaignAudienceView_ = null; + private com.google.ads.googleads.v0.resources.AdGroup adGroup_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CampaignAudienceView, com.google.ads.googleads.v0.resources.CampaignAudienceView.Builder, com.google.ads.googleads.v0.resources.CampaignAudienceViewOrBuilder> campaignAudienceViewBuilder_; + com.google.ads.googleads.v0.resources.AdGroup, com.google.ads.googleads.v0.resources.AdGroup.Builder, com.google.ads.googleads.v0.resources.AdGroupOrBuilder> adGroupBuilder_; /** *
-     * The campaign audience view referenced in the query.
+     * The ad group referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignAudienceView campaign_audience_view = 69; + * .google.ads.googleads.v0.resources.AdGroup ad_group = 3; */ - public boolean hasCampaignAudienceView() { - return campaignAudienceViewBuilder_ != null || campaignAudienceView_ != null; + public boolean hasAdGroup() { + return adGroupBuilder_ != null || adGroup_ != null; } /** *
-     * The campaign audience view referenced in the query.
+     * The ad group referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignAudienceView campaign_audience_view = 69; + * .google.ads.googleads.v0.resources.AdGroup ad_group = 3; */ - public com.google.ads.googleads.v0.resources.CampaignAudienceView getCampaignAudienceView() { - if (campaignAudienceViewBuilder_ == null) { - return campaignAudienceView_ == null ? com.google.ads.googleads.v0.resources.CampaignAudienceView.getDefaultInstance() : campaignAudienceView_; + public com.google.ads.googleads.v0.resources.AdGroup getAdGroup() { + if (adGroupBuilder_ == null) { + return adGroup_ == null ? com.google.ads.googleads.v0.resources.AdGroup.getDefaultInstance() : adGroup_; } else { - return campaignAudienceViewBuilder_.getMessage(); + return adGroupBuilder_.getMessage(); } } /** *
-     * The campaign audience view referenced in the query.
+     * The ad group referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignAudienceView campaign_audience_view = 69; + * .google.ads.googleads.v0.resources.AdGroup ad_group = 3; */ - public Builder setCampaignAudienceView(com.google.ads.googleads.v0.resources.CampaignAudienceView value) { - if (campaignAudienceViewBuilder_ == null) { + public Builder setAdGroup(com.google.ads.googleads.v0.resources.AdGroup value) { + if (adGroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - campaignAudienceView_ = value; + adGroup_ = value; onChanged(); } else { - campaignAudienceViewBuilder_.setMessage(value); + adGroupBuilder_.setMessage(value); } return this; } /** *
-     * The campaign audience view referenced in the query.
+     * The ad group referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignAudienceView campaign_audience_view = 69; + * .google.ads.googleads.v0.resources.AdGroup ad_group = 3; */ - public Builder setCampaignAudienceView( - com.google.ads.googleads.v0.resources.CampaignAudienceView.Builder builderForValue) { - if (campaignAudienceViewBuilder_ == null) { - campaignAudienceView_ = builderForValue.build(); + public Builder setAdGroup( + com.google.ads.googleads.v0.resources.AdGroup.Builder builderForValue) { + if (adGroupBuilder_ == null) { + adGroup_ = builderForValue.build(); onChanged(); } else { - campaignAudienceViewBuilder_.setMessage(builderForValue.build()); + adGroupBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The campaign audience view referenced in the query.
+     * The ad group referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignAudienceView campaign_audience_view = 69; + * .google.ads.googleads.v0.resources.AdGroup ad_group = 3; */ - public Builder mergeCampaignAudienceView(com.google.ads.googleads.v0.resources.CampaignAudienceView value) { - if (campaignAudienceViewBuilder_ == null) { - if (campaignAudienceView_ != null) { - campaignAudienceView_ = - com.google.ads.googleads.v0.resources.CampaignAudienceView.newBuilder(campaignAudienceView_).mergeFrom(value).buildPartial(); + public Builder mergeAdGroup(com.google.ads.googleads.v0.resources.AdGroup value) { + if (adGroupBuilder_ == null) { + if (adGroup_ != null) { + adGroup_ = + com.google.ads.googleads.v0.resources.AdGroup.newBuilder(adGroup_).mergeFrom(value).buildPartial(); } else { - campaignAudienceView_ = value; + adGroup_ = value; } onChanged(); } else { - campaignAudienceViewBuilder_.mergeFrom(value); + adGroupBuilder_.mergeFrom(value); } return this; } /** *
-     * The campaign audience view referenced in the query.
+     * The ad group referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignAudienceView campaign_audience_view = 69; + * .google.ads.googleads.v0.resources.AdGroup ad_group = 3; */ - public Builder clearCampaignAudienceView() { - if (campaignAudienceViewBuilder_ == null) { - campaignAudienceView_ = null; + public Builder clearAdGroup() { + if (adGroupBuilder_ == null) { + adGroup_ = null; onChanged(); } else { - campaignAudienceView_ = null; - campaignAudienceViewBuilder_ = null; + adGroup_ = null; + adGroupBuilder_ = null; } return this; } /** *
-     * The campaign audience view referenced in the query.
+     * The ad group referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignAudienceView campaign_audience_view = 69; + * .google.ads.googleads.v0.resources.AdGroup ad_group = 3; */ - public com.google.ads.googleads.v0.resources.CampaignAudienceView.Builder getCampaignAudienceViewBuilder() { + public com.google.ads.googleads.v0.resources.AdGroup.Builder getAdGroupBuilder() { onChanged(); - return getCampaignAudienceViewFieldBuilder().getBuilder(); + return getAdGroupFieldBuilder().getBuilder(); } /** *
-     * The campaign audience view referenced in the query.
+     * The ad group referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignAudienceView campaign_audience_view = 69; + * .google.ads.googleads.v0.resources.AdGroup ad_group = 3; */ - public com.google.ads.googleads.v0.resources.CampaignAudienceViewOrBuilder getCampaignAudienceViewOrBuilder() { - if (campaignAudienceViewBuilder_ != null) { - return campaignAudienceViewBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.AdGroupOrBuilder getAdGroupOrBuilder() { + if (adGroupBuilder_ != null) { + return adGroupBuilder_.getMessageOrBuilder(); } else { - return campaignAudienceView_ == null ? - com.google.ads.googleads.v0.resources.CampaignAudienceView.getDefaultInstance() : campaignAudienceView_; + return adGroup_ == null ? + com.google.ads.googleads.v0.resources.AdGroup.getDefaultInstance() : adGroup_; } } /** *
-     * The campaign audience view referenced in the query.
+     * The ad group referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignAudienceView campaign_audience_view = 69; + * .google.ads.googleads.v0.resources.AdGroup ad_group = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CampaignAudienceView, com.google.ads.googleads.v0.resources.CampaignAudienceView.Builder, com.google.ads.googleads.v0.resources.CampaignAudienceViewOrBuilder> - getCampaignAudienceViewFieldBuilder() { - if (campaignAudienceViewBuilder_ == null) { - campaignAudienceViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CampaignAudienceView, com.google.ads.googleads.v0.resources.CampaignAudienceView.Builder, com.google.ads.googleads.v0.resources.CampaignAudienceViewOrBuilder>( - getCampaignAudienceView(), + com.google.ads.googleads.v0.resources.AdGroup, com.google.ads.googleads.v0.resources.AdGroup.Builder, com.google.ads.googleads.v0.resources.AdGroupOrBuilder> + getAdGroupFieldBuilder() { + if (adGroupBuilder_ == null) { + adGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.AdGroup, com.google.ads.googleads.v0.resources.AdGroup.Builder, com.google.ads.googleads.v0.resources.AdGroupOrBuilder>( + getAdGroup(), getParentForChildren(), isClean()); - campaignAudienceView_ = null; + adGroup_ = null; } - return campaignAudienceViewBuilder_; + return adGroupBuilder_; } - private com.google.ads.googleads.v0.resources.CampaignBidModifier campaignBidModifier_ = null; + private com.google.ads.googleads.v0.resources.AdGroupAd adGroupAd_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CampaignBidModifier, com.google.ads.googleads.v0.resources.CampaignBidModifier.Builder, com.google.ads.googleads.v0.resources.CampaignBidModifierOrBuilder> campaignBidModifierBuilder_; + com.google.ads.googleads.v0.resources.AdGroupAd, com.google.ads.googleads.v0.resources.AdGroupAd.Builder, com.google.ads.googleads.v0.resources.AdGroupAdOrBuilder> adGroupAdBuilder_; /** *
-     * The campaign bid modifier referenced in the query.
+     * The ad referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignBidModifier campaign_bid_modifier = 26; + * .google.ads.googleads.v0.resources.AdGroupAd ad_group_ad = 16; */ - public boolean hasCampaignBidModifier() { - return campaignBidModifierBuilder_ != null || campaignBidModifier_ != null; + public boolean hasAdGroupAd() { + return adGroupAdBuilder_ != null || adGroupAd_ != null; } /** *
-     * The campaign bid modifier referenced in the query.
+     * The ad referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignBidModifier campaign_bid_modifier = 26; + * .google.ads.googleads.v0.resources.AdGroupAd ad_group_ad = 16; */ - public com.google.ads.googleads.v0.resources.CampaignBidModifier getCampaignBidModifier() { - if (campaignBidModifierBuilder_ == null) { - return campaignBidModifier_ == null ? com.google.ads.googleads.v0.resources.CampaignBidModifier.getDefaultInstance() : campaignBidModifier_; + public com.google.ads.googleads.v0.resources.AdGroupAd getAdGroupAd() { + if (adGroupAdBuilder_ == null) { + return adGroupAd_ == null ? com.google.ads.googleads.v0.resources.AdGroupAd.getDefaultInstance() : adGroupAd_; } else { - return campaignBidModifierBuilder_.getMessage(); + return adGroupAdBuilder_.getMessage(); } } /** *
-     * The campaign bid modifier referenced in the query.
+     * The ad referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignBidModifier campaign_bid_modifier = 26; + * .google.ads.googleads.v0.resources.AdGroupAd ad_group_ad = 16; */ - public Builder setCampaignBidModifier(com.google.ads.googleads.v0.resources.CampaignBidModifier value) { - if (campaignBidModifierBuilder_ == null) { + public Builder setAdGroupAd(com.google.ads.googleads.v0.resources.AdGroupAd value) { + if (adGroupAdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - campaignBidModifier_ = value; + adGroupAd_ = value; onChanged(); } else { - campaignBidModifierBuilder_.setMessage(value); + adGroupAdBuilder_.setMessage(value); } return this; } /** *
-     * The campaign bid modifier referenced in the query.
+     * The ad referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignBidModifier campaign_bid_modifier = 26; + * .google.ads.googleads.v0.resources.AdGroupAd ad_group_ad = 16; */ - public Builder setCampaignBidModifier( - com.google.ads.googleads.v0.resources.CampaignBidModifier.Builder builderForValue) { - if (campaignBidModifierBuilder_ == null) { - campaignBidModifier_ = builderForValue.build(); + public Builder setAdGroupAd( + com.google.ads.googleads.v0.resources.AdGroupAd.Builder builderForValue) { + if (adGroupAdBuilder_ == null) { + adGroupAd_ = builderForValue.build(); onChanged(); } else { - campaignBidModifierBuilder_.setMessage(builderForValue.build()); + adGroupAdBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The campaign bid modifier referenced in the query.
+     * The ad referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignBidModifier campaign_bid_modifier = 26; + * .google.ads.googleads.v0.resources.AdGroupAd ad_group_ad = 16; */ - public Builder mergeCampaignBidModifier(com.google.ads.googleads.v0.resources.CampaignBidModifier value) { - if (campaignBidModifierBuilder_ == null) { - if (campaignBidModifier_ != null) { - campaignBidModifier_ = - com.google.ads.googleads.v0.resources.CampaignBidModifier.newBuilder(campaignBidModifier_).mergeFrom(value).buildPartial(); + public Builder mergeAdGroupAd(com.google.ads.googleads.v0.resources.AdGroupAd value) { + if (adGroupAdBuilder_ == null) { + if (adGroupAd_ != null) { + adGroupAd_ = + com.google.ads.googleads.v0.resources.AdGroupAd.newBuilder(adGroupAd_).mergeFrom(value).buildPartial(); } else { - campaignBidModifier_ = value; + adGroupAd_ = value; } onChanged(); } else { - campaignBidModifierBuilder_.mergeFrom(value); + adGroupAdBuilder_.mergeFrom(value); } return this; } /** *
-     * The campaign bid modifier referenced in the query.
+     * The ad referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignBidModifier campaign_bid_modifier = 26; + * .google.ads.googleads.v0.resources.AdGroupAd ad_group_ad = 16; */ - public Builder clearCampaignBidModifier() { - if (campaignBidModifierBuilder_ == null) { - campaignBidModifier_ = null; + public Builder clearAdGroupAd() { + if (adGroupAdBuilder_ == null) { + adGroupAd_ = null; onChanged(); } else { - campaignBidModifier_ = null; - campaignBidModifierBuilder_ = null; + adGroupAd_ = null; + adGroupAdBuilder_ = null; } return this; } /** *
-     * The campaign bid modifier referenced in the query.
+     * The ad referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignBidModifier campaign_bid_modifier = 26; + * .google.ads.googleads.v0.resources.AdGroupAd ad_group_ad = 16; */ - public com.google.ads.googleads.v0.resources.CampaignBidModifier.Builder getCampaignBidModifierBuilder() { + public com.google.ads.googleads.v0.resources.AdGroupAd.Builder getAdGroupAdBuilder() { onChanged(); - return getCampaignBidModifierFieldBuilder().getBuilder(); + return getAdGroupAdFieldBuilder().getBuilder(); } /** *
-     * The campaign bid modifier referenced in the query.
+     * The ad referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignBidModifier campaign_bid_modifier = 26; + * .google.ads.googleads.v0.resources.AdGroupAd ad_group_ad = 16; */ - public com.google.ads.googleads.v0.resources.CampaignBidModifierOrBuilder getCampaignBidModifierOrBuilder() { - if (campaignBidModifierBuilder_ != null) { - return campaignBidModifierBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.AdGroupAdOrBuilder getAdGroupAdOrBuilder() { + if (adGroupAdBuilder_ != null) { + return adGroupAdBuilder_.getMessageOrBuilder(); } else { - return campaignBidModifier_ == null ? - com.google.ads.googleads.v0.resources.CampaignBidModifier.getDefaultInstance() : campaignBidModifier_; + return adGroupAd_ == null ? + com.google.ads.googleads.v0.resources.AdGroupAd.getDefaultInstance() : adGroupAd_; } } /** *
-     * The campaign bid modifier referenced in the query.
+     * The ad referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignBidModifier campaign_bid_modifier = 26; + * .google.ads.googleads.v0.resources.AdGroupAd ad_group_ad = 16; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CampaignBidModifier, com.google.ads.googleads.v0.resources.CampaignBidModifier.Builder, com.google.ads.googleads.v0.resources.CampaignBidModifierOrBuilder> - getCampaignBidModifierFieldBuilder() { - if (campaignBidModifierBuilder_ == null) { - campaignBidModifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CampaignBidModifier, com.google.ads.googleads.v0.resources.CampaignBidModifier.Builder, com.google.ads.googleads.v0.resources.CampaignBidModifierOrBuilder>( - getCampaignBidModifier(), + com.google.ads.googleads.v0.resources.AdGroupAd, com.google.ads.googleads.v0.resources.AdGroupAd.Builder, com.google.ads.googleads.v0.resources.AdGroupAdOrBuilder> + getAdGroupAdFieldBuilder() { + if (adGroupAdBuilder_ == null) { + adGroupAdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.AdGroupAd, com.google.ads.googleads.v0.resources.AdGroupAd.Builder, com.google.ads.googleads.v0.resources.AdGroupAdOrBuilder>( + getAdGroupAd(), getParentForChildren(), isClean()); - campaignBidModifier_ = null; + adGroupAd_ = null; } - return campaignBidModifierBuilder_; + return adGroupAdBuilder_; } - private com.google.ads.googleads.v0.resources.CampaignCriterion campaignCriterion_ = null; + private com.google.ads.googleads.v0.resources.AdGroupAudienceView adGroupAudienceView_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CampaignCriterion, com.google.ads.googleads.v0.resources.CampaignCriterion.Builder, com.google.ads.googleads.v0.resources.CampaignCriterionOrBuilder> campaignCriterionBuilder_; + com.google.ads.googleads.v0.resources.AdGroupAudienceView, com.google.ads.googleads.v0.resources.AdGroupAudienceView.Builder, com.google.ads.googleads.v0.resources.AdGroupAudienceViewOrBuilder> adGroupAudienceViewBuilder_; /** *
-     * The campaign criterion referenced in the query.
+     * The ad group audience view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignCriterion campaign_criterion = 20; + * .google.ads.googleads.v0.resources.AdGroupAudienceView ad_group_audience_view = 57; */ - public boolean hasCampaignCriterion() { - return campaignCriterionBuilder_ != null || campaignCriterion_ != null; + public boolean hasAdGroupAudienceView() { + return adGroupAudienceViewBuilder_ != null || adGroupAudienceView_ != null; } /** *
-     * The campaign criterion referenced in the query.
+     * The ad group audience view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignCriterion campaign_criterion = 20; + * .google.ads.googleads.v0.resources.AdGroupAudienceView ad_group_audience_view = 57; */ - public com.google.ads.googleads.v0.resources.CampaignCriterion getCampaignCriterion() { - if (campaignCriterionBuilder_ == null) { - return campaignCriterion_ == null ? com.google.ads.googleads.v0.resources.CampaignCriterion.getDefaultInstance() : campaignCriterion_; + public com.google.ads.googleads.v0.resources.AdGroupAudienceView getAdGroupAudienceView() { + if (adGroupAudienceViewBuilder_ == null) { + return adGroupAudienceView_ == null ? com.google.ads.googleads.v0.resources.AdGroupAudienceView.getDefaultInstance() : adGroupAudienceView_; } else { - return campaignCriterionBuilder_.getMessage(); + return adGroupAudienceViewBuilder_.getMessage(); } } /** *
-     * The campaign criterion referenced in the query.
+     * The ad group audience view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignCriterion campaign_criterion = 20; + * .google.ads.googleads.v0.resources.AdGroupAudienceView ad_group_audience_view = 57; */ - public Builder setCampaignCriterion(com.google.ads.googleads.v0.resources.CampaignCriterion value) { - if (campaignCriterionBuilder_ == null) { + public Builder setAdGroupAudienceView(com.google.ads.googleads.v0.resources.AdGroupAudienceView value) { + if (adGroupAudienceViewBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - campaignCriterion_ = value; + adGroupAudienceView_ = value; onChanged(); } else { - campaignCriterionBuilder_.setMessage(value); + adGroupAudienceViewBuilder_.setMessage(value); } return this; } /** *
-     * The campaign criterion referenced in the query.
+     * The ad group audience view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignCriterion campaign_criterion = 20; + * .google.ads.googleads.v0.resources.AdGroupAudienceView ad_group_audience_view = 57; */ - public Builder setCampaignCriterion( - com.google.ads.googleads.v0.resources.CampaignCriterion.Builder builderForValue) { - if (campaignCriterionBuilder_ == null) { - campaignCriterion_ = builderForValue.build(); + public Builder setAdGroupAudienceView( + com.google.ads.googleads.v0.resources.AdGroupAudienceView.Builder builderForValue) { + if (adGroupAudienceViewBuilder_ == null) { + adGroupAudienceView_ = builderForValue.build(); onChanged(); } else { - campaignCriterionBuilder_.setMessage(builderForValue.build()); + adGroupAudienceViewBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The campaign criterion referenced in the query.
+     * The ad group audience view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignCriterion campaign_criterion = 20; + * .google.ads.googleads.v0.resources.AdGroupAudienceView ad_group_audience_view = 57; */ - public Builder mergeCampaignCriterion(com.google.ads.googleads.v0.resources.CampaignCriterion value) { - if (campaignCriterionBuilder_ == null) { - if (campaignCriterion_ != null) { - campaignCriterion_ = - com.google.ads.googleads.v0.resources.CampaignCriterion.newBuilder(campaignCriterion_).mergeFrom(value).buildPartial(); + public Builder mergeAdGroupAudienceView(com.google.ads.googleads.v0.resources.AdGroupAudienceView value) { + if (adGroupAudienceViewBuilder_ == null) { + if (adGroupAudienceView_ != null) { + adGroupAudienceView_ = + com.google.ads.googleads.v0.resources.AdGroupAudienceView.newBuilder(adGroupAudienceView_).mergeFrom(value).buildPartial(); } else { - campaignCriterion_ = value; + adGroupAudienceView_ = value; } onChanged(); } else { - campaignCriterionBuilder_.mergeFrom(value); + adGroupAudienceViewBuilder_.mergeFrom(value); } return this; } /** *
-     * The campaign criterion referenced in the query.
+     * The ad group audience view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignCriterion campaign_criterion = 20; + * .google.ads.googleads.v0.resources.AdGroupAudienceView ad_group_audience_view = 57; */ - public Builder clearCampaignCriterion() { - if (campaignCriterionBuilder_ == null) { - campaignCriterion_ = null; + public Builder clearAdGroupAudienceView() { + if (adGroupAudienceViewBuilder_ == null) { + adGroupAudienceView_ = null; onChanged(); } else { - campaignCriterion_ = null; - campaignCriterionBuilder_ = null; + adGroupAudienceView_ = null; + adGroupAudienceViewBuilder_ = null; } return this; } /** *
-     * The campaign criterion referenced in the query.
+     * The ad group audience view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignCriterion campaign_criterion = 20; + * .google.ads.googleads.v0.resources.AdGroupAudienceView ad_group_audience_view = 57; */ - public com.google.ads.googleads.v0.resources.CampaignCriterion.Builder getCampaignCriterionBuilder() { + public com.google.ads.googleads.v0.resources.AdGroupAudienceView.Builder getAdGroupAudienceViewBuilder() { onChanged(); - return getCampaignCriterionFieldBuilder().getBuilder(); + return getAdGroupAudienceViewFieldBuilder().getBuilder(); } /** *
-     * The campaign criterion referenced in the query.
+     * The ad group audience view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignCriterion campaign_criterion = 20; + * .google.ads.googleads.v0.resources.AdGroupAudienceView ad_group_audience_view = 57; */ - public com.google.ads.googleads.v0.resources.CampaignCriterionOrBuilder getCampaignCriterionOrBuilder() { - if (campaignCriterionBuilder_ != null) { - return campaignCriterionBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.AdGroupAudienceViewOrBuilder getAdGroupAudienceViewOrBuilder() { + if (adGroupAudienceViewBuilder_ != null) { + return adGroupAudienceViewBuilder_.getMessageOrBuilder(); } else { - return campaignCriterion_ == null ? - com.google.ads.googleads.v0.resources.CampaignCriterion.getDefaultInstance() : campaignCriterion_; + return adGroupAudienceView_ == null ? + com.google.ads.googleads.v0.resources.AdGroupAudienceView.getDefaultInstance() : adGroupAudienceView_; } } /** *
-     * The campaign criterion referenced in the query.
+     * The ad group audience view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignCriterion campaign_criterion = 20; + * .google.ads.googleads.v0.resources.AdGroupAudienceView ad_group_audience_view = 57; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CampaignCriterion, com.google.ads.googleads.v0.resources.CampaignCriterion.Builder, com.google.ads.googleads.v0.resources.CampaignCriterionOrBuilder> - getCampaignCriterionFieldBuilder() { - if (campaignCriterionBuilder_ == null) { - campaignCriterionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CampaignCriterion, com.google.ads.googleads.v0.resources.CampaignCriterion.Builder, com.google.ads.googleads.v0.resources.CampaignCriterionOrBuilder>( - getCampaignCriterion(), + com.google.ads.googleads.v0.resources.AdGroupAudienceView, com.google.ads.googleads.v0.resources.AdGroupAudienceView.Builder, com.google.ads.googleads.v0.resources.AdGroupAudienceViewOrBuilder> + getAdGroupAudienceViewFieldBuilder() { + if (adGroupAudienceViewBuilder_ == null) { + adGroupAudienceViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.AdGroupAudienceView, com.google.ads.googleads.v0.resources.AdGroupAudienceView.Builder, com.google.ads.googleads.v0.resources.AdGroupAudienceViewOrBuilder>( + getAdGroupAudienceView(), getParentForChildren(), isClean()); - campaignCriterion_ = null; + adGroupAudienceView_ = null; } - return campaignCriterionBuilder_; + return adGroupAudienceViewBuilder_; } - private com.google.ads.googleads.v0.resources.CampaignFeed campaignFeed_ = null; + private com.google.ads.googleads.v0.resources.AdGroupBidModifier adGroupBidModifier_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CampaignFeed, com.google.ads.googleads.v0.resources.CampaignFeed.Builder, com.google.ads.googleads.v0.resources.CampaignFeedOrBuilder> campaignFeedBuilder_; + com.google.ads.googleads.v0.resources.AdGroupBidModifier, com.google.ads.googleads.v0.resources.AdGroupBidModifier.Builder, com.google.ads.googleads.v0.resources.AdGroupBidModifierOrBuilder> adGroupBidModifierBuilder_; /** *
-     * The campaign feed referenced in the query.
+     * The bid modifier referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignFeed campaign_feed = 63; + * .google.ads.googleads.v0.resources.AdGroupBidModifier ad_group_bid_modifier = 24; */ - public boolean hasCampaignFeed() { - return campaignFeedBuilder_ != null || campaignFeed_ != null; + public boolean hasAdGroupBidModifier() { + return adGroupBidModifierBuilder_ != null || adGroupBidModifier_ != null; } /** *
-     * The campaign feed referenced in the query.
+     * The bid modifier referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignFeed campaign_feed = 63; + * .google.ads.googleads.v0.resources.AdGroupBidModifier ad_group_bid_modifier = 24; */ - public com.google.ads.googleads.v0.resources.CampaignFeed getCampaignFeed() { - if (campaignFeedBuilder_ == null) { - return campaignFeed_ == null ? com.google.ads.googleads.v0.resources.CampaignFeed.getDefaultInstance() : campaignFeed_; + public com.google.ads.googleads.v0.resources.AdGroupBidModifier getAdGroupBidModifier() { + if (adGroupBidModifierBuilder_ == null) { + return adGroupBidModifier_ == null ? com.google.ads.googleads.v0.resources.AdGroupBidModifier.getDefaultInstance() : adGroupBidModifier_; } else { - return campaignFeedBuilder_.getMessage(); + return adGroupBidModifierBuilder_.getMessage(); } } /** *
-     * The campaign feed referenced in the query.
+     * The bid modifier referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignFeed campaign_feed = 63; + * .google.ads.googleads.v0.resources.AdGroupBidModifier ad_group_bid_modifier = 24; */ - public Builder setCampaignFeed(com.google.ads.googleads.v0.resources.CampaignFeed value) { - if (campaignFeedBuilder_ == null) { + public Builder setAdGroupBidModifier(com.google.ads.googleads.v0.resources.AdGroupBidModifier value) { + if (adGroupBidModifierBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - campaignFeed_ = value; + adGroupBidModifier_ = value; onChanged(); } else { - campaignFeedBuilder_.setMessage(value); + adGroupBidModifierBuilder_.setMessage(value); } return this; } /** *
-     * The campaign feed referenced in the query.
+     * The bid modifier referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignFeed campaign_feed = 63; + * .google.ads.googleads.v0.resources.AdGroupBidModifier ad_group_bid_modifier = 24; */ - public Builder setCampaignFeed( - com.google.ads.googleads.v0.resources.CampaignFeed.Builder builderForValue) { - if (campaignFeedBuilder_ == null) { - campaignFeed_ = builderForValue.build(); + public Builder setAdGroupBidModifier( + com.google.ads.googleads.v0.resources.AdGroupBidModifier.Builder builderForValue) { + if (adGroupBidModifierBuilder_ == null) { + adGroupBidModifier_ = builderForValue.build(); onChanged(); } else { - campaignFeedBuilder_.setMessage(builderForValue.build()); + adGroupBidModifierBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The campaign feed referenced in the query.
+     * The bid modifier referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignFeed campaign_feed = 63; + * .google.ads.googleads.v0.resources.AdGroupBidModifier ad_group_bid_modifier = 24; */ - public Builder mergeCampaignFeed(com.google.ads.googleads.v0.resources.CampaignFeed value) { - if (campaignFeedBuilder_ == null) { - if (campaignFeed_ != null) { - campaignFeed_ = - com.google.ads.googleads.v0.resources.CampaignFeed.newBuilder(campaignFeed_).mergeFrom(value).buildPartial(); + public Builder mergeAdGroupBidModifier(com.google.ads.googleads.v0.resources.AdGroupBidModifier value) { + if (adGroupBidModifierBuilder_ == null) { + if (adGroupBidModifier_ != null) { + adGroupBidModifier_ = + com.google.ads.googleads.v0.resources.AdGroupBidModifier.newBuilder(adGroupBidModifier_).mergeFrom(value).buildPartial(); } else { - campaignFeed_ = value; + adGroupBidModifier_ = value; } onChanged(); } else { - campaignFeedBuilder_.mergeFrom(value); + adGroupBidModifierBuilder_.mergeFrom(value); } return this; } /** *
-     * The campaign feed referenced in the query.
+     * The bid modifier referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignFeed campaign_feed = 63; + * .google.ads.googleads.v0.resources.AdGroupBidModifier ad_group_bid_modifier = 24; */ - public Builder clearCampaignFeed() { - if (campaignFeedBuilder_ == null) { - campaignFeed_ = null; + public Builder clearAdGroupBidModifier() { + if (adGroupBidModifierBuilder_ == null) { + adGroupBidModifier_ = null; onChanged(); } else { - campaignFeed_ = null; - campaignFeedBuilder_ = null; + adGroupBidModifier_ = null; + adGroupBidModifierBuilder_ = null; } return this; } /** *
-     * The campaign feed referenced in the query.
+     * The bid modifier referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignFeed campaign_feed = 63; + * .google.ads.googleads.v0.resources.AdGroupBidModifier ad_group_bid_modifier = 24; */ - public com.google.ads.googleads.v0.resources.CampaignFeed.Builder getCampaignFeedBuilder() { + public com.google.ads.googleads.v0.resources.AdGroupBidModifier.Builder getAdGroupBidModifierBuilder() { onChanged(); - return getCampaignFeedFieldBuilder().getBuilder(); + return getAdGroupBidModifierFieldBuilder().getBuilder(); } /** *
-     * The campaign feed referenced in the query.
+     * The bid modifier referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignFeed campaign_feed = 63; + * .google.ads.googleads.v0.resources.AdGroupBidModifier ad_group_bid_modifier = 24; */ - public com.google.ads.googleads.v0.resources.CampaignFeedOrBuilder getCampaignFeedOrBuilder() { - if (campaignFeedBuilder_ != null) { - return campaignFeedBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.AdGroupBidModifierOrBuilder getAdGroupBidModifierOrBuilder() { + if (adGroupBidModifierBuilder_ != null) { + return adGroupBidModifierBuilder_.getMessageOrBuilder(); } else { - return campaignFeed_ == null ? - com.google.ads.googleads.v0.resources.CampaignFeed.getDefaultInstance() : campaignFeed_; + return adGroupBidModifier_ == null ? + com.google.ads.googleads.v0.resources.AdGroupBidModifier.getDefaultInstance() : adGroupBidModifier_; } } /** *
-     * The campaign feed referenced in the query.
+     * The bid modifier referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignFeed campaign_feed = 63; + * .google.ads.googleads.v0.resources.AdGroupBidModifier ad_group_bid_modifier = 24; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CampaignFeed, com.google.ads.googleads.v0.resources.CampaignFeed.Builder, com.google.ads.googleads.v0.resources.CampaignFeedOrBuilder> - getCampaignFeedFieldBuilder() { - if (campaignFeedBuilder_ == null) { - campaignFeedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CampaignFeed, com.google.ads.googleads.v0.resources.CampaignFeed.Builder, com.google.ads.googleads.v0.resources.CampaignFeedOrBuilder>( - getCampaignFeed(), + com.google.ads.googleads.v0.resources.AdGroupBidModifier, com.google.ads.googleads.v0.resources.AdGroupBidModifier.Builder, com.google.ads.googleads.v0.resources.AdGroupBidModifierOrBuilder> + getAdGroupBidModifierFieldBuilder() { + if (adGroupBidModifierBuilder_ == null) { + adGroupBidModifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.AdGroupBidModifier, com.google.ads.googleads.v0.resources.AdGroupBidModifier.Builder, com.google.ads.googleads.v0.resources.AdGroupBidModifierOrBuilder>( + getAdGroupBidModifier(), getParentForChildren(), isClean()); - campaignFeed_ = null; + adGroupBidModifier_ = null; } - return campaignFeedBuilder_; + return adGroupBidModifierBuilder_; } - private com.google.ads.googleads.v0.resources.CampaignGroup campaignGroup_ = null; + private com.google.ads.googleads.v0.resources.AdGroupCriterion adGroupCriterion_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CampaignGroup, com.google.ads.googleads.v0.resources.CampaignGroup.Builder, com.google.ads.googleads.v0.resources.CampaignGroupOrBuilder> campaignGroupBuilder_; + com.google.ads.googleads.v0.resources.AdGroupCriterion, com.google.ads.googleads.v0.resources.AdGroupCriterion.Builder, com.google.ads.googleads.v0.resources.AdGroupCriterionOrBuilder> adGroupCriterionBuilder_; /** *
-     * Campaign Group referenced in AWQL query.
+     * The criterion referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignGroup campaign_group = 25; + * .google.ads.googleads.v0.resources.AdGroupCriterion ad_group_criterion = 17; */ - public boolean hasCampaignGroup() { - return campaignGroupBuilder_ != null || campaignGroup_ != null; + public boolean hasAdGroupCriterion() { + return adGroupCriterionBuilder_ != null || adGroupCriterion_ != null; } /** *
-     * Campaign Group referenced in AWQL query.
+     * The criterion referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignGroup campaign_group = 25; + * .google.ads.googleads.v0.resources.AdGroupCriterion ad_group_criterion = 17; */ - public com.google.ads.googleads.v0.resources.CampaignGroup getCampaignGroup() { - if (campaignGroupBuilder_ == null) { - return campaignGroup_ == null ? com.google.ads.googleads.v0.resources.CampaignGroup.getDefaultInstance() : campaignGroup_; + public com.google.ads.googleads.v0.resources.AdGroupCriterion getAdGroupCriterion() { + if (adGroupCriterionBuilder_ == null) { + return adGroupCriterion_ == null ? com.google.ads.googleads.v0.resources.AdGroupCriterion.getDefaultInstance() : adGroupCriterion_; } else { - return campaignGroupBuilder_.getMessage(); + return adGroupCriterionBuilder_.getMessage(); } } /** *
-     * Campaign Group referenced in AWQL query.
+     * The criterion referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignGroup campaign_group = 25; + * .google.ads.googleads.v0.resources.AdGroupCriterion ad_group_criterion = 17; */ - public Builder setCampaignGroup(com.google.ads.googleads.v0.resources.CampaignGroup value) { - if (campaignGroupBuilder_ == null) { + public Builder setAdGroupCriterion(com.google.ads.googleads.v0.resources.AdGroupCriterion value) { + if (adGroupCriterionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - campaignGroup_ = value; + adGroupCriterion_ = value; onChanged(); } else { - campaignGroupBuilder_.setMessage(value); + adGroupCriterionBuilder_.setMessage(value); } return this; } /** *
-     * Campaign Group referenced in AWQL query.
+     * The criterion referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignGroup campaign_group = 25; + * .google.ads.googleads.v0.resources.AdGroupCriterion ad_group_criterion = 17; */ - public Builder setCampaignGroup( - com.google.ads.googleads.v0.resources.CampaignGroup.Builder builderForValue) { - if (campaignGroupBuilder_ == null) { - campaignGroup_ = builderForValue.build(); + public Builder setAdGroupCriterion( + com.google.ads.googleads.v0.resources.AdGroupCriterion.Builder builderForValue) { + if (adGroupCriterionBuilder_ == null) { + adGroupCriterion_ = builderForValue.build(); onChanged(); } else { - campaignGroupBuilder_.setMessage(builderForValue.build()); + adGroupCriterionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * Campaign Group referenced in AWQL query.
+     * The criterion referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignGroup campaign_group = 25; + * .google.ads.googleads.v0.resources.AdGroupCriterion ad_group_criterion = 17; */ - public Builder mergeCampaignGroup(com.google.ads.googleads.v0.resources.CampaignGroup value) { - if (campaignGroupBuilder_ == null) { - if (campaignGroup_ != null) { - campaignGroup_ = - com.google.ads.googleads.v0.resources.CampaignGroup.newBuilder(campaignGroup_).mergeFrom(value).buildPartial(); + public Builder mergeAdGroupCriterion(com.google.ads.googleads.v0.resources.AdGroupCriterion value) { + if (adGroupCriterionBuilder_ == null) { + if (adGroupCriterion_ != null) { + adGroupCriterion_ = + com.google.ads.googleads.v0.resources.AdGroupCriterion.newBuilder(adGroupCriterion_).mergeFrom(value).buildPartial(); } else { - campaignGroup_ = value; + adGroupCriterion_ = value; } onChanged(); } else { - campaignGroupBuilder_.mergeFrom(value); + adGroupCriterionBuilder_.mergeFrom(value); } return this; } /** *
-     * Campaign Group referenced in AWQL query.
+     * The criterion referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignGroup campaign_group = 25; + * .google.ads.googleads.v0.resources.AdGroupCriterion ad_group_criterion = 17; */ - public Builder clearCampaignGroup() { - if (campaignGroupBuilder_ == null) { - campaignGroup_ = null; + public Builder clearAdGroupCriterion() { + if (adGroupCriterionBuilder_ == null) { + adGroupCriterion_ = null; onChanged(); } else { - campaignGroup_ = null; - campaignGroupBuilder_ = null; + adGroupCriterion_ = null; + adGroupCriterionBuilder_ = null; } return this; } /** *
-     * Campaign Group referenced in AWQL query.
+     * The criterion referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignGroup campaign_group = 25; + * .google.ads.googleads.v0.resources.AdGroupCriterion ad_group_criterion = 17; */ - public com.google.ads.googleads.v0.resources.CampaignGroup.Builder getCampaignGroupBuilder() { + public com.google.ads.googleads.v0.resources.AdGroupCriterion.Builder getAdGroupCriterionBuilder() { onChanged(); - return getCampaignGroupFieldBuilder().getBuilder(); + return getAdGroupCriterionFieldBuilder().getBuilder(); } /** *
-     * Campaign Group referenced in AWQL query.
+     * The criterion referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignGroup campaign_group = 25; + * .google.ads.googleads.v0.resources.AdGroupCriterion ad_group_criterion = 17; */ - public com.google.ads.googleads.v0.resources.CampaignGroupOrBuilder getCampaignGroupOrBuilder() { - if (campaignGroupBuilder_ != null) { - return campaignGroupBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.AdGroupCriterionOrBuilder getAdGroupCriterionOrBuilder() { + if (adGroupCriterionBuilder_ != null) { + return adGroupCriterionBuilder_.getMessageOrBuilder(); } else { - return campaignGroup_ == null ? - com.google.ads.googleads.v0.resources.CampaignGroup.getDefaultInstance() : campaignGroup_; + return adGroupCriterion_ == null ? + com.google.ads.googleads.v0.resources.AdGroupCriterion.getDefaultInstance() : adGroupCriterion_; } } /** *
-     * Campaign Group referenced in AWQL query.
+     * The criterion referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignGroup campaign_group = 25; + * .google.ads.googleads.v0.resources.AdGroupCriterion ad_group_criterion = 17; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CampaignGroup, com.google.ads.googleads.v0.resources.CampaignGroup.Builder, com.google.ads.googleads.v0.resources.CampaignGroupOrBuilder> - getCampaignGroupFieldBuilder() { - if (campaignGroupBuilder_ == null) { - campaignGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CampaignGroup, com.google.ads.googleads.v0.resources.CampaignGroup.Builder, com.google.ads.googleads.v0.resources.CampaignGroupOrBuilder>( - getCampaignGroup(), + com.google.ads.googleads.v0.resources.AdGroupCriterion, com.google.ads.googleads.v0.resources.AdGroupCriterion.Builder, com.google.ads.googleads.v0.resources.AdGroupCriterionOrBuilder> + getAdGroupCriterionFieldBuilder() { + if (adGroupCriterionBuilder_ == null) { + adGroupCriterionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.AdGroupCriterion, com.google.ads.googleads.v0.resources.AdGroupCriterion.Builder, com.google.ads.googleads.v0.resources.AdGroupCriterionOrBuilder>( + getAdGroupCriterion(), getParentForChildren(), isClean()); - campaignGroup_ = null; + adGroupCriterion_ = null; } - return campaignGroupBuilder_; + return adGroupCriterionBuilder_; } - private com.google.ads.googleads.v0.resources.CampaignSharedSet campaignSharedSet_ = null; + private com.google.ads.googleads.v0.resources.AdGroupFeed adGroupFeed_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CampaignSharedSet, com.google.ads.googleads.v0.resources.CampaignSharedSet.Builder, com.google.ads.googleads.v0.resources.CampaignSharedSetOrBuilder> campaignSharedSetBuilder_; + com.google.ads.googleads.v0.resources.AdGroupFeed, com.google.ads.googleads.v0.resources.AdGroupFeed.Builder, com.google.ads.googleads.v0.resources.AdGroupFeedOrBuilder> adGroupFeedBuilder_; /** *
-     * Campaign Shared Set referenced in AWQL query.
+     * The ad group feed referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignSharedSet campaign_shared_set = 30; + * .google.ads.googleads.v0.resources.AdGroupFeed ad_group_feed = 67; */ - public boolean hasCampaignSharedSet() { - return campaignSharedSetBuilder_ != null || campaignSharedSet_ != null; + public boolean hasAdGroupFeed() { + return adGroupFeedBuilder_ != null || adGroupFeed_ != null; } /** *
-     * Campaign Shared Set referenced in AWQL query.
+     * The ad group feed referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignSharedSet campaign_shared_set = 30; + * .google.ads.googleads.v0.resources.AdGroupFeed ad_group_feed = 67; */ - public com.google.ads.googleads.v0.resources.CampaignSharedSet getCampaignSharedSet() { - if (campaignSharedSetBuilder_ == null) { - return campaignSharedSet_ == null ? com.google.ads.googleads.v0.resources.CampaignSharedSet.getDefaultInstance() : campaignSharedSet_; + public com.google.ads.googleads.v0.resources.AdGroupFeed getAdGroupFeed() { + if (adGroupFeedBuilder_ == null) { + return adGroupFeed_ == null ? com.google.ads.googleads.v0.resources.AdGroupFeed.getDefaultInstance() : adGroupFeed_; } else { - return campaignSharedSetBuilder_.getMessage(); + return adGroupFeedBuilder_.getMessage(); } } /** *
-     * Campaign Shared Set referenced in AWQL query.
+     * The ad group feed referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignSharedSet campaign_shared_set = 30; + * .google.ads.googleads.v0.resources.AdGroupFeed ad_group_feed = 67; */ - public Builder setCampaignSharedSet(com.google.ads.googleads.v0.resources.CampaignSharedSet value) { - if (campaignSharedSetBuilder_ == null) { + public Builder setAdGroupFeed(com.google.ads.googleads.v0.resources.AdGroupFeed value) { + if (adGroupFeedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - campaignSharedSet_ = value; + adGroupFeed_ = value; onChanged(); } else { - campaignSharedSetBuilder_.setMessage(value); + adGroupFeedBuilder_.setMessage(value); } return this; } /** *
-     * Campaign Shared Set referenced in AWQL query.
+     * The ad group feed referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignSharedSet campaign_shared_set = 30; + * .google.ads.googleads.v0.resources.AdGroupFeed ad_group_feed = 67; */ - public Builder setCampaignSharedSet( - com.google.ads.googleads.v0.resources.CampaignSharedSet.Builder builderForValue) { - if (campaignSharedSetBuilder_ == null) { - campaignSharedSet_ = builderForValue.build(); + public Builder setAdGroupFeed( + com.google.ads.googleads.v0.resources.AdGroupFeed.Builder builderForValue) { + if (adGroupFeedBuilder_ == null) { + adGroupFeed_ = builderForValue.build(); onChanged(); } else { - campaignSharedSetBuilder_.setMessage(builderForValue.build()); + adGroupFeedBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * Campaign Shared Set referenced in AWQL query.
+     * The ad group feed referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignSharedSet campaign_shared_set = 30; + * .google.ads.googleads.v0.resources.AdGroupFeed ad_group_feed = 67; */ - public Builder mergeCampaignSharedSet(com.google.ads.googleads.v0.resources.CampaignSharedSet value) { - if (campaignSharedSetBuilder_ == null) { - if (campaignSharedSet_ != null) { - campaignSharedSet_ = - com.google.ads.googleads.v0.resources.CampaignSharedSet.newBuilder(campaignSharedSet_).mergeFrom(value).buildPartial(); + public Builder mergeAdGroupFeed(com.google.ads.googleads.v0.resources.AdGroupFeed value) { + if (adGroupFeedBuilder_ == null) { + if (adGroupFeed_ != null) { + adGroupFeed_ = + com.google.ads.googleads.v0.resources.AdGroupFeed.newBuilder(adGroupFeed_).mergeFrom(value).buildPartial(); } else { - campaignSharedSet_ = value; + adGroupFeed_ = value; } onChanged(); } else { - campaignSharedSetBuilder_.mergeFrom(value); + adGroupFeedBuilder_.mergeFrom(value); } return this; } /** *
-     * Campaign Shared Set referenced in AWQL query.
+     * The ad group feed referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignSharedSet campaign_shared_set = 30; + * .google.ads.googleads.v0.resources.AdGroupFeed ad_group_feed = 67; */ - public Builder clearCampaignSharedSet() { - if (campaignSharedSetBuilder_ == null) { - campaignSharedSet_ = null; + public Builder clearAdGroupFeed() { + if (adGroupFeedBuilder_ == null) { + adGroupFeed_ = null; onChanged(); } else { - campaignSharedSet_ = null; - campaignSharedSetBuilder_ = null; + adGroupFeed_ = null; + adGroupFeedBuilder_ = null; } return this; } /** *
-     * Campaign Shared Set referenced in AWQL query.
+     * The ad group feed referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignSharedSet campaign_shared_set = 30; + * .google.ads.googleads.v0.resources.AdGroupFeed ad_group_feed = 67; */ - public com.google.ads.googleads.v0.resources.CampaignSharedSet.Builder getCampaignSharedSetBuilder() { + public com.google.ads.googleads.v0.resources.AdGroupFeed.Builder getAdGroupFeedBuilder() { onChanged(); - return getCampaignSharedSetFieldBuilder().getBuilder(); + return getAdGroupFeedFieldBuilder().getBuilder(); } /** *
-     * Campaign Shared Set referenced in AWQL query.
+     * The ad group feed referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignSharedSet campaign_shared_set = 30; + * .google.ads.googleads.v0.resources.AdGroupFeed ad_group_feed = 67; */ - public com.google.ads.googleads.v0.resources.CampaignSharedSetOrBuilder getCampaignSharedSetOrBuilder() { - if (campaignSharedSetBuilder_ != null) { - return campaignSharedSetBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.AdGroupFeedOrBuilder getAdGroupFeedOrBuilder() { + if (adGroupFeedBuilder_ != null) { + return adGroupFeedBuilder_.getMessageOrBuilder(); } else { - return campaignSharedSet_ == null ? - com.google.ads.googleads.v0.resources.CampaignSharedSet.getDefaultInstance() : campaignSharedSet_; + return adGroupFeed_ == null ? + com.google.ads.googleads.v0.resources.AdGroupFeed.getDefaultInstance() : adGroupFeed_; } } /** *
-     * Campaign Shared Set referenced in AWQL query.
+     * The ad group feed referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CampaignSharedSet campaign_shared_set = 30; + * .google.ads.googleads.v0.resources.AdGroupFeed ad_group_feed = 67; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CampaignSharedSet, com.google.ads.googleads.v0.resources.CampaignSharedSet.Builder, com.google.ads.googleads.v0.resources.CampaignSharedSetOrBuilder> - getCampaignSharedSetFieldBuilder() { - if (campaignSharedSetBuilder_ == null) { - campaignSharedSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CampaignSharedSet, com.google.ads.googleads.v0.resources.CampaignSharedSet.Builder, com.google.ads.googleads.v0.resources.CampaignSharedSetOrBuilder>( - getCampaignSharedSet(), + com.google.ads.googleads.v0.resources.AdGroupFeed, com.google.ads.googleads.v0.resources.AdGroupFeed.Builder, com.google.ads.googleads.v0.resources.AdGroupFeedOrBuilder> + getAdGroupFeedFieldBuilder() { + if (adGroupFeedBuilder_ == null) { + adGroupFeedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.AdGroupFeed, com.google.ads.googleads.v0.resources.AdGroupFeed.Builder, com.google.ads.googleads.v0.resources.AdGroupFeedOrBuilder>( + getAdGroupFeed(), getParentForChildren(), isClean()); - campaignSharedSet_ = null; + adGroupFeed_ = null; } - return campaignSharedSetBuilder_; + return adGroupFeedBuilder_; } - private com.google.ads.googleads.v0.resources.CarrierConstant carrierConstant_ = null; + private com.google.ads.googleads.v0.resources.AgeRangeView ageRangeView_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CarrierConstant, com.google.ads.googleads.v0.resources.CarrierConstant.Builder, com.google.ads.googleads.v0.resources.CarrierConstantOrBuilder> carrierConstantBuilder_; + com.google.ads.googleads.v0.resources.AgeRangeView, com.google.ads.googleads.v0.resources.AgeRangeView.Builder, com.google.ads.googleads.v0.resources.AgeRangeViewOrBuilder> ageRangeViewBuilder_; /** *
-     * The carrier constant referenced in the query.
+     * The age range view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CarrierConstant carrier_constant = 66; + * .google.ads.googleads.v0.resources.AgeRangeView age_range_view = 48; */ - public boolean hasCarrierConstant() { - return carrierConstantBuilder_ != null || carrierConstant_ != null; + public boolean hasAgeRangeView() { + return ageRangeViewBuilder_ != null || ageRangeView_ != null; } /** *
-     * The carrier constant referenced in the query.
+     * The age range view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CarrierConstant carrier_constant = 66; + * .google.ads.googleads.v0.resources.AgeRangeView age_range_view = 48; */ - public com.google.ads.googleads.v0.resources.CarrierConstant getCarrierConstant() { - if (carrierConstantBuilder_ == null) { - return carrierConstant_ == null ? com.google.ads.googleads.v0.resources.CarrierConstant.getDefaultInstance() : carrierConstant_; + public com.google.ads.googleads.v0.resources.AgeRangeView getAgeRangeView() { + if (ageRangeViewBuilder_ == null) { + return ageRangeView_ == null ? com.google.ads.googleads.v0.resources.AgeRangeView.getDefaultInstance() : ageRangeView_; } else { - return carrierConstantBuilder_.getMessage(); + return ageRangeViewBuilder_.getMessage(); } } /** *
-     * The carrier constant referenced in the query.
+     * The age range view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CarrierConstant carrier_constant = 66; + * .google.ads.googleads.v0.resources.AgeRangeView age_range_view = 48; */ - public Builder setCarrierConstant(com.google.ads.googleads.v0.resources.CarrierConstant value) { - if (carrierConstantBuilder_ == null) { + public Builder setAgeRangeView(com.google.ads.googleads.v0.resources.AgeRangeView value) { + if (ageRangeViewBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - carrierConstant_ = value; + ageRangeView_ = value; onChanged(); } else { - carrierConstantBuilder_.setMessage(value); + ageRangeViewBuilder_.setMessage(value); } return this; } /** *
-     * The carrier constant referenced in the query.
+     * The age range view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CarrierConstant carrier_constant = 66; + * .google.ads.googleads.v0.resources.AgeRangeView age_range_view = 48; */ - public Builder setCarrierConstant( - com.google.ads.googleads.v0.resources.CarrierConstant.Builder builderForValue) { - if (carrierConstantBuilder_ == null) { - carrierConstant_ = builderForValue.build(); + public Builder setAgeRangeView( + com.google.ads.googleads.v0.resources.AgeRangeView.Builder builderForValue) { + if (ageRangeViewBuilder_ == null) { + ageRangeView_ = builderForValue.build(); onChanged(); } else { - carrierConstantBuilder_.setMessage(builderForValue.build()); + ageRangeViewBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The carrier constant referenced in the query.
+     * The age range view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CarrierConstant carrier_constant = 66; + * .google.ads.googleads.v0.resources.AgeRangeView age_range_view = 48; */ - public Builder mergeCarrierConstant(com.google.ads.googleads.v0.resources.CarrierConstant value) { - if (carrierConstantBuilder_ == null) { - if (carrierConstant_ != null) { - carrierConstant_ = - com.google.ads.googleads.v0.resources.CarrierConstant.newBuilder(carrierConstant_).mergeFrom(value).buildPartial(); + public Builder mergeAgeRangeView(com.google.ads.googleads.v0.resources.AgeRangeView value) { + if (ageRangeViewBuilder_ == null) { + if (ageRangeView_ != null) { + ageRangeView_ = + com.google.ads.googleads.v0.resources.AgeRangeView.newBuilder(ageRangeView_).mergeFrom(value).buildPartial(); } else { - carrierConstant_ = value; + ageRangeView_ = value; } onChanged(); } else { - carrierConstantBuilder_.mergeFrom(value); + ageRangeViewBuilder_.mergeFrom(value); } return this; } /** *
-     * The carrier constant referenced in the query.
+     * The age range view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CarrierConstant carrier_constant = 66; + * .google.ads.googleads.v0.resources.AgeRangeView age_range_view = 48; */ - public Builder clearCarrierConstant() { - if (carrierConstantBuilder_ == null) { - carrierConstant_ = null; + public Builder clearAgeRangeView() { + if (ageRangeViewBuilder_ == null) { + ageRangeView_ = null; onChanged(); } else { - carrierConstant_ = null; - carrierConstantBuilder_ = null; + ageRangeView_ = null; + ageRangeViewBuilder_ = null; } return this; } /** *
-     * The carrier constant referenced in the query.
+     * The age range view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CarrierConstant carrier_constant = 66; + * .google.ads.googleads.v0.resources.AgeRangeView age_range_view = 48; */ - public com.google.ads.googleads.v0.resources.CarrierConstant.Builder getCarrierConstantBuilder() { + public com.google.ads.googleads.v0.resources.AgeRangeView.Builder getAgeRangeViewBuilder() { onChanged(); - return getCarrierConstantFieldBuilder().getBuilder(); + return getAgeRangeViewFieldBuilder().getBuilder(); } /** *
-     * The carrier constant referenced in the query.
+     * The age range view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CarrierConstant carrier_constant = 66; + * .google.ads.googleads.v0.resources.AgeRangeView age_range_view = 48; */ - public com.google.ads.googleads.v0.resources.CarrierConstantOrBuilder getCarrierConstantOrBuilder() { - if (carrierConstantBuilder_ != null) { - return carrierConstantBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.AgeRangeViewOrBuilder getAgeRangeViewOrBuilder() { + if (ageRangeViewBuilder_ != null) { + return ageRangeViewBuilder_.getMessageOrBuilder(); } else { - return carrierConstant_ == null ? - com.google.ads.googleads.v0.resources.CarrierConstant.getDefaultInstance() : carrierConstant_; + return ageRangeView_ == null ? + com.google.ads.googleads.v0.resources.AgeRangeView.getDefaultInstance() : ageRangeView_; } } /** *
-     * The carrier constant referenced in the query.
+     * The age range view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CarrierConstant carrier_constant = 66; + * .google.ads.googleads.v0.resources.AgeRangeView age_range_view = 48; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CarrierConstant, com.google.ads.googleads.v0.resources.CarrierConstant.Builder, com.google.ads.googleads.v0.resources.CarrierConstantOrBuilder> - getCarrierConstantFieldBuilder() { - if (carrierConstantBuilder_ == null) { - carrierConstantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CarrierConstant, com.google.ads.googleads.v0.resources.CarrierConstant.Builder, com.google.ads.googleads.v0.resources.CarrierConstantOrBuilder>( - getCarrierConstant(), + com.google.ads.googleads.v0.resources.AgeRangeView, com.google.ads.googleads.v0.resources.AgeRangeView.Builder, com.google.ads.googleads.v0.resources.AgeRangeViewOrBuilder> + getAgeRangeViewFieldBuilder() { + if (ageRangeViewBuilder_ == null) { + ageRangeViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.AgeRangeView, com.google.ads.googleads.v0.resources.AgeRangeView.Builder, com.google.ads.googleads.v0.resources.AgeRangeViewOrBuilder>( + getAgeRangeView(), getParentForChildren(), isClean()); - carrierConstant_ = null; + ageRangeView_ = null; } - return carrierConstantBuilder_; + return ageRangeViewBuilder_; } - private com.google.ads.googleads.v0.resources.ChangeStatus changeStatus_ = null; + private com.google.ads.googleads.v0.resources.AdScheduleView adScheduleView_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.ChangeStatus, com.google.ads.googleads.v0.resources.ChangeStatus.Builder, com.google.ads.googleads.v0.resources.ChangeStatusOrBuilder> changeStatusBuilder_; + com.google.ads.googleads.v0.resources.AdScheduleView, com.google.ads.googleads.v0.resources.AdScheduleView.Builder, com.google.ads.googleads.v0.resources.AdScheduleViewOrBuilder> adScheduleViewBuilder_; /** *
-     * The ChangeStatus referenced in the query.
+     * The ad schedule view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.ChangeStatus change_status = 37; + * .google.ads.googleads.v0.resources.AdScheduleView ad_schedule_view = 89; */ - public boolean hasChangeStatus() { - return changeStatusBuilder_ != null || changeStatus_ != null; + public boolean hasAdScheduleView() { + return adScheduleViewBuilder_ != null || adScheduleView_ != null; } /** *
-     * The ChangeStatus referenced in the query.
+     * The ad schedule view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.ChangeStatus change_status = 37; + * .google.ads.googleads.v0.resources.AdScheduleView ad_schedule_view = 89; */ - public com.google.ads.googleads.v0.resources.ChangeStatus getChangeStatus() { - if (changeStatusBuilder_ == null) { - return changeStatus_ == null ? com.google.ads.googleads.v0.resources.ChangeStatus.getDefaultInstance() : changeStatus_; + public com.google.ads.googleads.v0.resources.AdScheduleView getAdScheduleView() { + if (adScheduleViewBuilder_ == null) { + return adScheduleView_ == null ? com.google.ads.googleads.v0.resources.AdScheduleView.getDefaultInstance() : adScheduleView_; } else { - return changeStatusBuilder_.getMessage(); + return adScheduleViewBuilder_.getMessage(); } } /** *
-     * The ChangeStatus referenced in the query.
+     * The ad schedule view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.ChangeStatus change_status = 37; + * .google.ads.googleads.v0.resources.AdScheduleView ad_schedule_view = 89; */ - public Builder setChangeStatus(com.google.ads.googleads.v0.resources.ChangeStatus value) { - if (changeStatusBuilder_ == null) { + public Builder setAdScheduleView(com.google.ads.googleads.v0.resources.AdScheduleView value) { + if (adScheduleViewBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - changeStatus_ = value; + adScheduleView_ = value; onChanged(); } else { - changeStatusBuilder_.setMessage(value); + adScheduleViewBuilder_.setMessage(value); } return this; } /** *
-     * The ChangeStatus referenced in the query.
+     * The ad schedule view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.ChangeStatus change_status = 37; + * .google.ads.googleads.v0.resources.AdScheduleView ad_schedule_view = 89; */ - public Builder setChangeStatus( - com.google.ads.googleads.v0.resources.ChangeStatus.Builder builderForValue) { - if (changeStatusBuilder_ == null) { - changeStatus_ = builderForValue.build(); + public Builder setAdScheduleView( + com.google.ads.googleads.v0.resources.AdScheduleView.Builder builderForValue) { + if (adScheduleViewBuilder_ == null) { + adScheduleView_ = builderForValue.build(); onChanged(); } else { - changeStatusBuilder_.setMessage(builderForValue.build()); + adScheduleViewBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The ChangeStatus referenced in the query.
+     * The ad schedule view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.ChangeStatus change_status = 37; + * .google.ads.googleads.v0.resources.AdScheduleView ad_schedule_view = 89; */ - public Builder mergeChangeStatus(com.google.ads.googleads.v0.resources.ChangeStatus value) { - if (changeStatusBuilder_ == null) { - if (changeStatus_ != null) { - changeStatus_ = - com.google.ads.googleads.v0.resources.ChangeStatus.newBuilder(changeStatus_).mergeFrom(value).buildPartial(); + public Builder mergeAdScheduleView(com.google.ads.googleads.v0.resources.AdScheduleView value) { + if (adScheduleViewBuilder_ == null) { + if (adScheduleView_ != null) { + adScheduleView_ = + com.google.ads.googleads.v0.resources.AdScheduleView.newBuilder(adScheduleView_).mergeFrom(value).buildPartial(); } else { - changeStatus_ = value; + adScheduleView_ = value; } onChanged(); } else { - changeStatusBuilder_.mergeFrom(value); + adScheduleViewBuilder_.mergeFrom(value); } return this; } /** *
-     * The ChangeStatus referenced in the query.
+     * The ad schedule view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.ChangeStatus change_status = 37; + * .google.ads.googleads.v0.resources.AdScheduleView ad_schedule_view = 89; */ - public Builder clearChangeStatus() { - if (changeStatusBuilder_ == null) { - changeStatus_ = null; + public Builder clearAdScheduleView() { + if (adScheduleViewBuilder_ == null) { + adScheduleView_ = null; onChanged(); } else { - changeStatus_ = null; - changeStatusBuilder_ = null; + adScheduleView_ = null; + adScheduleViewBuilder_ = null; } return this; } /** *
-     * The ChangeStatus referenced in the query.
+     * The ad schedule view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.ChangeStatus change_status = 37; + * .google.ads.googleads.v0.resources.AdScheduleView ad_schedule_view = 89; */ - public com.google.ads.googleads.v0.resources.ChangeStatus.Builder getChangeStatusBuilder() { + public com.google.ads.googleads.v0.resources.AdScheduleView.Builder getAdScheduleViewBuilder() { onChanged(); - return getChangeStatusFieldBuilder().getBuilder(); + return getAdScheduleViewFieldBuilder().getBuilder(); } /** *
-     * The ChangeStatus referenced in the query.
+     * The ad schedule view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.ChangeStatus change_status = 37; + * .google.ads.googleads.v0.resources.AdScheduleView ad_schedule_view = 89; */ - public com.google.ads.googleads.v0.resources.ChangeStatusOrBuilder getChangeStatusOrBuilder() { - if (changeStatusBuilder_ != null) { - return changeStatusBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.AdScheduleViewOrBuilder getAdScheduleViewOrBuilder() { + if (adScheduleViewBuilder_ != null) { + return adScheduleViewBuilder_.getMessageOrBuilder(); } else { - return changeStatus_ == null ? - com.google.ads.googleads.v0.resources.ChangeStatus.getDefaultInstance() : changeStatus_; + return adScheduleView_ == null ? + com.google.ads.googleads.v0.resources.AdScheduleView.getDefaultInstance() : adScheduleView_; } } /** *
-     * The ChangeStatus referenced in the query.
+     * The ad schedule view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.ChangeStatus change_status = 37; + * .google.ads.googleads.v0.resources.AdScheduleView ad_schedule_view = 89; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.ChangeStatus, com.google.ads.googleads.v0.resources.ChangeStatus.Builder, com.google.ads.googleads.v0.resources.ChangeStatusOrBuilder> - getChangeStatusFieldBuilder() { - if (changeStatusBuilder_ == null) { - changeStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.ChangeStatus, com.google.ads.googleads.v0.resources.ChangeStatus.Builder, com.google.ads.googleads.v0.resources.ChangeStatusOrBuilder>( - getChangeStatus(), + com.google.ads.googleads.v0.resources.AdScheduleView, com.google.ads.googleads.v0.resources.AdScheduleView.Builder, com.google.ads.googleads.v0.resources.AdScheduleViewOrBuilder> + getAdScheduleViewFieldBuilder() { + if (adScheduleViewBuilder_ == null) { + adScheduleViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.AdScheduleView, com.google.ads.googleads.v0.resources.AdScheduleView.Builder, com.google.ads.googleads.v0.resources.AdScheduleViewOrBuilder>( + getAdScheduleView(), getParentForChildren(), isClean()); - changeStatus_ = null; + adScheduleView_ = null; } - return changeStatusBuilder_; + return adScheduleViewBuilder_; } - private com.google.ads.googleads.v0.resources.Customer customer_ = null; + private com.google.ads.googleads.v0.resources.BiddingStrategy biddingStrategy_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.Customer, com.google.ads.googleads.v0.resources.Customer.Builder, com.google.ads.googleads.v0.resources.CustomerOrBuilder> customerBuilder_; + com.google.ads.googleads.v0.resources.BiddingStrategy, com.google.ads.googleads.v0.resources.BiddingStrategy.Builder, com.google.ads.googleads.v0.resources.BiddingStrategyOrBuilder> biddingStrategyBuilder_; /** *
-     * The customer referenced in the query.
+     * The bidding strategy referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Customer customer = 1; + * .google.ads.googleads.v0.resources.BiddingStrategy bidding_strategy = 18; */ - public boolean hasCustomer() { - return customerBuilder_ != null || customer_ != null; + public boolean hasBiddingStrategy() { + return biddingStrategyBuilder_ != null || biddingStrategy_ != null; } /** *
-     * The customer referenced in the query.
+     * The bidding strategy referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Customer customer = 1; + * .google.ads.googleads.v0.resources.BiddingStrategy bidding_strategy = 18; */ - public com.google.ads.googleads.v0.resources.Customer getCustomer() { - if (customerBuilder_ == null) { - return customer_ == null ? com.google.ads.googleads.v0.resources.Customer.getDefaultInstance() : customer_; + public com.google.ads.googleads.v0.resources.BiddingStrategy getBiddingStrategy() { + if (biddingStrategyBuilder_ == null) { + return biddingStrategy_ == null ? com.google.ads.googleads.v0.resources.BiddingStrategy.getDefaultInstance() : biddingStrategy_; } else { - return customerBuilder_.getMessage(); + return biddingStrategyBuilder_.getMessage(); } } /** *
-     * The customer referenced in the query.
+     * The bidding strategy referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Customer customer = 1; + * .google.ads.googleads.v0.resources.BiddingStrategy bidding_strategy = 18; */ - public Builder setCustomer(com.google.ads.googleads.v0.resources.Customer value) { - if (customerBuilder_ == null) { + public Builder setBiddingStrategy(com.google.ads.googleads.v0.resources.BiddingStrategy value) { + if (biddingStrategyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - customer_ = value; + biddingStrategy_ = value; onChanged(); } else { - customerBuilder_.setMessage(value); + biddingStrategyBuilder_.setMessage(value); } return this; } /** *
-     * The customer referenced in the query.
+     * The bidding strategy referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Customer customer = 1; + * .google.ads.googleads.v0.resources.BiddingStrategy bidding_strategy = 18; */ - public Builder setCustomer( - com.google.ads.googleads.v0.resources.Customer.Builder builderForValue) { - if (customerBuilder_ == null) { - customer_ = builderForValue.build(); + public Builder setBiddingStrategy( + com.google.ads.googleads.v0.resources.BiddingStrategy.Builder builderForValue) { + if (biddingStrategyBuilder_ == null) { + biddingStrategy_ = builderForValue.build(); onChanged(); } else { - customerBuilder_.setMessage(builderForValue.build()); + biddingStrategyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The customer referenced in the query.
+     * The bidding strategy referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Customer customer = 1; + * .google.ads.googleads.v0.resources.BiddingStrategy bidding_strategy = 18; */ - public Builder mergeCustomer(com.google.ads.googleads.v0.resources.Customer value) { - if (customerBuilder_ == null) { - if (customer_ != null) { - customer_ = - com.google.ads.googleads.v0.resources.Customer.newBuilder(customer_).mergeFrom(value).buildPartial(); + public Builder mergeBiddingStrategy(com.google.ads.googleads.v0.resources.BiddingStrategy value) { + if (biddingStrategyBuilder_ == null) { + if (biddingStrategy_ != null) { + biddingStrategy_ = + com.google.ads.googleads.v0.resources.BiddingStrategy.newBuilder(biddingStrategy_).mergeFrom(value).buildPartial(); } else { - customer_ = value; + biddingStrategy_ = value; } onChanged(); } else { - customerBuilder_.mergeFrom(value); + biddingStrategyBuilder_.mergeFrom(value); } return this; } /** *
-     * The customer referenced in the query.
+     * The bidding strategy referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Customer customer = 1; + * .google.ads.googleads.v0.resources.BiddingStrategy bidding_strategy = 18; */ - public Builder clearCustomer() { - if (customerBuilder_ == null) { - customer_ = null; + public Builder clearBiddingStrategy() { + if (biddingStrategyBuilder_ == null) { + biddingStrategy_ = null; onChanged(); } else { - customer_ = null; - customerBuilder_ = null; + biddingStrategy_ = null; + biddingStrategyBuilder_ = null; } return this; } /** *
-     * The customer referenced in the query.
+     * The bidding strategy referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Customer customer = 1; + * .google.ads.googleads.v0.resources.BiddingStrategy bidding_strategy = 18; */ - public com.google.ads.googleads.v0.resources.Customer.Builder getCustomerBuilder() { + public com.google.ads.googleads.v0.resources.BiddingStrategy.Builder getBiddingStrategyBuilder() { onChanged(); - return getCustomerFieldBuilder().getBuilder(); + return getBiddingStrategyFieldBuilder().getBuilder(); } /** *
-     * The customer referenced in the query.
+     * The bidding strategy referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Customer customer = 1; + * .google.ads.googleads.v0.resources.BiddingStrategy bidding_strategy = 18; */ - public com.google.ads.googleads.v0.resources.CustomerOrBuilder getCustomerOrBuilder() { - if (customerBuilder_ != null) { - return customerBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.BiddingStrategyOrBuilder getBiddingStrategyOrBuilder() { + if (biddingStrategyBuilder_ != null) { + return biddingStrategyBuilder_.getMessageOrBuilder(); } else { - return customer_ == null ? - com.google.ads.googleads.v0.resources.Customer.getDefaultInstance() : customer_; + return biddingStrategy_ == null ? + com.google.ads.googleads.v0.resources.BiddingStrategy.getDefaultInstance() : biddingStrategy_; } } /** *
-     * The customer referenced in the query.
+     * The bidding strategy referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Customer customer = 1; + * .google.ads.googleads.v0.resources.BiddingStrategy bidding_strategy = 18; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.Customer, com.google.ads.googleads.v0.resources.Customer.Builder, com.google.ads.googleads.v0.resources.CustomerOrBuilder> - getCustomerFieldBuilder() { - if (customerBuilder_ == null) { - customerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.Customer, com.google.ads.googleads.v0.resources.Customer.Builder, com.google.ads.googleads.v0.resources.CustomerOrBuilder>( - getCustomer(), + com.google.ads.googleads.v0.resources.BiddingStrategy, com.google.ads.googleads.v0.resources.BiddingStrategy.Builder, com.google.ads.googleads.v0.resources.BiddingStrategyOrBuilder> + getBiddingStrategyFieldBuilder() { + if (biddingStrategyBuilder_ == null) { + biddingStrategyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.BiddingStrategy, com.google.ads.googleads.v0.resources.BiddingStrategy.Builder, com.google.ads.googleads.v0.resources.BiddingStrategyOrBuilder>( + getBiddingStrategy(), getParentForChildren(), isClean()); - customer_ = null; + biddingStrategy_ = null; } - return customerBuilder_; + return biddingStrategyBuilder_; } - private com.google.ads.googleads.v0.resources.CustomerManagerLink customerManagerLink_ = null; + private com.google.ads.googleads.v0.resources.BillingSetup billingSetup_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CustomerManagerLink, com.google.ads.googleads.v0.resources.CustomerManagerLink.Builder, com.google.ads.googleads.v0.resources.CustomerManagerLinkOrBuilder> customerManagerLinkBuilder_; + com.google.ads.googleads.v0.resources.BillingSetup, com.google.ads.googleads.v0.resources.BillingSetup.Builder, com.google.ads.googleads.v0.resources.BillingSetupOrBuilder> billingSetupBuilder_; /** *
-     * The CustomerManagerLink referenced in the query.
+     * The billing setup referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CustomerManagerLink customer_manager_link = 61; + * .google.ads.googleads.v0.resources.BillingSetup billing_setup = 41; */ - public boolean hasCustomerManagerLink() { - return customerManagerLinkBuilder_ != null || customerManagerLink_ != null; + public boolean hasBillingSetup() { + return billingSetupBuilder_ != null || billingSetup_ != null; } /** *
-     * The CustomerManagerLink referenced in the query.
+     * The billing setup referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CustomerManagerLink customer_manager_link = 61; + * .google.ads.googleads.v0.resources.BillingSetup billing_setup = 41; */ - public com.google.ads.googleads.v0.resources.CustomerManagerLink getCustomerManagerLink() { - if (customerManagerLinkBuilder_ == null) { - return customerManagerLink_ == null ? com.google.ads.googleads.v0.resources.CustomerManagerLink.getDefaultInstance() : customerManagerLink_; + public com.google.ads.googleads.v0.resources.BillingSetup getBillingSetup() { + if (billingSetupBuilder_ == null) { + return billingSetup_ == null ? com.google.ads.googleads.v0.resources.BillingSetup.getDefaultInstance() : billingSetup_; } else { - return customerManagerLinkBuilder_.getMessage(); + return billingSetupBuilder_.getMessage(); } } /** *
-     * The CustomerManagerLink referenced in the query.
+     * The billing setup referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CustomerManagerLink customer_manager_link = 61; + * .google.ads.googleads.v0.resources.BillingSetup billing_setup = 41; */ - public Builder setCustomerManagerLink(com.google.ads.googleads.v0.resources.CustomerManagerLink value) { - if (customerManagerLinkBuilder_ == null) { + public Builder setBillingSetup(com.google.ads.googleads.v0.resources.BillingSetup value) { + if (billingSetupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - customerManagerLink_ = value; + billingSetup_ = value; onChanged(); } else { - customerManagerLinkBuilder_.setMessage(value); + billingSetupBuilder_.setMessage(value); } return this; } /** *
-     * The CustomerManagerLink referenced in the query.
+     * The billing setup referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CustomerManagerLink customer_manager_link = 61; + * .google.ads.googleads.v0.resources.BillingSetup billing_setup = 41; */ - public Builder setCustomerManagerLink( - com.google.ads.googleads.v0.resources.CustomerManagerLink.Builder builderForValue) { - if (customerManagerLinkBuilder_ == null) { - customerManagerLink_ = builderForValue.build(); + public Builder setBillingSetup( + com.google.ads.googleads.v0.resources.BillingSetup.Builder builderForValue) { + if (billingSetupBuilder_ == null) { + billingSetup_ = builderForValue.build(); onChanged(); } else { - customerManagerLinkBuilder_.setMessage(builderForValue.build()); + billingSetupBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The CustomerManagerLink referenced in the query.
+     * The billing setup referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CustomerManagerLink customer_manager_link = 61; + * .google.ads.googleads.v0.resources.BillingSetup billing_setup = 41; */ - public Builder mergeCustomerManagerLink(com.google.ads.googleads.v0.resources.CustomerManagerLink value) { - if (customerManagerLinkBuilder_ == null) { - if (customerManagerLink_ != null) { - customerManagerLink_ = - com.google.ads.googleads.v0.resources.CustomerManagerLink.newBuilder(customerManagerLink_).mergeFrom(value).buildPartial(); + public Builder mergeBillingSetup(com.google.ads.googleads.v0.resources.BillingSetup value) { + if (billingSetupBuilder_ == null) { + if (billingSetup_ != null) { + billingSetup_ = + com.google.ads.googleads.v0.resources.BillingSetup.newBuilder(billingSetup_).mergeFrom(value).buildPartial(); } else { - customerManagerLink_ = value; + billingSetup_ = value; } onChanged(); } else { - customerManagerLinkBuilder_.mergeFrom(value); + billingSetupBuilder_.mergeFrom(value); } return this; } /** *
-     * The CustomerManagerLink referenced in the query.
+     * The billing setup referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CustomerManagerLink customer_manager_link = 61; + * .google.ads.googleads.v0.resources.BillingSetup billing_setup = 41; */ - public Builder clearCustomerManagerLink() { - if (customerManagerLinkBuilder_ == null) { - customerManagerLink_ = null; + public Builder clearBillingSetup() { + if (billingSetupBuilder_ == null) { + billingSetup_ = null; onChanged(); } else { - customerManagerLink_ = null; - customerManagerLinkBuilder_ = null; + billingSetup_ = null; + billingSetupBuilder_ = null; } return this; } /** *
-     * The CustomerManagerLink referenced in the query.
+     * The billing setup referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CustomerManagerLink customer_manager_link = 61; + * .google.ads.googleads.v0.resources.BillingSetup billing_setup = 41; */ - public com.google.ads.googleads.v0.resources.CustomerManagerLink.Builder getCustomerManagerLinkBuilder() { + public com.google.ads.googleads.v0.resources.BillingSetup.Builder getBillingSetupBuilder() { onChanged(); - return getCustomerManagerLinkFieldBuilder().getBuilder(); + return getBillingSetupFieldBuilder().getBuilder(); } /** *
-     * The CustomerManagerLink referenced in the query.
+     * The billing setup referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CustomerManagerLink customer_manager_link = 61; + * .google.ads.googleads.v0.resources.BillingSetup billing_setup = 41; */ - public com.google.ads.googleads.v0.resources.CustomerManagerLinkOrBuilder getCustomerManagerLinkOrBuilder() { - if (customerManagerLinkBuilder_ != null) { - return customerManagerLinkBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.BillingSetupOrBuilder getBillingSetupOrBuilder() { + if (billingSetupBuilder_ != null) { + return billingSetupBuilder_.getMessageOrBuilder(); } else { - return customerManagerLink_ == null ? - com.google.ads.googleads.v0.resources.CustomerManagerLink.getDefaultInstance() : customerManagerLink_; + return billingSetup_ == null ? + com.google.ads.googleads.v0.resources.BillingSetup.getDefaultInstance() : billingSetup_; } } /** *
-     * The CustomerManagerLink referenced in the query.
+     * The billing setup referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CustomerManagerLink customer_manager_link = 61; + * .google.ads.googleads.v0.resources.BillingSetup billing_setup = 41; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CustomerManagerLink, com.google.ads.googleads.v0.resources.CustomerManagerLink.Builder, com.google.ads.googleads.v0.resources.CustomerManagerLinkOrBuilder> - getCustomerManagerLinkFieldBuilder() { - if (customerManagerLinkBuilder_ == null) { - customerManagerLinkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CustomerManagerLink, com.google.ads.googleads.v0.resources.CustomerManagerLink.Builder, com.google.ads.googleads.v0.resources.CustomerManagerLinkOrBuilder>( - getCustomerManagerLink(), + com.google.ads.googleads.v0.resources.BillingSetup, com.google.ads.googleads.v0.resources.BillingSetup.Builder, com.google.ads.googleads.v0.resources.BillingSetupOrBuilder> + getBillingSetupFieldBuilder() { + if (billingSetupBuilder_ == null) { + billingSetupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.BillingSetup, com.google.ads.googleads.v0.resources.BillingSetup.Builder, com.google.ads.googleads.v0.resources.BillingSetupOrBuilder>( + getBillingSetup(), getParentForChildren(), isClean()); - customerManagerLink_ = null; + billingSetup_ = null; } - return customerManagerLinkBuilder_; + return billingSetupBuilder_; } - private com.google.ads.googleads.v0.resources.CustomerClientLink customerClientLink_ = null; + private com.google.ads.googleads.v0.resources.CampaignBudget campaignBudget_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CustomerClientLink, com.google.ads.googleads.v0.resources.CustomerClientLink.Builder, com.google.ads.googleads.v0.resources.CustomerClientLinkOrBuilder> customerClientLinkBuilder_; + com.google.ads.googleads.v0.resources.CampaignBudget, com.google.ads.googleads.v0.resources.CampaignBudget.Builder, com.google.ads.googleads.v0.resources.CampaignBudgetOrBuilder> campaignBudgetBuilder_; /** *
-     * The CustomerClientLink referenced in the query.
+     * The campaign budget referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CustomerClientLink customer_client_link = 62; + * .google.ads.googleads.v0.resources.CampaignBudget campaign_budget = 19; */ - public boolean hasCustomerClientLink() { - return customerClientLinkBuilder_ != null || customerClientLink_ != null; + public boolean hasCampaignBudget() { + return campaignBudgetBuilder_ != null || campaignBudget_ != null; } /** *
-     * The CustomerClientLink referenced in the query.
+     * The campaign budget referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CustomerClientLink customer_client_link = 62; + * .google.ads.googleads.v0.resources.CampaignBudget campaign_budget = 19; */ - public com.google.ads.googleads.v0.resources.CustomerClientLink getCustomerClientLink() { - if (customerClientLinkBuilder_ == null) { - return customerClientLink_ == null ? com.google.ads.googleads.v0.resources.CustomerClientLink.getDefaultInstance() : customerClientLink_; + public com.google.ads.googleads.v0.resources.CampaignBudget getCampaignBudget() { + if (campaignBudgetBuilder_ == null) { + return campaignBudget_ == null ? com.google.ads.googleads.v0.resources.CampaignBudget.getDefaultInstance() : campaignBudget_; } else { - return customerClientLinkBuilder_.getMessage(); + return campaignBudgetBuilder_.getMessage(); } } /** *
-     * The CustomerClientLink referenced in the query.
+     * The campaign budget referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CustomerClientLink customer_client_link = 62; + * .google.ads.googleads.v0.resources.CampaignBudget campaign_budget = 19; */ - public Builder setCustomerClientLink(com.google.ads.googleads.v0.resources.CustomerClientLink value) { - if (customerClientLinkBuilder_ == null) { + public Builder setCampaignBudget(com.google.ads.googleads.v0.resources.CampaignBudget value) { + if (campaignBudgetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - customerClientLink_ = value; + campaignBudget_ = value; onChanged(); } else { - customerClientLinkBuilder_.setMessage(value); + campaignBudgetBuilder_.setMessage(value); } return this; } /** *
-     * The CustomerClientLink referenced in the query.
+     * The campaign budget referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CustomerClientLink customer_client_link = 62; + * .google.ads.googleads.v0.resources.CampaignBudget campaign_budget = 19; */ - public Builder setCustomerClientLink( - com.google.ads.googleads.v0.resources.CustomerClientLink.Builder builderForValue) { - if (customerClientLinkBuilder_ == null) { - customerClientLink_ = builderForValue.build(); + public Builder setCampaignBudget( + com.google.ads.googleads.v0.resources.CampaignBudget.Builder builderForValue) { + if (campaignBudgetBuilder_ == null) { + campaignBudget_ = builderForValue.build(); onChanged(); } else { - customerClientLinkBuilder_.setMessage(builderForValue.build()); + campaignBudgetBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The CustomerClientLink referenced in the query.
+     * The campaign budget referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CustomerClientLink customer_client_link = 62; + * .google.ads.googleads.v0.resources.CampaignBudget campaign_budget = 19; */ - public Builder mergeCustomerClientLink(com.google.ads.googleads.v0.resources.CustomerClientLink value) { - if (customerClientLinkBuilder_ == null) { - if (customerClientLink_ != null) { - customerClientLink_ = - com.google.ads.googleads.v0.resources.CustomerClientLink.newBuilder(customerClientLink_).mergeFrom(value).buildPartial(); + public Builder mergeCampaignBudget(com.google.ads.googleads.v0.resources.CampaignBudget value) { + if (campaignBudgetBuilder_ == null) { + if (campaignBudget_ != null) { + campaignBudget_ = + com.google.ads.googleads.v0.resources.CampaignBudget.newBuilder(campaignBudget_).mergeFrom(value).buildPartial(); } else { - customerClientLink_ = value; + campaignBudget_ = value; } onChanged(); } else { - customerClientLinkBuilder_.mergeFrom(value); + campaignBudgetBuilder_.mergeFrom(value); } return this; } /** *
-     * The CustomerClientLink referenced in the query.
+     * The campaign budget referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CustomerClientLink customer_client_link = 62; + * .google.ads.googleads.v0.resources.CampaignBudget campaign_budget = 19; */ - public Builder clearCustomerClientLink() { - if (customerClientLinkBuilder_ == null) { - customerClientLink_ = null; + public Builder clearCampaignBudget() { + if (campaignBudgetBuilder_ == null) { + campaignBudget_ = null; onChanged(); } else { - customerClientLink_ = null; - customerClientLinkBuilder_ = null; + campaignBudget_ = null; + campaignBudgetBuilder_ = null; } return this; } /** *
-     * The CustomerClientLink referenced in the query.
+     * The campaign budget referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CustomerClientLink customer_client_link = 62; + * .google.ads.googleads.v0.resources.CampaignBudget campaign_budget = 19; */ - public com.google.ads.googleads.v0.resources.CustomerClientLink.Builder getCustomerClientLinkBuilder() { + public com.google.ads.googleads.v0.resources.CampaignBudget.Builder getCampaignBudgetBuilder() { onChanged(); - return getCustomerClientLinkFieldBuilder().getBuilder(); + return getCampaignBudgetFieldBuilder().getBuilder(); } /** *
-     * The CustomerClientLink referenced in the query.
+     * The campaign budget referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CustomerClientLink customer_client_link = 62; + * .google.ads.googleads.v0.resources.CampaignBudget campaign_budget = 19; */ - public com.google.ads.googleads.v0.resources.CustomerClientLinkOrBuilder getCustomerClientLinkOrBuilder() { - if (customerClientLinkBuilder_ != null) { - return customerClientLinkBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.CampaignBudgetOrBuilder getCampaignBudgetOrBuilder() { + if (campaignBudgetBuilder_ != null) { + return campaignBudgetBuilder_.getMessageOrBuilder(); } else { - return customerClientLink_ == null ? - com.google.ads.googleads.v0.resources.CustomerClientLink.getDefaultInstance() : customerClientLink_; + return campaignBudget_ == null ? + com.google.ads.googleads.v0.resources.CampaignBudget.getDefaultInstance() : campaignBudget_; } } /** *
-     * The CustomerClientLink referenced in the query.
+     * The campaign budget referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CustomerClientLink customer_client_link = 62; + * .google.ads.googleads.v0.resources.CampaignBudget campaign_budget = 19; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CustomerClientLink, com.google.ads.googleads.v0.resources.CustomerClientLink.Builder, com.google.ads.googleads.v0.resources.CustomerClientLinkOrBuilder> - getCustomerClientLinkFieldBuilder() { - if (customerClientLinkBuilder_ == null) { - customerClientLinkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CustomerClientLink, com.google.ads.googleads.v0.resources.CustomerClientLink.Builder, com.google.ads.googleads.v0.resources.CustomerClientLinkOrBuilder>( - getCustomerClientLink(), + com.google.ads.googleads.v0.resources.CampaignBudget, com.google.ads.googleads.v0.resources.CampaignBudget.Builder, com.google.ads.googleads.v0.resources.CampaignBudgetOrBuilder> + getCampaignBudgetFieldBuilder() { + if (campaignBudgetBuilder_ == null) { + campaignBudgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.CampaignBudget, com.google.ads.googleads.v0.resources.CampaignBudget.Builder, com.google.ads.googleads.v0.resources.CampaignBudgetOrBuilder>( + getCampaignBudget(), getParentForChildren(), isClean()); - customerClientLink_ = null; + campaignBudget_ = null; } - return customerClientLinkBuilder_; + return campaignBudgetBuilder_; } - private com.google.ads.googleads.v0.resources.CustomerClient customerClient_ = null; + private com.google.ads.googleads.v0.resources.Campaign campaign_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CustomerClient, com.google.ads.googleads.v0.resources.CustomerClient.Builder, com.google.ads.googleads.v0.resources.CustomerClientOrBuilder> customerClientBuilder_; + com.google.ads.googleads.v0.resources.Campaign, com.google.ads.googleads.v0.resources.Campaign.Builder, com.google.ads.googleads.v0.resources.CampaignOrBuilder> campaignBuilder_; /** *
-     * The CustomerClient referenced in the query.
+     * The campaign referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CustomerClient customer_client = 70; + * .google.ads.googleads.v0.resources.Campaign campaign = 2; */ - public boolean hasCustomerClient() { - return customerClientBuilder_ != null || customerClient_ != null; + public boolean hasCampaign() { + return campaignBuilder_ != null || campaign_ != null; } /** *
-     * The CustomerClient referenced in the query.
+     * The campaign referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CustomerClient customer_client = 70; + * .google.ads.googleads.v0.resources.Campaign campaign = 2; */ - public com.google.ads.googleads.v0.resources.CustomerClient getCustomerClient() { - if (customerClientBuilder_ == null) { - return customerClient_ == null ? com.google.ads.googleads.v0.resources.CustomerClient.getDefaultInstance() : customerClient_; + public com.google.ads.googleads.v0.resources.Campaign getCampaign() { + if (campaignBuilder_ == null) { + return campaign_ == null ? com.google.ads.googleads.v0.resources.Campaign.getDefaultInstance() : campaign_; } else { - return customerClientBuilder_.getMessage(); + return campaignBuilder_.getMessage(); } } /** *
-     * The CustomerClient referenced in the query.
+     * The campaign referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CustomerClient customer_client = 70; + * .google.ads.googleads.v0.resources.Campaign campaign = 2; */ - public Builder setCustomerClient(com.google.ads.googleads.v0.resources.CustomerClient value) { - if (customerClientBuilder_ == null) { + public Builder setCampaign(com.google.ads.googleads.v0.resources.Campaign value) { + if (campaignBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - customerClient_ = value; + campaign_ = value; onChanged(); } else { - customerClientBuilder_.setMessage(value); + campaignBuilder_.setMessage(value); } return this; } /** *
-     * The CustomerClient referenced in the query.
+     * The campaign referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CustomerClient customer_client = 70; + * .google.ads.googleads.v0.resources.Campaign campaign = 2; */ - public Builder setCustomerClient( - com.google.ads.googleads.v0.resources.CustomerClient.Builder builderForValue) { - if (customerClientBuilder_ == null) { - customerClient_ = builderForValue.build(); + public Builder setCampaign( + com.google.ads.googleads.v0.resources.Campaign.Builder builderForValue) { + if (campaignBuilder_ == null) { + campaign_ = builderForValue.build(); onChanged(); } else { - customerClientBuilder_.setMessage(builderForValue.build()); + campaignBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The CustomerClient referenced in the query.
+     * The campaign referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CustomerClient customer_client = 70; + * .google.ads.googleads.v0.resources.Campaign campaign = 2; */ - public Builder mergeCustomerClient(com.google.ads.googleads.v0.resources.CustomerClient value) { - if (customerClientBuilder_ == null) { - if (customerClient_ != null) { - customerClient_ = - com.google.ads.googleads.v0.resources.CustomerClient.newBuilder(customerClient_).mergeFrom(value).buildPartial(); + public Builder mergeCampaign(com.google.ads.googleads.v0.resources.Campaign value) { + if (campaignBuilder_ == null) { + if (campaign_ != null) { + campaign_ = + com.google.ads.googleads.v0.resources.Campaign.newBuilder(campaign_).mergeFrom(value).buildPartial(); } else { - customerClient_ = value; + campaign_ = value; } onChanged(); } else { - customerClientBuilder_.mergeFrom(value); + campaignBuilder_.mergeFrom(value); } return this; } /** *
-     * The CustomerClient referenced in the query.
+     * The campaign referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CustomerClient customer_client = 70; + * .google.ads.googleads.v0.resources.Campaign campaign = 2; */ - public Builder clearCustomerClient() { - if (customerClientBuilder_ == null) { - customerClient_ = null; + public Builder clearCampaign() { + if (campaignBuilder_ == null) { + campaign_ = null; onChanged(); } else { - customerClient_ = null; - customerClientBuilder_ = null; + campaign_ = null; + campaignBuilder_ = null; } return this; } /** *
-     * The CustomerClient referenced in the query.
+     * The campaign referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CustomerClient customer_client = 70; + * .google.ads.googleads.v0.resources.Campaign campaign = 2; */ - public com.google.ads.googleads.v0.resources.CustomerClient.Builder getCustomerClientBuilder() { + public com.google.ads.googleads.v0.resources.Campaign.Builder getCampaignBuilder() { onChanged(); - return getCustomerClientFieldBuilder().getBuilder(); + return getCampaignFieldBuilder().getBuilder(); } /** *
-     * The CustomerClient referenced in the query.
+     * The campaign referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CustomerClient customer_client = 70; + * .google.ads.googleads.v0.resources.Campaign campaign = 2; */ - public com.google.ads.googleads.v0.resources.CustomerClientOrBuilder getCustomerClientOrBuilder() { - if (customerClientBuilder_ != null) { - return customerClientBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.CampaignOrBuilder getCampaignOrBuilder() { + if (campaignBuilder_ != null) { + return campaignBuilder_.getMessageOrBuilder(); } else { - return customerClient_ == null ? - com.google.ads.googleads.v0.resources.CustomerClient.getDefaultInstance() : customerClient_; + return campaign_ == null ? + com.google.ads.googleads.v0.resources.Campaign.getDefaultInstance() : campaign_; } } /** *
-     * The CustomerClient referenced in the query.
+     * The campaign referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CustomerClient customer_client = 70; + * .google.ads.googleads.v0.resources.Campaign campaign = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CustomerClient, com.google.ads.googleads.v0.resources.CustomerClient.Builder, com.google.ads.googleads.v0.resources.CustomerClientOrBuilder> - getCustomerClientFieldBuilder() { - if (customerClientBuilder_ == null) { - customerClientBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CustomerClient, com.google.ads.googleads.v0.resources.CustomerClient.Builder, com.google.ads.googleads.v0.resources.CustomerClientOrBuilder>( - getCustomerClient(), + com.google.ads.googleads.v0.resources.Campaign, com.google.ads.googleads.v0.resources.Campaign.Builder, com.google.ads.googleads.v0.resources.CampaignOrBuilder> + getCampaignFieldBuilder() { + if (campaignBuilder_ == null) { + campaignBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.Campaign, com.google.ads.googleads.v0.resources.Campaign.Builder, com.google.ads.googleads.v0.resources.CampaignOrBuilder>( + getCampaign(), getParentForChildren(), isClean()); - customerClient_ = null; + campaign_ = null; } - return customerClientBuilder_; + return campaignBuilder_; } - private com.google.ads.googleads.v0.resources.CustomerFeed customerFeed_ = null; + private com.google.ads.googleads.v0.resources.CampaignAudienceView campaignAudienceView_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CustomerFeed, com.google.ads.googleads.v0.resources.CustomerFeed.Builder, com.google.ads.googleads.v0.resources.CustomerFeedOrBuilder> customerFeedBuilder_; + com.google.ads.googleads.v0.resources.CampaignAudienceView, com.google.ads.googleads.v0.resources.CampaignAudienceView.Builder, com.google.ads.googleads.v0.resources.CampaignAudienceViewOrBuilder> campaignAudienceViewBuilder_; /** *
-     * The customer feed referenced in the query.
+     * The campaign audience view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CustomerFeed customer_feed = 64; + * .google.ads.googleads.v0.resources.CampaignAudienceView campaign_audience_view = 69; */ - public boolean hasCustomerFeed() { - return customerFeedBuilder_ != null || customerFeed_ != null; + public boolean hasCampaignAudienceView() { + return campaignAudienceViewBuilder_ != null || campaignAudienceView_ != null; } /** *
-     * The customer feed referenced in the query.
+     * The campaign audience view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CustomerFeed customer_feed = 64; + * .google.ads.googleads.v0.resources.CampaignAudienceView campaign_audience_view = 69; */ - public com.google.ads.googleads.v0.resources.CustomerFeed getCustomerFeed() { - if (customerFeedBuilder_ == null) { - return customerFeed_ == null ? com.google.ads.googleads.v0.resources.CustomerFeed.getDefaultInstance() : customerFeed_; + public com.google.ads.googleads.v0.resources.CampaignAudienceView getCampaignAudienceView() { + if (campaignAudienceViewBuilder_ == null) { + return campaignAudienceView_ == null ? com.google.ads.googleads.v0.resources.CampaignAudienceView.getDefaultInstance() : campaignAudienceView_; } else { - return customerFeedBuilder_.getMessage(); + return campaignAudienceViewBuilder_.getMessage(); } } /** *
-     * The customer feed referenced in the query.
+     * The campaign audience view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CustomerFeed customer_feed = 64; + * .google.ads.googleads.v0.resources.CampaignAudienceView campaign_audience_view = 69; */ - public Builder setCustomerFeed(com.google.ads.googleads.v0.resources.CustomerFeed value) { - if (customerFeedBuilder_ == null) { + public Builder setCampaignAudienceView(com.google.ads.googleads.v0.resources.CampaignAudienceView value) { + if (campaignAudienceViewBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - customerFeed_ = value; + campaignAudienceView_ = value; onChanged(); } else { - customerFeedBuilder_.setMessage(value); + campaignAudienceViewBuilder_.setMessage(value); } return this; } /** *
-     * The customer feed referenced in the query.
+     * The campaign audience view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CustomerFeed customer_feed = 64; + * .google.ads.googleads.v0.resources.CampaignAudienceView campaign_audience_view = 69; */ - public Builder setCustomerFeed( - com.google.ads.googleads.v0.resources.CustomerFeed.Builder builderForValue) { - if (customerFeedBuilder_ == null) { - customerFeed_ = builderForValue.build(); + public Builder setCampaignAudienceView( + com.google.ads.googleads.v0.resources.CampaignAudienceView.Builder builderForValue) { + if (campaignAudienceViewBuilder_ == null) { + campaignAudienceView_ = builderForValue.build(); onChanged(); } else { - customerFeedBuilder_.setMessage(builderForValue.build()); + campaignAudienceViewBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The customer feed referenced in the query.
+     * The campaign audience view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CustomerFeed customer_feed = 64; + * .google.ads.googleads.v0.resources.CampaignAudienceView campaign_audience_view = 69; */ - public Builder mergeCustomerFeed(com.google.ads.googleads.v0.resources.CustomerFeed value) { - if (customerFeedBuilder_ == null) { - if (customerFeed_ != null) { - customerFeed_ = - com.google.ads.googleads.v0.resources.CustomerFeed.newBuilder(customerFeed_).mergeFrom(value).buildPartial(); + public Builder mergeCampaignAudienceView(com.google.ads.googleads.v0.resources.CampaignAudienceView value) { + if (campaignAudienceViewBuilder_ == null) { + if (campaignAudienceView_ != null) { + campaignAudienceView_ = + com.google.ads.googleads.v0.resources.CampaignAudienceView.newBuilder(campaignAudienceView_).mergeFrom(value).buildPartial(); } else { - customerFeed_ = value; + campaignAudienceView_ = value; } onChanged(); } else { - customerFeedBuilder_.mergeFrom(value); + campaignAudienceViewBuilder_.mergeFrom(value); } return this; } /** *
-     * The customer feed referenced in the query.
+     * The campaign audience view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CustomerFeed customer_feed = 64; + * .google.ads.googleads.v0.resources.CampaignAudienceView campaign_audience_view = 69; */ - public Builder clearCustomerFeed() { - if (customerFeedBuilder_ == null) { - customerFeed_ = null; + public Builder clearCampaignAudienceView() { + if (campaignAudienceViewBuilder_ == null) { + campaignAudienceView_ = null; onChanged(); } else { - customerFeed_ = null; - customerFeedBuilder_ = null; + campaignAudienceView_ = null; + campaignAudienceViewBuilder_ = null; } return this; } /** *
-     * The customer feed referenced in the query.
+     * The campaign audience view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CustomerFeed customer_feed = 64; + * .google.ads.googleads.v0.resources.CampaignAudienceView campaign_audience_view = 69; */ - public com.google.ads.googleads.v0.resources.CustomerFeed.Builder getCustomerFeedBuilder() { + public com.google.ads.googleads.v0.resources.CampaignAudienceView.Builder getCampaignAudienceViewBuilder() { onChanged(); - return getCustomerFeedFieldBuilder().getBuilder(); + return getCampaignAudienceViewFieldBuilder().getBuilder(); } /** *
-     * The customer feed referenced in the query.
+     * The campaign audience view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CustomerFeed customer_feed = 64; + * .google.ads.googleads.v0.resources.CampaignAudienceView campaign_audience_view = 69; */ - public com.google.ads.googleads.v0.resources.CustomerFeedOrBuilder getCustomerFeedOrBuilder() { - if (customerFeedBuilder_ != null) { - return customerFeedBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.CampaignAudienceViewOrBuilder getCampaignAudienceViewOrBuilder() { + if (campaignAudienceViewBuilder_ != null) { + return campaignAudienceViewBuilder_.getMessageOrBuilder(); } else { - return customerFeed_ == null ? - com.google.ads.googleads.v0.resources.CustomerFeed.getDefaultInstance() : customerFeed_; + return campaignAudienceView_ == null ? + com.google.ads.googleads.v0.resources.CampaignAudienceView.getDefaultInstance() : campaignAudienceView_; } } /** *
-     * The customer feed referenced in the query.
+     * The campaign audience view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.CustomerFeed customer_feed = 64; + * .google.ads.googleads.v0.resources.CampaignAudienceView campaign_audience_view = 69; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CustomerFeed, com.google.ads.googleads.v0.resources.CustomerFeed.Builder, com.google.ads.googleads.v0.resources.CustomerFeedOrBuilder> - getCustomerFeedFieldBuilder() { - if (customerFeedBuilder_ == null) { - customerFeedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.CustomerFeed, com.google.ads.googleads.v0.resources.CustomerFeed.Builder, com.google.ads.googleads.v0.resources.CustomerFeedOrBuilder>( - getCustomerFeed(), + com.google.ads.googleads.v0.resources.CampaignAudienceView, com.google.ads.googleads.v0.resources.CampaignAudienceView.Builder, com.google.ads.googleads.v0.resources.CampaignAudienceViewOrBuilder> + getCampaignAudienceViewFieldBuilder() { + if (campaignAudienceViewBuilder_ == null) { + campaignAudienceViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.CampaignAudienceView, com.google.ads.googleads.v0.resources.CampaignAudienceView.Builder, com.google.ads.googleads.v0.resources.CampaignAudienceViewOrBuilder>( + getCampaignAudienceView(), getParentForChildren(), isClean()); - customerFeed_ = null; + campaignAudienceView_ = null; } - return customerFeedBuilder_; + return campaignAudienceViewBuilder_; } - private com.google.ads.googleads.v0.resources.DisplayKeywordView displayKeywordView_ = null; + private com.google.ads.googleads.v0.resources.CampaignBidModifier campaignBidModifier_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.DisplayKeywordView, com.google.ads.googleads.v0.resources.DisplayKeywordView.Builder, com.google.ads.googleads.v0.resources.DisplayKeywordViewOrBuilder> displayKeywordViewBuilder_; + com.google.ads.googleads.v0.resources.CampaignBidModifier, com.google.ads.googleads.v0.resources.CampaignBidModifier.Builder, com.google.ads.googleads.v0.resources.CampaignBidModifierOrBuilder> campaignBidModifierBuilder_; /** *
-     * The display keyword view referenced in the query.
+     * The campaign bid modifier referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.DisplayKeywordView display_keyword_view = 47; + * .google.ads.googleads.v0.resources.CampaignBidModifier campaign_bid_modifier = 26; */ - public boolean hasDisplayKeywordView() { - return displayKeywordViewBuilder_ != null || displayKeywordView_ != null; + public boolean hasCampaignBidModifier() { + return campaignBidModifierBuilder_ != null || campaignBidModifier_ != null; } /** *
-     * The display keyword view referenced in the query.
+     * The campaign bid modifier referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.DisplayKeywordView display_keyword_view = 47; + * .google.ads.googleads.v0.resources.CampaignBidModifier campaign_bid_modifier = 26; */ - public com.google.ads.googleads.v0.resources.DisplayKeywordView getDisplayKeywordView() { - if (displayKeywordViewBuilder_ == null) { - return displayKeywordView_ == null ? com.google.ads.googleads.v0.resources.DisplayKeywordView.getDefaultInstance() : displayKeywordView_; + public com.google.ads.googleads.v0.resources.CampaignBidModifier getCampaignBidModifier() { + if (campaignBidModifierBuilder_ == null) { + return campaignBidModifier_ == null ? com.google.ads.googleads.v0.resources.CampaignBidModifier.getDefaultInstance() : campaignBidModifier_; } else { - return displayKeywordViewBuilder_.getMessage(); + return campaignBidModifierBuilder_.getMessage(); } } /** *
-     * The display keyword view referenced in the query.
+     * The campaign bid modifier referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.DisplayKeywordView display_keyword_view = 47; + * .google.ads.googleads.v0.resources.CampaignBidModifier campaign_bid_modifier = 26; */ - public Builder setDisplayKeywordView(com.google.ads.googleads.v0.resources.DisplayKeywordView value) { - if (displayKeywordViewBuilder_ == null) { + public Builder setCampaignBidModifier(com.google.ads.googleads.v0.resources.CampaignBidModifier value) { + if (campaignBidModifierBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - displayKeywordView_ = value; + campaignBidModifier_ = value; onChanged(); } else { - displayKeywordViewBuilder_.setMessage(value); + campaignBidModifierBuilder_.setMessage(value); } return this; } /** *
-     * The display keyword view referenced in the query.
+     * The campaign bid modifier referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.DisplayKeywordView display_keyword_view = 47; + * .google.ads.googleads.v0.resources.CampaignBidModifier campaign_bid_modifier = 26; */ - public Builder setDisplayKeywordView( - com.google.ads.googleads.v0.resources.DisplayKeywordView.Builder builderForValue) { - if (displayKeywordViewBuilder_ == null) { - displayKeywordView_ = builderForValue.build(); + public Builder setCampaignBidModifier( + com.google.ads.googleads.v0.resources.CampaignBidModifier.Builder builderForValue) { + if (campaignBidModifierBuilder_ == null) { + campaignBidModifier_ = builderForValue.build(); onChanged(); } else { - displayKeywordViewBuilder_.setMessage(builderForValue.build()); + campaignBidModifierBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The display keyword view referenced in the query.
+     * The campaign bid modifier referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.DisplayKeywordView display_keyword_view = 47; + * .google.ads.googleads.v0.resources.CampaignBidModifier campaign_bid_modifier = 26; */ - public Builder mergeDisplayKeywordView(com.google.ads.googleads.v0.resources.DisplayKeywordView value) { - if (displayKeywordViewBuilder_ == null) { - if (displayKeywordView_ != null) { - displayKeywordView_ = - com.google.ads.googleads.v0.resources.DisplayKeywordView.newBuilder(displayKeywordView_).mergeFrom(value).buildPartial(); + public Builder mergeCampaignBidModifier(com.google.ads.googleads.v0.resources.CampaignBidModifier value) { + if (campaignBidModifierBuilder_ == null) { + if (campaignBidModifier_ != null) { + campaignBidModifier_ = + com.google.ads.googleads.v0.resources.CampaignBidModifier.newBuilder(campaignBidModifier_).mergeFrom(value).buildPartial(); } else { - displayKeywordView_ = value; + campaignBidModifier_ = value; } onChanged(); } else { - displayKeywordViewBuilder_.mergeFrom(value); + campaignBidModifierBuilder_.mergeFrom(value); } return this; } /** *
-     * The display keyword view referenced in the query.
+     * The campaign bid modifier referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.DisplayKeywordView display_keyword_view = 47; + * .google.ads.googleads.v0.resources.CampaignBidModifier campaign_bid_modifier = 26; */ - public Builder clearDisplayKeywordView() { - if (displayKeywordViewBuilder_ == null) { - displayKeywordView_ = null; + public Builder clearCampaignBidModifier() { + if (campaignBidModifierBuilder_ == null) { + campaignBidModifier_ = null; onChanged(); } else { - displayKeywordView_ = null; - displayKeywordViewBuilder_ = null; + campaignBidModifier_ = null; + campaignBidModifierBuilder_ = null; } return this; } /** *
-     * The display keyword view referenced in the query.
+     * The campaign bid modifier referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.DisplayKeywordView display_keyword_view = 47; + * .google.ads.googleads.v0.resources.CampaignBidModifier campaign_bid_modifier = 26; */ - public com.google.ads.googleads.v0.resources.DisplayKeywordView.Builder getDisplayKeywordViewBuilder() { + public com.google.ads.googleads.v0.resources.CampaignBidModifier.Builder getCampaignBidModifierBuilder() { onChanged(); - return getDisplayKeywordViewFieldBuilder().getBuilder(); + return getCampaignBidModifierFieldBuilder().getBuilder(); } /** *
-     * The display keyword view referenced in the query.
+     * The campaign bid modifier referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.DisplayKeywordView display_keyword_view = 47; + * .google.ads.googleads.v0.resources.CampaignBidModifier campaign_bid_modifier = 26; */ - public com.google.ads.googleads.v0.resources.DisplayKeywordViewOrBuilder getDisplayKeywordViewOrBuilder() { - if (displayKeywordViewBuilder_ != null) { - return displayKeywordViewBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.CampaignBidModifierOrBuilder getCampaignBidModifierOrBuilder() { + if (campaignBidModifierBuilder_ != null) { + return campaignBidModifierBuilder_.getMessageOrBuilder(); } else { - return displayKeywordView_ == null ? - com.google.ads.googleads.v0.resources.DisplayKeywordView.getDefaultInstance() : displayKeywordView_; + return campaignBidModifier_ == null ? + com.google.ads.googleads.v0.resources.CampaignBidModifier.getDefaultInstance() : campaignBidModifier_; } } /** *
-     * The display keyword view referenced in the query.
+     * The campaign bid modifier referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.DisplayKeywordView display_keyword_view = 47; + * .google.ads.googleads.v0.resources.CampaignBidModifier campaign_bid_modifier = 26; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.DisplayKeywordView, com.google.ads.googleads.v0.resources.DisplayKeywordView.Builder, com.google.ads.googleads.v0.resources.DisplayKeywordViewOrBuilder> - getDisplayKeywordViewFieldBuilder() { - if (displayKeywordViewBuilder_ == null) { - displayKeywordViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.DisplayKeywordView, com.google.ads.googleads.v0.resources.DisplayKeywordView.Builder, com.google.ads.googleads.v0.resources.DisplayKeywordViewOrBuilder>( - getDisplayKeywordView(), + com.google.ads.googleads.v0.resources.CampaignBidModifier, com.google.ads.googleads.v0.resources.CampaignBidModifier.Builder, com.google.ads.googleads.v0.resources.CampaignBidModifierOrBuilder> + getCampaignBidModifierFieldBuilder() { + if (campaignBidModifierBuilder_ == null) { + campaignBidModifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.CampaignBidModifier, com.google.ads.googleads.v0.resources.CampaignBidModifier.Builder, com.google.ads.googleads.v0.resources.CampaignBidModifierOrBuilder>( + getCampaignBidModifier(), getParentForChildren(), isClean()); - displayKeywordView_ = null; + campaignBidModifier_ = null; } - return displayKeywordViewBuilder_; + return campaignBidModifierBuilder_; } - private com.google.ads.googleads.v0.resources.Feed feed_ = null; + private com.google.ads.googleads.v0.resources.CampaignCriterion campaignCriterion_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.Feed, com.google.ads.googleads.v0.resources.Feed.Builder, com.google.ads.googleads.v0.resources.FeedOrBuilder> feedBuilder_; + com.google.ads.googleads.v0.resources.CampaignCriterion, com.google.ads.googleads.v0.resources.CampaignCriterion.Builder, com.google.ads.googleads.v0.resources.CampaignCriterionOrBuilder> campaignCriterionBuilder_; /** *
-     * The feed referenced in the query.
+     * The campaign criterion referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Feed feed = 46; + * .google.ads.googleads.v0.resources.CampaignCriterion campaign_criterion = 20; */ - public boolean hasFeed() { - return feedBuilder_ != null || feed_ != null; + public boolean hasCampaignCriterion() { + return campaignCriterionBuilder_ != null || campaignCriterion_ != null; } /** *
-     * The feed referenced in the query.
+     * The campaign criterion referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Feed feed = 46; + * .google.ads.googleads.v0.resources.CampaignCriterion campaign_criterion = 20; */ - public com.google.ads.googleads.v0.resources.Feed getFeed() { - if (feedBuilder_ == null) { - return feed_ == null ? com.google.ads.googleads.v0.resources.Feed.getDefaultInstance() : feed_; + public com.google.ads.googleads.v0.resources.CampaignCriterion getCampaignCriterion() { + if (campaignCriterionBuilder_ == null) { + return campaignCriterion_ == null ? com.google.ads.googleads.v0.resources.CampaignCriterion.getDefaultInstance() : campaignCriterion_; } else { - return feedBuilder_.getMessage(); + return campaignCriterionBuilder_.getMessage(); } } /** *
-     * The feed referenced in the query.
+     * The campaign criterion referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Feed feed = 46; - */ - public Builder setFeed(com.google.ads.googleads.v0.resources.Feed value) { - if (feedBuilder_ == null) { + * .google.ads.googleads.v0.resources.CampaignCriterion campaign_criterion = 20; + */ + public Builder setCampaignCriterion(com.google.ads.googleads.v0.resources.CampaignCriterion value) { + if (campaignCriterionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - feed_ = value; + campaignCriterion_ = value; onChanged(); } else { - feedBuilder_.setMessage(value); + campaignCriterionBuilder_.setMessage(value); } return this; } /** *
-     * The feed referenced in the query.
+     * The campaign criterion referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Feed feed = 46; + * .google.ads.googleads.v0.resources.CampaignCriterion campaign_criterion = 20; */ - public Builder setFeed( - com.google.ads.googleads.v0.resources.Feed.Builder builderForValue) { - if (feedBuilder_ == null) { - feed_ = builderForValue.build(); + public Builder setCampaignCriterion( + com.google.ads.googleads.v0.resources.CampaignCriterion.Builder builderForValue) { + if (campaignCriterionBuilder_ == null) { + campaignCriterion_ = builderForValue.build(); onChanged(); } else { - feedBuilder_.setMessage(builderForValue.build()); + campaignCriterionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The feed referenced in the query.
+     * The campaign criterion referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Feed feed = 46; + * .google.ads.googleads.v0.resources.CampaignCriterion campaign_criterion = 20; */ - public Builder mergeFeed(com.google.ads.googleads.v0.resources.Feed value) { - if (feedBuilder_ == null) { - if (feed_ != null) { - feed_ = - com.google.ads.googleads.v0.resources.Feed.newBuilder(feed_).mergeFrom(value).buildPartial(); + public Builder mergeCampaignCriterion(com.google.ads.googleads.v0.resources.CampaignCriterion value) { + if (campaignCriterionBuilder_ == null) { + if (campaignCriterion_ != null) { + campaignCriterion_ = + com.google.ads.googleads.v0.resources.CampaignCriterion.newBuilder(campaignCriterion_).mergeFrom(value).buildPartial(); } else { - feed_ = value; + campaignCriterion_ = value; } onChanged(); } else { - feedBuilder_.mergeFrom(value); + campaignCriterionBuilder_.mergeFrom(value); } return this; } /** *
-     * The feed referenced in the query.
+     * The campaign criterion referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Feed feed = 46; + * .google.ads.googleads.v0.resources.CampaignCriterion campaign_criterion = 20; */ - public Builder clearFeed() { - if (feedBuilder_ == null) { - feed_ = null; + public Builder clearCampaignCriterion() { + if (campaignCriterionBuilder_ == null) { + campaignCriterion_ = null; onChanged(); } else { - feed_ = null; - feedBuilder_ = null; + campaignCriterion_ = null; + campaignCriterionBuilder_ = null; } return this; } /** *
-     * The feed referenced in the query.
+     * The campaign criterion referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Feed feed = 46; + * .google.ads.googleads.v0.resources.CampaignCriterion campaign_criterion = 20; */ - public com.google.ads.googleads.v0.resources.Feed.Builder getFeedBuilder() { + public com.google.ads.googleads.v0.resources.CampaignCriterion.Builder getCampaignCriterionBuilder() { onChanged(); - return getFeedFieldBuilder().getBuilder(); + return getCampaignCriterionFieldBuilder().getBuilder(); } /** *
-     * The feed referenced in the query.
+     * The campaign criterion referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Feed feed = 46; + * .google.ads.googleads.v0.resources.CampaignCriterion campaign_criterion = 20; */ - public com.google.ads.googleads.v0.resources.FeedOrBuilder getFeedOrBuilder() { - if (feedBuilder_ != null) { - return feedBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.CampaignCriterionOrBuilder getCampaignCriterionOrBuilder() { + if (campaignCriterionBuilder_ != null) { + return campaignCriterionBuilder_.getMessageOrBuilder(); } else { - return feed_ == null ? - com.google.ads.googleads.v0.resources.Feed.getDefaultInstance() : feed_; + return campaignCriterion_ == null ? + com.google.ads.googleads.v0.resources.CampaignCriterion.getDefaultInstance() : campaignCriterion_; } } /** *
-     * The feed referenced in the query.
+     * The campaign criterion referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Feed feed = 46; + * .google.ads.googleads.v0.resources.CampaignCriterion campaign_criterion = 20; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.Feed, com.google.ads.googleads.v0.resources.Feed.Builder, com.google.ads.googleads.v0.resources.FeedOrBuilder> - getFeedFieldBuilder() { - if (feedBuilder_ == null) { - feedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.Feed, com.google.ads.googleads.v0.resources.Feed.Builder, com.google.ads.googleads.v0.resources.FeedOrBuilder>( - getFeed(), + com.google.ads.googleads.v0.resources.CampaignCriterion, com.google.ads.googleads.v0.resources.CampaignCriterion.Builder, com.google.ads.googleads.v0.resources.CampaignCriterionOrBuilder> + getCampaignCriterionFieldBuilder() { + if (campaignCriterionBuilder_ == null) { + campaignCriterionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.CampaignCriterion, com.google.ads.googleads.v0.resources.CampaignCriterion.Builder, com.google.ads.googleads.v0.resources.CampaignCriterionOrBuilder>( + getCampaignCriterion(), getParentForChildren(), isClean()); - feed_ = null; + campaignCriterion_ = null; } - return feedBuilder_; + return campaignCriterionBuilder_; } - private com.google.ads.googleads.v0.resources.FeedItem feedItem_ = null; + private com.google.ads.googleads.v0.resources.CampaignFeed campaignFeed_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.FeedItem, com.google.ads.googleads.v0.resources.FeedItem.Builder, com.google.ads.googleads.v0.resources.FeedItemOrBuilder> feedItemBuilder_; + com.google.ads.googleads.v0.resources.CampaignFeed, com.google.ads.googleads.v0.resources.CampaignFeed.Builder, com.google.ads.googleads.v0.resources.CampaignFeedOrBuilder> campaignFeedBuilder_; /** *
-     * The feed item referenced in the query.
+     * The campaign feed referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.FeedItem feed_item = 50; + * .google.ads.googleads.v0.resources.CampaignFeed campaign_feed = 63; */ - public boolean hasFeedItem() { - return feedItemBuilder_ != null || feedItem_ != null; + public boolean hasCampaignFeed() { + return campaignFeedBuilder_ != null || campaignFeed_ != null; } /** *
-     * The feed item referenced in the query.
+     * The campaign feed referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.FeedItem feed_item = 50; + * .google.ads.googleads.v0.resources.CampaignFeed campaign_feed = 63; */ - public com.google.ads.googleads.v0.resources.FeedItem getFeedItem() { - if (feedItemBuilder_ == null) { - return feedItem_ == null ? com.google.ads.googleads.v0.resources.FeedItem.getDefaultInstance() : feedItem_; + public com.google.ads.googleads.v0.resources.CampaignFeed getCampaignFeed() { + if (campaignFeedBuilder_ == null) { + return campaignFeed_ == null ? com.google.ads.googleads.v0.resources.CampaignFeed.getDefaultInstance() : campaignFeed_; } else { - return feedItemBuilder_.getMessage(); + return campaignFeedBuilder_.getMessage(); } } /** *
-     * The feed item referenced in the query.
+     * The campaign feed referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.FeedItem feed_item = 50; + * .google.ads.googleads.v0.resources.CampaignFeed campaign_feed = 63; */ - public Builder setFeedItem(com.google.ads.googleads.v0.resources.FeedItem value) { - if (feedItemBuilder_ == null) { + public Builder setCampaignFeed(com.google.ads.googleads.v0.resources.CampaignFeed value) { + if (campaignFeedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - feedItem_ = value; + campaignFeed_ = value; onChanged(); } else { - feedItemBuilder_.setMessage(value); + campaignFeedBuilder_.setMessage(value); } return this; } /** *
-     * The feed item referenced in the query.
+     * The campaign feed referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.FeedItem feed_item = 50; + * .google.ads.googleads.v0.resources.CampaignFeed campaign_feed = 63; */ - public Builder setFeedItem( - com.google.ads.googleads.v0.resources.FeedItem.Builder builderForValue) { - if (feedItemBuilder_ == null) { - feedItem_ = builderForValue.build(); + public Builder setCampaignFeed( + com.google.ads.googleads.v0.resources.CampaignFeed.Builder builderForValue) { + if (campaignFeedBuilder_ == null) { + campaignFeed_ = builderForValue.build(); onChanged(); } else { - feedItemBuilder_.setMessage(builderForValue.build()); + campaignFeedBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The feed item referenced in the query.
+     * The campaign feed referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.FeedItem feed_item = 50; + * .google.ads.googleads.v0.resources.CampaignFeed campaign_feed = 63; */ - public Builder mergeFeedItem(com.google.ads.googleads.v0.resources.FeedItem value) { - if (feedItemBuilder_ == null) { - if (feedItem_ != null) { - feedItem_ = - com.google.ads.googleads.v0.resources.FeedItem.newBuilder(feedItem_).mergeFrom(value).buildPartial(); + public Builder mergeCampaignFeed(com.google.ads.googleads.v0.resources.CampaignFeed value) { + if (campaignFeedBuilder_ == null) { + if (campaignFeed_ != null) { + campaignFeed_ = + com.google.ads.googleads.v0.resources.CampaignFeed.newBuilder(campaignFeed_).mergeFrom(value).buildPartial(); } else { - feedItem_ = value; + campaignFeed_ = value; } onChanged(); } else { - feedItemBuilder_.mergeFrom(value); + campaignFeedBuilder_.mergeFrom(value); } return this; } /** *
-     * The feed item referenced in the query.
+     * The campaign feed referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.FeedItem feed_item = 50; + * .google.ads.googleads.v0.resources.CampaignFeed campaign_feed = 63; */ - public Builder clearFeedItem() { - if (feedItemBuilder_ == null) { - feedItem_ = null; + public Builder clearCampaignFeed() { + if (campaignFeedBuilder_ == null) { + campaignFeed_ = null; onChanged(); } else { - feedItem_ = null; - feedItemBuilder_ = null; + campaignFeed_ = null; + campaignFeedBuilder_ = null; } return this; } /** *
-     * The feed item referenced in the query.
+     * The campaign feed referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.FeedItem feed_item = 50; + * .google.ads.googleads.v0.resources.CampaignFeed campaign_feed = 63; */ - public com.google.ads.googleads.v0.resources.FeedItem.Builder getFeedItemBuilder() { + public com.google.ads.googleads.v0.resources.CampaignFeed.Builder getCampaignFeedBuilder() { onChanged(); - return getFeedItemFieldBuilder().getBuilder(); + return getCampaignFeedFieldBuilder().getBuilder(); } /** *
-     * The feed item referenced in the query.
+     * The campaign feed referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.FeedItem feed_item = 50; + * .google.ads.googleads.v0.resources.CampaignFeed campaign_feed = 63; */ - public com.google.ads.googleads.v0.resources.FeedItemOrBuilder getFeedItemOrBuilder() { - if (feedItemBuilder_ != null) { - return feedItemBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.CampaignFeedOrBuilder getCampaignFeedOrBuilder() { + if (campaignFeedBuilder_ != null) { + return campaignFeedBuilder_.getMessageOrBuilder(); } else { - return feedItem_ == null ? - com.google.ads.googleads.v0.resources.FeedItem.getDefaultInstance() : feedItem_; + return campaignFeed_ == null ? + com.google.ads.googleads.v0.resources.CampaignFeed.getDefaultInstance() : campaignFeed_; } } /** *
-     * The feed item referenced in the query.
+     * The campaign feed referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.FeedItem feed_item = 50; + * .google.ads.googleads.v0.resources.CampaignFeed campaign_feed = 63; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.FeedItem, com.google.ads.googleads.v0.resources.FeedItem.Builder, com.google.ads.googleads.v0.resources.FeedItemOrBuilder> - getFeedItemFieldBuilder() { - if (feedItemBuilder_ == null) { - feedItemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.FeedItem, com.google.ads.googleads.v0.resources.FeedItem.Builder, com.google.ads.googleads.v0.resources.FeedItemOrBuilder>( - getFeedItem(), + com.google.ads.googleads.v0.resources.CampaignFeed, com.google.ads.googleads.v0.resources.CampaignFeed.Builder, com.google.ads.googleads.v0.resources.CampaignFeedOrBuilder> + getCampaignFeedFieldBuilder() { + if (campaignFeedBuilder_ == null) { + campaignFeedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.CampaignFeed, com.google.ads.googleads.v0.resources.CampaignFeed.Builder, com.google.ads.googleads.v0.resources.CampaignFeedOrBuilder>( + getCampaignFeed(), getParentForChildren(), isClean()); - feedItem_ = null; + campaignFeed_ = null; } - return feedItemBuilder_; + return campaignFeedBuilder_; } - private com.google.ads.googleads.v0.resources.FeedMapping feedMapping_ = null; + private com.google.ads.googleads.v0.resources.CampaignSharedSet campaignSharedSet_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.FeedMapping, com.google.ads.googleads.v0.resources.FeedMapping.Builder, com.google.ads.googleads.v0.resources.FeedMappingOrBuilder> feedMappingBuilder_; + com.google.ads.googleads.v0.resources.CampaignSharedSet, com.google.ads.googleads.v0.resources.CampaignSharedSet.Builder, com.google.ads.googleads.v0.resources.CampaignSharedSetOrBuilder> campaignSharedSetBuilder_; /** *
-     * The feed mapping referenced in the query.
+     * Campaign Shared Set referenced in AWQL query.
      * 
* - * .google.ads.googleads.v0.resources.FeedMapping feed_mapping = 58; + * .google.ads.googleads.v0.resources.CampaignSharedSet campaign_shared_set = 30; */ - public boolean hasFeedMapping() { - return feedMappingBuilder_ != null || feedMapping_ != null; + public boolean hasCampaignSharedSet() { + return campaignSharedSetBuilder_ != null || campaignSharedSet_ != null; } /** *
-     * The feed mapping referenced in the query.
+     * Campaign Shared Set referenced in AWQL query.
      * 
* - * .google.ads.googleads.v0.resources.FeedMapping feed_mapping = 58; + * .google.ads.googleads.v0.resources.CampaignSharedSet campaign_shared_set = 30; */ - public com.google.ads.googleads.v0.resources.FeedMapping getFeedMapping() { - if (feedMappingBuilder_ == null) { - return feedMapping_ == null ? com.google.ads.googleads.v0.resources.FeedMapping.getDefaultInstance() : feedMapping_; + public com.google.ads.googleads.v0.resources.CampaignSharedSet getCampaignSharedSet() { + if (campaignSharedSetBuilder_ == null) { + return campaignSharedSet_ == null ? com.google.ads.googleads.v0.resources.CampaignSharedSet.getDefaultInstance() : campaignSharedSet_; } else { - return feedMappingBuilder_.getMessage(); + return campaignSharedSetBuilder_.getMessage(); } } /** *
-     * The feed mapping referenced in the query.
+     * Campaign Shared Set referenced in AWQL query.
      * 
* - * .google.ads.googleads.v0.resources.FeedMapping feed_mapping = 58; + * .google.ads.googleads.v0.resources.CampaignSharedSet campaign_shared_set = 30; */ - public Builder setFeedMapping(com.google.ads.googleads.v0.resources.FeedMapping value) { - if (feedMappingBuilder_ == null) { + public Builder setCampaignSharedSet(com.google.ads.googleads.v0.resources.CampaignSharedSet value) { + if (campaignSharedSetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - feedMapping_ = value; + campaignSharedSet_ = value; onChanged(); } else { - feedMappingBuilder_.setMessage(value); + campaignSharedSetBuilder_.setMessage(value); } return this; } /** *
-     * The feed mapping referenced in the query.
+     * Campaign Shared Set referenced in AWQL query.
      * 
* - * .google.ads.googleads.v0.resources.FeedMapping feed_mapping = 58; + * .google.ads.googleads.v0.resources.CampaignSharedSet campaign_shared_set = 30; */ - public Builder setFeedMapping( - com.google.ads.googleads.v0.resources.FeedMapping.Builder builderForValue) { - if (feedMappingBuilder_ == null) { - feedMapping_ = builderForValue.build(); + public Builder setCampaignSharedSet( + com.google.ads.googleads.v0.resources.CampaignSharedSet.Builder builderForValue) { + if (campaignSharedSetBuilder_ == null) { + campaignSharedSet_ = builderForValue.build(); onChanged(); } else { - feedMappingBuilder_.setMessage(builderForValue.build()); + campaignSharedSetBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The feed mapping referenced in the query.
+     * Campaign Shared Set referenced in AWQL query.
      * 
* - * .google.ads.googleads.v0.resources.FeedMapping feed_mapping = 58; + * .google.ads.googleads.v0.resources.CampaignSharedSet campaign_shared_set = 30; */ - public Builder mergeFeedMapping(com.google.ads.googleads.v0.resources.FeedMapping value) { - if (feedMappingBuilder_ == null) { - if (feedMapping_ != null) { - feedMapping_ = - com.google.ads.googleads.v0.resources.FeedMapping.newBuilder(feedMapping_).mergeFrom(value).buildPartial(); + public Builder mergeCampaignSharedSet(com.google.ads.googleads.v0.resources.CampaignSharedSet value) { + if (campaignSharedSetBuilder_ == null) { + if (campaignSharedSet_ != null) { + campaignSharedSet_ = + com.google.ads.googleads.v0.resources.CampaignSharedSet.newBuilder(campaignSharedSet_).mergeFrom(value).buildPartial(); } else { - feedMapping_ = value; + campaignSharedSet_ = value; } onChanged(); } else { - feedMappingBuilder_.mergeFrom(value); + campaignSharedSetBuilder_.mergeFrom(value); } return this; } /** *
-     * The feed mapping referenced in the query.
+     * Campaign Shared Set referenced in AWQL query.
      * 
* - * .google.ads.googleads.v0.resources.FeedMapping feed_mapping = 58; + * .google.ads.googleads.v0.resources.CampaignSharedSet campaign_shared_set = 30; */ - public Builder clearFeedMapping() { - if (feedMappingBuilder_ == null) { - feedMapping_ = null; + public Builder clearCampaignSharedSet() { + if (campaignSharedSetBuilder_ == null) { + campaignSharedSet_ = null; onChanged(); } else { - feedMapping_ = null; - feedMappingBuilder_ = null; + campaignSharedSet_ = null; + campaignSharedSetBuilder_ = null; } return this; } /** *
-     * The feed mapping referenced in the query.
+     * Campaign Shared Set referenced in AWQL query.
      * 
* - * .google.ads.googleads.v0.resources.FeedMapping feed_mapping = 58; + * .google.ads.googleads.v0.resources.CampaignSharedSet campaign_shared_set = 30; */ - public com.google.ads.googleads.v0.resources.FeedMapping.Builder getFeedMappingBuilder() { + public com.google.ads.googleads.v0.resources.CampaignSharedSet.Builder getCampaignSharedSetBuilder() { onChanged(); - return getFeedMappingFieldBuilder().getBuilder(); + return getCampaignSharedSetFieldBuilder().getBuilder(); } /** *
-     * The feed mapping referenced in the query.
+     * Campaign Shared Set referenced in AWQL query.
      * 
* - * .google.ads.googleads.v0.resources.FeedMapping feed_mapping = 58; + * .google.ads.googleads.v0.resources.CampaignSharedSet campaign_shared_set = 30; */ - public com.google.ads.googleads.v0.resources.FeedMappingOrBuilder getFeedMappingOrBuilder() { - if (feedMappingBuilder_ != null) { - return feedMappingBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.CampaignSharedSetOrBuilder getCampaignSharedSetOrBuilder() { + if (campaignSharedSetBuilder_ != null) { + return campaignSharedSetBuilder_.getMessageOrBuilder(); } else { - return feedMapping_ == null ? - com.google.ads.googleads.v0.resources.FeedMapping.getDefaultInstance() : feedMapping_; + return campaignSharedSet_ == null ? + com.google.ads.googleads.v0.resources.CampaignSharedSet.getDefaultInstance() : campaignSharedSet_; } } /** *
-     * The feed mapping referenced in the query.
+     * Campaign Shared Set referenced in AWQL query.
      * 
* - * .google.ads.googleads.v0.resources.FeedMapping feed_mapping = 58; + * .google.ads.googleads.v0.resources.CampaignSharedSet campaign_shared_set = 30; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.FeedMapping, com.google.ads.googleads.v0.resources.FeedMapping.Builder, com.google.ads.googleads.v0.resources.FeedMappingOrBuilder> - getFeedMappingFieldBuilder() { - if (feedMappingBuilder_ == null) { - feedMappingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.FeedMapping, com.google.ads.googleads.v0.resources.FeedMapping.Builder, com.google.ads.googleads.v0.resources.FeedMappingOrBuilder>( - getFeedMapping(), + com.google.ads.googleads.v0.resources.CampaignSharedSet, com.google.ads.googleads.v0.resources.CampaignSharedSet.Builder, com.google.ads.googleads.v0.resources.CampaignSharedSetOrBuilder> + getCampaignSharedSetFieldBuilder() { + if (campaignSharedSetBuilder_ == null) { + campaignSharedSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.CampaignSharedSet, com.google.ads.googleads.v0.resources.CampaignSharedSet.Builder, com.google.ads.googleads.v0.resources.CampaignSharedSetOrBuilder>( + getCampaignSharedSet(), getParentForChildren(), isClean()); - feedMapping_ = null; + campaignSharedSet_ = null; } - return feedMappingBuilder_; + return campaignSharedSetBuilder_; } - private com.google.ads.googleads.v0.resources.GenderView genderView_ = null; + private com.google.ads.googleads.v0.resources.CarrierConstant carrierConstant_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.GenderView, com.google.ads.googleads.v0.resources.GenderView.Builder, com.google.ads.googleads.v0.resources.GenderViewOrBuilder> genderViewBuilder_; + com.google.ads.googleads.v0.resources.CarrierConstant, com.google.ads.googleads.v0.resources.CarrierConstant.Builder, com.google.ads.googleads.v0.resources.CarrierConstantOrBuilder> carrierConstantBuilder_; /** *
-     * The gender view referenced in the query.
+     * The carrier constant referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.GenderView gender_view = 40; + * .google.ads.googleads.v0.resources.CarrierConstant carrier_constant = 66; */ - public boolean hasGenderView() { - return genderViewBuilder_ != null || genderView_ != null; + public boolean hasCarrierConstant() { + return carrierConstantBuilder_ != null || carrierConstant_ != null; } /** *
-     * The gender view referenced in the query.
+     * The carrier constant referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.GenderView gender_view = 40; + * .google.ads.googleads.v0.resources.CarrierConstant carrier_constant = 66; */ - public com.google.ads.googleads.v0.resources.GenderView getGenderView() { - if (genderViewBuilder_ == null) { - return genderView_ == null ? com.google.ads.googleads.v0.resources.GenderView.getDefaultInstance() : genderView_; + public com.google.ads.googleads.v0.resources.CarrierConstant getCarrierConstant() { + if (carrierConstantBuilder_ == null) { + return carrierConstant_ == null ? com.google.ads.googleads.v0.resources.CarrierConstant.getDefaultInstance() : carrierConstant_; } else { - return genderViewBuilder_.getMessage(); + return carrierConstantBuilder_.getMessage(); } } /** *
-     * The gender view referenced in the query.
+     * The carrier constant referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.GenderView gender_view = 40; + * .google.ads.googleads.v0.resources.CarrierConstant carrier_constant = 66; */ - public Builder setGenderView(com.google.ads.googleads.v0.resources.GenderView value) { - if (genderViewBuilder_ == null) { + public Builder setCarrierConstant(com.google.ads.googleads.v0.resources.CarrierConstant value) { + if (carrierConstantBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - genderView_ = value; + carrierConstant_ = value; onChanged(); } else { - genderViewBuilder_.setMessage(value); + carrierConstantBuilder_.setMessage(value); } return this; } /** *
-     * The gender view referenced in the query.
+     * The carrier constant referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.GenderView gender_view = 40; + * .google.ads.googleads.v0.resources.CarrierConstant carrier_constant = 66; */ - public Builder setGenderView( - com.google.ads.googleads.v0.resources.GenderView.Builder builderForValue) { - if (genderViewBuilder_ == null) { - genderView_ = builderForValue.build(); + public Builder setCarrierConstant( + com.google.ads.googleads.v0.resources.CarrierConstant.Builder builderForValue) { + if (carrierConstantBuilder_ == null) { + carrierConstant_ = builderForValue.build(); onChanged(); } else { - genderViewBuilder_.setMessage(builderForValue.build()); + carrierConstantBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The gender view referenced in the query.
+     * The carrier constant referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.GenderView gender_view = 40; + * .google.ads.googleads.v0.resources.CarrierConstant carrier_constant = 66; */ - public Builder mergeGenderView(com.google.ads.googleads.v0.resources.GenderView value) { - if (genderViewBuilder_ == null) { - if (genderView_ != null) { - genderView_ = - com.google.ads.googleads.v0.resources.GenderView.newBuilder(genderView_).mergeFrom(value).buildPartial(); + public Builder mergeCarrierConstant(com.google.ads.googleads.v0.resources.CarrierConstant value) { + if (carrierConstantBuilder_ == null) { + if (carrierConstant_ != null) { + carrierConstant_ = + com.google.ads.googleads.v0.resources.CarrierConstant.newBuilder(carrierConstant_).mergeFrom(value).buildPartial(); } else { - genderView_ = value; + carrierConstant_ = value; } onChanged(); } else { - genderViewBuilder_.mergeFrom(value); + carrierConstantBuilder_.mergeFrom(value); } return this; } /** *
-     * The gender view referenced in the query.
+     * The carrier constant referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.GenderView gender_view = 40; + * .google.ads.googleads.v0.resources.CarrierConstant carrier_constant = 66; */ - public Builder clearGenderView() { - if (genderViewBuilder_ == null) { - genderView_ = null; + public Builder clearCarrierConstant() { + if (carrierConstantBuilder_ == null) { + carrierConstant_ = null; onChanged(); } else { - genderView_ = null; - genderViewBuilder_ = null; + carrierConstant_ = null; + carrierConstantBuilder_ = null; } return this; } /** *
-     * The gender view referenced in the query.
+     * The carrier constant referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.GenderView gender_view = 40; + * .google.ads.googleads.v0.resources.CarrierConstant carrier_constant = 66; */ - public com.google.ads.googleads.v0.resources.GenderView.Builder getGenderViewBuilder() { + public com.google.ads.googleads.v0.resources.CarrierConstant.Builder getCarrierConstantBuilder() { onChanged(); - return getGenderViewFieldBuilder().getBuilder(); + return getCarrierConstantFieldBuilder().getBuilder(); } /** *
-     * The gender view referenced in the query.
+     * The carrier constant referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.GenderView gender_view = 40; + * .google.ads.googleads.v0.resources.CarrierConstant carrier_constant = 66; */ - public com.google.ads.googleads.v0.resources.GenderViewOrBuilder getGenderViewOrBuilder() { - if (genderViewBuilder_ != null) { - return genderViewBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.CarrierConstantOrBuilder getCarrierConstantOrBuilder() { + if (carrierConstantBuilder_ != null) { + return carrierConstantBuilder_.getMessageOrBuilder(); } else { - return genderView_ == null ? - com.google.ads.googleads.v0.resources.GenderView.getDefaultInstance() : genderView_; + return carrierConstant_ == null ? + com.google.ads.googleads.v0.resources.CarrierConstant.getDefaultInstance() : carrierConstant_; } } /** *
-     * The gender view referenced in the query.
+     * The carrier constant referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.GenderView gender_view = 40; + * .google.ads.googleads.v0.resources.CarrierConstant carrier_constant = 66; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.GenderView, com.google.ads.googleads.v0.resources.GenderView.Builder, com.google.ads.googleads.v0.resources.GenderViewOrBuilder> - getGenderViewFieldBuilder() { - if (genderViewBuilder_ == null) { - genderViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.GenderView, com.google.ads.googleads.v0.resources.GenderView.Builder, com.google.ads.googleads.v0.resources.GenderViewOrBuilder>( - getGenderView(), + com.google.ads.googleads.v0.resources.CarrierConstant, com.google.ads.googleads.v0.resources.CarrierConstant.Builder, com.google.ads.googleads.v0.resources.CarrierConstantOrBuilder> + getCarrierConstantFieldBuilder() { + if (carrierConstantBuilder_ == null) { + carrierConstantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.CarrierConstant, com.google.ads.googleads.v0.resources.CarrierConstant.Builder, com.google.ads.googleads.v0.resources.CarrierConstantOrBuilder>( + getCarrierConstant(), getParentForChildren(), isClean()); - genderView_ = null; + carrierConstant_ = null; } - return genderViewBuilder_; + return carrierConstantBuilder_; } - private com.google.ads.googleads.v0.resources.GeoTargetConstant geoTargetConstant_ = null; + private com.google.ads.googleads.v0.resources.ChangeStatus changeStatus_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.GeoTargetConstant, com.google.ads.googleads.v0.resources.GeoTargetConstant.Builder, com.google.ads.googleads.v0.resources.GeoTargetConstantOrBuilder> geoTargetConstantBuilder_; + com.google.ads.googleads.v0.resources.ChangeStatus, com.google.ads.googleads.v0.resources.ChangeStatus.Builder, com.google.ads.googleads.v0.resources.ChangeStatusOrBuilder> changeStatusBuilder_; /** *
-     * The geo target constant referenced in the query.
+     * The ChangeStatus referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.GeoTargetConstant geo_target_constant = 23; + * .google.ads.googleads.v0.resources.ChangeStatus change_status = 37; */ - public boolean hasGeoTargetConstant() { - return geoTargetConstantBuilder_ != null || geoTargetConstant_ != null; + public boolean hasChangeStatus() { + return changeStatusBuilder_ != null || changeStatus_ != null; } /** *
-     * The geo target constant referenced in the query.
+     * The ChangeStatus referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.GeoTargetConstant geo_target_constant = 23; + * .google.ads.googleads.v0.resources.ChangeStatus change_status = 37; */ - public com.google.ads.googleads.v0.resources.GeoTargetConstant getGeoTargetConstant() { - if (geoTargetConstantBuilder_ == null) { - return geoTargetConstant_ == null ? com.google.ads.googleads.v0.resources.GeoTargetConstant.getDefaultInstance() : geoTargetConstant_; + public com.google.ads.googleads.v0.resources.ChangeStatus getChangeStatus() { + if (changeStatusBuilder_ == null) { + return changeStatus_ == null ? com.google.ads.googleads.v0.resources.ChangeStatus.getDefaultInstance() : changeStatus_; } else { - return geoTargetConstantBuilder_.getMessage(); + return changeStatusBuilder_.getMessage(); } } /** *
-     * The geo target constant referenced in the query.
+     * The ChangeStatus referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.GeoTargetConstant geo_target_constant = 23; + * .google.ads.googleads.v0.resources.ChangeStatus change_status = 37; */ - public Builder setGeoTargetConstant(com.google.ads.googleads.v0.resources.GeoTargetConstant value) { - if (geoTargetConstantBuilder_ == null) { + public Builder setChangeStatus(com.google.ads.googleads.v0.resources.ChangeStatus value) { + if (changeStatusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - geoTargetConstant_ = value; + changeStatus_ = value; onChanged(); } else { - geoTargetConstantBuilder_.setMessage(value); + changeStatusBuilder_.setMessage(value); } return this; } /** *
-     * The geo target constant referenced in the query.
+     * The ChangeStatus referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.GeoTargetConstant geo_target_constant = 23; + * .google.ads.googleads.v0.resources.ChangeStatus change_status = 37; */ - public Builder setGeoTargetConstant( - com.google.ads.googleads.v0.resources.GeoTargetConstant.Builder builderForValue) { - if (geoTargetConstantBuilder_ == null) { - geoTargetConstant_ = builderForValue.build(); + public Builder setChangeStatus( + com.google.ads.googleads.v0.resources.ChangeStatus.Builder builderForValue) { + if (changeStatusBuilder_ == null) { + changeStatus_ = builderForValue.build(); onChanged(); } else { - geoTargetConstantBuilder_.setMessage(builderForValue.build()); + changeStatusBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The geo target constant referenced in the query.
+     * The ChangeStatus referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.GeoTargetConstant geo_target_constant = 23; + * .google.ads.googleads.v0.resources.ChangeStatus change_status = 37; */ - public Builder mergeGeoTargetConstant(com.google.ads.googleads.v0.resources.GeoTargetConstant value) { - if (geoTargetConstantBuilder_ == null) { - if (geoTargetConstant_ != null) { - geoTargetConstant_ = - com.google.ads.googleads.v0.resources.GeoTargetConstant.newBuilder(geoTargetConstant_).mergeFrom(value).buildPartial(); + public Builder mergeChangeStatus(com.google.ads.googleads.v0.resources.ChangeStatus value) { + if (changeStatusBuilder_ == null) { + if (changeStatus_ != null) { + changeStatus_ = + com.google.ads.googleads.v0.resources.ChangeStatus.newBuilder(changeStatus_).mergeFrom(value).buildPartial(); } else { - geoTargetConstant_ = value; + changeStatus_ = value; } onChanged(); } else { - geoTargetConstantBuilder_.mergeFrom(value); + changeStatusBuilder_.mergeFrom(value); } return this; } /** *
-     * The geo target constant referenced in the query.
+     * The ChangeStatus referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.GeoTargetConstant geo_target_constant = 23; + * .google.ads.googleads.v0.resources.ChangeStatus change_status = 37; */ - public Builder clearGeoTargetConstant() { - if (geoTargetConstantBuilder_ == null) { - geoTargetConstant_ = null; + public Builder clearChangeStatus() { + if (changeStatusBuilder_ == null) { + changeStatus_ = null; onChanged(); } else { - geoTargetConstant_ = null; - geoTargetConstantBuilder_ = null; + changeStatus_ = null; + changeStatusBuilder_ = null; } return this; } /** *
-     * The geo target constant referenced in the query.
+     * The ChangeStatus referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.GeoTargetConstant geo_target_constant = 23; + * .google.ads.googleads.v0.resources.ChangeStatus change_status = 37; */ - public com.google.ads.googleads.v0.resources.GeoTargetConstant.Builder getGeoTargetConstantBuilder() { + public com.google.ads.googleads.v0.resources.ChangeStatus.Builder getChangeStatusBuilder() { onChanged(); - return getGeoTargetConstantFieldBuilder().getBuilder(); + return getChangeStatusFieldBuilder().getBuilder(); } /** *
-     * The geo target constant referenced in the query.
+     * The ChangeStatus referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.GeoTargetConstant geo_target_constant = 23; + * .google.ads.googleads.v0.resources.ChangeStatus change_status = 37; */ - public com.google.ads.googleads.v0.resources.GeoTargetConstantOrBuilder getGeoTargetConstantOrBuilder() { - if (geoTargetConstantBuilder_ != null) { - return geoTargetConstantBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.ChangeStatusOrBuilder getChangeStatusOrBuilder() { + if (changeStatusBuilder_ != null) { + return changeStatusBuilder_.getMessageOrBuilder(); } else { - return geoTargetConstant_ == null ? - com.google.ads.googleads.v0.resources.GeoTargetConstant.getDefaultInstance() : geoTargetConstant_; + return changeStatus_ == null ? + com.google.ads.googleads.v0.resources.ChangeStatus.getDefaultInstance() : changeStatus_; } } /** *
-     * The geo target constant referenced in the query.
+     * The ChangeStatus referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.GeoTargetConstant geo_target_constant = 23; + * .google.ads.googleads.v0.resources.ChangeStatus change_status = 37; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.GeoTargetConstant, com.google.ads.googleads.v0.resources.GeoTargetConstant.Builder, com.google.ads.googleads.v0.resources.GeoTargetConstantOrBuilder> - getGeoTargetConstantFieldBuilder() { - if (geoTargetConstantBuilder_ == null) { - geoTargetConstantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.GeoTargetConstant, com.google.ads.googleads.v0.resources.GeoTargetConstant.Builder, com.google.ads.googleads.v0.resources.GeoTargetConstantOrBuilder>( - getGeoTargetConstant(), + com.google.ads.googleads.v0.resources.ChangeStatus, com.google.ads.googleads.v0.resources.ChangeStatus.Builder, com.google.ads.googleads.v0.resources.ChangeStatusOrBuilder> + getChangeStatusFieldBuilder() { + if (changeStatusBuilder_ == null) { + changeStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.ChangeStatus, com.google.ads.googleads.v0.resources.ChangeStatus.Builder, com.google.ads.googleads.v0.resources.ChangeStatusOrBuilder>( + getChangeStatus(), getParentForChildren(), isClean()); - geoTargetConstant_ = null; + changeStatus_ = null; } - return geoTargetConstantBuilder_; + return changeStatusBuilder_; } - private com.google.ads.googleads.v0.resources.HotelGroupView hotelGroupView_ = null; + private com.google.ads.googleads.v0.resources.ConversionAction conversionAction_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.HotelGroupView, com.google.ads.googleads.v0.resources.HotelGroupView.Builder, com.google.ads.googleads.v0.resources.HotelGroupViewOrBuilder> hotelGroupViewBuilder_; + com.google.ads.googleads.v0.resources.ConversionAction, com.google.ads.googleads.v0.resources.ConversionAction.Builder, com.google.ads.googleads.v0.resources.ConversionActionOrBuilder> conversionActionBuilder_; /** *
-     * The hotel group view referenced in the query.
+     * The conversion action referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.HotelGroupView hotel_group_view = 51; + * .google.ads.googleads.v0.resources.ConversionAction conversion_action = 103; */ - public boolean hasHotelGroupView() { - return hotelGroupViewBuilder_ != null || hotelGroupView_ != null; + public boolean hasConversionAction() { + return conversionActionBuilder_ != null || conversionAction_ != null; } /** *
-     * The hotel group view referenced in the query.
+     * The conversion action referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.HotelGroupView hotel_group_view = 51; + * .google.ads.googleads.v0.resources.ConversionAction conversion_action = 103; */ - public com.google.ads.googleads.v0.resources.HotelGroupView getHotelGroupView() { - if (hotelGroupViewBuilder_ == null) { - return hotelGroupView_ == null ? com.google.ads.googleads.v0.resources.HotelGroupView.getDefaultInstance() : hotelGroupView_; + public com.google.ads.googleads.v0.resources.ConversionAction getConversionAction() { + if (conversionActionBuilder_ == null) { + return conversionAction_ == null ? com.google.ads.googleads.v0.resources.ConversionAction.getDefaultInstance() : conversionAction_; } else { - return hotelGroupViewBuilder_.getMessage(); + return conversionActionBuilder_.getMessage(); } } /** *
-     * The hotel group view referenced in the query.
+     * The conversion action referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.HotelGroupView hotel_group_view = 51; + * .google.ads.googleads.v0.resources.ConversionAction conversion_action = 103; */ - public Builder setHotelGroupView(com.google.ads.googleads.v0.resources.HotelGroupView value) { - if (hotelGroupViewBuilder_ == null) { + public Builder setConversionAction(com.google.ads.googleads.v0.resources.ConversionAction value) { + if (conversionActionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - hotelGroupView_ = value; + conversionAction_ = value; onChanged(); } else { - hotelGroupViewBuilder_.setMessage(value); + conversionActionBuilder_.setMessage(value); } return this; } /** *
-     * The hotel group view referenced in the query.
+     * The conversion action referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.HotelGroupView hotel_group_view = 51; + * .google.ads.googleads.v0.resources.ConversionAction conversion_action = 103; */ - public Builder setHotelGroupView( - com.google.ads.googleads.v0.resources.HotelGroupView.Builder builderForValue) { - if (hotelGroupViewBuilder_ == null) { - hotelGroupView_ = builderForValue.build(); + public Builder setConversionAction( + com.google.ads.googleads.v0.resources.ConversionAction.Builder builderForValue) { + if (conversionActionBuilder_ == null) { + conversionAction_ = builderForValue.build(); onChanged(); } else { - hotelGroupViewBuilder_.setMessage(builderForValue.build()); + conversionActionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The hotel group view referenced in the query.
+     * The conversion action referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.HotelGroupView hotel_group_view = 51; + * .google.ads.googleads.v0.resources.ConversionAction conversion_action = 103; */ - public Builder mergeHotelGroupView(com.google.ads.googleads.v0.resources.HotelGroupView value) { - if (hotelGroupViewBuilder_ == null) { - if (hotelGroupView_ != null) { - hotelGroupView_ = - com.google.ads.googleads.v0.resources.HotelGroupView.newBuilder(hotelGroupView_).mergeFrom(value).buildPartial(); + public Builder mergeConversionAction(com.google.ads.googleads.v0.resources.ConversionAction value) { + if (conversionActionBuilder_ == null) { + if (conversionAction_ != null) { + conversionAction_ = + com.google.ads.googleads.v0.resources.ConversionAction.newBuilder(conversionAction_).mergeFrom(value).buildPartial(); } else { - hotelGroupView_ = value; + conversionAction_ = value; } onChanged(); } else { - hotelGroupViewBuilder_.mergeFrom(value); + conversionActionBuilder_.mergeFrom(value); } return this; } /** *
-     * The hotel group view referenced in the query.
+     * The conversion action referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.HotelGroupView hotel_group_view = 51; + * .google.ads.googleads.v0.resources.ConversionAction conversion_action = 103; */ - public Builder clearHotelGroupView() { - if (hotelGroupViewBuilder_ == null) { - hotelGroupView_ = null; + public Builder clearConversionAction() { + if (conversionActionBuilder_ == null) { + conversionAction_ = null; onChanged(); } else { - hotelGroupView_ = null; - hotelGroupViewBuilder_ = null; + conversionAction_ = null; + conversionActionBuilder_ = null; } return this; } /** *
-     * The hotel group view referenced in the query.
+     * The conversion action referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.HotelGroupView hotel_group_view = 51; + * .google.ads.googleads.v0.resources.ConversionAction conversion_action = 103; */ - public com.google.ads.googleads.v0.resources.HotelGroupView.Builder getHotelGroupViewBuilder() { + public com.google.ads.googleads.v0.resources.ConversionAction.Builder getConversionActionBuilder() { onChanged(); - return getHotelGroupViewFieldBuilder().getBuilder(); + return getConversionActionFieldBuilder().getBuilder(); } /** *
-     * The hotel group view referenced in the query.
+     * The conversion action referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.HotelGroupView hotel_group_view = 51; + * .google.ads.googleads.v0.resources.ConversionAction conversion_action = 103; */ - public com.google.ads.googleads.v0.resources.HotelGroupViewOrBuilder getHotelGroupViewOrBuilder() { - if (hotelGroupViewBuilder_ != null) { - return hotelGroupViewBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.ConversionActionOrBuilder getConversionActionOrBuilder() { + if (conversionActionBuilder_ != null) { + return conversionActionBuilder_.getMessageOrBuilder(); } else { - return hotelGroupView_ == null ? - com.google.ads.googleads.v0.resources.HotelGroupView.getDefaultInstance() : hotelGroupView_; + return conversionAction_ == null ? + com.google.ads.googleads.v0.resources.ConversionAction.getDefaultInstance() : conversionAction_; } } /** *
-     * The hotel group view referenced in the query.
+     * The conversion action referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.HotelGroupView hotel_group_view = 51; + * .google.ads.googleads.v0.resources.ConversionAction conversion_action = 103; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.HotelGroupView, com.google.ads.googleads.v0.resources.HotelGroupView.Builder, com.google.ads.googleads.v0.resources.HotelGroupViewOrBuilder> - getHotelGroupViewFieldBuilder() { - if (hotelGroupViewBuilder_ == null) { - hotelGroupViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.HotelGroupView, com.google.ads.googleads.v0.resources.HotelGroupView.Builder, com.google.ads.googleads.v0.resources.HotelGroupViewOrBuilder>( - getHotelGroupView(), + com.google.ads.googleads.v0.resources.ConversionAction, com.google.ads.googleads.v0.resources.ConversionAction.Builder, com.google.ads.googleads.v0.resources.ConversionActionOrBuilder> + getConversionActionFieldBuilder() { + if (conversionActionBuilder_ == null) { + conversionActionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.ConversionAction, com.google.ads.googleads.v0.resources.ConversionAction.Builder, com.google.ads.googleads.v0.resources.ConversionActionOrBuilder>( + getConversionAction(), getParentForChildren(), isClean()); - hotelGroupView_ = null; + conversionAction_ = null; } - return hotelGroupViewBuilder_; + return conversionActionBuilder_; } - private com.google.ads.googleads.v0.resources.HotelPerformanceView hotelPerformanceView_ = null; + private com.google.ads.googleads.v0.resources.Customer customer_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.HotelPerformanceView, com.google.ads.googleads.v0.resources.HotelPerformanceView.Builder, com.google.ads.googleads.v0.resources.HotelPerformanceViewOrBuilder> hotelPerformanceViewBuilder_; + com.google.ads.googleads.v0.resources.Customer, com.google.ads.googleads.v0.resources.Customer.Builder, com.google.ads.googleads.v0.resources.CustomerOrBuilder> customerBuilder_; /** *
-     * The hotel performance view referenced in the query.
+     * The customer referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.HotelPerformanceView hotel_performance_view = 71; + * .google.ads.googleads.v0.resources.Customer customer = 1; */ - public boolean hasHotelPerformanceView() { - return hotelPerformanceViewBuilder_ != null || hotelPerformanceView_ != null; + public boolean hasCustomer() { + return customerBuilder_ != null || customer_ != null; } /** *
-     * The hotel performance view referenced in the query.
+     * The customer referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.HotelPerformanceView hotel_performance_view = 71; + * .google.ads.googleads.v0.resources.Customer customer = 1; */ - public com.google.ads.googleads.v0.resources.HotelPerformanceView getHotelPerformanceView() { - if (hotelPerformanceViewBuilder_ == null) { - return hotelPerformanceView_ == null ? com.google.ads.googleads.v0.resources.HotelPerformanceView.getDefaultInstance() : hotelPerformanceView_; + public com.google.ads.googleads.v0.resources.Customer getCustomer() { + if (customerBuilder_ == null) { + return customer_ == null ? com.google.ads.googleads.v0.resources.Customer.getDefaultInstance() : customer_; } else { - return hotelPerformanceViewBuilder_.getMessage(); + return customerBuilder_.getMessage(); } } /** *
-     * The hotel performance view referenced in the query.
+     * The customer referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.HotelPerformanceView hotel_performance_view = 71; + * .google.ads.googleads.v0.resources.Customer customer = 1; */ - public Builder setHotelPerformanceView(com.google.ads.googleads.v0.resources.HotelPerformanceView value) { - if (hotelPerformanceViewBuilder_ == null) { + public Builder setCustomer(com.google.ads.googleads.v0.resources.Customer value) { + if (customerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - hotelPerformanceView_ = value; + customer_ = value; onChanged(); } else { - hotelPerformanceViewBuilder_.setMessage(value); + customerBuilder_.setMessage(value); } return this; } /** *
-     * The hotel performance view referenced in the query.
+     * The customer referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.HotelPerformanceView hotel_performance_view = 71; + * .google.ads.googleads.v0.resources.Customer customer = 1; */ - public Builder setHotelPerformanceView( - com.google.ads.googleads.v0.resources.HotelPerformanceView.Builder builderForValue) { - if (hotelPerformanceViewBuilder_ == null) { - hotelPerformanceView_ = builderForValue.build(); + public Builder setCustomer( + com.google.ads.googleads.v0.resources.Customer.Builder builderForValue) { + if (customerBuilder_ == null) { + customer_ = builderForValue.build(); onChanged(); } else { - hotelPerformanceViewBuilder_.setMessage(builderForValue.build()); + customerBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The hotel performance view referenced in the query.
+     * The customer referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.HotelPerformanceView hotel_performance_view = 71; + * .google.ads.googleads.v0.resources.Customer customer = 1; */ - public Builder mergeHotelPerformanceView(com.google.ads.googleads.v0.resources.HotelPerformanceView value) { - if (hotelPerformanceViewBuilder_ == null) { - if (hotelPerformanceView_ != null) { - hotelPerformanceView_ = - com.google.ads.googleads.v0.resources.HotelPerformanceView.newBuilder(hotelPerformanceView_).mergeFrom(value).buildPartial(); + public Builder mergeCustomer(com.google.ads.googleads.v0.resources.Customer value) { + if (customerBuilder_ == null) { + if (customer_ != null) { + customer_ = + com.google.ads.googleads.v0.resources.Customer.newBuilder(customer_).mergeFrom(value).buildPartial(); } else { - hotelPerformanceView_ = value; + customer_ = value; } onChanged(); } else { - hotelPerformanceViewBuilder_.mergeFrom(value); + customerBuilder_.mergeFrom(value); } return this; } /** *
-     * The hotel performance view referenced in the query.
+     * The customer referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.HotelPerformanceView hotel_performance_view = 71; + * .google.ads.googleads.v0.resources.Customer customer = 1; */ - public Builder clearHotelPerformanceView() { - if (hotelPerformanceViewBuilder_ == null) { - hotelPerformanceView_ = null; + public Builder clearCustomer() { + if (customerBuilder_ == null) { + customer_ = null; onChanged(); } else { - hotelPerformanceView_ = null; - hotelPerformanceViewBuilder_ = null; + customer_ = null; + customerBuilder_ = null; } return this; } /** *
-     * The hotel performance view referenced in the query.
+     * The customer referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.HotelPerformanceView hotel_performance_view = 71; + * .google.ads.googleads.v0.resources.Customer customer = 1; */ - public com.google.ads.googleads.v0.resources.HotelPerformanceView.Builder getHotelPerformanceViewBuilder() { + public com.google.ads.googleads.v0.resources.Customer.Builder getCustomerBuilder() { onChanged(); - return getHotelPerformanceViewFieldBuilder().getBuilder(); + return getCustomerFieldBuilder().getBuilder(); } /** *
-     * The hotel performance view referenced in the query.
+     * The customer referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.HotelPerformanceView hotel_performance_view = 71; + * .google.ads.googleads.v0.resources.Customer customer = 1; */ - public com.google.ads.googleads.v0.resources.HotelPerformanceViewOrBuilder getHotelPerformanceViewOrBuilder() { - if (hotelPerformanceViewBuilder_ != null) { - return hotelPerformanceViewBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.CustomerOrBuilder getCustomerOrBuilder() { + if (customerBuilder_ != null) { + return customerBuilder_.getMessageOrBuilder(); } else { - return hotelPerformanceView_ == null ? - com.google.ads.googleads.v0.resources.HotelPerformanceView.getDefaultInstance() : hotelPerformanceView_; + return customer_ == null ? + com.google.ads.googleads.v0.resources.Customer.getDefaultInstance() : customer_; } } /** *
-     * The hotel performance view referenced in the query.
+     * The customer referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.HotelPerformanceView hotel_performance_view = 71; + * .google.ads.googleads.v0.resources.Customer customer = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.HotelPerformanceView, com.google.ads.googleads.v0.resources.HotelPerformanceView.Builder, com.google.ads.googleads.v0.resources.HotelPerformanceViewOrBuilder> - getHotelPerformanceViewFieldBuilder() { - if (hotelPerformanceViewBuilder_ == null) { - hotelPerformanceViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.HotelPerformanceView, com.google.ads.googleads.v0.resources.HotelPerformanceView.Builder, com.google.ads.googleads.v0.resources.HotelPerformanceViewOrBuilder>( - getHotelPerformanceView(), + com.google.ads.googleads.v0.resources.Customer, com.google.ads.googleads.v0.resources.Customer.Builder, com.google.ads.googleads.v0.resources.CustomerOrBuilder> + getCustomerFieldBuilder() { + if (customerBuilder_ == null) { + customerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.Customer, com.google.ads.googleads.v0.resources.Customer.Builder, com.google.ads.googleads.v0.resources.CustomerOrBuilder>( + getCustomer(), getParentForChildren(), isClean()); - hotelPerformanceView_ = null; + customer_ = null; } - return hotelPerformanceViewBuilder_; + return customerBuilder_; } - private com.google.ads.googleads.v0.resources.KeywordView keywordView_ = null; + private com.google.ads.googleads.v0.resources.CustomerManagerLink customerManagerLink_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.KeywordView, com.google.ads.googleads.v0.resources.KeywordView.Builder, com.google.ads.googleads.v0.resources.KeywordViewOrBuilder> keywordViewBuilder_; + com.google.ads.googleads.v0.resources.CustomerManagerLink, com.google.ads.googleads.v0.resources.CustomerManagerLink.Builder, com.google.ads.googleads.v0.resources.CustomerManagerLinkOrBuilder> customerManagerLinkBuilder_; /** *
-     * The keyword view referenced in the query.
+     * The CustomerManagerLink referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordView keyword_view = 21; + * .google.ads.googleads.v0.resources.CustomerManagerLink customer_manager_link = 61; */ - public boolean hasKeywordView() { - return keywordViewBuilder_ != null || keywordView_ != null; + public boolean hasCustomerManagerLink() { + return customerManagerLinkBuilder_ != null || customerManagerLink_ != null; } /** *
-     * The keyword view referenced in the query.
+     * The CustomerManagerLink referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordView keyword_view = 21; + * .google.ads.googleads.v0.resources.CustomerManagerLink customer_manager_link = 61; */ - public com.google.ads.googleads.v0.resources.KeywordView getKeywordView() { - if (keywordViewBuilder_ == null) { - return keywordView_ == null ? com.google.ads.googleads.v0.resources.KeywordView.getDefaultInstance() : keywordView_; + public com.google.ads.googleads.v0.resources.CustomerManagerLink getCustomerManagerLink() { + if (customerManagerLinkBuilder_ == null) { + return customerManagerLink_ == null ? com.google.ads.googleads.v0.resources.CustomerManagerLink.getDefaultInstance() : customerManagerLink_; } else { - return keywordViewBuilder_.getMessage(); + return customerManagerLinkBuilder_.getMessage(); } } /** *
-     * The keyword view referenced in the query.
+     * The CustomerManagerLink referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordView keyword_view = 21; + * .google.ads.googleads.v0.resources.CustomerManagerLink customer_manager_link = 61; */ - public Builder setKeywordView(com.google.ads.googleads.v0.resources.KeywordView value) { - if (keywordViewBuilder_ == null) { + public Builder setCustomerManagerLink(com.google.ads.googleads.v0.resources.CustomerManagerLink value) { + if (customerManagerLinkBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - keywordView_ = value; + customerManagerLink_ = value; onChanged(); } else { - keywordViewBuilder_.setMessage(value); + customerManagerLinkBuilder_.setMessage(value); } return this; } /** *
-     * The keyword view referenced in the query.
+     * The CustomerManagerLink referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordView keyword_view = 21; + * .google.ads.googleads.v0.resources.CustomerManagerLink customer_manager_link = 61; */ - public Builder setKeywordView( - com.google.ads.googleads.v0.resources.KeywordView.Builder builderForValue) { - if (keywordViewBuilder_ == null) { - keywordView_ = builderForValue.build(); + public Builder setCustomerManagerLink( + com.google.ads.googleads.v0.resources.CustomerManagerLink.Builder builderForValue) { + if (customerManagerLinkBuilder_ == null) { + customerManagerLink_ = builderForValue.build(); onChanged(); } else { - keywordViewBuilder_.setMessage(builderForValue.build()); + customerManagerLinkBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The keyword view referenced in the query.
+     * The CustomerManagerLink referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordView keyword_view = 21; + * .google.ads.googleads.v0.resources.CustomerManagerLink customer_manager_link = 61; */ - public Builder mergeKeywordView(com.google.ads.googleads.v0.resources.KeywordView value) { - if (keywordViewBuilder_ == null) { - if (keywordView_ != null) { - keywordView_ = - com.google.ads.googleads.v0.resources.KeywordView.newBuilder(keywordView_).mergeFrom(value).buildPartial(); + public Builder mergeCustomerManagerLink(com.google.ads.googleads.v0.resources.CustomerManagerLink value) { + if (customerManagerLinkBuilder_ == null) { + if (customerManagerLink_ != null) { + customerManagerLink_ = + com.google.ads.googleads.v0.resources.CustomerManagerLink.newBuilder(customerManagerLink_).mergeFrom(value).buildPartial(); } else { - keywordView_ = value; + customerManagerLink_ = value; } onChanged(); } else { - keywordViewBuilder_.mergeFrom(value); + customerManagerLinkBuilder_.mergeFrom(value); } return this; } /** *
-     * The keyword view referenced in the query.
+     * The CustomerManagerLink referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordView keyword_view = 21; + * .google.ads.googleads.v0.resources.CustomerManagerLink customer_manager_link = 61; */ - public Builder clearKeywordView() { - if (keywordViewBuilder_ == null) { - keywordView_ = null; + public Builder clearCustomerManagerLink() { + if (customerManagerLinkBuilder_ == null) { + customerManagerLink_ = null; onChanged(); } else { - keywordView_ = null; - keywordViewBuilder_ = null; + customerManagerLink_ = null; + customerManagerLinkBuilder_ = null; } return this; } /** *
-     * The keyword view referenced in the query.
+     * The CustomerManagerLink referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordView keyword_view = 21; + * .google.ads.googleads.v0.resources.CustomerManagerLink customer_manager_link = 61; */ - public com.google.ads.googleads.v0.resources.KeywordView.Builder getKeywordViewBuilder() { + public com.google.ads.googleads.v0.resources.CustomerManagerLink.Builder getCustomerManagerLinkBuilder() { onChanged(); - return getKeywordViewFieldBuilder().getBuilder(); + return getCustomerManagerLinkFieldBuilder().getBuilder(); } /** *
-     * The keyword view referenced in the query.
+     * The CustomerManagerLink referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordView keyword_view = 21; + * .google.ads.googleads.v0.resources.CustomerManagerLink customer_manager_link = 61; */ - public com.google.ads.googleads.v0.resources.KeywordViewOrBuilder getKeywordViewOrBuilder() { - if (keywordViewBuilder_ != null) { - return keywordViewBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.CustomerManagerLinkOrBuilder getCustomerManagerLinkOrBuilder() { + if (customerManagerLinkBuilder_ != null) { + return customerManagerLinkBuilder_.getMessageOrBuilder(); } else { - return keywordView_ == null ? - com.google.ads.googleads.v0.resources.KeywordView.getDefaultInstance() : keywordView_; + return customerManagerLink_ == null ? + com.google.ads.googleads.v0.resources.CustomerManagerLink.getDefaultInstance() : customerManagerLink_; } } /** *
-     * The keyword view referenced in the query.
+     * The CustomerManagerLink referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordView keyword_view = 21; + * .google.ads.googleads.v0.resources.CustomerManagerLink customer_manager_link = 61; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.KeywordView, com.google.ads.googleads.v0.resources.KeywordView.Builder, com.google.ads.googleads.v0.resources.KeywordViewOrBuilder> - getKeywordViewFieldBuilder() { - if (keywordViewBuilder_ == null) { - keywordViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.KeywordView, com.google.ads.googleads.v0.resources.KeywordView.Builder, com.google.ads.googleads.v0.resources.KeywordViewOrBuilder>( - getKeywordView(), + com.google.ads.googleads.v0.resources.CustomerManagerLink, com.google.ads.googleads.v0.resources.CustomerManagerLink.Builder, com.google.ads.googleads.v0.resources.CustomerManagerLinkOrBuilder> + getCustomerManagerLinkFieldBuilder() { + if (customerManagerLinkBuilder_ == null) { + customerManagerLinkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.CustomerManagerLink, com.google.ads.googleads.v0.resources.CustomerManagerLink.Builder, com.google.ads.googleads.v0.resources.CustomerManagerLinkOrBuilder>( + getCustomerManagerLink(), getParentForChildren(), isClean()); - keywordView_ = null; + customerManagerLink_ = null; } - return keywordViewBuilder_; + return customerManagerLinkBuilder_; } - private com.google.ads.googleads.v0.resources.KeywordPlan keywordPlan_ = null; + private com.google.ads.googleads.v0.resources.CustomerClientLink customerClientLink_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.KeywordPlan, com.google.ads.googleads.v0.resources.KeywordPlan.Builder, com.google.ads.googleads.v0.resources.KeywordPlanOrBuilder> keywordPlanBuilder_; + com.google.ads.googleads.v0.resources.CustomerClientLink, com.google.ads.googleads.v0.resources.CustomerClientLink.Builder, com.google.ads.googleads.v0.resources.CustomerClientLinkOrBuilder> customerClientLinkBuilder_; /** *
-     * The keyword plan referenced in the query.
+     * The CustomerClientLink referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlan keyword_plan = 32; + * .google.ads.googleads.v0.resources.CustomerClientLink customer_client_link = 62; */ - public boolean hasKeywordPlan() { - return keywordPlanBuilder_ != null || keywordPlan_ != null; + public boolean hasCustomerClientLink() { + return customerClientLinkBuilder_ != null || customerClientLink_ != null; } /** *
-     * The keyword plan referenced in the query.
+     * The CustomerClientLink referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlan keyword_plan = 32; + * .google.ads.googleads.v0.resources.CustomerClientLink customer_client_link = 62; */ - public com.google.ads.googleads.v0.resources.KeywordPlan getKeywordPlan() { - if (keywordPlanBuilder_ == null) { - return keywordPlan_ == null ? com.google.ads.googleads.v0.resources.KeywordPlan.getDefaultInstance() : keywordPlan_; + public com.google.ads.googleads.v0.resources.CustomerClientLink getCustomerClientLink() { + if (customerClientLinkBuilder_ == null) { + return customerClientLink_ == null ? com.google.ads.googleads.v0.resources.CustomerClientLink.getDefaultInstance() : customerClientLink_; } else { - return keywordPlanBuilder_.getMessage(); + return customerClientLinkBuilder_.getMessage(); } } /** *
-     * The keyword plan referenced in the query.
+     * The CustomerClientLink referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlan keyword_plan = 32; + * .google.ads.googleads.v0.resources.CustomerClientLink customer_client_link = 62; */ - public Builder setKeywordPlan(com.google.ads.googleads.v0.resources.KeywordPlan value) { - if (keywordPlanBuilder_ == null) { + public Builder setCustomerClientLink(com.google.ads.googleads.v0.resources.CustomerClientLink value) { + if (customerClientLinkBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - keywordPlan_ = value; + customerClientLink_ = value; onChanged(); } else { - keywordPlanBuilder_.setMessage(value); + customerClientLinkBuilder_.setMessage(value); } return this; } /** *
-     * The keyword plan referenced in the query.
+     * The CustomerClientLink referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlan keyword_plan = 32; + * .google.ads.googleads.v0.resources.CustomerClientLink customer_client_link = 62; */ - public Builder setKeywordPlan( - com.google.ads.googleads.v0.resources.KeywordPlan.Builder builderForValue) { - if (keywordPlanBuilder_ == null) { - keywordPlan_ = builderForValue.build(); + public Builder setCustomerClientLink( + com.google.ads.googleads.v0.resources.CustomerClientLink.Builder builderForValue) { + if (customerClientLinkBuilder_ == null) { + customerClientLink_ = builderForValue.build(); onChanged(); } else { - keywordPlanBuilder_.setMessage(builderForValue.build()); + customerClientLinkBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The keyword plan referenced in the query.
+     * The CustomerClientLink referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlan keyword_plan = 32; + * .google.ads.googleads.v0.resources.CustomerClientLink customer_client_link = 62; */ - public Builder mergeKeywordPlan(com.google.ads.googleads.v0.resources.KeywordPlan value) { - if (keywordPlanBuilder_ == null) { - if (keywordPlan_ != null) { - keywordPlan_ = - com.google.ads.googleads.v0.resources.KeywordPlan.newBuilder(keywordPlan_).mergeFrom(value).buildPartial(); + public Builder mergeCustomerClientLink(com.google.ads.googleads.v0.resources.CustomerClientLink value) { + if (customerClientLinkBuilder_ == null) { + if (customerClientLink_ != null) { + customerClientLink_ = + com.google.ads.googleads.v0.resources.CustomerClientLink.newBuilder(customerClientLink_).mergeFrom(value).buildPartial(); } else { - keywordPlan_ = value; + customerClientLink_ = value; } onChanged(); } else { - keywordPlanBuilder_.mergeFrom(value); + customerClientLinkBuilder_.mergeFrom(value); } return this; } /** *
-     * The keyword plan referenced in the query.
+     * The CustomerClientLink referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlan keyword_plan = 32; + * .google.ads.googleads.v0.resources.CustomerClientLink customer_client_link = 62; */ - public Builder clearKeywordPlan() { - if (keywordPlanBuilder_ == null) { - keywordPlan_ = null; + public Builder clearCustomerClientLink() { + if (customerClientLinkBuilder_ == null) { + customerClientLink_ = null; onChanged(); } else { - keywordPlan_ = null; - keywordPlanBuilder_ = null; + customerClientLink_ = null; + customerClientLinkBuilder_ = null; } return this; } /** *
-     * The keyword plan referenced in the query.
+     * The CustomerClientLink referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlan keyword_plan = 32; + * .google.ads.googleads.v0.resources.CustomerClientLink customer_client_link = 62; */ - public com.google.ads.googleads.v0.resources.KeywordPlan.Builder getKeywordPlanBuilder() { + public com.google.ads.googleads.v0.resources.CustomerClientLink.Builder getCustomerClientLinkBuilder() { onChanged(); - return getKeywordPlanFieldBuilder().getBuilder(); + return getCustomerClientLinkFieldBuilder().getBuilder(); } /** *
-     * The keyword plan referenced in the query.
+     * The CustomerClientLink referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlan keyword_plan = 32; + * .google.ads.googleads.v0.resources.CustomerClientLink customer_client_link = 62; */ - public com.google.ads.googleads.v0.resources.KeywordPlanOrBuilder getKeywordPlanOrBuilder() { - if (keywordPlanBuilder_ != null) { - return keywordPlanBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.CustomerClientLinkOrBuilder getCustomerClientLinkOrBuilder() { + if (customerClientLinkBuilder_ != null) { + return customerClientLinkBuilder_.getMessageOrBuilder(); } else { - return keywordPlan_ == null ? - com.google.ads.googleads.v0.resources.KeywordPlan.getDefaultInstance() : keywordPlan_; + return customerClientLink_ == null ? + com.google.ads.googleads.v0.resources.CustomerClientLink.getDefaultInstance() : customerClientLink_; } } /** *
-     * The keyword plan referenced in the query.
+     * The CustomerClientLink referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlan keyword_plan = 32; + * .google.ads.googleads.v0.resources.CustomerClientLink customer_client_link = 62; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.KeywordPlan, com.google.ads.googleads.v0.resources.KeywordPlan.Builder, com.google.ads.googleads.v0.resources.KeywordPlanOrBuilder> - getKeywordPlanFieldBuilder() { - if (keywordPlanBuilder_ == null) { - keywordPlanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.KeywordPlan, com.google.ads.googleads.v0.resources.KeywordPlan.Builder, com.google.ads.googleads.v0.resources.KeywordPlanOrBuilder>( - getKeywordPlan(), + com.google.ads.googleads.v0.resources.CustomerClientLink, com.google.ads.googleads.v0.resources.CustomerClientLink.Builder, com.google.ads.googleads.v0.resources.CustomerClientLinkOrBuilder> + getCustomerClientLinkFieldBuilder() { + if (customerClientLinkBuilder_ == null) { + customerClientLinkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.CustomerClientLink, com.google.ads.googleads.v0.resources.CustomerClientLink.Builder, com.google.ads.googleads.v0.resources.CustomerClientLinkOrBuilder>( + getCustomerClientLink(), getParentForChildren(), isClean()); - keywordPlan_ = null; + customerClientLink_ = null; } - return keywordPlanBuilder_; + return customerClientLinkBuilder_; } - private com.google.ads.googleads.v0.resources.KeywordPlanCampaign keywordPlanCampaign_ = null; + private com.google.ads.googleads.v0.resources.CustomerClient customerClient_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.KeywordPlanCampaign, com.google.ads.googleads.v0.resources.KeywordPlanCampaign.Builder, com.google.ads.googleads.v0.resources.KeywordPlanCampaignOrBuilder> keywordPlanCampaignBuilder_; + com.google.ads.googleads.v0.resources.CustomerClient, com.google.ads.googleads.v0.resources.CustomerClient.Builder, com.google.ads.googleads.v0.resources.CustomerClientOrBuilder> customerClientBuilder_; /** *
-     * The keyword plan campaign referenced in the query.
+     * The CustomerClient referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlanCampaign keyword_plan_campaign = 33; + * .google.ads.googleads.v0.resources.CustomerClient customer_client = 70; */ - public boolean hasKeywordPlanCampaign() { - return keywordPlanCampaignBuilder_ != null || keywordPlanCampaign_ != null; + public boolean hasCustomerClient() { + return customerClientBuilder_ != null || customerClient_ != null; } /** *
-     * The keyword plan campaign referenced in the query.
+     * The CustomerClient referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlanCampaign keyword_plan_campaign = 33; + * .google.ads.googleads.v0.resources.CustomerClient customer_client = 70; */ - public com.google.ads.googleads.v0.resources.KeywordPlanCampaign getKeywordPlanCampaign() { - if (keywordPlanCampaignBuilder_ == null) { - return keywordPlanCampaign_ == null ? com.google.ads.googleads.v0.resources.KeywordPlanCampaign.getDefaultInstance() : keywordPlanCampaign_; + public com.google.ads.googleads.v0.resources.CustomerClient getCustomerClient() { + if (customerClientBuilder_ == null) { + return customerClient_ == null ? com.google.ads.googleads.v0.resources.CustomerClient.getDefaultInstance() : customerClient_; } else { - return keywordPlanCampaignBuilder_.getMessage(); + return customerClientBuilder_.getMessage(); } } /** *
-     * The keyword plan campaign referenced in the query.
+     * The CustomerClient referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlanCampaign keyword_plan_campaign = 33; + * .google.ads.googleads.v0.resources.CustomerClient customer_client = 70; */ - public Builder setKeywordPlanCampaign(com.google.ads.googleads.v0.resources.KeywordPlanCampaign value) { - if (keywordPlanCampaignBuilder_ == null) { + public Builder setCustomerClient(com.google.ads.googleads.v0.resources.CustomerClient value) { + if (customerClientBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - keywordPlanCampaign_ = value; + customerClient_ = value; onChanged(); } else { - keywordPlanCampaignBuilder_.setMessage(value); + customerClientBuilder_.setMessage(value); } return this; } /** *
-     * The keyword plan campaign referenced in the query.
+     * The CustomerClient referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlanCampaign keyword_plan_campaign = 33; + * .google.ads.googleads.v0.resources.CustomerClient customer_client = 70; */ - public Builder setKeywordPlanCampaign( - com.google.ads.googleads.v0.resources.KeywordPlanCampaign.Builder builderForValue) { - if (keywordPlanCampaignBuilder_ == null) { - keywordPlanCampaign_ = builderForValue.build(); + public Builder setCustomerClient( + com.google.ads.googleads.v0.resources.CustomerClient.Builder builderForValue) { + if (customerClientBuilder_ == null) { + customerClient_ = builderForValue.build(); onChanged(); } else { - keywordPlanCampaignBuilder_.setMessage(builderForValue.build()); + customerClientBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The keyword plan campaign referenced in the query.
+     * The CustomerClient referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlanCampaign keyword_plan_campaign = 33; + * .google.ads.googleads.v0.resources.CustomerClient customer_client = 70; */ - public Builder mergeKeywordPlanCampaign(com.google.ads.googleads.v0.resources.KeywordPlanCampaign value) { - if (keywordPlanCampaignBuilder_ == null) { - if (keywordPlanCampaign_ != null) { - keywordPlanCampaign_ = - com.google.ads.googleads.v0.resources.KeywordPlanCampaign.newBuilder(keywordPlanCampaign_).mergeFrom(value).buildPartial(); + public Builder mergeCustomerClient(com.google.ads.googleads.v0.resources.CustomerClient value) { + if (customerClientBuilder_ == null) { + if (customerClient_ != null) { + customerClient_ = + com.google.ads.googleads.v0.resources.CustomerClient.newBuilder(customerClient_).mergeFrom(value).buildPartial(); } else { - keywordPlanCampaign_ = value; + customerClient_ = value; } onChanged(); } else { - keywordPlanCampaignBuilder_.mergeFrom(value); + customerClientBuilder_.mergeFrom(value); } return this; } /** *
-     * The keyword plan campaign referenced in the query.
+     * The CustomerClient referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlanCampaign keyword_plan_campaign = 33; + * .google.ads.googleads.v0.resources.CustomerClient customer_client = 70; */ - public Builder clearKeywordPlanCampaign() { - if (keywordPlanCampaignBuilder_ == null) { - keywordPlanCampaign_ = null; + public Builder clearCustomerClient() { + if (customerClientBuilder_ == null) { + customerClient_ = null; onChanged(); } else { - keywordPlanCampaign_ = null; - keywordPlanCampaignBuilder_ = null; + customerClient_ = null; + customerClientBuilder_ = null; } return this; } /** *
-     * The keyword plan campaign referenced in the query.
+     * The CustomerClient referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlanCampaign keyword_plan_campaign = 33; + * .google.ads.googleads.v0.resources.CustomerClient customer_client = 70; */ - public com.google.ads.googleads.v0.resources.KeywordPlanCampaign.Builder getKeywordPlanCampaignBuilder() { + public com.google.ads.googleads.v0.resources.CustomerClient.Builder getCustomerClientBuilder() { onChanged(); - return getKeywordPlanCampaignFieldBuilder().getBuilder(); + return getCustomerClientFieldBuilder().getBuilder(); } /** *
-     * The keyword plan campaign referenced in the query.
+     * The CustomerClient referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlanCampaign keyword_plan_campaign = 33; + * .google.ads.googleads.v0.resources.CustomerClient customer_client = 70; */ - public com.google.ads.googleads.v0.resources.KeywordPlanCampaignOrBuilder getKeywordPlanCampaignOrBuilder() { - if (keywordPlanCampaignBuilder_ != null) { - return keywordPlanCampaignBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.CustomerClientOrBuilder getCustomerClientOrBuilder() { + if (customerClientBuilder_ != null) { + return customerClientBuilder_.getMessageOrBuilder(); } else { - return keywordPlanCampaign_ == null ? - com.google.ads.googleads.v0.resources.KeywordPlanCampaign.getDefaultInstance() : keywordPlanCampaign_; + return customerClient_ == null ? + com.google.ads.googleads.v0.resources.CustomerClient.getDefaultInstance() : customerClient_; } } /** *
-     * The keyword plan campaign referenced in the query.
+     * The CustomerClient referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlanCampaign keyword_plan_campaign = 33; + * .google.ads.googleads.v0.resources.CustomerClient customer_client = 70; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.KeywordPlanCampaign, com.google.ads.googleads.v0.resources.KeywordPlanCampaign.Builder, com.google.ads.googleads.v0.resources.KeywordPlanCampaignOrBuilder> - getKeywordPlanCampaignFieldBuilder() { - if (keywordPlanCampaignBuilder_ == null) { - keywordPlanCampaignBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.KeywordPlanCampaign, com.google.ads.googleads.v0.resources.KeywordPlanCampaign.Builder, com.google.ads.googleads.v0.resources.KeywordPlanCampaignOrBuilder>( - getKeywordPlanCampaign(), + com.google.ads.googleads.v0.resources.CustomerClient, com.google.ads.googleads.v0.resources.CustomerClient.Builder, com.google.ads.googleads.v0.resources.CustomerClientOrBuilder> + getCustomerClientFieldBuilder() { + if (customerClientBuilder_ == null) { + customerClientBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.CustomerClient, com.google.ads.googleads.v0.resources.CustomerClient.Builder, com.google.ads.googleads.v0.resources.CustomerClientOrBuilder>( + getCustomerClient(), getParentForChildren(), isClean()); - keywordPlanCampaign_ = null; + customerClient_ = null; } - return keywordPlanCampaignBuilder_; + return customerClientBuilder_; } - private com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword keywordPlanNegativeKeyword_ = null; + private com.google.ads.googleads.v0.resources.CustomerFeed customerFeed_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword, com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword.Builder, com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeywordOrBuilder> keywordPlanNegativeKeywordBuilder_; + com.google.ads.googleads.v0.resources.CustomerFeed, com.google.ads.googleads.v0.resources.CustomerFeed.Builder, com.google.ads.googleads.v0.resources.CustomerFeedOrBuilder> customerFeedBuilder_; /** *
-     * The keyword plan negative keyword referenced in the query.
+     * The customer feed referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword keyword_plan_negative_keyword = 34; + * .google.ads.googleads.v0.resources.CustomerFeed customer_feed = 64; */ - public boolean hasKeywordPlanNegativeKeyword() { - return keywordPlanNegativeKeywordBuilder_ != null || keywordPlanNegativeKeyword_ != null; + public boolean hasCustomerFeed() { + return customerFeedBuilder_ != null || customerFeed_ != null; } /** *
-     * The keyword plan negative keyword referenced in the query.
+     * The customer feed referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword keyword_plan_negative_keyword = 34; + * .google.ads.googleads.v0.resources.CustomerFeed customer_feed = 64; */ - public com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword getKeywordPlanNegativeKeyword() { - if (keywordPlanNegativeKeywordBuilder_ == null) { - return keywordPlanNegativeKeyword_ == null ? com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword.getDefaultInstance() : keywordPlanNegativeKeyword_; + public com.google.ads.googleads.v0.resources.CustomerFeed getCustomerFeed() { + if (customerFeedBuilder_ == null) { + return customerFeed_ == null ? com.google.ads.googleads.v0.resources.CustomerFeed.getDefaultInstance() : customerFeed_; } else { - return keywordPlanNegativeKeywordBuilder_.getMessage(); + return customerFeedBuilder_.getMessage(); } } /** *
-     * The keyword plan negative keyword referenced in the query.
+     * The customer feed referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword keyword_plan_negative_keyword = 34; + * .google.ads.googleads.v0.resources.CustomerFeed customer_feed = 64; */ - public Builder setKeywordPlanNegativeKeyword(com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword value) { - if (keywordPlanNegativeKeywordBuilder_ == null) { + public Builder setCustomerFeed(com.google.ads.googleads.v0.resources.CustomerFeed value) { + if (customerFeedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - keywordPlanNegativeKeyword_ = value; + customerFeed_ = value; onChanged(); } else { - keywordPlanNegativeKeywordBuilder_.setMessage(value); + customerFeedBuilder_.setMessage(value); } return this; } /** *
-     * The keyword plan negative keyword referenced in the query.
+     * The customer feed referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword keyword_plan_negative_keyword = 34; + * .google.ads.googleads.v0.resources.CustomerFeed customer_feed = 64; */ - public Builder setKeywordPlanNegativeKeyword( - com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword.Builder builderForValue) { - if (keywordPlanNegativeKeywordBuilder_ == null) { - keywordPlanNegativeKeyword_ = builderForValue.build(); + public Builder setCustomerFeed( + com.google.ads.googleads.v0.resources.CustomerFeed.Builder builderForValue) { + if (customerFeedBuilder_ == null) { + customerFeed_ = builderForValue.build(); onChanged(); } else { - keywordPlanNegativeKeywordBuilder_.setMessage(builderForValue.build()); + customerFeedBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The keyword plan negative keyword referenced in the query.
+     * The customer feed referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword keyword_plan_negative_keyword = 34; + * .google.ads.googleads.v0.resources.CustomerFeed customer_feed = 64; */ - public Builder mergeKeywordPlanNegativeKeyword(com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword value) { - if (keywordPlanNegativeKeywordBuilder_ == null) { - if (keywordPlanNegativeKeyword_ != null) { - keywordPlanNegativeKeyword_ = - com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword.newBuilder(keywordPlanNegativeKeyword_).mergeFrom(value).buildPartial(); + public Builder mergeCustomerFeed(com.google.ads.googleads.v0.resources.CustomerFeed value) { + if (customerFeedBuilder_ == null) { + if (customerFeed_ != null) { + customerFeed_ = + com.google.ads.googleads.v0.resources.CustomerFeed.newBuilder(customerFeed_).mergeFrom(value).buildPartial(); } else { - keywordPlanNegativeKeyword_ = value; + customerFeed_ = value; } onChanged(); } else { - keywordPlanNegativeKeywordBuilder_.mergeFrom(value); + customerFeedBuilder_.mergeFrom(value); } return this; } /** *
-     * The keyword plan negative keyword referenced in the query.
+     * The customer feed referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword keyword_plan_negative_keyword = 34; + * .google.ads.googleads.v0.resources.CustomerFeed customer_feed = 64; */ - public Builder clearKeywordPlanNegativeKeyword() { - if (keywordPlanNegativeKeywordBuilder_ == null) { - keywordPlanNegativeKeyword_ = null; + public Builder clearCustomerFeed() { + if (customerFeedBuilder_ == null) { + customerFeed_ = null; onChanged(); } else { - keywordPlanNegativeKeyword_ = null; - keywordPlanNegativeKeywordBuilder_ = null; + customerFeed_ = null; + customerFeedBuilder_ = null; } return this; } /** *
-     * The keyword plan negative keyword referenced in the query.
+     * The customer feed referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword keyword_plan_negative_keyword = 34; + * .google.ads.googleads.v0.resources.CustomerFeed customer_feed = 64; */ - public com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword.Builder getKeywordPlanNegativeKeywordBuilder() { + public com.google.ads.googleads.v0.resources.CustomerFeed.Builder getCustomerFeedBuilder() { onChanged(); - return getKeywordPlanNegativeKeywordFieldBuilder().getBuilder(); + return getCustomerFeedFieldBuilder().getBuilder(); } /** *
-     * The keyword plan negative keyword referenced in the query.
+     * The customer feed referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword keyword_plan_negative_keyword = 34; + * .google.ads.googleads.v0.resources.CustomerFeed customer_feed = 64; */ - public com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeywordOrBuilder getKeywordPlanNegativeKeywordOrBuilder() { - if (keywordPlanNegativeKeywordBuilder_ != null) { - return keywordPlanNegativeKeywordBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.CustomerFeedOrBuilder getCustomerFeedOrBuilder() { + if (customerFeedBuilder_ != null) { + return customerFeedBuilder_.getMessageOrBuilder(); } else { - return keywordPlanNegativeKeyword_ == null ? - com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword.getDefaultInstance() : keywordPlanNegativeKeyword_; + return customerFeed_ == null ? + com.google.ads.googleads.v0.resources.CustomerFeed.getDefaultInstance() : customerFeed_; } } /** *
-     * The keyword plan negative keyword referenced in the query.
+     * The customer feed referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword keyword_plan_negative_keyword = 34; + * .google.ads.googleads.v0.resources.CustomerFeed customer_feed = 64; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword, com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword.Builder, com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeywordOrBuilder> - getKeywordPlanNegativeKeywordFieldBuilder() { - if (keywordPlanNegativeKeywordBuilder_ == null) { - keywordPlanNegativeKeywordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword, com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword.Builder, com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeywordOrBuilder>( - getKeywordPlanNegativeKeyword(), + com.google.ads.googleads.v0.resources.CustomerFeed, com.google.ads.googleads.v0.resources.CustomerFeed.Builder, com.google.ads.googleads.v0.resources.CustomerFeedOrBuilder> + getCustomerFeedFieldBuilder() { + if (customerFeedBuilder_ == null) { + customerFeedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.CustomerFeed, com.google.ads.googleads.v0.resources.CustomerFeed.Builder, com.google.ads.googleads.v0.resources.CustomerFeedOrBuilder>( + getCustomerFeed(), getParentForChildren(), isClean()); - keywordPlanNegativeKeyword_ = null; + customerFeed_ = null; } - return keywordPlanNegativeKeywordBuilder_; + return customerFeedBuilder_; } - private com.google.ads.googleads.v0.resources.KeywordPlanAdGroup keywordPlanAdGroup_ = null; + private com.google.ads.googleads.v0.resources.DisplayKeywordView displayKeywordView_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.KeywordPlanAdGroup, com.google.ads.googleads.v0.resources.KeywordPlanAdGroup.Builder, com.google.ads.googleads.v0.resources.KeywordPlanAdGroupOrBuilder> keywordPlanAdGroupBuilder_; + com.google.ads.googleads.v0.resources.DisplayKeywordView, com.google.ads.googleads.v0.resources.DisplayKeywordView.Builder, com.google.ads.googleads.v0.resources.DisplayKeywordViewOrBuilder> displayKeywordViewBuilder_; /** *
-     * The keyword plan ad group referenced in the query.
+     * The display keyword view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlanAdGroup keyword_plan_ad_group = 35; + * .google.ads.googleads.v0.resources.DisplayKeywordView display_keyword_view = 47; */ - public boolean hasKeywordPlanAdGroup() { - return keywordPlanAdGroupBuilder_ != null || keywordPlanAdGroup_ != null; + public boolean hasDisplayKeywordView() { + return displayKeywordViewBuilder_ != null || displayKeywordView_ != null; } /** *
-     * The keyword plan ad group referenced in the query.
+     * The display keyword view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlanAdGroup keyword_plan_ad_group = 35; + * .google.ads.googleads.v0.resources.DisplayKeywordView display_keyword_view = 47; */ - public com.google.ads.googleads.v0.resources.KeywordPlanAdGroup getKeywordPlanAdGroup() { - if (keywordPlanAdGroupBuilder_ == null) { - return keywordPlanAdGroup_ == null ? com.google.ads.googleads.v0.resources.KeywordPlanAdGroup.getDefaultInstance() : keywordPlanAdGroup_; + public com.google.ads.googleads.v0.resources.DisplayKeywordView getDisplayKeywordView() { + if (displayKeywordViewBuilder_ == null) { + return displayKeywordView_ == null ? com.google.ads.googleads.v0.resources.DisplayKeywordView.getDefaultInstance() : displayKeywordView_; } else { - return keywordPlanAdGroupBuilder_.getMessage(); + return displayKeywordViewBuilder_.getMessage(); } } /** *
-     * The keyword plan ad group referenced in the query.
+     * The display keyword view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlanAdGroup keyword_plan_ad_group = 35; + * .google.ads.googleads.v0.resources.DisplayKeywordView display_keyword_view = 47; */ - public Builder setKeywordPlanAdGroup(com.google.ads.googleads.v0.resources.KeywordPlanAdGroup value) { - if (keywordPlanAdGroupBuilder_ == null) { + public Builder setDisplayKeywordView(com.google.ads.googleads.v0.resources.DisplayKeywordView value) { + if (displayKeywordViewBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - keywordPlanAdGroup_ = value; + displayKeywordView_ = value; onChanged(); } else { - keywordPlanAdGroupBuilder_.setMessage(value); + displayKeywordViewBuilder_.setMessage(value); } return this; } /** *
-     * The keyword plan ad group referenced in the query.
+     * The display keyword view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlanAdGroup keyword_plan_ad_group = 35; + * .google.ads.googleads.v0.resources.DisplayKeywordView display_keyword_view = 47; */ - public Builder setKeywordPlanAdGroup( - com.google.ads.googleads.v0.resources.KeywordPlanAdGroup.Builder builderForValue) { - if (keywordPlanAdGroupBuilder_ == null) { - keywordPlanAdGroup_ = builderForValue.build(); + public Builder setDisplayKeywordView( + com.google.ads.googleads.v0.resources.DisplayKeywordView.Builder builderForValue) { + if (displayKeywordViewBuilder_ == null) { + displayKeywordView_ = builderForValue.build(); onChanged(); } else { - keywordPlanAdGroupBuilder_.setMessage(builderForValue.build()); + displayKeywordViewBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The keyword plan ad group referenced in the query.
+     * The display keyword view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlanAdGroup keyword_plan_ad_group = 35; + * .google.ads.googleads.v0.resources.DisplayKeywordView display_keyword_view = 47; */ - public Builder mergeKeywordPlanAdGroup(com.google.ads.googleads.v0.resources.KeywordPlanAdGroup value) { - if (keywordPlanAdGroupBuilder_ == null) { - if (keywordPlanAdGroup_ != null) { - keywordPlanAdGroup_ = - com.google.ads.googleads.v0.resources.KeywordPlanAdGroup.newBuilder(keywordPlanAdGroup_).mergeFrom(value).buildPartial(); + public Builder mergeDisplayKeywordView(com.google.ads.googleads.v0.resources.DisplayKeywordView value) { + if (displayKeywordViewBuilder_ == null) { + if (displayKeywordView_ != null) { + displayKeywordView_ = + com.google.ads.googleads.v0.resources.DisplayKeywordView.newBuilder(displayKeywordView_).mergeFrom(value).buildPartial(); } else { - keywordPlanAdGroup_ = value; + displayKeywordView_ = value; } onChanged(); } else { - keywordPlanAdGroupBuilder_.mergeFrom(value); + displayKeywordViewBuilder_.mergeFrom(value); } return this; } /** *
-     * The keyword plan ad group referenced in the query.
+     * The display keyword view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlanAdGroup keyword_plan_ad_group = 35; + * .google.ads.googleads.v0.resources.DisplayKeywordView display_keyword_view = 47; */ - public Builder clearKeywordPlanAdGroup() { - if (keywordPlanAdGroupBuilder_ == null) { - keywordPlanAdGroup_ = null; + public Builder clearDisplayKeywordView() { + if (displayKeywordViewBuilder_ == null) { + displayKeywordView_ = null; onChanged(); } else { - keywordPlanAdGroup_ = null; - keywordPlanAdGroupBuilder_ = null; + displayKeywordView_ = null; + displayKeywordViewBuilder_ = null; } return this; } /** *
-     * The keyword plan ad group referenced in the query.
+     * The display keyword view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlanAdGroup keyword_plan_ad_group = 35; + * .google.ads.googleads.v0.resources.DisplayKeywordView display_keyword_view = 47; */ - public com.google.ads.googleads.v0.resources.KeywordPlanAdGroup.Builder getKeywordPlanAdGroupBuilder() { + public com.google.ads.googleads.v0.resources.DisplayKeywordView.Builder getDisplayKeywordViewBuilder() { onChanged(); - return getKeywordPlanAdGroupFieldBuilder().getBuilder(); + return getDisplayKeywordViewFieldBuilder().getBuilder(); } /** *
-     * The keyword plan ad group referenced in the query.
+     * The display keyword view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlanAdGroup keyword_plan_ad_group = 35; + * .google.ads.googleads.v0.resources.DisplayKeywordView display_keyword_view = 47; */ - public com.google.ads.googleads.v0.resources.KeywordPlanAdGroupOrBuilder getKeywordPlanAdGroupOrBuilder() { - if (keywordPlanAdGroupBuilder_ != null) { - return keywordPlanAdGroupBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.DisplayKeywordViewOrBuilder getDisplayKeywordViewOrBuilder() { + if (displayKeywordViewBuilder_ != null) { + return displayKeywordViewBuilder_.getMessageOrBuilder(); } else { - return keywordPlanAdGroup_ == null ? - com.google.ads.googleads.v0.resources.KeywordPlanAdGroup.getDefaultInstance() : keywordPlanAdGroup_; + return displayKeywordView_ == null ? + com.google.ads.googleads.v0.resources.DisplayKeywordView.getDefaultInstance() : displayKeywordView_; } } /** *
-     * The keyword plan ad group referenced in the query.
+     * The display keyword view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlanAdGroup keyword_plan_ad_group = 35; + * .google.ads.googleads.v0.resources.DisplayKeywordView display_keyword_view = 47; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.KeywordPlanAdGroup, com.google.ads.googleads.v0.resources.KeywordPlanAdGroup.Builder, com.google.ads.googleads.v0.resources.KeywordPlanAdGroupOrBuilder> - getKeywordPlanAdGroupFieldBuilder() { - if (keywordPlanAdGroupBuilder_ == null) { - keywordPlanAdGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.KeywordPlanAdGroup, com.google.ads.googleads.v0.resources.KeywordPlanAdGroup.Builder, com.google.ads.googleads.v0.resources.KeywordPlanAdGroupOrBuilder>( - getKeywordPlanAdGroup(), + com.google.ads.googleads.v0.resources.DisplayKeywordView, com.google.ads.googleads.v0.resources.DisplayKeywordView.Builder, com.google.ads.googleads.v0.resources.DisplayKeywordViewOrBuilder> + getDisplayKeywordViewFieldBuilder() { + if (displayKeywordViewBuilder_ == null) { + displayKeywordViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.DisplayKeywordView, com.google.ads.googleads.v0.resources.DisplayKeywordView.Builder, com.google.ads.googleads.v0.resources.DisplayKeywordViewOrBuilder>( + getDisplayKeywordView(), getParentForChildren(), isClean()); - keywordPlanAdGroup_ = null; + displayKeywordView_ = null; } - return keywordPlanAdGroupBuilder_; + return displayKeywordViewBuilder_; } - private com.google.ads.googleads.v0.resources.KeywordPlanKeyword keywordPlanKeyword_ = null; + private com.google.ads.googleads.v0.resources.Feed feed_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.KeywordPlanKeyword, com.google.ads.googleads.v0.resources.KeywordPlanKeyword.Builder, com.google.ads.googleads.v0.resources.KeywordPlanKeywordOrBuilder> keywordPlanKeywordBuilder_; + com.google.ads.googleads.v0.resources.Feed, com.google.ads.googleads.v0.resources.Feed.Builder, com.google.ads.googleads.v0.resources.FeedOrBuilder> feedBuilder_; /** *
-     * The keyword plan keyword referenced in the query.
+     * The feed referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlanKeyword keyword_plan_keyword = 36; + * .google.ads.googleads.v0.resources.Feed feed = 46; */ - public boolean hasKeywordPlanKeyword() { - return keywordPlanKeywordBuilder_ != null || keywordPlanKeyword_ != null; + public boolean hasFeed() { + return feedBuilder_ != null || feed_ != null; } /** *
-     * The keyword plan keyword referenced in the query.
+     * The feed referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlanKeyword keyword_plan_keyword = 36; + * .google.ads.googleads.v0.resources.Feed feed = 46; */ - public com.google.ads.googleads.v0.resources.KeywordPlanKeyword getKeywordPlanKeyword() { - if (keywordPlanKeywordBuilder_ == null) { - return keywordPlanKeyword_ == null ? com.google.ads.googleads.v0.resources.KeywordPlanKeyword.getDefaultInstance() : keywordPlanKeyword_; + public com.google.ads.googleads.v0.resources.Feed getFeed() { + if (feedBuilder_ == null) { + return feed_ == null ? com.google.ads.googleads.v0.resources.Feed.getDefaultInstance() : feed_; } else { - return keywordPlanKeywordBuilder_.getMessage(); + return feedBuilder_.getMessage(); } } /** *
-     * The keyword plan keyword referenced in the query.
+     * The feed referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlanKeyword keyword_plan_keyword = 36; + * .google.ads.googleads.v0.resources.Feed feed = 46; */ - public Builder setKeywordPlanKeyword(com.google.ads.googleads.v0.resources.KeywordPlanKeyword value) { - if (keywordPlanKeywordBuilder_ == null) { + public Builder setFeed(com.google.ads.googleads.v0.resources.Feed value) { + if (feedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - keywordPlanKeyword_ = value; + feed_ = value; onChanged(); } else { - keywordPlanKeywordBuilder_.setMessage(value); + feedBuilder_.setMessage(value); } return this; } /** *
-     * The keyword plan keyword referenced in the query.
+     * The feed referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlanKeyword keyword_plan_keyword = 36; + * .google.ads.googleads.v0.resources.Feed feed = 46; */ - public Builder setKeywordPlanKeyword( - com.google.ads.googleads.v0.resources.KeywordPlanKeyword.Builder builderForValue) { - if (keywordPlanKeywordBuilder_ == null) { - keywordPlanKeyword_ = builderForValue.build(); + public Builder setFeed( + com.google.ads.googleads.v0.resources.Feed.Builder builderForValue) { + if (feedBuilder_ == null) { + feed_ = builderForValue.build(); onChanged(); } else { - keywordPlanKeywordBuilder_.setMessage(builderForValue.build()); + feedBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The keyword plan keyword referenced in the query.
+     * The feed referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlanKeyword keyword_plan_keyword = 36; + * .google.ads.googleads.v0.resources.Feed feed = 46; */ - public Builder mergeKeywordPlanKeyword(com.google.ads.googleads.v0.resources.KeywordPlanKeyword value) { - if (keywordPlanKeywordBuilder_ == null) { - if (keywordPlanKeyword_ != null) { - keywordPlanKeyword_ = - com.google.ads.googleads.v0.resources.KeywordPlanKeyword.newBuilder(keywordPlanKeyword_).mergeFrom(value).buildPartial(); + public Builder mergeFeed(com.google.ads.googleads.v0.resources.Feed value) { + if (feedBuilder_ == null) { + if (feed_ != null) { + feed_ = + com.google.ads.googleads.v0.resources.Feed.newBuilder(feed_).mergeFrom(value).buildPartial(); } else { - keywordPlanKeyword_ = value; + feed_ = value; } onChanged(); } else { - keywordPlanKeywordBuilder_.mergeFrom(value); + feedBuilder_.mergeFrom(value); } return this; } /** *
-     * The keyword plan keyword referenced in the query.
+     * The feed referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlanKeyword keyword_plan_keyword = 36; + * .google.ads.googleads.v0.resources.Feed feed = 46; */ - public Builder clearKeywordPlanKeyword() { - if (keywordPlanKeywordBuilder_ == null) { - keywordPlanKeyword_ = null; + public Builder clearFeed() { + if (feedBuilder_ == null) { + feed_ = null; onChanged(); } else { - keywordPlanKeyword_ = null; - keywordPlanKeywordBuilder_ = null; + feed_ = null; + feedBuilder_ = null; } return this; } /** *
-     * The keyword plan keyword referenced in the query.
+     * The feed referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlanKeyword keyword_plan_keyword = 36; + * .google.ads.googleads.v0.resources.Feed feed = 46; */ - public com.google.ads.googleads.v0.resources.KeywordPlanKeyword.Builder getKeywordPlanKeywordBuilder() { + public com.google.ads.googleads.v0.resources.Feed.Builder getFeedBuilder() { onChanged(); - return getKeywordPlanKeywordFieldBuilder().getBuilder(); + return getFeedFieldBuilder().getBuilder(); } /** *
-     * The keyword plan keyword referenced in the query.
+     * The feed referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlanKeyword keyword_plan_keyword = 36; + * .google.ads.googleads.v0.resources.Feed feed = 46; */ - public com.google.ads.googleads.v0.resources.KeywordPlanKeywordOrBuilder getKeywordPlanKeywordOrBuilder() { - if (keywordPlanKeywordBuilder_ != null) { - return keywordPlanKeywordBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.FeedOrBuilder getFeedOrBuilder() { + if (feedBuilder_ != null) { + return feedBuilder_.getMessageOrBuilder(); } else { - return keywordPlanKeyword_ == null ? - com.google.ads.googleads.v0.resources.KeywordPlanKeyword.getDefaultInstance() : keywordPlanKeyword_; + return feed_ == null ? + com.google.ads.googleads.v0.resources.Feed.getDefaultInstance() : feed_; } } /** *
-     * The keyword plan keyword referenced in the query.
+     * The feed referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.KeywordPlanKeyword keyword_plan_keyword = 36; + * .google.ads.googleads.v0.resources.Feed feed = 46; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.KeywordPlanKeyword, com.google.ads.googleads.v0.resources.KeywordPlanKeyword.Builder, com.google.ads.googleads.v0.resources.KeywordPlanKeywordOrBuilder> - getKeywordPlanKeywordFieldBuilder() { - if (keywordPlanKeywordBuilder_ == null) { - keywordPlanKeywordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.KeywordPlanKeyword, com.google.ads.googleads.v0.resources.KeywordPlanKeyword.Builder, com.google.ads.googleads.v0.resources.KeywordPlanKeywordOrBuilder>( - getKeywordPlanKeyword(), + com.google.ads.googleads.v0.resources.Feed, com.google.ads.googleads.v0.resources.Feed.Builder, com.google.ads.googleads.v0.resources.FeedOrBuilder> + getFeedFieldBuilder() { + if (feedBuilder_ == null) { + feedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.Feed, com.google.ads.googleads.v0.resources.Feed.Builder, com.google.ads.googleads.v0.resources.FeedOrBuilder>( + getFeed(), getParentForChildren(), isClean()); - keywordPlanKeyword_ = null; + feed_ = null; } - return keywordPlanKeywordBuilder_; + return feedBuilder_; } - private com.google.ads.googleads.v0.resources.LanguageConstant languageConstant_ = null; + private com.google.ads.googleads.v0.resources.FeedItem feedItem_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.LanguageConstant, com.google.ads.googleads.v0.resources.LanguageConstant.Builder, com.google.ads.googleads.v0.resources.LanguageConstantOrBuilder> languageConstantBuilder_; + com.google.ads.googleads.v0.resources.FeedItem, com.google.ads.googleads.v0.resources.FeedItem.Builder, com.google.ads.googleads.v0.resources.FeedItemOrBuilder> feedItemBuilder_; /** *
-     * The language constant referenced in the query.
+     * The feed item referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.LanguageConstant language_constant = 55; + * .google.ads.googleads.v0.resources.FeedItem feed_item = 50; */ - public boolean hasLanguageConstant() { - return languageConstantBuilder_ != null || languageConstant_ != null; + public boolean hasFeedItem() { + return feedItemBuilder_ != null || feedItem_ != null; } /** *
-     * The language constant referenced in the query.
+     * The feed item referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.LanguageConstant language_constant = 55; + * .google.ads.googleads.v0.resources.FeedItem feed_item = 50; */ - public com.google.ads.googleads.v0.resources.LanguageConstant getLanguageConstant() { - if (languageConstantBuilder_ == null) { - return languageConstant_ == null ? com.google.ads.googleads.v0.resources.LanguageConstant.getDefaultInstance() : languageConstant_; + public com.google.ads.googleads.v0.resources.FeedItem getFeedItem() { + if (feedItemBuilder_ == null) { + return feedItem_ == null ? com.google.ads.googleads.v0.resources.FeedItem.getDefaultInstance() : feedItem_; } else { - return languageConstantBuilder_.getMessage(); + return feedItemBuilder_.getMessage(); } } /** *
-     * The language constant referenced in the query.
+     * The feed item referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.LanguageConstant language_constant = 55; + * .google.ads.googleads.v0.resources.FeedItem feed_item = 50; */ - public Builder setLanguageConstant(com.google.ads.googleads.v0.resources.LanguageConstant value) { - if (languageConstantBuilder_ == null) { + public Builder setFeedItem(com.google.ads.googleads.v0.resources.FeedItem value) { + if (feedItemBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - languageConstant_ = value; + feedItem_ = value; onChanged(); } else { - languageConstantBuilder_.setMessage(value); + feedItemBuilder_.setMessage(value); } return this; } /** *
-     * The language constant referenced in the query.
+     * The feed item referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.LanguageConstant language_constant = 55; + * .google.ads.googleads.v0.resources.FeedItem feed_item = 50; */ - public Builder setLanguageConstant( - com.google.ads.googleads.v0.resources.LanguageConstant.Builder builderForValue) { - if (languageConstantBuilder_ == null) { - languageConstant_ = builderForValue.build(); + public Builder setFeedItem( + com.google.ads.googleads.v0.resources.FeedItem.Builder builderForValue) { + if (feedItemBuilder_ == null) { + feedItem_ = builderForValue.build(); onChanged(); } else { - languageConstantBuilder_.setMessage(builderForValue.build()); + feedItemBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The language constant referenced in the query.
+     * The feed item referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.LanguageConstant language_constant = 55; + * .google.ads.googleads.v0.resources.FeedItem feed_item = 50; */ - public Builder mergeLanguageConstant(com.google.ads.googleads.v0.resources.LanguageConstant value) { - if (languageConstantBuilder_ == null) { - if (languageConstant_ != null) { - languageConstant_ = - com.google.ads.googleads.v0.resources.LanguageConstant.newBuilder(languageConstant_).mergeFrom(value).buildPartial(); + public Builder mergeFeedItem(com.google.ads.googleads.v0.resources.FeedItem value) { + if (feedItemBuilder_ == null) { + if (feedItem_ != null) { + feedItem_ = + com.google.ads.googleads.v0.resources.FeedItem.newBuilder(feedItem_).mergeFrom(value).buildPartial(); } else { - languageConstant_ = value; + feedItem_ = value; } onChanged(); } else { - languageConstantBuilder_.mergeFrom(value); + feedItemBuilder_.mergeFrom(value); } return this; } /** *
-     * The language constant referenced in the query.
+     * The feed item referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.LanguageConstant language_constant = 55; + * .google.ads.googleads.v0.resources.FeedItem feed_item = 50; */ - public Builder clearLanguageConstant() { - if (languageConstantBuilder_ == null) { - languageConstant_ = null; + public Builder clearFeedItem() { + if (feedItemBuilder_ == null) { + feedItem_ = null; onChanged(); } else { - languageConstant_ = null; - languageConstantBuilder_ = null; + feedItem_ = null; + feedItemBuilder_ = null; } return this; } /** *
-     * The language constant referenced in the query.
+     * The feed item referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.LanguageConstant language_constant = 55; + * .google.ads.googleads.v0.resources.FeedItem feed_item = 50; */ - public com.google.ads.googleads.v0.resources.LanguageConstant.Builder getLanguageConstantBuilder() { + public com.google.ads.googleads.v0.resources.FeedItem.Builder getFeedItemBuilder() { onChanged(); - return getLanguageConstantFieldBuilder().getBuilder(); + return getFeedItemFieldBuilder().getBuilder(); } /** *
-     * The language constant referenced in the query.
+     * The feed item referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.LanguageConstant language_constant = 55; + * .google.ads.googleads.v0.resources.FeedItem feed_item = 50; */ - public com.google.ads.googleads.v0.resources.LanguageConstantOrBuilder getLanguageConstantOrBuilder() { - if (languageConstantBuilder_ != null) { - return languageConstantBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.FeedItemOrBuilder getFeedItemOrBuilder() { + if (feedItemBuilder_ != null) { + return feedItemBuilder_.getMessageOrBuilder(); } else { - return languageConstant_ == null ? - com.google.ads.googleads.v0.resources.LanguageConstant.getDefaultInstance() : languageConstant_; + return feedItem_ == null ? + com.google.ads.googleads.v0.resources.FeedItem.getDefaultInstance() : feedItem_; } } /** *
-     * The language constant referenced in the query.
+     * The feed item referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.LanguageConstant language_constant = 55; + * .google.ads.googleads.v0.resources.FeedItem feed_item = 50; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.LanguageConstant, com.google.ads.googleads.v0.resources.LanguageConstant.Builder, com.google.ads.googleads.v0.resources.LanguageConstantOrBuilder> - getLanguageConstantFieldBuilder() { - if (languageConstantBuilder_ == null) { - languageConstantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.LanguageConstant, com.google.ads.googleads.v0.resources.LanguageConstant.Builder, com.google.ads.googleads.v0.resources.LanguageConstantOrBuilder>( - getLanguageConstant(), + com.google.ads.googleads.v0.resources.FeedItem, com.google.ads.googleads.v0.resources.FeedItem.Builder, com.google.ads.googleads.v0.resources.FeedItemOrBuilder> + getFeedItemFieldBuilder() { + if (feedItemBuilder_ == null) { + feedItemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.FeedItem, com.google.ads.googleads.v0.resources.FeedItem.Builder, com.google.ads.googleads.v0.resources.FeedItemOrBuilder>( + getFeedItem(), getParentForChildren(), isClean()); - languageConstant_ = null; + feedItem_ = null; } - return languageConstantBuilder_; + return feedItemBuilder_; } - private com.google.ads.googleads.v0.resources.ManagedPlacementView managedPlacementView_ = null; + private com.google.ads.googleads.v0.resources.FeedMapping feedMapping_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.ManagedPlacementView, com.google.ads.googleads.v0.resources.ManagedPlacementView.Builder, com.google.ads.googleads.v0.resources.ManagedPlacementViewOrBuilder> managedPlacementViewBuilder_; + com.google.ads.googleads.v0.resources.FeedMapping, com.google.ads.googleads.v0.resources.FeedMapping.Builder, com.google.ads.googleads.v0.resources.FeedMappingOrBuilder> feedMappingBuilder_; /** *
-     * The managed placement view referenced in the query.
+     * The feed mapping referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.ManagedPlacementView managed_placement_view = 53; + * .google.ads.googleads.v0.resources.FeedMapping feed_mapping = 58; */ - public boolean hasManagedPlacementView() { - return managedPlacementViewBuilder_ != null || managedPlacementView_ != null; + public boolean hasFeedMapping() { + return feedMappingBuilder_ != null || feedMapping_ != null; } /** *
-     * The managed placement view referenced in the query.
+     * The feed mapping referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.ManagedPlacementView managed_placement_view = 53; + * .google.ads.googleads.v0.resources.FeedMapping feed_mapping = 58; */ - public com.google.ads.googleads.v0.resources.ManagedPlacementView getManagedPlacementView() { - if (managedPlacementViewBuilder_ == null) { - return managedPlacementView_ == null ? com.google.ads.googleads.v0.resources.ManagedPlacementView.getDefaultInstance() : managedPlacementView_; + public com.google.ads.googleads.v0.resources.FeedMapping getFeedMapping() { + if (feedMappingBuilder_ == null) { + return feedMapping_ == null ? com.google.ads.googleads.v0.resources.FeedMapping.getDefaultInstance() : feedMapping_; } else { - return managedPlacementViewBuilder_.getMessage(); + return feedMappingBuilder_.getMessage(); } } /** *
-     * The managed placement view referenced in the query.
+     * The feed mapping referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.ManagedPlacementView managed_placement_view = 53; + * .google.ads.googleads.v0.resources.FeedMapping feed_mapping = 58; */ - public Builder setManagedPlacementView(com.google.ads.googleads.v0.resources.ManagedPlacementView value) { - if (managedPlacementViewBuilder_ == null) { + public Builder setFeedMapping(com.google.ads.googleads.v0.resources.FeedMapping value) { + if (feedMappingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - managedPlacementView_ = value; + feedMapping_ = value; onChanged(); } else { - managedPlacementViewBuilder_.setMessage(value); + feedMappingBuilder_.setMessage(value); } return this; } /** *
-     * The managed placement view referenced in the query.
+     * The feed mapping referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.ManagedPlacementView managed_placement_view = 53; + * .google.ads.googleads.v0.resources.FeedMapping feed_mapping = 58; */ - public Builder setManagedPlacementView( - com.google.ads.googleads.v0.resources.ManagedPlacementView.Builder builderForValue) { - if (managedPlacementViewBuilder_ == null) { - managedPlacementView_ = builderForValue.build(); + public Builder setFeedMapping( + com.google.ads.googleads.v0.resources.FeedMapping.Builder builderForValue) { + if (feedMappingBuilder_ == null) { + feedMapping_ = builderForValue.build(); onChanged(); } else { - managedPlacementViewBuilder_.setMessage(builderForValue.build()); + feedMappingBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The managed placement view referenced in the query.
+     * The feed mapping referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.ManagedPlacementView managed_placement_view = 53; + * .google.ads.googleads.v0.resources.FeedMapping feed_mapping = 58; */ - public Builder mergeManagedPlacementView(com.google.ads.googleads.v0.resources.ManagedPlacementView value) { - if (managedPlacementViewBuilder_ == null) { - if (managedPlacementView_ != null) { - managedPlacementView_ = - com.google.ads.googleads.v0.resources.ManagedPlacementView.newBuilder(managedPlacementView_).mergeFrom(value).buildPartial(); + public Builder mergeFeedMapping(com.google.ads.googleads.v0.resources.FeedMapping value) { + if (feedMappingBuilder_ == null) { + if (feedMapping_ != null) { + feedMapping_ = + com.google.ads.googleads.v0.resources.FeedMapping.newBuilder(feedMapping_).mergeFrom(value).buildPartial(); } else { - managedPlacementView_ = value; + feedMapping_ = value; } onChanged(); } else { - managedPlacementViewBuilder_.mergeFrom(value); + feedMappingBuilder_.mergeFrom(value); } return this; } /** *
-     * The managed placement view referenced in the query.
+     * The feed mapping referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.ManagedPlacementView managed_placement_view = 53; + * .google.ads.googleads.v0.resources.FeedMapping feed_mapping = 58; */ - public Builder clearManagedPlacementView() { - if (managedPlacementViewBuilder_ == null) { - managedPlacementView_ = null; + public Builder clearFeedMapping() { + if (feedMappingBuilder_ == null) { + feedMapping_ = null; onChanged(); } else { - managedPlacementView_ = null; - managedPlacementViewBuilder_ = null; + feedMapping_ = null; + feedMappingBuilder_ = null; } return this; } /** *
-     * The managed placement view referenced in the query.
+     * The feed mapping referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.ManagedPlacementView managed_placement_view = 53; + * .google.ads.googleads.v0.resources.FeedMapping feed_mapping = 58; */ - public com.google.ads.googleads.v0.resources.ManagedPlacementView.Builder getManagedPlacementViewBuilder() { + public com.google.ads.googleads.v0.resources.FeedMapping.Builder getFeedMappingBuilder() { onChanged(); - return getManagedPlacementViewFieldBuilder().getBuilder(); + return getFeedMappingFieldBuilder().getBuilder(); } /** *
-     * The managed placement view referenced in the query.
+     * The feed mapping referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.ManagedPlacementView managed_placement_view = 53; + * .google.ads.googleads.v0.resources.FeedMapping feed_mapping = 58; */ - public com.google.ads.googleads.v0.resources.ManagedPlacementViewOrBuilder getManagedPlacementViewOrBuilder() { - if (managedPlacementViewBuilder_ != null) { - return managedPlacementViewBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.FeedMappingOrBuilder getFeedMappingOrBuilder() { + if (feedMappingBuilder_ != null) { + return feedMappingBuilder_.getMessageOrBuilder(); } else { - return managedPlacementView_ == null ? - com.google.ads.googleads.v0.resources.ManagedPlacementView.getDefaultInstance() : managedPlacementView_; + return feedMapping_ == null ? + com.google.ads.googleads.v0.resources.FeedMapping.getDefaultInstance() : feedMapping_; } } /** *
-     * The managed placement view referenced in the query.
+     * The feed mapping referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.ManagedPlacementView managed_placement_view = 53; + * .google.ads.googleads.v0.resources.FeedMapping feed_mapping = 58; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.ManagedPlacementView, com.google.ads.googleads.v0.resources.ManagedPlacementView.Builder, com.google.ads.googleads.v0.resources.ManagedPlacementViewOrBuilder> - getManagedPlacementViewFieldBuilder() { - if (managedPlacementViewBuilder_ == null) { - managedPlacementViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.ManagedPlacementView, com.google.ads.googleads.v0.resources.ManagedPlacementView.Builder, com.google.ads.googleads.v0.resources.ManagedPlacementViewOrBuilder>( - getManagedPlacementView(), + com.google.ads.googleads.v0.resources.FeedMapping, com.google.ads.googleads.v0.resources.FeedMapping.Builder, com.google.ads.googleads.v0.resources.FeedMappingOrBuilder> + getFeedMappingFieldBuilder() { + if (feedMappingBuilder_ == null) { + feedMappingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.FeedMapping, com.google.ads.googleads.v0.resources.FeedMapping.Builder, com.google.ads.googleads.v0.resources.FeedMappingOrBuilder>( + getFeedMapping(), getParentForChildren(), isClean()); - managedPlacementView_ = null; + feedMapping_ = null; } - return managedPlacementViewBuilder_; + return feedMappingBuilder_; } - private com.google.ads.googleads.v0.resources.ParentalStatusView parentalStatusView_ = null; + private com.google.ads.googleads.v0.resources.GenderView genderView_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.ParentalStatusView, com.google.ads.googleads.v0.resources.ParentalStatusView.Builder, com.google.ads.googleads.v0.resources.ParentalStatusViewOrBuilder> parentalStatusViewBuilder_; + com.google.ads.googleads.v0.resources.GenderView, com.google.ads.googleads.v0.resources.GenderView.Builder, com.google.ads.googleads.v0.resources.GenderViewOrBuilder> genderViewBuilder_; /** *
-     * The parental status view referenced in the query.
+     * The gender view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.ParentalStatusView parental_status_view = 45; + * .google.ads.googleads.v0.resources.GenderView gender_view = 40; */ - public boolean hasParentalStatusView() { - return parentalStatusViewBuilder_ != null || parentalStatusView_ != null; + public boolean hasGenderView() { + return genderViewBuilder_ != null || genderView_ != null; } /** *
-     * The parental status view referenced in the query.
+     * The gender view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.ParentalStatusView parental_status_view = 45; + * .google.ads.googleads.v0.resources.GenderView gender_view = 40; */ - public com.google.ads.googleads.v0.resources.ParentalStatusView getParentalStatusView() { - if (parentalStatusViewBuilder_ == null) { - return parentalStatusView_ == null ? com.google.ads.googleads.v0.resources.ParentalStatusView.getDefaultInstance() : parentalStatusView_; + public com.google.ads.googleads.v0.resources.GenderView getGenderView() { + if (genderViewBuilder_ == null) { + return genderView_ == null ? com.google.ads.googleads.v0.resources.GenderView.getDefaultInstance() : genderView_; } else { - return parentalStatusViewBuilder_.getMessage(); + return genderViewBuilder_.getMessage(); } } /** *
-     * The parental status view referenced in the query.
+     * The gender view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.ParentalStatusView parental_status_view = 45; + * .google.ads.googleads.v0.resources.GenderView gender_view = 40; */ - public Builder setParentalStatusView(com.google.ads.googleads.v0.resources.ParentalStatusView value) { - if (parentalStatusViewBuilder_ == null) { + public Builder setGenderView(com.google.ads.googleads.v0.resources.GenderView value) { + if (genderViewBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - parentalStatusView_ = value; + genderView_ = value; onChanged(); } else { - parentalStatusViewBuilder_.setMessage(value); + genderViewBuilder_.setMessage(value); } return this; } /** *
-     * The parental status view referenced in the query.
+     * The gender view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.ParentalStatusView parental_status_view = 45; + * .google.ads.googleads.v0.resources.GenderView gender_view = 40; */ - public Builder setParentalStatusView( - com.google.ads.googleads.v0.resources.ParentalStatusView.Builder builderForValue) { - if (parentalStatusViewBuilder_ == null) { - parentalStatusView_ = builderForValue.build(); + public Builder setGenderView( + com.google.ads.googleads.v0.resources.GenderView.Builder builderForValue) { + if (genderViewBuilder_ == null) { + genderView_ = builderForValue.build(); onChanged(); } else { - parentalStatusViewBuilder_.setMessage(builderForValue.build()); + genderViewBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The parental status view referenced in the query.
+     * The gender view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.ParentalStatusView parental_status_view = 45; + * .google.ads.googleads.v0.resources.GenderView gender_view = 40; */ - public Builder mergeParentalStatusView(com.google.ads.googleads.v0.resources.ParentalStatusView value) { - if (parentalStatusViewBuilder_ == null) { - if (parentalStatusView_ != null) { - parentalStatusView_ = - com.google.ads.googleads.v0.resources.ParentalStatusView.newBuilder(parentalStatusView_).mergeFrom(value).buildPartial(); + public Builder mergeGenderView(com.google.ads.googleads.v0.resources.GenderView value) { + if (genderViewBuilder_ == null) { + if (genderView_ != null) { + genderView_ = + com.google.ads.googleads.v0.resources.GenderView.newBuilder(genderView_).mergeFrom(value).buildPartial(); } else { - parentalStatusView_ = value; + genderView_ = value; } onChanged(); } else { - parentalStatusViewBuilder_.mergeFrom(value); + genderViewBuilder_.mergeFrom(value); } return this; } /** *
-     * The parental status view referenced in the query.
+     * The gender view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.ParentalStatusView parental_status_view = 45; + * .google.ads.googleads.v0.resources.GenderView gender_view = 40; */ - public Builder clearParentalStatusView() { - if (parentalStatusViewBuilder_ == null) { - parentalStatusView_ = null; + public Builder clearGenderView() { + if (genderViewBuilder_ == null) { + genderView_ = null; onChanged(); } else { - parentalStatusView_ = null; - parentalStatusViewBuilder_ = null; + genderView_ = null; + genderViewBuilder_ = null; } return this; } /** *
-     * The parental status view referenced in the query.
+     * The gender view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.ParentalStatusView parental_status_view = 45; + * .google.ads.googleads.v0.resources.GenderView gender_view = 40; */ - public com.google.ads.googleads.v0.resources.ParentalStatusView.Builder getParentalStatusViewBuilder() { + public com.google.ads.googleads.v0.resources.GenderView.Builder getGenderViewBuilder() { onChanged(); - return getParentalStatusViewFieldBuilder().getBuilder(); + return getGenderViewFieldBuilder().getBuilder(); } /** *
-     * The parental status view referenced in the query.
+     * The gender view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.ParentalStatusView parental_status_view = 45; + * .google.ads.googleads.v0.resources.GenderView gender_view = 40; */ - public com.google.ads.googleads.v0.resources.ParentalStatusViewOrBuilder getParentalStatusViewOrBuilder() { - if (parentalStatusViewBuilder_ != null) { - return parentalStatusViewBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.GenderViewOrBuilder getGenderViewOrBuilder() { + if (genderViewBuilder_ != null) { + return genderViewBuilder_.getMessageOrBuilder(); } else { - return parentalStatusView_ == null ? - com.google.ads.googleads.v0.resources.ParentalStatusView.getDefaultInstance() : parentalStatusView_; + return genderView_ == null ? + com.google.ads.googleads.v0.resources.GenderView.getDefaultInstance() : genderView_; } } /** *
-     * The parental status view referenced in the query.
+     * The gender view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.ParentalStatusView parental_status_view = 45; + * .google.ads.googleads.v0.resources.GenderView gender_view = 40; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.ParentalStatusView, com.google.ads.googleads.v0.resources.ParentalStatusView.Builder, com.google.ads.googleads.v0.resources.ParentalStatusViewOrBuilder> - getParentalStatusViewFieldBuilder() { - if (parentalStatusViewBuilder_ == null) { - parentalStatusViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.ParentalStatusView, com.google.ads.googleads.v0.resources.ParentalStatusView.Builder, com.google.ads.googleads.v0.resources.ParentalStatusViewOrBuilder>( - getParentalStatusView(), + com.google.ads.googleads.v0.resources.GenderView, com.google.ads.googleads.v0.resources.GenderView.Builder, com.google.ads.googleads.v0.resources.GenderViewOrBuilder> + getGenderViewFieldBuilder() { + if (genderViewBuilder_ == null) { + genderViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.GenderView, com.google.ads.googleads.v0.resources.GenderView.Builder, com.google.ads.googleads.v0.resources.GenderViewOrBuilder>( + getGenderView(), getParentForChildren(), isClean()); - parentalStatusView_ = null; + genderView_ = null; } - return parentalStatusViewBuilder_; + return genderViewBuilder_; } - private com.google.ads.googleads.v0.resources.ProductGroupView productGroupView_ = null; + private com.google.ads.googleads.v0.resources.GeoTargetConstant geoTargetConstant_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.ProductGroupView, com.google.ads.googleads.v0.resources.ProductGroupView.Builder, com.google.ads.googleads.v0.resources.ProductGroupViewOrBuilder> productGroupViewBuilder_; + com.google.ads.googleads.v0.resources.GeoTargetConstant, com.google.ads.googleads.v0.resources.GeoTargetConstant.Builder, com.google.ads.googleads.v0.resources.GeoTargetConstantOrBuilder> geoTargetConstantBuilder_; /** *
-     * The product group view referenced in the query.
+     * The geo target constant referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.ProductGroupView product_group_view = 54; + * .google.ads.googleads.v0.resources.GeoTargetConstant geo_target_constant = 23; */ - public boolean hasProductGroupView() { - return productGroupViewBuilder_ != null || productGroupView_ != null; + public boolean hasGeoTargetConstant() { + return geoTargetConstantBuilder_ != null || geoTargetConstant_ != null; } /** *
-     * The product group view referenced in the query.
+     * The geo target constant referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.ProductGroupView product_group_view = 54; + * .google.ads.googleads.v0.resources.GeoTargetConstant geo_target_constant = 23; */ - public com.google.ads.googleads.v0.resources.ProductGroupView getProductGroupView() { - if (productGroupViewBuilder_ == null) { - return productGroupView_ == null ? com.google.ads.googleads.v0.resources.ProductGroupView.getDefaultInstance() : productGroupView_; + public com.google.ads.googleads.v0.resources.GeoTargetConstant getGeoTargetConstant() { + if (geoTargetConstantBuilder_ == null) { + return geoTargetConstant_ == null ? com.google.ads.googleads.v0.resources.GeoTargetConstant.getDefaultInstance() : geoTargetConstant_; } else { - return productGroupViewBuilder_.getMessage(); + return geoTargetConstantBuilder_.getMessage(); } } /** *
-     * The product group view referenced in the query.
+     * The geo target constant referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.ProductGroupView product_group_view = 54; + * .google.ads.googleads.v0.resources.GeoTargetConstant geo_target_constant = 23; */ - public Builder setProductGroupView(com.google.ads.googleads.v0.resources.ProductGroupView value) { - if (productGroupViewBuilder_ == null) { + public Builder setGeoTargetConstant(com.google.ads.googleads.v0.resources.GeoTargetConstant value) { + if (geoTargetConstantBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - productGroupView_ = value; + geoTargetConstant_ = value; onChanged(); } else { - productGroupViewBuilder_.setMessage(value); + geoTargetConstantBuilder_.setMessage(value); } return this; } /** *
-     * The product group view referenced in the query.
+     * The geo target constant referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.ProductGroupView product_group_view = 54; + * .google.ads.googleads.v0.resources.GeoTargetConstant geo_target_constant = 23; */ - public Builder setProductGroupView( - com.google.ads.googleads.v0.resources.ProductGroupView.Builder builderForValue) { - if (productGroupViewBuilder_ == null) { - productGroupView_ = builderForValue.build(); + public Builder setGeoTargetConstant( + com.google.ads.googleads.v0.resources.GeoTargetConstant.Builder builderForValue) { + if (geoTargetConstantBuilder_ == null) { + geoTargetConstant_ = builderForValue.build(); onChanged(); } else { - productGroupViewBuilder_.setMessage(builderForValue.build()); + geoTargetConstantBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The product group view referenced in the query.
+     * The geo target constant referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.ProductGroupView product_group_view = 54; + * .google.ads.googleads.v0.resources.GeoTargetConstant geo_target_constant = 23; */ - public Builder mergeProductGroupView(com.google.ads.googleads.v0.resources.ProductGroupView value) { - if (productGroupViewBuilder_ == null) { - if (productGroupView_ != null) { - productGroupView_ = - com.google.ads.googleads.v0.resources.ProductGroupView.newBuilder(productGroupView_).mergeFrom(value).buildPartial(); + public Builder mergeGeoTargetConstant(com.google.ads.googleads.v0.resources.GeoTargetConstant value) { + if (geoTargetConstantBuilder_ == null) { + if (geoTargetConstant_ != null) { + geoTargetConstant_ = + com.google.ads.googleads.v0.resources.GeoTargetConstant.newBuilder(geoTargetConstant_).mergeFrom(value).buildPartial(); } else { - productGroupView_ = value; + geoTargetConstant_ = value; } onChanged(); } else { - productGroupViewBuilder_.mergeFrom(value); + geoTargetConstantBuilder_.mergeFrom(value); } return this; } /** *
-     * The product group view referenced in the query.
+     * The geo target constant referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.ProductGroupView product_group_view = 54; + * .google.ads.googleads.v0.resources.GeoTargetConstant geo_target_constant = 23; */ - public Builder clearProductGroupView() { - if (productGroupViewBuilder_ == null) { - productGroupView_ = null; + public Builder clearGeoTargetConstant() { + if (geoTargetConstantBuilder_ == null) { + geoTargetConstant_ = null; onChanged(); } else { - productGroupView_ = null; - productGroupViewBuilder_ = null; + geoTargetConstant_ = null; + geoTargetConstantBuilder_ = null; } return this; } /** *
-     * The product group view referenced in the query.
+     * The geo target constant referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.ProductGroupView product_group_view = 54; + * .google.ads.googleads.v0.resources.GeoTargetConstant geo_target_constant = 23; */ - public com.google.ads.googleads.v0.resources.ProductGroupView.Builder getProductGroupViewBuilder() { + public com.google.ads.googleads.v0.resources.GeoTargetConstant.Builder getGeoTargetConstantBuilder() { onChanged(); - return getProductGroupViewFieldBuilder().getBuilder(); + return getGeoTargetConstantFieldBuilder().getBuilder(); } /** *
-     * The product group view referenced in the query.
+     * The geo target constant referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.ProductGroupView product_group_view = 54; + * .google.ads.googleads.v0.resources.GeoTargetConstant geo_target_constant = 23; */ - public com.google.ads.googleads.v0.resources.ProductGroupViewOrBuilder getProductGroupViewOrBuilder() { - if (productGroupViewBuilder_ != null) { - return productGroupViewBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.GeoTargetConstantOrBuilder getGeoTargetConstantOrBuilder() { + if (geoTargetConstantBuilder_ != null) { + return geoTargetConstantBuilder_.getMessageOrBuilder(); } else { - return productGroupView_ == null ? - com.google.ads.googleads.v0.resources.ProductGroupView.getDefaultInstance() : productGroupView_; + return geoTargetConstant_ == null ? + com.google.ads.googleads.v0.resources.GeoTargetConstant.getDefaultInstance() : geoTargetConstant_; } } /** *
-     * The product group view referenced in the query.
+     * The geo target constant referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.ProductGroupView product_group_view = 54; + * .google.ads.googleads.v0.resources.GeoTargetConstant geo_target_constant = 23; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.ProductGroupView, com.google.ads.googleads.v0.resources.ProductGroupView.Builder, com.google.ads.googleads.v0.resources.ProductGroupViewOrBuilder> - getProductGroupViewFieldBuilder() { - if (productGroupViewBuilder_ == null) { - productGroupViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.ProductGroupView, com.google.ads.googleads.v0.resources.ProductGroupView.Builder, com.google.ads.googleads.v0.resources.ProductGroupViewOrBuilder>( - getProductGroupView(), + com.google.ads.googleads.v0.resources.GeoTargetConstant, com.google.ads.googleads.v0.resources.GeoTargetConstant.Builder, com.google.ads.googleads.v0.resources.GeoTargetConstantOrBuilder> + getGeoTargetConstantFieldBuilder() { + if (geoTargetConstantBuilder_ == null) { + geoTargetConstantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.GeoTargetConstant, com.google.ads.googleads.v0.resources.GeoTargetConstant.Builder, com.google.ads.googleads.v0.resources.GeoTargetConstantOrBuilder>( + getGeoTargetConstant(), getParentForChildren(), isClean()); - productGroupView_ = null; + geoTargetConstant_ = null; } - return productGroupViewBuilder_; + return geoTargetConstantBuilder_; } - private com.google.ads.googleads.v0.resources.Recommendation recommendation_ = null; + private com.google.ads.googleads.v0.resources.HotelGroupView hotelGroupView_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.Recommendation, com.google.ads.googleads.v0.resources.Recommendation.Builder, com.google.ads.googleads.v0.resources.RecommendationOrBuilder> recommendationBuilder_; + com.google.ads.googleads.v0.resources.HotelGroupView, com.google.ads.googleads.v0.resources.HotelGroupView.Builder, com.google.ads.googleads.v0.resources.HotelGroupViewOrBuilder> hotelGroupViewBuilder_; /** *
-     * The recommendation referenced in the query.
+     * The hotel group view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Recommendation recommendation = 22; + * .google.ads.googleads.v0.resources.HotelGroupView hotel_group_view = 51; */ - public boolean hasRecommendation() { - return recommendationBuilder_ != null || recommendation_ != null; + public boolean hasHotelGroupView() { + return hotelGroupViewBuilder_ != null || hotelGroupView_ != null; } /** *
-     * The recommendation referenced in the query.
+     * The hotel group view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Recommendation recommendation = 22; + * .google.ads.googleads.v0.resources.HotelGroupView hotel_group_view = 51; */ - public com.google.ads.googleads.v0.resources.Recommendation getRecommendation() { - if (recommendationBuilder_ == null) { - return recommendation_ == null ? com.google.ads.googleads.v0.resources.Recommendation.getDefaultInstance() : recommendation_; + public com.google.ads.googleads.v0.resources.HotelGroupView getHotelGroupView() { + if (hotelGroupViewBuilder_ == null) { + return hotelGroupView_ == null ? com.google.ads.googleads.v0.resources.HotelGroupView.getDefaultInstance() : hotelGroupView_; } else { - return recommendationBuilder_.getMessage(); + return hotelGroupViewBuilder_.getMessage(); } } /** *
-     * The recommendation referenced in the query.
+     * The hotel group view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Recommendation recommendation = 22; - */ - public Builder setRecommendation(com.google.ads.googleads.v0.resources.Recommendation value) { - if (recommendationBuilder_ == null) { + * .google.ads.googleads.v0.resources.HotelGroupView hotel_group_view = 51; + */ + public Builder setHotelGroupView(com.google.ads.googleads.v0.resources.HotelGroupView value) { + if (hotelGroupViewBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - recommendation_ = value; + hotelGroupView_ = value; onChanged(); } else { - recommendationBuilder_.setMessage(value); + hotelGroupViewBuilder_.setMessage(value); } return this; } /** *
-     * The recommendation referenced in the query.
+     * The hotel group view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Recommendation recommendation = 22; + * .google.ads.googleads.v0.resources.HotelGroupView hotel_group_view = 51; */ - public Builder setRecommendation( - com.google.ads.googleads.v0.resources.Recommendation.Builder builderForValue) { - if (recommendationBuilder_ == null) { - recommendation_ = builderForValue.build(); + public Builder setHotelGroupView( + com.google.ads.googleads.v0.resources.HotelGroupView.Builder builderForValue) { + if (hotelGroupViewBuilder_ == null) { + hotelGroupView_ = builderForValue.build(); onChanged(); } else { - recommendationBuilder_.setMessage(builderForValue.build()); + hotelGroupViewBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The recommendation referenced in the query.
+     * The hotel group view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Recommendation recommendation = 22; + * .google.ads.googleads.v0.resources.HotelGroupView hotel_group_view = 51; */ - public Builder mergeRecommendation(com.google.ads.googleads.v0.resources.Recommendation value) { - if (recommendationBuilder_ == null) { - if (recommendation_ != null) { - recommendation_ = - com.google.ads.googleads.v0.resources.Recommendation.newBuilder(recommendation_).mergeFrom(value).buildPartial(); + public Builder mergeHotelGroupView(com.google.ads.googleads.v0.resources.HotelGroupView value) { + if (hotelGroupViewBuilder_ == null) { + if (hotelGroupView_ != null) { + hotelGroupView_ = + com.google.ads.googleads.v0.resources.HotelGroupView.newBuilder(hotelGroupView_).mergeFrom(value).buildPartial(); } else { - recommendation_ = value; + hotelGroupView_ = value; } onChanged(); } else { - recommendationBuilder_.mergeFrom(value); + hotelGroupViewBuilder_.mergeFrom(value); } return this; } /** *
-     * The recommendation referenced in the query.
+     * The hotel group view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Recommendation recommendation = 22; + * .google.ads.googleads.v0.resources.HotelGroupView hotel_group_view = 51; */ - public Builder clearRecommendation() { - if (recommendationBuilder_ == null) { - recommendation_ = null; + public Builder clearHotelGroupView() { + if (hotelGroupViewBuilder_ == null) { + hotelGroupView_ = null; onChanged(); } else { - recommendation_ = null; - recommendationBuilder_ = null; + hotelGroupView_ = null; + hotelGroupViewBuilder_ = null; } return this; } /** *
-     * The recommendation referenced in the query.
+     * The hotel group view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Recommendation recommendation = 22; + * .google.ads.googleads.v0.resources.HotelGroupView hotel_group_view = 51; */ - public com.google.ads.googleads.v0.resources.Recommendation.Builder getRecommendationBuilder() { + public com.google.ads.googleads.v0.resources.HotelGroupView.Builder getHotelGroupViewBuilder() { onChanged(); - return getRecommendationFieldBuilder().getBuilder(); + return getHotelGroupViewFieldBuilder().getBuilder(); } /** *
-     * The recommendation referenced in the query.
+     * The hotel group view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Recommendation recommendation = 22; + * .google.ads.googleads.v0.resources.HotelGroupView hotel_group_view = 51; */ - public com.google.ads.googleads.v0.resources.RecommendationOrBuilder getRecommendationOrBuilder() { - if (recommendationBuilder_ != null) { - return recommendationBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.HotelGroupViewOrBuilder getHotelGroupViewOrBuilder() { + if (hotelGroupViewBuilder_ != null) { + return hotelGroupViewBuilder_.getMessageOrBuilder(); } else { - return recommendation_ == null ? - com.google.ads.googleads.v0.resources.Recommendation.getDefaultInstance() : recommendation_; + return hotelGroupView_ == null ? + com.google.ads.googleads.v0.resources.HotelGroupView.getDefaultInstance() : hotelGroupView_; } } /** *
-     * The recommendation referenced in the query.
+     * The hotel group view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Recommendation recommendation = 22; + * .google.ads.googleads.v0.resources.HotelGroupView hotel_group_view = 51; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.Recommendation, com.google.ads.googleads.v0.resources.Recommendation.Builder, com.google.ads.googleads.v0.resources.RecommendationOrBuilder> - getRecommendationFieldBuilder() { - if (recommendationBuilder_ == null) { - recommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.Recommendation, com.google.ads.googleads.v0.resources.Recommendation.Builder, com.google.ads.googleads.v0.resources.RecommendationOrBuilder>( - getRecommendation(), + com.google.ads.googleads.v0.resources.HotelGroupView, com.google.ads.googleads.v0.resources.HotelGroupView.Builder, com.google.ads.googleads.v0.resources.HotelGroupViewOrBuilder> + getHotelGroupViewFieldBuilder() { + if (hotelGroupViewBuilder_ == null) { + hotelGroupViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.HotelGroupView, com.google.ads.googleads.v0.resources.HotelGroupView.Builder, com.google.ads.googleads.v0.resources.HotelGroupViewOrBuilder>( + getHotelGroupView(), getParentForChildren(), isClean()); - recommendation_ = null; + hotelGroupView_ = null; } - return recommendationBuilder_; + return hotelGroupViewBuilder_; } - private com.google.ads.googleads.v0.resources.SearchTermView searchTermView_ = null; + private com.google.ads.googleads.v0.resources.HotelPerformanceView hotelPerformanceView_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.SearchTermView, com.google.ads.googleads.v0.resources.SearchTermView.Builder, com.google.ads.googleads.v0.resources.SearchTermViewOrBuilder> searchTermViewBuilder_; + com.google.ads.googleads.v0.resources.HotelPerformanceView, com.google.ads.googleads.v0.resources.HotelPerformanceView.Builder, com.google.ads.googleads.v0.resources.HotelPerformanceViewOrBuilder> hotelPerformanceViewBuilder_; /** *
-     * The search term view referenced in the query.
+     * The hotel performance view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.SearchTermView search_term_view = 68; + * .google.ads.googleads.v0.resources.HotelPerformanceView hotel_performance_view = 71; */ - public boolean hasSearchTermView() { - return searchTermViewBuilder_ != null || searchTermView_ != null; + public boolean hasHotelPerformanceView() { + return hotelPerformanceViewBuilder_ != null || hotelPerformanceView_ != null; } /** *
-     * The search term view referenced in the query.
+     * The hotel performance view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.SearchTermView search_term_view = 68; + * .google.ads.googleads.v0.resources.HotelPerformanceView hotel_performance_view = 71; */ - public com.google.ads.googleads.v0.resources.SearchTermView getSearchTermView() { - if (searchTermViewBuilder_ == null) { - return searchTermView_ == null ? com.google.ads.googleads.v0.resources.SearchTermView.getDefaultInstance() : searchTermView_; + public com.google.ads.googleads.v0.resources.HotelPerformanceView getHotelPerformanceView() { + if (hotelPerformanceViewBuilder_ == null) { + return hotelPerformanceView_ == null ? com.google.ads.googleads.v0.resources.HotelPerformanceView.getDefaultInstance() : hotelPerformanceView_; } else { - return searchTermViewBuilder_.getMessage(); + return hotelPerformanceViewBuilder_.getMessage(); } } /** *
-     * The search term view referenced in the query.
+     * The hotel performance view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.SearchTermView search_term_view = 68; + * .google.ads.googleads.v0.resources.HotelPerformanceView hotel_performance_view = 71; */ - public Builder setSearchTermView(com.google.ads.googleads.v0.resources.SearchTermView value) { - if (searchTermViewBuilder_ == null) { + public Builder setHotelPerformanceView(com.google.ads.googleads.v0.resources.HotelPerformanceView value) { + if (hotelPerformanceViewBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - searchTermView_ = value; + hotelPerformanceView_ = value; onChanged(); } else { - searchTermViewBuilder_.setMessage(value); + hotelPerformanceViewBuilder_.setMessage(value); } return this; } /** *
-     * The search term view referenced in the query.
+     * The hotel performance view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.SearchTermView search_term_view = 68; + * .google.ads.googleads.v0.resources.HotelPerformanceView hotel_performance_view = 71; */ - public Builder setSearchTermView( - com.google.ads.googleads.v0.resources.SearchTermView.Builder builderForValue) { - if (searchTermViewBuilder_ == null) { - searchTermView_ = builderForValue.build(); + public Builder setHotelPerformanceView( + com.google.ads.googleads.v0.resources.HotelPerformanceView.Builder builderForValue) { + if (hotelPerformanceViewBuilder_ == null) { + hotelPerformanceView_ = builderForValue.build(); onChanged(); } else { - searchTermViewBuilder_.setMessage(builderForValue.build()); + hotelPerformanceViewBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The search term view referenced in the query.
+     * The hotel performance view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.SearchTermView search_term_view = 68; + * .google.ads.googleads.v0.resources.HotelPerformanceView hotel_performance_view = 71; */ - public Builder mergeSearchTermView(com.google.ads.googleads.v0.resources.SearchTermView value) { - if (searchTermViewBuilder_ == null) { - if (searchTermView_ != null) { - searchTermView_ = - com.google.ads.googleads.v0.resources.SearchTermView.newBuilder(searchTermView_).mergeFrom(value).buildPartial(); + public Builder mergeHotelPerformanceView(com.google.ads.googleads.v0.resources.HotelPerformanceView value) { + if (hotelPerformanceViewBuilder_ == null) { + if (hotelPerformanceView_ != null) { + hotelPerformanceView_ = + com.google.ads.googleads.v0.resources.HotelPerformanceView.newBuilder(hotelPerformanceView_).mergeFrom(value).buildPartial(); } else { - searchTermView_ = value; + hotelPerformanceView_ = value; } onChanged(); } else { - searchTermViewBuilder_.mergeFrom(value); + hotelPerformanceViewBuilder_.mergeFrom(value); } return this; } /** *
-     * The search term view referenced in the query.
+     * The hotel performance view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.SearchTermView search_term_view = 68; + * .google.ads.googleads.v0.resources.HotelPerformanceView hotel_performance_view = 71; */ - public Builder clearSearchTermView() { - if (searchTermViewBuilder_ == null) { - searchTermView_ = null; + public Builder clearHotelPerformanceView() { + if (hotelPerformanceViewBuilder_ == null) { + hotelPerformanceView_ = null; onChanged(); } else { - searchTermView_ = null; - searchTermViewBuilder_ = null; + hotelPerformanceView_ = null; + hotelPerformanceViewBuilder_ = null; } return this; } /** *
-     * The search term view referenced in the query.
+     * The hotel performance view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.SearchTermView search_term_view = 68; + * .google.ads.googleads.v0.resources.HotelPerformanceView hotel_performance_view = 71; */ - public com.google.ads.googleads.v0.resources.SearchTermView.Builder getSearchTermViewBuilder() { + public com.google.ads.googleads.v0.resources.HotelPerformanceView.Builder getHotelPerformanceViewBuilder() { onChanged(); - return getSearchTermViewFieldBuilder().getBuilder(); + return getHotelPerformanceViewFieldBuilder().getBuilder(); } /** *
-     * The search term view referenced in the query.
+     * The hotel performance view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.SearchTermView search_term_view = 68; + * .google.ads.googleads.v0.resources.HotelPerformanceView hotel_performance_view = 71; */ - public com.google.ads.googleads.v0.resources.SearchTermViewOrBuilder getSearchTermViewOrBuilder() { - if (searchTermViewBuilder_ != null) { - return searchTermViewBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.HotelPerformanceViewOrBuilder getHotelPerformanceViewOrBuilder() { + if (hotelPerformanceViewBuilder_ != null) { + return hotelPerformanceViewBuilder_.getMessageOrBuilder(); } else { - return searchTermView_ == null ? - com.google.ads.googleads.v0.resources.SearchTermView.getDefaultInstance() : searchTermView_; + return hotelPerformanceView_ == null ? + com.google.ads.googleads.v0.resources.HotelPerformanceView.getDefaultInstance() : hotelPerformanceView_; } } /** *
-     * The search term view referenced in the query.
+     * The hotel performance view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.SearchTermView search_term_view = 68; + * .google.ads.googleads.v0.resources.HotelPerformanceView hotel_performance_view = 71; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.SearchTermView, com.google.ads.googleads.v0.resources.SearchTermView.Builder, com.google.ads.googleads.v0.resources.SearchTermViewOrBuilder> - getSearchTermViewFieldBuilder() { - if (searchTermViewBuilder_ == null) { - searchTermViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.SearchTermView, com.google.ads.googleads.v0.resources.SearchTermView.Builder, com.google.ads.googleads.v0.resources.SearchTermViewOrBuilder>( - getSearchTermView(), + com.google.ads.googleads.v0.resources.HotelPerformanceView, com.google.ads.googleads.v0.resources.HotelPerformanceView.Builder, com.google.ads.googleads.v0.resources.HotelPerformanceViewOrBuilder> + getHotelPerformanceViewFieldBuilder() { + if (hotelPerformanceViewBuilder_ == null) { + hotelPerformanceViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.HotelPerformanceView, com.google.ads.googleads.v0.resources.HotelPerformanceView.Builder, com.google.ads.googleads.v0.resources.HotelPerformanceViewOrBuilder>( + getHotelPerformanceView(), getParentForChildren(), isClean()); - searchTermView_ = null; + hotelPerformanceView_ = null; } - return searchTermViewBuilder_; + return hotelPerformanceViewBuilder_; } - private com.google.ads.googleads.v0.resources.SharedCriterion sharedCriterion_ = null; + private com.google.ads.googleads.v0.resources.KeywordView keywordView_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.SharedCriterion, com.google.ads.googleads.v0.resources.SharedCriterion.Builder, com.google.ads.googleads.v0.resources.SharedCriterionOrBuilder> sharedCriterionBuilder_; + com.google.ads.googleads.v0.resources.KeywordView, com.google.ads.googleads.v0.resources.KeywordView.Builder, com.google.ads.googleads.v0.resources.KeywordViewOrBuilder> keywordViewBuilder_; /** *
-     * The shared set referenced in the query.
+     * The keyword view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.SharedCriterion shared_criterion = 29; + * .google.ads.googleads.v0.resources.KeywordView keyword_view = 21; */ - public boolean hasSharedCriterion() { - return sharedCriterionBuilder_ != null || sharedCriterion_ != null; + public boolean hasKeywordView() { + return keywordViewBuilder_ != null || keywordView_ != null; } /** *
-     * The shared set referenced in the query.
+     * The keyword view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.SharedCriterion shared_criterion = 29; + * .google.ads.googleads.v0.resources.KeywordView keyword_view = 21; */ - public com.google.ads.googleads.v0.resources.SharedCriterion getSharedCriterion() { - if (sharedCriterionBuilder_ == null) { - return sharedCriterion_ == null ? com.google.ads.googleads.v0.resources.SharedCriterion.getDefaultInstance() : sharedCriterion_; + public com.google.ads.googleads.v0.resources.KeywordView getKeywordView() { + if (keywordViewBuilder_ == null) { + return keywordView_ == null ? com.google.ads.googleads.v0.resources.KeywordView.getDefaultInstance() : keywordView_; } else { - return sharedCriterionBuilder_.getMessage(); + return keywordViewBuilder_.getMessage(); } } /** *
-     * The shared set referenced in the query.
+     * The keyword view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.SharedCriterion shared_criterion = 29; + * .google.ads.googleads.v0.resources.KeywordView keyword_view = 21; */ - public Builder setSharedCriterion(com.google.ads.googleads.v0.resources.SharedCriterion value) { - if (sharedCriterionBuilder_ == null) { + public Builder setKeywordView(com.google.ads.googleads.v0.resources.KeywordView value) { + if (keywordViewBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - sharedCriterion_ = value; + keywordView_ = value; onChanged(); } else { - sharedCriterionBuilder_.setMessage(value); + keywordViewBuilder_.setMessage(value); } return this; } /** *
-     * The shared set referenced in the query.
+     * The keyword view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.SharedCriterion shared_criterion = 29; + * .google.ads.googleads.v0.resources.KeywordView keyword_view = 21; */ - public Builder setSharedCriterion( - com.google.ads.googleads.v0.resources.SharedCriterion.Builder builderForValue) { - if (sharedCriterionBuilder_ == null) { - sharedCriterion_ = builderForValue.build(); + public Builder setKeywordView( + com.google.ads.googleads.v0.resources.KeywordView.Builder builderForValue) { + if (keywordViewBuilder_ == null) { + keywordView_ = builderForValue.build(); onChanged(); } else { - sharedCriterionBuilder_.setMessage(builderForValue.build()); + keywordViewBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The shared set referenced in the query.
+     * The keyword view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.SharedCriterion shared_criterion = 29; + * .google.ads.googleads.v0.resources.KeywordView keyword_view = 21; */ - public Builder mergeSharedCriterion(com.google.ads.googleads.v0.resources.SharedCriterion value) { - if (sharedCriterionBuilder_ == null) { - if (sharedCriterion_ != null) { - sharedCriterion_ = - com.google.ads.googleads.v0.resources.SharedCriterion.newBuilder(sharedCriterion_).mergeFrom(value).buildPartial(); + public Builder mergeKeywordView(com.google.ads.googleads.v0.resources.KeywordView value) { + if (keywordViewBuilder_ == null) { + if (keywordView_ != null) { + keywordView_ = + com.google.ads.googleads.v0.resources.KeywordView.newBuilder(keywordView_).mergeFrom(value).buildPartial(); } else { - sharedCriterion_ = value; + keywordView_ = value; } onChanged(); } else { - sharedCriterionBuilder_.mergeFrom(value); + keywordViewBuilder_.mergeFrom(value); } return this; } /** *
-     * The shared set referenced in the query.
+     * The keyword view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.SharedCriterion shared_criterion = 29; + * .google.ads.googleads.v0.resources.KeywordView keyword_view = 21; */ - public Builder clearSharedCriterion() { - if (sharedCriterionBuilder_ == null) { - sharedCriterion_ = null; + public Builder clearKeywordView() { + if (keywordViewBuilder_ == null) { + keywordView_ = null; onChanged(); } else { - sharedCriterion_ = null; - sharedCriterionBuilder_ = null; + keywordView_ = null; + keywordViewBuilder_ = null; } return this; } /** *
-     * The shared set referenced in the query.
+     * The keyword view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.SharedCriterion shared_criterion = 29; + * .google.ads.googleads.v0.resources.KeywordView keyword_view = 21; */ - public com.google.ads.googleads.v0.resources.SharedCriterion.Builder getSharedCriterionBuilder() { + public com.google.ads.googleads.v0.resources.KeywordView.Builder getKeywordViewBuilder() { onChanged(); - return getSharedCriterionFieldBuilder().getBuilder(); + return getKeywordViewFieldBuilder().getBuilder(); } /** *
-     * The shared set referenced in the query.
+     * The keyword view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.SharedCriterion shared_criterion = 29; + * .google.ads.googleads.v0.resources.KeywordView keyword_view = 21; */ - public com.google.ads.googleads.v0.resources.SharedCriterionOrBuilder getSharedCriterionOrBuilder() { - if (sharedCriterionBuilder_ != null) { - return sharedCriterionBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.KeywordViewOrBuilder getKeywordViewOrBuilder() { + if (keywordViewBuilder_ != null) { + return keywordViewBuilder_.getMessageOrBuilder(); } else { - return sharedCriterion_ == null ? - com.google.ads.googleads.v0.resources.SharedCriterion.getDefaultInstance() : sharedCriterion_; + return keywordView_ == null ? + com.google.ads.googleads.v0.resources.KeywordView.getDefaultInstance() : keywordView_; } } /** *
-     * The shared set referenced in the query.
+     * The keyword view referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.SharedCriterion shared_criterion = 29; + * .google.ads.googleads.v0.resources.KeywordView keyword_view = 21; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.SharedCriterion, com.google.ads.googleads.v0.resources.SharedCriterion.Builder, com.google.ads.googleads.v0.resources.SharedCriterionOrBuilder> - getSharedCriterionFieldBuilder() { - if (sharedCriterionBuilder_ == null) { - sharedCriterionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.SharedCriterion, com.google.ads.googleads.v0.resources.SharedCriterion.Builder, com.google.ads.googleads.v0.resources.SharedCriterionOrBuilder>( - getSharedCriterion(), + com.google.ads.googleads.v0.resources.KeywordView, com.google.ads.googleads.v0.resources.KeywordView.Builder, com.google.ads.googleads.v0.resources.KeywordViewOrBuilder> + getKeywordViewFieldBuilder() { + if (keywordViewBuilder_ == null) { + keywordViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.KeywordView, com.google.ads.googleads.v0.resources.KeywordView.Builder, com.google.ads.googleads.v0.resources.KeywordViewOrBuilder>( + getKeywordView(), getParentForChildren(), isClean()); - sharedCriterion_ = null; + keywordView_ = null; } - return sharedCriterionBuilder_; + return keywordViewBuilder_; } - private com.google.ads.googleads.v0.resources.SharedSet sharedSet_ = null; + private com.google.ads.googleads.v0.resources.KeywordPlan keywordPlan_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.SharedSet, com.google.ads.googleads.v0.resources.SharedSet.Builder, com.google.ads.googleads.v0.resources.SharedSetOrBuilder> sharedSetBuilder_; + com.google.ads.googleads.v0.resources.KeywordPlan, com.google.ads.googleads.v0.resources.KeywordPlan.Builder, com.google.ads.googleads.v0.resources.KeywordPlanOrBuilder> keywordPlanBuilder_; /** *
-     * The shared set referenced in the query.
+     * The keyword plan referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.SharedSet shared_set = 27; + * .google.ads.googleads.v0.resources.KeywordPlan keyword_plan = 32; */ - public boolean hasSharedSet() { - return sharedSetBuilder_ != null || sharedSet_ != null; + public boolean hasKeywordPlan() { + return keywordPlanBuilder_ != null || keywordPlan_ != null; } /** *
-     * The shared set referenced in the query.
+     * The keyword plan referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.SharedSet shared_set = 27; + * .google.ads.googleads.v0.resources.KeywordPlan keyword_plan = 32; */ - public com.google.ads.googleads.v0.resources.SharedSet getSharedSet() { - if (sharedSetBuilder_ == null) { - return sharedSet_ == null ? com.google.ads.googleads.v0.resources.SharedSet.getDefaultInstance() : sharedSet_; + public com.google.ads.googleads.v0.resources.KeywordPlan getKeywordPlan() { + if (keywordPlanBuilder_ == null) { + return keywordPlan_ == null ? com.google.ads.googleads.v0.resources.KeywordPlan.getDefaultInstance() : keywordPlan_; } else { - return sharedSetBuilder_.getMessage(); + return keywordPlanBuilder_.getMessage(); } } /** *
-     * The shared set referenced in the query.
+     * The keyword plan referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.SharedSet shared_set = 27; + * .google.ads.googleads.v0.resources.KeywordPlan keyword_plan = 32; */ - public Builder setSharedSet(com.google.ads.googleads.v0.resources.SharedSet value) { - if (sharedSetBuilder_ == null) { + public Builder setKeywordPlan(com.google.ads.googleads.v0.resources.KeywordPlan value) { + if (keywordPlanBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - sharedSet_ = value; + keywordPlan_ = value; onChanged(); } else { - sharedSetBuilder_.setMessage(value); + keywordPlanBuilder_.setMessage(value); } return this; } /** *
-     * The shared set referenced in the query.
+     * The keyword plan referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.SharedSet shared_set = 27; + * .google.ads.googleads.v0.resources.KeywordPlan keyword_plan = 32; */ - public Builder setSharedSet( - com.google.ads.googleads.v0.resources.SharedSet.Builder builderForValue) { - if (sharedSetBuilder_ == null) { - sharedSet_ = builderForValue.build(); + public Builder setKeywordPlan( + com.google.ads.googleads.v0.resources.KeywordPlan.Builder builderForValue) { + if (keywordPlanBuilder_ == null) { + keywordPlan_ = builderForValue.build(); onChanged(); } else { - sharedSetBuilder_.setMessage(builderForValue.build()); + keywordPlanBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The shared set referenced in the query.
+     * The keyword plan referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.SharedSet shared_set = 27; + * .google.ads.googleads.v0.resources.KeywordPlan keyword_plan = 32; */ - public Builder mergeSharedSet(com.google.ads.googleads.v0.resources.SharedSet value) { - if (sharedSetBuilder_ == null) { - if (sharedSet_ != null) { - sharedSet_ = - com.google.ads.googleads.v0.resources.SharedSet.newBuilder(sharedSet_).mergeFrom(value).buildPartial(); + public Builder mergeKeywordPlan(com.google.ads.googleads.v0.resources.KeywordPlan value) { + if (keywordPlanBuilder_ == null) { + if (keywordPlan_ != null) { + keywordPlan_ = + com.google.ads.googleads.v0.resources.KeywordPlan.newBuilder(keywordPlan_).mergeFrom(value).buildPartial(); } else { - sharedSet_ = value; + keywordPlan_ = value; } onChanged(); } else { - sharedSetBuilder_.mergeFrom(value); + keywordPlanBuilder_.mergeFrom(value); } return this; } /** *
-     * The shared set referenced in the query.
+     * The keyword plan referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.SharedSet shared_set = 27; + * .google.ads.googleads.v0.resources.KeywordPlan keyword_plan = 32; */ - public Builder clearSharedSet() { - if (sharedSetBuilder_ == null) { - sharedSet_ = null; + public Builder clearKeywordPlan() { + if (keywordPlanBuilder_ == null) { + keywordPlan_ = null; onChanged(); } else { - sharedSet_ = null; - sharedSetBuilder_ = null; + keywordPlan_ = null; + keywordPlanBuilder_ = null; } return this; } /** *
-     * The shared set referenced in the query.
+     * The keyword plan referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.SharedSet shared_set = 27; + * .google.ads.googleads.v0.resources.KeywordPlan keyword_plan = 32; */ - public com.google.ads.googleads.v0.resources.SharedSet.Builder getSharedSetBuilder() { + public com.google.ads.googleads.v0.resources.KeywordPlan.Builder getKeywordPlanBuilder() { onChanged(); - return getSharedSetFieldBuilder().getBuilder(); + return getKeywordPlanFieldBuilder().getBuilder(); } /** *
-     * The shared set referenced in the query.
+     * The keyword plan referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.SharedSet shared_set = 27; + * .google.ads.googleads.v0.resources.KeywordPlan keyword_plan = 32; */ - public com.google.ads.googleads.v0.resources.SharedSetOrBuilder getSharedSetOrBuilder() { - if (sharedSetBuilder_ != null) { - return sharedSetBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.KeywordPlanOrBuilder getKeywordPlanOrBuilder() { + if (keywordPlanBuilder_ != null) { + return keywordPlanBuilder_.getMessageOrBuilder(); } else { - return sharedSet_ == null ? - com.google.ads.googleads.v0.resources.SharedSet.getDefaultInstance() : sharedSet_; + return keywordPlan_ == null ? + com.google.ads.googleads.v0.resources.KeywordPlan.getDefaultInstance() : keywordPlan_; } } /** *
-     * The shared set referenced in the query.
+     * The keyword plan referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.SharedSet shared_set = 27; + * .google.ads.googleads.v0.resources.KeywordPlan keyword_plan = 32; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.SharedSet, com.google.ads.googleads.v0.resources.SharedSet.Builder, com.google.ads.googleads.v0.resources.SharedSetOrBuilder> - getSharedSetFieldBuilder() { - if (sharedSetBuilder_ == null) { - sharedSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.SharedSet, com.google.ads.googleads.v0.resources.SharedSet.Builder, com.google.ads.googleads.v0.resources.SharedSetOrBuilder>( - getSharedSet(), + com.google.ads.googleads.v0.resources.KeywordPlan, com.google.ads.googleads.v0.resources.KeywordPlan.Builder, com.google.ads.googleads.v0.resources.KeywordPlanOrBuilder> + getKeywordPlanFieldBuilder() { + if (keywordPlanBuilder_ == null) { + keywordPlanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.KeywordPlan, com.google.ads.googleads.v0.resources.KeywordPlan.Builder, com.google.ads.googleads.v0.resources.KeywordPlanOrBuilder>( + getKeywordPlan(), getParentForChildren(), isClean()); - sharedSet_ = null; + keywordPlan_ = null; } - return sharedSetBuilder_; + return keywordPlanBuilder_; } - private com.google.ads.googleads.v0.resources.TopicView topicView_ = null; + private com.google.ads.googleads.v0.resources.KeywordPlanCampaign keywordPlanCampaign_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.TopicView, com.google.ads.googleads.v0.resources.TopicView.Builder, com.google.ads.googleads.v0.resources.TopicViewOrBuilder> topicViewBuilder_; + com.google.ads.googleads.v0.resources.KeywordPlanCampaign, com.google.ads.googleads.v0.resources.KeywordPlanCampaign.Builder, com.google.ads.googleads.v0.resources.KeywordPlanCampaignOrBuilder> keywordPlanCampaignBuilder_; /** *
-     * The topic view referenced in the query.
+     * The keyword plan campaign referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.TopicView topic_view = 44; + * .google.ads.googleads.v0.resources.KeywordPlanCampaign keyword_plan_campaign = 33; */ - public boolean hasTopicView() { - return topicViewBuilder_ != null || topicView_ != null; + public boolean hasKeywordPlanCampaign() { + return keywordPlanCampaignBuilder_ != null || keywordPlanCampaign_ != null; } /** *
-     * The topic view referenced in the query.
+     * The keyword plan campaign referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.TopicView topic_view = 44; + * .google.ads.googleads.v0.resources.KeywordPlanCampaign keyword_plan_campaign = 33; */ - public com.google.ads.googleads.v0.resources.TopicView getTopicView() { - if (topicViewBuilder_ == null) { - return topicView_ == null ? com.google.ads.googleads.v0.resources.TopicView.getDefaultInstance() : topicView_; + public com.google.ads.googleads.v0.resources.KeywordPlanCampaign getKeywordPlanCampaign() { + if (keywordPlanCampaignBuilder_ == null) { + return keywordPlanCampaign_ == null ? com.google.ads.googleads.v0.resources.KeywordPlanCampaign.getDefaultInstance() : keywordPlanCampaign_; } else { - return topicViewBuilder_.getMessage(); + return keywordPlanCampaignBuilder_.getMessage(); } } /** *
-     * The topic view referenced in the query.
+     * The keyword plan campaign referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.TopicView topic_view = 44; + * .google.ads.googleads.v0.resources.KeywordPlanCampaign keyword_plan_campaign = 33; */ - public Builder setTopicView(com.google.ads.googleads.v0.resources.TopicView value) { - if (topicViewBuilder_ == null) { + public Builder setKeywordPlanCampaign(com.google.ads.googleads.v0.resources.KeywordPlanCampaign value) { + if (keywordPlanCampaignBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - topicView_ = value; + keywordPlanCampaign_ = value; onChanged(); } else { - topicViewBuilder_.setMessage(value); + keywordPlanCampaignBuilder_.setMessage(value); } return this; } /** *
-     * The topic view referenced in the query.
+     * The keyword plan campaign referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.TopicView topic_view = 44; - */ - public Builder setTopicView( - com.google.ads.googleads.v0.resources.TopicView.Builder builderForValue) { - if (topicViewBuilder_ == null) { - topicView_ = builderForValue.build(); + * .google.ads.googleads.v0.resources.KeywordPlanCampaign keyword_plan_campaign = 33; + */ + public Builder setKeywordPlanCampaign( + com.google.ads.googleads.v0.resources.KeywordPlanCampaign.Builder builderForValue) { + if (keywordPlanCampaignBuilder_ == null) { + keywordPlanCampaign_ = builderForValue.build(); onChanged(); } else { - topicViewBuilder_.setMessage(builderForValue.build()); + keywordPlanCampaignBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The topic view referenced in the query.
+     * The keyword plan campaign referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.TopicView topic_view = 44; + * .google.ads.googleads.v0.resources.KeywordPlanCampaign keyword_plan_campaign = 33; */ - public Builder mergeTopicView(com.google.ads.googleads.v0.resources.TopicView value) { - if (topicViewBuilder_ == null) { - if (topicView_ != null) { - topicView_ = - com.google.ads.googleads.v0.resources.TopicView.newBuilder(topicView_).mergeFrom(value).buildPartial(); + public Builder mergeKeywordPlanCampaign(com.google.ads.googleads.v0.resources.KeywordPlanCampaign value) { + if (keywordPlanCampaignBuilder_ == null) { + if (keywordPlanCampaign_ != null) { + keywordPlanCampaign_ = + com.google.ads.googleads.v0.resources.KeywordPlanCampaign.newBuilder(keywordPlanCampaign_).mergeFrom(value).buildPartial(); } else { - topicView_ = value; + keywordPlanCampaign_ = value; } onChanged(); } else { - topicViewBuilder_.mergeFrom(value); + keywordPlanCampaignBuilder_.mergeFrom(value); } return this; } /** *
-     * The topic view referenced in the query.
+     * The keyword plan campaign referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.TopicView topic_view = 44; + * .google.ads.googleads.v0.resources.KeywordPlanCampaign keyword_plan_campaign = 33; */ - public Builder clearTopicView() { - if (topicViewBuilder_ == null) { - topicView_ = null; + public Builder clearKeywordPlanCampaign() { + if (keywordPlanCampaignBuilder_ == null) { + keywordPlanCampaign_ = null; onChanged(); } else { - topicView_ = null; - topicViewBuilder_ = null; + keywordPlanCampaign_ = null; + keywordPlanCampaignBuilder_ = null; } return this; } /** *
-     * The topic view referenced in the query.
+     * The keyword plan campaign referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.TopicView topic_view = 44; + * .google.ads.googleads.v0.resources.KeywordPlanCampaign keyword_plan_campaign = 33; */ - public com.google.ads.googleads.v0.resources.TopicView.Builder getTopicViewBuilder() { + public com.google.ads.googleads.v0.resources.KeywordPlanCampaign.Builder getKeywordPlanCampaignBuilder() { onChanged(); - return getTopicViewFieldBuilder().getBuilder(); + return getKeywordPlanCampaignFieldBuilder().getBuilder(); } /** *
-     * The topic view referenced in the query.
+     * The keyword plan campaign referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.TopicView topic_view = 44; + * .google.ads.googleads.v0.resources.KeywordPlanCampaign keyword_plan_campaign = 33; */ - public com.google.ads.googleads.v0.resources.TopicViewOrBuilder getTopicViewOrBuilder() { - if (topicViewBuilder_ != null) { - return topicViewBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.KeywordPlanCampaignOrBuilder getKeywordPlanCampaignOrBuilder() { + if (keywordPlanCampaignBuilder_ != null) { + return keywordPlanCampaignBuilder_.getMessageOrBuilder(); } else { - return topicView_ == null ? - com.google.ads.googleads.v0.resources.TopicView.getDefaultInstance() : topicView_; + return keywordPlanCampaign_ == null ? + com.google.ads.googleads.v0.resources.KeywordPlanCampaign.getDefaultInstance() : keywordPlanCampaign_; } } /** *
-     * The topic view referenced in the query.
+     * The keyword plan campaign referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.TopicView topic_view = 44; + * .google.ads.googleads.v0.resources.KeywordPlanCampaign keyword_plan_campaign = 33; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.TopicView, com.google.ads.googleads.v0.resources.TopicView.Builder, com.google.ads.googleads.v0.resources.TopicViewOrBuilder> - getTopicViewFieldBuilder() { - if (topicViewBuilder_ == null) { - topicViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.TopicView, com.google.ads.googleads.v0.resources.TopicView.Builder, com.google.ads.googleads.v0.resources.TopicViewOrBuilder>( - getTopicView(), + com.google.ads.googleads.v0.resources.KeywordPlanCampaign, com.google.ads.googleads.v0.resources.KeywordPlanCampaign.Builder, com.google.ads.googleads.v0.resources.KeywordPlanCampaignOrBuilder> + getKeywordPlanCampaignFieldBuilder() { + if (keywordPlanCampaignBuilder_ == null) { + keywordPlanCampaignBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.KeywordPlanCampaign, com.google.ads.googleads.v0.resources.KeywordPlanCampaign.Builder, com.google.ads.googleads.v0.resources.KeywordPlanCampaignOrBuilder>( + getKeywordPlanCampaign(), getParentForChildren(), isClean()); - topicView_ = null; + keywordPlanCampaign_ = null; } - return topicViewBuilder_; + return keywordPlanCampaignBuilder_; } - private com.google.ads.googleads.v0.resources.UserInterest userInterest_ = null; + private com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword keywordPlanNegativeKeyword_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.UserInterest, com.google.ads.googleads.v0.resources.UserInterest.Builder, com.google.ads.googleads.v0.resources.UserInterestOrBuilder> userInterestBuilder_; + com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword, com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword.Builder, com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeywordOrBuilder> keywordPlanNegativeKeywordBuilder_; /** *
-     * The user interest referenced in the query.
+     * The keyword plan negative keyword referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.UserInterest user_interest = 59; + * .google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword keyword_plan_negative_keyword = 34; */ - public boolean hasUserInterest() { - return userInterestBuilder_ != null || userInterest_ != null; + public boolean hasKeywordPlanNegativeKeyword() { + return keywordPlanNegativeKeywordBuilder_ != null || keywordPlanNegativeKeyword_ != null; } /** *
-     * The user interest referenced in the query.
+     * The keyword plan negative keyword referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.UserInterest user_interest = 59; + * .google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword keyword_plan_negative_keyword = 34; */ - public com.google.ads.googleads.v0.resources.UserInterest getUserInterest() { - if (userInterestBuilder_ == null) { - return userInterest_ == null ? com.google.ads.googleads.v0.resources.UserInterest.getDefaultInstance() : userInterest_; + public com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword getKeywordPlanNegativeKeyword() { + if (keywordPlanNegativeKeywordBuilder_ == null) { + return keywordPlanNegativeKeyword_ == null ? com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword.getDefaultInstance() : keywordPlanNegativeKeyword_; } else { - return userInterestBuilder_.getMessage(); + return keywordPlanNegativeKeywordBuilder_.getMessage(); } } /** *
-     * The user interest referenced in the query.
+     * The keyword plan negative keyword referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.UserInterest user_interest = 59; + * .google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword keyword_plan_negative_keyword = 34; */ - public Builder setUserInterest(com.google.ads.googleads.v0.resources.UserInterest value) { - if (userInterestBuilder_ == null) { + public Builder setKeywordPlanNegativeKeyword(com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword value) { + if (keywordPlanNegativeKeywordBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - userInterest_ = value; + keywordPlanNegativeKeyword_ = value; onChanged(); } else { - userInterestBuilder_.setMessage(value); + keywordPlanNegativeKeywordBuilder_.setMessage(value); } return this; } /** *
-     * The user interest referenced in the query.
+     * The keyword plan negative keyword referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.UserInterest user_interest = 59; + * .google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword keyword_plan_negative_keyword = 34; */ - public Builder setUserInterest( - com.google.ads.googleads.v0.resources.UserInterest.Builder builderForValue) { - if (userInterestBuilder_ == null) { - userInterest_ = builderForValue.build(); + public Builder setKeywordPlanNegativeKeyword( + com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword.Builder builderForValue) { + if (keywordPlanNegativeKeywordBuilder_ == null) { + keywordPlanNegativeKeyword_ = builderForValue.build(); onChanged(); } else { - userInterestBuilder_.setMessage(builderForValue.build()); + keywordPlanNegativeKeywordBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The user interest referenced in the query.
+     * The keyword plan negative keyword referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.UserInterest user_interest = 59; + * .google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword keyword_plan_negative_keyword = 34; */ - public Builder mergeUserInterest(com.google.ads.googleads.v0.resources.UserInterest value) { - if (userInterestBuilder_ == null) { - if (userInterest_ != null) { - userInterest_ = - com.google.ads.googleads.v0.resources.UserInterest.newBuilder(userInterest_).mergeFrom(value).buildPartial(); + public Builder mergeKeywordPlanNegativeKeyword(com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword value) { + if (keywordPlanNegativeKeywordBuilder_ == null) { + if (keywordPlanNegativeKeyword_ != null) { + keywordPlanNegativeKeyword_ = + com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword.newBuilder(keywordPlanNegativeKeyword_).mergeFrom(value).buildPartial(); } else { - userInterest_ = value; + keywordPlanNegativeKeyword_ = value; } onChanged(); } else { - userInterestBuilder_.mergeFrom(value); + keywordPlanNegativeKeywordBuilder_.mergeFrom(value); } return this; } /** *
-     * The user interest referenced in the query.
+     * The keyword plan negative keyword referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.UserInterest user_interest = 59; + * .google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword keyword_plan_negative_keyword = 34; */ - public Builder clearUserInterest() { - if (userInterestBuilder_ == null) { - userInterest_ = null; + public Builder clearKeywordPlanNegativeKeyword() { + if (keywordPlanNegativeKeywordBuilder_ == null) { + keywordPlanNegativeKeyword_ = null; onChanged(); } else { - userInterest_ = null; - userInterestBuilder_ = null; + keywordPlanNegativeKeyword_ = null; + keywordPlanNegativeKeywordBuilder_ = null; } return this; } /** *
-     * The user interest referenced in the query.
+     * The keyword plan negative keyword referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.UserInterest user_interest = 59; + * .google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword keyword_plan_negative_keyword = 34; */ - public com.google.ads.googleads.v0.resources.UserInterest.Builder getUserInterestBuilder() { + public com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword.Builder getKeywordPlanNegativeKeywordBuilder() { onChanged(); - return getUserInterestFieldBuilder().getBuilder(); + return getKeywordPlanNegativeKeywordFieldBuilder().getBuilder(); } /** *
-     * The user interest referenced in the query.
+     * The keyword plan negative keyword referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.UserInterest user_interest = 59; + * .google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword keyword_plan_negative_keyword = 34; */ - public com.google.ads.googleads.v0.resources.UserInterestOrBuilder getUserInterestOrBuilder() { - if (userInterestBuilder_ != null) { - return userInterestBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeywordOrBuilder getKeywordPlanNegativeKeywordOrBuilder() { + if (keywordPlanNegativeKeywordBuilder_ != null) { + return keywordPlanNegativeKeywordBuilder_.getMessageOrBuilder(); } else { - return userInterest_ == null ? - com.google.ads.googleads.v0.resources.UserInterest.getDefaultInstance() : userInterest_; + return keywordPlanNegativeKeyword_ == null ? + com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword.getDefaultInstance() : keywordPlanNegativeKeyword_; } } /** *
-     * The user interest referenced in the query.
+     * The keyword plan negative keyword referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.UserInterest user_interest = 59; + * .google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword keyword_plan_negative_keyword = 34; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.UserInterest, com.google.ads.googleads.v0.resources.UserInterest.Builder, com.google.ads.googleads.v0.resources.UserInterestOrBuilder> - getUserInterestFieldBuilder() { - if (userInterestBuilder_ == null) { - userInterestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.UserInterest, com.google.ads.googleads.v0.resources.UserInterest.Builder, com.google.ads.googleads.v0.resources.UserInterestOrBuilder>( - getUserInterest(), + com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword, com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword.Builder, com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeywordOrBuilder> + getKeywordPlanNegativeKeywordFieldBuilder() { + if (keywordPlanNegativeKeywordBuilder_ == null) { + keywordPlanNegativeKeywordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword, com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeyword.Builder, com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeywordOrBuilder>( + getKeywordPlanNegativeKeyword(), getParentForChildren(), isClean()); - userInterest_ = null; + keywordPlanNegativeKeyword_ = null; } - return userInterestBuilder_; + return keywordPlanNegativeKeywordBuilder_; } - private com.google.ads.googleads.v0.resources.UserList userList_ = null; + private com.google.ads.googleads.v0.resources.KeywordPlanAdGroup keywordPlanAdGroup_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.UserList, com.google.ads.googleads.v0.resources.UserList.Builder, com.google.ads.googleads.v0.resources.UserListOrBuilder> userListBuilder_; + com.google.ads.googleads.v0.resources.KeywordPlanAdGroup, com.google.ads.googleads.v0.resources.KeywordPlanAdGroup.Builder, com.google.ads.googleads.v0.resources.KeywordPlanAdGroupOrBuilder> keywordPlanAdGroupBuilder_; /** *
-     * The user list referenced in the query.
+     * The keyword plan ad group referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.UserList user_list = 38; + * .google.ads.googleads.v0.resources.KeywordPlanAdGroup keyword_plan_ad_group = 35; */ - public boolean hasUserList() { - return userListBuilder_ != null || userList_ != null; + public boolean hasKeywordPlanAdGroup() { + return keywordPlanAdGroupBuilder_ != null || keywordPlanAdGroup_ != null; } /** *
-     * The user list referenced in the query.
+     * The keyword plan ad group referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.UserList user_list = 38; + * .google.ads.googleads.v0.resources.KeywordPlanAdGroup keyword_plan_ad_group = 35; */ - public com.google.ads.googleads.v0.resources.UserList getUserList() { - if (userListBuilder_ == null) { - return userList_ == null ? com.google.ads.googleads.v0.resources.UserList.getDefaultInstance() : userList_; + public com.google.ads.googleads.v0.resources.KeywordPlanAdGroup getKeywordPlanAdGroup() { + if (keywordPlanAdGroupBuilder_ == null) { + return keywordPlanAdGroup_ == null ? com.google.ads.googleads.v0.resources.KeywordPlanAdGroup.getDefaultInstance() : keywordPlanAdGroup_; } else { - return userListBuilder_.getMessage(); + return keywordPlanAdGroupBuilder_.getMessage(); } } /** *
-     * The user list referenced in the query.
+     * The keyword plan ad group referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.UserList user_list = 38; + * .google.ads.googleads.v0.resources.KeywordPlanAdGroup keyword_plan_ad_group = 35; */ - public Builder setUserList(com.google.ads.googleads.v0.resources.UserList value) { - if (userListBuilder_ == null) { + public Builder setKeywordPlanAdGroup(com.google.ads.googleads.v0.resources.KeywordPlanAdGroup value) { + if (keywordPlanAdGroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - userList_ = value; + keywordPlanAdGroup_ = value; onChanged(); } else { - userListBuilder_.setMessage(value); + keywordPlanAdGroupBuilder_.setMessage(value); } return this; } /** *
-     * The user list referenced in the query.
+     * The keyword plan ad group referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.UserList user_list = 38; + * .google.ads.googleads.v0.resources.KeywordPlanAdGroup keyword_plan_ad_group = 35; */ - public Builder setUserList( - com.google.ads.googleads.v0.resources.UserList.Builder builderForValue) { - if (userListBuilder_ == null) { - userList_ = builderForValue.build(); + public Builder setKeywordPlanAdGroup( + com.google.ads.googleads.v0.resources.KeywordPlanAdGroup.Builder builderForValue) { + if (keywordPlanAdGroupBuilder_ == null) { + keywordPlanAdGroup_ = builderForValue.build(); onChanged(); } else { - userListBuilder_.setMessage(builderForValue.build()); + keywordPlanAdGroupBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The user list referenced in the query.
+     * The keyword plan ad group referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.UserList user_list = 38; + * .google.ads.googleads.v0.resources.KeywordPlanAdGroup keyword_plan_ad_group = 35; */ - public Builder mergeUserList(com.google.ads.googleads.v0.resources.UserList value) { - if (userListBuilder_ == null) { - if (userList_ != null) { - userList_ = - com.google.ads.googleads.v0.resources.UserList.newBuilder(userList_).mergeFrom(value).buildPartial(); + public Builder mergeKeywordPlanAdGroup(com.google.ads.googleads.v0.resources.KeywordPlanAdGroup value) { + if (keywordPlanAdGroupBuilder_ == null) { + if (keywordPlanAdGroup_ != null) { + keywordPlanAdGroup_ = + com.google.ads.googleads.v0.resources.KeywordPlanAdGroup.newBuilder(keywordPlanAdGroup_).mergeFrom(value).buildPartial(); } else { - userList_ = value; + keywordPlanAdGroup_ = value; } onChanged(); } else { - userListBuilder_.mergeFrom(value); + keywordPlanAdGroupBuilder_.mergeFrom(value); } return this; } /** *
-     * The user list referenced in the query.
+     * The keyword plan ad group referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.UserList user_list = 38; + * .google.ads.googleads.v0.resources.KeywordPlanAdGroup keyword_plan_ad_group = 35; */ - public Builder clearUserList() { - if (userListBuilder_ == null) { - userList_ = null; + public Builder clearKeywordPlanAdGroup() { + if (keywordPlanAdGroupBuilder_ == null) { + keywordPlanAdGroup_ = null; onChanged(); } else { - userList_ = null; - userListBuilder_ = null; + keywordPlanAdGroup_ = null; + keywordPlanAdGroupBuilder_ = null; } return this; } /** *
-     * The user list referenced in the query.
+     * The keyword plan ad group referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.UserList user_list = 38; + * .google.ads.googleads.v0.resources.KeywordPlanAdGroup keyword_plan_ad_group = 35; */ - public com.google.ads.googleads.v0.resources.UserList.Builder getUserListBuilder() { + public com.google.ads.googleads.v0.resources.KeywordPlanAdGroup.Builder getKeywordPlanAdGroupBuilder() { onChanged(); - return getUserListFieldBuilder().getBuilder(); + return getKeywordPlanAdGroupFieldBuilder().getBuilder(); } /** *
-     * The user list referenced in the query.
+     * The keyword plan ad group referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.UserList user_list = 38; + * .google.ads.googleads.v0.resources.KeywordPlanAdGroup keyword_plan_ad_group = 35; */ - public com.google.ads.googleads.v0.resources.UserListOrBuilder getUserListOrBuilder() { - if (userListBuilder_ != null) { - return userListBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.KeywordPlanAdGroupOrBuilder getKeywordPlanAdGroupOrBuilder() { + if (keywordPlanAdGroupBuilder_ != null) { + return keywordPlanAdGroupBuilder_.getMessageOrBuilder(); } else { - return userList_ == null ? - com.google.ads.googleads.v0.resources.UserList.getDefaultInstance() : userList_; + return keywordPlanAdGroup_ == null ? + com.google.ads.googleads.v0.resources.KeywordPlanAdGroup.getDefaultInstance() : keywordPlanAdGroup_; } } /** *
-     * The user list referenced in the query.
+     * The keyword plan ad group referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.UserList user_list = 38; + * .google.ads.googleads.v0.resources.KeywordPlanAdGroup keyword_plan_ad_group = 35; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.UserList, com.google.ads.googleads.v0.resources.UserList.Builder, com.google.ads.googleads.v0.resources.UserListOrBuilder> - getUserListFieldBuilder() { - if (userListBuilder_ == null) { - userListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.UserList, com.google.ads.googleads.v0.resources.UserList.Builder, com.google.ads.googleads.v0.resources.UserListOrBuilder>( - getUserList(), + com.google.ads.googleads.v0.resources.KeywordPlanAdGroup, com.google.ads.googleads.v0.resources.KeywordPlanAdGroup.Builder, com.google.ads.googleads.v0.resources.KeywordPlanAdGroupOrBuilder> + getKeywordPlanAdGroupFieldBuilder() { + if (keywordPlanAdGroupBuilder_ == null) { + keywordPlanAdGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.KeywordPlanAdGroup, com.google.ads.googleads.v0.resources.KeywordPlanAdGroup.Builder, com.google.ads.googleads.v0.resources.KeywordPlanAdGroupOrBuilder>( + getKeywordPlanAdGroup(), getParentForChildren(), isClean()); - userList_ = null; + keywordPlanAdGroup_ = null; } - return userListBuilder_; + return keywordPlanAdGroupBuilder_; } - private com.google.ads.googleads.v0.resources.TopicConstant topicConstant_ = null; + private com.google.ads.googleads.v0.resources.KeywordPlanKeyword keywordPlanKeyword_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.TopicConstant, com.google.ads.googleads.v0.resources.TopicConstant.Builder, com.google.ads.googleads.v0.resources.TopicConstantOrBuilder> topicConstantBuilder_; + com.google.ads.googleads.v0.resources.KeywordPlanKeyword, com.google.ads.googleads.v0.resources.KeywordPlanKeyword.Builder, com.google.ads.googleads.v0.resources.KeywordPlanKeywordOrBuilder> keywordPlanKeywordBuilder_; /** *
-     * The topic constant referenced in the query.
+     * The keyword plan keyword referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.TopicConstant topic_constant = 31; + * .google.ads.googleads.v0.resources.KeywordPlanKeyword keyword_plan_keyword = 36; */ - public boolean hasTopicConstant() { - return topicConstantBuilder_ != null || topicConstant_ != null; + public boolean hasKeywordPlanKeyword() { + return keywordPlanKeywordBuilder_ != null || keywordPlanKeyword_ != null; } /** *
-     * The topic constant referenced in the query.
+     * The keyword plan keyword referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.TopicConstant topic_constant = 31; + * .google.ads.googleads.v0.resources.KeywordPlanKeyword keyword_plan_keyword = 36; */ - public com.google.ads.googleads.v0.resources.TopicConstant getTopicConstant() { - if (topicConstantBuilder_ == null) { - return topicConstant_ == null ? com.google.ads.googleads.v0.resources.TopicConstant.getDefaultInstance() : topicConstant_; + public com.google.ads.googleads.v0.resources.KeywordPlanKeyword getKeywordPlanKeyword() { + if (keywordPlanKeywordBuilder_ == null) { + return keywordPlanKeyword_ == null ? com.google.ads.googleads.v0.resources.KeywordPlanKeyword.getDefaultInstance() : keywordPlanKeyword_; } else { - return topicConstantBuilder_.getMessage(); + return keywordPlanKeywordBuilder_.getMessage(); } } /** *
-     * The topic constant referenced in the query.
+     * The keyword plan keyword referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.TopicConstant topic_constant = 31; + * .google.ads.googleads.v0.resources.KeywordPlanKeyword keyword_plan_keyword = 36; */ - public Builder setTopicConstant(com.google.ads.googleads.v0.resources.TopicConstant value) { - if (topicConstantBuilder_ == null) { + public Builder setKeywordPlanKeyword(com.google.ads.googleads.v0.resources.KeywordPlanKeyword value) { + if (keywordPlanKeywordBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - topicConstant_ = value; + keywordPlanKeyword_ = value; onChanged(); } else { - topicConstantBuilder_.setMessage(value); + keywordPlanKeywordBuilder_.setMessage(value); } return this; } /** *
-     * The topic constant referenced in the query.
+     * The keyword plan keyword referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.TopicConstant topic_constant = 31; + * .google.ads.googleads.v0.resources.KeywordPlanKeyword keyword_plan_keyword = 36; */ - public Builder setTopicConstant( - com.google.ads.googleads.v0.resources.TopicConstant.Builder builderForValue) { - if (topicConstantBuilder_ == null) { - topicConstant_ = builderForValue.build(); + public Builder setKeywordPlanKeyword( + com.google.ads.googleads.v0.resources.KeywordPlanKeyword.Builder builderForValue) { + if (keywordPlanKeywordBuilder_ == null) { + keywordPlanKeyword_ = builderForValue.build(); onChanged(); } else { - topicConstantBuilder_.setMessage(builderForValue.build()); + keywordPlanKeywordBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The topic constant referenced in the query.
+     * The keyword plan keyword referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.TopicConstant topic_constant = 31; + * .google.ads.googleads.v0.resources.KeywordPlanKeyword keyword_plan_keyword = 36; */ - public Builder mergeTopicConstant(com.google.ads.googleads.v0.resources.TopicConstant value) { - if (topicConstantBuilder_ == null) { - if (topicConstant_ != null) { - topicConstant_ = - com.google.ads.googleads.v0.resources.TopicConstant.newBuilder(topicConstant_).mergeFrom(value).buildPartial(); + public Builder mergeKeywordPlanKeyword(com.google.ads.googleads.v0.resources.KeywordPlanKeyword value) { + if (keywordPlanKeywordBuilder_ == null) { + if (keywordPlanKeyword_ != null) { + keywordPlanKeyword_ = + com.google.ads.googleads.v0.resources.KeywordPlanKeyword.newBuilder(keywordPlanKeyword_).mergeFrom(value).buildPartial(); } else { - topicConstant_ = value; + keywordPlanKeyword_ = value; } onChanged(); } else { - topicConstantBuilder_.mergeFrom(value); + keywordPlanKeywordBuilder_.mergeFrom(value); } return this; } /** *
-     * The topic constant referenced in the query.
+     * The keyword plan keyword referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.TopicConstant topic_constant = 31; + * .google.ads.googleads.v0.resources.KeywordPlanKeyword keyword_plan_keyword = 36; */ - public Builder clearTopicConstant() { - if (topicConstantBuilder_ == null) { - topicConstant_ = null; + public Builder clearKeywordPlanKeyword() { + if (keywordPlanKeywordBuilder_ == null) { + keywordPlanKeyword_ = null; onChanged(); } else { - topicConstant_ = null; - topicConstantBuilder_ = null; + keywordPlanKeyword_ = null; + keywordPlanKeywordBuilder_ = null; } return this; } /** *
-     * The topic constant referenced in the query.
+     * The keyword plan keyword referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.TopicConstant topic_constant = 31; + * .google.ads.googleads.v0.resources.KeywordPlanKeyword keyword_plan_keyword = 36; */ - public com.google.ads.googleads.v0.resources.TopicConstant.Builder getTopicConstantBuilder() { + public com.google.ads.googleads.v0.resources.KeywordPlanKeyword.Builder getKeywordPlanKeywordBuilder() { onChanged(); - return getTopicConstantFieldBuilder().getBuilder(); + return getKeywordPlanKeywordFieldBuilder().getBuilder(); } /** *
-     * The topic constant referenced in the query.
+     * The keyword plan keyword referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.TopicConstant topic_constant = 31; + * .google.ads.googleads.v0.resources.KeywordPlanKeyword keyword_plan_keyword = 36; */ - public com.google.ads.googleads.v0.resources.TopicConstantOrBuilder getTopicConstantOrBuilder() { - if (topicConstantBuilder_ != null) { - return topicConstantBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.KeywordPlanKeywordOrBuilder getKeywordPlanKeywordOrBuilder() { + if (keywordPlanKeywordBuilder_ != null) { + return keywordPlanKeywordBuilder_.getMessageOrBuilder(); } else { - return topicConstant_ == null ? - com.google.ads.googleads.v0.resources.TopicConstant.getDefaultInstance() : topicConstant_; + return keywordPlanKeyword_ == null ? + com.google.ads.googleads.v0.resources.KeywordPlanKeyword.getDefaultInstance() : keywordPlanKeyword_; } } /** *
-     * The topic constant referenced in the query.
+     * The keyword plan keyword referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.TopicConstant topic_constant = 31; + * .google.ads.googleads.v0.resources.KeywordPlanKeyword keyword_plan_keyword = 36; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.TopicConstant, com.google.ads.googleads.v0.resources.TopicConstant.Builder, com.google.ads.googleads.v0.resources.TopicConstantOrBuilder> - getTopicConstantFieldBuilder() { - if (topicConstantBuilder_ == null) { - topicConstantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.TopicConstant, com.google.ads.googleads.v0.resources.TopicConstant.Builder, com.google.ads.googleads.v0.resources.TopicConstantOrBuilder>( - getTopicConstant(), + com.google.ads.googleads.v0.resources.KeywordPlanKeyword, com.google.ads.googleads.v0.resources.KeywordPlanKeyword.Builder, com.google.ads.googleads.v0.resources.KeywordPlanKeywordOrBuilder> + getKeywordPlanKeywordFieldBuilder() { + if (keywordPlanKeywordBuilder_ == null) { + keywordPlanKeywordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.KeywordPlanKeyword, com.google.ads.googleads.v0.resources.KeywordPlanKeyword.Builder, com.google.ads.googleads.v0.resources.KeywordPlanKeywordOrBuilder>( + getKeywordPlanKeyword(), getParentForChildren(), isClean()); - topicConstant_ = null; + keywordPlanKeyword_ = null; } - return topicConstantBuilder_; + return keywordPlanKeywordBuilder_; } - private com.google.ads.googleads.v0.resources.Video video_ = null; + private com.google.ads.googleads.v0.resources.LanguageConstant languageConstant_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.Video, com.google.ads.googleads.v0.resources.Video.Builder, com.google.ads.googleads.v0.resources.VideoOrBuilder> videoBuilder_; + com.google.ads.googleads.v0.resources.LanguageConstant, com.google.ads.googleads.v0.resources.LanguageConstant.Builder, com.google.ads.googleads.v0.resources.LanguageConstantOrBuilder> languageConstantBuilder_; /** *
-     * The video referenced in the query.
+     * The language constant referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Video video = 39; + * .google.ads.googleads.v0.resources.LanguageConstant language_constant = 55; */ - public boolean hasVideo() { - return videoBuilder_ != null || video_ != null; + public boolean hasLanguageConstant() { + return languageConstantBuilder_ != null || languageConstant_ != null; } /** *
-     * The video referenced in the query.
+     * The language constant referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Video video = 39; + * .google.ads.googleads.v0.resources.LanguageConstant language_constant = 55; */ - public com.google.ads.googleads.v0.resources.Video getVideo() { - if (videoBuilder_ == null) { - return video_ == null ? com.google.ads.googleads.v0.resources.Video.getDefaultInstance() : video_; + public com.google.ads.googleads.v0.resources.LanguageConstant getLanguageConstant() { + if (languageConstantBuilder_ == null) { + return languageConstant_ == null ? com.google.ads.googleads.v0.resources.LanguageConstant.getDefaultInstance() : languageConstant_; } else { - return videoBuilder_.getMessage(); + return languageConstantBuilder_.getMessage(); } } /** *
-     * The video referenced in the query.
+     * The language constant referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Video video = 39; + * .google.ads.googleads.v0.resources.LanguageConstant language_constant = 55; */ - public Builder setVideo(com.google.ads.googleads.v0.resources.Video value) { - if (videoBuilder_ == null) { + public Builder setLanguageConstant(com.google.ads.googleads.v0.resources.LanguageConstant value) { + if (languageConstantBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - video_ = value; + languageConstant_ = value; onChanged(); } else { - videoBuilder_.setMessage(value); + languageConstantBuilder_.setMessage(value); } return this; } /** *
-     * The video referenced in the query.
+     * The language constant referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Video video = 39; + * .google.ads.googleads.v0.resources.LanguageConstant language_constant = 55; */ - public Builder setVideo( - com.google.ads.googleads.v0.resources.Video.Builder builderForValue) { - if (videoBuilder_ == null) { - video_ = builderForValue.build(); + public Builder setLanguageConstant( + com.google.ads.googleads.v0.resources.LanguageConstant.Builder builderForValue) { + if (languageConstantBuilder_ == null) { + languageConstant_ = builderForValue.build(); onChanged(); } else { - videoBuilder_.setMessage(builderForValue.build()); + languageConstantBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The video referenced in the query.
+     * The language constant referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Video video = 39; - */ - public Builder mergeVideo(com.google.ads.googleads.v0.resources.Video value) { - if (videoBuilder_ == null) { - if (video_ != null) { - video_ = - com.google.ads.googleads.v0.resources.Video.newBuilder(video_).mergeFrom(value).buildPartial(); + * .google.ads.googleads.v0.resources.LanguageConstant language_constant = 55; + */ + public Builder mergeLanguageConstant(com.google.ads.googleads.v0.resources.LanguageConstant value) { + if (languageConstantBuilder_ == null) { + if (languageConstant_ != null) { + languageConstant_ = + com.google.ads.googleads.v0.resources.LanguageConstant.newBuilder(languageConstant_).mergeFrom(value).buildPartial(); } else { - video_ = value; + languageConstant_ = value; } onChanged(); } else { - videoBuilder_.mergeFrom(value); + languageConstantBuilder_.mergeFrom(value); } return this; } /** *
-     * The video referenced in the query.
+     * The language constant referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Video video = 39; + * .google.ads.googleads.v0.resources.LanguageConstant language_constant = 55; */ - public Builder clearVideo() { - if (videoBuilder_ == null) { - video_ = null; + public Builder clearLanguageConstant() { + if (languageConstantBuilder_ == null) { + languageConstant_ = null; onChanged(); } else { - video_ = null; - videoBuilder_ = null; + languageConstant_ = null; + languageConstantBuilder_ = null; } return this; } /** *
-     * The video referenced in the query.
+     * The language constant referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Video video = 39; + * .google.ads.googleads.v0.resources.LanguageConstant language_constant = 55; */ - public com.google.ads.googleads.v0.resources.Video.Builder getVideoBuilder() { + public com.google.ads.googleads.v0.resources.LanguageConstant.Builder getLanguageConstantBuilder() { onChanged(); - return getVideoFieldBuilder().getBuilder(); + return getLanguageConstantFieldBuilder().getBuilder(); } /** *
-     * The video referenced in the query.
+     * The language constant referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Video video = 39; + * .google.ads.googleads.v0.resources.LanguageConstant language_constant = 55; */ - public com.google.ads.googleads.v0.resources.VideoOrBuilder getVideoOrBuilder() { - if (videoBuilder_ != null) { - return videoBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.LanguageConstantOrBuilder getLanguageConstantOrBuilder() { + if (languageConstantBuilder_ != null) { + return languageConstantBuilder_.getMessageOrBuilder(); } else { - return video_ == null ? - com.google.ads.googleads.v0.resources.Video.getDefaultInstance() : video_; + return languageConstant_ == null ? + com.google.ads.googleads.v0.resources.LanguageConstant.getDefaultInstance() : languageConstant_; } } /** *
-     * The video referenced in the query.
+     * The language constant referenced in the query.
      * 
* - * .google.ads.googleads.v0.resources.Video video = 39; + * .google.ads.googleads.v0.resources.LanguageConstant language_constant = 55; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.Video, com.google.ads.googleads.v0.resources.Video.Builder, com.google.ads.googleads.v0.resources.VideoOrBuilder> - getVideoFieldBuilder() { - if (videoBuilder_ == null) { - videoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.resources.Video, com.google.ads.googleads.v0.resources.Video.Builder, com.google.ads.googleads.v0.resources.VideoOrBuilder>( - getVideo(), + com.google.ads.googleads.v0.resources.LanguageConstant, com.google.ads.googleads.v0.resources.LanguageConstant.Builder, com.google.ads.googleads.v0.resources.LanguageConstantOrBuilder> + getLanguageConstantFieldBuilder() { + if (languageConstantBuilder_ == null) { + languageConstantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.LanguageConstant, com.google.ads.googleads.v0.resources.LanguageConstant.Builder, com.google.ads.googleads.v0.resources.LanguageConstantOrBuilder>( + getLanguageConstant(), getParentForChildren(), isClean()); - video_ = null; + languageConstant_ = null; } - return videoBuilder_; + return languageConstantBuilder_; } - private com.google.ads.googleads.v0.common.Metrics metrics_ = null; + private com.google.ads.googleads.v0.resources.ManagedPlacementView managedPlacementView_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.common.Metrics, com.google.ads.googleads.v0.common.Metrics.Builder, com.google.ads.googleads.v0.common.MetricsOrBuilder> metricsBuilder_; + com.google.ads.googleads.v0.resources.ManagedPlacementView, com.google.ads.googleads.v0.resources.ManagedPlacementView.Builder, com.google.ads.googleads.v0.resources.ManagedPlacementViewOrBuilder> managedPlacementViewBuilder_; /** *
-     * The metrics.
+     * The managed placement view referenced in the query.
      * 
* - * .google.ads.googleads.v0.common.Metrics metrics = 4; + * .google.ads.googleads.v0.resources.ManagedPlacementView managed_placement_view = 53; */ - public boolean hasMetrics() { - return metricsBuilder_ != null || metrics_ != null; + public boolean hasManagedPlacementView() { + return managedPlacementViewBuilder_ != null || managedPlacementView_ != null; } /** *
-     * The metrics.
+     * The managed placement view referenced in the query.
      * 
* - * .google.ads.googleads.v0.common.Metrics metrics = 4; + * .google.ads.googleads.v0.resources.ManagedPlacementView managed_placement_view = 53; */ - public com.google.ads.googleads.v0.common.Metrics getMetrics() { - if (metricsBuilder_ == null) { - return metrics_ == null ? com.google.ads.googleads.v0.common.Metrics.getDefaultInstance() : metrics_; + public com.google.ads.googleads.v0.resources.ManagedPlacementView getManagedPlacementView() { + if (managedPlacementViewBuilder_ == null) { + return managedPlacementView_ == null ? com.google.ads.googleads.v0.resources.ManagedPlacementView.getDefaultInstance() : managedPlacementView_; } else { - return metricsBuilder_.getMessage(); + return managedPlacementViewBuilder_.getMessage(); } } /** *
-     * The metrics.
+     * The managed placement view referenced in the query.
      * 
* - * .google.ads.googleads.v0.common.Metrics metrics = 4; + * .google.ads.googleads.v0.resources.ManagedPlacementView managed_placement_view = 53; */ - public Builder setMetrics(com.google.ads.googleads.v0.common.Metrics value) { - if (metricsBuilder_ == null) { + public Builder setManagedPlacementView(com.google.ads.googleads.v0.resources.ManagedPlacementView value) { + if (managedPlacementViewBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - metrics_ = value; + managedPlacementView_ = value; onChanged(); } else { - metricsBuilder_.setMessage(value); + managedPlacementViewBuilder_.setMessage(value); } return this; } /** *
-     * The metrics.
+     * The managed placement view referenced in the query.
      * 
* - * .google.ads.googleads.v0.common.Metrics metrics = 4; + * .google.ads.googleads.v0.resources.ManagedPlacementView managed_placement_view = 53; */ - public Builder setMetrics( - com.google.ads.googleads.v0.common.Metrics.Builder builderForValue) { - if (metricsBuilder_ == null) { - metrics_ = builderForValue.build(); + public Builder setManagedPlacementView( + com.google.ads.googleads.v0.resources.ManagedPlacementView.Builder builderForValue) { + if (managedPlacementViewBuilder_ == null) { + managedPlacementView_ = builderForValue.build(); onChanged(); } else { - metricsBuilder_.setMessage(builderForValue.build()); + managedPlacementViewBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * The metrics.
+     * The managed placement view referenced in the query.
      * 
* - * .google.ads.googleads.v0.common.Metrics metrics = 4; + * .google.ads.googleads.v0.resources.ManagedPlacementView managed_placement_view = 53; */ - public Builder mergeMetrics(com.google.ads.googleads.v0.common.Metrics value) { - if (metricsBuilder_ == null) { - if (metrics_ != null) { - metrics_ = - com.google.ads.googleads.v0.common.Metrics.newBuilder(metrics_).mergeFrom(value).buildPartial(); + public Builder mergeManagedPlacementView(com.google.ads.googleads.v0.resources.ManagedPlacementView value) { + if (managedPlacementViewBuilder_ == null) { + if (managedPlacementView_ != null) { + managedPlacementView_ = + com.google.ads.googleads.v0.resources.ManagedPlacementView.newBuilder(managedPlacementView_).mergeFrom(value).buildPartial(); } else { - metrics_ = value; + managedPlacementView_ = value; } onChanged(); } else { - metricsBuilder_.mergeFrom(value); + managedPlacementViewBuilder_.mergeFrom(value); } return this; } /** *
-     * The metrics.
+     * The managed placement view referenced in the query.
      * 
* - * .google.ads.googleads.v0.common.Metrics metrics = 4; + * .google.ads.googleads.v0.resources.ManagedPlacementView managed_placement_view = 53; */ - public Builder clearMetrics() { - if (metricsBuilder_ == null) { - metrics_ = null; + public Builder clearManagedPlacementView() { + if (managedPlacementViewBuilder_ == null) { + managedPlacementView_ = null; onChanged(); } else { - metrics_ = null; - metricsBuilder_ = null; + managedPlacementView_ = null; + managedPlacementViewBuilder_ = null; } return this; } /** *
-     * The metrics.
+     * The managed placement view referenced in the query.
      * 
* - * .google.ads.googleads.v0.common.Metrics metrics = 4; + * .google.ads.googleads.v0.resources.ManagedPlacementView managed_placement_view = 53; */ - public com.google.ads.googleads.v0.common.Metrics.Builder getMetricsBuilder() { + public com.google.ads.googleads.v0.resources.ManagedPlacementView.Builder getManagedPlacementViewBuilder() { onChanged(); - return getMetricsFieldBuilder().getBuilder(); + return getManagedPlacementViewFieldBuilder().getBuilder(); } /** *
-     * The metrics.
+     * The managed placement view referenced in the query.
      * 
* - * .google.ads.googleads.v0.common.Metrics metrics = 4; + * .google.ads.googleads.v0.resources.ManagedPlacementView managed_placement_view = 53; */ - public com.google.ads.googleads.v0.common.MetricsOrBuilder getMetricsOrBuilder() { - if (metricsBuilder_ != null) { - return metricsBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.ManagedPlacementViewOrBuilder getManagedPlacementViewOrBuilder() { + if (managedPlacementViewBuilder_ != null) { + return managedPlacementViewBuilder_.getMessageOrBuilder(); } else { - return metrics_ == null ? - com.google.ads.googleads.v0.common.Metrics.getDefaultInstance() : metrics_; + return managedPlacementView_ == null ? + com.google.ads.googleads.v0.resources.ManagedPlacementView.getDefaultInstance() : managedPlacementView_; } } /** *
-     * The metrics.
+     * The managed placement view referenced in the query.
      * 
* - * .google.ads.googleads.v0.common.Metrics metrics = 4; + * .google.ads.googleads.v0.resources.ManagedPlacementView managed_placement_view = 53; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.common.Metrics, com.google.ads.googleads.v0.common.Metrics.Builder, com.google.ads.googleads.v0.common.MetricsOrBuilder> - getMetricsFieldBuilder() { - if (metricsBuilder_ == null) { - metricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.common.Metrics, com.google.ads.googleads.v0.common.Metrics.Builder, com.google.ads.googleads.v0.common.MetricsOrBuilder>( - getMetrics(), + com.google.ads.googleads.v0.resources.ManagedPlacementView, com.google.ads.googleads.v0.resources.ManagedPlacementView.Builder, com.google.ads.googleads.v0.resources.ManagedPlacementViewOrBuilder> + getManagedPlacementViewFieldBuilder() { + if (managedPlacementViewBuilder_ == null) { + managedPlacementViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.ManagedPlacementView, com.google.ads.googleads.v0.resources.ManagedPlacementView.Builder, com.google.ads.googleads.v0.resources.ManagedPlacementViewOrBuilder>( + getManagedPlacementView(), getParentForChildren(), isClean()); - metrics_ = null; - } - return metricsBuilder_; - } - - private int adNetworkType_ = 0; - /** - *
-     * Ad network type.
-     * 
- * - * .google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType ad_network_type = 5; - */ - public int getAdNetworkTypeValue() { - return adNetworkType_; - } - /** - *
-     * Ad network type.
-     * 
- * - * .google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType ad_network_type = 5; - */ - public Builder setAdNetworkTypeValue(int value) { - adNetworkType_ = value; - onChanged(); - return this; - } - /** - *
-     * Ad network type.
-     * 
- * - * .google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType ad_network_type = 5; - */ - public com.google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType getAdNetworkType() { - @SuppressWarnings("deprecation") - com.google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType result = com.google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType.valueOf(adNetworkType_); - return result == null ? com.google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType.UNRECOGNIZED : result; - } - /** - *
-     * Ad network type.
-     * 
- * - * .google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType ad_network_type = 5; - */ - public Builder setAdNetworkType(com.google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType value) { - if (value == null) { - throw new NullPointerException(); + managedPlacementView_ = null; } - - adNetworkType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Ad network type.
-     * 
- * - * .google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType ad_network_type = 5; - */ - public Builder clearAdNetworkType() { - - adNetworkType_ = 0; - onChanged(); - return this; + return managedPlacementViewBuilder_; } - private com.google.protobuf.StringValue date_ = null; + private com.google.ads.googleads.v0.resources.MediaFile mediaFile_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> dateBuilder_; + com.google.ads.googleads.v0.resources.MediaFile, com.google.ads.googleads.v0.resources.MediaFile.Builder, com.google.ads.googleads.v0.resources.MediaFileOrBuilder> mediaFileBuilder_; /** *
-     * Date to which metrics apply.
-     * yyyy-MM-dd format, e.g., 2018-04-17.
+     * The media file referenced in the query.
      * 
* - * .google.protobuf.StringValue date = 6; + * .google.ads.googleads.v0.resources.MediaFile media_file = 90; */ - public boolean hasDate() { - return dateBuilder_ != null || date_ != null; + public boolean hasMediaFile() { + return mediaFileBuilder_ != null || mediaFile_ != null; } /** *
-     * Date to which metrics apply.
-     * yyyy-MM-dd format, e.g., 2018-04-17.
+     * The media file referenced in the query.
      * 
* - * .google.protobuf.StringValue date = 6; + * .google.ads.googleads.v0.resources.MediaFile media_file = 90; */ - public com.google.protobuf.StringValue getDate() { - if (dateBuilder_ == null) { - return date_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : date_; + public com.google.ads.googleads.v0.resources.MediaFile getMediaFile() { + if (mediaFileBuilder_ == null) { + return mediaFile_ == null ? com.google.ads.googleads.v0.resources.MediaFile.getDefaultInstance() : mediaFile_; } else { - return dateBuilder_.getMessage(); + return mediaFileBuilder_.getMessage(); } } /** *
-     * Date to which metrics apply.
-     * yyyy-MM-dd format, e.g., 2018-04-17.
+     * The media file referenced in the query.
      * 
* - * .google.protobuf.StringValue date = 6; + * .google.ads.googleads.v0.resources.MediaFile media_file = 90; */ - public Builder setDate(com.google.protobuf.StringValue value) { - if (dateBuilder_ == null) { + public Builder setMediaFile(com.google.ads.googleads.v0.resources.MediaFile value) { + if (mediaFileBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - date_ = value; + mediaFile_ = value; onChanged(); } else { - dateBuilder_.setMessage(value); + mediaFileBuilder_.setMessage(value); } return this; } /** *
-     * Date to which metrics apply.
-     * yyyy-MM-dd format, e.g., 2018-04-17.
+     * The media file referenced in the query.
      * 
* - * .google.protobuf.StringValue date = 6; + * .google.ads.googleads.v0.resources.MediaFile media_file = 90; */ - public Builder setDate( - com.google.protobuf.StringValue.Builder builderForValue) { - if (dateBuilder_ == null) { - date_ = builderForValue.build(); + public Builder setMediaFile( + com.google.ads.googleads.v0.resources.MediaFile.Builder builderForValue) { + if (mediaFileBuilder_ == null) { + mediaFile_ = builderForValue.build(); onChanged(); } else { - dateBuilder_.setMessage(builderForValue.build()); + mediaFileBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * Date to which metrics apply.
-     * yyyy-MM-dd format, e.g., 2018-04-17.
+     * The media file referenced in the query.
      * 
* - * .google.protobuf.StringValue date = 6; + * .google.ads.googleads.v0.resources.MediaFile media_file = 90; */ - public Builder mergeDate(com.google.protobuf.StringValue value) { - if (dateBuilder_ == null) { - if (date_ != null) { - date_ = - com.google.protobuf.StringValue.newBuilder(date_).mergeFrom(value).buildPartial(); + public Builder mergeMediaFile(com.google.ads.googleads.v0.resources.MediaFile value) { + if (mediaFileBuilder_ == null) { + if (mediaFile_ != null) { + mediaFile_ = + com.google.ads.googleads.v0.resources.MediaFile.newBuilder(mediaFile_).mergeFrom(value).buildPartial(); } else { - date_ = value; + mediaFile_ = value; } onChanged(); } else { - dateBuilder_.mergeFrom(value); + mediaFileBuilder_.mergeFrom(value); } return this; } /** *
-     * Date to which metrics apply.
-     * yyyy-MM-dd format, e.g., 2018-04-17.
+     * The media file referenced in the query.
      * 
* - * .google.protobuf.StringValue date = 6; + * .google.ads.googleads.v0.resources.MediaFile media_file = 90; */ - public Builder clearDate() { - if (dateBuilder_ == null) { - date_ = null; + public Builder clearMediaFile() { + if (mediaFileBuilder_ == null) { + mediaFile_ = null; onChanged(); } else { - date_ = null; - dateBuilder_ = null; + mediaFile_ = null; + mediaFileBuilder_ = null; } return this; } /** *
-     * Date to which metrics apply.
-     * yyyy-MM-dd format, e.g., 2018-04-17.
+     * The media file referenced in the query.
      * 
* - * .google.protobuf.StringValue date = 6; + * .google.ads.googleads.v0.resources.MediaFile media_file = 90; */ - public com.google.protobuf.StringValue.Builder getDateBuilder() { + public com.google.ads.googleads.v0.resources.MediaFile.Builder getMediaFileBuilder() { onChanged(); - return getDateFieldBuilder().getBuilder(); + return getMediaFileFieldBuilder().getBuilder(); } /** *
-     * Date to which metrics apply.
-     * yyyy-MM-dd format, e.g., 2018-04-17.
+     * The media file referenced in the query.
      * 
* - * .google.protobuf.StringValue date = 6; + * .google.ads.googleads.v0.resources.MediaFile media_file = 90; */ - public com.google.protobuf.StringValueOrBuilder getDateOrBuilder() { - if (dateBuilder_ != null) { - return dateBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.MediaFileOrBuilder getMediaFileOrBuilder() { + if (mediaFileBuilder_ != null) { + return mediaFileBuilder_.getMessageOrBuilder(); } else { - return date_ == null ? - com.google.protobuf.StringValue.getDefaultInstance() : date_; + return mediaFile_ == null ? + com.google.ads.googleads.v0.resources.MediaFile.getDefaultInstance() : mediaFile_; } } /** *
-     * Date to which metrics apply.
-     * yyyy-MM-dd format, e.g., 2018-04-17.
+     * The media file referenced in the query.
      * 
* - * .google.protobuf.StringValue date = 6; + * .google.ads.googleads.v0.resources.MediaFile media_file = 90; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> - getDateFieldBuilder() { - if (dateBuilder_ == null) { - dateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( - getDate(), + com.google.ads.googleads.v0.resources.MediaFile, com.google.ads.googleads.v0.resources.MediaFile.Builder, com.google.ads.googleads.v0.resources.MediaFileOrBuilder> + getMediaFileFieldBuilder() { + if (mediaFileBuilder_ == null) { + mediaFileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.MediaFile, com.google.ads.googleads.v0.resources.MediaFile.Builder, com.google.ads.googleads.v0.resources.MediaFileOrBuilder>( + getMediaFile(), getParentForChildren(), isClean()); - date_ = null; + mediaFile_ = null; } - return dateBuilder_; + return mediaFileBuilder_; } - private int dayOfWeek_ = 0; - /** - *
-     * Day of the week, e.g., MONDAY.
-     * 
- * - * .google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek day_of_week = 7; - */ - public int getDayOfWeekValue() { - return dayOfWeek_; - } + private com.google.ads.googleads.v0.resources.MobileAppCategoryConstant mobileAppCategoryConstant_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.MobileAppCategoryConstant, com.google.ads.googleads.v0.resources.MobileAppCategoryConstant.Builder, com.google.ads.googleads.v0.resources.MobileAppCategoryConstantOrBuilder> mobileAppCategoryConstantBuilder_; /** *
-     * Day of the week, e.g., MONDAY.
+     * The mobile app category constant referenced in the query.
      * 
* - * .google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek day_of_week = 7; + * .google.ads.googleads.v0.resources.MobileAppCategoryConstant mobile_app_category_constant = 87; */ - public Builder setDayOfWeekValue(int value) { - dayOfWeek_ = value; - onChanged(); - return this; + public boolean hasMobileAppCategoryConstant() { + return mobileAppCategoryConstantBuilder_ != null || mobileAppCategoryConstant_ != null; } /** *
-     * Day of the week, e.g., MONDAY.
+     * The mobile app category constant referenced in the query.
      * 
* - * .google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek day_of_week = 7; + * .google.ads.googleads.v0.resources.MobileAppCategoryConstant mobile_app_category_constant = 87; */ - public com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek getDayOfWeek() { - @SuppressWarnings("deprecation") - com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek result = com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek.valueOf(dayOfWeek_); - return result == null ? com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek.UNRECOGNIZED : result; + public com.google.ads.googleads.v0.resources.MobileAppCategoryConstant getMobileAppCategoryConstant() { + if (mobileAppCategoryConstantBuilder_ == null) { + return mobileAppCategoryConstant_ == null ? com.google.ads.googleads.v0.resources.MobileAppCategoryConstant.getDefaultInstance() : mobileAppCategoryConstant_; + } else { + return mobileAppCategoryConstantBuilder_.getMessage(); + } } /** *
-     * Day of the week, e.g., MONDAY.
+     * The mobile app category constant referenced in the query.
      * 
* - * .google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek day_of_week = 7; + * .google.ads.googleads.v0.resources.MobileAppCategoryConstant mobile_app_category_constant = 87; */ - public Builder setDayOfWeek(com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek value) { - if (value == null) { - throw new NullPointerException(); + public Builder setMobileAppCategoryConstant(com.google.ads.googleads.v0.resources.MobileAppCategoryConstant value) { + if (mobileAppCategoryConstantBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mobileAppCategoryConstant_ = value; + onChanged(); + } else { + mobileAppCategoryConstantBuilder_.setMessage(value); } - - dayOfWeek_ = value.getNumber(); - onChanged(); + return this; } /** *
-     * Day of the week, e.g., MONDAY.
+     * The mobile app category constant referenced in the query.
      * 
* - * .google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek day_of_week = 7; + * .google.ads.googleads.v0.resources.MobileAppCategoryConstant mobile_app_category_constant = 87; */ - public Builder clearDayOfWeek() { - - dayOfWeek_ = 0; - onChanged(); + public Builder setMobileAppCategoryConstant( + com.google.ads.googleads.v0.resources.MobileAppCategoryConstant.Builder builderForValue) { + if (mobileAppCategoryConstantBuilder_ == null) { + mobileAppCategoryConstant_ = builderForValue.build(); + onChanged(); + } else { + mobileAppCategoryConstantBuilder_.setMessage(builderForValue.build()); + } + return this; } - - private int device_ = 0; /** *
-     * Device to which metrics apply.
+     * The mobile app category constant referenced in the query.
      * 
* - * .google.ads.googleads.v0.enums.DeviceEnum.Device device = 8; + * .google.ads.googleads.v0.resources.MobileAppCategoryConstant mobile_app_category_constant = 87; */ - public int getDeviceValue() { - return device_; + public Builder mergeMobileAppCategoryConstant(com.google.ads.googleads.v0.resources.MobileAppCategoryConstant value) { + if (mobileAppCategoryConstantBuilder_ == null) { + if (mobileAppCategoryConstant_ != null) { + mobileAppCategoryConstant_ = + com.google.ads.googleads.v0.resources.MobileAppCategoryConstant.newBuilder(mobileAppCategoryConstant_).mergeFrom(value).buildPartial(); + } else { + mobileAppCategoryConstant_ = value; + } + onChanged(); + } else { + mobileAppCategoryConstantBuilder_.mergeFrom(value); + } + + return this; } /** *
-     * Device to which metrics apply.
+     * The mobile app category constant referenced in the query.
      * 
* - * .google.ads.googleads.v0.enums.DeviceEnum.Device device = 8; + * .google.ads.googleads.v0.resources.MobileAppCategoryConstant mobile_app_category_constant = 87; */ - public Builder setDeviceValue(int value) { - device_ = value; - onChanged(); + public Builder clearMobileAppCategoryConstant() { + if (mobileAppCategoryConstantBuilder_ == null) { + mobileAppCategoryConstant_ = null; + onChanged(); + } else { + mobileAppCategoryConstant_ = null; + mobileAppCategoryConstantBuilder_ = null; + } + return this; } /** *
-     * Device to which metrics apply.
+     * The mobile app category constant referenced in the query.
      * 
* - * .google.ads.googleads.v0.enums.DeviceEnum.Device device = 8; + * .google.ads.googleads.v0.resources.MobileAppCategoryConstant mobile_app_category_constant = 87; */ - public com.google.ads.googleads.v0.enums.DeviceEnum.Device getDevice() { - @SuppressWarnings("deprecation") - com.google.ads.googleads.v0.enums.DeviceEnum.Device result = com.google.ads.googleads.v0.enums.DeviceEnum.Device.valueOf(device_); - return result == null ? com.google.ads.googleads.v0.enums.DeviceEnum.Device.UNRECOGNIZED : result; + public com.google.ads.googleads.v0.resources.MobileAppCategoryConstant.Builder getMobileAppCategoryConstantBuilder() { + + onChanged(); + return getMobileAppCategoryConstantFieldBuilder().getBuilder(); } /** *
-     * Device to which metrics apply.
+     * The mobile app category constant referenced in the query.
      * 
* - * .google.ads.googleads.v0.enums.DeviceEnum.Device device = 8; + * .google.ads.googleads.v0.resources.MobileAppCategoryConstant mobile_app_category_constant = 87; */ - public Builder setDevice(com.google.ads.googleads.v0.enums.DeviceEnum.Device value) { - if (value == null) { - throw new NullPointerException(); + public com.google.ads.googleads.v0.resources.MobileAppCategoryConstantOrBuilder getMobileAppCategoryConstantOrBuilder() { + if (mobileAppCategoryConstantBuilder_ != null) { + return mobileAppCategoryConstantBuilder_.getMessageOrBuilder(); + } else { + return mobileAppCategoryConstant_ == null ? + com.google.ads.googleads.v0.resources.MobileAppCategoryConstant.getDefaultInstance() : mobileAppCategoryConstant_; } - - device_ = value.getNumber(); - onChanged(); - return this; } /** *
-     * Device to which metrics apply.
+     * The mobile app category constant referenced in the query.
      * 
* - * .google.ads.googleads.v0.enums.DeviceEnum.Device device = 8; + * .google.ads.googleads.v0.resources.MobileAppCategoryConstant mobile_app_category_constant = 87; */ - public Builder clearDevice() { - - device_ = 0; - onChanged(); - return this; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.MobileAppCategoryConstant, com.google.ads.googleads.v0.resources.MobileAppCategoryConstant.Builder, com.google.ads.googleads.v0.resources.MobileAppCategoryConstantOrBuilder> + getMobileAppCategoryConstantFieldBuilder() { + if (mobileAppCategoryConstantBuilder_ == null) { + mobileAppCategoryConstantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.MobileAppCategoryConstant, com.google.ads.googleads.v0.resources.MobileAppCategoryConstant.Builder, com.google.ads.googleads.v0.resources.MobileAppCategoryConstantOrBuilder>( + getMobileAppCategoryConstant(), + getParentForChildren(), + isClean()); + mobileAppCategoryConstant_ = null; + } + return mobileAppCategoryConstantBuilder_; } - private com.google.protobuf.Int64Value hotelBookingWindowDays_ = null; + private com.google.ads.googleads.v0.resources.MobileDeviceConstant mobileDeviceConstant_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> hotelBookingWindowDaysBuilder_; + com.google.ads.googleads.v0.resources.MobileDeviceConstant, com.google.ads.googleads.v0.resources.MobileDeviceConstant.Builder, com.google.ads.googleads.v0.resources.MobileDeviceConstantOrBuilder> mobileDeviceConstantBuilder_; /** *
-     * Hotel booking window in days.
+     * The mobile device constant referenced in the query.
      * 
* - * .google.protobuf.Int64Value hotel_booking_window_days = 83; + * .google.ads.googleads.v0.resources.MobileDeviceConstant mobile_device_constant = 98; */ - public boolean hasHotelBookingWindowDays() { - return hotelBookingWindowDaysBuilder_ != null || hotelBookingWindowDays_ != null; + public boolean hasMobileDeviceConstant() { + return mobileDeviceConstantBuilder_ != null || mobileDeviceConstant_ != null; } /** *
-     * Hotel booking window in days.
+     * The mobile device constant referenced in the query.
      * 
* - * .google.protobuf.Int64Value hotel_booking_window_days = 83; + * .google.ads.googleads.v0.resources.MobileDeviceConstant mobile_device_constant = 98; */ - public com.google.protobuf.Int64Value getHotelBookingWindowDays() { - if (hotelBookingWindowDaysBuilder_ == null) { - return hotelBookingWindowDays_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : hotelBookingWindowDays_; + public com.google.ads.googleads.v0.resources.MobileDeviceConstant getMobileDeviceConstant() { + if (mobileDeviceConstantBuilder_ == null) { + return mobileDeviceConstant_ == null ? com.google.ads.googleads.v0.resources.MobileDeviceConstant.getDefaultInstance() : mobileDeviceConstant_; } else { - return hotelBookingWindowDaysBuilder_.getMessage(); + return mobileDeviceConstantBuilder_.getMessage(); } } /** *
-     * Hotel booking window in days.
+     * The mobile device constant referenced in the query.
      * 
* - * .google.protobuf.Int64Value hotel_booking_window_days = 83; + * .google.ads.googleads.v0.resources.MobileDeviceConstant mobile_device_constant = 98; */ - public Builder setHotelBookingWindowDays(com.google.protobuf.Int64Value value) { - if (hotelBookingWindowDaysBuilder_ == null) { + public Builder setMobileDeviceConstant(com.google.ads.googleads.v0.resources.MobileDeviceConstant value) { + if (mobileDeviceConstantBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - hotelBookingWindowDays_ = value; + mobileDeviceConstant_ = value; onChanged(); } else { - hotelBookingWindowDaysBuilder_.setMessage(value); + mobileDeviceConstantBuilder_.setMessage(value); } return this; } /** *
-     * Hotel booking window in days.
+     * The mobile device constant referenced in the query.
      * 
* - * .google.protobuf.Int64Value hotel_booking_window_days = 83; + * .google.ads.googleads.v0.resources.MobileDeviceConstant mobile_device_constant = 98; */ - public Builder setHotelBookingWindowDays( - com.google.protobuf.Int64Value.Builder builderForValue) { - if (hotelBookingWindowDaysBuilder_ == null) { - hotelBookingWindowDays_ = builderForValue.build(); + public Builder setMobileDeviceConstant( + com.google.ads.googleads.v0.resources.MobileDeviceConstant.Builder builderForValue) { + if (mobileDeviceConstantBuilder_ == null) { + mobileDeviceConstant_ = builderForValue.build(); onChanged(); } else { - hotelBookingWindowDaysBuilder_.setMessage(builderForValue.build()); + mobileDeviceConstantBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * Hotel booking window in days.
+     * The mobile device constant referenced in the query.
      * 
* - * .google.protobuf.Int64Value hotel_booking_window_days = 83; + * .google.ads.googleads.v0.resources.MobileDeviceConstant mobile_device_constant = 98; */ - public Builder mergeHotelBookingWindowDays(com.google.protobuf.Int64Value value) { - if (hotelBookingWindowDaysBuilder_ == null) { - if (hotelBookingWindowDays_ != null) { - hotelBookingWindowDays_ = - com.google.protobuf.Int64Value.newBuilder(hotelBookingWindowDays_).mergeFrom(value).buildPartial(); + public Builder mergeMobileDeviceConstant(com.google.ads.googleads.v0.resources.MobileDeviceConstant value) { + if (mobileDeviceConstantBuilder_ == null) { + if (mobileDeviceConstant_ != null) { + mobileDeviceConstant_ = + com.google.ads.googleads.v0.resources.MobileDeviceConstant.newBuilder(mobileDeviceConstant_).mergeFrom(value).buildPartial(); } else { - hotelBookingWindowDays_ = value; + mobileDeviceConstant_ = value; } onChanged(); } else { - hotelBookingWindowDaysBuilder_.mergeFrom(value); + mobileDeviceConstantBuilder_.mergeFrom(value); } return this; } /** *
-     * Hotel booking window in days.
+     * The mobile device constant referenced in the query.
      * 
* - * .google.protobuf.Int64Value hotel_booking_window_days = 83; + * .google.ads.googleads.v0.resources.MobileDeviceConstant mobile_device_constant = 98; */ - public Builder clearHotelBookingWindowDays() { - if (hotelBookingWindowDaysBuilder_ == null) { - hotelBookingWindowDays_ = null; + public Builder clearMobileDeviceConstant() { + if (mobileDeviceConstantBuilder_ == null) { + mobileDeviceConstant_ = null; onChanged(); } else { - hotelBookingWindowDays_ = null; - hotelBookingWindowDaysBuilder_ = null; + mobileDeviceConstant_ = null; + mobileDeviceConstantBuilder_ = null; } return this; } /** *
-     * Hotel booking window in days.
+     * The mobile device constant referenced in the query.
      * 
* - * .google.protobuf.Int64Value hotel_booking_window_days = 83; + * .google.ads.googleads.v0.resources.MobileDeviceConstant mobile_device_constant = 98; */ - public com.google.protobuf.Int64Value.Builder getHotelBookingWindowDaysBuilder() { + public com.google.ads.googleads.v0.resources.MobileDeviceConstant.Builder getMobileDeviceConstantBuilder() { onChanged(); - return getHotelBookingWindowDaysFieldBuilder().getBuilder(); + return getMobileDeviceConstantFieldBuilder().getBuilder(); } /** *
-     * Hotel booking window in days.
+     * The mobile device constant referenced in the query.
      * 
* - * .google.protobuf.Int64Value hotel_booking_window_days = 83; + * .google.ads.googleads.v0.resources.MobileDeviceConstant mobile_device_constant = 98; */ - public com.google.protobuf.Int64ValueOrBuilder getHotelBookingWindowDaysOrBuilder() { - if (hotelBookingWindowDaysBuilder_ != null) { - return hotelBookingWindowDaysBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.MobileDeviceConstantOrBuilder getMobileDeviceConstantOrBuilder() { + if (mobileDeviceConstantBuilder_ != null) { + return mobileDeviceConstantBuilder_.getMessageOrBuilder(); } else { - return hotelBookingWindowDays_ == null ? - com.google.protobuf.Int64Value.getDefaultInstance() : hotelBookingWindowDays_; + return mobileDeviceConstant_ == null ? + com.google.ads.googleads.v0.resources.MobileDeviceConstant.getDefaultInstance() : mobileDeviceConstant_; } } /** *
-     * Hotel booking window in days.
+     * The mobile device constant referenced in the query.
      * 
* - * .google.protobuf.Int64Value hotel_booking_window_days = 83; + * .google.ads.googleads.v0.resources.MobileDeviceConstant mobile_device_constant = 98; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> - getHotelBookingWindowDaysFieldBuilder() { - if (hotelBookingWindowDaysBuilder_ == null) { - hotelBookingWindowDaysBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( - getHotelBookingWindowDays(), + com.google.ads.googleads.v0.resources.MobileDeviceConstant, com.google.ads.googleads.v0.resources.MobileDeviceConstant.Builder, com.google.ads.googleads.v0.resources.MobileDeviceConstantOrBuilder> + getMobileDeviceConstantFieldBuilder() { + if (mobileDeviceConstantBuilder_ == null) { + mobileDeviceConstantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.MobileDeviceConstant, com.google.ads.googleads.v0.resources.MobileDeviceConstant.Builder, com.google.ads.googleads.v0.resources.MobileDeviceConstantOrBuilder>( + getMobileDeviceConstant(), getParentForChildren(), isClean()); - hotelBookingWindowDays_ = null; + mobileDeviceConstant_ = null; } - return hotelBookingWindowDaysBuilder_; + return mobileDeviceConstantBuilder_; } - private com.google.protobuf.Int64Value hotelCenterId_ = null; + private com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant operatingSystemVersionConstant_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> hotelCenterIdBuilder_; + com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant, com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant.Builder, com.google.ads.googleads.v0.resources.OperatingSystemVersionConstantOrBuilder> operatingSystemVersionConstantBuilder_; /** *
-     * Hotel center ID.
+     * The operating system version constant referenced in the query.
      * 
* - * .google.protobuf.Int64Value hotel_center_id = 72; + * .google.ads.googleads.v0.resources.OperatingSystemVersionConstant operating_system_version_constant = 86; */ - public boolean hasHotelCenterId() { - return hotelCenterIdBuilder_ != null || hotelCenterId_ != null; + public boolean hasOperatingSystemVersionConstant() { + return operatingSystemVersionConstantBuilder_ != null || operatingSystemVersionConstant_ != null; } /** *
-     * Hotel center ID.
+     * The operating system version constant referenced in the query.
      * 
* - * .google.protobuf.Int64Value hotel_center_id = 72; + * .google.ads.googleads.v0.resources.OperatingSystemVersionConstant operating_system_version_constant = 86; */ - public com.google.protobuf.Int64Value getHotelCenterId() { - if (hotelCenterIdBuilder_ == null) { - return hotelCenterId_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : hotelCenterId_; + public com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant getOperatingSystemVersionConstant() { + if (operatingSystemVersionConstantBuilder_ == null) { + return operatingSystemVersionConstant_ == null ? com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant.getDefaultInstance() : operatingSystemVersionConstant_; } else { - return hotelCenterIdBuilder_.getMessage(); + return operatingSystemVersionConstantBuilder_.getMessage(); } } /** *
-     * Hotel center ID.
+     * The operating system version constant referenced in the query.
      * 
* - * .google.protobuf.Int64Value hotel_center_id = 72; + * .google.ads.googleads.v0.resources.OperatingSystemVersionConstant operating_system_version_constant = 86; */ - public Builder setHotelCenterId(com.google.protobuf.Int64Value value) { - if (hotelCenterIdBuilder_ == null) { + public Builder setOperatingSystemVersionConstant(com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant value) { + if (operatingSystemVersionConstantBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - hotelCenterId_ = value; + operatingSystemVersionConstant_ = value; onChanged(); } else { - hotelCenterIdBuilder_.setMessage(value); + operatingSystemVersionConstantBuilder_.setMessage(value); } return this; } /** *
-     * Hotel center ID.
+     * The operating system version constant referenced in the query.
      * 
* - * .google.protobuf.Int64Value hotel_center_id = 72; + * .google.ads.googleads.v0.resources.OperatingSystemVersionConstant operating_system_version_constant = 86; */ - public Builder setHotelCenterId( - com.google.protobuf.Int64Value.Builder builderForValue) { - if (hotelCenterIdBuilder_ == null) { - hotelCenterId_ = builderForValue.build(); + public Builder setOperatingSystemVersionConstant( + com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant.Builder builderForValue) { + if (operatingSystemVersionConstantBuilder_ == null) { + operatingSystemVersionConstant_ = builderForValue.build(); onChanged(); } else { - hotelCenterIdBuilder_.setMessage(builderForValue.build()); + operatingSystemVersionConstantBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * Hotel center ID.
+     * The operating system version constant referenced in the query.
      * 
* - * .google.protobuf.Int64Value hotel_center_id = 72; + * .google.ads.googleads.v0.resources.OperatingSystemVersionConstant operating_system_version_constant = 86; */ - public Builder mergeHotelCenterId(com.google.protobuf.Int64Value value) { - if (hotelCenterIdBuilder_ == null) { - if (hotelCenterId_ != null) { - hotelCenterId_ = - com.google.protobuf.Int64Value.newBuilder(hotelCenterId_).mergeFrom(value).buildPartial(); + public Builder mergeOperatingSystemVersionConstant(com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant value) { + if (operatingSystemVersionConstantBuilder_ == null) { + if (operatingSystemVersionConstant_ != null) { + operatingSystemVersionConstant_ = + com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant.newBuilder(operatingSystemVersionConstant_).mergeFrom(value).buildPartial(); } else { - hotelCenterId_ = value; + operatingSystemVersionConstant_ = value; } onChanged(); } else { - hotelCenterIdBuilder_.mergeFrom(value); + operatingSystemVersionConstantBuilder_.mergeFrom(value); } return this; } /** *
-     * Hotel center ID.
+     * The operating system version constant referenced in the query.
      * 
* - * .google.protobuf.Int64Value hotel_center_id = 72; + * .google.ads.googleads.v0.resources.OperatingSystemVersionConstant operating_system_version_constant = 86; */ - public Builder clearHotelCenterId() { - if (hotelCenterIdBuilder_ == null) { - hotelCenterId_ = null; + public Builder clearOperatingSystemVersionConstant() { + if (operatingSystemVersionConstantBuilder_ == null) { + operatingSystemVersionConstant_ = null; onChanged(); } else { - hotelCenterId_ = null; - hotelCenterIdBuilder_ = null; + operatingSystemVersionConstant_ = null; + operatingSystemVersionConstantBuilder_ = null; } return this; } /** *
-     * Hotel center ID.
+     * The operating system version constant referenced in the query.
      * 
* - * .google.protobuf.Int64Value hotel_center_id = 72; + * .google.ads.googleads.v0.resources.OperatingSystemVersionConstant operating_system_version_constant = 86; */ - public com.google.protobuf.Int64Value.Builder getHotelCenterIdBuilder() { + public com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant.Builder getOperatingSystemVersionConstantBuilder() { onChanged(); - return getHotelCenterIdFieldBuilder().getBuilder(); + return getOperatingSystemVersionConstantFieldBuilder().getBuilder(); } /** *
-     * Hotel center ID.
+     * The operating system version constant referenced in the query.
      * 
* - * .google.protobuf.Int64Value hotel_center_id = 72; + * .google.ads.googleads.v0.resources.OperatingSystemVersionConstant operating_system_version_constant = 86; */ - public com.google.protobuf.Int64ValueOrBuilder getHotelCenterIdOrBuilder() { - if (hotelCenterIdBuilder_ != null) { - return hotelCenterIdBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.OperatingSystemVersionConstantOrBuilder getOperatingSystemVersionConstantOrBuilder() { + if (operatingSystemVersionConstantBuilder_ != null) { + return operatingSystemVersionConstantBuilder_.getMessageOrBuilder(); } else { - return hotelCenterId_ == null ? - com.google.protobuf.Int64Value.getDefaultInstance() : hotelCenterId_; + return operatingSystemVersionConstant_ == null ? + com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant.getDefaultInstance() : operatingSystemVersionConstant_; } } /** *
-     * Hotel center ID.
+     * The operating system version constant referenced in the query.
      * 
* - * .google.protobuf.Int64Value hotel_center_id = 72; + * .google.ads.googleads.v0.resources.OperatingSystemVersionConstant operating_system_version_constant = 86; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> - getHotelCenterIdFieldBuilder() { - if (hotelCenterIdBuilder_ == null) { - hotelCenterIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( - getHotelCenterId(), + com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant, com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant.Builder, com.google.ads.googleads.v0.resources.OperatingSystemVersionConstantOrBuilder> + getOperatingSystemVersionConstantFieldBuilder() { + if (operatingSystemVersionConstantBuilder_ == null) { + operatingSystemVersionConstantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant, com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant.Builder, com.google.ads.googleads.v0.resources.OperatingSystemVersionConstantOrBuilder>( + getOperatingSystemVersionConstant(), getParentForChildren(), isClean()); - hotelCenterId_ = null; + operatingSystemVersionConstant_ = null; } - return hotelCenterIdBuilder_; + return operatingSystemVersionConstantBuilder_; } - private com.google.protobuf.StringValue hotelCheckInDate_ = null; + private com.google.ads.googleads.v0.resources.ParentalStatusView parentalStatusView_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> hotelCheckInDateBuilder_; + com.google.ads.googleads.v0.resources.ParentalStatusView, com.google.ads.googleads.v0.resources.ParentalStatusView.Builder, com.google.ads.googleads.v0.resources.ParentalStatusViewOrBuilder> parentalStatusViewBuilder_; /** *
-     * Hotel check-in date. Formatted as yyyy-MM-dd.
+     * The parental status view referenced in the query.
      * 
* - * .google.protobuf.StringValue hotel_check_in_date = 73; + * .google.ads.googleads.v0.resources.ParentalStatusView parental_status_view = 45; */ - public boolean hasHotelCheckInDate() { - return hotelCheckInDateBuilder_ != null || hotelCheckInDate_ != null; + public boolean hasParentalStatusView() { + return parentalStatusViewBuilder_ != null || parentalStatusView_ != null; } /** *
-     * Hotel check-in date. Formatted as yyyy-MM-dd.
+     * The parental status view referenced in the query.
      * 
* - * .google.protobuf.StringValue hotel_check_in_date = 73; + * .google.ads.googleads.v0.resources.ParentalStatusView parental_status_view = 45; */ - public com.google.protobuf.StringValue getHotelCheckInDate() { - if (hotelCheckInDateBuilder_ == null) { - return hotelCheckInDate_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : hotelCheckInDate_; + public com.google.ads.googleads.v0.resources.ParentalStatusView getParentalStatusView() { + if (parentalStatusViewBuilder_ == null) { + return parentalStatusView_ == null ? com.google.ads.googleads.v0.resources.ParentalStatusView.getDefaultInstance() : parentalStatusView_; } else { - return hotelCheckInDateBuilder_.getMessage(); + return parentalStatusViewBuilder_.getMessage(); } } /** *
-     * Hotel check-in date. Formatted as yyyy-MM-dd.
+     * The parental status view referenced in the query.
      * 
* - * .google.protobuf.StringValue hotel_check_in_date = 73; + * .google.ads.googleads.v0.resources.ParentalStatusView parental_status_view = 45; */ - public Builder setHotelCheckInDate(com.google.protobuf.StringValue value) { - if (hotelCheckInDateBuilder_ == null) { + public Builder setParentalStatusView(com.google.ads.googleads.v0.resources.ParentalStatusView value) { + if (parentalStatusViewBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - hotelCheckInDate_ = value; + parentalStatusView_ = value; onChanged(); } else { - hotelCheckInDateBuilder_.setMessage(value); + parentalStatusViewBuilder_.setMessage(value); } return this; } /** *
-     * Hotel check-in date. Formatted as yyyy-MM-dd.
+     * The parental status view referenced in the query.
      * 
* - * .google.protobuf.StringValue hotel_check_in_date = 73; + * .google.ads.googleads.v0.resources.ParentalStatusView parental_status_view = 45; */ - public Builder setHotelCheckInDate( - com.google.protobuf.StringValue.Builder builderForValue) { - if (hotelCheckInDateBuilder_ == null) { - hotelCheckInDate_ = builderForValue.build(); + public Builder setParentalStatusView( + com.google.ads.googleads.v0.resources.ParentalStatusView.Builder builderForValue) { + if (parentalStatusViewBuilder_ == null) { + parentalStatusView_ = builderForValue.build(); onChanged(); } else { - hotelCheckInDateBuilder_.setMessage(builderForValue.build()); + parentalStatusViewBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * Hotel check-in date. Formatted as yyyy-MM-dd.
+     * The parental status view referenced in the query.
      * 
* - * .google.protobuf.StringValue hotel_check_in_date = 73; + * .google.ads.googleads.v0.resources.ParentalStatusView parental_status_view = 45; */ - public Builder mergeHotelCheckInDate(com.google.protobuf.StringValue value) { - if (hotelCheckInDateBuilder_ == null) { - if (hotelCheckInDate_ != null) { - hotelCheckInDate_ = - com.google.protobuf.StringValue.newBuilder(hotelCheckInDate_).mergeFrom(value).buildPartial(); + public Builder mergeParentalStatusView(com.google.ads.googleads.v0.resources.ParentalStatusView value) { + if (parentalStatusViewBuilder_ == null) { + if (parentalStatusView_ != null) { + parentalStatusView_ = + com.google.ads.googleads.v0.resources.ParentalStatusView.newBuilder(parentalStatusView_).mergeFrom(value).buildPartial(); } else { - hotelCheckInDate_ = value; + parentalStatusView_ = value; } onChanged(); } else { - hotelCheckInDateBuilder_.mergeFrom(value); + parentalStatusViewBuilder_.mergeFrom(value); } return this; } /** *
-     * Hotel check-in date. Formatted as yyyy-MM-dd.
+     * The parental status view referenced in the query.
      * 
* - * .google.protobuf.StringValue hotel_check_in_date = 73; + * .google.ads.googleads.v0.resources.ParentalStatusView parental_status_view = 45; */ - public Builder clearHotelCheckInDate() { - if (hotelCheckInDateBuilder_ == null) { - hotelCheckInDate_ = null; + public Builder clearParentalStatusView() { + if (parentalStatusViewBuilder_ == null) { + parentalStatusView_ = null; onChanged(); } else { - hotelCheckInDate_ = null; - hotelCheckInDateBuilder_ = null; + parentalStatusView_ = null; + parentalStatusViewBuilder_ = null; } return this; } /** *
-     * Hotel check-in date. Formatted as yyyy-MM-dd.
+     * The parental status view referenced in the query.
      * 
* - * .google.protobuf.StringValue hotel_check_in_date = 73; + * .google.ads.googleads.v0.resources.ParentalStatusView parental_status_view = 45; */ - public com.google.protobuf.StringValue.Builder getHotelCheckInDateBuilder() { + public com.google.ads.googleads.v0.resources.ParentalStatusView.Builder getParentalStatusViewBuilder() { onChanged(); - return getHotelCheckInDateFieldBuilder().getBuilder(); + return getParentalStatusViewFieldBuilder().getBuilder(); } /** *
-     * Hotel check-in date. Formatted as yyyy-MM-dd.
+     * The parental status view referenced in the query.
      * 
* - * .google.protobuf.StringValue hotel_check_in_date = 73; + * .google.ads.googleads.v0.resources.ParentalStatusView parental_status_view = 45; */ - public com.google.protobuf.StringValueOrBuilder getHotelCheckInDateOrBuilder() { - if (hotelCheckInDateBuilder_ != null) { - return hotelCheckInDateBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.ParentalStatusViewOrBuilder getParentalStatusViewOrBuilder() { + if (parentalStatusViewBuilder_ != null) { + return parentalStatusViewBuilder_.getMessageOrBuilder(); } else { - return hotelCheckInDate_ == null ? - com.google.protobuf.StringValue.getDefaultInstance() : hotelCheckInDate_; + return parentalStatusView_ == null ? + com.google.ads.googleads.v0.resources.ParentalStatusView.getDefaultInstance() : parentalStatusView_; } } /** *
-     * Hotel check-in date. Formatted as yyyy-MM-dd.
+     * The parental status view referenced in the query.
      * 
* - * .google.protobuf.StringValue hotel_check_in_date = 73; + * .google.ads.googleads.v0.resources.ParentalStatusView parental_status_view = 45; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> - getHotelCheckInDateFieldBuilder() { - if (hotelCheckInDateBuilder_ == null) { - hotelCheckInDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( - getHotelCheckInDate(), + com.google.ads.googleads.v0.resources.ParentalStatusView, com.google.ads.googleads.v0.resources.ParentalStatusView.Builder, com.google.ads.googleads.v0.resources.ParentalStatusViewOrBuilder> + getParentalStatusViewFieldBuilder() { + if (parentalStatusViewBuilder_ == null) { + parentalStatusViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.ParentalStatusView, com.google.ads.googleads.v0.resources.ParentalStatusView.Builder, com.google.ads.googleads.v0.resources.ParentalStatusViewOrBuilder>( + getParentalStatusView(), getParentForChildren(), isClean()); - hotelCheckInDate_ = null; + parentalStatusView_ = null; } - return hotelCheckInDateBuilder_; + return parentalStatusViewBuilder_; } - private int hotelCheckInDayOfWeek_ = 0; + private com.google.ads.googleads.v0.resources.ProductGroupView productGroupView_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.ProductGroupView, com.google.ads.googleads.v0.resources.ProductGroupView.Builder, com.google.ads.googleads.v0.resources.ProductGroupViewOrBuilder> productGroupViewBuilder_; + /** + *
+     * The product group view referenced in the query.
+     * 
+ * + * .google.ads.googleads.v0.resources.ProductGroupView product_group_view = 54; + */ + public boolean hasProductGroupView() { + return productGroupViewBuilder_ != null || productGroupView_ != null; + } /** *
-     * Hotel check-in day of week.
+     * The product group view referenced in the query.
      * 
* - * .google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek hotel_check_in_day_of_week = 74; + * .google.ads.googleads.v0.resources.ProductGroupView product_group_view = 54; */ - public int getHotelCheckInDayOfWeekValue() { - return hotelCheckInDayOfWeek_; + public com.google.ads.googleads.v0.resources.ProductGroupView getProductGroupView() { + if (productGroupViewBuilder_ == null) { + return productGroupView_ == null ? com.google.ads.googleads.v0.resources.ProductGroupView.getDefaultInstance() : productGroupView_; + } else { + return productGroupViewBuilder_.getMessage(); + } } /** *
-     * Hotel check-in day of week.
+     * The product group view referenced in the query.
      * 
* - * .google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek hotel_check_in_day_of_week = 74; + * .google.ads.googleads.v0.resources.ProductGroupView product_group_view = 54; */ - public Builder setHotelCheckInDayOfWeekValue(int value) { - hotelCheckInDayOfWeek_ = value; - onChanged(); + public Builder setProductGroupView(com.google.ads.googleads.v0.resources.ProductGroupView value) { + if (productGroupViewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + productGroupView_ = value; + onChanged(); + } else { + productGroupViewBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The product group view referenced in the query.
+     * 
+ * + * .google.ads.googleads.v0.resources.ProductGroupView product_group_view = 54; + */ + public Builder setProductGroupView( + com.google.ads.googleads.v0.resources.ProductGroupView.Builder builderForValue) { + if (productGroupViewBuilder_ == null) { + productGroupView_ = builderForValue.build(); + onChanged(); + } else { + productGroupViewBuilder_.setMessage(builderForValue.build()); + } + return this; } /** *
-     * Hotel check-in day of week.
+     * The product group view referenced in the query.
      * 
* - * .google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek hotel_check_in_day_of_week = 74; + * .google.ads.googleads.v0.resources.ProductGroupView product_group_view = 54; */ - public com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek getHotelCheckInDayOfWeek() { - @SuppressWarnings("deprecation") - com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek result = com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek.valueOf(hotelCheckInDayOfWeek_); - return result == null ? com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek.UNRECOGNIZED : result; + public Builder mergeProductGroupView(com.google.ads.googleads.v0.resources.ProductGroupView value) { + if (productGroupViewBuilder_ == null) { + if (productGroupView_ != null) { + productGroupView_ = + com.google.ads.googleads.v0.resources.ProductGroupView.newBuilder(productGroupView_).mergeFrom(value).buildPartial(); + } else { + productGroupView_ = value; + } + onChanged(); + } else { + productGroupViewBuilder_.mergeFrom(value); + } + + return this; } /** *
-     * Hotel check-in day of week.
+     * The product group view referenced in the query.
      * 
* - * .google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek hotel_check_in_day_of_week = 74; + * .google.ads.googleads.v0.resources.ProductGroupView product_group_view = 54; */ - public Builder setHotelCheckInDayOfWeek(com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearProductGroupView() { + if (productGroupViewBuilder_ == null) { + productGroupView_ = null; + onChanged(); + } else { + productGroupView_ = null; + productGroupViewBuilder_ = null; } - - hotelCheckInDayOfWeek_ = value.getNumber(); - onChanged(); + return this; } /** *
-     * Hotel check-in day of week.
+     * The product group view referenced in the query.
      * 
* - * .google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek hotel_check_in_day_of_week = 74; + * .google.ads.googleads.v0.resources.ProductGroupView product_group_view = 54; */ - public Builder clearHotelCheckInDayOfWeek() { + public com.google.ads.googleads.v0.resources.ProductGroupView.Builder getProductGroupViewBuilder() { - hotelCheckInDayOfWeek_ = 0; onChanged(); - return this; + return getProductGroupViewFieldBuilder().getBuilder(); + } + /** + *
+     * The product group view referenced in the query.
+     * 
+ * + * .google.ads.googleads.v0.resources.ProductGroupView product_group_view = 54; + */ + public com.google.ads.googleads.v0.resources.ProductGroupViewOrBuilder getProductGroupViewOrBuilder() { + if (productGroupViewBuilder_ != null) { + return productGroupViewBuilder_.getMessageOrBuilder(); + } else { + return productGroupView_ == null ? + com.google.ads.googleads.v0.resources.ProductGroupView.getDefaultInstance() : productGroupView_; + } + } + /** + *
+     * The product group view referenced in the query.
+     * 
+ * + * .google.ads.googleads.v0.resources.ProductGroupView product_group_view = 54; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.ProductGroupView, com.google.ads.googleads.v0.resources.ProductGroupView.Builder, com.google.ads.googleads.v0.resources.ProductGroupViewOrBuilder> + getProductGroupViewFieldBuilder() { + if (productGroupViewBuilder_ == null) { + productGroupViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.ProductGroupView, com.google.ads.googleads.v0.resources.ProductGroupView.Builder, com.google.ads.googleads.v0.resources.ProductGroupViewOrBuilder>( + getProductGroupView(), + getParentForChildren(), + isClean()); + productGroupView_ = null; + } + return productGroupViewBuilder_; } - private com.google.protobuf.StringValue hotelCity_ = null; + private com.google.ads.googleads.v0.resources.Recommendation recommendation_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> hotelCityBuilder_; + com.google.ads.googleads.v0.resources.Recommendation, com.google.ads.googleads.v0.resources.Recommendation.Builder, com.google.ads.googleads.v0.resources.RecommendationOrBuilder> recommendationBuilder_; /** *
-     * Hotel city.
+     * The recommendation referenced in the query.
      * 
* - * .google.protobuf.StringValue hotel_city = 75; + * .google.ads.googleads.v0.resources.Recommendation recommendation = 22; */ - public boolean hasHotelCity() { - return hotelCityBuilder_ != null || hotelCity_ != null; + public boolean hasRecommendation() { + return recommendationBuilder_ != null || recommendation_ != null; } /** *
-     * Hotel city.
+     * The recommendation referenced in the query.
      * 
* - * .google.protobuf.StringValue hotel_city = 75; + * .google.ads.googleads.v0.resources.Recommendation recommendation = 22; */ - public com.google.protobuf.StringValue getHotelCity() { - if (hotelCityBuilder_ == null) { - return hotelCity_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : hotelCity_; + public com.google.ads.googleads.v0.resources.Recommendation getRecommendation() { + if (recommendationBuilder_ == null) { + return recommendation_ == null ? com.google.ads.googleads.v0.resources.Recommendation.getDefaultInstance() : recommendation_; } else { - return hotelCityBuilder_.getMessage(); + return recommendationBuilder_.getMessage(); } } /** *
-     * Hotel city.
+     * The recommendation referenced in the query.
      * 
* - * .google.protobuf.StringValue hotel_city = 75; + * .google.ads.googleads.v0.resources.Recommendation recommendation = 22; */ - public Builder setHotelCity(com.google.protobuf.StringValue value) { - if (hotelCityBuilder_ == null) { + public Builder setRecommendation(com.google.ads.googleads.v0.resources.Recommendation value) { + if (recommendationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - hotelCity_ = value; + recommendation_ = value; onChanged(); } else { - hotelCityBuilder_.setMessage(value); + recommendationBuilder_.setMessage(value); } return this; } /** *
-     * Hotel city.
+     * The recommendation referenced in the query.
      * 
* - * .google.protobuf.StringValue hotel_city = 75; + * .google.ads.googleads.v0.resources.Recommendation recommendation = 22; */ - public Builder setHotelCity( - com.google.protobuf.StringValue.Builder builderForValue) { - if (hotelCityBuilder_ == null) { - hotelCity_ = builderForValue.build(); + public Builder setRecommendation( + com.google.ads.googleads.v0.resources.Recommendation.Builder builderForValue) { + if (recommendationBuilder_ == null) { + recommendation_ = builderForValue.build(); onChanged(); } else { - hotelCityBuilder_.setMessage(builderForValue.build()); + recommendationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * Hotel city.
+     * The recommendation referenced in the query.
      * 
* - * .google.protobuf.StringValue hotel_city = 75; + * .google.ads.googleads.v0.resources.Recommendation recommendation = 22; */ - public Builder mergeHotelCity(com.google.protobuf.StringValue value) { - if (hotelCityBuilder_ == null) { - if (hotelCity_ != null) { - hotelCity_ = - com.google.protobuf.StringValue.newBuilder(hotelCity_).mergeFrom(value).buildPartial(); + public Builder mergeRecommendation(com.google.ads.googleads.v0.resources.Recommendation value) { + if (recommendationBuilder_ == null) { + if (recommendation_ != null) { + recommendation_ = + com.google.ads.googleads.v0.resources.Recommendation.newBuilder(recommendation_).mergeFrom(value).buildPartial(); } else { - hotelCity_ = value; + recommendation_ = value; } onChanged(); } else { - hotelCityBuilder_.mergeFrom(value); + recommendationBuilder_.mergeFrom(value); } return this; } /** *
-     * Hotel city.
+     * The recommendation referenced in the query.
      * 
* - * .google.protobuf.StringValue hotel_city = 75; + * .google.ads.googleads.v0.resources.Recommendation recommendation = 22; */ - public Builder clearHotelCity() { - if (hotelCityBuilder_ == null) { - hotelCity_ = null; + public Builder clearRecommendation() { + if (recommendationBuilder_ == null) { + recommendation_ = null; onChanged(); } else { - hotelCity_ = null; - hotelCityBuilder_ = null; + recommendation_ = null; + recommendationBuilder_ = null; } return this; } /** *
-     * Hotel city.
+     * The recommendation referenced in the query.
      * 
* - * .google.protobuf.StringValue hotel_city = 75; + * .google.ads.googleads.v0.resources.Recommendation recommendation = 22; */ - public com.google.protobuf.StringValue.Builder getHotelCityBuilder() { + public com.google.ads.googleads.v0.resources.Recommendation.Builder getRecommendationBuilder() { onChanged(); - return getHotelCityFieldBuilder().getBuilder(); + return getRecommendationFieldBuilder().getBuilder(); } /** *
-     * Hotel city.
+     * The recommendation referenced in the query.
      * 
* - * .google.protobuf.StringValue hotel_city = 75; + * .google.ads.googleads.v0.resources.Recommendation recommendation = 22; */ - public com.google.protobuf.StringValueOrBuilder getHotelCityOrBuilder() { - if (hotelCityBuilder_ != null) { - return hotelCityBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.RecommendationOrBuilder getRecommendationOrBuilder() { + if (recommendationBuilder_ != null) { + return recommendationBuilder_.getMessageOrBuilder(); } else { - return hotelCity_ == null ? - com.google.protobuf.StringValue.getDefaultInstance() : hotelCity_; + return recommendation_ == null ? + com.google.ads.googleads.v0.resources.Recommendation.getDefaultInstance() : recommendation_; } } /** *
-     * Hotel city.
+     * The recommendation referenced in the query.
      * 
* - * .google.protobuf.StringValue hotel_city = 75; + * .google.ads.googleads.v0.resources.Recommendation recommendation = 22; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> - getHotelCityFieldBuilder() { - if (hotelCityBuilder_ == null) { - hotelCityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( - getHotelCity(), + com.google.ads.googleads.v0.resources.Recommendation, com.google.ads.googleads.v0.resources.Recommendation.Builder, com.google.ads.googleads.v0.resources.RecommendationOrBuilder> + getRecommendationFieldBuilder() { + if (recommendationBuilder_ == null) { + recommendationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.Recommendation, com.google.ads.googleads.v0.resources.Recommendation.Builder, com.google.ads.googleads.v0.resources.RecommendationOrBuilder>( + getRecommendation(), getParentForChildren(), isClean()); - hotelCity_ = null; + recommendation_ = null; } - return hotelCityBuilder_; + return recommendationBuilder_; } - private com.google.protobuf.Int32Value hotelClass_ = null; + private com.google.ads.googleads.v0.resources.SearchTermView searchTermView_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> hotelClassBuilder_; + com.google.ads.googleads.v0.resources.SearchTermView, com.google.ads.googleads.v0.resources.SearchTermView.Builder, com.google.ads.googleads.v0.resources.SearchTermViewOrBuilder> searchTermViewBuilder_; /** *
-     * Hotel class.
+     * The search term view referenced in the query.
      * 
* - * .google.protobuf.Int32Value hotel_class = 76; + * .google.ads.googleads.v0.resources.SearchTermView search_term_view = 68; */ - public boolean hasHotelClass() { - return hotelClassBuilder_ != null || hotelClass_ != null; + public boolean hasSearchTermView() { + return searchTermViewBuilder_ != null || searchTermView_ != null; } /** *
-     * Hotel class.
+     * The search term view referenced in the query.
      * 
* - * .google.protobuf.Int32Value hotel_class = 76; + * .google.ads.googleads.v0.resources.SearchTermView search_term_view = 68; */ - public com.google.protobuf.Int32Value getHotelClass() { - if (hotelClassBuilder_ == null) { - return hotelClass_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : hotelClass_; + public com.google.ads.googleads.v0.resources.SearchTermView getSearchTermView() { + if (searchTermViewBuilder_ == null) { + return searchTermView_ == null ? com.google.ads.googleads.v0.resources.SearchTermView.getDefaultInstance() : searchTermView_; } else { - return hotelClassBuilder_.getMessage(); + return searchTermViewBuilder_.getMessage(); } } /** *
-     * Hotel class.
+     * The search term view referenced in the query.
      * 
* - * .google.protobuf.Int32Value hotel_class = 76; + * .google.ads.googleads.v0.resources.SearchTermView search_term_view = 68; */ - public Builder setHotelClass(com.google.protobuf.Int32Value value) { - if (hotelClassBuilder_ == null) { + public Builder setSearchTermView(com.google.ads.googleads.v0.resources.SearchTermView value) { + if (searchTermViewBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - hotelClass_ = value; + searchTermView_ = value; onChanged(); } else { - hotelClassBuilder_.setMessage(value); + searchTermViewBuilder_.setMessage(value); } return this; } /** *
-     * Hotel class.
+     * The search term view referenced in the query.
      * 
* - * .google.protobuf.Int32Value hotel_class = 76; + * .google.ads.googleads.v0.resources.SearchTermView search_term_view = 68; */ - public Builder setHotelClass( - com.google.protobuf.Int32Value.Builder builderForValue) { - if (hotelClassBuilder_ == null) { - hotelClass_ = builderForValue.build(); + public Builder setSearchTermView( + com.google.ads.googleads.v0.resources.SearchTermView.Builder builderForValue) { + if (searchTermViewBuilder_ == null) { + searchTermView_ = builderForValue.build(); onChanged(); } else { - hotelClassBuilder_.setMessage(builderForValue.build()); + searchTermViewBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * Hotel class.
+     * The search term view referenced in the query.
      * 
* - * .google.protobuf.Int32Value hotel_class = 76; + * .google.ads.googleads.v0.resources.SearchTermView search_term_view = 68; */ - public Builder mergeHotelClass(com.google.protobuf.Int32Value value) { - if (hotelClassBuilder_ == null) { - if (hotelClass_ != null) { - hotelClass_ = - com.google.protobuf.Int32Value.newBuilder(hotelClass_).mergeFrom(value).buildPartial(); + public Builder mergeSearchTermView(com.google.ads.googleads.v0.resources.SearchTermView value) { + if (searchTermViewBuilder_ == null) { + if (searchTermView_ != null) { + searchTermView_ = + com.google.ads.googleads.v0.resources.SearchTermView.newBuilder(searchTermView_).mergeFrom(value).buildPartial(); } else { - hotelClass_ = value; + searchTermView_ = value; } onChanged(); } else { - hotelClassBuilder_.mergeFrom(value); + searchTermViewBuilder_.mergeFrom(value); } return this; } /** *
-     * Hotel class.
+     * The search term view referenced in the query.
      * 
* - * .google.protobuf.Int32Value hotel_class = 76; + * .google.ads.googleads.v0.resources.SearchTermView search_term_view = 68; */ - public Builder clearHotelClass() { - if (hotelClassBuilder_ == null) { - hotelClass_ = null; + public Builder clearSearchTermView() { + if (searchTermViewBuilder_ == null) { + searchTermView_ = null; onChanged(); } else { - hotelClass_ = null; - hotelClassBuilder_ = null; + searchTermView_ = null; + searchTermViewBuilder_ = null; } return this; } /** *
-     * Hotel class.
+     * The search term view referenced in the query.
      * 
* - * .google.protobuf.Int32Value hotel_class = 76; + * .google.ads.googleads.v0.resources.SearchTermView search_term_view = 68; */ - public com.google.protobuf.Int32Value.Builder getHotelClassBuilder() { + public com.google.ads.googleads.v0.resources.SearchTermView.Builder getSearchTermViewBuilder() { onChanged(); - return getHotelClassFieldBuilder().getBuilder(); + return getSearchTermViewFieldBuilder().getBuilder(); } /** *
-     * Hotel class.
+     * The search term view referenced in the query.
      * 
* - * .google.protobuf.Int32Value hotel_class = 76; + * .google.ads.googleads.v0.resources.SearchTermView search_term_view = 68; */ - public com.google.protobuf.Int32ValueOrBuilder getHotelClassOrBuilder() { - if (hotelClassBuilder_ != null) { - return hotelClassBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.SearchTermViewOrBuilder getSearchTermViewOrBuilder() { + if (searchTermViewBuilder_ != null) { + return searchTermViewBuilder_.getMessageOrBuilder(); } else { - return hotelClass_ == null ? - com.google.protobuf.Int32Value.getDefaultInstance() : hotelClass_; + return searchTermView_ == null ? + com.google.ads.googleads.v0.resources.SearchTermView.getDefaultInstance() : searchTermView_; } } /** *
-     * Hotel class.
+     * The search term view referenced in the query.
      * 
* - * .google.protobuf.Int32Value hotel_class = 76; + * .google.ads.googleads.v0.resources.SearchTermView search_term_view = 68; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> - getHotelClassFieldBuilder() { - if (hotelClassBuilder_ == null) { - hotelClassBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( - getHotelClass(), + com.google.ads.googleads.v0.resources.SearchTermView, com.google.ads.googleads.v0.resources.SearchTermView.Builder, com.google.ads.googleads.v0.resources.SearchTermViewOrBuilder> + getSearchTermViewFieldBuilder() { + if (searchTermViewBuilder_ == null) { + searchTermViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.SearchTermView, com.google.ads.googleads.v0.resources.SearchTermView.Builder, com.google.ads.googleads.v0.resources.SearchTermViewOrBuilder>( + getSearchTermView(), getParentForChildren(), isClean()); - hotelClass_ = null; + searchTermView_ = null; } - return hotelClassBuilder_; + return searchTermViewBuilder_; } - private com.google.protobuf.StringValue hotelCountry_ = null; + private com.google.ads.googleads.v0.resources.SharedCriterion sharedCriterion_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> hotelCountryBuilder_; + com.google.ads.googleads.v0.resources.SharedCriterion, com.google.ads.googleads.v0.resources.SharedCriterion.Builder, com.google.ads.googleads.v0.resources.SharedCriterionOrBuilder> sharedCriterionBuilder_; /** *
-     * Hotel country.
+     * The shared set referenced in the query.
      * 
* - * .google.protobuf.StringValue hotel_country = 77; + * .google.ads.googleads.v0.resources.SharedCriterion shared_criterion = 29; */ - public boolean hasHotelCountry() { - return hotelCountryBuilder_ != null || hotelCountry_ != null; + public boolean hasSharedCriterion() { + return sharedCriterionBuilder_ != null || sharedCriterion_ != null; } /** *
-     * Hotel country.
+     * The shared set referenced in the query.
      * 
* - * .google.protobuf.StringValue hotel_country = 77; + * .google.ads.googleads.v0.resources.SharedCriterion shared_criterion = 29; */ - public com.google.protobuf.StringValue getHotelCountry() { - if (hotelCountryBuilder_ == null) { - return hotelCountry_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : hotelCountry_; + public com.google.ads.googleads.v0.resources.SharedCriterion getSharedCriterion() { + if (sharedCriterionBuilder_ == null) { + return sharedCriterion_ == null ? com.google.ads.googleads.v0.resources.SharedCriterion.getDefaultInstance() : sharedCriterion_; } else { - return hotelCountryBuilder_.getMessage(); + return sharedCriterionBuilder_.getMessage(); } } /** *
-     * Hotel country.
+     * The shared set referenced in the query.
      * 
* - * .google.protobuf.StringValue hotel_country = 77; + * .google.ads.googleads.v0.resources.SharedCriterion shared_criterion = 29; */ - public Builder setHotelCountry(com.google.protobuf.StringValue value) { - if (hotelCountryBuilder_ == null) { + public Builder setSharedCriterion(com.google.ads.googleads.v0.resources.SharedCriterion value) { + if (sharedCriterionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - hotelCountry_ = value; + sharedCriterion_ = value; onChanged(); } else { - hotelCountryBuilder_.setMessage(value); + sharedCriterionBuilder_.setMessage(value); } return this; } /** *
-     * Hotel country.
+     * The shared set referenced in the query.
      * 
* - * .google.protobuf.StringValue hotel_country = 77; + * .google.ads.googleads.v0.resources.SharedCriterion shared_criterion = 29; */ - public Builder setHotelCountry( - com.google.protobuf.StringValue.Builder builderForValue) { - if (hotelCountryBuilder_ == null) { - hotelCountry_ = builderForValue.build(); + public Builder setSharedCriterion( + com.google.ads.googleads.v0.resources.SharedCriterion.Builder builderForValue) { + if (sharedCriterionBuilder_ == null) { + sharedCriterion_ = builderForValue.build(); onChanged(); } else { - hotelCountryBuilder_.setMessage(builderForValue.build()); + sharedCriterionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * Hotel country.
+     * The shared set referenced in the query.
      * 
* - * .google.protobuf.StringValue hotel_country = 77; + * .google.ads.googleads.v0.resources.SharedCriterion shared_criterion = 29; */ - public Builder mergeHotelCountry(com.google.protobuf.StringValue value) { - if (hotelCountryBuilder_ == null) { - if (hotelCountry_ != null) { - hotelCountry_ = - com.google.protobuf.StringValue.newBuilder(hotelCountry_).mergeFrom(value).buildPartial(); + public Builder mergeSharedCriterion(com.google.ads.googleads.v0.resources.SharedCriterion value) { + if (sharedCriterionBuilder_ == null) { + if (sharedCriterion_ != null) { + sharedCriterion_ = + com.google.ads.googleads.v0.resources.SharedCriterion.newBuilder(sharedCriterion_).mergeFrom(value).buildPartial(); } else { - hotelCountry_ = value; + sharedCriterion_ = value; } onChanged(); } else { - hotelCountryBuilder_.mergeFrom(value); + sharedCriterionBuilder_.mergeFrom(value); } return this; } /** *
-     * Hotel country.
+     * The shared set referenced in the query.
      * 
* - * .google.protobuf.StringValue hotel_country = 77; + * .google.ads.googleads.v0.resources.SharedCriterion shared_criterion = 29; */ - public Builder clearHotelCountry() { - if (hotelCountryBuilder_ == null) { - hotelCountry_ = null; + public Builder clearSharedCriterion() { + if (sharedCriterionBuilder_ == null) { + sharedCriterion_ = null; onChanged(); } else { - hotelCountry_ = null; - hotelCountryBuilder_ = null; + sharedCriterion_ = null; + sharedCriterionBuilder_ = null; } return this; } /** *
-     * Hotel country.
+     * The shared set referenced in the query.
      * 
* - * .google.protobuf.StringValue hotel_country = 77; + * .google.ads.googleads.v0.resources.SharedCriterion shared_criterion = 29; */ - public com.google.protobuf.StringValue.Builder getHotelCountryBuilder() { + public com.google.ads.googleads.v0.resources.SharedCriterion.Builder getSharedCriterionBuilder() { onChanged(); - return getHotelCountryFieldBuilder().getBuilder(); + return getSharedCriterionFieldBuilder().getBuilder(); } /** *
-     * Hotel country.
+     * The shared set referenced in the query.
      * 
* - * .google.protobuf.StringValue hotel_country = 77; + * .google.ads.googleads.v0.resources.SharedCriterion shared_criterion = 29; */ - public com.google.protobuf.StringValueOrBuilder getHotelCountryOrBuilder() { - if (hotelCountryBuilder_ != null) { - return hotelCountryBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.SharedCriterionOrBuilder getSharedCriterionOrBuilder() { + if (sharedCriterionBuilder_ != null) { + return sharedCriterionBuilder_.getMessageOrBuilder(); } else { - return hotelCountry_ == null ? - com.google.protobuf.StringValue.getDefaultInstance() : hotelCountry_; + return sharedCriterion_ == null ? + com.google.ads.googleads.v0.resources.SharedCriterion.getDefaultInstance() : sharedCriterion_; } } /** *
-     * Hotel country.
+     * The shared set referenced in the query.
      * 
* - * .google.protobuf.StringValue hotel_country = 77; + * .google.ads.googleads.v0.resources.SharedCriterion shared_criterion = 29; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> - getHotelCountryFieldBuilder() { - if (hotelCountryBuilder_ == null) { - hotelCountryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( - getHotelCountry(), + com.google.ads.googleads.v0.resources.SharedCriterion, com.google.ads.googleads.v0.resources.SharedCriterion.Builder, com.google.ads.googleads.v0.resources.SharedCriterionOrBuilder> + getSharedCriterionFieldBuilder() { + if (sharedCriterionBuilder_ == null) { + sharedCriterionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.SharedCriterion, com.google.ads.googleads.v0.resources.SharedCriterion.Builder, com.google.ads.googleads.v0.resources.SharedCriterionOrBuilder>( + getSharedCriterion(), getParentForChildren(), isClean()); - hotelCountry_ = null; - } - return hotelCountryBuilder_; - } - - private int hotelDateSelectionType_ = 0; - /** - *
-     * Hotel date selection type.
-     * 
- * - * .google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType hotel_date_selection_type = 78; - */ - public int getHotelDateSelectionTypeValue() { - return hotelDateSelectionType_; - } - /** - *
-     * Hotel date selection type.
-     * 
- * - * .google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType hotel_date_selection_type = 78; - */ - public Builder setHotelDateSelectionTypeValue(int value) { - hotelDateSelectionType_ = value; - onChanged(); - return this; - } - /** - *
-     * Hotel date selection type.
-     * 
- * - * .google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType hotel_date_selection_type = 78; - */ - public com.google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType getHotelDateSelectionType() { - @SuppressWarnings("deprecation") - com.google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType result = com.google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType.valueOf(hotelDateSelectionType_); - return result == null ? com.google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType.UNRECOGNIZED : result; - } - /** - *
-     * Hotel date selection type.
-     * 
- * - * .google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType hotel_date_selection_type = 78; - */ - public Builder setHotelDateSelectionType(com.google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType value) { - if (value == null) { - throw new NullPointerException(); + sharedCriterion_ = null; } - - hotelDateSelectionType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Hotel date selection type.
-     * 
- * - * .google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType hotel_date_selection_type = 78; - */ - public Builder clearHotelDateSelectionType() { - - hotelDateSelectionType_ = 0; - onChanged(); - return this; + return sharedCriterionBuilder_; } - private com.google.protobuf.Int32Value hotelLengthOfStay_ = null; + private com.google.ads.googleads.v0.resources.SharedSet sharedSet_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> hotelLengthOfStayBuilder_; + com.google.ads.googleads.v0.resources.SharedSet, com.google.ads.googleads.v0.resources.SharedSet.Builder, com.google.ads.googleads.v0.resources.SharedSetOrBuilder> sharedSetBuilder_; /** *
-     * Hotel length of stay.
+     * The shared set referenced in the query.
      * 
* - * .google.protobuf.Int32Value hotel_length_of_stay = 79; + * .google.ads.googleads.v0.resources.SharedSet shared_set = 27; */ - public boolean hasHotelLengthOfStay() { - return hotelLengthOfStayBuilder_ != null || hotelLengthOfStay_ != null; + public boolean hasSharedSet() { + return sharedSetBuilder_ != null || sharedSet_ != null; } /** *
-     * Hotel length of stay.
+     * The shared set referenced in the query.
      * 
* - * .google.protobuf.Int32Value hotel_length_of_stay = 79; + * .google.ads.googleads.v0.resources.SharedSet shared_set = 27; */ - public com.google.protobuf.Int32Value getHotelLengthOfStay() { - if (hotelLengthOfStayBuilder_ == null) { - return hotelLengthOfStay_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : hotelLengthOfStay_; + public com.google.ads.googleads.v0.resources.SharedSet getSharedSet() { + if (sharedSetBuilder_ == null) { + return sharedSet_ == null ? com.google.ads.googleads.v0.resources.SharedSet.getDefaultInstance() : sharedSet_; } else { - return hotelLengthOfStayBuilder_.getMessage(); + return sharedSetBuilder_.getMessage(); } } /** *
-     * Hotel length of stay.
+     * The shared set referenced in the query.
      * 
* - * .google.protobuf.Int32Value hotel_length_of_stay = 79; + * .google.ads.googleads.v0.resources.SharedSet shared_set = 27; */ - public Builder setHotelLengthOfStay(com.google.protobuf.Int32Value value) { - if (hotelLengthOfStayBuilder_ == null) { + public Builder setSharedSet(com.google.ads.googleads.v0.resources.SharedSet value) { + if (sharedSetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - hotelLengthOfStay_ = value; + sharedSet_ = value; onChanged(); } else { - hotelLengthOfStayBuilder_.setMessage(value); + sharedSetBuilder_.setMessage(value); } return this; } /** *
-     * Hotel length of stay.
+     * The shared set referenced in the query.
      * 
* - * .google.protobuf.Int32Value hotel_length_of_stay = 79; + * .google.ads.googleads.v0.resources.SharedSet shared_set = 27; */ - public Builder setHotelLengthOfStay( - com.google.protobuf.Int32Value.Builder builderForValue) { - if (hotelLengthOfStayBuilder_ == null) { - hotelLengthOfStay_ = builderForValue.build(); + public Builder setSharedSet( + com.google.ads.googleads.v0.resources.SharedSet.Builder builderForValue) { + if (sharedSetBuilder_ == null) { + sharedSet_ = builderForValue.build(); onChanged(); } else { - hotelLengthOfStayBuilder_.setMessage(builderForValue.build()); + sharedSetBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * Hotel length of stay.
+     * The shared set referenced in the query.
      * 
* - * .google.protobuf.Int32Value hotel_length_of_stay = 79; + * .google.ads.googleads.v0.resources.SharedSet shared_set = 27; */ - public Builder mergeHotelLengthOfStay(com.google.protobuf.Int32Value value) { - if (hotelLengthOfStayBuilder_ == null) { - if (hotelLengthOfStay_ != null) { - hotelLengthOfStay_ = - com.google.protobuf.Int32Value.newBuilder(hotelLengthOfStay_).mergeFrom(value).buildPartial(); + public Builder mergeSharedSet(com.google.ads.googleads.v0.resources.SharedSet value) { + if (sharedSetBuilder_ == null) { + if (sharedSet_ != null) { + sharedSet_ = + com.google.ads.googleads.v0.resources.SharedSet.newBuilder(sharedSet_).mergeFrom(value).buildPartial(); } else { - hotelLengthOfStay_ = value; + sharedSet_ = value; } onChanged(); } else { - hotelLengthOfStayBuilder_.mergeFrom(value); + sharedSetBuilder_.mergeFrom(value); } return this; } /** *
-     * Hotel length of stay.
+     * The shared set referenced in the query.
      * 
* - * .google.protobuf.Int32Value hotel_length_of_stay = 79; + * .google.ads.googleads.v0.resources.SharedSet shared_set = 27; */ - public Builder clearHotelLengthOfStay() { - if (hotelLengthOfStayBuilder_ == null) { - hotelLengthOfStay_ = null; + public Builder clearSharedSet() { + if (sharedSetBuilder_ == null) { + sharedSet_ = null; onChanged(); } else { - hotelLengthOfStay_ = null; - hotelLengthOfStayBuilder_ = null; + sharedSet_ = null; + sharedSetBuilder_ = null; } return this; } /** *
-     * Hotel length of stay.
+     * The shared set referenced in the query.
      * 
* - * .google.protobuf.Int32Value hotel_length_of_stay = 79; + * .google.ads.googleads.v0.resources.SharedSet shared_set = 27; */ - public com.google.protobuf.Int32Value.Builder getHotelLengthOfStayBuilder() { + public com.google.ads.googleads.v0.resources.SharedSet.Builder getSharedSetBuilder() { onChanged(); - return getHotelLengthOfStayFieldBuilder().getBuilder(); + return getSharedSetFieldBuilder().getBuilder(); } /** *
-     * Hotel length of stay.
+     * The shared set referenced in the query.
      * 
* - * .google.protobuf.Int32Value hotel_length_of_stay = 79; + * .google.ads.googleads.v0.resources.SharedSet shared_set = 27; */ - public com.google.protobuf.Int32ValueOrBuilder getHotelLengthOfStayOrBuilder() { - if (hotelLengthOfStayBuilder_ != null) { - return hotelLengthOfStayBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.SharedSetOrBuilder getSharedSetOrBuilder() { + if (sharedSetBuilder_ != null) { + return sharedSetBuilder_.getMessageOrBuilder(); } else { - return hotelLengthOfStay_ == null ? - com.google.protobuf.Int32Value.getDefaultInstance() : hotelLengthOfStay_; + return sharedSet_ == null ? + com.google.ads.googleads.v0.resources.SharedSet.getDefaultInstance() : sharedSet_; } } /** *
-     * Hotel length of stay.
+     * The shared set referenced in the query.
      * 
* - * .google.protobuf.Int32Value hotel_length_of_stay = 79; + * .google.ads.googleads.v0.resources.SharedSet shared_set = 27; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> - getHotelLengthOfStayFieldBuilder() { - if (hotelLengthOfStayBuilder_ == null) { - hotelLengthOfStayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( - getHotelLengthOfStay(), + com.google.ads.googleads.v0.resources.SharedSet, com.google.ads.googleads.v0.resources.SharedSet.Builder, com.google.ads.googleads.v0.resources.SharedSetOrBuilder> + getSharedSetFieldBuilder() { + if (sharedSetBuilder_ == null) { + sharedSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.SharedSet, com.google.ads.googleads.v0.resources.SharedSet.Builder, com.google.ads.googleads.v0.resources.SharedSetOrBuilder>( + getSharedSet(), getParentForChildren(), isClean()); - hotelLengthOfStay_ = null; + sharedSet_ = null; } - return hotelLengthOfStayBuilder_; + return sharedSetBuilder_; } - private com.google.protobuf.StringValue hotelState_ = null; + private com.google.ads.googleads.v0.resources.TopicView topicView_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> hotelStateBuilder_; + com.google.ads.googleads.v0.resources.TopicView, com.google.ads.googleads.v0.resources.TopicView.Builder, com.google.ads.googleads.v0.resources.TopicViewOrBuilder> topicViewBuilder_; /** *
-     * Hotel state.
+     * The topic view referenced in the query.
      * 
* - * .google.protobuf.StringValue hotel_state = 81; + * .google.ads.googleads.v0.resources.TopicView topic_view = 44; */ - public boolean hasHotelState() { - return hotelStateBuilder_ != null || hotelState_ != null; + public boolean hasTopicView() { + return topicViewBuilder_ != null || topicView_ != null; } /** *
-     * Hotel state.
+     * The topic view referenced in the query.
      * 
* - * .google.protobuf.StringValue hotel_state = 81; + * .google.ads.googleads.v0.resources.TopicView topic_view = 44; */ - public com.google.protobuf.StringValue getHotelState() { - if (hotelStateBuilder_ == null) { - return hotelState_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : hotelState_; + public com.google.ads.googleads.v0.resources.TopicView getTopicView() { + if (topicViewBuilder_ == null) { + return topicView_ == null ? com.google.ads.googleads.v0.resources.TopicView.getDefaultInstance() : topicView_; } else { - return hotelStateBuilder_.getMessage(); + return topicViewBuilder_.getMessage(); } } /** *
-     * Hotel state.
+     * The topic view referenced in the query.
      * 
* - * .google.protobuf.StringValue hotel_state = 81; + * .google.ads.googleads.v0.resources.TopicView topic_view = 44; */ - public Builder setHotelState(com.google.protobuf.StringValue value) { - if (hotelStateBuilder_ == null) { + public Builder setTopicView(com.google.ads.googleads.v0.resources.TopicView value) { + if (topicViewBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - hotelState_ = value; + topicView_ = value; onChanged(); } else { - hotelStateBuilder_.setMessage(value); + topicViewBuilder_.setMessage(value); } return this; } /** *
-     * Hotel state.
+     * The topic view referenced in the query.
      * 
* - * .google.protobuf.StringValue hotel_state = 81; + * .google.ads.googleads.v0.resources.TopicView topic_view = 44; */ - public Builder setHotelState( - com.google.protobuf.StringValue.Builder builderForValue) { - if (hotelStateBuilder_ == null) { - hotelState_ = builderForValue.build(); + public Builder setTopicView( + com.google.ads.googleads.v0.resources.TopicView.Builder builderForValue) { + if (topicViewBuilder_ == null) { + topicView_ = builderForValue.build(); onChanged(); } else { - hotelStateBuilder_.setMessage(builderForValue.build()); + topicViewBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * Hotel state.
+     * The topic view referenced in the query.
      * 
* - * .google.protobuf.StringValue hotel_state = 81; + * .google.ads.googleads.v0.resources.TopicView topic_view = 44; */ - public Builder mergeHotelState(com.google.protobuf.StringValue value) { - if (hotelStateBuilder_ == null) { - if (hotelState_ != null) { - hotelState_ = - com.google.protobuf.StringValue.newBuilder(hotelState_).mergeFrom(value).buildPartial(); + public Builder mergeTopicView(com.google.ads.googleads.v0.resources.TopicView value) { + if (topicViewBuilder_ == null) { + if (topicView_ != null) { + topicView_ = + com.google.ads.googleads.v0.resources.TopicView.newBuilder(topicView_).mergeFrom(value).buildPartial(); } else { - hotelState_ = value; + topicView_ = value; } onChanged(); } else { - hotelStateBuilder_.mergeFrom(value); + topicViewBuilder_.mergeFrom(value); } return this; } /** *
-     * Hotel state.
+     * The topic view referenced in the query.
      * 
* - * .google.protobuf.StringValue hotel_state = 81; + * .google.ads.googleads.v0.resources.TopicView topic_view = 44; */ - public Builder clearHotelState() { - if (hotelStateBuilder_ == null) { - hotelState_ = null; + public Builder clearTopicView() { + if (topicViewBuilder_ == null) { + topicView_ = null; onChanged(); } else { - hotelState_ = null; - hotelStateBuilder_ = null; + topicView_ = null; + topicViewBuilder_ = null; } return this; } /** *
-     * Hotel state.
+     * The topic view referenced in the query.
      * 
* - * .google.protobuf.StringValue hotel_state = 81; + * .google.ads.googleads.v0.resources.TopicView topic_view = 44; */ - public com.google.protobuf.StringValue.Builder getHotelStateBuilder() { + public com.google.ads.googleads.v0.resources.TopicView.Builder getTopicViewBuilder() { onChanged(); - return getHotelStateFieldBuilder().getBuilder(); + return getTopicViewFieldBuilder().getBuilder(); } /** *
-     * Hotel state.
+     * The topic view referenced in the query.
      * 
* - * .google.protobuf.StringValue hotel_state = 81; + * .google.ads.googleads.v0.resources.TopicView topic_view = 44; */ - public com.google.protobuf.StringValueOrBuilder getHotelStateOrBuilder() { - if (hotelStateBuilder_ != null) { - return hotelStateBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.TopicViewOrBuilder getTopicViewOrBuilder() { + if (topicViewBuilder_ != null) { + return topicViewBuilder_.getMessageOrBuilder(); } else { - return hotelState_ == null ? - com.google.protobuf.StringValue.getDefaultInstance() : hotelState_; + return topicView_ == null ? + com.google.ads.googleads.v0.resources.TopicView.getDefaultInstance() : topicView_; } } /** *
-     * Hotel state.
+     * The topic view referenced in the query.
      * 
* - * .google.protobuf.StringValue hotel_state = 81; + * .google.ads.googleads.v0.resources.TopicView topic_view = 44; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> - getHotelStateFieldBuilder() { - if (hotelStateBuilder_ == null) { - hotelStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( - getHotelState(), + com.google.ads.googleads.v0.resources.TopicView, com.google.ads.googleads.v0.resources.TopicView.Builder, com.google.ads.googleads.v0.resources.TopicViewOrBuilder> + getTopicViewFieldBuilder() { + if (topicViewBuilder_ == null) { + topicViewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.TopicView, com.google.ads.googleads.v0.resources.TopicView.Builder, com.google.ads.googleads.v0.resources.TopicViewOrBuilder>( + getTopicView(), getParentForChildren(), isClean()); - hotelState_ = null; + topicView_ = null; } - return hotelStateBuilder_; + return topicViewBuilder_; } - private com.google.protobuf.Int32Value hour_ = null; + private com.google.ads.googleads.v0.resources.UserInterest userInterest_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> hourBuilder_; + com.google.ads.googleads.v0.resources.UserInterest, com.google.ads.googleads.v0.resources.UserInterest.Builder, com.google.ads.googleads.v0.resources.UserInterestOrBuilder> userInterestBuilder_; /** *
-     * Hour of day as a number between 0 and 23, inclusive.
+     * The user interest referenced in the query.
      * 
* - * .google.protobuf.Int32Value hour = 9; + * .google.ads.googleads.v0.resources.UserInterest user_interest = 59; */ - public boolean hasHour() { - return hourBuilder_ != null || hour_ != null; + public boolean hasUserInterest() { + return userInterestBuilder_ != null || userInterest_ != null; } /** *
-     * Hour of day as a number between 0 and 23, inclusive.
+     * The user interest referenced in the query.
      * 
* - * .google.protobuf.Int32Value hour = 9; + * .google.ads.googleads.v0.resources.UserInterest user_interest = 59; */ - public com.google.protobuf.Int32Value getHour() { - if (hourBuilder_ == null) { - return hour_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : hour_; + public com.google.ads.googleads.v0.resources.UserInterest getUserInterest() { + if (userInterestBuilder_ == null) { + return userInterest_ == null ? com.google.ads.googleads.v0.resources.UserInterest.getDefaultInstance() : userInterest_; } else { - return hourBuilder_.getMessage(); + return userInterestBuilder_.getMessage(); } } /** *
-     * Hour of day as a number between 0 and 23, inclusive.
+     * The user interest referenced in the query.
      * 
* - * .google.protobuf.Int32Value hour = 9; + * .google.ads.googleads.v0.resources.UserInterest user_interest = 59; */ - public Builder setHour(com.google.protobuf.Int32Value value) { - if (hourBuilder_ == null) { + public Builder setUserInterest(com.google.ads.googleads.v0.resources.UserInterest value) { + if (userInterestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - hour_ = value; + userInterest_ = value; onChanged(); } else { - hourBuilder_.setMessage(value); + userInterestBuilder_.setMessage(value); } return this; } /** *
-     * Hour of day as a number between 0 and 23, inclusive.
+     * The user interest referenced in the query.
      * 
* - * .google.protobuf.Int32Value hour = 9; + * .google.ads.googleads.v0.resources.UserInterest user_interest = 59; */ - public Builder setHour( - com.google.protobuf.Int32Value.Builder builderForValue) { - if (hourBuilder_ == null) { - hour_ = builderForValue.build(); + public Builder setUserInterest( + com.google.ads.googleads.v0.resources.UserInterest.Builder builderForValue) { + if (userInterestBuilder_ == null) { + userInterest_ = builderForValue.build(); onChanged(); } else { - hourBuilder_.setMessage(builderForValue.build()); + userInterestBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * Hour of day as a number between 0 and 23, inclusive.
+     * The user interest referenced in the query.
      * 
* - * .google.protobuf.Int32Value hour = 9; + * .google.ads.googleads.v0.resources.UserInterest user_interest = 59; */ - public Builder mergeHour(com.google.protobuf.Int32Value value) { - if (hourBuilder_ == null) { - if (hour_ != null) { - hour_ = - com.google.protobuf.Int32Value.newBuilder(hour_).mergeFrom(value).buildPartial(); + public Builder mergeUserInterest(com.google.ads.googleads.v0.resources.UserInterest value) { + if (userInterestBuilder_ == null) { + if (userInterest_ != null) { + userInterest_ = + com.google.ads.googleads.v0.resources.UserInterest.newBuilder(userInterest_).mergeFrom(value).buildPartial(); } else { - hour_ = value; + userInterest_ = value; } onChanged(); } else { - hourBuilder_.mergeFrom(value); + userInterestBuilder_.mergeFrom(value); } return this; } /** *
-     * Hour of day as a number between 0 and 23, inclusive.
+     * The user interest referenced in the query.
      * 
* - * .google.protobuf.Int32Value hour = 9; + * .google.ads.googleads.v0.resources.UserInterest user_interest = 59; */ - public Builder clearHour() { - if (hourBuilder_ == null) { - hour_ = null; + public Builder clearUserInterest() { + if (userInterestBuilder_ == null) { + userInterest_ = null; onChanged(); } else { - hour_ = null; - hourBuilder_ = null; + userInterest_ = null; + userInterestBuilder_ = null; } return this; } /** *
-     * Hour of day as a number between 0 and 23, inclusive.
+     * The user interest referenced in the query.
      * 
* - * .google.protobuf.Int32Value hour = 9; + * .google.ads.googleads.v0.resources.UserInterest user_interest = 59; */ - public com.google.protobuf.Int32Value.Builder getHourBuilder() { + public com.google.ads.googleads.v0.resources.UserInterest.Builder getUserInterestBuilder() { onChanged(); - return getHourFieldBuilder().getBuilder(); + return getUserInterestFieldBuilder().getBuilder(); } /** *
-     * Hour of day as a number between 0 and 23, inclusive.
+     * The user interest referenced in the query.
      * 
* - * .google.protobuf.Int32Value hour = 9; + * .google.ads.googleads.v0.resources.UserInterest user_interest = 59; */ - public com.google.protobuf.Int32ValueOrBuilder getHourOrBuilder() { - if (hourBuilder_ != null) { - return hourBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.UserInterestOrBuilder getUserInterestOrBuilder() { + if (userInterestBuilder_ != null) { + return userInterestBuilder_.getMessageOrBuilder(); } else { - return hour_ == null ? - com.google.protobuf.Int32Value.getDefaultInstance() : hour_; + return userInterest_ == null ? + com.google.ads.googleads.v0.resources.UserInterest.getDefaultInstance() : userInterest_; } } /** *
-     * Hour of day as a number between 0 and 23, inclusive.
+     * The user interest referenced in the query.
      * 
* - * .google.protobuf.Int32Value hour = 9; + * .google.ads.googleads.v0.resources.UserInterest user_interest = 59; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> - getHourFieldBuilder() { - if (hourBuilder_ == null) { - hourBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( - getHour(), + com.google.ads.googleads.v0.resources.UserInterest, com.google.ads.googleads.v0.resources.UserInterest.Builder, com.google.ads.googleads.v0.resources.UserInterestOrBuilder> + getUserInterestFieldBuilder() { + if (userInterestBuilder_ == null) { + userInterestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.UserInterest, com.google.ads.googleads.v0.resources.UserInterest.Builder, com.google.ads.googleads.v0.resources.UserInterestOrBuilder>( + getUserInterest(), getParentForChildren(), isClean()); - hour_ = null; + userInterest_ = null; } - return hourBuilder_; + return userInterestBuilder_; } - private com.google.protobuf.StringValue month_ = null; + private com.google.ads.googleads.v0.resources.UserList userList_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> monthBuilder_; + com.google.ads.googleads.v0.resources.UserList, com.google.ads.googleads.v0.resources.UserList.Builder, com.google.ads.googleads.v0.resources.UserListOrBuilder> userListBuilder_; /** *
-     * Month as represented by the date of the first day of a month. Formatted as
-     * yyyy-MM-dd.
+     * The user list referenced in the query.
      * 
* - * .google.protobuf.StringValue month = 10; + * .google.ads.googleads.v0.resources.UserList user_list = 38; */ - public boolean hasMonth() { - return monthBuilder_ != null || month_ != null; + public boolean hasUserList() { + return userListBuilder_ != null || userList_ != null; } /** *
-     * Month as represented by the date of the first day of a month. Formatted as
-     * yyyy-MM-dd.
+     * The user list referenced in the query.
      * 
* - * .google.protobuf.StringValue month = 10; + * .google.ads.googleads.v0.resources.UserList user_list = 38; */ - public com.google.protobuf.StringValue getMonth() { - if (monthBuilder_ == null) { - return month_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : month_; + public com.google.ads.googleads.v0.resources.UserList getUserList() { + if (userListBuilder_ == null) { + return userList_ == null ? com.google.ads.googleads.v0.resources.UserList.getDefaultInstance() : userList_; } else { - return monthBuilder_.getMessage(); + return userListBuilder_.getMessage(); } } /** *
-     * Month as represented by the date of the first day of a month. Formatted as
-     * yyyy-MM-dd.
+     * The user list referenced in the query.
      * 
* - * .google.protobuf.StringValue month = 10; + * .google.ads.googleads.v0.resources.UserList user_list = 38; */ - public Builder setMonth(com.google.protobuf.StringValue value) { - if (monthBuilder_ == null) { + public Builder setUserList(com.google.ads.googleads.v0.resources.UserList value) { + if (userListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - month_ = value; + userList_ = value; onChanged(); } else { - monthBuilder_.setMessage(value); + userListBuilder_.setMessage(value); } return this; } /** *
-     * Month as represented by the date of the first day of a month. Formatted as
-     * yyyy-MM-dd.
+     * The user list referenced in the query.
      * 
* - * .google.protobuf.StringValue month = 10; + * .google.ads.googleads.v0.resources.UserList user_list = 38; */ - public Builder setMonth( - com.google.protobuf.StringValue.Builder builderForValue) { - if (monthBuilder_ == null) { - month_ = builderForValue.build(); + public Builder setUserList( + com.google.ads.googleads.v0.resources.UserList.Builder builderForValue) { + if (userListBuilder_ == null) { + userList_ = builderForValue.build(); onChanged(); } else { - monthBuilder_.setMessage(builderForValue.build()); + userListBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * Month as represented by the date of the first day of a month. Formatted as
-     * yyyy-MM-dd.
+     * The user list referenced in the query.
      * 
* - * .google.protobuf.StringValue month = 10; + * .google.ads.googleads.v0.resources.UserList user_list = 38; */ - public Builder mergeMonth(com.google.protobuf.StringValue value) { - if (monthBuilder_ == null) { - if (month_ != null) { - month_ = - com.google.protobuf.StringValue.newBuilder(month_).mergeFrom(value).buildPartial(); + public Builder mergeUserList(com.google.ads.googleads.v0.resources.UserList value) { + if (userListBuilder_ == null) { + if (userList_ != null) { + userList_ = + com.google.ads.googleads.v0.resources.UserList.newBuilder(userList_).mergeFrom(value).buildPartial(); } else { - month_ = value; + userList_ = value; } onChanged(); } else { - monthBuilder_.mergeFrom(value); + userListBuilder_.mergeFrom(value); } return this; } /** *
-     * Month as represented by the date of the first day of a month. Formatted as
-     * yyyy-MM-dd.
+     * The user list referenced in the query.
      * 
* - * .google.protobuf.StringValue month = 10; + * .google.ads.googleads.v0.resources.UserList user_list = 38; */ - public Builder clearMonth() { - if (monthBuilder_ == null) { - month_ = null; + public Builder clearUserList() { + if (userListBuilder_ == null) { + userList_ = null; onChanged(); } else { - month_ = null; - monthBuilder_ = null; + userList_ = null; + userListBuilder_ = null; } return this; } /** *
-     * Month as represented by the date of the first day of a month. Formatted as
-     * yyyy-MM-dd.
+     * The user list referenced in the query.
      * 
* - * .google.protobuf.StringValue month = 10; + * .google.ads.googleads.v0.resources.UserList user_list = 38; */ - public com.google.protobuf.StringValue.Builder getMonthBuilder() { + public com.google.ads.googleads.v0.resources.UserList.Builder getUserListBuilder() { onChanged(); - return getMonthFieldBuilder().getBuilder(); + return getUserListFieldBuilder().getBuilder(); } /** *
-     * Month as represented by the date of the first day of a month. Formatted as
-     * yyyy-MM-dd.
+     * The user list referenced in the query.
      * 
* - * .google.protobuf.StringValue month = 10; + * .google.ads.googleads.v0.resources.UserList user_list = 38; */ - public com.google.protobuf.StringValueOrBuilder getMonthOrBuilder() { - if (monthBuilder_ != null) { - return monthBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.UserListOrBuilder getUserListOrBuilder() { + if (userListBuilder_ != null) { + return userListBuilder_.getMessageOrBuilder(); } else { - return month_ == null ? - com.google.protobuf.StringValue.getDefaultInstance() : month_; + return userList_ == null ? + com.google.ads.googleads.v0.resources.UserList.getDefaultInstance() : userList_; } } /** *
-     * Month as represented by the date of the first day of a month. Formatted as
-     * yyyy-MM-dd.
+     * The user list referenced in the query.
      * 
* - * .google.protobuf.StringValue month = 10; + * .google.ads.googleads.v0.resources.UserList user_list = 38; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> - getMonthFieldBuilder() { - if (monthBuilder_ == null) { - monthBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( - getMonth(), + com.google.ads.googleads.v0.resources.UserList, com.google.ads.googleads.v0.resources.UserList.Builder, com.google.ads.googleads.v0.resources.UserListOrBuilder> + getUserListFieldBuilder() { + if (userListBuilder_ == null) { + userListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.UserList, com.google.ads.googleads.v0.resources.UserList.Builder, com.google.ads.googleads.v0.resources.UserListOrBuilder>( + getUserList(), getParentForChildren(), isClean()); - month_ = null; - } - return monthBuilder_; - } - - private int monthOfYear_ = 0; - /** - *
-     * Month of the year, e.g., January.
-     * 
- * - * .google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear month_of_year = 28; - */ - public int getMonthOfYearValue() { - return monthOfYear_; - } - /** - *
-     * Month of the year, e.g., January.
-     * 
- * - * .google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear month_of_year = 28; - */ - public Builder setMonthOfYearValue(int value) { - monthOfYear_ = value; - onChanged(); - return this; - } - /** - *
-     * Month of the year, e.g., January.
-     * 
- * - * .google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear month_of_year = 28; - */ - public com.google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear getMonthOfYear() { - @SuppressWarnings("deprecation") - com.google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear result = com.google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear.valueOf(monthOfYear_); - return result == null ? com.google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear.UNRECOGNIZED : result; - } - /** - *
-     * Month of the year, e.g., January.
-     * 
- * - * .google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear month_of_year = 28; - */ - public Builder setMonthOfYear(com.google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear value) { - if (value == null) { - throw new NullPointerException(); + userList_ = null; } - - monthOfYear_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Month of the year, e.g., January.
-     * 
- * - * .google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear month_of_year = 28; - */ - public Builder clearMonthOfYear() { - - monthOfYear_ = 0; - onChanged(); - return this; + return userListBuilder_; } - private com.google.protobuf.StringValue partnerHotelId_ = null; + private com.google.ads.googleads.v0.resources.RemarketingAction remarketingAction_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> partnerHotelIdBuilder_; + com.google.ads.googleads.v0.resources.RemarketingAction, com.google.ads.googleads.v0.resources.RemarketingAction.Builder, com.google.ads.googleads.v0.resources.RemarketingActionOrBuilder> remarketingActionBuilder_; /** *
-     * Partner hotel ID.
+     * The remarketing action referenced in the query.
      * 
* - * .google.protobuf.StringValue partner_hotel_id = 82; + * .google.ads.googleads.v0.resources.RemarketingAction remarketing_action = 60; */ - public boolean hasPartnerHotelId() { - return partnerHotelIdBuilder_ != null || partnerHotelId_ != null; + public boolean hasRemarketingAction() { + return remarketingActionBuilder_ != null || remarketingAction_ != null; } /** *
-     * Partner hotel ID.
+     * The remarketing action referenced in the query.
      * 
* - * .google.protobuf.StringValue partner_hotel_id = 82; + * .google.ads.googleads.v0.resources.RemarketingAction remarketing_action = 60; */ - public com.google.protobuf.StringValue getPartnerHotelId() { - if (partnerHotelIdBuilder_ == null) { - return partnerHotelId_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : partnerHotelId_; + public com.google.ads.googleads.v0.resources.RemarketingAction getRemarketingAction() { + if (remarketingActionBuilder_ == null) { + return remarketingAction_ == null ? com.google.ads.googleads.v0.resources.RemarketingAction.getDefaultInstance() : remarketingAction_; } else { - return partnerHotelIdBuilder_.getMessage(); + return remarketingActionBuilder_.getMessage(); } } /** *
-     * Partner hotel ID.
+     * The remarketing action referenced in the query.
      * 
* - * .google.protobuf.StringValue partner_hotel_id = 82; + * .google.ads.googleads.v0.resources.RemarketingAction remarketing_action = 60; */ - public Builder setPartnerHotelId(com.google.protobuf.StringValue value) { - if (partnerHotelIdBuilder_ == null) { + public Builder setRemarketingAction(com.google.ads.googleads.v0.resources.RemarketingAction value) { + if (remarketingActionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - partnerHotelId_ = value; + remarketingAction_ = value; onChanged(); } else { - partnerHotelIdBuilder_.setMessage(value); + remarketingActionBuilder_.setMessage(value); } return this; } /** *
-     * Partner hotel ID.
+     * The remarketing action referenced in the query.
      * 
* - * .google.protobuf.StringValue partner_hotel_id = 82; + * .google.ads.googleads.v0.resources.RemarketingAction remarketing_action = 60; */ - public Builder setPartnerHotelId( - com.google.protobuf.StringValue.Builder builderForValue) { - if (partnerHotelIdBuilder_ == null) { - partnerHotelId_ = builderForValue.build(); + public Builder setRemarketingAction( + com.google.ads.googleads.v0.resources.RemarketingAction.Builder builderForValue) { + if (remarketingActionBuilder_ == null) { + remarketingAction_ = builderForValue.build(); onChanged(); } else { - partnerHotelIdBuilder_.setMessage(builderForValue.build()); + remarketingActionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * Partner hotel ID.
+     * The remarketing action referenced in the query.
      * 
* - * .google.protobuf.StringValue partner_hotel_id = 82; + * .google.ads.googleads.v0.resources.RemarketingAction remarketing_action = 60; */ - public Builder mergePartnerHotelId(com.google.protobuf.StringValue value) { - if (partnerHotelIdBuilder_ == null) { - if (partnerHotelId_ != null) { - partnerHotelId_ = - com.google.protobuf.StringValue.newBuilder(partnerHotelId_).mergeFrom(value).buildPartial(); + public Builder mergeRemarketingAction(com.google.ads.googleads.v0.resources.RemarketingAction value) { + if (remarketingActionBuilder_ == null) { + if (remarketingAction_ != null) { + remarketingAction_ = + com.google.ads.googleads.v0.resources.RemarketingAction.newBuilder(remarketingAction_).mergeFrom(value).buildPartial(); } else { - partnerHotelId_ = value; + remarketingAction_ = value; } onChanged(); } else { - partnerHotelIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Partner hotel ID.
-     * 
- * - * .google.protobuf.StringValue partner_hotel_id = 82; - */ - public Builder clearPartnerHotelId() { - if (partnerHotelIdBuilder_ == null) { - partnerHotelId_ = null; - onChanged(); - } else { - partnerHotelId_ = null; - partnerHotelIdBuilder_ = null; - } - - return this; - } - /** - *
-     * Partner hotel ID.
-     * 
- * - * .google.protobuf.StringValue partner_hotel_id = 82; - */ - public com.google.protobuf.StringValue.Builder getPartnerHotelIdBuilder() { - - onChanged(); - return getPartnerHotelIdFieldBuilder().getBuilder(); - } - /** - *
-     * Partner hotel ID.
-     * 
- * - * .google.protobuf.StringValue partner_hotel_id = 82; - */ - public com.google.protobuf.StringValueOrBuilder getPartnerHotelIdOrBuilder() { - if (partnerHotelIdBuilder_ != null) { - return partnerHotelIdBuilder_.getMessageOrBuilder(); - } else { - return partnerHotelId_ == null ? - com.google.protobuf.StringValue.getDefaultInstance() : partnerHotelId_; + remarketingActionBuilder_.mergeFrom(value); } - } - /** - *
-     * Partner hotel ID.
-     * 
- * - * .google.protobuf.StringValue partner_hotel_id = 82; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> - getPartnerHotelIdFieldBuilder() { - if (partnerHotelIdBuilder_ == null) { - partnerHotelIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( - getPartnerHotelId(), - getParentForChildren(), - isClean()); - partnerHotelId_ = null; - } - return partnerHotelIdBuilder_; - } - private int placeholderType_ = 0; - /** - *
-     * Placeholder type. This is only used with feed item metrics.
-     * 
- * - * .google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type = 65; - */ - public int getPlaceholderTypeValue() { - return placeholderType_; + return this; } /** *
-     * Placeholder type. This is only used with feed item metrics.
+     * The remarketing action referenced in the query.
      * 
* - * .google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type = 65; + * .google.ads.googleads.v0.resources.RemarketingAction remarketing_action = 60; */ - public Builder setPlaceholderTypeValue(int value) { - placeholderType_ = value; - onChanged(); + public Builder clearRemarketingAction() { + if (remarketingActionBuilder_ == null) { + remarketingAction_ = null; + onChanged(); + } else { + remarketingAction_ = null; + remarketingActionBuilder_ = null; + } + return this; } /** *
-     * Placeholder type. This is only used with feed item metrics.
+     * The remarketing action referenced in the query.
      * 
* - * .google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type = 65; + * .google.ads.googleads.v0.resources.RemarketingAction remarketing_action = 60; */ - public com.google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType getPlaceholderType() { - @SuppressWarnings("deprecation") - com.google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType result = com.google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType.valueOf(placeholderType_); - return result == null ? com.google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType.UNRECOGNIZED : result; + public com.google.ads.googleads.v0.resources.RemarketingAction.Builder getRemarketingActionBuilder() { + + onChanged(); + return getRemarketingActionFieldBuilder().getBuilder(); } /** *
-     * Placeholder type. This is only used with feed item metrics.
+     * The remarketing action referenced in the query.
      * 
* - * .google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type = 65; + * .google.ads.googleads.v0.resources.RemarketingAction remarketing_action = 60; */ - public Builder setPlaceholderType(com.google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType value) { - if (value == null) { - throw new NullPointerException(); + public com.google.ads.googleads.v0.resources.RemarketingActionOrBuilder getRemarketingActionOrBuilder() { + if (remarketingActionBuilder_ != null) { + return remarketingActionBuilder_.getMessageOrBuilder(); + } else { + return remarketingAction_ == null ? + com.google.ads.googleads.v0.resources.RemarketingAction.getDefaultInstance() : remarketingAction_; } - - placeholderType_ = value.getNumber(); - onChanged(); - return this; } /** *
-     * Placeholder type. This is only used with feed item metrics.
+     * The remarketing action referenced in the query.
      * 
* - * .google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type = 65; + * .google.ads.googleads.v0.resources.RemarketingAction remarketing_action = 60; */ - public Builder clearPlaceholderType() { - - placeholderType_ = 0; - onChanged(); - return this; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.RemarketingAction, com.google.ads.googleads.v0.resources.RemarketingAction.Builder, com.google.ads.googleads.v0.resources.RemarketingActionOrBuilder> + getRemarketingActionFieldBuilder() { + if (remarketingActionBuilder_ == null) { + remarketingActionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.RemarketingAction, com.google.ads.googleads.v0.resources.RemarketingAction.Builder, com.google.ads.googleads.v0.resources.RemarketingActionOrBuilder>( + getRemarketingAction(), + getParentForChildren(), + isClean()); + remarketingAction_ = null; + } + return remarketingActionBuilder_; } - private com.google.protobuf.StringValue quarter_ = null; + private com.google.ads.googleads.v0.resources.TopicConstant topicConstant_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> quarterBuilder_; + com.google.ads.googleads.v0.resources.TopicConstant, com.google.ads.googleads.v0.resources.TopicConstant.Builder, com.google.ads.googleads.v0.resources.TopicConstantOrBuilder> topicConstantBuilder_; /** *
-     * Quarter as represented by the date of the first day of a quarter.
-     * Uses the calendar year for quarters, e.g., the second quarter of 2018
-     * starts on 2018-04-01. Formatted as yyyy-MM-dd.
+     * The topic constant referenced in the query.
      * 
* - * .google.protobuf.StringValue quarter = 12; + * .google.ads.googleads.v0.resources.TopicConstant topic_constant = 31; */ - public boolean hasQuarter() { - return quarterBuilder_ != null || quarter_ != null; + public boolean hasTopicConstant() { + return topicConstantBuilder_ != null || topicConstant_ != null; } /** *
-     * Quarter as represented by the date of the first day of a quarter.
-     * Uses the calendar year for quarters, e.g., the second quarter of 2018
-     * starts on 2018-04-01. Formatted as yyyy-MM-dd.
+     * The topic constant referenced in the query.
      * 
* - * .google.protobuf.StringValue quarter = 12; + * .google.ads.googleads.v0.resources.TopicConstant topic_constant = 31; */ - public com.google.protobuf.StringValue getQuarter() { - if (quarterBuilder_ == null) { - return quarter_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : quarter_; + public com.google.ads.googleads.v0.resources.TopicConstant getTopicConstant() { + if (topicConstantBuilder_ == null) { + return topicConstant_ == null ? com.google.ads.googleads.v0.resources.TopicConstant.getDefaultInstance() : topicConstant_; } else { - return quarterBuilder_.getMessage(); + return topicConstantBuilder_.getMessage(); } } /** *
-     * Quarter as represented by the date of the first day of a quarter.
-     * Uses the calendar year for quarters, e.g., the second quarter of 2018
-     * starts on 2018-04-01. Formatted as yyyy-MM-dd.
+     * The topic constant referenced in the query.
      * 
* - * .google.protobuf.StringValue quarter = 12; + * .google.ads.googleads.v0.resources.TopicConstant topic_constant = 31; */ - public Builder setQuarter(com.google.protobuf.StringValue value) { - if (quarterBuilder_ == null) { + public Builder setTopicConstant(com.google.ads.googleads.v0.resources.TopicConstant value) { + if (topicConstantBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - quarter_ = value; + topicConstant_ = value; onChanged(); } else { - quarterBuilder_.setMessage(value); + topicConstantBuilder_.setMessage(value); } return this; } /** *
-     * Quarter as represented by the date of the first day of a quarter.
-     * Uses the calendar year for quarters, e.g., the second quarter of 2018
-     * starts on 2018-04-01. Formatted as yyyy-MM-dd.
+     * The topic constant referenced in the query.
      * 
* - * .google.protobuf.StringValue quarter = 12; + * .google.ads.googleads.v0.resources.TopicConstant topic_constant = 31; */ - public Builder setQuarter( - com.google.protobuf.StringValue.Builder builderForValue) { - if (quarterBuilder_ == null) { - quarter_ = builderForValue.build(); + public Builder setTopicConstant( + com.google.ads.googleads.v0.resources.TopicConstant.Builder builderForValue) { + if (topicConstantBuilder_ == null) { + topicConstant_ = builderForValue.build(); onChanged(); } else { - quarterBuilder_.setMessage(builderForValue.build()); + topicConstantBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * Quarter as represented by the date of the first day of a quarter.
-     * Uses the calendar year for quarters, e.g., the second quarter of 2018
-     * starts on 2018-04-01. Formatted as yyyy-MM-dd.
+     * The topic constant referenced in the query.
      * 
* - * .google.protobuf.StringValue quarter = 12; + * .google.ads.googleads.v0.resources.TopicConstant topic_constant = 31; */ - public Builder mergeQuarter(com.google.protobuf.StringValue value) { - if (quarterBuilder_ == null) { - if (quarter_ != null) { - quarter_ = - com.google.protobuf.StringValue.newBuilder(quarter_).mergeFrom(value).buildPartial(); + public Builder mergeTopicConstant(com.google.ads.googleads.v0.resources.TopicConstant value) { + if (topicConstantBuilder_ == null) { + if (topicConstant_ != null) { + topicConstant_ = + com.google.ads.googleads.v0.resources.TopicConstant.newBuilder(topicConstant_).mergeFrom(value).buildPartial(); } else { - quarter_ = value; + topicConstant_ = value; } onChanged(); } else { - quarterBuilder_.mergeFrom(value); + topicConstantBuilder_.mergeFrom(value); } return this; } /** *
-     * Quarter as represented by the date of the first day of a quarter.
-     * Uses the calendar year for quarters, e.g., the second quarter of 2018
-     * starts on 2018-04-01. Formatted as yyyy-MM-dd.
+     * The topic constant referenced in the query.
      * 
* - * .google.protobuf.StringValue quarter = 12; + * .google.ads.googleads.v0.resources.TopicConstant topic_constant = 31; */ - public Builder clearQuarter() { - if (quarterBuilder_ == null) { - quarter_ = null; + public Builder clearTopicConstant() { + if (topicConstantBuilder_ == null) { + topicConstant_ = null; onChanged(); } else { - quarter_ = null; - quarterBuilder_ = null; + topicConstant_ = null; + topicConstantBuilder_ = null; } return this; } /** *
-     * Quarter as represented by the date of the first day of a quarter.
-     * Uses the calendar year for quarters, e.g., the second quarter of 2018
-     * starts on 2018-04-01. Formatted as yyyy-MM-dd.
+     * The topic constant referenced in the query.
      * 
* - * .google.protobuf.StringValue quarter = 12; + * .google.ads.googleads.v0.resources.TopicConstant topic_constant = 31; */ - public com.google.protobuf.StringValue.Builder getQuarterBuilder() { + public com.google.ads.googleads.v0.resources.TopicConstant.Builder getTopicConstantBuilder() { onChanged(); - return getQuarterFieldBuilder().getBuilder(); + return getTopicConstantFieldBuilder().getBuilder(); } /** *
-     * Quarter as represented by the date of the first day of a quarter.
-     * Uses the calendar year for quarters, e.g., the second quarter of 2018
-     * starts on 2018-04-01. Formatted as yyyy-MM-dd.
+     * The topic constant referenced in the query.
      * 
* - * .google.protobuf.StringValue quarter = 12; + * .google.ads.googleads.v0.resources.TopicConstant topic_constant = 31; */ - public com.google.protobuf.StringValueOrBuilder getQuarterOrBuilder() { - if (quarterBuilder_ != null) { - return quarterBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.resources.TopicConstantOrBuilder getTopicConstantOrBuilder() { + if (topicConstantBuilder_ != null) { + return topicConstantBuilder_.getMessageOrBuilder(); } else { - return quarter_ == null ? - com.google.protobuf.StringValue.getDefaultInstance() : quarter_; + return topicConstant_ == null ? + com.google.ads.googleads.v0.resources.TopicConstant.getDefaultInstance() : topicConstant_; } } /** *
-     * Quarter as represented by the date of the first day of a quarter.
-     * Uses the calendar year for quarters, e.g., the second quarter of 2018
-     * starts on 2018-04-01. Formatted as yyyy-MM-dd.
+     * The topic constant referenced in the query.
      * 
* - * .google.protobuf.StringValue quarter = 12; + * .google.ads.googleads.v0.resources.TopicConstant topic_constant = 31; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> - getQuarterFieldBuilder() { - if (quarterBuilder_ == null) { - quarterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( - getQuarter(), + com.google.ads.googleads.v0.resources.TopicConstant, com.google.ads.googleads.v0.resources.TopicConstant.Builder, com.google.ads.googleads.v0.resources.TopicConstantOrBuilder> + getTopicConstantFieldBuilder() { + if (topicConstantBuilder_ == null) { + topicConstantBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.TopicConstant, com.google.ads.googleads.v0.resources.TopicConstant.Builder, com.google.ads.googleads.v0.resources.TopicConstantOrBuilder>( + getTopicConstant(), getParentForChildren(), isClean()); - quarter_ = null; + topicConstant_ = null; } - return quarterBuilder_; + return topicConstantBuilder_; } - private int searchTermMatchType_ = 0; - /** - *
-     * Match type of the keyword that triggered the ad, including variants.
-     * 
- * - * .google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType search_term_match_type = 56; - */ - public int getSearchTermMatchTypeValue() { - return searchTermMatchType_; - } + private com.google.ads.googleads.v0.resources.Video video_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.Video, com.google.ads.googleads.v0.resources.Video.Builder, com.google.ads.googleads.v0.resources.VideoOrBuilder> videoBuilder_; /** *
-     * Match type of the keyword that triggered the ad, including variants.
+     * The video referenced in the query.
      * 
* - * .google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType search_term_match_type = 56; + * .google.ads.googleads.v0.resources.Video video = 39; */ - public Builder setSearchTermMatchTypeValue(int value) { - searchTermMatchType_ = value; - onChanged(); - return this; + public boolean hasVideo() { + return videoBuilder_ != null || video_ != null; } /** *
-     * Match type of the keyword that triggered the ad, including variants.
+     * The video referenced in the query.
      * 
* - * .google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType search_term_match_type = 56; + * .google.ads.googleads.v0.resources.Video video = 39; */ - public com.google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType getSearchTermMatchType() { - @SuppressWarnings("deprecation") - com.google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType result = com.google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType.valueOf(searchTermMatchType_); - return result == null ? com.google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType.UNRECOGNIZED : result; + public com.google.ads.googleads.v0.resources.Video getVideo() { + if (videoBuilder_ == null) { + return video_ == null ? com.google.ads.googleads.v0.resources.Video.getDefaultInstance() : video_; + } else { + return videoBuilder_.getMessage(); + } } /** *
-     * Match type of the keyword that triggered the ad, including variants.
+     * The video referenced in the query.
      * 
* - * .google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType search_term_match_type = 56; + * .google.ads.googleads.v0.resources.Video video = 39; */ - public Builder setSearchTermMatchType(com.google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType value) { - if (value == null) { - throw new NullPointerException(); + public Builder setVideo(com.google.ads.googleads.v0.resources.Video value) { + if (videoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + video_ = value; + onChanged(); + } else { + videoBuilder_.setMessage(value); } - - searchTermMatchType_ = value.getNumber(); - onChanged(); + return this; } /** *
-     * Match type of the keyword that triggered the ad, including variants.
+     * The video referenced in the query.
      * 
* - * .google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType search_term_match_type = 56; + * .google.ads.googleads.v0.resources.Video video = 39; */ - public Builder clearSearchTermMatchType() { - - searchTermMatchType_ = 0; - onChanged(); + public Builder setVideo( + com.google.ads.googleads.v0.resources.Video.Builder builderForValue) { + if (videoBuilder_ == null) { + video_ = builderForValue.build(); + onChanged(); + } else { + videoBuilder_.setMessage(builderForValue.build()); + } + return this; } - - private int slot_ = 0; /** *
-     * Position of the ad.
+     * The video referenced in the query.
      * 
* - * .google.ads.googleads.v0.enums.SlotEnum.Slot slot = 13; + * .google.ads.googleads.v0.resources.Video video = 39; */ - public int getSlotValue() { - return slot_; + public Builder mergeVideo(com.google.ads.googleads.v0.resources.Video value) { + if (videoBuilder_ == null) { + if (video_ != null) { + video_ = + com.google.ads.googleads.v0.resources.Video.newBuilder(video_).mergeFrom(value).buildPartial(); + } else { + video_ = value; + } + onChanged(); + } else { + videoBuilder_.mergeFrom(value); + } + + return this; } /** *
-     * Position of the ad.
+     * The video referenced in the query.
      * 
* - * .google.ads.googleads.v0.enums.SlotEnum.Slot slot = 13; + * .google.ads.googleads.v0.resources.Video video = 39; */ - public Builder setSlotValue(int value) { - slot_ = value; - onChanged(); + public Builder clearVideo() { + if (videoBuilder_ == null) { + video_ = null; + onChanged(); + } else { + video_ = null; + videoBuilder_ = null; + } + return this; } /** *
-     * Position of the ad.
+     * The video referenced in the query.
      * 
* - * .google.ads.googleads.v0.enums.SlotEnum.Slot slot = 13; + * .google.ads.googleads.v0.resources.Video video = 39; */ - public com.google.ads.googleads.v0.enums.SlotEnum.Slot getSlot() { - @SuppressWarnings("deprecation") - com.google.ads.googleads.v0.enums.SlotEnum.Slot result = com.google.ads.googleads.v0.enums.SlotEnum.Slot.valueOf(slot_); - return result == null ? com.google.ads.googleads.v0.enums.SlotEnum.Slot.UNRECOGNIZED : result; + public com.google.ads.googleads.v0.resources.Video.Builder getVideoBuilder() { + + onChanged(); + return getVideoFieldBuilder().getBuilder(); } /** *
-     * Position of the ad.
+     * The video referenced in the query.
      * 
* - * .google.ads.googleads.v0.enums.SlotEnum.Slot slot = 13; + * .google.ads.googleads.v0.resources.Video video = 39; */ - public Builder setSlot(com.google.ads.googleads.v0.enums.SlotEnum.Slot value) { - if (value == null) { - throw new NullPointerException(); + public com.google.ads.googleads.v0.resources.VideoOrBuilder getVideoOrBuilder() { + if (videoBuilder_ != null) { + return videoBuilder_.getMessageOrBuilder(); + } else { + return video_ == null ? + com.google.ads.googleads.v0.resources.Video.getDefaultInstance() : video_; } - - slot_ = value.getNumber(); - onChanged(); - return this; } /** *
-     * Position of the ad.
+     * The video referenced in the query.
      * 
* - * .google.ads.googleads.v0.enums.SlotEnum.Slot slot = 13; + * .google.ads.googleads.v0.resources.Video video = 39; */ - public Builder clearSlot() { - - slot_ = 0; - onChanged(); - return this; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.Video, com.google.ads.googleads.v0.resources.Video.Builder, com.google.ads.googleads.v0.resources.VideoOrBuilder> + getVideoFieldBuilder() { + if (videoBuilder_ == null) { + videoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.Video, com.google.ads.googleads.v0.resources.Video.Builder, com.google.ads.googleads.v0.resources.VideoOrBuilder>( + getVideo(), + getParentForChildren(), + isClean()); + video_ = null; + } + return videoBuilder_; } - private com.google.protobuf.StringValue week_ = null; + private com.google.ads.googleads.v0.common.Metrics metrics_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> weekBuilder_; + com.google.ads.googleads.v0.common.Metrics, com.google.ads.googleads.v0.common.Metrics.Builder, com.google.ads.googleads.v0.common.MetricsOrBuilder> metricsBuilder_; /** *
-     * Week as defined as Monday through Sunday, and represented by the date of
-     * Monday. Formatted as yyyy-MM-dd.
+     * The metrics.
      * 
* - * .google.protobuf.StringValue week = 14; + * .google.ads.googleads.v0.common.Metrics metrics = 4; */ - public boolean hasWeek() { - return weekBuilder_ != null || week_ != null; + public boolean hasMetrics() { + return metricsBuilder_ != null || metrics_ != null; } /** *
-     * Week as defined as Monday through Sunday, and represented by the date of
-     * Monday. Formatted as yyyy-MM-dd.
+     * The metrics.
      * 
* - * .google.protobuf.StringValue week = 14; + * .google.ads.googleads.v0.common.Metrics metrics = 4; */ - public com.google.protobuf.StringValue getWeek() { - if (weekBuilder_ == null) { - return week_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : week_; + public com.google.ads.googleads.v0.common.Metrics getMetrics() { + if (metricsBuilder_ == null) { + return metrics_ == null ? com.google.ads.googleads.v0.common.Metrics.getDefaultInstance() : metrics_; } else { - return weekBuilder_.getMessage(); + return metricsBuilder_.getMessage(); } } /** *
-     * Week as defined as Monday through Sunday, and represented by the date of
-     * Monday. Formatted as yyyy-MM-dd.
+     * The metrics.
      * 
* - * .google.protobuf.StringValue week = 14; + * .google.ads.googleads.v0.common.Metrics metrics = 4; */ - public Builder setWeek(com.google.protobuf.StringValue value) { - if (weekBuilder_ == null) { + public Builder setMetrics(com.google.ads.googleads.v0.common.Metrics value) { + if (metricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - week_ = value; + metrics_ = value; onChanged(); } else { - weekBuilder_.setMessage(value); + metricsBuilder_.setMessage(value); } return this; } /** *
-     * Week as defined as Monday through Sunday, and represented by the date of
-     * Monday. Formatted as yyyy-MM-dd.
+     * The metrics.
      * 
* - * .google.protobuf.StringValue week = 14; + * .google.ads.googleads.v0.common.Metrics metrics = 4; */ - public Builder setWeek( - com.google.protobuf.StringValue.Builder builderForValue) { - if (weekBuilder_ == null) { - week_ = builderForValue.build(); + public Builder setMetrics( + com.google.ads.googleads.v0.common.Metrics.Builder builderForValue) { + if (metricsBuilder_ == null) { + metrics_ = builderForValue.build(); onChanged(); } else { - weekBuilder_.setMessage(builderForValue.build()); + metricsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * Week as defined as Monday through Sunday, and represented by the date of
-     * Monday. Formatted as yyyy-MM-dd.
+     * The metrics.
      * 
* - * .google.protobuf.StringValue week = 14; + * .google.ads.googleads.v0.common.Metrics metrics = 4; */ - public Builder mergeWeek(com.google.protobuf.StringValue value) { - if (weekBuilder_ == null) { - if (week_ != null) { - week_ = - com.google.protobuf.StringValue.newBuilder(week_).mergeFrom(value).buildPartial(); + public Builder mergeMetrics(com.google.ads.googleads.v0.common.Metrics value) { + if (metricsBuilder_ == null) { + if (metrics_ != null) { + metrics_ = + com.google.ads.googleads.v0.common.Metrics.newBuilder(metrics_).mergeFrom(value).buildPartial(); } else { - week_ = value; + metrics_ = value; } onChanged(); } else { - weekBuilder_.mergeFrom(value); + metricsBuilder_.mergeFrom(value); } return this; } /** *
-     * Week as defined as Monday through Sunday, and represented by the date of
-     * Monday. Formatted as yyyy-MM-dd.
+     * The metrics.
      * 
* - * .google.protobuf.StringValue week = 14; + * .google.ads.googleads.v0.common.Metrics metrics = 4; */ - public Builder clearWeek() { - if (weekBuilder_ == null) { - week_ = null; + public Builder clearMetrics() { + if (metricsBuilder_ == null) { + metrics_ = null; onChanged(); } else { - week_ = null; - weekBuilder_ = null; + metrics_ = null; + metricsBuilder_ = null; } return this; } /** *
-     * Week as defined as Monday through Sunday, and represented by the date of
-     * Monday. Formatted as yyyy-MM-dd.
+     * The metrics.
      * 
* - * .google.protobuf.StringValue week = 14; + * .google.ads.googleads.v0.common.Metrics metrics = 4; */ - public com.google.protobuf.StringValue.Builder getWeekBuilder() { + public com.google.ads.googleads.v0.common.Metrics.Builder getMetricsBuilder() { onChanged(); - return getWeekFieldBuilder().getBuilder(); + return getMetricsFieldBuilder().getBuilder(); } /** *
-     * Week as defined as Monday through Sunday, and represented by the date of
-     * Monday. Formatted as yyyy-MM-dd.
+     * The metrics.
      * 
* - * .google.protobuf.StringValue week = 14; + * .google.ads.googleads.v0.common.Metrics metrics = 4; */ - public com.google.protobuf.StringValueOrBuilder getWeekOrBuilder() { - if (weekBuilder_ != null) { - return weekBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.common.MetricsOrBuilder getMetricsOrBuilder() { + if (metricsBuilder_ != null) { + return metricsBuilder_.getMessageOrBuilder(); } else { - return week_ == null ? - com.google.protobuf.StringValue.getDefaultInstance() : week_; + return metrics_ == null ? + com.google.ads.googleads.v0.common.Metrics.getDefaultInstance() : metrics_; } } /** *
-     * Week as defined as Monday through Sunday, and represented by the date of
-     * Monday. Formatted as yyyy-MM-dd.
+     * The metrics.
      * 
* - * .google.protobuf.StringValue week = 14; + * .google.ads.googleads.v0.common.Metrics metrics = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> - getWeekFieldBuilder() { - if (weekBuilder_ == null) { - weekBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( - getWeek(), + com.google.ads.googleads.v0.common.Metrics, com.google.ads.googleads.v0.common.Metrics.Builder, com.google.ads.googleads.v0.common.MetricsOrBuilder> + getMetricsFieldBuilder() { + if (metricsBuilder_ == null) { + metricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.Metrics, com.google.ads.googleads.v0.common.Metrics.Builder, com.google.ads.googleads.v0.common.MetricsOrBuilder>( + getMetrics(), getParentForChildren(), isClean()); - week_ = null; + metrics_ = null; } - return weekBuilder_; + return metricsBuilder_; } - private com.google.protobuf.Int32Value year_ = null; + private com.google.ads.googleads.v0.common.Segments segments_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> yearBuilder_; + com.google.ads.googleads.v0.common.Segments, com.google.ads.googleads.v0.common.Segments.Builder, com.google.ads.googleads.v0.common.SegmentsOrBuilder> segmentsBuilder_; /** *
-     * Year, formatted as yyyy.
+     * The segments.
      * 
* - * .google.protobuf.Int32Value year = 15; + * .google.ads.googleads.v0.common.Segments segments = 102; */ - public boolean hasYear() { - return yearBuilder_ != null || year_ != null; + public boolean hasSegments() { + return segmentsBuilder_ != null || segments_ != null; } /** *
-     * Year, formatted as yyyy.
+     * The segments.
      * 
* - * .google.protobuf.Int32Value year = 15; + * .google.ads.googleads.v0.common.Segments segments = 102; */ - public com.google.protobuf.Int32Value getYear() { - if (yearBuilder_ == null) { - return year_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : year_; + public com.google.ads.googleads.v0.common.Segments getSegments() { + if (segmentsBuilder_ == null) { + return segments_ == null ? com.google.ads.googleads.v0.common.Segments.getDefaultInstance() : segments_; } else { - return yearBuilder_.getMessage(); + return segmentsBuilder_.getMessage(); } } /** *
-     * Year, formatted as yyyy.
+     * The segments.
      * 
* - * .google.protobuf.Int32Value year = 15; + * .google.ads.googleads.v0.common.Segments segments = 102; */ - public Builder setYear(com.google.protobuf.Int32Value value) { - if (yearBuilder_ == null) { + public Builder setSegments(com.google.ads.googleads.v0.common.Segments value) { + if (segmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - year_ = value; + segments_ = value; onChanged(); } else { - yearBuilder_.setMessage(value); + segmentsBuilder_.setMessage(value); } return this; } /** *
-     * Year, formatted as yyyy.
+     * The segments.
      * 
* - * .google.protobuf.Int32Value year = 15; + * .google.ads.googleads.v0.common.Segments segments = 102; */ - public Builder setYear( - com.google.protobuf.Int32Value.Builder builderForValue) { - if (yearBuilder_ == null) { - year_ = builderForValue.build(); + public Builder setSegments( + com.google.ads.googleads.v0.common.Segments.Builder builderForValue) { + if (segmentsBuilder_ == null) { + segments_ = builderForValue.build(); onChanged(); } else { - yearBuilder_.setMessage(builderForValue.build()); + segmentsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-     * Year, formatted as yyyy.
+     * The segments.
      * 
* - * .google.protobuf.Int32Value year = 15; + * .google.ads.googleads.v0.common.Segments segments = 102; */ - public Builder mergeYear(com.google.protobuf.Int32Value value) { - if (yearBuilder_ == null) { - if (year_ != null) { - year_ = - com.google.protobuf.Int32Value.newBuilder(year_).mergeFrom(value).buildPartial(); + public Builder mergeSegments(com.google.ads.googleads.v0.common.Segments value) { + if (segmentsBuilder_ == null) { + if (segments_ != null) { + segments_ = + com.google.ads.googleads.v0.common.Segments.newBuilder(segments_).mergeFrom(value).buildPartial(); } else { - year_ = value; + segments_ = value; } onChanged(); } else { - yearBuilder_.mergeFrom(value); + segmentsBuilder_.mergeFrom(value); } return this; } /** *
-     * Year, formatted as yyyy.
+     * The segments.
      * 
* - * .google.protobuf.Int32Value year = 15; + * .google.ads.googleads.v0.common.Segments segments = 102; */ - public Builder clearYear() { - if (yearBuilder_ == null) { - year_ = null; + public Builder clearSegments() { + if (segmentsBuilder_ == null) { + segments_ = null; onChanged(); } else { - year_ = null; - yearBuilder_ = null; + segments_ = null; + segmentsBuilder_ = null; } return this; } /** *
-     * Year, formatted as yyyy.
+     * The segments.
      * 
* - * .google.protobuf.Int32Value year = 15; + * .google.ads.googleads.v0.common.Segments segments = 102; */ - public com.google.protobuf.Int32Value.Builder getYearBuilder() { + public com.google.ads.googleads.v0.common.Segments.Builder getSegmentsBuilder() { onChanged(); - return getYearFieldBuilder().getBuilder(); + return getSegmentsFieldBuilder().getBuilder(); } /** *
-     * Year, formatted as yyyy.
+     * The segments.
      * 
* - * .google.protobuf.Int32Value year = 15; + * .google.ads.googleads.v0.common.Segments segments = 102; */ - public com.google.protobuf.Int32ValueOrBuilder getYearOrBuilder() { - if (yearBuilder_ != null) { - return yearBuilder_.getMessageOrBuilder(); + public com.google.ads.googleads.v0.common.SegmentsOrBuilder getSegmentsOrBuilder() { + if (segmentsBuilder_ != null) { + return segmentsBuilder_.getMessageOrBuilder(); } else { - return year_ == null ? - com.google.protobuf.Int32Value.getDefaultInstance() : year_; + return segments_ == null ? + com.google.ads.googleads.v0.common.Segments.getDefaultInstance() : segments_; } } /** *
-     * Year, formatted as yyyy.
+     * The segments.
      * 
* - * .google.protobuf.Int32Value year = 15; + * .google.ads.googleads.v0.common.Segments segments = 102; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> - getYearFieldBuilder() { - if (yearBuilder_ == null) { - yearBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( - getYear(), + com.google.ads.googleads.v0.common.Segments, com.google.ads.googleads.v0.common.Segments.Builder, com.google.ads.googleads.v0.common.SegmentsOrBuilder> + getSegmentsFieldBuilder() { + if (segmentsBuilder_ == null) { + segmentsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.common.Segments, com.google.ads.googleads.v0.common.Segments.Builder, com.google.ads.googleads.v0.common.SegmentsOrBuilder>( + getSegments(), getParentForChildren(), isClean()); - year_ = null; + segments_ = null; } - return yearBuilder_; + return segmentsBuilder_; } @java.lang.Override public final Builder setUnknownFields( diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GoogleAdsRowOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GoogleAdsRowOrBuilder.java index 2b2f72c2af..600bc97b2e 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GoogleAdsRowOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GoogleAdsRowOrBuilder.java @@ -232,6 +232,31 @@ public interface GoogleAdsRowOrBuilder extends */ com.google.ads.googleads.v0.resources.AgeRangeViewOrBuilder getAgeRangeViewOrBuilder(); + /** + *
+   * The ad schedule view referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.AdScheduleView ad_schedule_view = 89; + */ + boolean hasAdScheduleView(); + /** + *
+   * The ad schedule view referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.AdScheduleView ad_schedule_view = 89; + */ + com.google.ads.googleads.v0.resources.AdScheduleView getAdScheduleView(); + /** + *
+   * The ad schedule view referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.AdScheduleView ad_schedule_view = 89; + */ + com.google.ads.googleads.v0.resources.AdScheduleViewOrBuilder getAdScheduleViewOrBuilder(); + /** *
    * The bidding strategy referenced in the query.
@@ -432,31 +457,6 @@ public interface GoogleAdsRowOrBuilder extends
    */
   com.google.ads.googleads.v0.resources.CampaignFeedOrBuilder getCampaignFeedOrBuilder();
 
-  /**
-   * 
-   * Campaign Group referenced in AWQL query.
-   * 
- * - * .google.ads.googleads.v0.resources.CampaignGroup campaign_group = 25; - */ - boolean hasCampaignGroup(); - /** - *
-   * Campaign Group referenced in AWQL query.
-   * 
- * - * .google.ads.googleads.v0.resources.CampaignGroup campaign_group = 25; - */ - com.google.ads.googleads.v0.resources.CampaignGroup getCampaignGroup(); - /** - *
-   * Campaign Group referenced in AWQL query.
-   * 
- * - * .google.ads.googleads.v0.resources.CampaignGroup campaign_group = 25; - */ - com.google.ads.googleads.v0.resources.CampaignGroupOrBuilder getCampaignGroupOrBuilder(); - /** *
    * Campaign Shared Set referenced in AWQL query.
@@ -532,6 +532,31 @@ public interface GoogleAdsRowOrBuilder extends
    */
   com.google.ads.googleads.v0.resources.ChangeStatusOrBuilder getChangeStatusOrBuilder();
 
+  /**
+   * 
+   * The conversion action referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.ConversionAction conversion_action = 103; + */ + boolean hasConversionAction(); + /** + *
+   * The conversion action referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.ConversionAction conversion_action = 103; + */ + com.google.ads.googleads.v0.resources.ConversionAction getConversionAction(); + /** + *
+   * The conversion action referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.ConversionAction conversion_action = 103; + */ + com.google.ads.googleads.v0.resources.ConversionActionOrBuilder getConversionActionOrBuilder(); + /** *
    * The customer referenced in the query.
@@ -1057,6 +1082,106 @@ public interface GoogleAdsRowOrBuilder extends
    */
   com.google.ads.googleads.v0.resources.ManagedPlacementViewOrBuilder getManagedPlacementViewOrBuilder();
 
+  /**
+   * 
+   * The media file referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.MediaFile media_file = 90; + */ + boolean hasMediaFile(); + /** + *
+   * The media file referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.MediaFile media_file = 90; + */ + com.google.ads.googleads.v0.resources.MediaFile getMediaFile(); + /** + *
+   * The media file referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.MediaFile media_file = 90; + */ + com.google.ads.googleads.v0.resources.MediaFileOrBuilder getMediaFileOrBuilder(); + + /** + *
+   * The mobile app category constant referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.MobileAppCategoryConstant mobile_app_category_constant = 87; + */ + boolean hasMobileAppCategoryConstant(); + /** + *
+   * The mobile app category constant referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.MobileAppCategoryConstant mobile_app_category_constant = 87; + */ + com.google.ads.googleads.v0.resources.MobileAppCategoryConstant getMobileAppCategoryConstant(); + /** + *
+   * The mobile app category constant referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.MobileAppCategoryConstant mobile_app_category_constant = 87; + */ + com.google.ads.googleads.v0.resources.MobileAppCategoryConstantOrBuilder getMobileAppCategoryConstantOrBuilder(); + + /** + *
+   * The mobile device constant referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.MobileDeviceConstant mobile_device_constant = 98; + */ + boolean hasMobileDeviceConstant(); + /** + *
+   * The mobile device constant referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.MobileDeviceConstant mobile_device_constant = 98; + */ + com.google.ads.googleads.v0.resources.MobileDeviceConstant getMobileDeviceConstant(); + /** + *
+   * The mobile device constant referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.MobileDeviceConstant mobile_device_constant = 98; + */ + com.google.ads.googleads.v0.resources.MobileDeviceConstantOrBuilder getMobileDeviceConstantOrBuilder(); + + /** + *
+   * The operating system version constant referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.OperatingSystemVersionConstant operating_system_version_constant = 86; + */ + boolean hasOperatingSystemVersionConstant(); + /** + *
+   * The operating system version constant referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.OperatingSystemVersionConstant operating_system_version_constant = 86; + */ + com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant getOperatingSystemVersionConstant(); + /** + *
+   * The operating system version constant referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.OperatingSystemVersionConstant operating_system_version_constant = 86; + */ + com.google.ads.googleads.v0.resources.OperatingSystemVersionConstantOrBuilder getOperatingSystemVersionConstantOrBuilder(); + /** *
    * The parental status view referenced in the query.
@@ -1282,6 +1407,31 @@ public interface GoogleAdsRowOrBuilder extends
    */
   com.google.ads.googleads.v0.resources.UserListOrBuilder getUserListOrBuilder();
 
+  /**
+   * 
+   * The remarketing action referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.RemarketingAction remarketing_action = 60; + */ + boolean hasRemarketingAction(); + /** + *
+   * The remarketing action referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.RemarketingAction remarketing_action = 60; + */ + com.google.ads.googleads.v0.resources.RemarketingAction getRemarketingAction(); + /** + *
+   * The remarketing action referenced in the query.
+   * 
+ * + * .google.ads.googleads.v0.resources.RemarketingAction remarketing_action = 60; + */ + com.google.ads.googleads.v0.resources.RemarketingActionOrBuilder getRemarketingActionOrBuilder(); + /** *
    * The topic constant referenced in the query.
@@ -1359,544 +1509,26 @@ public interface GoogleAdsRowOrBuilder extends
 
   /**
    * 
-   * Ad network type.
-   * 
- * - * .google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType ad_network_type = 5; - */ - int getAdNetworkTypeValue(); - /** - *
-   * Ad network type.
-   * 
- * - * .google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType ad_network_type = 5; - */ - com.google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType getAdNetworkType(); - - /** - *
-   * Date to which metrics apply.
-   * yyyy-MM-dd format, e.g., 2018-04-17.
-   * 
- * - * .google.protobuf.StringValue date = 6; - */ - boolean hasDate(); - /** - *
-   * Date to which metrics apply.
-   * yyyy-MM-dd format, e.g., 2018-04-17.
-   * 
- * - * .google.protobuf.StringValue date = 6; - */ - com.google.protobuf.StringValue getDate(); - /** - *
-   * Date to which metrics apply.
-   * yyyy-MM-dd format, e.g., 2018-04-17.
-   * 
- * - * .google.protobuf.StringValue date = 6; - */ - com.google.protobuf.StringValueOrBuilder getDateOrBuilder(); - - /** - *
-   * Day of the week, e.g., MONDAY.
-   * 
- * - * .google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek day_of_week = 7; - */ - int getDayOfWeekValue(); - /** - *
-   * Day of the week, e.g., MONDAY.
-   * 
- * - * .google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek day_of_week = 7; - */ - com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek getDayOfWeek(); - - /** - *
-   * Device to which metrics apply.
-   * 
- * - * .google.ads.googleads.v0.enums.DeviceEnum.Device device = 8; - */ - int getDeviceValue(); - /** - *
-   * Device to which metrics apply.
-   * 
- * - * .google.ads.googleads.v0.enums.DeviceEnum.Device device = 8; - */ - com.google.ads.googleads.v0.enums.DeviceEnum.Device getDevice(); - - /** - *
-   * Hotel booking window in days.
-   * 
- * - * .google.protobuf.Int64Value hotel_booking_window_days = 83; - */ - boolean hasHotelBookingWindowDays(); - /** - *
-   * Hotel booking window in days.
-   * 
- * - * .google.protobuf.Int64Value hotel_booking_window_days = 83; - */ - com.google.protobuf.Int64Value getHotelBookingWindowDays(); - /** - *
-   * Hotel booking window in days.
-   * 
- * - * .google.protobuf.Int64Value hotel_booking_window_days = 83; - */ - com.google.protobuf.Int64ValueOrBuilder getHotelBookingWindowDaysOrBuilder(); - - /** - *
-   * Hotel center ID.
-   * 
- * - * .google.protobuf.Int64Value hotel_center_id = 72; - */ - boolean hasHotelCenterId(); - /** - *
-   * Hotel center ID.
-   * 
- * - * .google.protobuf.Int64Value hotel_center_id = 72; - */ - com.google.protobuf.Int64Value getHotelCenterId(); - /** - *
-   * Hotel center ID.
-   * 
- * - * .google.protobuf.Int64Value hotel_center_id = 72; - */ - com.google.protobuf.Int64ValueOrBuilder getHotelCenterIdOrBuilder(); - - /** - *
-   * Hotel check-in date. Formatted as yyyy-MM-dd.
-   * 
- * - * .google.protobuf.StringValue hotel_check_in_date = 73; - */ - boolean hasHotelCheckInDate(); - /** - *
-   * Hotel check-in date. Formatted as yyyy-MM-dd.
-   * 
- * - * .google.protobuf.StringValue hotel_check_in_date = 73; - */ - com.google.protobuf.StringValue getHotelCheckInDate(); - /** - *
-   * Hotel check-in date. Formatted as yyyy-MM-dd.
-   * 
- * - * .google.protobuf.StringValue hotel_check_in_date = 73; - */ - com.google.protobuf.StringValueOrBuilder getHotelCheckInDateOrBuilder(); - - /** - *
-   * Hotel check-in day of week.
-   * 
- * - * .google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek hotel_check_in_day_of_week = 74; - */ - int getHotelCheckInDayOfWeekValue(); - /** - *
-   * Hotel check-in day of week.
-   * 
- * - * .google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek hotel_check_in_day_of_week = 74; - */ - com.google.ads.googleads.v0.enums.DayOfWeekEnum.DayOfWeek getHotelCheckInDayOfWeek(); - - /** - *
-   * Hotel city.
-   * 
- * - * .google.protobuf.StringValue hotel_city = 75; - */ - boolean hasHotelCity(); - /** - *
-   * Hotel city.
-   * 
- * - * .google.protobuf.StringValue hotel_city = 75; - */ - com.google.protobuf.StringValue getHotelCity(); - /** - *
-   * Hotel city.
-   * 
- * - * .google.protobuf.StringValue hotel_city = 75; - */ - com.google.protobuf.StringValueOrBuilder getHotelCityOrBuilder(); - - /** - *
-   * Hotel class.
-   * 
- * - * .google.protobuf.Int32Value hotel_class = 76; - */ - boolean hasHotelClass(); - /** - *
-   * Hotel class.
-   * 
- * - * .google.protobuf.Int32Value hotel_class = 76; - */ - com.google.protobuf.Int32Value getHotelClass(); - /** - *
-   * Hotel class.
-   * 
- * - * .google.protobuf.Int32Value hotel_class = 76; - */ - com.google.protobuf.Int32ValueOrBuilder getHotelClassOrBuilder(); - - /** - *
-   * Hotel country.
-   * 
- * - * .google.protobuf.StringValue hotel_country = 77; - */ - boolean hasHotelCountry(); - /** - *
-   * Hotel country.
-   * 
- * - * .google.protobuf.StringValue hotel_country = 77; - */ - com.google.protobuf.StringValue getHotelCountry(); - /** - *
-   * Hotel country.
-   * 
- * - * .google.protobuf.StringValue hotel_country = 77; - */ - com.google.protobuf.StringValueOrBuilder getHotelCountryOrBuilder(); - - /** - *
-   * Hotel date selection type.
-   * 
- * - * .google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType hotel_date_selection_type = 78; - */ - int getHotelDateSelectionTypeValue(); - /** - *
-   * Hotel date selection type.
-   * 
- * - * .google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType hotel_date_selection_type = 78; - */ - com.google.ads.googleads.v0.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType getHotelDateSelectionType(); - - /** - *
-   * Hotel length of stay.
-   * 
- * - * .google.protobuf.Int32Value hotel_length_of_stay = 79; - */ - boolean hasHotelLengthOfStay(); - /** - *
-   * Hotel length of stay.
-   * 
- * - * .google.protobuf.Int32Value hotel_length_of_stay = 79; - */ - com.google.protobuf.Int32Value getHotelLengthOfStay(); - /** - *
-   * Hotel length of stay.
-   * 
- * - * .google.protobuf.Int32Value hotel_length_of_stay = 79; - */ - com.google.protobuf.Int32ValueOrBuilder getHotelLengthOfStayOrBuilder(); - - /** - *
-   * Hotel state.
-   * 
- * - * .google.protobuf.StringValue hotel_state = 81; - */ - boolean hasHotelState(); - /** - *
-   * Hotel state.
-   * 
- * - * .google.protobuf.StringValue hotel_state = 81; - */ - com.google.protobuf.StringValue getHotelState(); - /** - *
-   * Hotel state.
-   * 
- * - * .google.protobuf.StringValue hotel_state = 81; - */ - com.google.protobuf.StringValueOrBuilder getHotelStateOrBuilder(); - - /** - *
-   * Hour of day as a number between 0 and 23, inclusive.
-   * 
- * - * .google.protobuf.Int32Value hour = 9; - */ - boolean hasHour(); - /** - *
-   * Hour of day as a number between 0 and 23, inclusive.
-   * 
- * - * .google.protobuf.Int32Value hour = 9; - */ - com.google.protobuf.Int32Value getHour(); - /** - *
-   * Hour of day as a number between 0 and 23, inclusive.
-   * 
- * - * .google.protobuf.Int32Value hour = 9; - */ - com.google.protobuf.Int32ValueOrBuilder getHourOrBuilder(); - - /** - *
-   * Month as represented by the date of the first day of a month. Formatted as
-   * yyyy-MM-dd.
-   * 
- * - * .google.protobuf.StringValue month = 10; - */ - boolean hasMonth(); - /** - *
-   * Month as represented by the date of the first day of a month. Formatted as
-   * yyyy-MM-dd.
-   * 
- * - * .google.protobuf.StringValue month = 10; - */ - com.google.protobuf.StringValue getMonth(); - /** - *
-   * Month as represented by the date of the first day of a month. Formatted as
-   * yyyy-MM-dd.
-   * 
- * - * .google.protobuf.StringValue month = 10; - */ - com.google.protobuf.StringValueOrBuilder getMonthOrBuilder(); - - /** - *
-   * Month of the year, e.g., January.
-   * 
- * - * .google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear month_of_year = 28; - */ - int getMonthOfYearValue(); - /** - *
-   * Month of the year, e.g., January.
-   * 
- * - * .google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear month_of_year = 28; - */ - com.google.ads.googleads.v0.enums.MonthOfYearEnum.MonthOfYear getMonthOfYear(); - - /** - *
-   * Partner hotel ID.
-   * 
- * - * .google.protobuf.StringValue partner_hotel_id = 82; - */ - boolean hasPartnerHotelId(); - /** - *
-   * Partner hotel ID.
-   * 
- * - * .google.protobuf.StringValue partner_hotel_id = 82; - */ - com.google.protobuf.StringValue getPartnerHotelId(); - /** - *
-   * Partner hotel ID.
-   * 
- * - * .google.protobuf.StringValue partner_hotel_id = 82; - */ - com.google.protobuf.StringValueOrBuilder getPartnerHotelIdOrBuilder(); - - /** - *
-   * Placeholder type. This is only used with feed item metrics.
-   * 
- * - * .google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type = 65; - */ - int getPlaceholderTypeValue(); - /** - *
-   * Placeholder type. This is only used with feed item metrics.
-   * 
- * - * .google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type = 65; - */ - com.google.ads.googleads.v0.enums.PlaceholderTypeEnum.PlaceholderType getPlaceholderType(); - - /** - *
-   * Quarter as represented by the date of the first day of a quarter.
-   * Uses the calendar year for quarters, e.g., the second quarter of 2018
-   * starts on 2018-04-01. Formatted as yyyy-MM-dd.
-   * 
- * - * .google.protobuf.StringValue quarter = 12; - */ - boolean hasQuarter(); - /** - *
-   * Quarter as represented by the date of the first day of a quarter.
-   * Uses the calendar year for quarters, e.g., the second quarter of 2018
-   * starts on 2018-04-01. Formatted as yyyy-MM-dd.
-   * 
- * - * .google.protobuf.StringValue quarter = 12; - */ - com.google.protobuf.StringValue getQuarter(); - /** - *
-   * Quarter as represented by the date of the first day of a quarter.
-   * Uses the calendar year for quarters, e.g., the second quarter of 2018
-   * starts on 2018-04-01. Formatted as yyyy-MM-dd.
-   * 
- * - * .google.protobuf.StringValue quarter = 12; - */ - com.google.protobuf.StringValueOrBuilder getQuarterOrBuilder(); - - /** - *
-   * Match type of the keyword that triggered the ad, including variants.
-   * 
- * - * .google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType search_term_match_type = 56; - */ - int getSearchTermMatchTypeValue(); - /** - *
-   * Match type of the keyword that triggered the ad, including variants.
-   * 
- * - * .google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType search_term_match_type = 56; - */ - com.google.ads.googleads.v0.enums.SearchTermMatchTypeEnum.SearchTermMatchType getSearchTermMatchType(); - - /** - *
-   * Position of the ad.
-   * 
- * - * .google.ads.googleads.v0.enums.SlotEnum.Slot slot = 13; - */ - int getSlotValue(); - /** - *
-   * Position of the ad.
-   * 
- * - * .google.ads.googleads.v0.enums.SlotEnum.Slot slot = 13; - */ - com.google.ads.googleads.v0.enums.SlotEnum.Slot getSlot(); - - /** - *
-   * Week as defined as Monday through Sunday, and represented by the date of
-   * Monday. Formatted as yyyy-MM-dd.
-   * 
- * - * .google.protobuf.StringValue week = 14; - */ - boolean hasWeek(); - /** - *
-   * Week as defined as Monday through Sunday, and represented by the date of
-   * Monday. Formatted as yyyy-MM-dd.
-   * 
- * - * .google.protobuf.StringValue week = 14; - */ - com.google.protobuf.StringValue getWeek(); - /** - *
-   * Week as defined as Monday through Sunday, and represented by the date of
-   * Monday. Formatted as yyyy-MM-dd.
-   * 
- * - * .google.protobuf.StringValue week = 14; - */ - com.google.protobuf.StringValueOrBuilder getWeekOrBuilder(); - - /** - *
-   * Year, formatted as yyyy.
+   * The segments.
    * 
* - * .google.protobuf.Int32Value year = 15; + * .google.ads.googleads.v0.common.Segments segments = 102; */ - boolean hasYear(); + boolean hasSegments(); /** *
-   * Year, formatted as yyyy.
+   * The segments.
    * 
* - * .google.protobuf.Int32Value year = 15; + * .google.ads.googleads.v0.common.Segments segments = 102; */ - com.google.protobuf.Int32Value getYear(); + com.google.ads.googleads.v0.common.Segments getSegments(); /** *
-   * Year, formatted as yyyy.
+   * The segments.
    * 
* - * .google.protobuf.Int32Value year = 15; + * .google.ads.googleads.v0.common.Segments segments = 102; */ - com.google.protobuf.Int32ValueOrBuilder getYearOrBuilder(); + com.google.ads.googleads.v0.common.SegmentsOrBuilder getSegmentsOrBuilder(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GoogleAdsServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GoogleAdsServiceClient.java index 0fd16cd22b..2405a4ab34 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GoogleAdsServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GoogleAdsServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -44,7 +44,9 @@ * try (GoogleAdsServiceClient googleAdsServiceClient = GoogleAdsServiceClient.create()) { * String customerId = ""; * List<MutateOperation> mutateOperations = new ArrayList<>(); - * MutateGoogleAdsResponse response = googleAdsServiceClient.mutate(customerId, mutateOperations); + * boolean partialFailure = false; + * boolean validateOnly = false; + * MutateGoogleAdsResponse response = googleAdsServiceClient.mutate(customerId, mutateOperations, partialFailure, validateOnly); * } * *
@@ -154,6 +156,38 @@ public GoogleAdsServiceStub getStub() { return stub; } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns all rows that match the search query. + * + *

Sample code: + * + *


+   * try (GoogleAdsServiceClient googleAdsServiceClient = GoogleAdsServiceClient.create()) {
+   *   String customerId = "";
+   *   String query = "";
+   *   boolean validateOnly = false;
+   *   for (GoogleAdsRow element : googleAdsServiceClient.search(customerId, query, validateOnly).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param customerId The ID of the customer being queried. + * @param query The query string. + * @param validateOnly If true, the request is validated but not executed. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchPagedResponse search(String customerId, String query, boolean validateOnly) { + SearchGoogleAdsRequest request = + SearchGoogleAdsRequest.newBuilder() + .setCustomerId(customerId) + .setQuery(query) + .setValidateOnly(validateOnly) + .build(); + return search(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Returns all rows that match the search query. @@ -266,6 +300,47 @@ public final UnaryCallable sear return stub.searchCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates, updates, or removes resources. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (GoogleAdsServiceClient googleAdsServiceClient = GoogleAdsServiceClient.create()) {
+   *   String customerId = "";
+   *   List<MutateOperation> mutateOperations = new ArrayList<>();
+   *   boolean partialFailure = false;
+   *   boolean validateOnly = false;
+   *   MutateGoogleAdsResponse response = googleAdsServiceClient.mutate(customerId, mutateOperations, partialFailure, validateOnly);
+   * }
+   * 
+ * + * @param customerId The ID of the customer whose resources are being modified. + * @param mutateOperations The list of operations to perform on individual resources. + * @param partialFailure If true, successful operations will be carried out and invalid operations + * will return errors. If false, all operations will be carried out in one transaction if and + * only if they are all valid. Default is false. + * @param validateOnly If true, the request is validated but not executed. Only errors are + * returned, not results. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateGoogleAdsResponse mutate( + String customerId, + List mutateOperations, + boolean partialFailure, + boolean validateOnly) { + + MutateGoogleAdsRequest request = + MutateGoogleAdsRequest.newBuilder() + .setCustomerId(customerId) + .addAllMutateOperations(mutateOperations) + .setPartialFailure(partialFailure) + .setValidateOnly(validateOnly) + .build(); + return mutate(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Creates, updates, or removes resources. Operation statuses are returned. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GoogleAdsServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GoogleAdsServiceProto.java index 5b0679c536..8a0f82fcd5 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GoogleAdsServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GoogleAdsServiceProto.java @@ -61,364 +61,338 @@ public static void registerAllExtensions( "\n9google/ads/googleads/v0/services/googl" + "e_ads_service.proto\022 google.ads.googlead" + "s.v0.services\032,google/ads/googleads/v0/c" + - "ommon/metrics.proto\0323google/ads/googlead" + - "s/v0/enums/ad_network_type.proto\032/google" + - "/ads/googleads/v0/enums/day_of_week.prot" + - "o\032*google/ads/googleads/v0/enums/device." + - "proto\032=google/ads/googleads/v0/enums/hot" + - "el_date_selection_type.proto\0321google/ads" + - "/googleads/v0/enums/month_of_year.proto\032" + - "4google/ads/googleads/v0/enums/placehold" + - "er_type.proto\032:google/ads/googleads/v0/e" + - "nums/search_term_match_type.proto\032(googl" + - "e/ads/googleads/v0/enums/slot.proto\0326goo" + - "gle/ads/googleads/v0/resources/account_b" + - "udget.proto\032?google/ads/googleads/v0/res" + - "ources/account_budget_proposal.proto\0320go" + - "ogle/ads/googleads/v0/resources/ad_group" + - ".proto\0323google/ads/googleads/v0/resource" + - "s/ad_group_ad.proto\032>google/ads/googlead" + - "s/v0/resources/ad_group_audience_view.pr" + - "oto\032=google/ads/googleads/v0/resources/a" + - "d_group_bid_modifier.proto\032:google/ads/g" + - "oogleads/v0/resources/ad_group_criterion" + - ".proto\0325google/ads/googleads/v0/resource" + - "s/ad_group_feed.proto\0326google/ads/google" + - "ads/v0/resources/age_range_view.proto\0328g" + - "oogle/ads/googleads/v0/resources/bidding" + - "_strategy.proto\0325google/ads/googleads/v0" + - "/resources/billing_setup.proto\0320google/a" + - "ds/googleads/v0/resources/campaign.proto" + - "\032>google/ads/googleads/v0/resources/camp" + - "aign_audience_view.proto\032=google/ads/goo" + - "gleads/v0/resources/campaign_bid_modifie" + - "r.proto\0327google/ads/googleads/v0/resourc" + - "es/campaign_budget.proto\032:google/ads/goo" + - "gleads/v0/resources/campaign_criterion.p" + - "roto\0325google/ads/googleads/v0/resources/" + - "campaign_feed.proto\0326google/ads/googlead" + - "s/v0/resources/campaign_group.proto\032;goo" + - "gle/ads/googleads/v0/resources/campaign_" + - "shared_set.proto\0328google/ads/googleads/v" + - "0/resources/carrier_constant.proto\0325goog" + - "le/ads/googleads/v0/resources/change_sta" + - "tus.proto\0320google/ads/googleads/v0/resou" + - "rces/customer.proto\0327google/ads/googlead" + - "s/v0/resources/customer_client.proto\032google/ads/googleads/v0/resources/hot" + - "el_performance_view.proto\0324google/ads/go" + - "ogleads/v0/resources/keyword_plan.proto\032" + - "=google/ads/googleads/v0/resources/keywo" + - "rd_plan_ad_group.proto\032=google/ads/googl" + - "eads/v0/resources/keyword_plan_campaign." + - "proto\032google/ads/googleads/v0/res" + - "ources/managed_placement_view.proto\032google/" + - "ads/googleads/v0/services/campaign_budge" + - "t_service.proto\032Agoogle/ads/googleads/v0" + - "/services/campaign_criterion_service.pro" + - "to\032=google/ads/googleads/v0/services/cam" + - "paign_group_service.proto\0327google/ads/go" + - "ogleads/v0/services/campaign_service.pro" + - "to\032Bgoogle/ads/googleads/v0/services/cam" + - "paign_shared_set_service.proto\032@google/a" + - "ds/googleads/v0/services/conversion_acti" + - "on_service.proto\032?google/ads/googleads/v" + - "0/services/shared_criterion_service.prot" + - "o\0329google/ads/googleads/v0/services/shar" + - "ed_set_service.proto\0328google/ads/googlea" + - "ds/v0/services/user_list_service.proto\032\034" + - "google/api/annotations.proto\032 google/pro" + - "tobuf/field_mask.proto\032\036google/protobuf/" + - "wrappers.proto\"c\n\026SearchGoogleAdsRequest" + - "\022\023\n\013customer_id\030\001 \001(\t\022\r\n\005query\030\002 \001(\t\022\022\n\n" + - "page_token\030\003 \001(\t\022\021\n\tpage_size\030\004 \001(\005\"\300\001\n\027" + - "SearchGoogleAdsResponse\022?\n\007results\030\001 \003(\013" + - "2..google.ads.googleads.v0.services.Goog" + - "leAdsRow\022\027\n\017next_page_token\030\002 \001(\t\022\033\n\023tot" + - "al_results_count\030\003 \001(\003\022.\n\nfield_mask\030\005 \001" + - "(\0132\032.google.protobuf.FieldMask\"\255,\n\014Googl" + - "eAdsRow\022H\n\016account_budget\030* \001(\01320.google" + - ".ads.googleads.v0.resources.AccountBudge" + - "t\022Y\n\027account_budget_proposal\030+ \001(\01328.goo" + - "gle.ads.googleads.v0.resources.AccountBu" + - "dgetProposal\022<\n\010ad_group\030\003 \001(\0132*.google." + - "ads.googleads.v0.resources.AdGroup\022A\n\013ad" + - "_group_ad\030\020 \001(\0132,.google.ads.googleads.v" + - "0.resources.AdGroupAd\022V\n\026ad_group_audien" + - "ce_view\0309 \001(\01326.google.ads.googleads.v0." + - "resources.AdGroupAudienceView\022T\n\025ad_grou" + - "p_bid_modifier\030\030 \001(\01325.google.ads.google" + - "ads.v0.resources.AdGroupBidModifier\022O\n\022a" + - "d_group_criterion\030\021 \001(\01323.google.ads.goo" + - "gleads.v0.resources.AdGroupCriterion\022E\n\r" + - "ad_group_feed\030C \001(\0132..google.ads.googlea" + - "ds.v0.resources.AdGroupFeed\022G\n\016age_range" + - "_view\0300 \001(\0132/.google.ads.googleads.v0.re" + - "sources.AgeRangeView\022L\n\020bidding_strategy" + - "\030\022 \001(\01322.google.ads.googleads.v0.resourc" + - "es.BiddingStrategy\022F\n\rbilling_setup\030) \001(" + - "\0132/.google.ads.googleads.v0.resources.Bi" + - "llingSetup\022J\n\017campaign_budget\030\023 \001(\01321.go" + - "ogle.ads.googleads.v0.resources.Campaign" + - "Budget\022=\n\010campaign\030\002 \001(\0132+.google.ads.go" + - "ogleads.v0.resources.Campaign\022W\n\026campaig" + - "n_audience_view\030E \001(\01327.google.ads.googl" + - "eads.v0.resources.CampaignAudienceView\022U" + - "\n\025campaign_bid_modifier\030\032 \001(\01326.google.a" + - "ds.googleads.v0.resources.CampaignBidMod" + - "ifier\022P\n\022campaign_criterion\030\024 \001(\01324.goog" + - "le.ads.googleads.v0.resources.CampaignCr" + - "iterion\022F\n\rcampaign_feed\030? \001(\0132/.google." + - "ads.googleads.v0.resources.CampaignFeed\022" + - "H\n\016campaign_group\030\031 \001(\01320.google.ads.goo" + - "gleads.v0.resources.CampaignGroup\022Q\n\023cam" + - "paign_shared_set\030\036 \001(\01324.google.ads.goog" + - "leads.v0.resources.CampaignSharedSet\022L\n\020" + - "carrier_constant\030B \001(\01322.google.ads.goog" + - "leads.v0.resources.CarrierConstant\022F\n\rch" + - "ange_status\030% \001(\0132/.google.ads.googleads" + - ".v0.resources.ChangeStatus\022=\n\010customer\030\001" + - " \001(\0132+.google.ads.googleads.v0.resources" + - ".Customer\022U\n\025customer_manager_link\030= \001(\013" + - "26.google.ads.googleads.v0.resources.Cus" + - "tomerManagerLink\022S\n\024customer_client_link" + - "\030> \001(\01325.google.ads.googleads.v0.resourc" + - "es.CustomerClientLink\022J\n\017customer_client" + - "\030F \001(\01321.google.ads.googleads.v0.resourc" + - "es.CustomerClient\022F\n\rcustomer_feed\030@ \001(\013" + - "2/.google.ads.googleads.v0.resources.Cus" + - "tomerFeed\022S\n\024display_keyword_view\030/ \001(\0132" + - "5.google.ads.googleads.v0.resources.Disp" + - "layKeywordView\0225\n\004feed\030. \001(\0132\'.google.ad" + - "s.googleads.v0.resources.Feed\022>\n\tfeed_it" + - "em\0302 \001(\0132+.google.ads.googleads.v0.resou" + - "rces.FeedItem\022D\n\014feed_mapping\030: \001(\0132..go" + - "ogle.ads.googleads.v0.resources.FeedMapp" + - "ing\022B\n\013gender_view\030( \001(\0132-.google.ads.go" + - "ogleads.v0.resources.GenderView\022Q\n\023geo_t" + - "arget_constant\030\027 \001(\01324.google.ads.google" + - "ads.v0.resources.GeoTargetConstant\022K\n\020ho" + - "tel_group_view\0303 \001(\01321.google.ads.google" + - "ads.v0.resources.HotelGroupView\022W\n\026hotel" + - "_performance_view\030G \001(\01327.google.ads.goo" + - "gleads.v0.resources.HotelPerformanceView" + - "\022D\n\014keyword_view\030\025 \001(\0132..google.ads.goog" + - "leads.v0.resources.KeywordView\022D\n\014keywor" + - "d_plan\030 \001(\0132..google.ads.googleads.v0.r" + - "esources.KeywordPlan\022U\n\025keyword_plan_cam" + - "paign\030! \001(\01326.google.ads.googleads.v0.re" + - "sources.KeywordPlanCampaign\022d\n\035keyword_p" + - "lan_negative_keyword\030\" \001(\0132=.google.ads." + - "googleads.v0.resources.KeywordPlanNegati" + - "veKeyword\022T\n\025keyword_plan_ad_group\030# \001(\013" + - "25.google.ads.googleads.v0.resources.Key" + - "wordPlanAdGroup\022S\n\024keyword_plan_keyword\030" + - "$ \001(\01325.google.ads.googleads.v0.resource" + - "s.KeywordPlanKeyword\022N\n\021language_constan" + - "t\0307 \001(\01323.google.ads.googleads.v0.resour" + - "ces.LanguageConstant\022W\n\026managed_placemen" + - "t_view\0305 \001(\01327.google.ads.googleads.v0.r" + - "esources.ManagedPlacementView\022S\n\024parenta" + - "l_status_view\030- \001(\01325.google.ads.googlea" + - "ds.v0.resources.ParentalStatusView\022O\n\022pr" + - "oduct_group_view\0306 \001(\01323.google.ads.goog" + - "leads.v0.resources.ProductGroupView\022I\n\016r" + - "ecommendation\030\026 \001(\01321.google.ads.googlea" + - "ds.v0.resources.Recommendation\022K\n\020search" + - "_term_view\030D \001(\01321.google.ads.googleads." + - "v0.resources.SearchTermView\022L\n\020shared_cr" + - "iterion\030\035 \001(\01322.google.ads.googleads.v0." + - "resources.SharedCriterion\022@\n\nshared_set\030" + - "\033 \001(\0132,.google.ads.googleads.v0.resource" + - "s.SharedSet\022@\n\ntopic_view\030, \001(\0132,.google" + - ".ads.googleads.v0.resources.TopicView\022F\n" + - "\ruser_interest\030; \001(\0132/.google.ads.google" + - "ads.v0.resources.UserInterest\022>\n\tuser_li" + - "st\030& \001(\0132+.google.ads.googleads.v0.resou" + - "rces.UserList\022H\n\016topic_constant\030\037 \001(\01320." + - "google.ads.googleads.v0.resources.TopicC" + - "onstant\0227\n\005video\030\' \001(\0132(.google.ads.goog" + - "leads.v0.resources.Video\0228\n\007metrics\030\004 \001(" + - "\0132\'.google.ads.googleads.v0.common.Metri" + - "cs\022W\n\017ad_network_type\030\005 \001(\0162>.google.ads" + - ".googleads.v0.enums.AdNetworkTypeEnum.Ad" + - "NetworkType\022*\n\004date\030\006 \001(\0132\034.google.proto" + - "buf.StringValue\022K\n\013day_of_week\030\007 \001(\01626.g" + - "oogle.ads.googleads.v0.enums.DayOfWeekEn" + - "um.DayOfWeek\022@\n\006device\030\010 \001(\01620.google.ad" + - "s.googleads.v0.enums.DeviceEnum.Device\022>" + - "\n\031hotel_booking_window_days\030S \001(\0132\033.goog" + - "le.protobuf.Int64Value\0224\n\017hotel_center_i" + - "d\030H \001(\0132\033.google.protobuf.Int64Value\0229\n\023" + - "hotel_check_in_date\030I \001(\0132\034.google.proto" + - "buf.StringValue\022Z\n\032hotel_check_in_day_of" + - "_week\030J \001(\01626.google.ads.googleads.v0.en" + - "ums.DayOfWeekEnum.DayOfWeek\0220\n\nhotel_cit" + - "y\030K \001(\0132\034.google.protobuf.StringValue\0220\n" + - "\013hotel_class\030L \001(\0132\033.google.protobuf.Int" + - "32Value\0223\n\rhotel_country\030M \001(\0132\034.google." + - "protobuf.StringValue\022s\n\031hotel_date_selec" + - "tion_type\030N \001(\0162P.google.ads.googleads.v" + - "0.enums.HotelDateSelectionTypeEnum.Hotel" + - "DateSelectionType\0229\n\024hotel_length_of_sta" + - "y\030O \001(\0132\033.google.protobuf.Int32Value\0221\n\013" + - "hotel_state\030Q \001(\0132\034.google.protobuf.Stri" + - "ngValue\022)\n\004hour\030\t \001(\0132\033.google.protobuf." + - "Int32Value\022+\n\005month\030\n \001(\0132\034.google.proto" + - "buf.StringValue\022Q\n\rmonth_of_year\030\034 \001(\0162:" + - ".google.ads.googleads.v0.enums.MonthOfYe" + - "arEnum.MonthOfYear\0226\n\020partner_hotel_id\030R" + - " \001(\0132\034.google.protobuf.StringValue\022\\\n\020pl" + - "aceholder_type\030A \001(\0162B.google.ads.google" + - "ads.v0.enums.PlaceholderTypeEnum.Placeho" + - "lderType\022-\n\007quarter\030\014 \001(\0132\034.google.proto" + - "buf.StringValue\022j\n\026search_term_match_typ" + - "e\0308 \001(\0162J.google.ads.googleads.v0.enums." + - "SearchTermMatchTypeEnum.SearchTermMatchT" + - "ype\022:\n\004slot\030\r \001(\0162,.google.ads.googleads" + - ".v0.enums.SlotEnum.Slot\022*\n\004week\030\016 \001(\0132\034." + - "google.protobuf.StringValue\022)\n\004year\030\017 \001(" + - "\0132\033.google.protobuf.Int32Value\"{\n\026Mutate" + - "GoogleAdsRequest\022\023\n\013customer_id\030\001 \001(\t\022L\n" + - "\021mutate_operations\030\002 \003(\01321.google.ads.go" + - "ogleads.v0.services.MutateOperation\"x\n\027M" + - "utateGoogleAdsResponse\022]\n\032mutate_operati" + - "on_responses\030\001 \003(\01329.google.ads.googlead" + - "s.v0.services.MutateOperationResponse\"\261\013" + - "\n\017MutateOperation\022U\n\025ad_group_ad_operati" + - "on\030\001 \001(\01324.google.ads.googleads.v0.servi" + - "ces.AdGroupAdOperationH\000\022h\n\037ad_group_bid" + - "_modifier_operation\030\002 \001(\0132=.google.ads.g" + - "oogleads.v0.services.AdGroupBidModifierO" + - "perationH\000\022c\n\034ad_group_criterion_operati" + - "on\030\003 \001(\0132;.google.ads.googleads.v0.servi" + - "ces.AdGroupCriterionOperationH\000\022P\n\022ad_gr" + - "oup_operation\030\005 \001(\01322.google.ads.googlea" + - "ds.v0.services.AdGroupOperationH\000\022`\n\032bid" + - "ding_strategy_operation\030\006 \001(\0132:.google.a" + - "ds.googleads.v0.services.BiddingStrategy" + - "OperationH\000\022i\n\037campaign_bid_modifier_ope" + - "ration\030\007 \001(\0132>.google.ads.googleads.v0.s" + - "ervices.CampaignBidModifierOperationH\000\022^" + - "\n\031campaign_budget_operation\030\010 \001(\01329.goog" + - "le.ads.googleads.v0.services.CampaignBud" + - "getOperationH\000\022\\\n\030campaign_group_operati" + - "on\030\t \001(\01328.google.ads.googleads.v0.servi" + - "ces.CampaignGroupOperationH\000\022Q\n\022campaign" + - "_operation\030\n \001(\01323.google.ads.googleads." + - "v0.services.CampaignOperationH\000\022e\n\035campa" + - "ign_shared_set_operation\030\013 \001(\0132<.google." + - "ads.googleads.v0.services.CampaignShared" + - "SetOperationH\000\022b\n\033conversion_action_oper" + - "ation\030\014 \001(\0132;.google.ads.googleads.v0.se" + - "rvices.ConversionActionOperationH\000\022d\n\034ca" + - "mpaign_criterion_operation\030\r \001(\0132<.googl" + - "e.ads.googleads.v0.services.CampaignCrit" + - "erionOperationH\000\022`\n\032shared_criterion_ope" + - "ration\030\016 \001(\0132:.google.ads.googleads.v0.s" + - "ervices.SharedCriterionOperationH\000\022T\n\024sh" + - "ared_set_operation\030\017 \001(\01324.google.ads.go" + - "ogleads.v0.services.SharedSetOperationH\000" + - "\022R\n\023user_list_operation\030\020 \001(\01323.google.a" + - "ds.googleads.v0.services.UserListOperati" + - "onH\000B\013\n\toperation\"\270\013\n\027MutateOperationRes" + - "ponse\022U\n\022ad_group_ad_result\030\001 \001(\01327.goog" + - "le.ads.googleads.v0.services.MutateAdGro" + - "upAdResultH\000\022h\n\034ad_group_bid_modifier_re" + - "sult\030\002 \001(\0132@.google.ads.googleads.v0.ser" + - "vices.MutateAdGroupBidModifierResultH\000\022c" + - "\n\031ad_group_criterion_result\030\003 \001(\0132>.goog" + - "le.ads.googleads.v0.services.MutateAdGro" + - "upCriterionResultH\000\022P\n\017ad_group_result\030\005" + - " \001(\01325.google.ads.googleads.v0.services." + - "MutateAdGroupResultH\000\022`\n\027bidding_strateg" + - "y_result\030\006 \001(\0132=.google.ads.googleads.v0" + - ".services.MutateBiddingStrategyResultH\000\022" + - "i\n\034campaign_bid_modifier_result\030\007 \001(\0132A." + - "google.ads.googleads.v0.services.MutateC" + - "ampaignBidModifierResultH\000\022^\n\026campaign_b" + - "udget_result\030\010 \001(\0132<.google.ads.googlead" + - "s.v0.services.MutateCampaignBudgetResult" + - "H\000\022\\\n\025campaign_group_result\030\t \001(\0132;.goog" + + "ommon/metrics.proto\032-google/ads/googlead" + + "s/v0/common/segments.proto\0326google/ads/g" + + "oogleads/v0/resources/account_budget.pro" + + "to\032?google/ads/googleads/v0/resources/ac" + + "count_budget_proposal.proto\0320google/ads/" + + "googleads/v0/resources/ad_group.proto\0323g" + + "oogle/ads/googleads/v0/resources/ad_grou" + + "p_ad.proto\032>google/ads/googleads/v0/reso" + + "urces/ad_group_audience_view.proto\032=goog" + + "le/ads/googleads/v0/resources/ad_group_b" + + "id_modifier.proto\032:google/ads/googleads/" + + "v0/resources/ad_group_criterion.proto\0325g" + + "oogle/ads/googleads/v0/resources/ad_grou" + + "p_feed.proto\0328google/ads/googleads/v0/re" + + "sources/ad_schedule_view.proto\0326google/a" + + "ds/googleads/v0/resources/age_range_view" + + ".proto\0328google/ads/googleads/v0/resource" + + "s/bidding_strategy.proto\0325google/ads/goo" + + "gleads/v0/resources/billing_setup.proto\032" + + "0google/ads/googleads/v0/resources/campa" + + "ign.proto\032>google/ads/googleads/v0/resou" + + "rces/campaign_audience_view.proto\032=googl" + + "e/ads/googleads/v0/resources/campaign_bi" + + "d_modifier.proto\0327google/ads/googleads/v" + + "0/resources/campaign_budget.proto\032:googl" + + "e/ads/googleads/v0/resources/campaign_cr" + + "iterion.proto\0325google/ads/googleads/v0/r" + + "esources/campaign_feed.proto\032;google/ads" + + "/googleads/v0/resources/campaign_shared_" + + "set.proto\0328google/ads/googleads/v0/resou" + + "rces/carrier_constant.proto\0325google/ads/" + + "googleads/v0/resources/change_status.pro" + + "to\0329google/ads/googleads/v0/resources/co" + + "nversion_action.proto\0320google/ads/google" + + "ads/v0/resources/customer.proto\0327google/" + + "ads/googleads/v0/resources/customer_clie" + + "nt.proto\032google/ads/googleads/v0/r" + + "esources/hotel_performance_view.proto\0324g" + + "oogle/ads/googleads/v0/resources/keyword" + + "_plan.proto\032=google/ads/googleads/v0/res" + + "ources/keyword_plan_ad_group.proto\032=goog" + + "le/ads/googleads/v0/resources/keyword_pl" + + "an_campaign.proto\032google/ads/goog" + + "leads/v0/resources/managed_placement_vie" + + "w.proto\0322google/ads/googleads/v0/resourc" + + "es/media_file.proto\032Dgoogle/ads/googlead" + + "s/v0/resources/mobile_app_category_const" + + "ant.proto\032>google/ads/googleads/v0/resou" + + "rces/mobile_device_constant.proto\032Igoogl" + + "e/ads/googleads/v0/resources/operating_s" + + "ystem_version_constant.proto\032google/ads/googleads/v0/services/c" + + "ampaign_budget_service.proto\032Agoogle/ads" + + "/googleads/v0/services/campaign_criterio" + + "n_service.proto\0327google/ads/googleads/v0" + + "/services/campaign_service.proto\032Bgoogle" + + "/ads/googleads/v0/services/campaign_shar" + + "ed_set_service.proto\032@google/ads/googlea" + + "ds/v0/services/conversion_action_service" + + ".proto\032?google/ads/googleads/v0/services" + + "/shared_criterion_service.proto\0329google/" + + "ads/googleads/v0/services/shared_set_ser" + + "vice.proto\0328google/ads/googleads/v0/serv" + + "ices/user_list_service.proto\032\034google/api" + + "/annotations.proto\032 google/protobuf/fiel" + + "d_mask.proto\032\027google/rpc/status.proto\"z\n" + + "\026SearchGoogleAdsRequest\022\023\n\013customer_id\030\001" + + " \001(\t\022\r\n\005query\030\002 \001(\t\022\022\n\npage_token\030\003 \001(\t\022" + + "\021\n\tpage_size\030\004 \001(\005\022\025\n\rvalidate_only\030\005 \001(" + + "\010\"\300\001\n\027SearchGoogleAdsResponse\022?\n\007results" + + "\030\001 \003(\0132..google.ads.googleads.v0.service" + + "s.GoogleAdsRow\022\027\n\017next_page_token\030\002 \001(\t\022" + + "\033\n\023total_results_count\030\003 \001(\003\022.\n\nfield_ma" + + "sk\030\005 \001(\0132\032.google.protobuf.FieldMask\"\357$\n" + + "\014GoogleAdsRow\022H\n\016account_budget\030* \001(\01320." + + "google.ads.googleads.v0.resources.Accoun" + + "tBudget\022Y\n\027account_budget_proposal\030+ \001(\013" + + "28.google.ads.googleads.v0.resources.Acc" + + "ountBudgetProposal\022<\n\010ad_group\030\003 \001(\0132*.g" + + "oogle.ads.googleads.v0.resources.AdGroup" + + "\022A\n\013ad_group_ad\030\020 \001(\0132,.google.ads.googl" + + "eads.v0.resources.AdGroupAd\022V\n\026ad_group_" + + "audience_view\0309 \001(\01326.google.ads.googlea" + + "ds.v0.resources.AdGroupAudienceView\022T\n\025a" + + "d_group_bid_modifier\030\030 \001(\01325.google.ads." + + "googleads.v0.resources.AdGroupBidModifie" + + "r\022O\n\022ad_group_criterion\030\021 \001(\01323.google.a" + + "ds.googleads.v0.resources.AdGroupCriteri" + + "on\022E\n\rad_group_feed\030C \001(\0132..google.ads.g" + + "oogleads.v0.resources.AdGroupFeed\022G\n\016age" + + "_range_view\0300 \001(\0132/.google.ads.googleads" + + ".v0.resources.AgeRangeView\022K\n\020ad_schedul" + + "e_view\030Y \001(\01321.google.ads.googleads.v0.r" + + "esources.AdScheduleView\022L\n\020bidding_strat" + + "egy\030\022 \001(\01322.google.ads.googleads.v0.reso" + + "urces.BiddingStrategy\022F\n\rbilling_setup\030)" + + " \001(\0132/.google.ads.googleads.v0.resources" + + ".BillingSetup\022J\n\017campaign_budget\030\023 \001(\01321" + + ".google.ads.googleads.v0.resources.Campa" + + "ignBudget\022=\n\010campaign\030\002 \001(\0132+.google.ads" + + ".googleads.v0.resources.Campaign\022W\n\026camp" + + "aign_audience_view\030E \001(\01327.google.ads.go" + + "ogleads.v0.resources.CampaignAudienceVie" + + "w\022U\n\025campaign_bid_modifier\030\032 \001(\01326.googl" + + "e.ads.googleads.v0.resources.CampaignBid" + + "Modifier\022P\n\022campaign_criterion\030\024 \001(\01324.g" + + "oogle.ads.googleads.v0.resources.Campaig" + + "nCriterion\022F\n\rcampaign_feed\030? \001(\0132/.goog" + + "le.ads.googleads.v0.resources.CampaignFe" + + "ed\022Q\n\023campaign_shared_set\030\036 \001(\01324.google" + + ".ads.googleads.v0.resources.CampaignShar" + + "edSet\022L\n\020carrier_constant\030B \001(\01322.google" + + ".ads.googleads.v0.resources.CarrierConst" + + "ant\022F\n\rchange_status\030% \001(\0132/.google.ads." + + "googleads.v0.resources.ChangeStatus\022N\n\021c" + + "onversion_action\030g \001(\01323.google.ads.goog" + + "leads.v0.resources.ConversionAction\022=\n\010c" + + "ustomer\030\001 \001(\0132+.google.ads.googleads.v0." + + "resources.Customer\022U\n\025customer_manager_l" + + "ink\030= \001(\01326.google.ads.googleads.v0.reso" + + "urces.CustomerManagerLink\022S\n\024customer_cl" + + "ient_link\030> \001(\01325.google.ads.googleads.v" + + "0.resources.CustomerClientLink\022J\n\017custom" + + "er_client\030F \001(\01321.google.ads.googleads.v" + + "0.resources.CustomerClient\022F\n\rcustomer_f" + + "eed\030@ \001(\0132/.google.ads.googleads.v0.reso" + + "urces.CustomerFeed\022S\n\024display_keyword_vi" + + "ew\030/ \001(\01325.google.ads.googleads.v0.resou" + + "rces.DisplayKeywordView\0225\n\004feed\030. \001(\0132\'." + + "google.ads.googleads.v0.resources.Feed\022>" + + "\n\tfeed_item\0302 \001(\0132+.google.ads.googleads" + + ".v0.resources.FeedItem\022D\n\014feed_mapping\030:" + + " \001(\0132..google.ads.googleads.v0.resources" + + ".FeedMapping\022B\n\013gender_view\030( \001(\0132-.goog" + + "le.ads.googleads.v0.resources.GenderView" + + "\022Q\n\023geo_target_constant\030\027 \001(\01324.google.a" + + "ds.googleads.v0.resources.GeoTargetConst" + + "ant\022K\n\020hotel_group_view\0303 \001(\01321.google.a" + + "ds.googleads.v0.resources.HotelGroupView" + + "\022W\n\026hotel_performance_view\030G \001(\01327.googl" + + "e.ads.googleads.v0.resources.HotelPerfor" + + "manceView\022D\n\014keyword_view\030\025 \001(\0132..google" + + ".ads.googleads.v0.resources.KeywordView\022" + + "D\n\014keyword_plan\030 \001(\0132..google.ads.googl" + + "eads.v0.resources.KeywordPlan\022U\n\025keyword" + + "_plan_campaign\030! \001(\01326.google.ads.google" + + "ads.v0.resources.KeywordPlanCampaign\022d\n\035" + + "keyword_plan_negative_keyword\030\" \001(\0132=.go" + + "ogle.ads.googleads.v0.resources.KeywordP" + + "lanNegativeKeyword\022T\n\025keyword_plan_ad_gr" + + "oup\030# \001(\01325.google.ads.googleads.v0.reso" + + "urces.KeywordPlanAdGroup\022S\n\024keyword_plan" + + "_keyword\030$ \001(\01325.google.ads.googleads.v0" + + ".resources.KeywordPlanKeyword\022N\n\021languag" + + "e_constant\0307 \001(\01323.google.ads.googleads." + + "v0.resources.LanguageConstant\022W\n\026managed" + + "_placement_view\0305 \001(\01327.google.ads.googl" + + "eads.v0.resources.ManagedPlacementView\022@" + + "\n\nmedia_file\030Z \001(\0132,.google.ads.googlead" + + "s.v0.resources.MediaFile\022b\n\034mobile_app_c" + + "ategory_constant\030W \001(\0132<.google.ads.goog" + + "leads.v0.resources.MobileAppCategoryCons" + + "tant\022W\n\026mobile_device_constant\030b \001(\01327.g" + + "oogle.ads.googleads.v0.resources.MobileD" + + "eviceConstant\022l\n!operating_system_versio" + + "n_constant\030V \001(\0132A.google.ads.googleads." + + "v0.resources.OperatingSystemVersionConst" + + "ant\022S\n\024parental_status_view\030- \001(\01325.goog" + + "le.ads.googleads.v0.resources.ParentalSt" + + "atusView\022O\n\022product_group_view\0306 \001(\01323.g" + + "oogle.ads.googleads.v0.resources.Product" + + "GroupView\022I\n\016recommendation\030\026 \001(\01321.goog" + + "le.ads.googleads.v0.resources.Recommenda" + + "tion\022K\n\020search_term_view\030D \001(\01321.google." + + "ads.googleads.v0.resources.SearchTermVie" + + "w\022L\n\020shared_criterion\030\035 \001(\01322.google.ads" + + ".googleads.v0.resources.SharedCriterion\022" + + "@\n\nshared_set\030\033 \001(\0132,.google.ads.googlea" + + "ds.v0.resources.SharedSet\022@\n\ntopic_view\030" + + ", \001(\0132,.google.ads.googleads.v0.resource" + + "s.TopicView\022F\n\ruser_interest\030; \001(\0132/.goo" + + "gle.ads.googleads.v0.resources.UserInter" + + "est\022>\n\tuser_list\030& \001(\0132+.google.ads.goog" + + "leads.v0.resources.UserList\022P\n\022remarketi" + + "ng_action\030< \001(\01324.google.ads.googleads.v" + + "0.resources.RemarketingAction\022H\n\016topic_c" + + "onstant\030\037 \001(\01320.google.ads.googleads.v0." + + "resources.TopicConstant\0227\n\005video\030\' \001(\0132(" + + ".google.ads.googleads.v0.resources.Video" + + "\0228\n\007metrics\030\004 \001(\0132\'.google.ads.googleads" + + ".v0.common.Metrics\022:\n\010segments\030f \001(\0132(.g" + + "oogle.ads.googleads.v0.common.Segments\"\253" + + "\001\n\026MutateGoogleAdsRequest\022\023\n\013customer_id" + + "\030\001 \001(\t\022L\n\021mutate_operations\030\002 \003(\01321.goog" + + "le.ads.googleads.v0.services.MutateOpera" + + "tion\022\027\n\017partial_failure\030\003 \001(\010\022\025\n\rvalidat" + + "e_only\030\004 \001(\010\"\253\001\n\027MutateGoogleAdsResponse" + + "\0221\n\025partial_failure_error\030\003 \001(\0132\022.google" + + ".rpc.Status\022]\n\032mutate_operation_response" + + "s\030\001 \003(\01329.google.ads.googleads.v0.servic" + + "es.MutateOperationResponse\"\323\n\n\017MutateOpe" + + "ration\022U\n\025ad_group_ad_operation\030\001 \001(\01324." + + "google.ads.googleads.v0.services.AdGroup" + + "AdOperationH\000\022h\n\037ad_group_bid_modifier_o" + + "peration\030\002 \001(\0132=.google.ads.googleads.v0" + + ".services.AdGroupBidModifierOperationH\000\022" + + "c\n\034ad_group_criterion_operation\030\003 \001(\0132;." + + "google.ads.googleads.v0.services.AdGroup" + + "CriterionOperationH\000\022P\n\022ad_group_operati" + + "on\030\005 \001(\01322.google.ads.googleads.v0.servi" + + "ces.AdGroupOperationH\000\022`\n\032bidding_strate" + + "gy_operation\030\006 \001(\0132:.google.ads.googlead" + + "s.v0.services.BiddingStrategyOperationH\000" + + "\022i\n\037campaign_bid_modifier_operation\030\007 \001(" + + "\0132>.google.ads.googleads.v0.services.Cam" + + "paignBidModifierOperationH\000\022^\n\031campaign_" + + "budget_operation\030\010 \001(\01329.google.ads.goog" + + "leads.v0.services.CampaignBudgetOperatio" + + "nH\000\022Q\n\022campaign_operation\030\n \001(\01323.google" + + ".ads.googleads.v0.services.CampaignOpera" + + "tionH\000\022e\n\035campaign_shared_set_operation\030" + + "\013 \001(\0132<.google.ads.googleads.v0.services" + + ".CampaignSharedSetOperationH\000\022b\n\033convers" + + "ion_action_operation\030\014 \001(\0132;.google.ads." + + "googleads.v0.services.ConversionActionOp" + + "erationH\000\022d\n\034campaign_criterion_operatio" + + "n\030\r \001(\0132<.google.ads.googleads.v0.servic" + + "es.CampaignCriterionOperationH\000\022`\n\032share" + + "d_criterion_operation\030\016 \001(\0132:.google.ads" + + ".googleads.v0.services.SharedCriterionOp" + + "erationH\000\022T\n\024shared_set_operation\030\017 \001(\0132" + + "4.google.ads.googleads.v0.services.Share" + + "dSetOperationH\000\022R\n\023user_list_operation\030\020" + + " \001(\01323.google.ads.googleads.v0.services." + + "UserListOperationH\000B\013\n\toperation\"\332\n\n\027Mut" + + "ateOperationResponse\022U\n\022ad_group_ad_resu" + + "lt\030\001 \001(\01327.google.ads.googleads.v0.servi" + + "ces.MutateAdGroupAdResultH\000\022h\n\034ad_group_" + + "bid_modifier_result\030\002 \001(\0132@.google.ads.g" + + "oogleads.v0.services.MutateAdGroupBidMod" + + "ifierResultH\000\022c\n\031ad_group_criterion_resu" + + "lt\030\003 \001(\0132>.google.ads.googleads.v0.servi" + + "ces.MutateAdGroupCriterionResultH\000\022P\n\017ad" + + "_group_result\030\005 \001(\01325.google.ads.googlea" + + "ds.v0.services.MutateAdGroupResultH\000\022`\n\027" + + "bidding_strategy_result\030\006 \001(\0132=.google.a" + + "ds.googleads.v0.services.MutateBiddingSt" + + "rategyResultH\000\022i\n\034campaign_bid_modifier_" + + "result\030\007 \001(\0132A.google.ads.googleads.v0.s" + + "ervices.MutateCampaignBidModifierResultH" + + "\000\022^\n\026campaign_budget_result\030\010 \001(\0132<.goog" + "le.ads.googleads.v0.services.MutateCampa" + - "ignGroupResultH\000\022Q\n\017campaign_result\030\n \001(" + - "\01326.google.ads.googleads.v0.services.Mut" + - "ateCampaignResultH\000\022e\n\032campaign_shared_s" + - "et_result\030\013 \001(\0132?.google.ads.googleads.v" + - "0.services.MutateCampaignSharedSetResult" + - "H\000\022b\n\030conversion_action_result\030\014 \001(\0132>.g" + - "oogle.ads.googleads.v0.services.MutateCo" + - "nversionActionResultH\000\022d\n\031campaign_crite" + - "rion_result\030\r \001(\0132?.google.ads.googleads" + - ".v0.services.MutateCampaignCriterionResu" + - "ltH\000\022`\n\027shared_criterion_result\030\016 \001(\0132=." + - "google.ads.googleads.v0.services.MutateS" + - "haredCriterionResultH\000\022T\n\021shared_set_res" + - "ult\030\017 \001(\01327.google.ads.googleads.v0.serv" + - "ices.MutateSharedSetResultH\000\022R\n\020user_lis" + - "t_result\030\020 \001(\01326.google.ads.googleads.v0" + - ".services.MutateUserListResultH\000B\n\n\010resp" + - "onse2\210\003\n\020GoogleAdsService\022\270\001\n\006Search\0228.g" + - "oogle.ads.googleads.v0.services.SearchGo" + - "ogleAdsRequest\0329.google.ads.googleads.v0" + - ".services.SearchGoogleAdsResponse\"9\202\323\344\223\002" + - "3\"./v0/customers/{customer_id=*}/googleA" + - "ds:search:\001*\022\270\001\n\006Mutate\0228.google.ads.goo" + - "gleads.v0.services.MutateGoogleAdsReques" + - "t\0329.google.ads.googleads.v0.services.Mut" + - "ateGoogleAdsResponse\"9\202\323\344\223\0023\"./v0/custom" + - "ers/{customer_id=*}/googleAds:mutate:\001*B" + - "\325\001\n$com.google.ads.googleads.v0.services" + - "B\025GoogleAdsServiceProtoP\001ZHgoogle.golang" + - ".org/genproto/googleapis/ads/googleads/v" + - "0/services;services\242\002\003GAA\252\002 Google.Ads.G" + - "oogleAds.V0.Services\312\002 Google\\Ads\\Google" + - "Ads\\V0\\Servicesb\006proto3" + "ignBudgetResultH\000\022Q\n\017campaign_result\030\n \001" + + "(\01326.google.ads.googleads.v0.services.Mu" + + "tateCampaignResultH\000\022e\n\032campaign_shared_" + + "set_result\030\013 \001(\0132?.google.ads.googleads." + + "v0.services.MutateCampaignSharedSetResul" + + "tH\000\022b\n\030conversion_action_result\030\014 \001(\0132>." + + "google.ads.googleads.v0.services.MutateC" + + "onversionActionResultH\000\022d\n\031campaign_crit" + + "erion_result\030\r \001(\0132?.google.ads.googlead" + + "s.v0.services.MutateCampaignCriterionRes" + + "ultH\000\022`\n\027shared_criterion_result\030\016 \001(\0132=" + + ".google.ads.googleads.v0.services.Mutate" + + "SharedCriterionResultH\000\022T\n\021shared_set_re" + + "sult\030\017 \001(\01327.google.ads.googleads.v0.ser" + + "vices.MutateSharedSetResultH\000\022R\n\020user_li" + + "st_result\030\020 \001(\01326.google.ads.googleads.v" + + "0.services.MutateUserListResultH\000B\n\n\010res" + + "ponse2\210\003\n\020GoogleAdsService\022\270\001\n\006Search\0228." + + "google.ads.googleads.v0.services.SearchG" + + "oogleAdsRequest\0329.google.ads.googleads.v" + + "0.services.SearchGoogleAdsResponse\"9\202\323\344\223" + + "\0023\"./v0/customers/{customer_id=*}/google" + + "Ads:search:\001*\022\270\001\n\006Mutate\0228.google.ads.go" + + "ogleads.v0.services.MutateGoogleAdsReque" + + "st\0329.google.ads.googleads.v0.services.Mu" + + "tateGoogleAdsResponse\"9\202\323\344\223\0023\"./v0/custo" + + "mers/{customer_id=*}/googleAds:mutate:\001*" + + "B\374\001\n$com.google.ads.googleads.v0.service" + + "sB\025GoogleAdsServiceProtoP\001ZHgoogle.golan" + + "g.org/genproto/googleapis/ads/googleads/" + + "v0/services;services\242\002\003GAA\252\002 Google.Ads." + + "GoogleAds.V0.Services\312\002 Google\\Ads\\Googl" + + "eAds\\V0\\Services\352\002$Google::Ads::GoogleAd" + + "s::V0::Servicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -432,14 +406,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.ads.googleads.v0.common.MetricsProto.getDescriptor(), - com.google.ads.googleads.v0.enums.AdNetworkTypeProto.getDescriptor(), - com.google.ads.googleads.v0.enums.DayOfWeekProto.getDescriptor(), - com.google.ads.googleads.v0.enums.DeviceProto.getDescriptor(), - com.google.ads.googleads.v0.enums.HotelDateSelectionTypeProto.getDescriptor(), - com.google.ads.googleads.v0.enums.MonthOfYearProto.getDescriptor(), - com.google.ads.googleads.v0.enums.PlaceholderTypeProto.getDescriptor(), - com.google.ads.googleads.v0.enums.SearchTermMatchTypeProto.getDescriptor(), - com.google.ads.googleads.v0.enums.SlotProto.getDescriptor(), + com.google.ads.googleads.v0.common.SegmentsProto.getDescriptor(), com.google.ads.googleads.v0.resources.AccountBudgetProto.getDescriptor(), com.google.ads.googleads.v0.resources.AccountBudgetProposalProto.getDescriptor(), com.google.ads.googleads.v0.resources.AdGroupProto.getDescriptor(), @@ -448,6 +415,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.AdGroupBidModifierProto.getDescriptor(), com.google.ads.googleads.v0.resources.AdGroupCriterionProto.getDescriptor(), com.google.ads.googleads.v0.resources.AdGroupFeedProto.getDescriptor(), + com.google.ads.googleads.v0.resources.AdScheduleViewProto.getDescriptor(), com.google.ads.googleads.v0.resources.AgeRangeViewProto.getDescriptor(), com.google.ads.googleads.v0.resources.BiddingStrategyProto.getDescriptor(), com.google.ads.googleads.v0.resources.BillingSetupProto.getDescriptor(), @@ -457,10 +425,10 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.CampaignBudgetProto.getDescriptor(), com.google.ads.googleads.v0.resources.CampaignCriterionProto.getDescriptor(), com.google.ads.googleads.v0.resources.CampaignFeedProto.getDescriptor(), - com.google.ads.googleads.v0.resources.CampaignGroupProto.getDescriptor(), com.google.ads.googleads.v0.resources.CampaignSharedSetProto.getDescriptor(), com.google.ads.googleads.v0.resources.CarrierConstantProto.getDescriptor(), com.google.ads.googleads.v0.resources.ChangeStatusProto.getDescriptor(), + com.google.ads.googleads.v0.resources.ConversionActionProto.getDescriptor(), com.google.ads.googleads.v0.resources.CustomerProto.getDescriptor(), com.google.ads.googleads.v0.resources.CustomerClientProto.getDescriptor(), com.google.ads.googleads.v0.resources.CustomerClientLinkProto.getDescriptor(), @@ -482,9 +450,14 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.KeywordViewProto.getDescriptor(), com.google.ads.googleads.v0.resources.LanguageConstantProto.getDescriptor(), com.google.ads.googleads.v0.resources.ManagedPlacementViewProto.getDescriptor(), + com.google.ads.googleads.v0.resources.MediaFileProto.getDescriptor(), + com.google.ads.googleads.v0.resources.MobileAppCategoryConstantProto.getDescriptor(), + com.google.ads.googleads.v0.resources.MobileDeviceConstantProto.getDescriptor(), + com.google.ads.googleads.v0.resources.OperatingSystemVersionConstantProto.getDescriptor(), com.google.ads.googleads.v0.resources.ParentalStatusViewProto.getDescriptor(), com.google.ads.googleads.v0.resources.ProductGroupViewProto.getDescriptor(), com.google.ads.googleads.v0.resources.RecommendationProto.getDescriptor(), + com.google.ads.googleads.v0.resources.RemarketingActionProto.getDescriptor(), com.google.ads.googleads.v0.resources.SearchTermViewProto.getDescriptor(), com.google.ads.googleads.v0.resources.SharedCriterionProto.getDescriptor(), com.google.ads.googleads.v0.resources.SharedSetProto.getDescriptor(), @@ -501,7 +474,6 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.services.CampaignBidModifierServiceProto.getDescriptor(), com.google.ads.googleads.v0.services.CampaignBudgetServiceProto.getDescriptor(), com.google.ads.googleads.v0.services.CampaignCriterionServiceProto.getDescriptor(), - com.google.ads.googleads.v0.services.CampaignGroupServiceProto.getDescriptor(), com.google.ads.googleads.v0.services.CampaignServiceProto.getDescriptor(), com.google.ads.googleads.v0.services.CampaignSharedSetServiceProto.getDescriptor(), com.google.ads.googleads.v0.services.ConversionActionServiceProto.getDescriptor(), @@ -510,14 +482,14 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.services.UserListServiceProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), }, assigner); internal_static_google_ads_googleads_v0_services_SearchGoogleAdsRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_ads_googleads_v0_services_SearchGoogleAdsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_SearchGoogleAdsRequest_descriptor, - new java.lang.String[] { "CustomerId", "Query", "PageToken", "PageSize", }); + new java.lang.String[] { "CustomerId", "Query", "PageToken", "PageSize", "ValidateOnly", }); internal_static_google_ads_googleads_v0_services_SearchGoogleAdsResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_google_ads_googleads_v0_services_SearchGoogleAdsResponse_fieldAccessorTable = new @@ -529,45 +501,38 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_GoogleAdsRow_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_GoogleAdsRow_descriptor, - new java.lang.String[] { "AccountBudget", "AccountBudgetProposal", "AdGroup", "AdGroupAd", "AdGroupAudienceView", "AdGroupBidModifier", "AdGroupCriterion", "AdGroupFeed", "AgeRangeView", "BiddingStrategy", "BillingSetup", "CampaignBudget", "Campaign", "CampaignAudienceView", "CampaignBidModifier", "CampaignCriterion", "CampaignFeed", "CampaignGroup", "CampaignSharedSet", "CarrierConstant", "ChangeStatus", "Customer", "CustomerManagerLink", "CustomerClientLink", "CustomerClient", "CustomerFeed", "DisplayKeywordView", "Feed", "FeedItem", "FeedMapping", "GenderView", "GeoTargetConstant", "HotelGroupView", "HotelPerformanceView", "KeywordView", "KeywordPlan", "KeywordPlanCampaign", "KeywordPlanNegativeKeyword", "KeywordPlanAdGroup", "KeywordPlanKeyword", "LanguageConstant", "ManagedPlacementView", "ParentalStatusView", "ProductGroupView", "Recommendation", "SearchTermView", "SharedCriterion", "SharedSet", "TopicView", "UserInterest", "UserList", "TopicConstant", "Video", "Metrics", "AdNetworkType", "Date", "DayOfWeek", "Device", "HotelBookingWindowDays", "HotelCenterId", "HotelCheckInDate", "HotelCheckInDayOfWeek", "HotelCity", "HotelClass", "HotelCountry", "HotelDateSelectionType", "HotelLengthOfStay", "HotelState", "Hour", "Month", "MonthOfYear", "PartnerHotelId", "PlaceholderType", "Quarter", "SearchTermMatchType", "Slot", "Week", "Year", }); + new java.lang.String[] { "AccountBudget", "AccountBudgetProposal", "AdGroup", "AdGroupAd", "AdGroupAudienceView", "AdGroupBidModifier", "AdGroupCriterion", "AdGroupFeed", "AgeRangeView", "AdScheduleView", "BiddingStrategy", "BillingSetup", "CampaignBudget", "Campaign", "CampaignAudienceView", "CampaignBidModifier", "CampaignCriterion", "CampaignFeed", "CampaignSharedSet", "CarrierConstant", "ChangeStatus", "ConversionAction", "Customer", "CustomerManagerLink", "CustomerClientLink", "CustomerClient", "CustomerFeed", "DisplayKeywordView", "Feed", "FeedItem", "FeedMapping", "GenderView", "GeoTargetConstant", "HotelGroupView", "HotelPerformanceView", "KeywordView", "KeywordPlan", "KeywordPlanCampaign", "KeywordPlanNegativeKeyword", "KeywordPlanAdGroup", "KeywordPlanKeyword", "LanguageConstant", "ManagedPlacementView", "MediaFile", "MobileAppCategoryConstant", "MobileDeviceConstant", "OperatingSystemVersionConstant", "ParentalStatusView", "ProductGroupView", "Recommendation", "SearchTermView", "SharedCriterion", "SharedSet", "TopicView", "UserInterest", "UserList", "RemarketingAction", "TopicConstant", "Video", "Metrics", "Segments", }); internal_static_google_ads_googleads_v0_services_MutateGoogleAdsRequest_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_google_ads_googleads_v0_services_MutateGoogleAdsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateGoogleAdsRequest_descriptor, - new java.lang.String[] { "CustomerId", "MutateOperations", }); + new java.lang.String[] { "CustomerId", "MutateOperations", "PartialFailure", "ValidateOnly", }); internal_static_google_ads_googleads_v0_services_MutateGoogleAdsResponse_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_google_ads_googleads_v0_services_MutateGoogleAdsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateGoogleAdsResponse_descriptor, - new java.lang.String[] { "MutateOperationResponses", }); + new java.lang.String[] { "PartialFailureError", "MutateOperationResponses", }); internal_static_google_ads_googleads_v0_services_MutateOperation_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_google_ads_googleads_v0_services_MutateOperation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateOperation_descriptor, - new java.lang.String[] { "AdGroupAdOperation", "AdGroupBidModifierOperation", "AdGroupCriterionOperation", "AdGroupOperation", "BiddingStrategyOperation", "CampaignBidModifierOperation", "CampaignBudgetOperation", "CampaignGroupOperation", "CampaignOperation", "CampaignSharedSetOperation", "ConversionActionOperation", "CampaignCriterionOperation", "SharedCriterionOperation", "SharedSetOperation", "UserListOperation", "Operation", }); + new java.lang.String[] { "AdGroupAdOperation", "AdGroupBidModifierOperation", "AdGroupCriterionOperation", "AdGroupOperation", "BiddingStrategyOperation", "CampaignBidModifierOperation", "CampaignBudgetOperation", "CampaignOperation", "CampaignSharedSetOperation", "ConversionActionOperation", "CampaignCriterionOperation", "SharedCriterionOperation", "SharedSetOperation", "UserListOperation", "Operation", }); internal_static_google_ads_googleads_v0_services_MutateOperationResponse_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_google_ads_googleads_v0_services_MutateOperationResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateOperationResponse_descriptor, - new java.lang.String[] { "AdGroupAdResult", "AdGroupBidModifierResult", "AdGroupCriterionResult", "AdGroupResult", "BiddingStrategyResult", "CampaignBidModifierResult", "CampaignBudgetResult", "CampaignGroupResult", "CampaignResult", "CampaignSharedSetResult", "ConversionActionResult", "CampaignCriterionResult", "SharedCriterionResult", "SharedSetResult", "UserListResult", "Response", }); + new java.lang.String[] { "AdGroupAdResult", "AdGroupBidModifierResult", "AdGroupCriterionResult", "AdGroupResult", "BiddingStrategyResult", "CampaignBidModifierResult", "CampaignBudgetResult", "CampaignResult", "CampaignSharedSetResult", "ConversionActionResult", "CampaignCriterionResult", "SharedCriterionResult", "SharedSetResult", "UserListResult", "Response", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.AnnotationsProto.http); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.ads.googleads.v0.common.MetricsProto.getDescriptor(); - com.google.ads.googleads.v0.enums.AdNetworkTypeProto.getDescriptor(); - com.google.ads.googleads.v0.enums.DayOfWeekProto.getDescriptor(); - com.google.ads.googleads.v0.enums.DeviceProto.getDescriptor(); - com.google.ads.googleads.v0.enums.HotelDateSelectionTypeProto.getDescriptor(); - com.google.ads.googleads.v0.enums.MonthOfYearProto.getDescriptor(); - com.google.ads.googleads.v0.enums.PlaceholderTypeProto.getDescriptor(); - com.google.ads.googleads.v0.enums.SearchTermMatchTypeProto.getDescriptor(); - com.google.ads.googleads.v0.enums.SlotProto.getDescriptor(); + com.google.ads.googleads.v0.common.SegmentsProto.getDescriptor(); com.google.ads.googleads.v0.resources.AccountBudgetProto.getDescriptor(); com.google.ads.googleads.v0.resources.AccountBudgetProposalProto.getDescriptor(); com.google.ads.googleads.v0.resources.AdGroupProto.getDescriptor(); @@ -576,6 +541,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.AdGroupBidModifierProto.getDescriptor(); com.google.ads.googleads.v0.resources.AdGroupCriterionProto.getDescriptor(); com.google.ads.googleads.v0.resources.AdGroupFeedProto.getDescriptor(); + com.google.ads.googleads.v0.resources.AdScheduleViewProto.getDescriptor(); com.google.ads.googleads.v0.resources.AgeRangeViewProto.getDescriptor(); com.google.ads.googleads.v0.resources.BiddingStrategyProto.getDescriptor(); com.google.ads.googleads.v0.resources.BillingSetupProto.getDescriptor(); @@ -585,10 +551,10 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.CampaignBudgetProto.getDescriptor(); com.google.ads.googleads.v0.resources.CampaignCriterionProto.getDescriptor(); com.google.ads.googleads.v0.resources.CampaignFeedProto.getDescriptor(); - com.google.ads.googleads.v0.resources.CampaignGroupProto.getDescriptor(); com.google.ads.googleads.v0.resources.CampaignSharedSetProto.getDescriptor(); com.google.ads.googleads.v0.resources.CarrierConstantProto.getDescriptor(); com.google.ads.googleads.v0.resources.ChangeStatusProto.getDescriptor(); + com.google.ads.googleads.v0.resources.ConversionActionProto.getDescriptor(); com.google.ads.googleads.v0.resources.CustomerProto.getDescriptor(); com.google.ads.googleads.v0.resources.CustomerClientProto.getDescriptor(); com.google.ads.googleads.v0.resources.CustomerClientLinkProto.getDescriptor(); @@ -610,9 +576,14 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.KeywordViewProto.getDescriptor(); com.google.ads.googleads.v0.resources.LanguageConstantProto.getDescriptor(); com.google.ads.googleads.v0.resources.ManagedPlacementViewProto.getDescriptor(); + com.google.ads.googleads.v0.resources.MediaFileProto.getDescriptor(); + com.google.ads.googleads.v0.resources.MobileAppCategoryConstantProto.getDescriptor(); + com.google.ads.googleads.v0.resources.MobileDeviceConstantProto.getDescriptor(); + com.google.ads.googleads.v0.resources.OperatingSystemVersionConstantProto.getDescriptor(); com.google.ads.googleads.v0.resources.ParentalStatusViewProto.getDescriptor(); com.google.ads.googleads.v0.resources.ProductGroupViewProto.getDescriptor(); com.google.ads.googleads.v0.resources.RecommendationProto.getDescriptor(); + com.google.ads.googleads.v0.resources.RemarketingActionProto.getDescriptor(); com.google.ads.googleads.v0.resources.SearchTermViewProto.getDescriptor(); com.google.ads.googleads.v0.resources.SharedCriterionProto.getDescriptor(); com.google.ads.googleads.v0.resources.SharedSetProto.getDescriptor(); @@ -629,7 +600,6 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.services.CampaignBidModifierServiceProto.getDescriptor(); com.google.ads.googleads.v0.services.CampaignBudgetServiceProto.getDescriptor(); com.google.ads.googleads.v0.services.CampaignCriterionServiceProto.getDescriptor(); - com.google.ads.googleads.v0.services.CampaignGroupServiceProto.getDescriptor(); com.google.ads.googleads.v0.services.CampaignServiceProto.getDescriptor(); com.google.ads.googleads.v0.services.CampaignSharedSetServiceProto.getDescriptor(); com.google.ads.googleads.v0.services.ConversionActionServiceProto.getDescriptor(); @@ -638,7 +608,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.services.UserListServiceProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GoogleAdsServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GoogleAdsServiceSettings.java index a89c2dcfcc..97d3fda447 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/GoogleAdsServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/GoogleAdsServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/HotelGroupViewServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/HotelGroupViewServiceClient.java index c0246e2042..181b9b2b51 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/HotelGroupViewServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/HotelGroupViewServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -218,7 +218,7 @@ public final HotelGroupView getHotelGroupView(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final HotelGroupView getHotelGroupView(GetHotelGroupViewRequest request) { + public final HotelGroupView getHotelGroupView(GetHotelGroupViewRequest request) { return getHotelGroupViewCallable().call(request); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/HotelGroupViewServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/HotelGroupViewServiceProto.java index ff896991a5..9913d4d4fe 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/HotelGroupViewServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/HotelGroupViewServiceProto.java @@ -39,13 +39,14 @@ public static void registerAllExtensions( "s.GetHotelGroupViewRequest\0321.google.ads." + "googleads.v0.resources.HotelGroupView\"9\202" + "\323\344\223\0023\0221/v0/{resource_name=customers/*/ho" + - "telGroupViews/*}B\332\001\n$com.google.ads.goog" + + "telGroupViews/*}B\201\002\n$com.google.ads.goog" + "leads.v0.servicesB\032HotelGroupViewService" + "ProtoP\001ZHgoogle.golang.org/genproto/goog" + "leapis/ads/googleads/v0/services;service" + "s\242\002\003GAA\252\002 Google.Ads.GoogleAds.V0.Servic" + - "es\312\002 Google\\Ads\\GoogleAds\\V0\\Servicesb\006p" + - "roto3" + "es\312\002 Google\\Ads\\GoogleAds\\V0\\Services\352\002$" + + "Google::Ads::GoogleAds::V0::Servicesb\006pr" + + "oto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/HotelGroupViewServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/HotelGroupViewServiceSettings.java index cd9a902fad..362897309a 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/HotelGroupViewServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/HotelGroupViewServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/HotelPerformanceViewServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/HotelPerformanceViewServiceClient.java index ae5802ef3e..f9b44aa288 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/HotelPerformanceViewServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/HotelPerformanceViewServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -36,7 +36,7 @@ *
  * 
  * try (HotelPerformanceViewServiceClient hotelPerformanceViewServiceClient = HotelPerformanceViewServiceClient.create()) {
- *   String formattedResourceName = HotelPerformanceViewServiceClient.formatHotelPerformanceViewName("[CUSTOMER]");
+ *   String formattedResourceName = HotelPerformanceViewServiceClient.formatCustomerName("[CUSTOMER]");
  *   HotelPerformanceView response = hotelPerformanceViewServiceClient.getHotelPerformanceView(formattedResourceName);
  * }
  * 
@@ -102,6 +102,9 @@ public class HotelPerformanceViewServiceClient implements BackgroundResource {
   private static final PathTemplate HOTEL_PERFORMANCE_VIEW_PATH_TEMPLATE =
       PathTemplate.createWithoutUrlEncoding("customers/{customer}/hotelPerformanceView");
 
+  private static final PathTemplate CUSTOMER_PATH_TEMPLATE =
+      PathTemplate.createWithoutUrlEncoding("customers/{customer}");
+
   /**
    * Formats a string containing the fully-qualified path to represent a hotel_performance_view
    * resource.
@@ -110,6 +113,11 @@ public static final String formatHotelPerformanceViewName(String customer) {
     return HOTEL_PERFORMANCE_VIEW_PATH_TEMPLATE.instantiate("customer", customer);
   }
 
+  /** Formats a string containing the fully-qualified path to represent a customer resource. */
+  public static final String formatCustomerName(String customer) {
+    return CUSTOMER_PATH_TEMPLATE.instantiate("customer", customer);
+  }
+
   /**
    * Parses the customer from the given fully-qualified path which represents a
    * hotel_performance_view resource.
@@ -119,6 +127,13 @@ public static final String parseCustomerFromHotelPerformanceViewName(
     return HOTEL_PERFORMANCE_VIEW_PATH_TEMPLATE.parse(hotelPerformanceViewName).get("customer");
   }
 
+  /**
+   * Parses the customer from the given fully-qualified path which represents a customer resource.
+   */
+  public static final String parseCustomerFromCustomerName(String customerName) {
+    return CUSTOMER_PATH_TEMPLATE.parse(customerName).get("customer");
+  }
+
   /** Constructs an instance of HotelPerformanceViewServiceClient with default settings. */
   public static final HotelPerformanceViewServiceClient create() throws IOException {
     return create(HotelPerformanceViewServiceSettings.newBuilder().build());
@@ -178,7 +193,7 @@ public HotelPerformanceViewServiceStub getStub() {
    *
    * 

    * try (HotelPerformanceViewServiceClient hotelPerformanceViewServiceClient = HotelPerformanceViewServiceClient.create()) {
-   *   String formattedResourceName = HotelPerformanceViewServiceClient.formatHotelPerformanceViewName("[CUSTOMER]");
+   *   String formattedResourceName = HotelPerformanceViewServiceClient.formatCustomerName("[CUSTOMER]");
    *   HotelPerformanceView response = hotelPerformanceViewServiceClient.getHotelPerformanceView(formattedResourceName);
    * }
    * 
@@ -187,7 +202,7 @@ public HotelPerformanceViewServiceStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final HotelPerformanceView getHotelPerformanceView(String resourceName) { - HOTEL_PERFORMANCE_VIEW_PATH_TEMPLATE.validate(resourceName, "getHotelPerformanceView"); + CUSTOMER_PATH_TEMPLATE.validate(resourceName, "getHotelPerformanceView"); GetHotelPerformanceViewRequest request = GetHotelPerformanceViewRequest.newBuilder().setResourceName(resourceName).build(); return getHotelPerformanceView(request); @@ -201,7 +216,7 @@ public final HotelPerformanceView getHotelPerformanceView(String resourceName) { * *

    * try (HotelPerformanceViewServiceClient hotelPerformanceViewServiceClient = HotelPerformanceViewServiceClient.create()) {
-   *   String formattedResourceName = HotelPerformanceViewServiceClient.formatHotelPerformanceViewName("[CUSTOMER]");
+   *   String formattedResourceName = HotelPerformanceViewServiceClient.formatCustomerName("[CUSTOMER]");
    *   GetHotelPerformanceViewRequest request = GetHotelPerformanceViewRequest.newBuilder()
    *     .setResourceName(formattedResourceName)
    *     .build();
@@ -212,7 +227,7 @@ public final HotelPerformanceView getHotelPerformanceView(String resourceName) {
    * @param request The request object containing all of the parameters for the API call.
    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
    */
-  private final HotelPerformanceView getHotelPerformanceView(
+  public final HotelPerformanceView getHotelPerformanceView(
       GetHotelPerformanceViewRequest request) {
     return getHotelPerformanceViewCallable().call(request);
   }
@@ -225,7 +240,7 @@ private final HotelPerformanceView getHotelPerformanceView(
    *
    * 

    * try (HotelPerformanceViewServiceClient hotelPerformanceViewServiceClient = HotelPerformanceViewServiceClient.create()) {
-   *   String formattedResourceName = HotelPerformanceViewServiceClient.formatHotelPerformanceViewName("[CUSTOMER]");
+   *   String formattedResourceName = HotelPerformanceViewServiceClient.formatCustomerName("[CUSTOMER]");
    *   GetHotelPerformanceViewRequest request = GetHotelPerformanceViewRequest.newBuilder()
    *     .setResourceName(formattedResourceName)
    *     .build();
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/HotelPerformanceViewServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/HotelPerformanceViewServiceProto.java
index 2671e514fa..c797393ec6 100644
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/HotelPerformanceViewServiceProto.java
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/HotelPerformanceViewServiceProto.java
@@ -40,13 +40,14 @@ public static void registerAllExtensions(
       "PerformanceViewRequest\0327.google.ads.goog" +
       "leads.v0.resources.HotelPerformanceView\"" +
       "<\202\323\344\223\0026\0224/v0/{resource_name=customers/*/" +
-      "hotelPerformanceView}B\340\001\n$com.google.ads" +
+      "hotelPerformanceView}B\207\002\n$com.google.ads" +
       ".googleads.v0.servicesB HotelPerformance" +
       "ViewServiceProtoP\001ZHgoogle.golang.org/ge" +
       "nproto/googleapis/ads/googleads/v0/servi" +
       "ces;services\242\002\003GAA\252\002 Google.Ads.GoogleAd" +
       "s.V0.Services\312\002 Google\\Ads\\GoogleAds\\V0\\" +
-      "Servicesb\006proto3"
+      "Services\352\002$Google::Ads::GoogleAds::V0::S" +
+      "ervicesb\006proto3"
     };
     com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
         new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/HotelPerformanceViewServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/HotelPerformanceViewServiceSettings.java
index 3beb5aebd0..57e91cad96 100644
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/HotelPerformanceViewServiceSettings.java
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/HotelPerformanceViewServiceSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2018 Google LLC
+ * Copyright 2019 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanAdGroupServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanAdGroupServiceClient.java
index 838c600489..ed9ca6d890 100644
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanAdGroupServiceClient.java
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanAdGroupServiceClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2018 Google LLC
+ * Copyright 2019 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -227,7 +227,7 @@ public final KeywordPlanAdGroup getKeywordPlanAdGroup(String resourceName) {
    * @param request The request object containing all of the parameters for the API call.
    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
    */
-  private final KeywordPlanAdGroup getKeywordPlanAdGroup(GetKeywordPlanAdGroupRequest request) {
+  public final KeywordPlanAdGroup getKeywordPlanAdGroup(GetKeywordPlanAdGroupRequest request) {
     return getKeywordPlanAdGroupCallable().call(request);
   }
 
@@ -254,6 +254,47 @@ private final KeywordPlanAdGroup getKeywordPlanAdGroup(GetKeywordPlanAdGroupRequ
     return stub.getKeywordPlanAdGroupCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD
+  /**
+   * Creates, updates, or removes Keyword Plan ad groups. Operation statuses are returned.
+   *
+   * 

Sample code: + * + *


+   * try (KeywordPlanAdGroupServiceClient keywordPlanAdGroupServiceClient = KeywordPlanAdGroupServiceClient.create()) {
+   *   String customerId = "";
+   *   List<KeywordPlanAdGroupOperation> operations = new ArrayList<>();
+   *   boolean partialFailure = false;
+   *   boolean validateOnly = false;
+   *   MutateKeywordPlanAdGroupsResponse response = keywordPlanAdGroupServiceClient.mutateKeywordPlanAdGroups(customerId, operations, partialFailure, validateOnly);
+   * }
+   * 
+ * + * @param customerId The ID of the customer whose Keyword Plan ad groups are being modified. + * @param operations The list of operations to perform on individual Keyword Plan ad groups. + * @param partialFailure If true, successful operations will be carried out and invalid operations + * will return errors. If false, all operations will be carried out in one transaction if and + * only if they are all valid. Default is false. + * @param validateOnly If true, the request is validated but not executed. Only errors are + * returned, not results. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateKeywordPlanAdGroupsResponse mutateKeywordPlanAdGroups( + String customerId, + List operations, + boolean partialFailure, + boolean validateOnly) { + + MutateKeywordPlanAdGroupsRequest request = + MutateKeywordPlanAdGroupsRequest.newBuilder() + .setCustomerId(customerId) + .addAllOperations(operations) + .setPartialFailure(partialFailure) + .setValidateOnly(validateOnly) + .build(); + return mutateKeywordPlanAdGroups(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Creates, updates, or removes Keyword Plan ad groups. Operation statuses are returned. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanAdGroupServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanAdGroupServiceProto.java index f070a0e10d..b933560999 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanAdGroupServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanAdGroupServiceProto.java @@ -53,41 +53,46 @@ public static void registerAllExtensions( "ds.googleads.v0.services\032=google/ads/goo" + "gleads/v0/resources/keyword_plan_ad_grou" + "p.proto\032\034google/api/annotations.proto\032 g" + - "oogle/protobuf/field_mask.proto\"5\n\034GetKe" + - "ywordPlanAdGroupRequest\022\025\n\rresource_name" + - "\030\001 \001(\t\"\212\001\n MutateKeywordPlanAdGroupsRequ" + - "est\022\023\n\013customer_id\030\001 \001(\t\022Q\n\noperations\030\002" + - " \003(\0132=.google.ads.googleads.v0.services." + - "KeywordPlanAdGroupOperation\"\377\001\n\033KeywordP" + - "lanAdGroupOperation\022/\n\013update_mask\030\004 \001(\013" + - "2\032.google.protobuf.FieldMask\022G\n\006create\030\001" + - " \001(\01325.google.ads.googleads.v0.resources" + - ".KeywordPlanAdGroupH\000\022G\n\006update\030\002 \001(\01325." + - "google.ads.googleads.v0.resources.Keywor" + - "dPlanAdGroupH\000\022\020\n\006remove\030\003 \001(\tH\000B\013\n\toper" + - "ation\"v\n!MutateKeywordPlanAdGroupsRespon" + - "se\022Q\n\007results\030\002 \003(\0132@.google.ads.googlea" + - "ds.v0.services.MutateKeywordPlanAdGroupR" + - "esult\"7\n\036MutateKeywordPlanAdGroupResult\022" + - "\025\n\rresource_name\030\001 \001(\t2\327\003\n\031KeywordPlanAd" + - "GroupService\022\315\001\n\025GetKeywordPlanAdGroup\022>" + - ".google.ads.googleads.v0.services.GetKey" + - "wordPlanAdGroupRequest\0325.google.ads.goog" + - "leads.v0.resources.KeywordPlanAdGroup\"=\202" + - "\323\344\223\0027\0225/v0/{resource_name=customers/*/ke" + - "ywordPlanAdGroups/*}\022\351\001\n\031MutateKeywordPl" + - "anAdGroups\022B.google.ads.googleads.v0.ser" + - "vices.MutateKeywordPlanAdGroupsRequest\032C" + - ".google.ads.googleads.v0.services.Mutate" + - "KeywordPlanAdGroupsResponse\"C\202\323\344\223\002=\"8/v0" + - "/customers/{customer_id=*}/keywordPlanAd" + - "Groups:mutate:\001*B\336\001\n$com.google.ads.goog" + - "leads.v0.servicesB\036KeywordPlanAdGroupSer" + - "viceProtoP\001ZHgoogle.golang.org/genproto/" + - "googleapis/ads/googleads/v0/services;ser" + - "vices\242\002\003GAA\252\002 Google.Ads.GoogleAds.V0.Se" + - "rvices\312\002 Google\\Ads\\GoogleAds\\V0\\Service" + - "sb\006proto3" + "oogle/protobuf/field_mask.proto\032\036google/" + + "protobuf/wrappers.proto\032\027google/rpc/stat" + + "us.proto\"5\n\034GetKeywordPlanAdGroupRequest" + + "\022\025\n\rresource_name\030\001 \001(\t\"\272\001\n MutateKeywor" + + "dPlanAdGroupsRequest\022\023\n\013customer_id\030\001 \001(" + + "\t\022Q\n\noperations\030\002 \003(\0132=.google.ads.googl" + + "eads.v0.services.KeywordPlanAdGroupOpera" + + "tion\022\027\n\017partial_failure\030\003 \001(\010\022\025\n\rvalidat" + + "e_only\030\004 \001(\010\"\377\001\n\033KeywordPlanAdGroupOpera" + + "tion\022/\n\013update_mask\030\004 \001(\0132\032.google.proto" + + "buf.FieldMask\022G\n\006create\030\001 \001(\01325.google.a" + + "ds.googleads.v0.resources.KeywordPlanAdG" + + "roupH\000\022G\n\006update\030\002 \001(\01325.google.ads.goog" + + "leads.v0.resources.KeywordPlanAdGroupH\000\022" + + "\020\n\006remove\030\003 \001(\tH\000B\013\n\toperation\"\251\001\n!Mutat" + + "eKeywordPlanAdGroupsResponse\0221\n\025partial_" + + "failure_error\030\003 \001(\0132\022.google.rpc.Status\022" + + "Q\n\007results\030\002 \003(\0132@.google.ads.googleads." + + "v0.services.MutateKeywordPlanAdGroupResu" + + "lt\"7\n\036MutateKeywordPlanAdGroupResult\022\025\n\r" + + "resource_name\030\001 \001(\t2\327\003\n\031KeywordPlanAdGro" + + "upService\022\315\001\n\025GetKeywordPlanAdGroup\022>.go" + + "ogle.ads.googleads.v0.services.GetKeywor" + + "dPlanAdGroupRequest\0325.google.ads.googlea" + + "ds.v0.resources.KeywordPlanAdGroup\"=\202\323\344\223" + + "\0027\0225/v0/{resource_name=customers/*/keywo" + + "rdPlanAdGroups/*}\022\351\001\n\031MutateKeywordPlanA" + + "dGroups\022B.google.ads.googleads.v0.servic" + + "es.MutateKeywordPlanAdGroupsRequest\032C.go" + + "ogle.ads.googleads.v0.services.MutateKey" + + "wordPlanAdGroupsResponse\"C\202\323\344\223\002=\"8/v0/cu" + + "stomers/{customer_id=*}/keywordPlanAdGro" + + "ups:mutate:\001*B\205\002\n$com.google.ads.googlea" + + "ds.v0.servicesB\036KeywordPlanAdGroupServic" + + "eProtoP\001ZHgoogle.golang.org/genproto/goo" + + "gleapis/ads/googleads/v0/services;servic" + + "es\242\002\003GAA\252\002 Google.Ads.GoogleAds.V0.Servi" + + "ces\312\002 Google\\Ads\\GoogleAds\\V0\\Services\352\002" + + "$Google::Ads::GoogleAds::V0::Servicesb\006p" + + "roto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -103,6 +108,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.KeywordPlanAdGroupProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), }, assigner); internal_static_google_ads_googleads_v0_services_GetKeywordPlanAdGroupRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -115,7 +122,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateKeywordPlanAdGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateKeywordPlanAdGroupsRequest_descriptor, - new java.lang.String[] { "CustomerId", "Operations", }); + new java.lang.String[] { "CustomerId", "Operations", "PartialFailure", "ValidateOnly", }); internal_static_google_ads_googleads_v0_services_KeywordPlanAdGroupOperation_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_ads_googleads_v0_services_KeywordPlanAdGroupOperation_fieldAccessorTable = new @@ -127,7 +134,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateKeywordPlanAdGroupsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateKeywordPlanAdGroupsResponse_descriptor, - new java.lang.String[] { "Results", }); + new java.lang.String[] { "PartialFailureError", "Results", }); internal_static_google_ads_googleads_v0_services_MutateKeywordPlanAdGroupResult_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_google_ads_googleads_v0_services_MutateKeywordPlanAdGroupResult_fieldAccessorTable = new @@ -142,6 +149,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.KeywordPlanAdGroupProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanAdGroupServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanAdGroupServiceSettings.java index ad0365ffb4..3c774621e3 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanAdGroupServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanAdGroupServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanCampaignServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanCampaignServiceClient.java index d566b9b8c9..3a2252ceec 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanCampaignServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanCampaignServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -227,7 +227,7 @@ public final KeywordPlanCampaign getKeywordPlanCampaign(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final KeywordPlanCampaign getKeywordPlanCampaign(GetKeywordPlanCampaignRequest request) { + public final KeywordPlanCampaign getKeywordPlanCampaign(GetKeywordPlanCampaignRequest request) { return getKeywordPlanCampaignCallable().call(request); } @@ -254,6 +254,47 @@ private final KeywordPlanCampaign getKeywordPlanCampaign(GetKeywordPlanCampaignR return stub.getKeywordPlanCampaignCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates, updates, or removes Keyword Plan campaigns. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (KeywordPlanCampaignServiceClient keywordPlanCampaignServiceClient = KeywordPlanCampaignServiceClient.create()) {
+   *   String customerId = "";
+   *   List<KeywordPlanCampaignOperation> operations = new ArrayList<>();
+   *   boolean partialFailure = false;
+   *   boolean validateOnly = false;
+   *   MutateKeywordPlanCampaignsResponse response = keywordPlanCampaignServiceClient.mutateKeywordPlanCampaigns(customerId, operations, partialFailure, validateOnly);
+   * }
+   * 
+ * + * @param customerId The ID of the customer whose Keyword Plan campaigns are being modified. + * @param operations The list of operations to perform on individual Keyword Plan campaigns. + * @param partialFailure If true, successful operations will be carried out and invalid operations + * will return errors. If false, all operations will be carried out in one transaction if and + * only if they are all valid. Default is false. + * @param validateOnly If true, the request is validated but not executed. Only errors are + * returned, not results. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateKeywordPlanCampaignsResponse mutateKeywordPlanCampaigns( + String customerId, + List operations, + boolean partialFailure, + boolean validateOnly) { + + MutateKeywordPlanCampaignsRequest request = + MutateKeywordPlanCampaignsRequest.newBuilder() + .setCustomerId(customerId) + .addAllOperations(operations) + .setPartialFailure(partialFailure) + .setValidateOnly(validateOnly) + .build(); + return mutateKeywordPlanCampaigns(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Creates, updates, or removes Keyword Plan campaigns. Operation statuses are returned. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanCampaignServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanCampaignServiceProto.java index 0f60be3f9a..d8c5f1c906 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanCampaignServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanCampaignServiceProto.java @@ -53,41 +53,46 @@ public static void registerAllExtensions( "ds.googleads.v0.services\032=google/ads/goo" + "gleads/v0/resources/keyword_plan_campaig" + "n.proto\032\034google/api/annotations.proto\032 g" + - "oogle/protobuf/field_mask.proto\"6\n\035GetKe" + - "ywordPlanCampaignRequest\022\025\n\rresource_nam" + - "e\030\001 \001(\t\"\214\001\n!MutateKeywordPlanCampaignsRe" + - "quest\022\023\n\013customer_id\030\001 \001(\t\022R\n\noperations" + - "\030\002 \003(\0132>.google.ads.googleads.v0.service" + - "s.KeywordPlanCampaignOperation\"\202\002\n\034Keywo" + - "rdPlanCampaignOperation\022/\n\013update_mask\030\004" + - " \001(\0132\032.google.protobuf.FieldMask\022H\n\006crea" + - "te\030\001 \001(\01326.google.ads.googleads.v0.resou" + - "rces.KeywordPlanCampaignH\000\022H\n\006update\030\002 \001" + - "(\01326.google.ads.googleads.v0.resources.K" + - "eywordPlanCampaignH\000\022\020\n\006remove\030\003 \001(\tH\000B\013" + - "\n\toperation\"x\n\"MutateKeywordPlanCampaign" + - "sResponse\022R\n\007results\030\002 \003(\0132A.google.ads." + - "googleads.v0.services.MutateKeywordPlanC" + - "ampaignResult\"8\n\037MutateKeywordPlanCampai" + - "gnResult\022\025\n\rresource_name\030\001 \001(\t2\340\003\n\032Keyw" + - "ordPlanCampaignService\022\321\001\n\026GetKeywordPla" + - "nCampaign\022?.google.ads.googleads.v0.serv" + - "ices.GetKeywordPlanCampaignRequest\0326.goo" + - "gle.ads.googleads.v0.resources.KeywordPl" + - "anCampaign\">\202\323\344\223\0028\0226/v0/{resource_name=c" + - "ustomers/*/keywordPlanCampaigns/*}\022\355\001\n\032M" + - "utateKeywordPlanCampaigns\022C.google.ads.g" + - "oogleads.v0.services.MutateKeywordPlanCa" + - "mpaignsRequest\032D.google.ads.googleads.v0" + - ".services.MutateKeywordPlanCampaignsResp" + - "onse\"D\202\323\344\223\002>\"9/v0/customers/{customer_id" + - "=*}/keywordPlanCampaigns:mutate:\001*B\337\001\n$c" + - "om.google.ads.googleads.v0.servicesB\037Key" + - "wordPlanCampaignServiceProtoP\001ZHgoogle.g" + - "olang.org/genproto/googleapis/ads/google" + - "ads/v0/services;services\242\002\003GAA\252\002 Google." + - "Ads.GoogleAds.V0.Services\312\002 Google\\Ads\\G" + - "oogleAds\\V0\\Servicesb\006proto3" + "oogle/protobuf/field_mask.proto\032\036google/" + + "protobuf/wrappers.proto\032\027google/rpc/stat" + + "us.proto\"6\n\035GetKeywordPlanCampaignReques" + + "t\022\025\n\rresource_name\030\001 \001(\t\"\274\001\n!MutateKeywo" + + "rdPlanCampaignsRequest\022\023\n\013customer_id\030\001 " + + "\001(\t\022R\n\noperations\030\002 \003(\0132>.google.ads.goo" + + "gleads.v0.services.KeywordPlanCampaignOp" + + "eration\022\027\n\017partial_failure\030\003 \001(\010\022\025\n\rvali" + + "date_only\030\004 \001(\010\"\202\002\n\034KeywordPlanCampaignO" + + "peration\022/\n\013update_mask\030\004 \001(\0132\032.google.p" + + "rotobuf.FieldMask\022H\n\006create\030\001 \001(\01326.goog" + + "le.ads.googleads.v0.resources.KeywordPla" + + "nCampaignH\000\022H\n\006update\030\002 \001(\01326.google.ads" + + ".googleads.v0.resources.KeywordPlanCampa" + + "ignH\000\022\020\n\006remove\030\003 \001(\tH\000B\013\n\toperation\"\253\001\n" + + "\"MutateKeywordPlanCampaignsResponse\0221\n\025p" + + "artial_failure_error\030\003 \001(\0132\022.google.rpc." + + "Status\022R\n\007results\030\002 \003(\0132A.google.ads.goo" + + "gleads.v0.services.MutateKeywordPlanCamp" + + "aignResult\"8\n\037MutateKeywordPlanCampaignR" + + "esult\022\025\n\rresource_name\030\001 \001(\t2\340\003\n\032Keyword" + + "PlanCampaignService\022\321\001\n\026GetKeywordPlanCa" + + "mpaign\022?.google.ads.googleads.v0.service" + + "s.GetKeywordPlanCampaignRequest\0326.google" + + ".ads.googleads.v0.resources.KeywordPlanC" + + "ampaign\">\202\323\344\223\0028\0226/v0/{resource_name=cust" + + "omers/*/keywordPlanCampaigns/*}\022\355\001\n\032Muta" + + "teKeywordPlanCampaigns\022C.google.ads.goog" + + "leads.v0.services.MutateKeywordPlanCampa" + + "ignsRequest\032D.google.ads.googleads.v0.se" + + "rvices.MutateKeywordPlanCampaignsRespons" + + "e\"D\202\323\344\223\002>\"9/v0/customers/{customer_id=*}" + + "/keywordPlanCampaigns:mutate:\001*B\206\002\n$com." + + "google.ads.googleads.v0.servicesB\037Keywor" + + "dPlanCampaignServiceProtoP\001ZHgoogle.gola" + + "ng.org/genproto/googleapis/ads/googleads" + + "/v0/services;services\242\002\003GAA\252\002 Google.Ads" + + ".GoogleAds.V0.Services\312\002 Google\\Ads\\Goog" + + "leAds\\V0\\Services\352\002$Google::Ads::GoogleA" + + "ds::V0::Servicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -103,6 +108,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.KeywordPlanCampaignProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), }, assigner); internal_static_google_ads_googleads_v0_services_GetKeywordPlanCampaignRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -115,7 +122,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateKeywordPlanCampaignsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateKeywordPlanCampaignsRequest_descriptor, - new java.lang.String[] { "CustomerId", "Operations", }); + new java.lang.String[] { "CustomerId", "Operations", "PartialFailure", "ValidateOnly", }); internal_static_google_ads_googleads_v0_services_KeywordPlanCampaignOperation_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_ads_googleads_v0_services_KeywordPlanCampaignOperation_fieldAccessorTable = new @@ -127,7 +134,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateKeywordPlanCampaignsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateKeywordPlanCampaignsResponse_descriptor, - new java.lang.String[] { "Results", }); + new java.lang.String[] { "PartialFailureError", "Results", }); internal_static_google_ads_googleads_v0_services_MutateKeywordPlanCampaignResult_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_google_ads_googleads_v0_services_MutateKeywordPlanCampaignResult_fieldAccessorTable = new @@ -142,6 +149,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.KeywordPlanCampaignProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanCampaignServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanCampaignServiceSettings.java index 36b09ea614..cf369832a8 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanCampaignServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanCampaignServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanIdeaServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanIdeaServiceClient.java index 262edaea20..cf94a0baf6 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanIdeaServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanIdeaServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanIdeaServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanIdeaServiceProto.java index 6d7cc898b3..d429098ae9 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanIdeaServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanIdeaServiceProto.java @@ -90,13 +90,14 @@ public static void registerAllExtensions( "s.GenerateKeywordIdeasRequest\032=.google.a" + "ds.googleads.v0.services.GenerateKeyword" + "IdeaResponse\"=\202\323\344\223\0027\"2/v0/customers/{cus" + - "tomer_id=*}:generateKeywordIdeas:\001*B\333\001\n$" + + "tomer_id=*}:generateKeywordIdeas:\001*B\202\002\n$" + "com.google.ads.googleads.v0.servicesB\033Ke" + "ywordPlanIdeaServiceProtoP\001ZHgoogle.gola" + "ng.org/genproto/googleapis/ads/googleads" + "/v0/services;services\242\002\003GAA\252\002 Google.Ads" + ".GoogleAds.V0.Services\312\002 Google\\Ads\\Goog" + - "leAds\\V0\\Servicesb\006proto3" + "leAds\\V0\\Services\352\002$Google::Ads::GoogleA" + + "ds::V0::Servicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanIdeaServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanIdeaServiceSettings.java index cabaeeea86..5176681266 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanIdeaServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanIdeaServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanKeywordServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanKeywordServiceClient.java index 05bb515fd6..d7d85869f1 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanKeywordServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanKeywordServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -227,7 +227,7 @@ public final KeywordPlanKeyword getKeywordPlanKeyword(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final KeywordPlanKeyword getKeywordPlanKeyword(GetKeywordPlanKeywordRequest request) { + public final KeywordPlanKeyword getKeywordPlanKeyword(GetKeywordPlanKeywordRequest request) { return getKeywordPlanKeywordCallable().call(request); } @@ -254,6 +254,47 @@ private final KeywordPlanKeyword getKeywordPlanKeyword(GetKeywordPlanKeywordRequ return stub.getKeywordPlanKeywordCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates, updates, or removes Keyword Plan keywords. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (KeywordPlanKeywordServiceClient keywordPlanKeywordServiceClient = KeywordPlanKeywordServiceClient.create()) {
+   *   String customerId = "";
+   *   List<KeywordPlanKeywordOperation> operations = new ArrayList<>();
+   *   boolean partialFailure = false;
+   *   boolean validateOnly = false;
+   *   MutateKeywordPlanKeywordsResponse response = keywordPlanKeywordServiceClient.mutateKeywordPlanKeywords(customerId, operations, partialFailure, validateOnly);
+   * }
+   * 
+ * + * @param customerId The ID of the customer whose Keyword Plan keywords are being modified. + * @param operations The list of operations to perform on individual Keyword Plan keywords. + * @param partialFailure If true, successful operations will be carried out and invalid operations + * will return errors. If false, all operations will be carried out in one transaction if and + * only if they are all valid. Default is false. + * @param validateOnly If true, the request is validated but not executed. Only errors are + * returned, not results. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateKeywordPlanKeywordsResponse mutateKeywordPlanKeywords( + String customerId, + List operations, + boolean partialFailure, + boolean validateOnly) { + + MutateKeywordPlanKeywordsRequest request = + MutateKeywordPlanKeywordsRequest.newBuilder() + .setCustomerId(customerId) + .addAllOperations(operations) + .setPartialFailure(partialFailure) + .setValidateOnly(validateOnly) + .build(); + return mutateKeywordPlanKeywords(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Creates, updates, or removes Keyword Plan keywords. Operation statuses are returned. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanKeywordServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanKeywordServiceProto.java index 73eaabbb4e..996bf99a8f 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanKeywordServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanKeywordServiceProto.java @@ -53,41 +53,46 @@ public static void registerAllExtensions( "s.googleads.v0.services\032.g" + - "oogle.ads.googleads.v0.services.GetKeywo" + - "rdPlanKeywordRequest\0325.google.ads.google" + - "ads.v0.resources.KeywordPlanKeyword\"=\202\323\344" + - "\223\0027\0225/v0/{resource_name=customers/*/keyw" + - "ordPlanKeywords/*}\022\351\001\n\031MutateKeywordPlan" + - "Keywords\022B.google.ads.googleads.v0.servi" + - "ces.MutateKeywordPlanKeywordsRequest\032C.g" + - "oogle.ads.googleads.v0.services.MutateKe" + - "ywordPlanKeywordsResponse\"C\202\323\344\223\002=\"8/v0/c" + - "ustomers/{customer_id=*}/keywordPlanKeyw" + - "ords:mutate:\001*B\336\001\n$com.google.ads.google" + - "ads.v0.servicesB\036KeywordPlanKeywordServi" + - "ceProtoP\001ZHgoogle.golang.org/genproto/go" + - "ogleapis/ads/googleads/v0/services;servi" + - "ces\242\002\003GAA\252\002 Google.Ads.GoogleAds.V0.Serv" + - "ices\312\002 Google\\Ads\\GoogleAds\\V0\\Servicesb" + - "\006proto3" + "gle/protobuf/field_mask.proto\032\036google/pr" + + "otobuf/wrappers.proto\032\027google/rpc/status" + + ".proto\"5\n\034GetKeywordPlanKeywordRequest\022\025" + + "\n\rresource_name\030\001 \001(\t\"\272\001\n MutateKeywordP" + + "lanKeywordsRequest\022\023\n\013customer_id\030\001 \001(\t\022" + + "Q\n\noperations\030\002 \003(\0132=.google.ads.googlea" + + "ds.v0.services.KeywordPlanKeywordOperati" + + "on\022\027\n\017partial_failure\030\003 \001(\010\022\025\n\rvalidate_" + + "only\030\004 \001(\010\"\377\001\n\033KeywordPlanKeywordOperati" + + "on\022/\n\013update_mask\030\004 \001(\0132\032.google.protobu" + + "f.FieldMask\022G\n\006create\030\001 \001(\01325.google.ads" + + ".googleads.v0.resources.KeywordPlanKeywo" + + "rdH\000\022G\n\006update\030\002 \001(\01325.google.ads.google" + + "ads.v0.resources.KeywordPlanKeywordH\000\022\020\n" + + "\006remove\030\003 \001(\tH\000B\013\n\toperation\"\251\001\n!MutateK" + + "eywordPlanKeywordsResponse\0221\n\025partial_fa" + + "ilure_error\030\003 \001(\0132\022.google.rpc.Status\022Q\n" + + "\007results\030\002 \003(\0132@.google.ads.googleads.v0" + + ".services.MutateKeywordPlanKeywordResult" + + "\"7\n\036MutateKeywordPlanKeywordResult\022\025\n\rre" + + "source_name\030\001 \001(\t2\327\003\n\031KeywordPlanKeyword" + + "Service\022\315\001\n\025GetKeywordPlanKeyword\022>.goog" + + "le.ads.googleads.v0.services.GetKeywordP" + + "lanKeywordRequest\0325.google.ads.googleads" + + ".v0.resources.KeywordPlanKeyword\"=\202\323\344\223\0027" + + "\0225/v0/{resource_name=customers/*/keyword" + + "PlanKeywords/*}\022\351\001\n\031MutateKeywordPlanKey" + + "words\022B.google.ads.googleads.v0.services" + + ".MutateKeywordPlanKeywordsRequest\032C.goog" + + "le.ads.googleads.v0.services.MutateKeywo" + + "rdPlanKeywordsResponse\"C\202\323\344\223\002=\"8/v0/cust" + + "omers/{customer_id=*}/keywordPlanKeyword" + + "s:mutate:\001*B\205\002\n$com.google.ads.googleads" + + ".v0.servicesB\036KeywordPlanKeywordServiceP" + + "rotoP\001ZHgoogle.golang.org/genproto/googl" + + "eapis/ads/googleads/v0/services;services" + + "\242\002\003GAA\252\002 Google.Ads.GoogleAds.V0.Service" + + "s\312\002 Google\\Ads\\GoogleAds\\V0\\Services\352\002$G" + + "oogle::Ads::GoogleAds::V0::Servicesb\006pro" + + "to3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -103,6 +108,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.KeywordPlanKeywordProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), }, assigner); internal_static_google_ads_googleads_v0_services_GetKeywordPlanKeywordRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -115,7 +122,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateKeywordPlanKeywordsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateKeywordPlanKeywordsRequest_descriptor, - new java.lang.String[] { "CustomerId", "Operations", }); + new java.lang.String[] { "CustomerId", "Operations", "PartialFailure", "ValidateOnly", }); internal_static_google_ads_googleads_v0_services_KeywordPlanKeywordOperation_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_ads_googleads_v0_services_KeywordPlanKeywordOperation_fieldAccessorTable = new @@ -127,7 +134,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateKeywordPlanKeywordsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateKeywordPlanKeywordsResponse_descriptor, - new java.lang.String[] { "Results", }); + new java.lang.String[] { "PartialFailureError", "Results", }); internal_static_google_ads_googleads_v0_services_MutateKeywordPlanKeywordResult_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_google_ads_googleads_v0_services_MutateKeywordPlanKeywordResult_fieldAccessorTable = new @@ -142,6 +149,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.KeywordPlanKeywordProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanKeywordServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanKeywordServiceSettings.java index 9e5481a1e5..37e96178cc 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanKeywordServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanKeywordServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanNegativeKeywordServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanNegativeKeywordServiceClient.java index 1290717a82..3ec70e2d1d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanNegativeKeywordServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanNegativeKeywordServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -233,7 +233,7 @@ public final KeywordPlanNegativeKeyword getKeywordPlanNegativeKeyword(String res * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final KeywordPlanNegativeKeyword getKeywordPlanNegativeKeyword( + public final KeywordPlanNegativeKeyword getKeywordPlanNegativeKeyword( GetKeywordPlanNegativeKeywordRequest request) { return getKeywordPlanNegativeKeywordCallable().call(request); } @@ -261,6 +261,48 @@ private final KeywordPlanNegativeKeyword getKeywordPlanNegativeKeyword( return stub.getKeywordPlanNegativeKeywordCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates, updates, or removes Keyword Plan negative keywords. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (KeywordPlanNegativeKeywordServiceClient keywordPlanNegativeKeywordServiceClient = KeywordPlanNegativeKeywordServiceClient.create()) {
+   *   String customerId = "";
+   *   List<KeywordPlanNegativeKeywordOperation> operations = new ArrayList<>();
+   *   boolean partialFailure = false;
+   *   boolean validateOnly = false;
+   *   MutateKeywordPlanNegativeKeywordsResponse response = keywordPlanNegativeKeywordServiceClient.mutateKeywordPlanNegativeKeywords(customerId, operations, partialFailure, validateOnly);
+   * }
+   * 
+ * + * @param customerId The ID of the customer whose negative keywords are being modified. + * @param operations The list of operations to perform on individual Keyword Plan negative + * keywords. + * @param partialFailure If true, successful operations will be carried out and invalid operations + * will return errors. If false, all operations will be carried out in one transaction if and + * only if they are all valid. Default is false. + * @param validateOnly If true, the request is validated but not executed. Only errors are + * returned, not results. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateKeywordPlanNegativeKeywordsResponse mutateKeywordPlanNegativeKeywords( + String customerId, + List operations, + boolean partialFailure, + boolean validateOnly) { + + MutateKeywordPlanNegativeKeywordsRequest request = + MutateKeywordPlanNegativeKeywordsRequest.newBuilder() + .setCustomerId(customerId) + .addAllOperations(operations) + .setPartialFailure(partialFailure) + .setValidateOnly(validateOnly) + .build(); + return mutateKeywordPlanNegativeKeywords(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Creates, updates, or removes Keyword Plan negative keywords. Operation statuses are returned. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanNegativeKeywordServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanNegativeKeywordServiceProto.java index 4b28f31f52..d895b849f4 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanNegativeKeywordServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanNegativeKeywordServiceProto.java @@ -54,44 +54,49 @@ public static void registerAllExtensions( "/ads/googleads/v0/resources/keyword_plan" + "_negative_keyword.proto\032\034google/api/anno" + "tations.proto\032 google/protobuf/field_mas" + - "k.proto\"=\n$GetKeywordPlanNegativeKeyword" + - "Request\022\025\n\rresource_name\030\001 \001(\t\"\232\001\n(Mutat" + - "eKeywordPlanNegativeKeywordsRequest\022\023\n\013c" + - "ustomer_id\030\001 \001(\t\022Y\n\noperations\030\002 \003(\0132E.g" + - "oogle.ads.googleads.v0.services.KeywordP" + - "lanNegativeKeywordOperation\"\227\002\n#KeywordP" + - "lanNegativeKeywordOperation\022/\n\013update_ma" + - "sk\030\004 \001(\0132\032.google.protobuf.FieldMask\022O\n\006" + - "create\030\001 \001(\0132=.google.ads.googleads.v0.r" + - "esources.KeywordPlanNegativeKeywordH\000\022O\n" + - "\006update\030\002 \001(\0132=.google.ads.googleads.v0." + - "resources.KeywordPlanNegativeKeywordH\000\022\020" + - "\n\006remove\030\003 \001(\tH\000B\013\n\toperation\"\206\001\n)Mutate" + - "KeywordPlanNegativeKeywordsResponse\022Y\n\007r" + - "esults\030\002 \003(\0132H.google.ads.googleads.v0.s" + - "ervices.MutateKeywordPlanNegativeKeyword" + - "Result\"?\n&MutateKeywordPlanNegativeKeywo" + - "rdResult\022\025\n\rresource_name\030\001 \001(\t2\237\004\n!Keyw" + - "ordPlanNegativeKeywordService\022\355\001\n\035GetKey" + - "wordPlanNegativeKeyword\022F.google.ads.goo" + - "gleads.v0.services.GetKeywordPlanNegativ" + - "eKeywordRequest\032=.google.ads.googleads.v" + - "0.resources.KeywordPlanNegativeKeyword\"E" + - "\202\323\344\223\002?\022=/v0/{resource_name=customers/*/k" + - "eywordPlanNegativeKeywords/*}\022\211\002\n!Mutate" + - "KeywordPlanNegativeKeywords\022J.google.ads" + - ".googleads.v0.services.MutateKeywordPlan" + - "NegativeKeywordsRequest\032K.google.ads.goo" + + "k.proto\032\036google/protobuf/wrappers.proto\032" + + "\027google/rpc/status.proto\"=\n$GetKeywordPl" + + "anNegativeKeywordRequest\022\025\n\rresource_nam" + + "e\030\001 \001(\t\"\312\001\n(MutateKeywordPlanNegativeKey" + + "wordsRequest\022\023\n\013customer_id\030\001 \001(\t\022Y\n\nope" + + "rations\030\002 \003(\0132E.google.ads.googleads.v0." + + "services.KeywordPlanNegativeKeywordOpera" + + "tion\022\027\n\017partial_failure\030\003 \001(\010\022\025\n\rvalidat" + + "e_only\030\004 \001(\010\"\227\002\n#KeywordPlanNegativeKeyw" + + "ordOperation\022/\n\013update_mask\030\004 \001(\0132\032.goog" + + "le.protobuf.FieldMask\022O\n\006create\030\001 \001(\0132=." + + "google.ads.googleads.v0.resources.Keywor" + + "dPlanNegativeKeywordH\000\022O\n\006update\030\002 \001(\0132=" + + ".google.ads.googleads.v0.resources.Keywo" + + "rdPlanNegativeKeywordH\000\022\020\n\006remove\030\003 \001(\tH" + + "\000B\013\n\toperation\"\271\001\n)MutateKeywordPlanNega" + + "tiveKeywordsResponse\0221\n\025partial_failure_" + + "error\030\003 \001(\0132\022.google.rpc.Status\022Y\n\007resul" + + "ts\030\002 \003(\0132H.google.ads.googleads.v0.servi" + + "ces.MutateKeywordPlanNegativeKeywordResu" + + "lt\"?\n&MutateKeywordPlanNegativeKeywordRe" + + "sult\022\025\n\rresource_name\030\001 \001(\t2\237\004\n!KeywordP" + + "lanNegativeKeywordService\022\355\001\n\035GetKeyword" + + "PlanNegativeKeyword\022F.google.ads.googlea" + + "ds.v0.services.GetKeywordPlanNegativeKey" + + "wordRequest\032=.google.ads.googleads.v0.re" + + "sources.KeywordPlanNegativeKeyword\"E\202\323\344\223" + + "\002?\022=/v0/{resource_name=customers/*/keywo" + + "rdPlanNegativeKeywords/*}\022\211\002\n!MutateKeyw" + + "ordPlanNegativeKeywords\022J.google.ads.goo" + "gleads.v0.services.MutateKeywordPlanNega" + - "tiveKeywordsResponse\"K\202\323\344\223\002E\"@/v0/custom" + - "ers/{customer_id=*}/keywordPlanNegativeK" + - "eywords:mutate:\001*B\346\001\n$com.google.ads.goo" + - "gleads.v0.servicesB&KeywordPlanNegativeK" + - "eywordServiceProtoP\001ZHgoogle.golang.org/" + - "genproto/googleapis/ads/googleads/v0/ser" + - "vices;services\242\002\003GAA\252\002 Google.Ads.Google" + - "Ads.V0.Services\312\002 Google\\Ads\\GoogleAds\\V" + - "0\\Servicesb\006proto3" + "tiveKeywordsRequest\032K.google.ads.googlea" + + "ds.v0.services.MutateKeywordPlanNegative" + + "KeywordsResponse\"K\202\323\344\223\002E\"@/v0/customers/" + + "{customer_id=*}/keywordPlanNegativeKeywo" + + "rds:mutate:\001*B\215\002\n$com.google.ads.googlea" + + "ds.v0.servicesB&KeywordPlanNegativeKeywo" + + "rdServiceProtoP\001ZHgoogle.golang.org/genp" + + "roto/googleapis/ads/googleads/v0/service" + + "s;services\242\002\003GAA\252\002 Google.Ads.GoogleAds." + + "V0.Services\312\002 Google\\Ads\\GoogleAds\\V0\\Se" + + "rvices\352\002$Google::Ads::GoogleAds::V0::Ser" + + "vicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -107,6 +112,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeywordProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), }, assigner); internal_static_google_ads_googleads_v0_services_GetKeywordPlanNegativeKeywordRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -119,7 +126,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateKeywordPlanNegativeKeywordsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateKeywordPlanNegativeKeywordsRequest_descriptor, - new java.lang.String[] { "CustomerId", "Operations", }); + new java.lang.String[] { "CustomerId", "Operations", "PartialFailure", "ValidateOnly", }); internal_static_google_ads_googleads_v0_services_KeywordPlanNegativeKeywordOperation_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_ads_googleads_v0_services_KeywordPlanNegativeKeywordOperation_fieldAccessorTable = new @@ -131,7 +138,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateKeywordPlanNegativeKeywordsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateKeywordPlanNegativeKeywordsResponse_descriptor, - new java.lang.String[] { "Results", }); + new java.lang.String[] { "PartialFailureError", "Results", }); internal_static_google_ads_googleads_v0_services_MutateKeywordPlanNegativeKeywordResult_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_google_ads_googleads_v0_services_MutateKeywordPlanNegativeKeywordResult_fieldAccessorTable = new @@ -146,6 +153,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.KeywordPlanNegativeKeywordProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanNegativeKeywordServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanNegativeKeywordServiceSettings.java index bdd2eaa5e9..43842ee4ff 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanNegativeKeywordServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanNegativeKeywordServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanServiceClient.java index 079abd231d..7e0bb6f911 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -216,7 +216,7 @@ public final KeywordPlan getKeywordPlan(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final KeywordPlan getKeywordPlan(GetKeywordPlanRequest request) { + public final KeywordPlan getKeywordPlan(GetKeywordPlanRequest request) { return getKeywordPlanCallable().call(request); } @@ -242,6 +242,47 @@ public final UnaryCallable getKeywordPlanCal return stub.getKeywordPlanCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates, updates, or removes keyword plans. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (KeywordPlanServiceClient keywordPlanServiceClient = KeywordPlanServiceClient.create()) {
+   *   String customerId = "";
+   *   List<KeywordPlanOperation> operations = new ArrayList<>();
+   *   boolean partialFailure = false;
+   *   boolean validateOnly = false;
+   *   MutateKeywordPlansResponse response = keywordPlanServiceClient.mutateKeywordPlans(customerId, operations, partialFailure, validateOnly);
+   * }
+   * 
+ * + * @param customerId The ID of the customer whose keyword plans are being modified. + * @param operations The list of operations to perform on individual keyword plans. + * @param partialFailure If true, successful operations will be carried out and invalid operations + * will return errors. If false, all operations will be carried out in one transaction if and + * only if they are all valid. Default is false. + * @param validateOnly If true, the request is validated but not executed. Only errors are + * returned, not results. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateKeywordPlansResponse mutateKeywordPlans( + String customerId, + List operations, + boolean partialFailure, + boolean validateOnly) { + + MutateKeywordPlansRequest request = + MutateKeywordPlansRequest.newBuilder() + .setCustomerId(customerId) + .addAllOperations(operations) + .setPartialFailure(partialFailure) + .setValidateOnly(validateOnly) + .build(); + return mutateKeywordPlans(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Creates, updates, or removes keyword plans. Operation statuses are returned. @@ -363,7 +404,7 @@ public final GenerateForecastMetricsResponse generateForecastMetrics(String keyw * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final GenerateForecastMetricsResponse generateForecastMetrics( + public final GenerateForecastMetricsResponse generateForecastMetrics( GenerateForecastMetricsRequest request) { return generateForecastMetricsCallable().call(request); } @@ -434,7 +475,7 @@ public final GenerateHistoricalMetricsResponse generateHistoricalMetrics(String * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final GenerateHistoricalMetricsResponse generateHistoricalMetrics( + public final GenerateHistoricalMetricsResponse generateHistoricalMetrics( GenerateHistoricalMetricsRequest request) { return generateHistoricalMetricsCallable().call(request); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanServiceProto.java index 56f142acdf..c5eb0b1c53 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanServiceProto.java @@ -100,87 +100,91 @@ public static void registerAllExtensions( "e/ads/googleads/v0/resources/keyword_pla" + "n.proto\032\034google/api/annotations.proto\032 g" + "oogle/protobuf/field_mask.proto\032\036google/" + - "protobuf/wrappers.proto\".\n\025GetKeywordPla" + - "nRequest\022\025\n\rresource_name\030\001 \001(\t\"|\n\031Mutat" + - "eKeywordPlansRequest\022\023\n\013customer_id\030\001 \001(" + - "\t\022J\n\noperations\030\002 \003(\01326.google.ads.googl" + - "eads.v0.services.KeywordPlanOperation\"\352\001" + - "\n\024KeywordPlanOperation\022/\n\013update_mask\030\004 " + - "\001(\0132\032.google.protobuf.FieldMask\022@\n\006creat" + - "e\030\001 \001(\0132..google.ads.googleads.v0.resour" + - "ces.KeywordPlanH\000\022@\n\006update\030\002 \001(\0132..goog" + - "le.ads.googleads.v0.resources.KeywordPla" + - "nH\000\022\020\n\006remove\030\003 \001(\tH\000B\013\n\toperation\"i\n\032Mu" + - "tateKeywordPlansResponse\022K\n\007results\030\002 \003(" + - "\0132:.google.ads.googleads.v0.services.Mut" + - "ateKeywordPlansResult\"1\n\030MutateKeywordPl" + - "ansResult\022\025\n\rresource_name\030\001 \001(\t\"6\n\036Gene" + - "rateForecastMetricsRequest\022\024\n\014keyword_pl" + - "an\030\001 \001(\t\"\257\002\n\037GenerateForecastMetricsResp" + - "onse\022Y\n\022campaign_forecasts\030\001 \003(\0132=.googl" + - "e.ads.googleads.v0.services.KeywordPlanC" + - "ampaignForecast\022X\n\022ad_group_forecasts\030\002 " + - "\003(\0132<.google.ads.googleads.v0.services.K" + - "eywordPlanAdGroupForecast\022W\n\021keyword_for" + - "ecasts\030\003 \003(\0132<.google.ads.googleads.v0.s" + - "ervices.KeywordPlanKeywordForecast\"\250\001\n\033K" + - "eywordPlanCampaignForecast\022;\n\025keyword_pl" + - "an_campaign\030\001 \001(\0132\034.google.protobuf.Stri" + - "ngValue\022L\n\021campaign_forecast\030\002 \001(\01321.goo" + - "gle.ads.googleads.v0.services.ForecastMe" + - "trics\"\247\001\n\032KeywordPlanAdGroupForecast\022;\n\025" + - "keyword_plan_ad_group\030\001 \001(\0132\034.google.pro" + - "tobuf.StringValue\022L\n\021ad_group_forecast\030\002" + - " \001(\01321.google.ads.googleads.v0.services." + - "ForecastMetrics\"\256\001\n\032KeywordPlanKeywordFo" + - "recast\022C\n\035keyword_plan_ad_group_keyword\030" + - "\001 \001(\0132\034.google.protobuf.StringValue\022K\n\020k" + - "eyword_forecast\030\002 \001(\01321.google.ads.googl" + - "eads.v0.services.ForecastMetrics\"\201\002\n\017For" + - "ecastMetrics\0221\n\013impressions\030\001 \001(\0132\034.goog" + - "le.protobuf.DoubleValue\022)\n\003ctr\030\002 \001(\0132\034.g" + - "oogle.protobuf.DoubleValue\0220\n\013average_cp" + - "c\030\003 \001(\0132\033.google.protobuf.Int64Value\022,\n\006" + - "clicks\030\005 \001(\0132\034.google.protobuf.DoubleVal" + - "ue\0220\n\013cost_micros\030\006 \001(\0132\033.google.protobu" + - "f.Int64Value\"8\n GenerateHistoricalMetric" + - "sRequest\022\024\n\014keyword_plan\030\001 \001(\t\"{\n!Genera" + - "teHistoricalMetricsResponse\022V\n\007metrics\030\001" + - " \003(\0132E.google.ads.googleads.v0.services." + - "KeywordPlanKeywordHistoricalMetrics\"\260\001\n#" + - "KeywordPlanKeywordHistoricalMetrics\0222\n\014s" + - "earch_query\030\001 \001(\0132\034.google.protobuf.Stri" + - "ngValue\022U\n\017keyword_metrics\030\002 \001(\0132<.googl" + - "e.ads.googleads.v0.common.KeywordPlanHis" + - "toricalMetrics2\206\007\n\022KeywordPlanService\022\261\001" + - "\n\016GetKeywordPlan\0227.google.ads.googleads." + - "v0.services.GetKeywordPlanRequest\032..goog" + - "le.ads.googleads.v0.resources.KeywordPla" + - "n\"6\202\323\344\223\0020\022./v0/{resource_name=customers/" + - "*/keywordPlans/*}\022\315\001\n\022MutateKeywordPlans" + - "\022;.google.ads.googleads.v0.services.Muta" + - "teKeywordPlansRequest\032<.google.ads.googl" + - "eads.v0.services.MutateKeywordPlansRespo" + - "nse\"<\202\323\344\223\0026\"1/v0/customers/{customer_id=" + - "*}/keywordPlans:mutate:\001*\022\360\001\n\027GenerateFo" + - "recastMetrics\022@.google.ads.googleads.v0." + - "services.GenerateForecastMetricsRequest\032" + - "A.google.ads.googleads.v0.services.Gener" + - "ateForecastMetricsResponse\"P\202\323\344\223\002J\"E/v0/" + - "{keyword_plan=customers/*/keywordPlans/*" + - "}:generateForecastMetrics:\001*\022\370\001\n\031Generat" + - "eHistoricalMetrics\022B.google.ads.googlead" + - "s.v0.services.GenerateHistoricalMetricsR" + - "equest\032C.google.ads.googleads.v0.service" + - "s.GenerateHistoricalMetricsResponse\"R\202\323\344" + - "\223\002L\"G/v0/{keyword_plan=customers/*/keywo" + - "rdPlans/*}:generateHistoricalMetrics:\001*B" + - "\327\001\n$com.google.ads.googleads.v0.services" + - "B\027KeywordPlanServiceProtoP\001ZHgoogle.gola" + - "ng.org/genproto/googleapis/ads/googleads" + - "/v0/services;services\242\002\003GAA\252\002 Google.Ads" + - ".GoogleAds.V0.Services\312\002 Google\\Ads\\Goog" + - "leAds\\V0\\Servicesb\006proto3" + "protobuf/wrappers.proto\032\027google/rpc/stat" + + "us.proto\".\n\025GetKeywordPlanRequest\022\025\n\rres" + + "ource_name\030\001 \001(\t\"\254\001\n\031MutateKeywordPlansR" + + "equest\022\023\n\013customer_id\030\001 \001(\t\022J\n\noperation" + + "s\030\002 \003(\01326.google.ads.googleads.v0.servic" + + "es.KeywordPlanOperation\022\027\n\017partial_failu" + + "re\030\003 \001(\010\022\025\n\rvalidate_only\030\004 \001(\010\"\352\001\n\024Keyw" + + "ordPlanOperation\022/\n\013update_mask\030\004 \001(\0132\032." + + "google.protobuf.FieldMask\022@\n\006create\030\001 \001(" + + "\0132..google.ads.googleads.v0.resources.Ke" + + "ywordPlanH\000\022@\n\006update\030\002 \001(\0132..google.ads" + + ".googleads.v0.resources.KeywordPlanH\000\022\020\n" + + "\006remove\030\003 \001(\tH\000B\013\n\toperation\"\234\001\n\032MutateK" + + "eywordPlansResponse\0221\n\025partial_failure_e" + + "rror\030\003 \001(\0132\022.google.rpc.Status\022K\n\007result" + + "s\030\002 \003(\0132:.google.ads.googleads.v0.servic" + + "es.MutateKeywordPlansResult\"1\n\030MutateKey" + + "wordPlansResult\022\025\n\rresource_name\030\001 \001(\t\"6" + + "\n\036GenerateForecastMetricsRequest\022\024\n\014keyw" + + "ord_plan\030\001 \001(\t\"\257\002\n\037GenerateForecastMetri" + + "csResponse\022Y\n\022campaign_forecasts\030\001 \003(\0132=" + + ".google.ads.googleads.v0.services.Keywor" + + "dPlanCampaignForecast\022X\n\022ad_group_foreca" + + "sts\030\002 \003(\0132<.google.ads.googleads.v0.serv" + + "ices.KeywordPlanAdGroupForecast\022W\n\021keywo" + + "rd_forecasts\030\003 \003(\0132<.google.ads.googlead" + + "s.v0.services.KeywordPlanKeywordForecast" + + "\"\250\001\n\033KeywordPlanCampaignForecast\022;\n\025keyw" + + "ord_plan_campaign\030\001 \001(\0132\034.google.protobu" + + "f.StringValue\022L\n\021campaign_forecast\030\002 \001(\013" + + "21.google.ads.googleads.v0.services.Fore" + + "castMetrics\"\247\001\n\032KeywordPlanAdGroupForeca" + + "st\022;\n\025keyword_plan_ad_group\030\001 \001(\0132\034.goog" + + "le.protobuf.StringValue\022L\n\021ad_group_fore" + + "cast\030\002 \001(\01321.google.ads.googleads.v0.ser" + + "vices.ForecastMetrics\"\256\001\n\032KeywordPlanKey" + + "wordForecast\022C\n\035keyword_plan_ad_group_ke" + + "yword\030\001 \001(\0132\034.google.protobuf.StringValu" + + "e\022K\n\020keyword_forecast\030\002 \001(\01321.google.ads" + + ".googleads.v0.services.ForecastMetrics\"\201" + + "\002\n\017ForecastMetrics\0221\n\013impressions\030\001 \001(\0132" + + "\034.google.protobuf.DoubleValue\022)\n\003ctr\030\002 \001" + + "(\0132\034.google.protobuf.DoubleValue\0220\n\013aver" + + "age_cpc\030\003 \001(\0132\033.google.protobuf.Int64Val" + + "ue\022,\n\006clicks\030\005 \001(\0132\034.google.protobuf.Dou" + + "bleValue\0220\n\013cost_micros\030\006 \001(\0132\033.google.p" + + "rotobuf.Int64Value\"8\n GenerateHistorical" + + "MetricsRequest\022\024\n\014keyword_plan\030\001 \001(\t\"{\n!" + + "GenerateHistoricalMetricsResponse\022V\n\007met" + + "rics\030\001 \003(\0132E.google.ads.googleads.v0.ser" + + "vices.KeywordPlanKeywordHistoricalMetric" + + "s\"\260\001\n#KeywordPlanKeywordHistoricalMetric" + + "s\0222\n\014search_query\030\001 \001(\0132\034.google.protobu" + + "f.StringValue\022U\n\017keyword_metrics\030\002 \001(\0132<" + + ".google.ads.googleads.v0.common.KeywordP" + + "lanHistoricalMetrics2\206\007\n\022KeywordPlanServ" + + "ice\022\261\001\n\016GetKeywordPlan\0227.google.ads.goog" + + "leads.v0.services.GetKeywordPlanRequest\032" + + "..google.ads.googleads.v0.resources.Keyw" + + "ordPlan\"6\202\323\344\223\0020\022./v0/{resource_name=cust" + + "omers/*/keywordPlans/*}\022\315\001\n\022MutateKeywor" + + "dPlans\022;.google.ads.googleads.v0.service" + + "s.MutateKeywordPlansRequest\032<.google.ads" + + ".googleads.v0.services.MutateKeywordPlan" + + "sResponse\"<\202\323\344\223\0026\"1/v0/customers/{custom" + + "er_id=*}/keywordPlans:mutate:\001*\022\360\001\n\027Gene" + + "rateForecastMetrics\022@.google.ads.googlea" + + "ds.v0.services.GenerateForecastMetricsRe" + + "quest\032A.google.ads.googleads.v0.services" + + ".GenerateForecastMetricsResponse\"P\202\323\344\223\002J" + + "\"E/v0/{keyword_plan=customers/*/keywordP" + + "lans/*}:generateForecastMetrics:\001*\022\370\001\n\031G" + + "enerateHistoricalMetrics\022B.google.ads.go" + + "ogleads.v0.services.GenerateHistoricalMe" + + "tricsRequest\032C.google.ads.googleads.v0.s" + + "ervices.GenerateHistoricalMetricsRespons" + + "e\"R\202\323\344\223\002L\"G/v0/{keyword_plan=customers/*" + + "/keywordPlans/*}:generateHistoricalMetri" + + "cs:\001*B\376\001\n$com.google.ads.googleads.v0.se" + + "rvicesB\027KeywordPlanServiceProtoP\001ZHgoogl" + + "e.golang.org/genproto/googleapis/ads/goo" + + "gleads/v0/services;services\242\002\003GAA\252\002 Goog" + + "le.Ads.GoogleAds.V0.Services\312\002 Google\\Ad" + + "s\\GoogleAds\\V0\\Services\352\002$Google::Ads::G" + + "oogleAds::V0::Servicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -198,6 +202,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.api.AnnotationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), }, assigner); internal_static_google_ads_googleads_v0_services_GetKeywordPlanRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -210,7 +215,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateKeywordPlansRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateKeywordPlansRequest_descriptor, - new java.lang.String[] { "CustomerId", "Operations", }); + new java.lang.String[] { "CustomerId", "Operations", "PartialFailure", "ValidateOnly", }); internal_static_google_ads_googleads_v0_services_KeywordPlanOperation_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_ads_googleads_v0_services_KeywordPlanOperation_fieldAccessorTable = new @@ -222,7 +227,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateKeywordPlansResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateKeywordPlansResponse_descriptor, - new java.lang.String[] { "Results", }); + new java.lang.String[] { "PartialFailureError", "Results", }); internal_static_google_ads_googleads_v0_services_MutateKeywordPlansResult_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_google_ads_googleads_v0_services_MutateKeywordPlansResult_fieldAccessorTable = new @@ -293,6 +298,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanServiceSettings.java index 20f8308e07..a1bb54611e 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordPlanServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordViewServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordViewServiceClient.java index 27d96fb491..a26068934c 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordViewServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordViewServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -215,7 +215,7 @@ public final KeywordView getKeywordView(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final KeywordView getKeywordView(GetKeywordViewRequest request) { + public final KeywordView getKeywordView(GetKeywordViewRequest request) { return getKeywordViewCallable().call(request); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordViewServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordViewServiceProto.java index 97f4dcf4d8..317b026145 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordViewServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordViewServiceProto.java @@ -38,13 +38,14 @@ public static void registerAllExtensions( "ds.googleads.v0.services.GetKeywordViewR" + "equest\032..google.ads.googleads.v0.resourc" + "es.KeywordView\"6\202\323\344\223\0020\022./v0/{resource_na" + - "me=customers/*/keywordViews/*}B\327\001\n$com.g" + + "me=customers/*/keywordViews/*}B\376\001\n$com.g" + "oogle.ads.googleads.v0.servicesB\027Keyword" + "ViewServiceProtoP\001ZHgoogle.golang.org/ge" + "nproto/googleapis/ads/googleads/v0/servi" + "ces;services\242\002\003GAA\252\002 Google.Ads.GoogleAd" + "s.V0.Services\312\002 Google\\Ads\\GoogleAds\\V0\\" + - "Servicesb\006proto3" + "Services\352\002$Google::Ads::GoogleAds::V0::S" + + "ervicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordViewServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordViewServiceSettings.java index 5cad7e8000..be3e5d9563 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordViewServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/KeywordViewServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/LanguageConstantServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/LanguageConstantServiceClient.java index 2fc6fa54af..24fcd727c1 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/LanguageConstantServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/LanguageConstantServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -209,7 +209,7 @@ public final LanguageConstant getLanguageConstant(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final LanguageConstant getLanguageConstant(GetLanguageConstantRequest request) { + public final LanguageConstant getLanguageConstant(GetLanguageConstantRequest request) { return getLanguageConstantCallable().call(request); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/LanguageConstantServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/LanguageConstantServiceProto.java index 0c07f88f2b..70db47ac92 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/LanguageConstantServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/LanguageConstantServiceProto.java @@ -39,13 +39,14 @@ public static void registerAllExtensions( ".services.GetLanguageConstantRequest\0323.g" + "oogle.ads.googleads.v0.resources.Languag" + "eConstant\"/\202\323\344\223\002)\022\'/v0/{resource_name=la" + - "nguageConstants/*}B\334\001\n$com.google.ads.go" + + "nguageConstants/*}B\203\002\n$com.google.ads.go" + "ogleads.v0.servicesB\034LanguageConstantSer" + "viceProtoP\001ZHgoogle.golang.org/genproto/" + "googleapis/ads/googleads/v0/services;ser" + "vices\242\002\003GAA\252\002 Google.Ads.GoogleAds.V0.Se" + "rvices\312\002 Google\\Ads\\GoogleAds\\V0\\Service" + - "sb\006proto3" + "s\352\002$Google::Ads::GoogleAds::V0::Services" + + "b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/LanguageConstantServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/LanguageConstantServiceSettings.java index 5e8a39e743..70f455730b 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/LanguageConstantServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/LanguageConstantServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/ManagedPlacementViewServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/ManagedPlacementViewServiceClient.java index 2745cc9e3c..5260d2ccd9 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/ManagedPlacementViewServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/ManagedPlacementViewServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -227,7 +227,7 @@ public final ManagedPlacementView getManagedPlacementView(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final ManagedPlacementView getManagedPlacementView( + public final ManagedPlacementView getManagedPlacementView( GetManagedPlacementViewRequest request) { return getManagedPlacementViewCallable().call(request); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/ManagedPlacementViewServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/ManagedPlacementViewServiceProto.java index 830ebf094d..60e2edaa72 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/ManagedPlacementViewServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/ManagedPlacementViewServiceProto.java @@ -40,13 +40,14 @@ public static void registerAllExtensions( "edPlacementViewRequest\0327.google.ads.goog" + "leads.v0.resources.ManagedPlacementView\"" + "?\202\323\344\223\0029\0227/v0/{resource_name=customers/*/" + - "managedPlacementViews/*}B\340\001\n$com.google." + + "managedPlacementViews/*}B\207\002\n$com.google." + "ads.googleads.v0.servicesB ManagedPlacem" + "entViewServiceProtoP\001ZHgoogle.golang.org" + "/genproto/googleapis/ads/googleads/v0/se" + "rvices;services\242\002\003GAA\252\002 Google.Ads.Googl" + "eAds.V0.Services\312\002 Google\\Ads\\GoogleAds\\" + - "V0\\Servicesb\006proto3" + "V0\\Services\352\002$Google::Ads::GoogleAds::V0" + + "::Servicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/ManagedPlacementViewServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/ManagedPlacementViewServiceSettings.java index bdd45cfd70..51c004051c 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/ManagedPlacementViewServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/ManagedPlacementViewServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MediaFileServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MediaFileServiceClient.java index e97ff0f980..1c5ab1e542 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MediaFileServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MediaFileServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -215,7 +215,7 @@ public final MediaFile getMediaFile(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final MediaFile getMediaFile(GetMediaFileRequest request) { + public final MediaFile getMediaFile(GetMediaFileRequest request) { return getMediaFileCallable().call(request); } @@ -241,6 +241,47 @@ public final UnaryCallable getMediaFileCallable( return stub.getMediaFileCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates media files. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (MediaFileServiceClient mediaFileServiceClient = MediaFileServiceClient.create()) {
+   *   String customerId = "";
+   *   List<MediaFileOperation> operations = new ArrayList<>();
+   *   boolean partialFailure = false;
+   *   boolean validateOnly = false;
+   *   MutateMediaFilesResponse response = mediaFileServiceClient.mutateMediaFiles(customerId, operations, partialFailure, validateOnly);
+   * }
+   * 
+ * + * @param customerId The ID of the customer whose media files are being modified. + * @param operations The list of operations to perform on individual media file. + * @param partialFailure If true, successful operations will be carried out and invalid operations + * will return errors. If false, all operations will be carried out in one transaction if and + * only if they are all valid. Default is false. + * @param validateOnly If true, the request is validated but not executed. Only errors are + * returned, not results. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateMediaFilesResponse mutateMediaFiles( + String customerId, + List operations, + boolean partialFailure, + boolean validateOnly) { + + MutateMediaFilesRequest request = + MutateMediaFilesRequest.newBuilder() + .setCustomerId(customerId) + .addAllOperations(operations) + .setPartialFailure(partialFailure) + .setValidateOnly(validateOnly) + .build(); + return mutateMediaFiles(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Creates media files. Operation statuses are returned. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MediaFileServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MediaFileServiceProto.java index 4af3c5261e..c25a612ca6 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MediaFileServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MediaFileServiceProto.java @@ -52,33 +52,38 @@ public static void registerAllExtensions( "_file_service.proto\022 google.ads.googlead" + "s.v0.services\0322google/ads/googleads/v0/r" + "esources/media_file.proto\032\034google/api/an" + - "notations.proto\",\n\023GetMediaFileRequest\022\025" + - "\n\rresource_name\030\001 \001(\t\"x\n\027MutateMediaFile" + - "sRequest\022\023\n\013customer_id\030\001 \001(\t\022H\n\noperati" + - "ons\030\002 \003(\01324.google.ads.googleads.v0.serv" + - "ices.MediaFileOperation\"a\n\022MediaFileOper" + - "ation\022>\n\006create\030\001 \001(\0132,.google.ads.googl" + - "eads.v0.resources.MediaFileH\000B\013\n\toperati" + - "on\"d\n\030MutateMediaFilesResponse\022H\n\007result" + - "s\030\002 \003(\01327.google.ads.googleads.v0.servic" + - "es.MutateMediaFileResult\".\n\025MutateMediaF" + - "ileResult\022\025\n\rresource_name\030\001 \001(\t2\206\003\n\020Med" + - "iaFileService\022\251\001\n\014GetMediaFile\0225.google." + - "ads.googleads.v0.services.GetMediaFileRe" + - "quest\032,.google.ads.googleads.v0.resource" + - "s.MediaFile\"4\202\323\344\223\002.\022,/v0/{resource_name=" + - "customers/*/mediaFiles/*}\022\305\001\n\020MutateMedi" + - "aFiles\0229.google.ads.googleads.v0.service" + - "s.MutateMediaFilesRequest\032:.google.ads.g" + - "oogleads.v0.services.MutateMediaFilesRes" + - "ponse\":\202\323\344\223\0024\"//v0/customers/{customer_i" + - "d=*}/mediaFiles:mutate:\001*B\325\001\n$com.google" + - ".ads.googleads.v0.servicesB\025MediaFileSer" + - "viceProtoP\001ZHgoogle.golang.org/genproto/" + - "googleapis/ads/googleads/v0/services;ser" + - "vices\242\002\003GAA\252\002 Google.Ads.GoogleAds.V0.Se" + - "rvices\312\002 Google\\Ads\\GoogleAds\\V0\\Service" + - "sb\006proto3" + "notations.proto\032\036google/protobuf/wrapper" + + "s.proto\032\027google/rpc/status.proto\",\n\023GetM" + + "ediaFileRequest\022\025\n\rresource_name\030\001 \001(\t\"\250" + + "\001\n\027MutateMediaFilesRequest\022\023\n\013customer_i" + + "d\030\001 \001(\t\022H\n\noperations\030\002 \003(\01324.google.ads" + + ".googleads.v0.services.MediaFileOperatio" + + "n\022\027\n\017partial_failure\030\003 \001(\010\022\025\n\rvalidate_o" + + "nly\030\004 \001(\010\"a\n\022MediaFileOperation\022>\n\006creat" + + "e\030\001 \001(\0132,.google.ads.googleads.v0.resour" + + "ces.MediaFileH\000B\013\n\toperation\"\227\001\n\030MutateM" + + "ediaFilesResponse\0221\n\025partial_failure_err" + + "or\030\003 \001(\0132\022.google.rpc.Status\022H\n\007results\030" + + "\002 \003(\01327.google.ads.googleads.v0.services" + + ".MutateMediaFileResult\".\n\025MutateMediaFil" + + "eResult\022\025\n\rresource_name\030\001 \001(\t2\206\003\n\020Media" + + "FileService\022\251\001\n\014GetMediaFile\0225.google.ad" + + "s.googleads.v0.services.GetMediaFileRequ" + + "est\032,.google.ads.googleads.v0.resources." + + "MediaFile\"4\202\323\344\223\002.\022,/v0/{resource_name=cu" + + "stomers/*/mediaFiles/*}\022\305\001\n\020MutateMediaF" + + "iles\0229.google.ads.googleads.v0.services." + + "MutateMediaFilesRequest\032:.google.ads.goo" + + "gleads.v0.services.MutateMediaFilesRespo" + + "nse\":\202\323\344\223\0024\"//v0/customers/{customer_id=" + + "*}/mediaFiles:mutate:\001*B\374\001\n$com.google.a" + + "ds.googleads.v0.servicesB\025MediaFileServi" + + "ceProtoP\001ZHgoogle.golang.org/genproto/go" + + "ogleapis/ads/googleads/v0/services;servi" + + "ces\242\002\003GAA\252\002 Google.Ads.GoogleAds.V0.Serv" + + "ices\312\002 Google\\Ads\\GoogleAds\\V0\\Services\352" + + "\002$Google::Ads::GoogleAds::V0::Servicesb\006" + + "proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -93,6 +98,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.ads.googleads.v0.resources.MediaFileProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), }, assigner); internal_static_google_ads_googleads_v0_services_GetMediaFileRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -105,7 +112,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateMediaFilesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateMediaFilesRequest_descriptor, - new java.lang.String[] { "CustomerId", "Operations", }); + new java.lang.String[] { "CustomerId", "Operations", "PartialFailure", "ValidateOnly", }); internal_static_google_ads_googleads_v0_services_MediaFileOperation_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_ads_googleads_v0_services_MediaFileOperation_fieldAccessorTable = new @@ -117,7 +124,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateMediaFilesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateMediaFilesResponse_descriptor, - new java.lang.String[] { "Results", }); + new java.lang.String[] { "PartialFailureError", "Results", }); internal_static_google_ads_googleads_v0_services_MutateMediaFileResult_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_google_ads_googleads_v0_services_MutateMediaFileResult_fieldAccessorTable = new @@ -131,6 +138,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( .internalUpdateFileDescriptor(descriptor, registry); com.google.ads.googleads.v0.resources.MediaFileProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MediaFileServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MediaFileServiceSettings.java index 85467ec296..5546390f07 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MediaFileServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MediaFileServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MobileAppCategoryConstantServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MobileAppCategoryConstantServiceClient.java new file mode 100644 index 0000000000..52addb640e --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MobileAppCategoryConstantServiceClient.java @@ -0,0 +1,279 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services; + +import com.google.ads.googleads.v0.resources.MobileAppCategoryConstant; +import com.google.ads.googleads.v0.services.stub.MobileAppCategoryConstantServiceStub; +import com.google.ads.googleads.v0.services.stub.MobileAppCategoryConstantServiceStubSettings; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.api.pathtemplate.PathTemplate; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND SERVICE +/** + * Service Description: Service to fetch mobile app category constants. + * + *

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

+ * 
+ * try (MobileAppCategoryConstantServiceClient mobileAppCategoryConstantServiceClient = MobileAppCategoryConstantServiceClient.create()) {
+ *   String formattedResourceName = MobileAppCategoryConstantServiceClient.formatMobileAppCategoryConstantName("[MOBILE_APP_CATEGORY_CONSTANT]");
+ *   MobileAppCategoryConstant response = mobileAppCategoryConstantServiceClient.getMobileAppCategoryConstant(formattedResourceName);
+ * }
+ * 
+ * 
+ * + *

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

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

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

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

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

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

To customize credentials: + * + *

+ * 
+ * MobileAppCategoryConstantServiceSettings mobileAppCategoryConstantServiceSettings =
+ *     MobileAppCategoryConstantServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * MobileAppCategoryConstantServiceClient mobileAppCategoryConstantServiceClient =
+ *     MobileAppCategoryConstantServiceClient.create(mobileAppCategoryConstantServiceSettings);
+ * 
+ * 
+ * + * To customize the endpoint: + * + *
+ * 
+ * MobileAppCategoryConstantServiceSettings mobileAppCategoryConstantServiceSettings =
+ *     MobileAppCategoryConstantServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * MobileAppCategoryConstantServiceClient mobileAppCategoryConstantServiceClient =
+ *     MobileAppCategoryConstantServiceClient.create(mobileAppCategoryConstantServiceSettings);
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class MobileAppCategoryConstantServiceClient implements BackgroundResource { + private final MobileAppCategoryConstantServiceSettings settings; + private final MobileAppCategoryConstantServiceStub stub; + + private static final PathTemplate MOBILE_APP_CATEGORY_CONSTANT_PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding( + "mobileAppCategoryConstants/{mobile_app_category_constant}"); + + /** + * Formats a string containing the fully-qualified path to represent a + * mobile_app_category_constant resource. + */ + public static final String formatMobileAppCategoryConstantName(String mobileAppCategoryConstant) { + return MOBILE_APP_CATEGORY_CONSTANT_PATH_TEMPLATE.instantiate( + "mobile_app_category_constant", mobileAppCategoryConstant); + } + + /** + * Parses the mobile_app_category_constant from the given fully-qualified path which represents a + * mobile_app_category_constant resource. + */ + public static final String parseMobileAppCategoryConstantFromMobileAppCategoryConstantName( + String mobileAppCategoryConstantName) { + return MOBILE_APP_CATEGORY_CONSTANT_PATH_TEMPLATE + .parse(mobileAppCategoryConstantName) + .get("mobile_app_category_constant"); + } + + /** Constructs an instance of MobileAppCategoryConstantServiceClient with default settings. */ + public static final MobileAppCategoryConstantServiceClient create() throws IOException { + return create(MobileAppCategoryConstantServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of MobileAppCategoryConstantServiceClient, using the given settings. The + * channels are created based on the settings passed in, or defaults for any settings that are not + * set. + */ + public static final MobileAppCategoryConstantServiceClient create( + MobileAppCategoryConstantServiceSettings settings) throws IOException { + return new MobileAppCategoryConstantServiceClient(settings); + } + + /** + * Constructs an instance of MobileAppCategoryConstantServiceClient, using the given stub for + * making calls. This is for advanced usage - prefer to use + * MobileAppCategoryConstantServiceSettings}. + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final MobileAppCategoryConstantServiceClient create( + MobileAppCategoryConstantServiceStub stub) { + return new MobileAppCategoryConstantServiceClient(stub); + } + + /** + * Constructs an instance of MobileAppCategoryConstantServiceClient, using the given settings. + * This is protected so that it is easy to make a subclass, but otherwise, the static factory + * methods should be preferred. + */ + protected MobileAppCategoryConstantServiceClient( + MobileAppCategoryConstantServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = + ((MobileAppCategoryConstantServiceStubSettings) settings.getStubSettings()).createStub(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected MobileAppCategoryConstantServiceClient(MobileAppCategoryConstantServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final MobileAppCategoryConstantServiceSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public MobileAppCategoryConstantServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns the requested mobile app category constant. + * + *

Sample code: + * + *


+   * try (MobileAppCategoryConstantServiceClient mobileAppCategoryConstantServiceClient = MobileAppCategoryConstantServiceClient.create()) {
+   *   String formattedResourceName = MobileAppCategoryConstantServiceClient.formatMobileAppCategoryConstantName("[MOBILE_APP_CATEGORY_CONSTANT]");
+   *   MobileAppCategoryConstant response = mobileAppCategoryConstantServiceClient.getMobileAppCategoryConstant(formattedResourceName);
+   * }
+   * 
+ * + * @param resourceName Resource name of the mobile app category constant to fetch. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MobileAppCategoryConstant getMobileAppCategoryConstant(String resourceName) { + MOBILE_APP_CATEGORY_CONSTANT_PATH_TEMPLATE.validate( + resourceName, "getMobileAppCategoryConstant"); + GetMobileAppCategoryConstantRequest request = + GetMobileAppCategoryConstantRequest.newBuilder().setResourceName(resourceName).build(); + return getMobileAppCategoryConstant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns the requested mobile app category constant. + * + *

Sample code: + * + *


+   * try (MobileAppCategoryConstantServiceClient mobileAppCategoryConstantServiceClient = MobileAppCategoryConstantServiceClient.create()) {
+   *   String formattedResourceName = MobileAppCategoryConstantServiceClient.formatMobileAppCategoryConstantName("[MOBILE_APP_CATEGORY_CONSTANT]");
+   *   GetMobileAppCategoryConstantRequest request = GetMobileAppCategoryConstantRequest.newBuilder()
+   *     .setResourceName(formattedResourceName)
+   *     .build();
+   *   MobileAppCategoryConstant response = mobileAppCategoryConstantServiceClient.getMobileAppCategoryConstant(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MobileAppCategoryConstant getMobileAppCategoryConstant( + GetMobileAppCategoryConstantRequest request) { + return getMobileAppCategoryConstantCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns the requested mobile app category constant. + * + *

Sample code: + * + *


+   * try (MobileAppCategoryConstantServiceClient mobileAppCategoryConstantServiceClient = MobileAppCategoryConstantServiceClient.create()) {
+   *   String formattedResourceName = MobileAppCategoryConstantServiceClient.formatMobileAppCategoryConstantName("[MOBILE_APP_CATEGORY_CONSTANT]");
+   *   GetMobileAppCategoryConstantRequest request = GetMobileAppCategoryConstantRequest.newBuilder()
+   *     .setResourceName(formattedResourceName)
+   *     .build();
+   *   ApiFuture<MobileAppCategoryConstant> future = mobileAppCategoryConstantServiceClient.getMobileAppCategoryConstantCallable().futureCall(request);
+   *   // Do something
+   *   MobileAppCategoryConstant response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + getMobileAppCategoryConstantCallable() { + return stub.getMobileAppCategoryConstantCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MobileAppCategoryConstantServiceGrpc.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MobileAppCategoryConstantServiceGrpc.java new file mode 100644 index 0000000000..e62c962e27 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MobileAppCategoryConstantServiceGrpc.java @@ -0,0 +1,313 @@ +package com.google.ads.googleads.v0.services; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; +import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; +import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + *
+ * Service to fetch mobile app category constants.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/ads/googleads/v0/services/mobile_app_category_constant_service.proto") +public final class MobileAppCategoryConstantServiceGrpc { + + private MobileAppCategoryConstantServiceGrpc() {} + + public static final String SERVICE_NAME = "google.ads.googleads.v0.services.MobileAppCategoryConstantService"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetMobileAppCategoryConstantMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_GET_MOBILE_APP_CATEGORY_CONSTANT = getGetMobileAppCategoryConstantMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getGetMobileAppCategoryConstantMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getGetMobileAppCategoryConstantMethod() { + return getGetMobileAppCategoryConstantMethodHelper(); + } + + private static io.grpc.MethodDescriptor getGetMobileAppCategoryConstantMethodHelper() { + io.grpc.MethodDescriptor getGetMobileAppCategoryConstantMethod; + if ((getGetMobileAppCategoryConstantMethod = MobileAppCategoryConstantServiceGrpc.getGetMobileAppCategoryConstantMethod) == null) { + synchronized (MobileAppCategoryConstantServiceGrpc.class) { + if ((getGetMobileAppCategoryConstantMethod = MobileAppCategoryConstantServiceGrpc.getGetMobileAppCategoryConstantMethod) == null) { + MobileAppCategoryConstantServiceGrpc.getGetMobileAppCategoryConstantMethod = getGetMobileAppCategoryConstantMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.ads.googleads.v0.services.MobileAppCategoryConstantService", "GetMobileAppCategoryConstant")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.ads.googleads.v0.resources.MobileAppCategoryConstant.getDefaultInstance())) + .setSchemaDescriptor(new MobileAppCategoryConstantServiceMethodDescriptorSupplier("GetMobileAppCategoryConstant")) + .build(); + } + } + } + return getGetMobileAppCategoryConstantMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static MobileAppCategoryConstantServiceStub newStub(io.grpc.Channel channel) { + return new MobileAppCategoryConstantServiceStub(channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static MobileAppCategoryConstantServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + return new MobileAppCategoryConstantServiceBlockingStub(channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static MobileAppCategoryConstantServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + return new MobileAppCategoryConstantServiceFutureStub(channel); + } + + /** + *
+   * Service to fetch mobile app category constants.
+   * 
+ */ + public static abstract class MobileAppCategoryConstantServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Returns the requested mobile app category constant.
+     * 
+ */ + public void getMobileAppCategoryConstant(com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetMobileAppCategoryConstantMethodHelper(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetMobileAppCategoryConstantMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest, + com.google.ads.googleads.v0.resources.MobileAppCategoryConstant>( + this, METHODID_GET_MOBILE_APP_CATEGORY_CONSTANT))) + .build(); + } + } + + /** + *
+   * Service to fetch mobile app category constants.
+   * 
+ */ + public static final class MobileAppCategoryConstantServiceStub extends io.grpc.stub.AbstractStub { + private MobileAppCategoryConstantServiceStub(io.grpc.Channel channel) { + super(channel); + } + + private MobileAppCategoryConstantServiceStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MobileAppCategoryConstantServiceStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new MobileAppCategoryConstantServiceStub(channel, callOptions); + } + + /** + *
+     * Returns the requested mobile app category constant.
+     * 
+ */ + public void getMobileAppCategoryConstant(com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetMobileAppCategoryConstantMethodHelper(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Service to fetch mobile app category constants.
+   * 
+ */ + public static final class MobileAppCategoryConstantServiceBlockingStub extends io.grpc.stub.AbstractStub { + private MobileAppCategoryConstantServiceBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + private MobileAppCategoryConstantServiceBlockingStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MobileAppCategoryConstantServiceBlockingStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new MobileAppCategoryConstantServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Returns the requested mobile app category constant.
+     * 
+ */ + public com.google.ads.googleads.v0.resources.MobileAppCategoryConstant getMobileAppCategoryConstant(com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest request) { + return blockingUnaryCall( + getChannel(), getGetMobileAppCategoryConstantMethodHelper(), getCallOptions(), request); + } + } + + /** + *
+   * Service to fetch mobile app category constants.
+   * 
+ */ + public static final class MobileAppCategoryConstantServiceFutureStub extends io.grpc.stub.AbstractStub { + private MobileAppCategoryConstantServiceFutureStub(io.grpc.Channel channel) { + super(channel); + } + + private MobileAppCategoryConstantServiceFutureStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MobileAppCategoryConstantServiceFutureStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new MobileAppCategoryConstantServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Returns the requested mobile app category constant.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getMobileAppCategoryConstant( + com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetMobileAppCategoryConstantMethodHelper(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_MOBILE_APP_CATEGORY_CONSTANT = 0; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final MobileAppCategoryConstantServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(MobileAppCategoryConstantServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_MOBILE_APP_CATEGORY_CONSTANT: + serviceImpl.getMobileAppCategoryConstant((com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class MobileAppCategoryConstantServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + MobileAppCategoryConstantServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.ads.googleads.v0.services.MobileAppCategoryConstantServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("MobileAppCategoryConstantService"); + } + } + + private static final class MobileAppCategoryConstantServiceFileDescriptorSupplier + extends MobileAppCategoryConstantServiceBaseDescriptorSupplier { + MobileAppCategoryConstantServiceFileDescriptorSupplier() {} + } + + private static final class MobileAppCategoryConstantServiceMethodDescriptorSupplier + extends MobileAppCategoryConstantServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + MobileAppCategoryConstantServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (MobileAppCategoryConstantServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new MobileAppCategoryConstantServiceFileDescriptorSupplier()) + .addMethod(getGetMobileAppCategoryConstantMethodHelper()) + .build(); + } + } + } + return result; + } +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MobileAppCategoryConstantServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MobileAppCategoryConstantServiceProto.java new file mode 100644 index 0000000000..1ee1ec90fa --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MobileAppCategoryConstantServiceProto.java @@ -0,0 +1,83 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/mobile_app_category_constant_service.proto + +package com.google.ads.googleads.v0.services; + +public final class MobileAppCategoryConstantServiceProto { + private MobileAppCategoryConstantServiceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_services_GetMobileAppCategoryConstantRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_services_GetMobileAppCategoryConstantRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nKgoogle/ads/googleads/v0/services/mobil" + + "e_app_category_constant_service.proto\022 g" + + "oogle.ads.googleads.v0.services\032Dgoogle/" + + "ads/googleads/v0/resources/mobile_app_ca" + + "tegory_constant.proto\032\034google/api/annota" + + "tions.proto\"<\n#GetMobileAppCategoryConst" + + "antRequest\022\025\n\rresource_name\030\001 \001(\t2\202\002\n Mo" + + "bileAppCategoryConstantService\022\335\001\n\034GetMo" + + "bileAppCategoryConstant\022E.google.ads.goo" + + "gleads.v0.services.GetMobileAppCategoryC" + + "onstantRequest\032<.google.ads.googleads.v0" + + ".resources.MobileAppCategoryConstant\"8\202\323" + + "\344\223\0022\0220/v0/{resource_name=mobileAppCatego" + + "ryConstants/*}B\214\002\n$com.google.ads.google" + + "ads.v0.servicesB%MobileAppCategoryConsta" + + "ntServiceProtoP\001ZHgoogle.golang.org/genp" + + "roto/googleapis/ads/googleads/v0/service" + + "s;services\242\002\003GAA\252\002 Google.Ads.GoogleAds." + + "V0.Services\312\002 Google\\Ads\\GoogleAds\\V0\\Se" + + "rvices\352\002$Google::Ads::GoogleAds::V0::Ser" + + "vicesb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.googleads.v0.resources.MobileAppCategoryConstantProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }, assigner); + internal_static_google_ads_googleads_v0_services_GetMobileAppCategoryConstantRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_googleads_v0_services_GetMobileAppCategoryConstantRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_services_GetMobileAppCategoryConstantRequest_descriptor, + new java.lang.String[] { "ResourceName", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.ads.googleads.v0.resources.MobileAppCategoryConstantProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MobileAppCategoryConstantServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MobileAppCategoryConstantServiceSettings.java new file mode 100644 index 0000000000..166b0db95b --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MobileAppCategoryConstantServiceSettings.java @@ -0,0 +1,180 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services; + +import com.google.ads.googleads.v0.resources.MobileAppCategoryConstant; +import com.google.ads.googleads.v0.services.stub.MobileAppCategoryConstantServiceStubSettings; +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link MobileAppCategoryConstantServiceClient}. + * + *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of getMobileAppCategoryConstant to 30 seconds: + * + *

+ * 
+ * MobileAppCategoryConstantServiceSettings.Builder mobileAppCategoryConstantServiceSettingsBuilder =
+ *     MobileAppCategoryConstantServiceSettings.newBuilder();
+ * mobileAppCategoryConstantServiceSettingsBuilder.getMobileAppCategoryConstantSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * MobileAppCategoryConstantServiceSettings mobileAppCategoryConstantServiceSettings = mobileAppCategoryConstantServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class MobileAppCategoryConstantServiceSettings + extends ClientSettings { + /** Returns the object with the settings used for calls to getMobileAppCategoryConstant. */ + public UnaryCallSettings + getMobileAppCategoryConstantSettings() { + return ((MobileAppCategoryConstantServiceStubSettings) getStubSettings()) + .getMobileAppCategoryConstantSettings(); + } + + public static final MobileAppCategoryConstantServiceSettings create( + MobileAppCategoryConstantServiceStubSettings stub) throws IOException { + return new MobileAppCategoryConstantServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return MobileAppCategoryConstantServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return MobileAppCategoryConstantServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return MobileAppCategoryConstantServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return MobileAppCategoryConstantServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return MobileAppCategoryConstantServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return MobileAppCategoryConstantServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return MobileAppCategoryConstantServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected MobileAppCategoryConstantServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for MobileAppCategoryConstantServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + protected Builder() throws IOException { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(MobileAppCategoryConstantServiceStubSettings.newBuilder(clientContext)); + } + + private static Builder createDefault() { + return new Builder(MobileAppCategoryConstantServiceStubSettings.newBuilder()); + } + + protected Builder(MobileAppCategoryConstantServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(MobileAppCategoryConstantServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + public MobileAppCategoryConstantServiceStubSettings.Builder getStubSettingsBuilder() { + return ((MobileAppCategoryConstantServiceStubSettings.Builder) getStubSettings()); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getMobileAppCategoryConstant. */ + public UnaryCallSettings.Builder + getMobileAppCategoryConstantSettings() { + return getStubSettingsBuilder().getMobileAppCategoryConstantSettings(); + } + + @Override + public MobileAppCategoryConstantServiceSettings build() throws IOException { + return new MobileAppCategoryConstantServiceSettings(this); + } + } +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MobileDeviceConstantServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MobileDeviceConstantServiceClient.java new file mode 100644 index 0000000000..2bab99afb3 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MobileDeviceConstantServiceClient.java @@ -0,0 +1,275 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services; + +import com.google.ads.googleads.v0.resources.MobileDeviceConstant; +import com.google.ads.googleads.v0.services.stub.MobileDeviceConstantServiceStub; +import com.google.ads.googleads.v0.services.stub.MobileDeviceConstantServiceStubSettings; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.api.pathtemplate.PathTemplate; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND SERVICE +/** + * Service Description: Service to fetch mobile device constants. + * + *

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

+ * 
+ * try (MobileDeviceConstantServiceClient mobileDeviceConstantServiceClient = MobileDeviceConstantServiceClient.create()) {
+ *   String formattedResourceName = MobileDeviceConstantServiceClient.formatMobileDeviceConstantName("[MOBILE_DEVICE_CONSTANT]");
+ *   MobileDeviceConstant response = mobileDeviceConstantServiceClient.getMobileDeviceConstant(formattedResourceName);
+ * }
+ * 
+ * 
+ * + *

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

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

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

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

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

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

To customize credentials: + * + *

+ * 
+ * MobileDeviceConstantServiceSettings mobileDeviceConstantServiceSettings =
+ *     MobileDeviceConstantServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * MobileDeviceConstantServiceClient mobileDeviceConstantServiceClient =
+ *     MobileDeviceConstantServiceClient.create(mobileDeviceConstantServiceSettings);
+ * 
+ * 
+ * + * To customize the endpoint: + * + *
+ * 
+ * MobileDeviceConstantServiceSettings mobileDeviceConstantServiceSettings =
+ *     MobileDeviceConstantServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * MobileDeviceConstantServiceClient mobileDeviceConstantServiceClient =
+ *     MobileDeviceConstantServiceClient.create(mobileDeviceConstantServiceSettings);
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class MobileDeviceConstantServiceClient implements BackgroundResource { + private final MobileDeviceConstantServiceSettings settings; + private final MobileDeviceConstantServiceStub stub; + + private static final PathTemplate MOBILE_DEVICE_CONSTANT_PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("mobileDeviceConstants/{mobile_device_constant}"); + + /** + * Formats a string containing the fully-qualified path to represent a mobile_device_constant + * resource. + */ + public static final String formatMobileDeviceConstantName(String mobileDeviceConstant) { + return MOBILE_DEVICE_CONSTANT_PATH_TEMPLATE.instantiate( + "mobile_device_constant", mobileDeviceConstant); + } + + /** + * Parses the mobile_device_constant from the given fully-qualified path which represents a + * mobile_device_constant resource. + */ + public static final String parseMobileDeviceConstantFromMobileDeviceConstantName( + String mobileDeviceConstantName) { + return MOBILE_DEVICE_CONSTANT_PATH_TEMPLATE + .parse(mobileDeviceConstantName) + .get("mobile_device_constant"); + } + + /** Constructs an instance of MobileDeviceConstantServiceClient with default settings. */ + public static final MobileDeviceConstantServiceClient create() throws IOException { + return create(MobileDeviceConstantServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of MobileDeviceConstantServiceClient, using the given settings. The + * channels are created based on the settings passed in, or defaults for any settings that are not + * set. + */ + public static final MobileDeviceConstantServiceClient create( + MobileDeviceConstantServiceSettings settings) throws IOException { + return new MobileDeviceConstantServiceClient(settings); + } + + /** + * Constructs an instance of MobileDeviceConstantServiceClient, using the given stub for making + * calls. This is for advanced usage - prefer to use MobileDeviceConstantServiceSettings}. + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final MobileDeviceConstantServiceClient create( + MobileDeviceConstantServiceStub stub) { + return new MobileDeviceConstantServiceClient(stub); + } + + /** + * Constructs an instance of MobileDeviceConstantServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected MobileDeviceConstantServiceClient(MobileDeviceConstantServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((MobileDeviceConstantServiceStubSettings) settings.getStubSettings()).createStub(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected MobileDeviceConstantServiceClient(MobileDeviceConstantServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final MobileDeviceConstantServiceSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public MobileDeviceConstantServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns the requested mobile device constant in full detail. + * + *

Sample code: + * + *


+   * try (MobileDeviceConstantServiceClient mobileDeviceConstantServiceClient = MobileDeviceConstantServiceClient.create()) {
+   *   String formattedResourceName = MobileDeviceConstantServiceClient.formatMobileDeviceConstantName("[MOBILE_DEVICE_CONSTANT]");
+   *   MobileDeviceConstant response = mobileDeviceConstantServiceClient.getMobileDeviceConstant(formattedResourceName);
+   * }
+   * 
+ * + * @param resourceName Resource name of the mobile device to fetch. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MobileDeviceConstant getMobileDeviceConstant(String resourceName) { + MOBILE_DEVICE_CONSTANT_PATH_TEMPLATE.validate(resourceName, "getMobileDeviceConstant"); + GetMobileDeviceConstantRequest request = + GetMobileDeviceConstantRequest.newBuilder().setResourceName(resourceName).build(); + return getMobileDeviceConstant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns the requested mobile device constant in full detail. + * + *

Sample code: + * + *


+   * try (MobileDeviceConstantServiceClient mobileDeviceConstantServiceClient = MobileDeviceConstantServiceClient.create()) {
+   *   String formattedResourceName = MobileDeviceConstantServiceClient.formatMobileDeviceConstantName("[MOBILE_DEVICE_CONSTANT]");
+   *   GetMobileDeviceConstantRequest request = GetMobileDeviceConstantRequest.newBuilder()
+   *     .setResourceName(formattedResourceName)
+   *     .build();
+   *   MobileDeviceConstant response = mobileDeviceConstantServiceClient.getMobileDeviceConstant(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MobileDeviceConstant getMobileDeviceConstant( + GetMobileDeviceConstantRequest request) { + return getMobileDeviceConstantCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns the requested mobile device constant in full detail. + * + *

Sample code: + * + *


+   * try (MobileDeviceConstantServiceClient mobileDeviceConstantServiceClient = MobileDeviceConstantServiceClient.create()) {
+   *   String formattedResourceName = MobileDeviceConstantServiceClient.formatMobileDeviceConstantName("[MOBILE_DEVICE_CONSTANT]");
+   *   GetMobileDeviceConstantRequest request = GetMobileDeviceConstantRequest.newBuilder()
+   *     .setResourceName(formattedResourceName)
+   *     .build();
+   *   ApiFuture<MobileDeviceConstant> future = mobileDeviceConstantServiceClient.getMobileDeviceConstantCallable().futureCall(request);
+   *   // Do something
+   *   MobileDeviceConstant response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + getMobileDeviceConstantCallable() { + return stub.getMobileDeviceConstantCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MobileDeviceConstantServiceGrpc.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MobileDeviceConstantServiceGrpc.java new file mode 100644 index 0000000000..2c5f9b9950 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MobileDeviceConstantServiceGrpc.java @@ -0,0 +1,313 @@ +package com.google.ads.googleads.v0.services; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; +import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; +import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + *
+ * Service to fetch mobile device constants.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/ads/googleads/v0/services/mobile_device_constant_service.proto") +public final class MobileDeviceConstantServiceGrpc { + + private MobileDeviceConstantServiceGrpc() {} + + public static final String SERVICE_NAME = "google.ads.googleads.v0.services.MobileDeviceConstantService"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetMobileDeviceConstantMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_GET_MOBILE_DEVICE_CONSTANT = getGetMobileDeviceConstantMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getGetMobileDeviceConstantMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getGetMobileDeviceConstantMethod() { + return getGetMobileDeviceConstantMethodHelper(); + } + + private static io.grpc.MethodDescriptor getGetMobileDeviceConstantMethodHelper() { + io.grpc.MethodDescriptor getGetMobileDeviceConstantMethod; + if ((getGetMobileDeviceConstantMethod = MobileDeviceConstantServiceGrpc.getGetMobileDeviceConstantMethod) == null) { + synchronized (MobileDeviceConstantServiceGrpc.class) { + if ((getGetMobileDeviceConstantMethod = MobileDeviceConstantServiceGrpc.getGetMobileDeviceConstantMethod) == null) { + MobileDeviceConstantServiceGrpc.getGetMobileDeviceConstantMethod = getGetMobileDeviceConstantMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.ads.googleads.v0.services.MobileDeviceConstantService", "GetMobileDeviceConstant")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.ads.googleads.v0.resources.MobileDeviceConstant.getDefaultInstance())) + .setSchemaDescriptor(new MobileDeviceConstantServiceMethodDescriptorSupplier("GetMobileDeviceConstant")) + .build(); + } + } + } + return getGetMobileDeviceConstantMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static MobileDeviceConstantServiceStub newStub(io.grpc.Channel channel) { + return new MobileDeviceConstantServiceStub(channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static MobileDeviceConstantServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + return new MobileDeviceConstantServiceBlockingStub(channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static MobileDeviceConstantServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + return new MobileDeviceConstantServiceFutureStub(channel); + } + + /** + *
+   * Service to fetch mobile device constants.
+   * 
+ */ + public static abstract class MobileDeviceConstantServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Returns the requested mobile device constant in full detail.
+     * 
+ */ + public void getMobileDeviceConstant(com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetMobileDeviceConstantMethodHelper(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetMobileDeviceConstantMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest, + com.google.ads.googleads.v0.resources.MobileDeviceConstant>( + this, METHODID_GET_MOBILE_DEVICE_CONSTANT))) + .build(); + } + } + + /** + *
+   * Service to fetch mobile device constants.
+   * 
+ */ + public static final class MobileDeviceConstantServiceStub extends io.grpc.stub.AbstractStub { + private MobileDeviceConstantServiceStub(io.grpc.Channel channel) { + super(channel); + } + + private MobileDeviceConstantServiceStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MobileDeviceConstantServiceStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new MobileDeviceConstantServiceStub(channel, callOptions); + } + + /** + *
+     * Returns the requested mobile device constant in full detail.
+     * 
+ */ + public void getMobileDeviceConstant(com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetMobileDeviceConstantMethodHelper(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Service to fetch mobile device constants.
+   * 
+ */ + public static final class MobileDeviceConstantServiceBlockingStub extends io.grpc.stub.AbstractStub { + private MobileDeviceConstantServiceBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + private MobileDeviceConstantServiceBlockingStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MobileDeviceConstantServiceBlockingStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new MobileDeviceConstantServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Returns the requested mobile device constant in full detail.
+     * 
+ */ + public com.google.ads.googleads.v0.resources.MobileDeviceConstant getMobileDeviceConstant(com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest request) { + return blockingUnaryCall( + getChannel(), getGetMobileDeviceConstantMethodHelper(), getCallOptions(), request); + } + } + + /** + *
+   * Service to fetch mobile device constants.
+   * 
+ */ + public static final class MobileDeviceConstantServiceFutureStub extends io.grpc.stub.AbstractStub { + private MobileDeviceConstantServiceFutureStub(io.grpc.Channel channel) { + super(channel); + } + + private MobileDeviceConstantServiceFutureStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MobileDeviceConstantServiceFutureStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new MobileDeviceConstantServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Returns the requested mobile device constant in full detail.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getMobileDeviceConstant( + com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetMobileDeviceConstantMethodHelper(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_MOBILE_DEVICE_CONSTANT = 0; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final MobileDeviceConstantServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(MobileDeviceConstantServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_MOBILE_DEVICE_CONSTANT: + serviceImpl.getMobileDeviceConstant((com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class MobileDeviceConstantServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + MobileDeviceConstantServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.ads.googleads.v0.services.MobileDeviceConstantServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("MobileDeviceConstantService"); + } + } + + private static final class MobileDeviceConstantServiceFileDescriptorSupplier + extends MobileDeviceConstantServiceBaseDescriptorSupplier { + MobileDeviceConstantServiceFileDescriptorSupplier() {} + } + + private static final class MobileDeviceConstantServiceMethodDescriptorSupplier + extends MobileDeviceConstantServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + MobileDeviceConstantServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (MobileDeviceConstantServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new MobileDeviceConstantServiceFileDescriptorSupplier()) + .addMethod(getGetMobileDeviceConstantMethodHelper()) + .build(); + } + } + } + return result; + } +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MobileDeviceConstantServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MobileDeviceConstantServiceProto.java new file mode 100644 index 0000000000..1fceae52e7 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MobileDeviceConstantServiceProto.java @@ -0,0 +1,82 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/mobile_device_constant_service.proto + +package com.google.ads.googleads.v0.services; + +public final class MobileDeviceConstantServiceProto { + private MobileDeviceConstantServiceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_services_GetMobileDeviceConstantRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_services_GetMobileDeviceConstantRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nEgoogle/ads/googleads/v0/services/mobil" + + "e_device_constant_service.proto\022 google." + + "ads.googleads.v0.services\032>google/ads/go" + + "ogleads/v0/resources/mobile_device_const" + + "ant.proto\032\034google/api/annotations.proto\"" + + "7\n\036GetMobileDeviceConstantRequest\022\025\n\rres" + + "ource_name\030\001 \001(\t2\351\001\n\033MobileDeviceConstan" + + "tService\022\311\001\n\027GetMobileDeviceConstant\022@.g" + + "oogle.ads.googleads.v0.services.GetMobil" + + "eDeviceConstantRequest\0327.google.ads.goog" + + "leads.v0.resources.MobileDeviceConstant\"" + + "3\202\323\344\223\002-\022+/v0/{resource_name=mobileDevice" + + "Constants/*}B\207\002\n$com.google.ads.googlead" + + "s.v0.servicesB MobileDeviceConstantServi" + + "ceProtoP\001ZHgoogle.golang.org/genproto/go" + + "ogleapis/ads/googleads/v0/services;servi" + + "ces\242\002\003GAA\252\002 Google.Ads.GoogleAds.V0.Serv" + + "ices\312\002 Google\\Ads\\GoogleAds\\V0\\Services\352" + + "\002$Google::Ads::GoogleAds::V0::Servicesb\006" + + "proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.googleads.v0.resources.MobileDeviceConstantProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }, assigner); + internal_static_google_ads_googleads_v0_services_GetMobileDeviceConstantRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_googleads_v0_services_GetMobileDeviceConstantRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_services_GetMobileDeviceConstantRequest_descriptor, + new java.lang.String[] { "ResourceName", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.ads.googleads.v0.resources.MobileDeviceConstantProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MobileDeviceConstantServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MobileDeviceConstantServiceSettings.java new file mode 100644 index 0000000000..10ded5f70f --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MobileDeviceConstantServiceSettings.java @@ -0,0 +1,180 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services; + +import com.google.ads.googleads.v0.resources.MobileDeviceConstant; +import com.google.ads.googleads.v0.services.stub.MobileDeviceConstantServiceStubSettings; +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link MobileDeviceConstantServiceClient}. + * + *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of getMobileDeviceConstant to 30 seconds: + * + *

+ * 
+ * MobileDeviceConstantServiceSettings.Builder mobileDeviceConstantServiceSettingsBuilder =
+ *     MobileDeviceConstantServiceSettings.newBuilder();
+ * mobileDeviceConstantServiceSettingsBuilder.getMobileDeviceConstantSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * MobileDeviceConstantServiceSettings mobileDeviceConstantServiceSettings = mobileDeviceConstantServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class MobileDeviceConstantServiceSettings + extends ClientSettings { + /** Returns the object with the settings used for calls to getMobileDeviceConstant. */ + public UnaryCallSettings + getMobileDeviceConstantSettings() { + return ((MobileDeviceConstantServiceStubSettings) getStubSettings()) + .getMobileDeviceConstantSettings(); + } + + public static final MobileDeviceConstantServiceSettings create( + MobileDeviceConstantServiceStubSettings stub) throws IOException { + return new MobileDeviceConstantServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return MobileDeviceConstantServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return MobileDeviceConstantServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return MobileDeviceConstantServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return MobileDeviceConstantServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return MobileDeviceConstantServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return MobileDeviceConstantServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return MobileDeviceConstantServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected MobileDeviceConstantServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for MobileDeviceConstantServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + protected Builder() throws IOException { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(MobileDeviceConstantServiceStubSettings.newBuilder(clientContext)); + } + + private static Builder createDefault() { + return new Builder(MobileDeviceConstantServiceStubSettings.newBuilder()); + } + + protected Builder(MobileDeviceConstantServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(MobileDeviceConstantServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + public MobileDeviceConstantServiceStubSettings.Builder getStubSettingsBuilder() { + return ((MobileDeviceConstantServiceStubSettings.Builder) getStubSettings()); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getMobileDeviceConstant. */ + public UnaryCallSettings.Builder + getMobileDeviceConstantSettings() { + return getStubSettingsBuilder().getMobileDeviceConstantSettings(); + } + + @Override + public MobileDeviceConstantServiceSettings build() throws IOException { + return new MobileDeviceConstantServiceSettings(this); + } + } +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupAdsRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupAdsRequest.java index bade6e54df..caaaf5ba6b 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupAdsRequest.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupAdsRequest.java @@ -22,6 +22,8 @@ private MutateAdGroupAdsRequest(com.google.protobuf.GeneratedMessageV3.Builder + * If true, successful operations will be carried out and invalid + * operations will return errors. If false, all operations will be carried + * out in one transaction if and only if they are all valid. + * Default is false. + *

+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_; + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -216,6 +258,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < operations_.size(); i++) { output.writeMessage(2, operations_.get(i)); } + if (partialFailure_ != false) { + output.writeBool(3, partialFailure_); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } unknownFields.writeTo(output); } @@ -232,6 +280,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, operations_.get(i)); } + if (partialFailure_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, partialFailure_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -252,6 +308,10 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getCustomerId()); result = result && getOperationsList() .equals(other.getOperationsList()); + result = result && (getPartialFailure() + == other.getPartialFailure()); + result = result && (getValidateOnly() + == other.getValidateOnly()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -269,6 +329,12 @@ public int hashCode() { hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + getOperationsList().hashCode(); } + hash = (37 * hash) + PARTIAL_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPartialFailure()); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -415,6 +481,10 @@ public Builder clear() { } else { operationsBuilder_.clear(); } + partialFailure_ = false; + + validateOnly_ = false; + return this; } @@ -453,6 +523,8 @@ public com.google.ads.googleads.v0.services.MutateAdGroupAdsRequest buildPartial } else { result.operations_ = operationsBuilder_.build(); } + result.partialFailure_ = partialFailure_; + result.validateOnly_ = validateOnly_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -532,6 +604,12 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateAdGroupAdsRe } } } + if (other.getPartialFailure() != false) { + setPartialFailure(other.getPartialFailure()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -962,6 +1040,94 @@ public com.google.ads.googleads.v0.services.AdGroupAdOperation.Builder addOperat } return operationsBuilder_; } + + private boolean partialFailure_ ; + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder setPartialFailure(boolean value) { + + partialFailure_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder clearPartialFailure() { + + partialFailure_ = false; + onChanged(); + return this; + } + + private boolean validateOnly_ ; + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupAdsRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupAdsRequestOrBuilder.java index d38635ea5c..84f822f6f8 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupAdsRequestOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupAdsRequestOrBuilder.java @@ -68,4 +68,26 @@ public interface MutateAdGroupAdsRequestOrBuilder extends */ com.google.ads.googleads.v0.services.AdGroupAdOperationOrBuilder getOperationsOrBuilder( int index); + + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + boolean getPartialFailure(); + + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + boolean getValidateOnly(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupAdsResponse.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupAdsResponse.java index 96235b8720..4beecd6c7f 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupAdsResponse.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupAdsResponse.java @@ -48,14 +48,27 @@ private MutateAdGroupAdsResponse( done = true; break; case 18: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + mutable_bitField0_ |= 0x00000002; } results_.add( input.readMessage(com.google.ads.googleads.v0.services.MutateAdGroupAdResult.parser(), extensionRegistry)); break; } + case 26: { + com.google.rpc.Status.Builder subBuilder = null; + if (partialFailureError_ != null) { + subBuilder = partialFailureError_.toBuilder(); + } + partialFailureError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(partialFailureError_); + partialFailureError_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -71,7 +84,7 @@ private MutateAdGroupAdsResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); } this.unknownFields = unknownFields.build(); @@ -91,6 +104,49 @@ private MutateAdGroupAdsResponse( com.google.ads.googleads.v0.services.MutateAdGroupAdsResponse.class, com.google.ads.googleads.v0.services.MutateAdGroupAdsResponse.Builder.class); } + private int bitField0_; + public static final int PARTIAL_FAILURE_ERROR_FIELD_NUMBER = 3; + private com.google.rpc.Status partialFailureError_; + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureError_ != null; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + return getPartialFailureError(); + } + public static final int RESULTS_FIELD_NUMBER = 2; private java.util.List results_; /** @@ -163,6 +219,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } + if (partialFailureError_ != null) { + output.writeMessage(3, getPartialFailureError()); + } unknownFields.writeTo(output); } @@ -176,6 +235,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, results_.get(i)); } + if (partialFailureError_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPartialFailureError()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -192,6 +255,11 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.googleads.v0.services.MutateAdGroupAdsResponse other = (com.google.ads.googleads.v0.services.MutateAdGroupAdsResponse) obj; boolean result = true; + result = result && (hasPartialFailureError() == other.hasPartialFailureError()); + if (hasPartialFailureError()) { + result = result && getPartialFailureError() + .equals(other.getPartialFailureError()); + } result = result && getResultsList() .equals(other.getResultsList()); result = result && unknownFields.equals(other.unknownFields); @@ -205,6 +273,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPartialFailureError()) { + hash = (37 * hash) + PARTIAL_FAILURE_ERROR_FIELD_NUMBER; + hash = (53 * hash) + getPartialFailureError().hashCode(); + } if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); @@ -347,9 +419,15 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { resultsBuilder_.clear(); } @@ -380,15 +458,22 @@ public com.google.ads.googleads.v0.services.MutateAdGroupAdsResponse build() { public com.google.ads.googleads.v0.services.MutateAdGroupAdsResponse buildPartial() { com.google.ads.googleads.v0.services.MutateAdGroupAdsResponse result = new com.google.ads.googleads.v0.services.MutateAdGroupAdsResponse(this); int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (partialFailureErrorBuilder_ == null) { + result.partialFailureError_ = partialFailureError_; + } else { + result.partialFailureError_ = partialFailureErrorBuilder_.build(); + } if (resultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.results_ = results_; } else { result.results_ = resultsBuilder_.build(); } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -437,11 +522,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateAdGroupAdsResponse other) { if (other == com.google.ads.googleads.v0.services.MutateAdGroupAdsResponse.getDefaultInstance()) return this; + if (other.hasPartialFailureError()) { + mergePartialFailureError(other.getPartialFailureError()); + } if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResultsIsMutable(); results_.addAll(other.results_); @@ -454,7 +542,7 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateAdGroupAdsRe resultsBuilder_.dispose(); resultsBuilder_ = null; results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); resultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResultsFieldBuilder() : null; @@ -493,12 +581,192 @@ public Builder mergeFrom( } private int bitField0_; + private com.google.rpc.Status partialFailureError_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> partialFailureErrorBuilder_; + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureErrorBuilder_ != null || partialFailureError_ != null; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } else { + return partialFailureErrorBuilder_.getMessage(); + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partialFailureError_ = value; + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError( + com.google.rpc.Status.Builder builderForValue) { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = builderForValue.build(); + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder mergePartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (partialFailureError_ != null) { + partialFailureError_ = + com.google.rpc.Status.newBuilder(partialFailureError_).mergeFrom(value).buildPartial(); + } else { + partialFailureError_ = value; + } + onChanged(); + } else { + partialFailureErrorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder clearPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + onChanged(); + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status.Builder getPartialFailureErrorBuilder() { + + onChanged(); + return getPartialFailureErrorFieldBuilder().getBuilder(); + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + if (partialFailureErrorBuilder_ != null) { + return partialFailureErrorBuilder_.getMessageOrBuilder(); + } else { + return partialFailureError_ == null ? + com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getPartialFailureErrorFieldBuilder() { + if (partialFailureErrorBuilder_ == null) { + partialFailureErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getPartialFailureError(), + getParentForChildren(), + isClean()); + partialFailureError_ = null; + } + return partialFailureErrorBuilder_; + } + private java.util.List results_ = java.util.Collections.emptyList(); private void ensureResultsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(results_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -692,7 +960,7 @@ public Builder addAllResults( public Builder clearResults() { if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { resultsBuilder_.clear(); @@ -797,7 +1065,7 @@ public com.google.ads.googleads.v0.services.MutateAdGroupAdResult.Builder addRes resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v0.services.MutateAdGroupAdResult, com.google.ads.googleads.v0.services.MutateAdGroupAdResult.Builder, com.google.ads.googleads.v0.services.MutateAdGroupAdResultOrBuilder>( results_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); results_ = null; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupAdsResponseOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupAdsResponseOrBuilder.java index 3ec5c4ae0b..02bc213d65 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupAdsResponseOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupAdsResponseOrBuilder.java @@ -7,6 +7,40 @@ public interface MutateAdGroupAdsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateAdGroupAdsResponse) com.google.protobuf.MessageOrBuilder { + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + boolean hasPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.Status getPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder(); + /** *
    * All results for the mutate.
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupBidModifiersRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupBidModifiersRequest.java
index 2046ce2278..693c198b66 100644
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupBidModifiersRequest.java
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupBidModifiersRequest.java
@@ -22,6 +22,8 @@ private MutateAdGroupBidModifiersRequest(com.google.protobuf.GeneratedMessageV3.
   private MutateAdGroupBidModifiersRequest() {
     customerId_ = "";
     operations_ = java.util.Collections.emptyList();
+    partialFailure_ = false;
+    validateOnly_ = false;
   }
 
   @java.lang.Override
@@ -63,6 +65,16 @@ private MutateAdGroupBidModifiersRequest(
                 input.readMessage(com.google.ads.googleads.v0.services.AdGroupBidModifierOperation.parser(), extensionRegistry));
             break;
           }
+          case 24: {
+
+            partialFailure_ = input.readBool();
+            break;
+          }
+          case 32: {
+
+            validateOnly_ = input.readBool();
+            break;
+          }
           default: {
             if (!parseUnknownFieldProto3(
                 input, unknownFields, extensionRegistry, tag)) {
@@ -196,6 +208,36 @@ public com.google.ads.googleads.v0.services.AdGroupBidModifierOperationOrBuilder
     return operations_.get(index);
   }
 
+  public static final int PARTIAL_FAILURE_FIELD_NUMBER = 3;
+  private boolean partialFailure_;
+  /**
+   * 
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_; + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -216,6 +258,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < operations_.size(); i++) { output.writeMessage(2, operations_.get(i)); } + if (partialFailure_ != false) { + output.writeBool(3, partialFailure_); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } unknownFields.writeTo(output); } @@ -232,6 +280,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, operations_.get(i)); } + if (partialFailure_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, partialFailure_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -252,6 +308,10 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getCustomerId()); result = result && getOperationsList() .equals(other.getOperationsList()); + result = result && (getPartialFailure() + == other.getPartialFailure()); + result = result && (getValidateOnly() + == other.getValidateOnly()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -269,6 +329,12 @@ public int hashCode() { hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + getOperationsList().hashCode(); } + hash = (37 * hash) + PARTIAL_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPartialFailure()); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -415,6 +481,10 @@ public Builder clear() { } else { operationsBuilder_.clear(); } + partialFailure_ = false; + + validateOnly_ = false; + return this; } @@ -453,6 +523,8 @@ public com.google.ads.googleads.v0.services.MutateAdGroupBidModifiersRequest bui } else { result.operations_ = operationsBuilder_.build(); } + result.partialFailure_ = partialFailure_; + result.validateOnly_ = validateOnly_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -532,6 +604,12 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateAdGroupBidMo } } } + if (other.getPartialFailure() != false) { + setPartialFailure(other.getPartialFailure()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -962,6 +1040,94 @@ public com.google.ads.googleads.v0.services.AdGroupBidModifierOperation.Builder } return operationsBuilder_; } + + private boolean partialFailure_ ; + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder setPartialFailure(boolean value) { + + partialFailure_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder clearPartialFailure() { + + partialFailure_ = false; + onChanged(); + return this; + } + + private boolean validateOnly_ ; + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupBidModifiersRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupBidModifiersRequestOrBuilder.java index 972cb0bdb0..f39e908104 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupBidModifiersRequestOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupBidModifiersRequestOrBuilder.java @@ -68,4 +68,26 @@ public interface MutateAdGroupBidModifiersRequestOrBuilder extends */ com.google.ads.googleads.v0.services.AdGroupBidModifierOperationOrBuilder getOperationsOrBuilder( int index); + + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + boolean getPartialFailure(); + + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + boolean getValidateOnly(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupBidModifiersResponse.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupBidModifiersResponse.java index 78678207f2..8170c5c94d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupBidModifiersResponse.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupBidModifiersResponse.java @@ -48,14 +48,27 @@ private MutateAdGroupBidModifiersResponse( done = true; break; case 18: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + mutable_bitField0_ |= 0x00000002; } results_.add( input.readMessage(com.google.ads.googleads.v0.services.MutateAdGroupBidModifierResult.parser(), extensionRegistry)); break; } + case 26: { + com.google.rpc.Status.Builder subBuilder = null; + if (partialFailureError_ != null) { + subBuilder = partialFailureError_.toBuilder(); + } + partialFailureError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(partialFailureError_); + partialFailureError_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -71,7 +84,7 @@ private MutateAdGroupBidModifiersResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); } this.unknownFields = unknownFields.build(); @@ -91,6 +104,49 @@ private MutateAdGroupBidModifiersResponse( com.google.ads.googleads.v0.services.MutateAdGroupBidModifiersResponse.class, com.google.ads.googleads.v0.services.MutateAdGroupBidModifiersResponse.Builder.class); } + private int bitField0_; + public static final int PARTIAL_FAILURE_ERROR_FIELD_NUMBER = 3; + private com.google.rpc.Status partialFailureError_; + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureError_ != null; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + return getPartialFailureError(); + } + public static final int RESULTS_FIELD_NUMBER = 2; private java.util.List results_; /** @@ -163,6 +219,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } + if (partialFailureError_ != null) { + output.writeMessage(3, getPartialFailureError()); + } unknownFields.writeTo(output); } @@ -176,6 +235,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, results_.get(i)); } + if (partialFailureError_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPartialFailureError()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -192,6 +255,11 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.googleads.v0.services.MutateAdGroupBidModifiersResponse other = (com.google.ads.googleads.v0.services.MutateAdGroupBidModifiersResponse) obj; boolean result = true; + result = result && (hasPartialFailureError() == other.hasPartialFailureError()); + if (hasPartialFailureError()) { + result = result && getPartialFailureError() + .equals(other.getPartialFailureError()); + } result = result && getResultsList() .equals(other.getResultsList()); result = result && unknownFields.equals(other.unknownFields); @@ -205,6 +273,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPartialFailureError()) { + hash = (37 * hash) + PARTIAL_FAILURE_ERROR_FIELD_NUMBER; + hash = (53 * hash) + getPartialFailureError().hashCode(); + } if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); @@ -347,9 +419,15 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { resultsBuilder_.clear(); } @@ -380,15 +458,22 @@ public com.google.ads.googleads.v0.services.MutateAdGroupBidModifiersResponse bu public com.google.ads.googleads.v0.services.MutateAdGroupBidModifiersResponse buildPartial() { com.google.ads.googleads.v0.services.MutateAdGroupBidModifiersResponse result = new com.google.ads.googleads.v0.services.MutateAdGroupBidModifiersResponse(this); int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (partialFailureErrorBuilder_ == null) { + result.partialFailureError_ = partialFailureError_; + } else { + result.partialFailureError_ = partialFailureErrorBuilder_.build(); + } if (resultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.results_ = results_; } else { result.results_ = resultsBuilder_.build(); } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -437,11 +522,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateAdGroupBidModifiersResponse other) { if (other == com.google.ads.googleads.v0.services.MutateAdGroupBidModifiersResponse.getDefaultInstance()) return this; + if (other.hasPartialFailureError()) { + mergePartialFailureError(other.getPartialFailureError()); + } if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResultsIsMutable(); results_.addAll(other.results_); @@ -454,7 +542,7 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateAdGroupBidMo resultsBuilder_.dispose(); resultsBuilder_ = null; results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); resultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResultsFieldBuilder() : null; @@ -493,12 +581,192 @@ public Builder mergeFrom( } private int bitField0_; + private com.google.rpc.Status partialFailureError_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> partialFailureErrorBuilder_; + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureErrorBuilder_ != null || partialFailureError_ != null; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } else { + return partialFailureErrorBuilder_.getMessage(); + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partialFailureError_ = value; + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError( + com.google.rpc.Status.Builder builderForValue) { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = builderForValue.build(); + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder mergePartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (partialFailureError_ != null) { + partialFailureError_ = + com.google.rpc.Status.newBuilder(partialFailureError_).mergeFrom(value).buildPartial(); + } else { + partialFailureError_ = value; + } + onChanged(); + } else { + partialFailureErrorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder clearPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + onChanged(); + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status.Builder getPartialFailureErrorBuilder() { + + onChanged(); + return getPartialFailureErrorFieldBuilder().getBuilder(); + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + if (partialFailureErrorBuilder_ != null) { + return partialFailureErrorBuilder_.getMessageOrBuilder(); + } else { + return partialFailureError_ == null ? + com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getPartialFailureErrorFieldBuilder() { + if (partialFailureErrorBuilder_ == null) { + partialFailureErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getPartialFailureError(), + getParentForChildren(), + isClean()); + partialFailureError_ = null; + } + return partialFailureErrorBuilder_; + } + private java.util.List results_ = java.util.Collections.emptyList(); private void ensureResultsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(results_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -692,7 +960,7 @@ public Builder addAllResults( public Builder clearResults() { if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { resultsBuilder_.clear(); @@ -797,7 +1065,7 @@ public com.google.ads.googleads.v0.services.MutateAdGroupBidModifierResult.Build resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v0.services.MutateAdGroupBidModifierResult, com.google.ads.googleads.v0.services.MutateAdGroupBidModifierResult.Builder, com.google.ads.googleads.v0.services.MutateAdGroupBidModifierResultOrBuilder>( results_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); results_ = null; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupBidModifiersResponseOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupBidModifiersResponseOrBuilder.java index 3fb4a1bff7..ed92d10ec8 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupBidModifiersResponseOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupBidModifiersResponseOrBuilder.java @@ -7,6 +7,40 @@ public interface MutateAdGroupBidModifiersResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateAdGroupBidModifiersResponse) com.google.protobuf.MessageOrBuilder { + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + boolean hasPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.Status getPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder(); + /** *
    * All results for the mutate.
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupCriteriaRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupCriteriaRequest.java
index df39707592..09f998fde1 100644
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupCriteriaRequest.java
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupCriteriaRequest.java
@@ -22,6 +22,8 @@ private MutateAdGroupCriteriaRequest(com.google.protobuf.GeneratedMessageV3.Buil
   private MutateAdGroupCriteriaRequest() {
     customerId_ = "";
     operations_ = java.util.Collections.emptyList();
+    partialFailure_ = false;
+    validateOnly_ = false;
   }
 
   @java.lang.Override
@@ -63,6 +65,16 @@ private MutateAdGroupCriteriaRequest(
                 input.readMessage(com.google.ads.googleads.v0.services.AdGroupCriterionOperation.parser(), extensionRegistry));
             break;
           }
+          case 24: {
+
+            partialFailure_ = input.readBool();
+            break;
+          }
+          case 32: {
+
+            validateOnly_ = input.readBool();
+            break;
+          }
           default: {
             if (!parseUnknownFieldProto3(
                 input, unknownFields, extensionRegistry, tag)) {
@@ -196,6 +208,36 @@ public com.google.ads.googleads.v0.services.AdGroupCriterionOperationOrBuilder g
     return operations_.get(index);
   }
 
+  public static final int PARTIAL_FAILURE_FIELD_NUMBER = 3;
+  private boolean partialFailure_;
+  /**
+   * 
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_; + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -216,6 +258,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < operations_.size(); i++) { output.writeMessage(2, operations_.get(i)); } + if (partialFailure_ != false) { + output.writeBool(3, partialFailure_); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } unknownFields.writeTo(output); } @@ -232,6 +280,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, operations_.get(i)); } + if (partialFailure_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, partialFailure_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -252,6 +308,10 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getCustomerId()); result = result && getOperationsList() .equals(other.getOperationsList()); + result = result && (getPartialFailure() + == other.getPartialFailure()); + result = result && (getValidateOnly() + == other.getValidateOnly()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -269,6 +329,12 @@ public int hashCode() { hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + getOperationsList().hashCode(); } + hash = (37 * hash) + PARTIAL_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPartialFailure()); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -415,6 +481,10 @@ public Builder clear() { } else { operationsBuilder_.clear(); } + partialFailure_ = false; + + validateOnly_ = false; + return this; } @@ -453,6 +523,8 @@ public com.google.ads.googleads.v0.services.MutateAdGroupCriteriaRequest buildPa } else { result.operations_ = operationsBuilder_.build(); } + result.partialFailure_ = partialFailure_; + result.validateOnly_ = validateOnly_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -532,6 +604,12 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateAdGroupCrite } } } + if (other.getPartialFailure() != false) { + setPartialFailure(other.getPartialFailure()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -962,6 +1040,94 @@ public com.google.ads.googleads.v0.services.AdGroupCriterionOperation.Builder ad } return operationsBuilder_; } + + private boolean partialFailure_ ; + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder setPartialFailure(boolean value) { + + partialFailure_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder clearPartialFailure() { + + partialFailure_ = false; + onChanged(); + return this; + } + + private boolean validateOnly_ ; + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupCriteriaRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupCriteriaRequestOrBuilder.java index 84294648ac..a3336957b9 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupCriteriaRequestOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupCriteriaRequestOrBuilder.java @@ -68,4 +68,26 @@ public interface MutateAdGroupCriteriaRequestOrBuilder extends */ com.google.ads.googleads.v0.services.AdGroupCriterionOperationOrBuilder getOperationsOrBuilder( int index); + + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + boolean getPartialFailure(); + + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + boolean getValidateOnly(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupCriteriaResponse.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupCriteriaResponse.java index fe3c073daa..4daf088bed 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupCriteriaResponse.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupCriteriaResponse.java @@ -48,14 +48,27 @@ private MutateAdGroupCriteriaResponse( done = true; break; case 18: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + mutable_bitField0_ |= 0x00000002; } results_.add( input.readMessage(com.google.ads.googleads.v0.services.MutateAdGroupCriterionResult.parser(), extensionRegistry)); break; } + case 26: { + com.google.rpc.Status.Builder subBuilder = null; + if (partialFailureError_ != null) { + subBuilder = partialFailureError_.toBuilder(); + } + partialFailureError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(partialFailureError_); + partialFailureError_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -71,7 +84,7 @@ private MutateAdGroupCriteriaResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); } this.unknownFields = unknownFields.build(); @@ -91,6 +104,49 @@ private MutateAdGroupCriteriaResponse( com.google.ads.googleads.v0.services.MutateAdGroupCriteriaResponse.class, com.google.ads.googleads.v0.services.MutateAdGroupCriteriaResponse.Builder.class); } + private int bitField0_; + public static final int PARTIAL_FAILURE_ERROR_FIELD_NUMBER = 3; + private com.google.rpc.Status partialFailureError_; + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureError_ != null; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + return getPartialFailureError(); + } + public static final int RESULTS_FIELD_NUMBER = 2; private java.util.List results_; /** @@ -163,6 +219,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } + if (partialFailureError_ != null) { + output.writeMessage(3, getPartialFailureError()); + } unknownFields.writeTo(output); } @@ -176,6 +235,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, results_.get(i)); } + if (partialFailureError_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPartialFailureError()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -192,6 +255,11 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.googleads.v0.services.MutateAdGroupCriteriaResponse other = (com.google.ads.googleads.v0.services.MutateAdGroupCriteriaResponse) obj; boolean result = true; + result = result && (hasPartialFailureError() == other.hasPartialFailureError()); + if (hasPartialFailureError()) { + result = result && getPartialFailureError() + .equals(other.getPartialFailureError()); + } result = result && getResultsList() .equals(other.getResultsList()); result = result && unknownFields.equals(other.unknownFields); @@ -205,6 +273,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPartialFailureError()) { + hash = (37 * hash) + PARTIAL_FAILURE_ERROR_FIELD_NUMBER; + hash = (53 * hash) + getPartialFailureError().hashCode(); + } if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); @@ -347,9 +419,15 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { resultsBuilder_.clear(); } @@ -380,15 +458,22 @@ public com.google.ads.googleads.v0.services.MutateAdGroupCriteriaResponse build( public com.google.ads.googleads.v0.services.MutateAdGroupCriteriaResponse buildPartial() { com.google.ads.googleads.v0.services.MutateAdGroupCriteriaResponse result = new com.google.ads.googleads.v0.services.MutateAdGroupCriteriaResponse(this); int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (partialFailureErrorBuilder_ == null) { + result.partialFailureError_ = partialFailureError_; + } else { + result.partialFailureError_ = partialFailureErrorBuilder_.build(); + } if (resultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.results_ = results_; } else { result.results_ = resultsBuilder_.build(); } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -437,11 +522,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateAdGroupCriteriaResponse other) { if (other == com.google.ads.googleads.v0.services.MutateAdGroupCriteriaResponse.getDefaultInstance()) return this; + if (other.hasPartialFailureError()) { + mergePartialFailureError(other.getPartialFailureError()); + } if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResultsIsMutable(); results_.addAll(other.results_); @@ -454,7 +542,7 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateAdGroupCrite resultsBuilder_.dispose(); resultsBuilder_ = null; results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); resultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResultsFieldBuilder() : null; @@ -493,12 +581,192 @@ public Builder mergeFrom( } private int bitField0_; + private com.google.rpc.Status partialFailureError_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> partialFailureErrorBuilder_; + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureErrorBuilder_ != null || partialFailureError_ != null; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } else { + return partialFailureErrorBuilder_.getMessage(); + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partialFailureError_ = value; + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError( + com.google.rpc.Status.Builder builderForValue) { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = builderForValue.build(); + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder mergePartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (partialFailureError_ != null) { + partialFailureError_ = + com.google.rpc.Status.newBuilder(partialFailureError_).mergeFrom(value).buildPartial(); + } else { + partialFailureError_ = value; + } + onChanged(); + } else { + partialFailureErrorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder clearPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + onChanged(); + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status.Builder getPartialFailureErrorBuilder() { + + onChanged(); + return getPartialFailureErrorFieldBuilder().getBuilder(); + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + if (partialFailureErrorBuilder_ != null) { + return partialFailureErrorBuilder_.getMessageOrBuilder(); + } else { + return partialFailureError_ == null ? + com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getPartialFailureErrorFieldBuilder() { + if (partialFailureErrorBuilder_ == null) { + partialFailureErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getPartialFailureError(), + getParentForChildren(), + isClean()); + partialFailureError_ = null; + } + return partialFailureErrorBuilder_; + } + private java.util.List results_ = java.util.Collections.emptyList(); private void ensureResultsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(results_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -692,7 +960,7 @@ public Builder addAllResults( public Builder clearResults() { if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { resultsBuilder_.clear(); @@ -797,7 +1065,7 @@ public com.google.ads.googleads.v0.services.MutateAdGroupCriterionResult.Builder resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v0.services.MutateAdGroupCriterionResult, com.google.ads.googleads.v0.services.MutateAdGroupCriterionResult.Builder, com.google.ads.googleads.v0.services.MutateAdGroupCriterionResultOrBuilder>( results_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); results_ = null; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupCriteriaResponseOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupCriteriaResponseOrBuilder.java index 02a296d968..118535c461 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupCriteriaResponseOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupCriteriaResponseOrBuilder.java @@ -7,6 +7,40 @@ public interface MutateAdGroupCriteriaResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateAdGroupCriteriaResponse) com.google.protobuf.MessageOrBuilder { + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + boolean hasPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.Status getPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder(); + /** *
    * All results for the mutate.
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupFeedsRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupFeedsRequest.java
index 0ecb512c20..bf7f711900 100644
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupFeedsRequest.java
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupFeedsRequest.java
@@ -22,6 +22,8 @@ private MutateAdGroupFeedsRequest(com.google.protobuf.GeneratedMessageV3.Builder
   private MutateAdGroupFeedsRequest() {
     customerId_ = "";
     operations_ = java.util.Collections.emptyList();
+    partialFailure_ = false;
+    validateOnly_ = false;
   }
 
   @java.lang.Override
@@ -63,6 +65,16 @@ private MutateAdGroupFeedsRequest(
                 input.readMessage(com.google.ads.googleads.v0.services.AdGroupFeedOperation.parser(), extensionRegistry));
             break;
           }
+          case 24: {
+
+            partialFailure_ = input.readBool();
+            break;
+          }
+          case 32: {
+
+            validateOnly_ = input.readBool();
+            break;
+          }
           default: {
             if (!parseUnknownFieldProto3(
                 input, unknownFields, extensionRegistry, tag)) {
@@ -196,6 +208,36 @@ public com.google.ads.googleads.v0.services.AdGroupFeedOperationOrBuilder getOpe
     return operations_.get(index);
   }
 
+  public static final int PARTIAL_FAILURE_FIELD_NUMBER = 3;
+  private boolean partialFailure_;
+  /**
+   * 
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_; + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -216,6 +258,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < operations_.size(); i++) { output.writeMessage(2, operations_.get(i)); } + if (partialFailure_ != false) { + output.writeBool(3, partialFailure_); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } unknownFields.writeTo(output); } @@ -232,6 +280,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, operations_.get(i)); } + if (partialFailure_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, partialFailure_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -252,6 +308,10 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getCustomerId()); result = result && getOperationsList() .equals(other.getOperationsList()); + result = result && (getPartialFailure() + == other.getPartialFailure()); + result = result && (getValidateOnly() + == other.getValidateOnly()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -269,6 +329,12 @@ public int hashCode() { hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + getOperationsList().hashCode(); } + hash = (37 * hash) + PARTIAL_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPartialFailure()); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -415,6 +481,10 @@ public Builder clear() { } else { operationsBuilder_.clear(); } + partialFailure_ = false; + + validateOnly_ = false; + return this; } @@ -453,6 +523,8 @@ public com.google.ads.googleads.v0.services.MutateAdGroupFeedsRequest buildParti } else { result.operations_ = operationsBuilder_.build(); } + result.partialFailure_ = partialFailure_; + result.validateOnly_ = validateOnly_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -532,6 +604,12 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateAdGroupFeeds } } } + if (other.getPartialFailure() != false) { + setPartialFailure(other.getPartialFailure()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -962,6 +1040,94 @@ public com.google.ads.googleads.v0.services.AdGroupFeedOperation.Builder addOper } return operationsBuilder_; } + + private boolean partialFailure_ ; + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder setPartialFailure(boolean value) { + + partialFailure_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder clearPartialFailure() { + + partialFailure_ = false; + onChanged(); + return this; + } + + private boolean validateOnly_ ; + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupFeedsRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupFeedsRequestOrBuilder.java index 57af5eca61..f829064536 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupFeedsRequestOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupFeedsRequestOrBuilder.java @@ -68,4 +68,26 @@ public interface MutateAdGroupFeedsRequestOrBuilder extends */ com.google.ads.googleads.v0.services.AdGroupFeedOperationOrBuilder getOperationsOrBuilder( int index); + + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + boolean getPartialFailure(); + + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + boolean getValidateOnly(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupFeedsResponse.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupFeedsResponse.java index 4597dfad3a..611fb16c89 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupFeedsResponse.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupFeedsResponse.java @@ -48,14 +48,27 @@ private MutateAdGroupFeedsResponse( done = true; break; case 18: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + mutable_bitField0_ |= 0x00000002; } results_.add( input.readMessage(com.google.ads.googleads.v0.services.MutateAdGroupFeedResult.parser(), extensionRegistry)); break; } + case 26: { + com.google.rpc.Status.Builder subBuilder = null; + if (partialFailureError_ != null) { + subBuilder = partialFailureError_.toBuilder(); + } + partialFailureError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(partialFailureError_); + partialFailureError_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -71,7 +84,7 @@ private MutateAdGroupFeedsResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); } this.unknownFields = unknownFields.build(); @@ -91,6 +104,49 @@ private MutateAdGroupFeedsResponse( com.google.ads.googleads.v0.services.MutateAdGroupFeedsResponse.class, com.google.ads.googleads.v0.services.MutateAdGroupFeedsResponse.Builder.class); } + private int bitField0_; + public static final int PARTIAL_FAILURE_ERROR_FIELD_NUMBER = 3; + private com.google.rpc.Status partialFailureError_; + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureError_ != null; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + return getPartialFailureError(); + } + public static final int RESULTS_FIELD_NUMBER = 2; private java.util.List results_; /** @@ -163,6 +219,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } + if (partialFailureError_ != null) { + output.writeMessage(3, getPartialFailureError()); + } unknownFields.writeTo(output); } @@ -176,6 +235,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, results_.get(i)); } + if (partialFailureError_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPartialFailureError()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -192,6 +255,11 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.googleads.v0.services.MutateAdGroupFeedsResponse other = (com.google.ads.googleads.v0.services.MutateAdGroupFeedsResponse) obj; boolean result = true; + result = result && (hasPartialFailureError() == other.hasPartialFailureError()); + if (hasPartialFailureError()) { + result = result && getPartialFailureError() + .equals(other.getPartialFailureError()); + } result = result && getResultsList() .equals(other.getResultsList()); result = result && unknownFields.equals(other.unknownFields); @@ -205,6 +273,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPartialFailureError()) { + hash = (37 * hash) + PARTIAL_FAILURE_ERROR_FIELD_NUMBER; + hash = (53 * hash) + getPartialFailureError().hashCode(); + } if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); @@ -347,9 +419,15 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { resultsBuilder_.clear(); } @@ -380,15 +458,22 @@ public com.google.ads.googleads.v0.services.MutateAdGroupFeedsResponse build() { public com.google.ads.googleads.v0.services.MutateAdGroupFeedsResponse buildPartial() { com.google.ads.googleads.v0.services.MutateAdGroupFeedsResponse result = new com.google.ads.googleads.v0.services.MutateAdGroupFeedsResponse(this); int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (partialFailureErrorBuilder_ == null) { + result.partialFailureError_ = partialFailureError_; + } else { + result.partialFailureError_ = partialFailureErrorBuilder_.build(); + } if (resultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.results_ = results_; } else { result.results_ = resultsBuilder_.build(); } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -437,11 +522,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateAdGroupFeedsResponse other) { if (other == com.google.ads.googleads.v0.services.MutateAdGroupFeedsResponse.getDefaultInstance()) return this; + if (other.hasPartialFailureError()) { + mergePartialFailureError(other.getPartialFailureError()); + } if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResultsIsMutable(); results_.addAll(other.results_); @@ -454,7 +542,7 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateAdGroupFeeds resultsBuilder_.dispose(); resultsBuilder_ = null; results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); resultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResultsFieldBuilder() : null; @@ -493,12 +581,192 @@ public Builder mergeFrom( } private int bitField0_; + private com.google.rpc.Status partialFailureError_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> partialFailureErrorBuilder_; + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureErrorBuilder_ != null || partialFailureError_ != null; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } else { + return partialFailureErrorBuilder_.getMessage(); + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partialFailureError_ = value; + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError( + com.google.rpc.Status.Builder builderForValue) { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = builderForValue.build(); + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder mergePartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (partialFailureError_ != null) { + partialFailureError_ = + com.google.rpc.Status.newBuilder(partialFailureError_).mergeFrom(value).buildPartial(); + } else { + partialFailureError_ = value; + } + onChanged(); + } else { + partialFailureErrorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder clearPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + onChanged(); + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status.Builder getPartialFailureErrorBuilder() { + + onChanged(); + return getPartialFailureErrorFieldBuilder().getBuilder(); + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + if (partialFailureErrorBuilder_ != null) { + return partialFailureErrorBuilder_.getMessageOrBuilder(); + } else { + return partialFailureError_ == null ? + com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getPartialFailureErrorFieldBuilder() { + if (partialFailureErrorBuilder_ == null) { + partialFailureErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getPartialFailureError(), + getParentForChildren(), + isClean()); + partialFailureError_ = null; + } + return partialFailureErrorBuilder_; + } + private java.util.List results_ = java.util.Collections.emptyList(); private void ensureResultsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(results_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -692,7 +960,7 @@ public Builder addAllResults( public Builder clearResults() { if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { resultsBuilder_.clear(); @@ -797,7 +1065,7 @@ public com.google.ads.googleads.v0.services.MutateAdGroupFeedResult.Builder addR resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v0.services.MutateAdGroupFeedResult, com.google.ads.googleads.v0.services.MutateAdGroupFeedResult.Builder, com.google.ads.googleads.v0.services.MutateAdGroupFeedResultOrBuilder>( results_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); results_ = null; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupFeedsResponseOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupFeedsResponseOrBuilder.java index 3980bfe650..a456950729 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupFeedsResponseOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupFeedsResponseOrBuilder.java @@ -7,6 +7,40 @@ public interface MutateAdGroupFeedsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateAdGroupFeedsResponse) com.google.protobuf.MessageOrBuilder { + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + boolean hasPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.Status getPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder(); + /** *
    * All results for the mutate.
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupsRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupsRequest.java
index 8e806a52c9..1029519b71 100644
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupsRequest.java
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupsRequest.java
@@ -22,6 +22,8 @@ private MutateAdGroupsRequest(com.google.protobuf.GeneratedMessageV3.Builder
   private MutateAdGroupsRequest() {
     customerId_ = "";
     operations_ = java.util.Collections.emptyList();
+    partialFailure_ = false;
+    validateOnly_ = false;
   }
 
   @java.lang.Override
@@ -63,6 +65,16 @@ private MutateAdGroupsRequest(
                 input.readMessage(com.google.ads.googleads.v0.services.AdGroupOperation.parser(), extensionRegistry));
             break;
           }
+          case 24: {
+
+            partialFailure_ = input.readBool();
+            break;
+          }
+          case 32: {
+
+            validateOnly_ = input.readBool();
+            break;
+          }
           default: {
             if (!parseUnknownFieldProto3(
                 input, unknownFields, extensionRegistry, tag)) {
@@ -196,6 +208,36 @@ public com.google.ads.googleads.v0.services.AdGroupOperationOrBuilder getOperati
     return operations_.get(index);
   }
 
+  public static final int PARTIAL_FAILURE_FIELD_NUMBER = 3;
+  private boolean partialFailure_;
+  /**
+   * 
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_; + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -216,6 +258,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < operations_.size(); i++) { output.writeMessage(2, operations_.get(i)); } + if (partialFailure_ != false) { + output.writeBool(3, partialFailure_); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } unknownFields.writeTo(output); } @@ -232,6 +280,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, operations_.get(i)); } + if (partialFailure_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, partialFailure_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -252,6 +308,10 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getCustomerId()); result = result && getOperationsList() .equals(other.getOperationsList()); + result = result && (getPartialFailure() + == other.getPartialFailure()); + result = result && (getValidateOnly() + == other.getValidateOnly()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -269,6 +329,12 @@ public int hashCode() { hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + getOperationsList().hashCode(); } + hash = (37 * hash) + PARTIAL_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPartialFailure()); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -415,6 +481,10 @@ public Builder clear() { } else { operationsBuilder_.clear(); } + partialFailure_ = false; + + validateOnly_ = false; + return this; } @@ -453,6 +523,8 @@ public com.google.ads.googleads.v0.services.MutateAdGroupsRequest buildPartial() } else { result.operations_ = operationsBuilder_.build(); } + result.partialFailure_ = partialFailure_; + result.validateOnly_ = validateOnly_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -532,6 +604,12 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateAdGroupsRequ } } } + if (other.getPartialFailure() != false) { + setPartialFailure(other.getPartialFailure()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -962,6 +1040,94 @@ public com.google.ads.googleads.v0.services.AdGroupOperation.Builder addOperatio } return operationsBuilder_; } + + private boolean partialFailure_ ; + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder setPartialFailure(boolean value) { + + partialFailure_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder clearPartialFailure() { + + partialFailure_ = false; + onChanged(); + return this; + } + + private boolean validateOnly_ ; + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupsRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupsRequestOrBuilder.java index 4da5c44773..10e52265a8 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupsRequestOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupsRequestOrBuilder.java @@ -68,4 +68,26 @@ public interface MutateAdGroupsRequestOrBuilder extends */ com.google.ads.googleads.v0.services.AdGroupOperationOrBuilder getOperationsOrBuilder( int index); + + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + boolean getPartialFailure(); + + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + boolean getValidateOnly(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupsResponse.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupsResponse.java index 1f742198c4..c1d315468d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupsResponse.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupsResponse.java @@ -48,14 +48,27 @@ private MutateAdGroupsResponse( done = true; break; case 18: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + mutable_bitField0_ |= 0x00000002; } results_.add( input.readMessage(com.google.ads.googleads.v0.services.MutateAdGroupResult.parser(), extensionRegistry)); break; } + case 26: { + com.google.rpc.Status.Builder subBuilder = null; + if (partialFailureError_ != null) { + subBuilder = partialFailureError_.toBuilder(); + } + partialFailureError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(partialFailureError_); + partialFailureError_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -71,7 +84,7 @@ private MutateAdGroupsResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); } this.unknownFields = unknownFields.build(); @@ -91,6 +104,49 @@ private MutateAdGroupsResponse( com.google.ads.googleads.v0.services.MutateAdGroupsResponse.class, com.google.ads.googleads.v0.services.MutateAdGroupsResponse.Builder.class); } + private int bitField0_; + public static final int PARTIAL_FAILURE_ERROR_FIELD_NUMBER = 3; + private com.google.rpc.Status partialFailureError_; + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureError_ != null; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + return getPartialFailureError(); + } + public static final int RESULTS_FIELD_NUMBER = 2; private java.util.List results_; /** @@ -163,6 +219,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } + if (partialFailureError_ != null) { + output.writeMessage(3, getPartialFailureError()); + } unknownFields.writeTo(output); } @@ -176,6 +235,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, results_.get(i)); } + if (partialFailureError_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPartialFailureError()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -192,6 +255,11 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.googleads.v0.services.MutateAdGroupsResponse other = (com.google.ads.googleads.v0.services.MutateAdGroupsResponse) obj; boolean result = true; + result = result && (hasPartialFailureError() == other.hasPartialFailureError()); + if (hasPartialFailureError()) { + result = result && getPartialFailureError() + .equals(other.getPartialFailureError()); + } result = result && getResultsList() .equals(other.getResultsList()); result = result && unknownFields.equals(other.unknownFields); @@ -205,6 +273,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPartialFailureError()) { + hash = (37 * hash) + PARTIAL_FAILURE_ERROR_FIELD_NUMBER; + hash = (53 * hash) + getPartialFailureError().hashCode(); + } if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); @@ -347,9 +419,15 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { resultsBuilder_.clear(); } @@ -380,15 +458,22 @@ public com.google.ads.googleads.v0.services.MutateAdGroupsResponse build() { public com.google.ads.googleads.v0.services.MutateAdGroupsResponse buildPartial() { com.google.ads.googleads.v0.services.MutateAdGroupsResponse result = new com.google.ads.googleads.v0.services.MutateAdGroupsResponse(this); int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (partialFailureErrorBuilder_ == null) { + result.partialFailureError_ = partialFailureError_; + } else { + result.partialFailureError_ = partialFailureErrorBuilder_.build(); + } if (resultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.results_ = results_; } else { result.results_ = resultsBuilder_.build(); } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -437,11 +522,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateAdGroupsResponse other) { if (other == com.google.ads.googleads.v0.services.MutateAdGroupsResponse.getDefaultInstance()) return this; + if (other.hasPartialFailureError()) { + mergePartialFailureError(other.getPartialFailureError()); + } if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResultsIsMutable(); results_.addAll(other.results_); @@ -454,7 +542,7 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateAdGroupsResp resultsBuilder_.dispose(); resultsBuilder_ = null; results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); resultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResultsFieldBuilder() : null; @@ -493,12 +581,192 @@ public Builder mergeFrom( } private int bitField0_; + private com.google.rpc.Status partialFailureError_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> partialFailureErrorBuilder_; + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureErrorBuilder_ != null || partialFailureError_ != null; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } else { + return partialFailureErrorBuilder_.getMessage(); + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partialFailureError_ = value; + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError( + com.google.rpc.Status.Builder builderForValue) { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = builderForValue.build(); + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder mergePartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (partialFailureError_ != null) { + partialFailureError_ = + com.google.rpc.Status.newBuilder(partialFailureError_).mergeFrom(value).buildPartial(); + } else { + partialFailureError_ = value; + } + onChanged(); + } else { + partialFailureErrorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder clearPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + onChanged(); + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status.Builder getPartialFailureErrorBuilder() { + + onChanged(); + return getPartialFailureErrorFieldBuilder().getBuilder(); + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + if (partialFailureErrorBuilder_ != null) { + return partialFailureErrorBuilder_.getMessageOrBuilder(); + } else { + return partialFailureError_ == null ? + com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getPartialFailureErrorFieldBuilder() { + if (partialFailureErrorBuilder_ == null) { + partialFailureErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getPartialFailureError(), + getParentForChildren(), + isClean()); + partialFailureError_ = null; + } + return partialFailureErrorBuilder_; + } + private java.util.List results_ = java.util.Collections.emptyList(); private void ensureResultsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(results_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -692,7 +960,7 @@ public Builder addAllResults( public Builder clearResults() { if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { resultsBuilder_.clear(); @@ -797,7 +1065,7 @@ public com.google.ads.googleads.v0.services.MutateAdGroupResult.Builder addResul resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v0.services.MutateAdGroupResult, com.google.ads.googleads.v0.services.MutateAdGroupResult.Builder, com.google.ads.googleads.v0.services.MutateAdGroupResultOrBuilder>( results_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); results_ = null; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupsResponseOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupsResponseOrBuilder.java index 0e66ef8636..aa34b35b23 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupsResponseOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdGroupsResponseOrBuilder.java @@ -7,6 +7,40 @@ public interface MutateAdGroupsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateAdGroupsResponse) com.google.protobuf.MessageOrBuilder { + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + boolean hasPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.Status getPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder(); + /** *
    * All results for the mutate.
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignGroupResult.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdParameterResult.java
similarity index 73%
rename from google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignGroupResult.java
rename to google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdParameterResult.java
index df2a17f09f..b616905ab5 100644
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignGroupResult.java
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdParameterResult.java
@@ -1,25 +1,25 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: google/ads/googleads/v0/services/campaign_group_service.proto
+// source: google/ads/googleads/v0/services/ad_parameter_service.proto
 
 package com.google.ads.googleads.v0.services;
 
 /**
  * 
- * The result for the campaign group mutate.
+ * The result for the ad parameter mutate.
  * 
* - * Protobuf type {@code google.ads.googleads.v0.services.MutateCampaignGroupResult} + * Protobuf type {@code google.ads.googleads.v0.services.MutateAdParameterResult} */ -public final class MutateCampaignGroupResult extends +public final class MutateAdParameterResult extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.services.MutateCampaignGroupResult) - MutateCampaignGroupResultOrBuilder { + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.services.MutateAdParameterResult) + MutateAdParameterResultOrBuilder { private static final long serialVersionUID = 0L; - // Use MutateCampaignGroupResult.newBuilder() to construct. - private MutateCampaignGroupResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use MutateAdParameterResult.newBuilder() to construct. + private MutateAdParameterResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MutateCampaignGroupResult() { + private MutateAdParameterResult() { resourceName_ = ""; } @@ -28,7 +28,7 @@ private MutateCampaignGroupResult() { getUnknownFields() { return this.unknownFields; } - private MutateCampaignGroupResult( + private MutateAdParameterResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -74,22 +74,22 @@ private MutateCampaignGroupResult( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.googleads.v0.services.CampaignGroupServiceProto.internal_static_google_ads_googleads_v0_services_MutateCampaignGroupResult_descriptor; + return com.google.ads.googleads.v0.services.AdParameterServiceProto.internal_static_google_ads_googleads_v0_services_MutateAdParameterResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.googleads.v0.services.CampaignGroupServiceProto.internal_static_google_ads_googleads_v0_services_MutateCampaignGroupResult_fieldAccessorTable + return com.google.ads.googleads.v0.services.AdParameterServiceProto.internal_static_google_ads_googleads_v0_services_MutateAdParameterResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.ads.googleads.v0.services.MutateCampaignGroupResult.class, com.google.ads.googleads.v0.services.MutateCampaignGroupResult.Builder.class); + com.google.ads.googleads.v0.services.MutateAdParameterResult.class, com.google.ads.googleads.v0.services.MutateAdParameterResult.Builder.class); } public static final int RESOURCE_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object resourceName_; /** *
-   * Returned for successful operations.
+   * The resource name returned for successful operations.
    * 
* * string resource_name = 1; @@ -108,7 +108,7 @@ public java.lang.String getResourceName() { } /** *
-   * Returned for successful operations.
+   * The resource name returned for successful operations.
    * 
* * string resource_name = 1; @@ -166,10 +166,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.ads.googleads.v0.services.MutateCampaignGroupResult)) { + if (!(obj instanceof com.google.ads.googleads.v0.services.MutateAdParameterResult)) { return super.equals(obj); } - com.google.ads.googleads.v0.services.MutateCampaignGroupResult other = (com.google.ads.googleads.v0.services.MutateCampaignGroupResult) obj; + com.google.ads.googleads.v0.services.MutateAdParameterResult other = (com.google.ads.googleads.v0.services.MutateAdParameterResult) obj; boolean result = true; result = result && getResourceName() @@ -192,69 +192,69 @@ public int hashCode() { return hash; } - public static com.google.ads.googleads.v0.services.MutateCampaignGroupResult parseFrom( + public static com.google.ads.googleads.v0.services.MutateAdParameterResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.googleads.v0.services.MutateCampaignGroupResult parseFrom( + public static com.google.ads.googleads.v0.services.MutateAdParameterResult parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.googleads.v0.services.MutateCampaignGroupResult parseFrom( + public static com.google.ads.googleads.v0.services.MutateAdParameterResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.googleads.v0.services.MutateCampaignGroupResult parseFrom( + public static com.google.ads.googleads.v0.services.MutateAdParameterResult 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.ads.googleads.v0.services.MutateCampaignGroupResult parseFrom(byte[] data) + public static com.google.ads.googleads.v0.services.MutateAdParameterResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.googleads.v0.services.MutateCampaignGroupResult parseFrom( + public static com.google.ads.googleads.v0.services.MutateAdParameterResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.googleads.v0.services.MutateCampaignGroupResult parseFrom(java.io.InputStream input) + public static com.google.ads.googleads.v0.services.MutateAdParameterResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.google.ads.googleads.v0.services.MutateCampaignGroupResult parseFrom( + public static com.google.ads.googleads.v0.services.MutateAdParameterResult 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.ads.googleads.v0.services.MutateCampaignGroupResult parseDelimitedFrom(java.io.InputStream input) + public static com.google.ads.googleads.v0.services.MutateAdParameterResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.google.ads.googleads.v0.services.MutateCampaignGroupResult parseDelimitedFrom( + public static com.google.ads.googleads.v0.services.MutateAdParameterResult 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.ads.googleads.v0.services.MutateCampaignGroupResult parseFrom( + public static com.google.ads.googleads.v0.services.MutateAdParameterResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.google.ads.googleads.v0.services.MutateCampaignGroupResult parseFrom( + public static com.google.ads.googleads.v0.services.MutateAdParameterResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -267,7 +267,7 @@ public static com.google.ads.googleads.v0.services.MutateCampaignGroupResult par public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.ads.googleads.v0.services.MutateCampaignGroupResult prototype) { + public static Builder newBuilder(com.google.ads.googleads.v0.services.MutateAdParameterResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -284,29 +284,29 @@ protected Builder newBuilderForType( } /** *
-   * The result for the campaign group mutate.
+   * The result for the ad parameter mutate.
    * 
* - * Protobuf type {@code google.ads.googleads.v0.services.MutateCampaignGroupResult} + * Protobuf type {@code google.ads.googleads.v0.services.MutateAdParameterResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.services.MutateCampaignGroupResult) - com.google.ads.googleads.v0.services.MutateCampaignGroupResultOrBuilder { + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.services.MutateAdParameterResult) + com.google.ads.googleads.v0.services.MutateAdParameterResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.googleads.v0.services.CampaignGroupServiceProto.internal_static_google_ads_googleads_v0_services_MutateCampaignGroupResult_descriptor; + return com.google.ads.googleads.v0.services.AdParameterServiceProto.internal_static_google_ads_googleads_v0_services_MutateAdParameterResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.googleads.v0.services.CampaignGroupServiceProto.internal_static_google_ads_googleads_v0_services_MutateCampaignGroupResult_fieldAccessorTable + return com.google.ads.googleads.v0.services.AdParameterServiceProto.internal_static_google_ads_googleads_v0_services_MutateAdParameterResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.ads.googleads.v0.services.MutateCampaignGroupResult.class, com.google.ads.googleads.v0.services.MutateCampaignGroupResult.Builder.class); + com.google.ads.googleads.v0.services.MutateAdParameterResult.class, com.google.ads.googleads.v0.services.MutateAdParameterResult.Builder.class); } - // Construct using com.google.ads.googleads.v0.services.MutateCampaignGroupResult.newBuilder() + // Construct using com.google.ads.googleads.v0.services.MutateAdParameterResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -332,17 +332,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.googleads.v0.services.CampaignGroupServiceProto.internal_static_google_ads_googleads_v0_services_MutateCampaignGroupResult_descriptor; + return com.google.ads.googleads.v0.services.AdParameterServiceProto.internal_static_google_ads_googleads_v0_services_MutateAdParameterResult_descriptor; } @java.lang.Override - public com.google.ads.googleads.v0.services.MutateCampaignGroupResult getDefaultInstanceForType() { - return com.google.ads.googleads.v0.services.MutateCampaignGroupResult.getDefaultInstance(); + public com.google.ads.googleads.v0.services.MutateAdParameterResult getDefaultInstanceForType() { + return com.google.ads.googleads.v0.services.MutateAdParameterResult.getDefaultInstance(); } @java.lang.Override - public com.google.ads.googleads.v0.services.MutateCampaignGroupResult build() { - com.google.ads.googleads.v0.services.MutateCampaignGroupResult result = buildPartial(); + public com.google.ads.googleads.v0.services.MutateAdParameterResult build() { + com.google.ads.googleads.v0.services.MutateAdParameterResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -350,8 +350,8 @@ public com.google.ads.googleads.v0.services.MutateCampaignGroupResult build() { } @java.lang.Override - public com.google.ads.googleads.v0.services.MutateCampaignGroupResult buildPartial() { - com.google.ads.googleads.v0.services.MutateCampaignGroupResult result = new com.google.ads.googleads.v0.services.MutateCampaignGroupResult(this); + public com.google.ads.googleads.v0.services.MutateAdParameterResult buildPartial() { + com.google.ads.googleads.v0.services.MutateAdParameterResult result = new com.google.ads.googleads.v0.services.MutateAdParameterResult(this); result.resourceName_ = resourceName_; onBuilt(); return result; @@ -391,16 +391,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.ads.googleads.v0.services.MutateCampaignGroupResult) { - return mergeFrom((com.google.ads.googleads.v0.services.MutateCampaignGroupResult)other); + if (other instanceof com.google.ads.googleads.v0.services.MutateAdParameterResult) { + return mergeFrom((com.google.ads.googleads.v0.services.MutateAdParameterResult)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateCampaignGroupResult other) { - if (other == com.google.ads.googleads.v0.services.MutateCampaignGroupResult.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateAdParameterResult other) { + if (other == com.google.ads.googleads.v0.services.MutateAdParameterResult.getDefaultInstance()) return this; if (!other.getResourceName().isEmpty()) { resourceName_ = other.resourceName_; onChanged(); @@ -420,11 +420,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.ads.googleads.v0.services.MutateCampaignGroupResult parsedMessage = null; + com.google.ads.googleads.v0.services.MutateAdParameterResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.ads.googleads.v0.services.MutateCampaignGroupResult) e.getUnfinishedMessage(); + parsedMessage = (com.google.ads.googleads.v0.services.MutateAdParameterResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -437,7 +437,7 @@ public Builder mergeFrom( private java.lang.Object resourceName_ = ""; /** *
-     * Returned for successful operations.
+     * The resource name returned for successful operations.
      * 
* * string resource_name = 1; @@ -456,7 +456,7 @@ public java.lang.String getResourceName() { } /** *
-     * Returned for successful operations.
+     * The resource name returned for successful operations.
      * 
* * string resource_name = 1; @@ -476,7 +476,7 @@ public java.lang.String getResourceName() { } /** *
-     * Returned for successful operations.
+     * The resource name returned for successful operations.
      * 
* * string resource_name = 1; @@ -493,7 +493,7 @@ public Builder setResourceName( } /** *
-     * Returned for successful operations.
+     * The resource name returned for successful operations.
      * 
* * string resource_name = 1; @@ -506,7 +506,7 @@ public Builder clearResourceName() { } /** *
-     * Returned for successful operations.
+     * The resource name returned for successful operations.
      * 
* * string resource_name = 1; @@ -535,41 +535,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.services.MutateCampaignGroupResult) + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.services.MutateAdParameterResult) } - // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.MutateCampaignGroupResult) - private static final com.google.ads.googleads.v0.services.MutateCampaignGroupResult DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.MutateAdParameterResult) + private static final com.google.ads.googleads.v0.services.MutateAdParameterResult DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.ads.googleads.v0.services.MutateCampaignGroupResult(); + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.services.MutateAdParameterResult(); } - public static com.google.ads.googleads.v0.services.MutateCampaignGroupResult getDefaultInstance() { + public static com.google.ads.googleads.v0.services.MutateAdParameterResult 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 MutateCampaignGroupResult parsePartialFrom( + public MutateAdParameterResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new MutateCampaignGroupResult(input, extensionRegistry); + return new MutateAdParameterResult(input, extensionRegistry); } }; - 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.ads.googleads.v0.services.MutateCampaignGroupResult getDefaultInstanceForType() { + public com.google.ads.googleads.v0.services.MutateAdParameterResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdParameterResultOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdParameterResultOrBuilder.java new file mode 100644 index 0000000000..0d81009c8d --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdParameterResultOrBuilder.java @@ -0,0 +1,27 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/ad_parameter_service.proto + +package com.google.ads.googleads.v0.services; + +public interface MutateAdParameterResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateAdParameterResult) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The resource name returned for successful operations.
+   * 
+ * + * string resource_name = 1; + */ + java.lang.String getResourceName(); + /** + *
+   * The resource name returned for successful operations.
+   * 
+ * + * string resource_name = 1; + */ + com.google.protobuf.ByteString + getResourceNameBytes(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdParametersRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdParametersRequest.java new file mode 100644 index 0000000000..b8fc0116f2 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdParametersRequest.java @@ -0,0 +1,1183 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/ad_parameter_service.proto + +package com.google.ads.googleads.v0.services; + +/** + *
+ * Request message for [AdParameterService.MutateAdParameters][google.ads.googleads.v0.services.AdParameterService.MutateAdParameters]
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.services.MutateAdParametersRequest} + */ +public final class MutateAdParametersRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.services.MutateAdParametersRequest) + MutateAdParametersRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use MutateAdParametersRequest.newBuilder() to construct. + private MutateAdParametersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MutateAdParametersRequest() { + customerId_ = ""; + operations_ = java.util.Collections.emptyList(); + partialFailure_ = false; + validateOnly_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MutateAdParametersRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + customerId_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + operations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + operations_.add( + input.readMessage(com.google.ads.googleads.v0.services.AdParameterOperation.parser(), extensionRegistry)); + break; + } + case 24: { + + partialFailure_ = input.readBool(); + break; + } + case 32: { + + validateOnly_ = input.readBool(); + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + operations_ = java.util.Collections.unmodifiableList(operations_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.services.AdParameterServiceProto.internal_static_google_ads_googleads_v0_services_MutateAdParametersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.services.AdParameterServiceProto.internal_static_google_ads_googleads_v0_services_MutateAdParametersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.services.MutateAdParametersRequest.class, com.google.ads.googleads.v0.services.MutateAdParametersRequest.Builder.class); + } + + private int bitField0_; + public static final int CUSTOMER_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object customerId_; + /** + *
+   * The ID of the customer whose ad parameters are being modified.
+   * 
+ * + * string customer_id = 1; + */ + public java.lang.String getCustomerId() { + java.lang.Object ref = customerId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customerId_ = s; + return s; + } + } + /** + *
+   * The ID of the customer whose ad parameters are being modified.
+   * 
+ * + * string customer_id = 1; + */ + public com.google.protobuf.ByteString + getCustomerIdBytes() { + java.lang.Object ref = customerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + customerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPERATIONS_FIELD_NUMBER = 2; + private java.util.List operations_; + /** + *
+   * The list of operations to perform on individual ad parameters.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.AdParameterOperation operations = 2; + */ + public java.util.List getOperationsList() { + return operations_; + } + /** + *
+   * The list of operations to perform on individual ad parameters.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.AdParameterOperation operations = 2; + */ + public java.util.List + getOperationsOrBuilderList() { + return operations_; + } + /** + *
+   * The list of operations to perform on individual ad parameters.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.AdParameterOperation operations = 2; + */ + public int getOperationsCount() { + return operations_.size(); + } + /** + *
+   * The list of operations to perform on individual ad parameters.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.AdParameterOperation operations = 2; + */ + public com.google.ads.googleads.v0.services.AdParameterOperation getOperations(int index) { + return operations_.get(index); + } + /** + *
+   * The list of operations to perform on individual ad parameters.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.AdParameterOperation operations = 2; + */ + public com.google.ads.googleads.v0.services.AdParameterOperationOrBuilder getOperationsOrBuilder( + int index) { + return operations_.get(index); + } + + public static final int PARTIAL_FAILURE_FIELD_NUMBER = 3; + private boolean partialFailure_; + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_; + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getCustomerIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, customerId_); + } + for (int i = 0; i < operations_.size(); i++) { + output.writeMessage(2, operations_.get(i)); + } + if (partialFailure_ != false) { + output.writeBool(3, partialFailure_); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getCustomerIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, customerId_); + } + for (int i = 0; i < operations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, operations_.get(i)); + } + if (partialFailure_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, partialFailure_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); + } + size += unknownFields.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.ads.googleads.v0.services.MutateAdParametersRequest)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.services.MutateAdParametersRequest other = (com.google.ads.googleads.v0.services.MutateAdParametersRequest) obj; + + boolean result = true; + result = result && getCustomerId() + .equals(other.getCustomerId()); + result = result && getOperationsList() + .equals(other.getOperationsList()); + result = result && (getPartialFailure() + == other.getPartialFailure()); + result = result && (getValidateOnly() + == other.getValidateOnly()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CUSTOMER_ID_FIELD_NUMBER; + hash = (53 * hash) + getCustomerId().hashCode(); + if (getOperationsCount() > 0) { + hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; + hash = (53 * hash) + getOperationsList().hashCode(); + } + hash = (37 * hash) + PARTIAL_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPartialFailure()); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.services.MutateAdParametersRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.MutateAdParametersRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.services.MutateAdParametersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.MutateAdParametersRequest 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.ads.googleads.v0.services.MutateAdParametersRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.MutateAdParametersRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.services.MutateAdParametersRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.MutateAdParametersRequest 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.ads.googleads.v0.services.MutateAdParametersRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.MutateAdParametersRequest 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.ads.googleads.v0.services.MutateAdParametersRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.MutateAdParametersRequest 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.ads.googleads.v0.services.MutateAdParametersRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request message for [AdParameterService.MutateAdParameters][google.ads.googleads.v0.services.AdParameterService.MutateAdParameters]
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.services.MutateAdParametersRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.services.MutateAdParametersRequest) + com.google.ads.googleads.v0.services.MutateAdParametersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.services.AdParameterServiceProto.internal_static_google_ads_googleads_v0_services_MutateAdParametersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.services.AdParameterServiceProto.internal_static_google_ads_googleads_v0_services_MutateAdParametersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.services.MutateAdParametersRequest.class, com.google.ads.googleads.v0.services.MutateAdParametersRequest.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.services.MutateAdParametersRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getOperationsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + customerId_ = ""; + + if (operationsBuilder_ == null) { + operations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + operationsBuilder_.clear(); + } + partialFailure_ = false; + + validateOnly_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.services.AdParameterServiceProto.internal_static_google_ads_googleads_v0_services_MutateAdParametersRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.MutateAdParametersRequest getDefaultInstanceForType() { + return com.google.ads.googleads.v0.services.MutateAdParametersRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.MutateAdParametersRequest build() { + com.google.ads.googleads.v0.services.MutateAdParametersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.MutateAdParametersRequest buildPartial() { + com.google.ads.googleads.v0.services.MutateAdParametersRequest result = new com.google.ads.googleads.v0.services.MutateAdParametersRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.customerId_ = customerId_; + if (operationsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + operations_ = java.util.Collections.unmodifiableList(operations_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.operations_ = operations_; + } else { + result.operations_ = operationsBuilder_.build(); + } + result.partialFailure_ = partialFailure_; + result.validateOnly_ = validateOnly_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.services.MutateAdParametersRequest) { + return mergeFrom((com.google.ads.googleads.v0.services.MutateAdParametersRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateAdParametersRequest other) { + if (other == com.google.ads.googleads.v0.services.MutateAdParametersRequest.getDefaultInstance()) return this; + if (!other.getCustomerId().isEmpty()) { + customerId_ = other.customerId_; + onChanged(); + } + if (operationsBuilder_ == null) { + if (!other.operations_.isEmpty()) { + if (operations_.isEmpty()) { + operations_ = other.operations_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureOperationsIsMutable(); + operations_.addAll(other.operations_); + } + onChanged(); + } + } else { + if (!other.operations_.isEmpty()) { + if (operationsBuilder_.isEmpty()) { + operationsBuilder_.dispose(); + operationsBuilder_ = null; + operations_ = other.operations_; + bitField0_ = (bitField0_ & ~0x00000002); + operationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOperationsFieldBuilder() : null; + } else { + operationsBuilder_.addAllMessages(other.operations_); + } + } + } + if (other.getPartialFailure() != false) { + setPartialFailure(other.getPartialFailure()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.services.MutateAdParametersRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.services.MutateAdParametersRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object customerId_ = ""; + /** + *
+     * The ID of the customer whose ad parameters are being modified.
+     * 
+ * + * string customer_id = 1; + */ + public java.lang.String getCustomerId() { + java.lang.Object ref = customerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The ID of the customer whose ad parameters are being modified.
+     * 
+ * + * string customer_id = 1; + */ + public com.google.protobuf.ByteString + getCustomerIdBytes() { + java.lang.Object ref = customerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + customerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The ID of the customer whose ad parameters are being modified.
+     * 
+ * + * string customer_id = 1; + */ + public Builder setCustomerId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + customerId_ = value; + onChanged(); + return this; + } + /** + *
+     * The ID of the customer whose ad parameters are being modified.
+     * 
+ * + * string customer_id = 1; + */ + public Builder clearCustomerId() { + + customerId_ = getDefaultInstance().getCustomerId(); + onChanged(); + return this; + } + /** + *
+     * The ID of the customer whose ad parameters are being modified.
+     * 
+ * + * string customer_id = 1; + */ + public Builder setCustomerIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + customerId_ = value; + onChanged(); + return this; + } + + private java.util.List operations_ = + java.util.Collections.emptyList(); + private void ensureOperationsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + operations_ = new java.util.ArrayList(operations_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.services.AdParameterOperation, com.google.ads.googleads.v0.services.AdParameterOperation.Builder, com.google.ads.googleads.v0.services.AdParameterOperationOrBuilder> operationsBuilder_; + + /** + *
+     * The list of operations to perform on individual ad parameters.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.AdParameterOperation operations = 2; + */ + public java.util.List getOperationsList() { + if (operationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(operations_); + } else { + return operationsBuilder_.getMessageList(); + } + } + /** + *
+     * The list of operations to perform on individual ad parameters.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.AdParameterOperation operations = 2; + */ + public int getOperationsCount() { + if (operationsBuilder_ == null) { + return operations_.size(); + } else { + return operationsBuilder_.getCount(); + } + } + /** + *
+     * The list of operations to perform on individual ad parameters.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.AdParameterOperation operations = 2; + */ + public com.google.ads.googleads.v0.services.AdParameterOperation getOperations(int index) { + if (operationsBuilder_ == null) { + return operations_.get(index); + } else { + return operationsBuilder_.getMessage(index); + } + } + /** + *
+     * The list of operations to perform on individual ad parameters.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.AdParameterOperation operations = 2; + */ + public Builder setOperations( + int index, com.google.ads.googleads.v0.services.AdParameterOperation value) { + if (operationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOperationsIsMutable(); + operations_.set(index, value); + onChanged(); + } else { + operationsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The list of operations to perform on individual ad parameters.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.AdParameterOperation operations = 2; + */ + public Builder setOperations( + int index, com.google.ads.googleads.v0.services.AdParameterOperation.Builder builderForValue) { + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + operations_.set(index, builderForValue.build()); + onChanged(); + } else { + operationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The list of operations to perform on individual ad parameters.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.AdParameterOperation operations = 2; + */ + public Builder addOperations(com.google.ads.googleads.v0.services.AdParameterOperation value) { + if (operationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOperationsIsMutable(); + operations_.add(value); + onChanged(); + } else { + operationsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The list of operations to perform on individual ad parameters.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.AdParameterOperation operations = 2; + */ + public Builder addOperations( + int index, com.google.ads.googleads.v0.services.AdParameterOperation value) { + if (operationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOperationsIsMutable(); + operations_.add(index, value); + onChanged(); + } else { + operationsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The list of operations to perform on individual ad parameters.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.AdParameterOperation operations = 2; + */ + public Builder addOperations( + com.google.ads.googleads.v0.services.AdParameterOperation.Builder builderForValue) { + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + operations_.add(builderForValue.build()); + onChanged(); + } else { + operationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The list of operations to perform on individual ad parameters.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.AdParameterOperation operations = 2; + */ + public Builder addOperations( + int index, com.google.ads.googleads.v0.services.AdParameterOperation.Builder builderForValue) { + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + operations_.add(index, builderForValue.build()); + onChanged(); + } else { + operationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The list of operations to perform on individual ad parameters.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.AdParameterOperation operations = 2; + */ + public Builder addAllOperations( + java.lang.Iterable values) { + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, operations_); + onChanged(); + } else { + operationsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The list of operations to perform on individual ad parameters.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.AdParameterOperation operations = 2; + */ + public Builder clearOperations() { + if (operationsBuilder_ == null) { + operations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + operationsBuilder_.clear(); + } + return this; + } + /** + *
+     * The list of operations to perform on individual ad parameters.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.AdParameterOperation operations = 2; + */ + public Builder removeOperations(int index) { + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + operations_.remove(index); + onChanged(); + } else { + operationsBuilder_.remove(index); + } + return this; + } + /** + *
+     * The list of operations to perform on individual ad parameters.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.AdParameterOperation operations = 2; + */ + public com.google.ads.googleads.v0.services.AdParameterOperation.Builder getOperationsBuilder( + int index) { + return getOperationsFieldBuilder().getBuilder(index); + } + /** + *
+     * The list of operations to perform on individual ad parameters.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.AdParameterOperation operations = 2; + */ + public com.google.ads.googleads.v0.services.AdParameterOperationOrBuilder getOperationsOrBuilder( + int index) { + if (operationsBuilder_ == null) { + return operations_.get(index); } else { + return operationsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The list of operations to perform on individual ad parameters.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.AdParameterOperation operations = 2; + */ + public java.util.List + getOperationsOrBuilderList() { + if (operationsBuilder_ != null) { + return operationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(operations_); + } + } + /** + *
+     * The list of operations to perform on individual ad parameters.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.AdParameterOperation operations = 2; + */ + public com.google.ads.googleads.v0.services.AdParameterOperation.Builder addOperationsBuilder() { + return getOperationsFieldBuilder().addBuilder( + com.google.ads.googleads.v0.services.AdParameterOperation.getDefaultInstance()); + } + /** + *
+     * The list of operations to perform on individual ad parameters.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.AdParameterOperation operations = 2; + */ + public com.google.ads.googleads.v0.services.AdParameterOperation.Builder addOperationsBuilder( + int index) { + return getOperationsFieldBuilder().addBuilder( + index, com.google.ads.googleads.v0.services.AdParameterOperation.getDefaultInstance()); + } + /** + *
+     * The list of operations to perform on individual ad parameters.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.AdParameterOperation operations = 2; + */ + public java.util.List + getOperationsBuilderList() { + return getOperationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.services.AdParameterOperation, com.google.ads.googleads.v0.services.AdParameterOperation.Builder, com.google.ads.googleads.v0.services.AdParameterOperationOrBuilder> + getOperationsFieldBuilder() { + if (operationsBuilder_ == null) { + operationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.services.AdParameterOperation, com.google.ads.googleads.v0.services.AdParameterOperation.Builder, com.google.ads.googleads.v0.services.AdParameterOperationOrBuilder>( + operations_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + operations_ = null; + } + return operationsBuilder_; + } + + private boolean partialFailure_ ; + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder setPartialFailure(boolean value) { + + partialFailure_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder clearPartialFailure() { + + partialFailure_ = false; + onChanged(); + return this; + } + + private boolean validateOnly_ ; + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.services.MutateAdParametersRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.MutateAdParametersRequest) + private static final com.google.ads.googleads.v0.services.MutateAdParametersRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.services.MutateAdParametersRequest(); + } + + public static com.google.ads.googleads.v0.services.MutateAdParametersRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MutateAdParametersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MutateAdParametersRequest(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.services.MutateAdParametersRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdParametersRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdParametersRequestOrBuilder.java new file mode 100644 index 0000000000..ff124f6fca --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdParametersRequestOrBuilder.java @@ -0,0 +1,93 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/ad_parameter_service.proto + +package com.google.ads.googleads.v0.services; + +public interface MutateAdParametersRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateAdParametersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The ID of the customer whose ad parameters are being modified.
+   * 
+ * + * string customer_id = 1; + */ + java.lang.String getCustomerId(); + /** + *
+   * The ID of the customer whose ad parameters are being modified.
+   * 
+ * + * string customer_id = 1; + */ + com.google.protobuf.ByteString + getCustomerIdBytes(); + + /** + *
+   * The list of operations to perform on individual ad parameters.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.AdParameterOperation operations = 2; + */ + java.util.List + getOperationsList(); + /** + *
+   * The list of operations to perform on individual ad parameters.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.AdParameterOperation operations = 2; + */ + com.google.ads.googleads.v0.services.AdParameterOperation getOperations(int index); + /** + *
+   * The list of operations to perform on individual ad parameters.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.AdParameterOperation operations = 2; + */ + int getOperationsCount(); + /** + *
+   * The list of operations to perform on individual ad parameters.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.AdParameterOperation operations = 2; + */ + java.util.List + getOperationsOrBuilderList(); + /** + *
+   * The list of operations to perform on individual ad parameters.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.AdParameterOperation operations = 2; + */ + com.google.ads.googleads.v0.services.AdParameterOperationOrBuilder getOperationsOrBuilder( + int index); + + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + boolean getPartialFailure(); + + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + boolean getValidateOnly(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdParametersResponse.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdParametersResponse.java new file mode 100644 index 0000000000..fa1b79d264 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdParametersResponse.java @@ -0,0 +1,1127 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/ad_parameter_service.proto + +package com.google.ads.googleads.v0.services; + +/** + *
+ * Response message for an ad parameter mutate.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.services.MutateAdParametersResponse} + */ +public final class MutateAdParametersResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.services.MutateAdParametersResponse) + MutateAdParametersResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use MutateAdParametersResponse.newBuilder() to construct. + private MutateAdParametersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MutateAdParametersResponse() { + results_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MutateAdParametersResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + results_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + results_.add( + input.readMessage(com.google.ads.googleads.v0.services.MutateAdParameterResult.parser(), extensionRegistry)); + break; + } + case 26: { + com.google.rpc.Status.Builder subBuilder = null; + if (partialFailureError_ != null) { + subBuilder = partialFailureError_.toBuilder(); + } + partialFailureError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(partialFailureError_); + partialFailureError_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + results_ = java.util.Collections.unmodifiableList(results_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.services.AdParameterServiceProto.internal_static_google_ads_googleads_v0_services_MutateAdParametersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.services.AdParameterServiceProto.internal_static_google_ads_googleads_v0_services_MutateAdParametersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.services.MutateAdParametersResponse.class, com.google.ads.googleads.v0.services.MutateAdParametersResponse.Builder.class); + } + + private int bitField0_; + public static final int PARTIAL_FAILURE_ERROR_FIELD_NUMBER = 3; + private com.google.rpc.Status partialFailureError_; + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureError_ != null; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + return getPartialFailureError(); + } + + public static final int RESULTS_FIELD_NUMBER = 2; + private java.util.List results_; + /** + *
+   * All results for the mutate.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.MutateAdParameterResult results = 2; + */ + public java.util.List getResultsList() { + return results_; + } + /** + *
+   * All results for the mutate.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.MutateAdParameterResult results = 2; + */ + public java.util.List + getResultsOrBuilderList() { + return results_; + } + /** + *
+   * All results for the mutate.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.MutateAdParameterResult results = 2; + */ + public int getResultsCount() { + return results_.size(); + } + /** + *
+   * All results for the mutate.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.MutateAdParameterResult results = 2; + */ + public com.google.ads.googleads.v0.services.MutateAdParameterResult getResults(int index) { + return results_.get(index); + } + /** + *
+   * All results for the mutate.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.MutateAdParameterResult results = 2; + */ + public com.google.ads.googleads.v0.services.MutateAdParameterResultOrBuilder getResultsOrBuilder( + int index) { + return results_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < results_.size(); i++) { + output.writeMessage(2, results_.get(i)); + } + if (partialFailureError_ != null) { + output.writeMessage(3, getPartialFailureError()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < results_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, results_.get(i)); + } + if (partialFailureError_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPartialFailureError()); + } + size += unknownFields.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.ads.googleads.v0.services.MutateAdParametersResponse)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.services.MutateAdParametersResponse other = (com.google.ads.googleads.v0.services.MutateAdParametersResponse) obj; + + boolean result = true; + result = result && (hasPartialFailureError() == other.hasPartialFailureError()); + if (hasPartialFailureError()) { + result = result && getPartialFailureError() + .equals(other.getPartialFailureError()); + } + result = result && getResultsList() + .equals(other.getResultsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPartialFailureError()) { + hash = (37 * hash) + PARTIAL_FAILURE_ERROR_FIELD_NUMBER; + hash = (53 * hash) + getPartialFailureError().hashCode(); + } + if (getResultsCount() > 0) { + hash = (37 * hash) + RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getResultsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.services.MutateAdParametersResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.MutateAdParametersResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.services.MutateAdParametersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.MutateAdParametersResponse 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.ads.googleads.v0.services.MutateAdParametersResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.MutateAdParametersResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.services.MutateAdParametersResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.MutateAdParametersResponse 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.ads.googleads.v0.services.MutateAdParametersResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.MutateAdParametersResponse 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.ads.googleads.v0.services.MutateAdParametersResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.MutateAdParametersResponse 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.ads.googleads.v0.services.MutateAdParametersResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response message for an ad parameter mutate.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.services.MutateAdParametersResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.services.MutateAdParametersResponse) + com.google.ads.googleads.v0.services.MutateAdParametersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.services.AdParameterServiceProto.internal_static_google_ads_googleads_v0_services_MutateAdParametersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.services.AdParameterServiceProto.internal_static_google_ads_googleads_v0_services_MutateAdParametersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.services.MutateAdParametersResponse.class, com.google.ads.googleads.v0.services.MutateAdParametersResponse.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.services.MutateAdParametersResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getResultsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } + if (resultsBuilder_ == null) { + results_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + resultsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.services.AdParameterServiceProto.internal_static_google_ads_googleads_v0_services_MutateAdParametersResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.MutateAdParametersResponse getDefaultInstanceForType() { + return com.google.ads.googleads.v0.services.MutateAdParametersResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.MutateAdParametersResponse build() { + com.google.ads.googleads.v0.services.MutateAdParametersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.MutateAdParametersResponse buildPartial() { + com.google.ads.googleads.v0.services.MutateAdParametersResponse result = new com.google.ads.googleads.v0.services.MutateAdParametersResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (partialFailureErrorBuilder_ == null) { + result.partialFailureError_ = partialFailureError_; + } else { + result.partialFailureError_ = partialFailureErrorBuilder_.build(); + } + if (resultsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + results_ = java.util.Collections.unmodifiableList(results_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.results_ = results_; + } else { + result.results_ = resultsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.services.MutateAdParametersResponse) { + return mergeFrom((com.google.ads.googleads.v0.services.MutateAdParametersResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateAdParametersResponse other) { + if (other == com.google.ads.googleads.v0.services.MutateAdParametersResponse.getDefaultInstance()) return this; + if (other.hasPartialFailureError()) { + mergePartialFailureError(other.getPartialFailureError()); + } + if (resultsBuilder_ == null) { + if (!other.results_.isEmpty()) { + if (results_.isEmpty()) { + results_ = other.results_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureResultsIsMutable(); + results_.addAll(other.results_); + } + onChanged(); + } + } else { + if (!other.results_.isEmpty()) { + if (resultsBuilder_.isEmpty()) { + resultsBuilder_.dispose(); + resultsBuilder_ = null; + results_ = other.results_; + bitField0_ = (bitField0_ & ~0x00000002); + resultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResultsFieldBuilder() : null; + } else { + resultsBuilder_.addAllMessages(other.results_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.services.MutateAdParametersResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.services.MutateAdParametersResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.rpc.Status partialFailureError_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> partialFailureErrorBuilder_; + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureErrorBuilder_ != null || partialFailureError_ != null; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } else { + return partialFailureErrorBuilder_.getMessage(); + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partialFailureError_ = value; + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError( + com.google.rpc.Status.Builder builderForValue) { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = builderForValue.build(); + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder mergePartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (partialFailureError_ != null) { + partialFailureError_ = + com.google.rpc.Status.newBuilder(partialFailureError_).mergeFrom(value).buildPartial(); + } else { + partialFailureError_ = value; + } + onChanged(); + } else { + partialFailureErrorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder clearPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + onChanged(); + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status.Builder getPartialFailureErrorBuilder() { + + onChanged(); + return getPartialFailureErrorFieldBuilder().getBuilder(); + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + if (partialFailureErrorBuilder_ != null) { + return partialFailureErrorBuilder_.getMessageOrBuilder(); + } else { + return partialFailureError_ == null ? + com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getPartialFailureErrorFieldBuilder() { + if (partialFailureErrorBuilder_ == null) { + partialFailureErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getPartialFailureError(), + getParentForChildren(), + isClean()); + partialFailureError_ = null; + } + return partialFailureErrorBuilder_; + } + + private java.util.List results_ = + java.util.Collections.emptyList(); + private void ensureResultsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + results_ = new java.util.ArrayList(results_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.services.MutateAdParameterResult, com.google.ads.googleads.v0.services.MutateAdParameterResult.Builder, com.google.ads.googleads.v0.services.MutateAdParameterResultOrBuilder> resultsBuilder_; + + /** + *
+     * All results for the mutate.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.MutateAdParameterResult results = 2; + */ + public java.util.List getResultsList() { + if (resultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(results_); + } else { + return resultsBuilder_.getMessageList(); + } + } + /** + *
+     * All results for the mutate.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.MutateAdParameterResult results = 2; + */ + public int getResultsCount() { + if (resultsBuilder_ == null) { + return results_.size(); + } else { + return resultsBuilder_.getCount(); + } + } + /** + *
+     * All results for the mutate.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.MutateAdParameterResult results = 2; + */ + public com.google.ads.googleads.v0.services.MutateAdParameterResult getResults(int index) { + if (resultsBuilder_ == null) { + return results_.get(index); + } else { + return resultsBuilder_.getMessage(index); + } + } + /** + *
+     * All results for the mutate.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.MutateAdParameterResult results = 2; + */ + public Builder setResults( + int index, com.google.ads.googleads.v0.services.MutateAdParameterResult value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.set(index, value); + onChanged(); + } else { + resultsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * All results for the mutate.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.MutateAdParameterResult results = 2; + */ + public Builder setResults( + int index, com.google.ads.googleads.v0.services.MutateAdParameterResult.Builder builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.set(index, builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * All results for the mutate.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.MutateAdParameterResult results = 2; + */ + public Builder addResults(com.google.ads.googleads.v0.services.MutateAdParameterResult value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.add(value); + onChanged(); + } else { + resultsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * All results for the mutate.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.MutateAdParameterResult results = 2; + */ + public Builder addResults( + int index, com.google.ads.googleads.v0.services.MutateAdParameterResult value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.add(index, value); + onChanged(); + } else { + resultsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * All results for the mutate.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.MutateAdParameterResult results = 2; + */ + public Builder addResults( + com.google.ads.googleads.v0.services.MutateAdParameterResult.Builder builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * All results for the mutate.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.MutateAdParameterResult results = 2; + */ + public Builder addResults( + int index, com.google.ads.googleads.v0.services.MutateAdParameterResult.Builder builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(index, builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * All results for the mutate.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.MutateAdParameterResult results = 2; + */ + public Builder addAllResults( + java.lang.Iterable values) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, results_); + onChanged(); + } else { + resultsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * All results for the mutate.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.MutateAdParameterResult results = 2; + */ + public Builder clearResults() { + if (resultsBuilder_ == null) { + results_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + resultsBuilder_.clear(); + } + return this; + } + /** + *
+     * All results for the mutate.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.MutateAdParameterResult results = 2; + */ + public Builder removeResults(int index) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.remove(index); + onChanged(); + } else { + resultsBuilder_.remove(index); + } + return this; + } + /** + *
+     * All results for the mutate.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.MutateAdParameterResult results = 2; + */ + public com.google.ads.googleads.v0.services.MutateAdParameterResult.Builder getResultsBuilder( + int index) { + return getResultsFieldBuilder().getBuilder(index); + } + /** + *
+     * All results for the mutate.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.MutateAdParameterResult results = 2; + */ + public com.google.ads.googleads.v0.services.MutateAdParameterResultOrBuilder getResultsOrBuilder( + int index) { + if (resultsBuilder_ == null) { + return results_.get(index); } else { + return resultsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * All results for the mutate.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.MutateAdParameterResult results = 2; + */ + public java.util.List + getResultsOrBuilderList() { + if (resultsBuilder_ != null) { + return resultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(results_); + } + } + /** + *
+     * All results for the mutate.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.MutateAdParameterResult results = 2; + */ + public com.google.ads.googleads.v0.services.MutateAdParameterResult.Builder addResultsBuilder() { + return getResultsFieldBuilder().addBuilder( + com.google.ads.googleads.v0.services.MutateAdParameterResult.getDefaultInstance()); + } + /** + *
+     * All results for the mutate.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.MutateAdParameterResult results = 2; + */ + public com.google.ads.googleads.v0.services.MutateAdParameterResult.Builder addResultsBuilder( + int index) { + return getResultsFieldBuilder().addBuilder( + index, com.google.ads.googleads.v0.services.MutateAdParameterResult.getDefaultInstance()); + } + /** + *
+     * All results for the mutate.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.MutateAdParameterResult results = 2; + */ + public java.util.List + getResultsBuilderList() { + return getResultsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.services.MutateAdParameterResult, com.google.ads.googleads.v0.services.MutateAdParameterResult.Builder, com.google.ads.googleads.v0.services.MutateAdParameterResultOrBuilder> + getResultsFieldBuilder() { + if (resultsBuilder_ == null) { + resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.services.MutateAdParameterResult, com.google.ads.googleads.v0.services.MutateAdParameterResult.Builder, com.google.ads.googleads.v0.services.MutateAdParameterResultOrBuilder>( + results_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + results_ = null; + } + return resultsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.services.MutateAdParametersResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.MutateAdParametersResponse) + private static final com.google.ads.googleads.v0.services.MutateAdParametersResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.services.MutateAdParametersResponse(); + } + + public static com.google.ads.googleads.v0.services.MutateAdParametersResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MutateAdParametersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MutateAdParametersResponse(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.services.MutateAdParametersResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdParametersResponseOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdParametersResponseOrBuilder.java new file mode 100644 index 0000000000..1443ff98f4 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateAdParametersResponseOrBuilder.java @@ -0,0 +1,87 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/ad_parameter_service.proto + +package com.google.ads.googleads.v0.services; + +public interface MutateAdParametersResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateAdParametersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + boolean hasPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.Status getPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder(); + + /** + *
+   * All results for the mutate.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.MutateAdParameterResult results = 2; + */ + java.util.List + getResultsList(); + /** + *
+   * All results for the mutate.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.MutateAdParameterResult results = 2; + */ + com.google.ads.googleads.v0.services.MutateAdParameterResult getResults(int index); + /** + *
+   * All results for the mutate.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.MutateAdParameterResult results = 2; + */ + int getResultsCount(); + /** + *
+   * All results for the mutate.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.MutateAdParameterResult results = 2; + */ + java.util.List + getResultsOrBuilderList(); + /** + *
+   * All results for the mutate.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.MutateAdParameterResult results = 2; + */ + com.google.ads.googleads.v0.services.MutateAdParameterResultOrBuilder getResultsOrBuilder( + int index); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateBiddingStrategiesRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateBiddingStrategiesRequest.java index 7554701b86..9851b52c62 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateBiddingStrategiesRequest.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateBiddingStrategiesRequest.java @@ -22,6 +22,8 @@ private MutateBiddingStrategiesRequest(com.google.protobuf.GeneratedMessageV3.Bu private MutateBiddingStrategiesRequest() { customerId_ = ""; operations_ = java.util.Collections.emptyList(); + partialFailure_ = false; + validateOnly_ = false; } @java.lang.Override @@ -63,6 +65,16 @@ private MutateBiddingStrategiesRequest( input.readMessage(com.google.ads.googleads.v0.services.BiddingStrategyOperation.parser(), extensionRegistry)); break; } + case 24: { + + partialFailure_ = input.readBool(); + break; + } + case 32: { + + validateOnly_ = input.readBool(); + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -196,6 +208,36 @@ public com.google.ads.googleads.v0.services.BiddingStrategyOperationOrBuilder ge return operations_.get(index); } + public static final int PARTIAL_FAILURE_FIELD_NUMBER = 3; + private boolean partialFailure_; + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_; + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -216,6 +258,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < operations_.size(); i++) { output.writeMessage(2, operations_.get(i)); } + if (partialFailure_ != false) { + output.writeBool(3, partialFailure_); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } unknownFields.writeTo(output); } @@ -232,6 +280,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, operations_.get(i)); } + if (partialFailure_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, partialFailure_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -252,6 +308,10 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getCustomerId()); result = result && getOperationsList() .equals(other.getOperationsList()); + result = result && (getPartialFailure() + == other.getPartialFailure()); + result = result && (getValidateOnly() + == other.getValidateOnly()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -269,6 +329,12 @@ public int hashCode() { hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + getOperationsList().hashCode(); } + hash = (37 * hash) + PARTIAL_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPartialFailure()); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -415,6 +481,10 @@ public Builder clear() { } else { operationsBuilder_.clear(); } + partialFailure_ = false; + + validateOnly_ = false; + return this; } @@ -453,6 +523,8 @@ public com.google.ads.googleads.v0.services.MutateBiddingStrategiesRequest build } else { result.operations_ = operationsBuilder_.build(); } + result.partialFailure_ = partialFailure_; + result.validateOnly_ = validateOnly_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -532,6 +604,12 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateBiddingStrat } } } + if (other.getPartialFailure() != false) { + setPartialFailure(other.getPartialFailure()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -962,6 +1040,94 @@ public com.google.ads.googleads.v0.services.BiddingStrategyOperation.Builder add } return operationsBuilder_; } + + private boolean partialFailure_ ; + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder setPartialFailure(boolean value) { + + partialFailure_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder clearPartialFailure() { + + partialFailure_ = false; + onChanged(); + return this; + } + + private boolean validateOnly_ ; + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateBiddingStrategiesRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateBiddingStrategiesRequestOrBuilder.java index afbffc8cd4..828a64be9d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateBiddingStrategiesRequestOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateBiddingStrategiesRequestOrBuilder.java @@ -68,4 +68,26 @@ public interface MutateBiddingStrategiesRequestOrBuilder extends */ com.google.ads.googleads.v0.services.BiddingStrategyOperationOrBuilder getOperationsOrBuilder( int index); + + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + boolean getPartialFailure(); + + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + boolean getValidateOnly(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateBiddingStrategiesResponse.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateBiddingStrategiesResponse.java index a8905ed021..03caf5feb5 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateBiddingStrategiesResponse.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateBiddingStrategiesResponse.java @@ -48,14 +48,27 @@ private MutateBiddingStrategiesResponse( done = true; break; case 18: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + mutable_bitField0_ |= 0x00000002; } results_.add( input.readMessage(com.google.ads.googleads.v0.services.MutateBiddingStrategyResult.parser(), extensionRegistry)); break; } + case 26: { + com.google.rpc.Status.Builder subBuilder = null; + if (partialFailureError_ != null) { + subBuilder = partialFailureError_.toBuilder(); + } + partialFailureError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(partialFailureError_); + partialFailureError_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -71,7 +84,7 @@ private MutateBiddingStrategiesResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); } this.unknownFields = unknownFields.build(); @@ -91,6 +104,49 @@ private MutateBiddingStrategiesResponse( com.google.ads.googleads.v0.services.MutateBiddingStrategiesResponse.class, com.google.ads.googleads.v0.services.MutateBiddingStrategiesResponse.Builder.class); } + private int bitField0_; + public static final int PARTIAL_FAILURE_ERROR_FIELD_NUMBER = 3; + private com.google.rpc.Status partialFailureError_; + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureError_ != null; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + return getPartialFailureError(); + } + public static final int RESULTS_FIELD_NUMBER = 2; private java.util.List results_; /** @@ -163,6 +219,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } + if (partialFailureError_ != null) { + output.writeMessage(3, getPartialFailureError()); + } unknownFields.writeTo(output); } @@ -176,6 +235,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, results_.get(i)); } + if (partialFailureError_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPartialFailureError()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -192,6 +255,11 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.googleads.v0.services.MutateBiddingStrategiesResponse other = (com.google.ads.googleads.v0.services.MutateBiddingStrategiesResponse) obj; boolean result = true; + result = result && (hasPartialFailureError() == other.hasPartialFailureError()); + if (hasPartialFailureError()) { + result = result && getPartialFailureError() + .equals(other.getPartialFailureError()); + } result = result && getResultsList() .equals(other.getResultsList()); result = result && unknownFields.equals(other.unknownFields); @@ -205,6 +273,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPartialFailureError()) { + hash = (37 * hash) + PARTIAL_FAILURE_ERROR_FIELD_NUMBER; + hash = (53 * hash) + getPartialFailureError().hashCode(); + } if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); @@ -347,9 +419,15 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { resultsBuilder_.clear(); } @@ -380,15 +458,22 @@ public com.google.ads.googleads.v0.services.MutateBiddingStrategiesResponse buil public com.google.ads.googleads.v0.services.MutateBiddingStrategiesResponse buildPartial() { com.google.ads.googleads.v0.services.MutateBiddingStrategiesResponse result = new com.google.ads.googleads.v0.services.MutateBiddingStrategiesResponse(this); int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (partialFailureErrorBuilder_ == null) { + result.partialFailureError_ = partialFailureError_; + } else { + result.partialFailureError_ = partialFailureErrorBuilder_.build(); + } if (resultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.results_ = results_; } else { result.results_ = resultsBuilder_.build(); } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -437,11 +522,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateBiddingStrategiesResponse other) { if (other == com.google.ads.googleads.v0.services.MutateBiddingStrategiesResponse.getDefaultInstance()) return this; + if (other.hasPartialFailureError()) { + mergePartialFailureError(other.getPartialFailureError()); + } if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResultsIsMutable(); results_.addAll(other.results_); @@ -454,7 +542,7 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateBiddingStrat resultsBuilder_.dispose(); resultsBuilder_ = null; results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); resultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResultsFieldBuilder() : null; @@ -493,12 +581,192 @@ public Builder mergeFrom( } private int bitField0_; + private com.google.rpc.Status partialFailureError_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> partialFailureErrorBuilder_; + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureErrorBuilder_ != null || partialFailureError_ != null; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } else { + return partialFailureErrorBuilder_.getMessage(); + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partialFailureError_ = value; + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError( + com.google.rpc.Status.Builder builderForValue) { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = builderForValue.build(); + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder mergePartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (partialFailureError_ != null) { + partialFailureError_ = + com.google.rpc.Status.newBuilder(partialFailureError_).mergeFrom(value).buildPartial(); + } else { + partialFailureError_ = value; + } + onChanged(); + } else { + partialFailureErrorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder clearPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + onChanged(); + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status.Builder getPartialFailureErrorBuilder() { + + onChanged(); + return getPartialFailureErrorFieldBuilder().getBuilder(); + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + if (partialFailureErrorBuilder_ != null) { + return partialFailureErrorBuilder_.getMessageOrBuilder(); + } else { + return partialFailureError_ == null ? + com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getPartialFailureErrorFieldBuilder() { + if (partialFailureErrorBuilder_ == null) { + partialFailureErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getPartialFailureError(), + getParentForChildren(), + isClean()); + partialFailureError_ = null; + } + return partialFailureErrorBuilder_; + } + private java.util.List results_ = java.util.Collections.emptyList(); private void ensureResultsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(results_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -692,7 +960,7 @@ public Builder addAllResults( public Builder clearResults() { if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { resultsBuilder_.clear(); @@ -797,7 +1065,7 @@ public com.google.ads.googleads.v0.services.MutateBiddingStrategyResult.Builder resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v0.services.MutateBiddingStrategyResult, com.google.ads.googleads.v0.services.MutateBiddingStrategyResult.Builder, com.google.ads.googleads.v0.services.MutateBiddingStrategyResultOrBuilder>( results_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); results_ = null; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateBiddingStrategiesResponseOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateBiddingStrategiesResponseOrBuilder.java index c11921863e..a0656cb555 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateBiddingStrategiesResponseOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateBiddingStrategiesResponseOrBuilder.java @@ -7,6 +7,40 @@ public interface MutateBiddingStrategiesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateBiddingStrategiesResponse) com.google.protobuf.MessageOrBuilder { + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + boolean hasPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.Status getPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder(); + /** *
    * All results for the mutate.
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignBidModifiersRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignBidModifiersRequest.java
index 5206d2715b..56f9d7b8e3 100644
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignBidModifiersRequest.java
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignBidModifiersRequest.java
@@ -22,6 +22,8 @@ private MutateCampaignBidModifiersRequest(com.google.protobuf.GeneratedMessageV3
   private MutateCampaignBidModifiersRequest() {
     customerId_ = "";
     operations_ = java.util.Collections.emptyList();
+    partialFailure_ = false;
+    validateOnly_ = false;
   }
 
   @java.lang.Override
@@ -63,6 +65,16 @@ private MutateCampaignBidModifiersRequest(
                 input.readMessage(com.google.ads.googleads.v0.services.CampaignBidModifierOperation.parser(), extensionRegistry));
             break;
           }
+          case 24: {
+
+            partialFailure_ = input.readBool();
+            break;
+          }
+          case 32: {
+
+            validateOnly_ = input.readBool();
+            break;
+          }
           default: {
             if (!parseUnknownFieldProto3(
                 input, unknownFields, extensionRegistry, tag)) {
@@ -196,6 +208,36 @@ public com.google.ads.googleads.v0.services.CampaignBidModifierOperationOrBuilde
     return operations_.get(index);
   }
 
+  public static final int PARTIAL_FAILURE_FIELD_NUMBER = 3;
+  private boolean partialFailure_;
+  /**
+   * 
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_; + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -216,6 +258,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < operations_.size(); i++) { output.writeMessage(2, operations_.get(i)); } + if (partialFailure_ != false) { + output.writeBool(3, partialFailure_); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } unknownFields.writeTo(output); } @@ -232,6 +280,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, operations_.get(i)); } + if (partialFailure_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, partialFailure_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -252,6 +308,10 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getCustomerId()); result = result && getOperationsList() .equals(other.getOperationsList()); + result = result && (getPartialFailure() + == other.getPartialFailure()); + result = result && (getValidateOnly() + == other.getValidateOnly()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -269,6 +329,12 @@ public int hashCode() { hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + getOperationsList().hashCode(); } + hash = (37 * hash) + PARTIAL_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPartialFailure()); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -415,6 +481,10 @@ public Builder clear() { } else { operationsBuilder_.clear(); } + partialFailure_ = false; + + validateOnly_ = false; + return this; } @@ -453,6 +523,8 @@ public com.google.ads.googleads.v0.services.MutateCampaignBidModifiersRequest bu } else { result.operations_ = operationsBuilder_.build(); } + result.partialFailure_ = partialFailure_; + result.validateOnly_ = validateOnly_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -532,6 +604,12 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateCampaignBidM } } } + if (other.getPartialFailure() != false) { + setPartialFailure(other.getPartialFailure()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -962,6 +1040,94 @@ public com.google.ads.googleads.v0.services.CampaignBidModifierOperation.Builder } return operationsBuilder_; } + + private boolean partialFailure_ ; + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder setPartialFailure(boolean value) { + + partialFailure_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder clearPartialFailure() { + + partialFailure_ = false; + onChanged(); + return this; + } + + private boolean validateOnly_ ; + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignBidModifiersRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignBidModifiersRequestOrBuilder.java index 98b18d748a..9f4310e9af 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignBidModifiersRequestOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignBidModifiersRequestOrBuilder.java @@ -68,4 +68,26 @@ public interface MutateCampaignBidModifiersRequestOrBuilder extends */ com.google.ads.googleads.v0.services.CampaignBidModifierOperationOrBuilder getOperationsOrBuilder( int index); + + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + boolean getPartialFailure(); + + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + boolean getValidateOnly(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignBidModifiersResponse.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignBidModifiersResponse.java index 150339514a..5bd3027991 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignBidModifiersResponse.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignBidModifiersResponse.java @@ -48,14 +48,27 @@ private MutateCampaignBidModifiersResponse( done = true; break; case 18: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + mutable_bitField0_ |= 0x00000002; } results_.add( input.readMessage(com.google.ads.googleads.v0.services.MutateCampaignBidModifierResult.parser(), extensionRegistry)); break; } + case 26: { + com.google.rpc.Status.Builder subBuilder = null; + if (partialFailureError_ != null) { + subBuilder = partialFailureError_.toBuilder(); + } + partialFailureError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(partialFailureError_); + partialFailureError_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -71,7 +84,7 @@ private MutateCampaignBidModifiersResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); } this.unknownFields = unknownFields.build(); @@ -91,6 +104,49 @@ private MutateCampaignBidModifiersResponse( com.google.ads.googleads.v0.services.MutateCampaignBidModifiersResponse.class, com.google.ads.googleads.v0.services.MutateCampaignBidModifiersResponse.Builder.class); } + private int bitField0_; + public static final int PARTIAL_FAILURE_ERROR_FIELD_NUMBER = 3; + private com.google.rpc.Status partialFailureError_; + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureError_ != null; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + return getPartialFailureError(); + } + public static final int RESULTS_FIELD_NUMBER = 2; private java.util.List results_; /** @@ -163,6 +219,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } + if (partialFailureError_ != null) { + output.writeMessage(3, getPartialFailureError()); + } unknownFields.writeTo(output); } @@ -176,6 +235,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, results_.get(i)); } + if (partialFailureError_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPartialFailureError()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -192,6 +255,11 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.googleads.v0.services.MutateCampaignBidModifiersResponse other = (com.google.ads.googleads.v0.services.MutateCampaignBidModifiersResponse) obj; boolean result = true; + result = result && (hasPartialFailureError() == other.hasPartialFailureError()); + if (hasPartialFailureError()) { + result = result && getPartialFailureError() + .equals(other.getPartialFailureError()); + } result = result && getResultsList() .equals(other.getResultsList()); result = result && unknownFields.equals(other.unknownFields); @@ -205,6 +273,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPartialFailureError()) { + hash = (37 * hash) + PARTIAL_FAILURE_ERROR_FIELD_NUMBER; + hash = (53 * hash) + getPartialFailureError().hashCode(); + } if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); @@ -347,9 +419,15 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { resultsBuilder_.clear(); } @@ -380,15 +458,22 @@ public com.google.ads.googleads.v0.services.MutateCampaignBidModifiersResponse b public com.google.ads.googleads.v0.services.MutateCampaignBidModifiersResponse buildPartial() { com.google.ads.googleads.v0.services.MutateCampaignBidModifiersResponse result = new com.google.ads.googleads.v0.services.MutateCampaignBidModifiersResponse(this); int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (partialFailureErrorBuilder_ == null) { + result.partialFailureError_ = partialFailureError_; + } else { + result.partialFailureError_ = partialFailureErrorBuilder_.build(); + } if (resultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.results_ = results_; } else { result.results_ = resultsBuilder_.build(); } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -437,11 +522,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateCampaignBidModifiersResponse other) { if (other == com.google.ads.googleads.v0.services.MutateCampaignBidModifiersResponse.getDefaultInstance()) return this; + if (other.hasPartialFailureError()) { + mergePartialFailureError(other.getPartialFailureError()); + } if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResultsIsMutable(); results_.addAll(other.results_); @@ -454,7 +542,7 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateCampaignBidM resultsBuilder_.dispose(); resultsBuilder_ = null; results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); resultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResultsFieldBuilder() : null; @@ -493,12 +581,192 @@ public Builder mergeFrom( } private int bitField0_; + private com.google.rpc.Status partialFailureError_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> partialFailureErrorBuilder_; + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureErrorBuilder_ != null || partialFailureError_ != null; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } else { + return partialFailureErrorBuilder_.getMessage(); + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partialFailureError_ = value; + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError( + com.google.rpc.Status.Builder builderForValue) { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = builderForValue.build(); + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder mergePartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (partialFailureError_ != null) { + partialFailureError_ = + com.google.rpc.Status.newBuilder(partialFailureError_).mergeFrom(value).buildPartial(); + } else { + partialFailureError_ = value; + } + onChanged(); + } else { + partialFailureErrorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder clearPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + onChanged(); + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status.Builder getPartialFailureErrorBuilder() { + + onChanged(); + return getPartialFailureErrorFieldBuilder().getBuilder(); + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + if (partialFailureErrorBuilder_ != null) { + return partialFailureErrorBuilder_.getMessageOrBuilder(); + } else { + return partialFailureError_ == null ? + com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getPartialFailureErrorFieldBuilder() { + if (partialFailureErrorBuilder_ == null) { + partialFailureErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getPartialFailureError(), + getParentForChildren(), + isClean()); + partialFailureError_ = null; + } + return partialFailureErrorBuilder_; + } + private java.util.List results_ = java.util.Collections.emptyList(); private void ensureResultsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(results_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -692,7 +960,7 @@ public Builder addAllResults( public Builder clearResults() { if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { resultsBuilder_.clear(); @@ -797,7 +1065,7 @@ public com.google.ads.googleads.v0.services.MutateCampaignBidModifierResult.Buil resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v0.services.MutateCampaignBidModifierResult, com.google.ads.googleads.v0.services.MutateCampaignBidModifierResult.Builder, com.google.ads.googleads.v0.services.MutateCampaignBidModifierResultOrBuilder>( results_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); results_ = null; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignBidModifiersResponseOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignBidModifiersResponseOrBuilder.java index 91b9c403c6..39071daa05 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignBidModifiersResponseOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignBidModifiersResponseOrBuilder.java @@ -7,6 +7,40 @@ public interface MutateCampaignBidModifiersResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateCampaignBidModifiersResponse) com.google.protobuf.MessageOrBuilder { + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + boolean hasPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.Status getPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder(); + /** *
    * All results for the mutate.
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignBudgetsRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignBudgetsRequest.java
index 84f82cbd22..8e270299f2 100644
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignBudgetsRequest.java
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignBudgetsRequest.java
@@ -22,6 +22,8 @@ private MutateCampaignBudgetsRequest(com.google.protobuf.GeneratedMessageV3.Buil
   private MutateCampaignBudgetsRequest() {
     customerId_ = "";
     operations_ = java.util.Collections.emptyList();
+    partialFailure_ = false;
+    validateOnly_ = false;
   }
 
   @java.lang.Override
@@ -63,6 +65,16 @@ private MutateCampaignBudgetsRequest(
                 input.readMessage(com.google.ads.googleads.v0.services.CampaignBudgetOperation.parser(), extensionRegistry));
             break;
           }
+          case 24: {
+
+            partialFailure_ = input.readBool();
+            break;
+          }
+          case 32: {
+
+            validateOnly_ = input.readBool();
+            break;
+          }
           default: {
             if (!parseUnknownFieldProto3(
                 input, unknownFields, extensionRegistry, tag)) {
@@ -196,6 +208,36 @@ public com.google.ads.googleads.v0.services.CampaignBudgetOperationOrBuilder get
     return operations_.get(index);
   }
 
+  public static final int PARTIAL_FAILURE_FIELD_NUMBER = 3;
+  private boolean partialFailure_;
+  /**
+   * 
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_; + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -216,6 +258,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < operations_.size(); i++) { output.writeMessage(2, operations_.get(i)); } + if (partialFailure_ != false) { + output.writeBool(3, partialFailure_); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } unknownFields.writeTo(output); } @@ -232,6 +280,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, operations_.get(i)); } + if (partialFailure_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, partialFailure_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -252,6 +308,10 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getCustomerId()); result = result && getOperationsList() .equals(other.getOperationsList()); + result = result && (getPartialFailure() + == other.getPartialFailure()); + result = result && (getValidateOnly() + == other.getValidateOnly()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -269,6 +329,12 @@ public int hashCode() { hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + getOperationsList().hashCode(); } + hash = (37 * hash) + PARTIAL_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPartialFailure()); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -415,6 +481,10 @@ public Builder clear() { } else { operationsBuilder_.clear(); } + partialFailure_ = false; + + validateOnly_ = false; + return this; } @@ -453,6 +523,8 @@ public com.google.ads.googleads.v0.services.MutateCampaignBudgetsRequest buildPa } else { result.operations_ = operationsBuilder_.build(); } + result.partialFailure_ = partialFailure_; + result.validateOnly_ = validateOnly_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -532,6 +604,12 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateCampaignBudg } } } + if (other.getPartialFailure() != false) { + setPartialFailure(other.getPartialFailure()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -962,6 +1040,94 @@ public com.google.ads.googleads.v0.services.CampaignBudgetOperation.Builder addO } return operationsBuilder_; } + + private boolean partialFailure_ ; + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder setPartialFailure(boolean value) { + + partialFailure_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder clearPartialFailure() { + + partialFailure_ = false; + onChanged(); + return this; + } + + private boolean validateOnly_ ; + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignBudgetsRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignBudgetsRequestOrBuilder.java index ce095d67cd..d09098168e 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignBudgetsRequestOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignBudgetsRequestOrBuilder.java @@ -68,4 +68,26 @@ public interface MutateCampaignBudgetsRequestOrBuilder extends */ com.google.ads.googleads.v0.services.CampaignBudgetOperationOrBuilder getOperationsOrBuilder( int index); + + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + boolean getPartialFailure(); + + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + boolean getValidateOnly(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignBudgetsResponse.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignBudgetsResponse.java index 5245edf326..f3e24a20b7 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignBudgetsResponse.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignBudgetsResponse.java @@ -48,14 +48,27 @@ private MutateCampaignBudgetsResponse( done = true; break; case 18: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + mutable_bitField0_ |= 0x00000002; } results_.add( input.readMessage(com.google.ads.googleads.v0.services.MutateCampaignBudgetResult.parser(), extensionRegistry)); break; } + case 26: { + com.google.rpc.Status.Builder subBuilder = null; + if (partialFailureError_ != null) { + subBuilder = partialFailureError_.toBuilder(); + } + partialFailureError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(partialFailureError_); + partialFailureError_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -71,7 +84,7 @@ private MutateCampaignBudgetsResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); } this.unknownFields = unknownFields.build(); @@ -91,6 +104,49 @@ private MutateCampaignBudgetsResponse( com.google.ads.googleads.v0.services.MutateCampaignBudgetsResponse.class, com.google.ads.googleads.v0.services.MutateCampaignBudgetsResponse.Builder.class); } + private int bitField0_; + public static final int PARTIAL_FAILURE_ERROR_FIELD_NUMBER = 3; + private com.google.rpc.Status partialFailureError_; + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureError_ != null; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + return getPartialFailureError(); + } + public static final int RESULTS_FIELD_NUMBER = 2; private java.util.List results_; /** @@ -163,6 +219,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } + if (partialFailureError_ != null) { + output.writeMessage(3, getPartialFailureError()); + } unknownFields.writeTo(output); } @@ -176,6 +235,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, results_.get(i)); } + if (partialFailureError_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPartialFailureError()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -192,6 +255,11 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.googleads.v0.services.MutateCampaignBudgetsResponse other = (com.google.ads.googleads.v0.services.MutateCampaignBudgetsResponse) obj; boolean result = true; + result = result && (hasPartialFailureError() == other.hasPartialFailureError()); + if (hasPartialFailureError()) { + result = result && getPartialFailureError() + .equals(other.getPartialFailureError()); + } result = result && getResultsList() .equals(other.getResultsList()); result = result && unknownFields.equals(other.unknownFields); @@ -205,6 +273,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPartialFailureError()) { + hash = (37 * hash) + PARTIAL_FAILURE_ERROR_FIELD_NUMBER; + hash = (53 * hash) + getPartialFailureError().hashCode(); + } if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); @@ -347,9 +419,15 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { resultsBuilder_.clear(); } @@ -380,15 +458,22 @@ public com.google.ads.googleads.v0.services.MutateCampaignBudgetsResponse build( public com.google.ads.googleads.v0.services.MutateCampaignBudgetsResponse buildPartial() { com.google.ads.googleads.v0.services.MutateCampaignBudgetsResponse result = new com.google.ads.googleads.v0.services.MutateCampaignBudgetsResponse(this); int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (partialFailureErrorBuilder_ == null) { + result.partialFailureError_ = partialFailureError_; + } else { + result.partialFailureError_ = partialFailureErrorBuilder_.build(); + } if (resultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.results_ = results_; } else { result.results_ = resultsBuilder_.build(); } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -437,11 +522,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateCampaignBudgetsResponse other) { if (other == com.google.ads.googleads.v0.services.MutateCampaignBudgetsResponse.getDefaultInstance()) return this; + if (other.hasPartialFailureError()) { + mergePartialFailureError(other.getPartialFailureError()); + } if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResultsIsMutable(); results_.addAll(other.results_); @@ -454,7 +542,7 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateCampaignBudg resultsBuilder_.dispose(); resultsBuilder_ = null; results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); resultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResultsFieldBuilder() : null; @@ -493,12 +581,192 @@ public Builder mergeFrom( } private int bitField0_; + private com.google.rpc.Status partialFailureError_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> partialFailureErrorBuilder_; + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureErrorBuilder_ != null || partialFailureError_ != null; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } else { + return partialFailureErrorBuilder_.getMessage(); + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partialFailureError_ = value; + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError( + com.google.rpc.Status.Builder builderForValue) { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = builderForValue.build(); + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder mergePartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (partialFailureError_ != null) { + partialFailureError_ = + com.google.rpc.Status.newBuilder(partialFailureError_).mergeFrom(value).buildPartial(); + } else { + partialFailureError_ = value; + } + onChanged(); + } else { + partialFailureErrorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder clearPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + onChanged(); + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status.Builder getPartialFailureErrorBuilder() { + + onChanged(); + return getPartialFailureErrorFieldBuilder().getBuilder(); + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + if (partialFailureErrorBuilder_ != null) { + return partialFailureErrorBuilder_.getMessageOrBuilder(); + } else { + return partialFailureError_ == null ? + com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getPartialFailureErrorFieldBuilder() { + if (partialFailureErrorBuilder_ == null) { + partialFailureErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getPartialFailureError(), + getParentForChildren(), + isClean()); + partialFailureError_ = null; + } + return partialFailureErrorBuilder_; + } + private java.util.List results_ = java.util.Collections.emptyList(); private void ensureResultsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(results_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -692,7 +960,7 @@ public Builder addAllResults( public Builder clearResults() { if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { resultsBuilder_.clear(); @@ -797,7 +1065,7 @@ public com.google.ads.googleads.v0.services.MutateCampaignBudgetResult.Builder a resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v0.services.MutateCampaignBudgetResult, com.google.ads.googleads.v0.services.MutateCampaignBudgetResult.Builder, com.google.ads.googleads.v0.services.MutateCampaignBudgetResultOrBuilder>( results_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); results_ = null; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignBudgetsResponseOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignBudgetsResponseOrBuilder.java index b273a24ac9..855ccf107c 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignBudgetsResponseOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignBudgetsResponseOrBuilder.java @@ -7,6 +7,40 @@ public interface MutateCampaignBudgetsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateCampaignBudgetsResponse) com.google.protobuf.MessageOrBuilder { + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + boolean hasPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.Status getPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder(); + /** *
    * All results for the mutate.
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignCriteriaRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignCriteriaRequest.java
index 7eb7c9a2cc..9ff668360f 100644
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignCriteriaRequest.java
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignCriteriaRequest.java
@@ -22,6 +22,8 @@ private MutateCampaignCriteriaRequest(com.google.protobuf.GeneratedMessageV3.Bui
   private MutateCampaignCriteriaRequest() {
     customerId_ = "";
     operations_ = java.util.Collections.emptyList();
+    partialFailure_ = false;
+    validateOnly_ = false;
   }
 
   @java.lang.Override
@@ -63,6 +65,16 @@ private MutateCampaignCriteriaRequest(
                 input.readMessage(com.google.ads.googleads.v0.services.CampaignCriterionOperation.parser(), extensionRegistry));
             break;
           }
+          case 24: {
+
+            partialFailure_ = input.readBool();
+            break;
+          }
+          case 32: {
+
+            validateOnly_ = input.readBool();
+            break;
+          }
           default: {
             if (!parseUnknownFieldProto3(
                 input, unknownFields, extensionRegistry, tag)) {
@@ -196,6 +208,36 @@ public com.google.ads.googleads.v0.services.CampaignCriterionOperationOrBuilder
     return operations_.get(index);
   }
 
+  public static final int PARTIAL_FAILURE_FIELD_NUMBER = 3;
+  private boolean partialFailure_;
+  /**
+   * 
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_; + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -216,6 +258,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < operations_.size(); i++) { output.writeMessage(2, operations_.get(i)); } + if (partialFailure_ != false) { + output.writeBool(3, partialFailure_); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } unknownFields.writeTo(output); } @@ -232,6 +280,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, operations_.get(i)); } + if (partialFailure_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, partialFailure_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -252,6 +308,10 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getCustomerId()); result = result && getOperationsList() .equals(other.getOperationsList()); + result = result && (getPartialFailure() + == other.getPartialFailure()); + result = result && (getValidateOnly() + == other.getValidateOnly()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -269,6 +329,12 @@ public int hashCode() { hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + getOperationsList().hashCode(); } + hash = (37 * hash) + PARTIAL_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPartialFailure()); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -415,6 +481,10 @@ public Builder clear() { } else { operationsBuilder_.clear(); } + partialFailure_ = false; + + validateOnly_ = false; + return this; } @@ -453,6 +523,8 @@ public com.google.ads.googleads.v0.services.MutateCampaignCriteriaRequest buildP } else { result.operations_ = operationsBuilder_.build(); } + result.partialFailure_ = partialFailure_; + result.validateOnly_ = validateOnly_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -532,6 +604,12 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateCampaignCrit } } } + if (other.getPartialFailure() != false) { + setPartialFailure(other.getPartialFailure()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -962,6 +1040,94 @@ public com.google.ads.googleads.v0.services.CampaignCriterionOperation.Builder a } return operationsBuilder_; } + + private boolean partialFailure_ ; + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder setPartialFailure(boolean value) { + + partialFailure_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder clearPartialFailure() { + + partialFailure_ = false; + onChanged(); + return this; + } + + private boolean validateOnly_ ; + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignCriteriaRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignCriteriaRequestOrBuilder.java index 4e996b4332..68c888c846 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignCriteriaRequestOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignCriteriaRequestOrBuilder.java @@ -68,4 +68,26 @@ public interface MutateCampaignCriteriaRequestOrBuilder extends */ com.google.ads.googleads.v0.services.CampaignCriterionOperationOrBuilder getOperationsOrBuilder( int index); + + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + boolean getPartialFailure(); + + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + boolean getValidateOnly(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignCriteriaResponse.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignCriteriaResponse.java index 6eebe8d9dd..e2f2698595 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignCriteriaResponse.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignCriteriaResponse.java @@ -48,14 +48,27 @@ private MutateCampaignCriteriaResponse( done = true; break; case 18: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + mutable_bitField0_ |= 0x00000002; } results_.add( input.readMessage(com.google.ads.googleads.v0.services.MutateCampaignCriterionResult.parser(), extensionRegistry)); break; } + case 26: { + com.google.rpc.Status.Builder subBuilder = null; + if (partialFailureError_ != null) { + subBuilder = partialFailureError_.toBuilder(); + } + partialFailureError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(partialFailureError_); + partialFailureError_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -71,7 +84,7 @@ private MutateCampaignCriteriaResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); } this.unknownFields = unknownFields.build(); @@ -91,6 +104,49 @@ private MutateCampaignCriteriaResponse( com.google.ads.googleads.v0.services.MutateCampaignCriteriaResponse.class, com.google.ads.googleads.v0.services.MutateCampaignCriteriaResponse.Builder.class); } + private int bitField0_; + public static final int PARTIAL_FAILURE_ERROR_FIELD_NUMBER = 3; + private com.google.rpc.Status partialFailureError_; + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureError_ != null; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + return getPartialFailureError(); + } + public static final int RESULTS_FIELD_NUMBER = 2; private java.util.List results_; /** @@ -163,6 +219,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } + if (partialFailureError_ != null) { + output.writeMessage(3, getPartialFailureError()); + } unknownFields.writeTo(output); } @@ -176,6 +235,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, results_.get(i)); } + if (partialFailureError_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPartialFailureError()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -192,6 +255,11 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.googleads.v0.services.MutateCampaignCriteriaResponse other = (com.google.ads.googleads.v0.services.MutateCampaignCriteriaResponse) obj; boolean result = true; + result = result && (hasPartialFailureError() == other.hasPartialFailureError()); + if (hasPartialFailureError()) { + result = result && getPartialFailureError() + .equals(other.getPartialFailureError()); + } result = result && getResultsList() .equals(other.getResultsList()); result = result && unknownFields.equals(other.unknownFields); @@ -205,6 +273,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPartialFailureError()) { + hash = (37 * hash) + PARTIAL_FAILURE_ERROR_FIELD_NUMBER; + hash = (53 * hash) + getPartialFailureError().hashCode(); + } if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); @@ -347,9 +419,15 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { resultsBuilder_.clear(); } @@ -380,15 +458,22 @@ public com.google.ads.googleads.v0.services.MutateCampaignCriteriaResponse build public com.google.ads.googleads.v0.services.MutateCampaignCriteriaResponse buildPartial() { com.google.ads.googleads.v0.services.MutateCampaignCriteriaResponse result = new com.google.ads.googleads.v0.services.MutateCampaignCriteriaResponse(this); int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (partialFailureErrorBuilder_ == null) { + result.partialFailureError_ = partialFailureError_; + } else { + result.partialFailureError_ = partialFailureErrorBuilder_.build(); + } if (resultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.results_ = results_; } else { result.results_ = resultsBuilder_.build(); } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -437,11 +522,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateCampaignCriteriaResponse other) { if (other == com.google.ads.googleads.v0.services.MutateCampaignCriteriaResponse.getDefaultInstance()) return this; + if (other.hasPartialFailureError()) { + mergePartialFailureError(other.getPartialFailureError()); + } if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResultsIsMutable(); results_.addAll(other.results_); @@ -454,7 +542,7 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateCampaignCrit resultsBuilder_.dispose(); resultsBuilder_ = null; results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); resultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResultsFieldBuilder() : null; @@ -493,12 +581,192 @@ public Builder mergeFrom( } private int bitField0_; + private com.google.rpc.Status partialFailureError_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> partialFailureErrorBuilder_; + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureErrorBuilder_ != null || partialFailureError_ != null; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } else { + return partialFailureErrorBuilder_.getMessage(); + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partialFailureError_ = value; + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError( + com.google.rpc.Status.Builder builderForValue) { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = builderForValue.build(); + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder mergePartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (partialFailureError_ != null) { + partialFailureError_ = + com.google.rpc.Status.newBuilder(partialFailureError_).mergeFrom(value).buildPartial(); + } else { + partialFailureError_ = value; + } + onChanged(); + } else { + partialFailureErrorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder clearPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + onChanged(); + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status.Builder getPartialFailureErrorBuilder() { + + onChanged(); + return getPartialFailureErrorFieldBuilder().getBuilder(); + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + if (partialFailureErrorBuilder_ != null) { + return partialFailureErrorBuilder_.getMessageOrBuilder(); + } else { + return partialFailureError_ == null ? + com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getPartialFailureErrorFieldBuilder() { + if (partialFailureErrorBuilder_ == null) { + partialFailureErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getPartialFailureError(), + getParentForChildren(), + isClean()); + partialFailureError_ = null; + } + return partialFailureErrorBuilder_; + } + private java.util.List results_ = java.util.Collections.emptyList(); private void ensureResultsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(results_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -692,7 +960,7 @@ public Builder addAllResults( public Builder clearResults() { if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { resultsBuilder_.clear(); @@ -797,7 +1065,7 @@ public com.google.ads.googleads.v0.services.MutateCampaignCriterionResult.Builde resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v0.services.MutateCampaignCriterionResult, com.google.ads.googleads.v0.services.MutateCampaignCriterionResult.Builder, com.google.ads.googleads.v0.services.MutateCampaignCriterionResultOrBuilder>( results_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); results_ = null; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignCriteriaResponseOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignCriteriaResponseOrBuilder.java index 72c4bbc6a3..bae4a55b1e 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignCriteriaResponseOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignCriteriaResponseOrBuilder.java @@ -7,6 +7,40 @@ public interface MutateCampaignCriteriaResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateCampaignCriteriaResponse) com.google.protobuf.MessageOrBuilder { + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + boolean hasPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.Status getPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder(); + /** *
    * All results for the mutate.
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignFeedsRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignFeedsRequest.java
index 84892ef638..35b96b1d78 100644
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignFeedsRequest.java
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignFeedsRequest.java
@@ -22,6 +22,8 @@ private MutateCampaignFeedsRequest(com.google.protobuf.GeneratedMessageV3.Builde
   private MutateCampaignFeedsRequest() {
     customerId_ = "";
     operations_ = java.util.Collections.emptyList();
+    partialFailure_ = false;
+    validateOnly_ = false;
   }
 
   @java.lang.Override
@@ -63,6 +65,16 @@ private MutateCampaignFeedsRequest(
                 input.readMessage(com.google.ads.googleads.v0.services.CampaignFeedOperation.parser(), extensionRegistry));
             break;
           }
+          case 24: {
+
+            partialFailure_ = input.readBool();
+            break;
+          }
+          case 32: {
+
+            validateOnly_ = input.readBool();
+            break;
+          }
           default: {
             if (!parseUnknownFieldProto3(
                 input, unknownFields, extensionRegistry, tag)) {
@@ -196,6 +208,36 @@ public com.google.ads.googleads.v0.services.CampaignFeedOperationOrBuilder getOp
     return operations_.get(index);
   }
 
+  public static final int PARTIAL_FAILURE_FIELD_NUMBER = 3;
+  private boolean partialFailure_;
+  /**
+   * 
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_; + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -216,6 +258,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < operations_.size(); i++) { output.writeMessage(2, operations_.get(i)); } + if (partialFailure_ != false) { + output.writeBool(3, partialFailure_); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } unknownFields.writeTo(output); } @@ -232,6 +280,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, operations_.get(i)); } + if (partialFailure_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, partialFailure_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -252,6 +308,10 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getCustomerId()); result = result && getOperationsList() .equals(other.getOperationsList()); + result = result && (getPartialFailure() + == other.getPartialFailure()); + result = result && (getValidateOnly() + == other.getValidateOnly()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -269,6 +329,12 @@ public int hashCode() { hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + getOperationsList().hashCode(); } + hash = (37 * hash) + PARTIAL_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPartialFailure()); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -415,6 +481,10 @@ public Builder clear() { } else { operationsBuilder_.clear(); } + partialFailure_ = false; + + validateOnly_ = false; + return this; } @@ -453,6 +523,8 @@ public com.google.ads.googleads.v0.services.MutateCampaignFeedsRequest buildPart } else { result.operations_ = operationsBuilder_.build(); } + result.partialFailure_ = partialFailure_; + result.validateOnly_ = validateOnly_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -532,6 +604,12 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateCampaignFeed } } } + if (other.getPartialFailure() != false) { + setPartialFailure(other.getPartialFailure()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -962,6 +1040,94 @@ public com.google.ads.googleads.v0.services.CampaignFeedOperation.Builder addOpe } return operationsBuilder_; } + + private boolean partialFailure_ ; + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder setPartialFailure(boolean value) { + + partialFailure_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder clearPartialFailure() { + + partialFailure_ = false; + onChanged(); + return this; + } + + private boolean validateOnly_ ; + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignFeedsRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignFeedsRequestOrBuilder.java index 13697374c8..9f81892bc7 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignFeedsRequestOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignFeedsRequestOrBuilder.java @@ -68,4 +68,26 @@ public interface MutateCampaignFeedsRequestOrBuilder extends */ com.google.ads.googleads.v0.services.CampaignFeedOperationOrBuilder getOperationsOrBuilder( int index); + + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + boolean getPartialFailure(); + + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + boolean getValidateOnly(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignFeedsResponse.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignFeedsResponse.java index 5362b0b4c2..361b53b3c3 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignFeedsResponse.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignFeedsResponse.java @@ -48,14 +48,27 @@ private MutateCampaignFeedsResponse( done = true; break; case 18: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + mutable_bitField0_ |= 0x00000002; } results_.add( input.readMessage(com.google.ads.googleads.v0.services.MutateCampaignFeedResult.parser(), extensionRegistry)); break; } + case 26: { + com.google.rpc.Status.Builder subBuilder = null; + if (partialFailureError_ != null) { + subBuilder = partialFailureError_.toBuilder(); + } + partialFailureError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(partialFailureError_); + partialFailureError_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -71,7 +84,7 @@ private MutateCampaignFeedsResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); } this.unknownFields = unknownFields.build(); @@ -91,6 +104,49 @@ private MutateCampaignFeedsResponse( com.google.ads.googleads.v0.services.MutateCampaignFeedsResponse.class, com.google.ads.googleads.v0.services.MutateCampaignFeedsResponse.Builder.class); } + private int bitField0_; + public static final int PARTIAL_FAILURE_ERROR_FIELD_NUMBER = 3; + private com.google.rpc.Status partialFailureError_; + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureError_ != null; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + return getPartialFailureError(); + } + public static final int RESULTS_FIELD_NUMBER = 2; private java.util.List results_; /** @@ -163,6 +219,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } + if (partialFailureError_ != null) { + output.writeMessage(3, getPartialFailureError()); + } unknownFields.writeTo(output); } @@ -176,6 +235,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, results_.get(i)); } + if (partialFailureError_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPartialFailureError()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -192,6 +255,11 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.googleads.v0.services.MutateCampaignFeedsResponse other = (com.google.ads.googleads.v0.services.MutateCampaignFeedsResponse) obj; boolean result = true; + result = result && (hasPartialFailureError() == other.hasPartialFailureError()); + if (hasPartialFailureError()) { + result = result && getPartialFailureError() + .equals(other.getPartialFailureError()); + } result = result && getResultsList() .equals(other.getResultsList()); result = result && unknownFields.equals(other.unknownFields); @@ -205,6 +273,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPartialFailureError()) { + hash = (37 * hash) + PARTIAL_FAILURE_ERROR_FIELD_NUMBER; + hash = (53 * hash) + getPartialFailureError().hashCode(); + } if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); @@ -347,9 +419,15 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { resultsBuilder_.clear(); } @@ -380,15 +458,22 @@ public com.google.ads.googleads.v0.services.MutateCampaignFeedsResponse build() public com.google.ads.googleads.v0.services.MutateCampaignFeedsResponse buildPartial() { com.google.ads.googleads.v0.services.MutateCampaignFeedsResponse result = new com.google.ads.googleads.v0.services.MutateCampaignFeedsResponse(this); int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (partialFailureErrorBuilder_ == null) { + result.partialFailureError_ = partialFailureError_; + } else { + result.partialFailureError_ = partialFailureErrorBuilder_.build(); + } if (resultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.results_ = results_; } else { result.results_ = resultsBuilder_.build(); } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -437,11 +522,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateCampaignFeedsResponse other) { if (other == com.google.ads.googleads.v0.services.MutateCampaignFeedsResponse.getDefaultInstance()) return this; + if (other.hasPartialFailureError()) { + mergePartialFailureError(other.getPartialFailureError()); + } if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResultsIsMutable(); results_.addAll(other.results_); @@ -454,7 +542,7 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateCampaignFeed resultsBuilder_.dispose(); resultsBuilder_ = null; results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); resultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResultsFieldBuilder() : null; @@ -493,12 +581,192 @@ public Builder mergeFrom( } private int bitField0_; + private com.google.rpc.Status partialFailureError_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> partialFailureErrorBuilder_; + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureErrorBuilder_ != null || partialFailureError_ != null; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } else { + return partialFailureErrorBuilder_.getMessage(); + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partialFailureError_ = value; + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError( + com.google.rpc.Status.Builder builderForValue) { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = builderForValue.build(); + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder mergePartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (partialFailureError_ != null) { + partialFailureError_ = + com.google.rpc.Status.newBuilder(partialFailureError_).mergeFrom(value).buildPartial(); + } else { + partialFailureError_ = value; + } + onChanged(); + } else { + partialFailureErrorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder clearPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + onChanged(); + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status.Builder getPartialFailureErrorBuilder() { + + onChanged(); + return getPartialFailureErrorFieldBuilder().getBuilder(); + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + if (partialFailureErrorBuilder_ != null) { + return partialFailureErrorBuilder_.getMessageOrBuilder(); + } else { + return partialFailureError_ == null ? + com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getPartialFailureErrorFieldBuilder() { + if (partialFailureErrorBuilder_ == null) { + partialFailureErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getPartialFailureError(), + getParentForChildren(), + isClean()); + partialFailureError_ = null; + } + return partialFailureErrorBuilder_; + } + private java.util.List results_ = java.util.Collections.emptyList(); private void ensureResultsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(results_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -692,7 +960,7 @@ public Builder addAllResults( public Builder clearResults() { if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { resultsBuilder_.clear(); @@ -797,7 +1065,7 @@ public com.google.ads.googleads.v0.services.MutateCampaignFeedResult.Builder add resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v0.services.MutateCampaignFeedResult, com.google.ads.googleads.v0.services.MutateCampaignFeedResult.Builder, com.google.ads.googleads.v0.services.MutateCampaignFeedResultOrBuilder>( results_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); results_ = null; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignFeedsResponseOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignFeedsResponseOrBuilder.java index 8f902d91b7..cd2aa42e1f 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignFeedsResponseOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignFeedsResponseOrBuilder.java @@ -7,6 +7,40 @@ public interface MutateCampaignFeedsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateCampaignFeedsResponse) com.google.protobuf.MessageOrBuilder { + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + boolean hasPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.Status getPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder(); + /** *
    * All results for the mutate.
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignGroupsRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignGroupsRequestOrBuilder.java
deleted file mode 100644
index d8b864d89c..0000000000
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignGroupsRequestOrBuilder.java
+++ /dev/null
@@ -1,71 +0,0 @@
-// Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: google/ads/googleads/v0/services/campaign_group_service.proto
-
-package com.google.ads.googleads.v0.services;
-
-public interface MutateCampaignGroupsRequestOrBuilder extends
-    // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateCampaignGroupsRequest)
-    com.google.protobuf.MessageOrBuilder {
-
-  /**
-   * 
-   * The ID of the customer whose campaign groups are being modified.
-   * 
- * - * string customer_id = 1; - */ - java.lang.String getCustomerId(); - /** - *
-   * The ID of the customer whose campaign groups are being modified.
-   * 
- * - * string customer_id = 1; - */ - com.google.protobuf.ByteString - getCustomerIdBytes(); - - /** - *
-   * The list of operations to perform on individual campaign groups.
-   * 
- * - * repeated .google.ads.googleads.v0.services.CampaignGroupOperation operations = 2; - */ - java.util.List - getOperationsList(); - /** - *
-   * The list of operations to perform on individual campaign groups.
-   * 
- * - * repeated .google.ads.googleads.v0.services.CampaignGroupOperation operations = 2; - */ - com.google.ads.googleads.v0.services.CampaignGroupOperation getOperations(int index); - /** - *
-   * The list of operations to perform on individual campaign groups.
-   * 
- * - * repeated .google.ads.googleads.v0.services.CampaignGroupOperation operations = 2; - */ - int getOperationsCount(); - /** - *
-   * The list of operations to perform on individual campaign groups.
-   * 
- * - * repeated .google.ads.googleads.v0.services.CampaignGroupOperation operations = 2; - */ - java.util.List - getOperationsOrBuilderList(); - /** - *
-   * The list of operations to perform on individual campaign groups.
-   * 
- * - * repeated .google.ads.googleads.v0.services.CampaignGroupOperation operations = 2; - */ - com.google.ads.googleads.v0.services.CampaignGroupOperationOrBuilder getOperationsOrBuilder( - int index); -} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignGroupsResponseOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignGroupsResponseOrBuilder.java deleted file mode 100644 index a1e1117f3e..0000000000 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignGroupsResponseOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v0/services/campaign_group_service.proto - -package com.google.ads.googleads.v0.services; - -public interface MutateCampaignGroupsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateCampaignGroupsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * All results for the mutate.
-   * 
- * - * repeated .google.ads.googleads.v0.services.MutateCampaignGroupResult results = 2; - */ - java.util.List - getResultsList(); - /** - *
-   * All results for the mutate.
-   * 
- * - * repeated .google.ads.googleads.v0.services.MutateCampaignGroupResult results = 2; - */ - com.google.ads.googleads.v0.services.MutateCampaignGroupResult getResults(int index); - /** - *
-   * All results for the mutate.
-   * 
- * - * repeated .google.ads.googleads.v0.services.MutateCampaignGroupResult results = 2; - */ - int getResultsCount(); - /** - *
-   * All results for the mutate.
-   * 
- * - * repeated .google.ads.googleads.v0.services.MutateCampaignGroupResult results = 2; - */ - java.util.List - getResultsOrBuilderList(); - /** - *
-   * All results for the mutate.
-   * 
- * - * repeated .google.ads.googleads.v0.services.MutateCampaignGroupResult results = 2; - */ - com.google.ads.googleads.v0.services.MutateCampaignGroupResultOrBuilder getResultsOrBuilder( - int index); -} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignSharedSetsRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignSharedSetsRequest.java index d3adaba295..ea97844c24 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignSharedSetsRequest.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignSharedSetsRequest.java @@ -22,6 +22,8 @@ private MutateCampaignSharedSetsRequest(com.google.protobuf.GeneratedMessageV3.B private MutateCampaignSharedSetsRequest() { customerId_ = ""; operations_ = java.util.Collections.emptyList(); + partialFailure_ = false; + validateOnly_ = false; } @java.lang.Override @@ -63,6 +65,16 @@ private MutateCampaignSharedSetsRequest( input.readMessage(com.google.ads.googleads.v0.services.CampaignSharedSetOperation.parser(), extensionRegistry)); break; } + case 24: { + + partialFailure_ = input.readBool(); + break; + } + case 32: { + + validateOnly_ = input.readBool(); + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -196,6 +208,36 @@ public com.google.ads.googleads.v0.services.CampaignSharedSetOperationOrBuilder return operations_.get(index); } + public static final int PARTIAL_FAILURE_FIELD_NUMBER = 3; + private boolean partialFailure_; + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_; + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -216,6 +258,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < operations_.size(); i++) { output.writeMessage(2, operations_.get(i)); } + if (partialFailure_ != false) { + output.writeBool(3, partialFailure_); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } unknownFields.writeTo(output); } @@ -232,6 +280,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, operations_.get(i)); } + if (partialFailure_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, partialFailure_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -252,6 +308,10 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getCustomerId()); result = result && getOperationsList() .equals(other.getOperationsList()); + result = result && (getPartialFailure() + == other.getPartialFailure()); + result = result && (getValidateOnly() + == other.getValidateOnly()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -269,6 +329,12 @@ public int hashCode() { hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + getOperationsList().hashCode(); } + hash = (37 * hash) + PARTIAL_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPartialFailure()); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -415,6 +481,10 @@ public Builder clear() { } else { operationsBuilder_.clear(); } + partialFailure_ = false; + + validateOnly_ = false; + return this; } @@ -453,6 +523,8 @@ public com.google.ads.googleads.v0.services.MutateCampaignSharedSetsRequest buil } else { result.operations_ = operationsBuilder_.build(); } + result.partialFailure_ = partialFailure_; + result.validateOnly_ = validateOnly_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -532,6 +604,12 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateCampaignShar } } } + if (other.getPartialFailure() != false) { + setPartialFailure(other.getPartialFailure()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -962,6 +1040,94 @@ public com.google.ads.googleads.v0.services.CampaignSharedSetOperation.Builder a } return operationsBuilder_; } + + private boolean partialFailure_ ; + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder setPartialFailure(boolean value) { + + partialFailure_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder clearPartialFailure() { + + partialFailure_ = false; + onChanged(); + return this; + } + + private boolean validateOnly_ ; + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignSharedSetsRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignSharedSetsRequestOrBuilder.java index 46e71cd166..3b571a1cc9 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignSharedSetsRequestOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignSharedSetsRequestOrBuilder.java @@ -68,4 +68,26 @@ public interface MutateCampaignSharedSetsRequestOrBuilder extends */ com.google.ads.googleads.v0.services.CampaignSharedSetOperationOrBuilder getOperationsOrBuilder( int index); + + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + boolean getPartialFailure(); + + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + boolean getValidateOnly(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignSharedSetsResponse.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignSharedSetsResponse.java index 264c44c614..77bdc7ea0d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignSharedSetsResponse.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignSharedSetsResponse.java @@ -48,14 +48,27 @@ private MutateCampaignSharedSetsResponse( done = true; break; case 18: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + mutable_bitField0_ |= 0x00000002; } results_.add( input.readMessage(com.google.ads.googleads.v0.services.MutateCampaignSharedSetResult.parser(), extensionRegistry)); break; } + case 26: { + com.google.rpc.Status.Builder subBuilder = null; + if (partialFailureError_ != null) { + subBuilder = partialFailureError_.toBuilder(); + } + partialFailureError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(partialFailureError_); + partialFailureError_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -71,7 +84,7 @@ private MutateCampaignSharedSetsResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); } this.unknownFields = unknownFields.build(); @@ -91,6 +104,49 @@ private MutateCampaignSharedSetsResponse( com.google.ads.googleads.v0.services.MutateCampaignSharedSetsResponse.class, com.google.ads.googleads.v0.services.MutateCampaignSharedSetsResponse.Builder.class); } + private int bitField0_; + public static final int PARTIAL_FAILURE_ERROR_FIELD_NUMBER = 3; + private com.google.rpc.Status partialFailureError_; + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureError_ != null; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + return getPartialFailureError(); + } + public static final int RESULTS_FIELD_NUMBER = 2; private java.util.List results_; /** @@ -163,6 +219,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } + if (partialFailureError_ != null) { + output.writeMessage(3, getPartialFailureError()); + } unknownFields.writeTo(output); } @@ -176,6 +235,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, results_.get(i)); } + if (partialFailureError_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPartialFailureError()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -192,6 +255,11 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.googleads.v0.services.MutateCampaignSharedSetsResponse other = (com.google.ads.googleads.v0.services.MutateCampaignSharedSetsResponse) obj; boolean result = true; + result = result && (hasPartialFailureError() == other.hasPartialFailureError()); + if (hasPartialFailureError()) { + result = result && getPartialFailureError() + .equals(other.getPartialFailureError()); + } result = result && getResultsList() .equals(other.getResultsList()); result = result && unknownFields.equals(other.unknownFields); @@ -205,6 +273,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPartialFailureError()) { + hash = (37 * hash) + PARTIAL_FAILURE_ERROR_FIELD_NUMBER; + hash = (53 * hash) + getPartialFailureError().hashCode(); + } if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); @@ -347,9 +419,15 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { resultsBuilder_.clear(); } @@ -380,15 +458,22 @@ public com.google.ads.googleads.v0.services.MutateCampaignSharedSetsResponse bui public com.google.ads.googleads.v0.services.MutateCampaignSharedSetsResponse buildPartial() { com.google.ads.googleads.v0.services.MutateCampaignSharedSetsResponse result = new com.google.ads.googleads.v0.services.MutateCampaignSharedSetsResponse(this); int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (partialFailureErrorBuilder_ == null) { + result.partialFailureError_ = partialFailureError_; + } else { + result.partialFailureError_ = partialFailureErrorBuilder_.build(); + } if (resultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.results_ = results_; } else { result.results_ = resultsBuilder_.build(); } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -437,11 +522,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateCampaignSharedSetsResponse other) { if (other == com.google.ads.googleads.v0.services.MutateCampaignSharedSetsResponse.getDefaultInstance()) return this; + if (other.hasPartialFailureError()) { + mergePartialFailureError(other.getPartialFailureError()); + } if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResultsIsMutable(); results_.addAll(other.results_); @@ -454,7 +542,7 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateCampaignShar resultsBuilder_.dispose(); resultsBuilder_ = null; results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); resultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResultsFieldBuilder() : null; @@ -493,12 +581,192 @@ public Builder mergeFrom( } private int bitField0_; + private com.google.rpc.Status partialFailureError_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> partialFailureErrorBuilder_; + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureErrorBuilder_ != null || partialFailureError_ != null; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } else { + return partialFailureErrorBuilder_.getMessage(); + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partialFailureError_ = value; + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError( + com.google.rpc.Status.Builder builderForValue) { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = builderForValue.build(); + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder mergePartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (partialFailureError_ != null) { + partialFailureError_ = + com.google.rpc.Status.newBuilder(partialFailureError_).mergeFrom(value).buildPartial(); + } else { + partialFailureError_ = value; + } + onChanged(); + } else { + partialFailureErrorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder clearPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + onChanged(); + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status.Builder getPartialFailureErrorBuilder() { + + onChanged(); + return getPartialFailureErrorFieldBuilder().getBuilder(); + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + if (partialFailureErrorBuilder_ != null) { + return partialFailureErrorBuilder_.getMessageOrBuilder(); + } else { + return partialFailureError_ == null ? + com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getPartialFailureErrorFieldBuilder() { + if (partialFailureErrorBuilder_ == null) { + partialFailureErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getPartialFailureError(), + getParentForChildren(), + isClean()); + partialFailureError_ = null; + } + return partialFailureErrorBuilder_; + } + private java.util.List results_ = java.util.Collections.emptyList(); private void ensureResultsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(results_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -692,7 +960,7 @@ public Builder addAllResults( public Builder clearResults() { if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { resultsBuilder_.clear(); @@ -797,7 +1065,7 @@ public com.google.ads.googleads.v0.services.MutateCampaignSharedSetResult.Builde resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v0.services.MutateCampaignSharedSetResult, com.google.ads.googleads.v0.services.MutateCampaignSharedSetResult.Builder, com.google.ads.googleads.v0.services.MutateCampaignSharedSetResultOrBuilder>( results_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); results_ = null; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignSharedSetsResponseOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignSharedSetsResponseOrBuilder.java index f817c5bcc2..87dc747c13 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignSharedSetsResponseOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignSharedSetsResponseOrBuilder.java @@ -7,6 +7,40 @@ public interface MutateCampaignSharedSetsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateCampaignSharedSetsResponse) com.google.protobuf.MessageOrBuilder { + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + boolean hasPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.Status getPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder(); + /** *
    * All results for the mutate.
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignsRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignsRequest.java
index 4c3aca1711..0f398d3b19 100644
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignsRequest.java
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignsRequest.java
@@ -22,6 +22,8 @@ private MutateCampaignsRequest(com.google.protobuf.GeneratedMessageV3.Builder
   private MutateCampaignsRequest() {
     customerId_ = "";
     operations_ = java.util.Collections.emptyList();
+    partialFailure_ = false;
+    validateOnly_ = false;
   }
 
   @java.lang.Override
@@ -63,6 +65,16 @@ private MutateCampaignsRequest(
                 input.readMessage(com.google.ads.googleads.v0.services.CampaignOperation.parser(), extensionRegistry));
             break;
           }
+          case 24: {
+
+            partialFailure_ = input.readBool();
+            break;
+          }
+          case 32: {
+
+            validateOnly_ = input.readBool();
+            break;
+          }
           default: {
             if (!parseUnknownFieldProto3(
                 input, unknownFields, extensionRegistry, tag)) {
@@ -196,6 +208,36 @@ public com.google.ads.googleads.v0.services.CampaignOperationOrBuilder getOperat
     return operations_.get(index);
   }
 
+  public static final int PARTIAL_FAILURE_FIELD_NUMBER = 3;
+  private boolean partialFailure_;
+  /**
+   * 
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_; + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -216,6 +258,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < operations_.size(); i++) { output.writeMessage(2, operations_.get(i)); } + if (partialFailure_ != false) { + output.writeBool(3, partialFailure_); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } unknownFields.writeTo(output); } @@ -232,6 +280,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, operations_.get(i)); } + if (partialFailure_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, partialFailure_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -252,6 +308,10 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getCustomerId()); result = result && getOperationsList() .equals(other.getOperationsList()); + result = result && (getPartialFailure() + == other.getPartialFailure()); + result = result && (getValidateOnly() + == other.getValidateOnly()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -269,6 +329,12 @@ public int hashCode() { hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + getOperationsList().hashCode(); } + hash = (37 * hash) + PARTIAL_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPartialFailure()); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -415,6 +481,10 @@ public Builder clear() { } else { operationsBuilder_.clear(); } + partialFailure_ = false; + + validateOnly_ = false; + return this; } @@ -453,6 +523,8 @@ public com.google.ads.googleads.v0.services.MutateCampaignsRequest buildPartial( } else { result.operations_ = operationsBuilder_.build(); } + result.partialFailure_ = partialFailure_; + result.validateOnly_ = validateOnly_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -532,6 +604,12 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateCampaignsReq } } } + if (other.getPartialFailure() != false) { + setPartialFailure(other.getPartialFailure()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -962,6 +1040,94 @@ public com.google.ads.googleads.v0.services.CampaignOperation.Builder addOperati } return operationsBuilder_; } + + private boolean partialFailure_ ; + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder setPartialFailure(boolean value) { + + partialFailure_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder clearPartialFailure() { + + partialFailure_ = false; + onChanged(); + return this; + } + + private boolean validateOnly_ ; + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignsRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignsRequestOrBuilder.java index 4f36a31608..e401a52335 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignsRequestOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignsRequestOrBuilder.java @@ -68,4 +68,26 @@ public interface MutateCampaignsRequestOrBuilder extends */ com.google.ads.googleads.v0.services.CampaignOperationOrBuilder getOperationsOrBuilder( int index); + + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + boolean getPartialFailure(); + + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + boolean getValidateOnly(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignsResponse.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignsResponse.java index 47dcc86532..9528dabf06 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignsResponse.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignsResponse.java @@ -48,14 +48,27 @@ private MutateCampaignsResponse( done = true; break; case 18: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + mutable_bitField0_ |= 0x00000002; } results_.add( input.readMessage(com.google.ads.googleads.v0.services.MutateCampaignResult.parser(), extensionRegistry)); break; } + case 26: { + com.google.rpc.Status.Builder subBuilder = null; + if (partialFailureError_ != null) { + subBuilder = partialFailureError_.toBuilder(); + } + partialFailureError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(partialFailureError_); + partialFailureError_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -71,7 +84,7 @@ private MutateCampaignsResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); } this.unknownFields = unknownFields.build(); @@ -91,6 +104,49 @@ private MutateCampaignsResponse( com.google.ads.googleads.v0.services.MutateCampaignsResponse.class, com.google.ads.googleads.v0.services.MutateCampaignsResponse.Builder.class); } + private int bitField0_; + public static final int PARTIAL_FAILURE_ERROR_FIELD_NUMBER = 3; + private com.google.rpc.Status partialFailureError_; + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureError_ != null; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + return getPartialFailureError(); + } + public static final int RESULTS_FIELD_NUMBER = 2; private java.util.List results_; /** @@ -163,6 +219,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } + if (partialFailureError_ != null) { + output.writeMessage(3, getPartialFailureError()); + } unknownFields.writeTo(output); } @@ -176,6 +235,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, results_.get(i)); } + if (partialFailureError_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPartialFailureError()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -192,6 +255,11 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.googleads.v0.services.MutateCampaignsResponse other = (com.google.ads.googleads.v0.services.MutateCampaignsResponse) obj; boolean result = true; + result = result && (hasPartialFailureError() == other.hasPartialFailureError()); + if (hasPartialFailureError()) { + result = result && getPartialFailureError() + .equals(other.getPartialFailureError()); + } result = result && getResultsList() .equals(other.getResultsList()); result = result && unknownFields.equals(other.unknownFields); @@ -205,6 +273,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPartialFailureError()) { + hash = (37 * hash) + PARTIAL_FAILURE_ERROR_FIELD_NUMBER; + hash = (53 * hash) + getPartialFailureError().hashCode(); + } if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); @@ -347,9 +419,15 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { resultsBuilder_.clear(); } @@ -380,15 +458,22 @@ public com.google.ads.googleads.v0.services.MutateCampaignsResponse build() { public com.google.ads.googleads.v0.services.MutateCampaignsResponse buildPartial() { com.google.ads.googleads.v0.services.MutateCampaignsResponse result = new com.google.ads.googleads.v0.services.MutateCampaignsResponse(this); int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (partialFailureErrorBuilder_ == null) { + result.partialFailureError_ = partialFailureError_; + } else { + result.partialFailureError_ = partialFailureErrorBuilder_.build(); + } if (resultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.results_ = results_; } else { result.results_ = resultsBuilder_.build(); } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -437,11 +522,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateCampaignsResponse other) { if (other == com.google.ads.googleads.v0.services.MutateCampaignsResponse.getDefaultInstance()) return this; + if (other.hasPartialFailureError()) { + mergePartialFailureError(other.getPartialFailureError()); + } if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResultsIsMutable(); results_.addAll(other.results_); @@ -454,7 +542,7 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateCampaignsRes resultsBuilder_.dispose(); resultsBuilder_ = null; results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); resultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResultsFieldBuilder() : null; @@ -493,12 +581,192 @@ public Builder mergeFrom( } private int bitField0_; + private com.google.rpc.Status partialFailureError_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> partialFailureErrorBuilder_; + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureErrorBuilder_ != null || partialFailureError_ != null; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } else { + return partialFailureErrorBuilder_.getMessage(); + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partialFailureError_ = value; + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError( + com.google.rpc.Status.Builder builderForValue) { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = builderForValue.build(); + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder mergePartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (partialFailureError_ != null) { + partialFailureError_ = + com.google.rpc.Status.newBuilder(partialFailureError_).mergeFrom(value).buildPartial(); + } else { + partialFailureError_ = value; + } + onChanged(); + } else { + partialFailureErrorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder clearPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + onChanged(); + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status.Builder getPartialFailureErrorBuilder() { + + onChanged(); + return getPartialFailureErrorFieldBuilder().getBuilder(); + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + if (partialFailureErrorBuilder_ != null) { + return partialFailureErrorBuilder_.getMessageOrBuilder(); + } else { + return partialFailureError_ == null ? + com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getPartialFailureErrorFieldBuilder() { + if (partialFailureErrorBuilder_ == null) { + partialFailureErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getPartialFailureError(), + getParentForChildren(), + isClean()); + partialFailureError_ = null; + } + return partialFailureErrorBuilder_; + } + private java.util.List results_ = java.util.Collections.emptyList(); private void ensureResultsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(results_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -692,7 +960,7 @@ public Builder addAllResults( public Builder clearResults() { if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { resultsBuilder_.clear(); @@ -797,7 +1065,7 @@ public com.google.ads.googleads.v0.services.MutateCampaignResult.Builder addResu resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v0.services.MutateCampaignResult, com.google.ads.googleads.v0.services.MutateCampaignResult.Builder, com.google.ads.googleads.v0.services.MutateCampaignResultOrBuilder>( results_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); results_ = null; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignsResponseOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignsResponseOrBuilder.java index ff94333612..18def8dd56 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignsResponseOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignsResponseOrBuilder.java @@ -7,6 +7,40 @@ public interface MutateCampaignsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateCampaignsResponse) com.google.protobuf.MessageOrBuilder { + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + boolean hasPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.Status getPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder(); + /** *
    * All results for the mutate.
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateConversionActionsRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateConversionActionsRequest.java
index 29cb501ba5..c17e684831 100644
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateConversionActionsRequest.java
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateConversionActionsRequest.java
@@ -22,6 +22,8 @@ private MutateConversionActionsRequest(com.google.protobuf.GeneratedMessageV3.Bu
   private MutateConversionActionsRequest() {
     customerId_ = "";
     operations_ = java.util.Collections.emptyList();
+    partialFailure_ = false;
+    validateOnly_ = false;
   }
 
   @java.lang.Override
@@ -63,6 +65,16 @@ private MutateConversionActionsRequest(
                 input.readMessage(com.google.ads.googleads.v0.services.ConversionActionOperation.parser(), extensionRegistry));
             break;
           }
+          case 24: {
+
+            partialFailure_ = input.readBool();
+            break;
+          }
+          case 32: {
+
+            validateOnly_ = input.readBool();
+            break;
+          }
           default: {
             if (!parseUnknownFieldProto3(
                 input, unknownFields, extensionRegistry, tag)) {
@@ -196,6 +208,36 @@ public com.google.ads.googleads.v0.services.ConversionActionOperationOrBuilder g
     return operations_.get(index);
   }
 
+  public static final int PARTIAL_FAILURE_FIELD_NUMBER = 3;
+  private boolean partialFailure_;
+  /**
+   * 
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_; + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -216,6 +258,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < operations_.size(); i++) { output.writeMessage(2, operations_.get(i)); } + if (partialFailure_ != false) { + output.writeBool(3, partialFailure_); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } unknownFields.writeTo(output); } @@ -232,6 +280,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, operations_.get(i)); } + if (partialFailure_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, partialFailure_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -252,6 +308,10 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getCustomerId()); result = result && getOperationsList() .equals(other.getOperationsList()); + result = result && (getPartialFailure() + == other.getPartialFailure()); + result = result && (getValidateOnly() + == other.getValidateOnly()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -269,6 +329,12 @@ public int hashCode() { hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + getOperationsList().hashCode(); } + hash = (37 * hash) + PARTIAL_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPartialFailure()); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -415,6 +481,10 @@ public Builder clear() { } else { operationsBuilder_.clear(); } + partialFailure_ = false; + + validateOnly_ = false; + return this; } @@ -453,6 +523,8 @@ public com.google.ads.googleads.v0.services.MutateConversionActionsRequest build } else { result.operations_ = operationsBuilder_.build(); } + result.partialFailure_ = partialFailure_; + result.validateOnly_ = validateOnly_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -532,6 +604,12 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateConversionAc } } } + if (other.getPartialFailure() != false) { + setPartialFailure(other.getPartialFailure()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -962,6 +1040,94 @@ public com.google.ads.googleads.v0.services.ConversionActionOperation.Builder ad } return operationsBuilder_; } + + private boolean partialFailure_ ; + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder setPartialFailure(boolean value) { + + partialFailure_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder clearPartialFailure() { + + partialFailure_ = false; + onChanged(); + return this; + } + + private boolean validateOnly_ ; + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateConversionActionsRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateConversionActionsRequestOrBuilder.java index ee39de02a9..017dd69d63 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateConversionActionsRequestOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateConversionActionsRequestOrBuilder.java @@ -68,4 +68,26 @@ public interface MutateConversionActionsRequestOrBuilder extends */ com.google.ads.googleads.v0.services.ConversionActionOperationOrBuilder getOperationsOrBuilder( int index); + + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + boolean getPartialFailure(); + + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + boolean getValidateOnly(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateConversionActionsResponse.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateConversionActionsResponse.java index 0ed4afdd6c..dd195af9a3 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateConversionActionsResponse.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateConversionActionsResponse.java @@ -48,14 +48,27 @@ private MutateConversionActionsResponse( done = true; break; case 18: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + mutable_bitField0_ |= 0x00000002; } results_.add( input.readMessage(com.google.ads.googleads.v0.services.MutateConversionActionResult.parser(), extensionRegistry)); break; } + case 26: { + com.google.rpc.Status.Builder subBuilder = null; + if (partialFailureError_ != null) { + subBuilder = partialFailureError_.toBuilder(); + } + partialFailureError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(partialFailureError_); + partialFailureError_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -71,7 +84,7 @@ private MutateConversionActionsResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); } this.unknownFields = unknownFields.build(); @@ -91,6 +104,49 @@ private MutateConversionActionsResponse( com.google.ads.googleads.v0.services.MutateConversionActionsResponse.class, com.google.ads.googleads.v0.services.MutateConversionActionsResponse.Builder.class); } + private int bitField0_; + public static final int PARTIAL_FAILURE_ERROR_FIELD_NUMBER = 3; + private com.google.rpc.Status partialFailureError_; + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureError_ != null; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + return getPartialFailureError(); + } + public static final int RESULTS_FIELD_NUMBER = 2; private java.util.List results_; /** @@ -163,6 +219,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } + if (partialFailureError_ != null) { + output.writeMessage(3, getPartialFailureError()); + } unknownFields.writeTo(output); } @@ -176,6 +235,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, results_.get(i)); } + if (partialFailureError_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPartialFailureError()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -192,6 +255,11 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.googleads.v0.services.MutateConversionActionsResponse other = (com.google.ads.googleads.v0.services.MutateConversionActionsResponse) obj; boolean result = true; + result = result && (hasPartialFailureError() == other.hasPartialFailureError()); + if (hasPartialFailureError()) { + result = result && getPartialFailureError() + .equals(other.getPartialFailureError()); + } result = result && getResultsList() .equals(other.getResultsList()); result = result && unknownFields.equals(other.unknownFields); @@ -205,6 +273,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPartialFailureError()) { + hash = (37 * hash) + PARTIAL_FAILURE_ERROR_FIELD_NUMBER; + hash = (53 * hash) + getPartialFailureError().hashCode(); + } if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); @@ -347,9 +419,15 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { resultsBuilder_.clear(); } @@ -380,15 +458,22 @@ public com.google.ads.googleads.v0.services.MutateConversionActionsResponse buil public com.google.ads.googleads.v0.services.MutateConversionActionsResponse buildPartial() { com.google.ads.googleads.v0.services.MutateConversionActionsResponse result = new com.google.ads.googleads.v0.services.MutateConversionActionsResponse(this); int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (partialFailureErrorBuilder_ == null) { + result.partialFailureError_ = partialFailureError_; + } else { + result.partialFailureError_ = partialFailureErrorBuilder_.build(); + } if (resultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.results_ = results_; } else { result.results_ = resultsBuilder_.build(); } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -437,11 +522,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateConversionActionsResponse other) { if (other == com.google.ads.googleads.v0.services.MutateConversionActionsResponse.getDefaultInstance()) return this; + if (other.hasPartialFailureError()) { + mergePartialFailureError(other.getPartialFailureError()); + } if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResultsIsMutable(); results_.addAll(other.results_); @@ -454,7 +542,7 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateConversionAc resultsBuilder_.dispose(); resultsBuilder_ = null; results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); resultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResultsFieldBuilder() : null; @@ -493,12 +581,192 @@ public Builder mergeFrom( } private int bitField0_; + private com.google.rpc.Status partialFailureError_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> partialFailureErrorBuilder_; + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureErrorBuilder_ != null || partialFailureError_ != null; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } else { + return partialFailureErrorBuilder_.getMessage(); + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partialFailureError_ = value; + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError( + com.google.rpc.Status.Builder builderForValue) { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = builderForValue.build(); + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder mergePartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (partialFailureError_ != null) { + partialFailureError_ = + com.google.rpc.Status.newBuilder(partialFailureError_).mergeFrom(value).buildPartial(); + } else { + partialFailureError_ = value; + } + onChanged(); + } else { + partialFailureErrorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder clearPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + onChanged(); + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status.Builder getPartialFailureErrorBuilder() { + + onChanged(); + return getPartialFailureErrorFieldBuilder().getBuilder(); + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + if (partialFailureErrorBuilder_ != null) { + return partialFailureErrorBuilder_.getMessageOrBuilder(); + } else { + return partialFailureError_ == null ? + com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getPartialFailureErrorFieldBuilder() { + if (partialFailureErrorBuilder_ == null) { + partialFailureErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getPartialFailureError(), + getParentForChildren(), + isClean()); + partialFailureError_ = null; + } + return partialFailureErrorBuilder_; + } + private java.util.List results_ = java.util.Collections.emptyList(); private void ensureResultsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(results_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -692,7 +960,7 @@ public Builder addAllResults( public Builder clearResults() { if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { resultsBuilder_.clear(); @@ -797,7 +1065,7 @@ public com.google.ads.googleads.v0.services.MutateConversionActionResult.Builder resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v0.services.MutateConversionActionResult, com.google.ads.googleads.v0.services.MutateConversionActionResult.Builder, com.google.ads.googleads.v0.services.MutateConversionActionResultOrBuilder>( results_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); results_ = null; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateConversionActionsResponseOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateConversionActionsResponseOrBuilder.java index ea1b522d7f..fe8015a3d1 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateConversionActionsResponseOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateConversionActionsResponseOrBuilder.java @@ -7,6 +7,40 @@ public interface MutateConversionActionsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateConversionActionsResponse) com.google.protobuf.MessageOrBuilder { + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + boolean hasPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.Status getPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder(); + /** *
    * All results for the mutate.
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerClientLinkRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerClientLinkRequest.java
new file mode 100644
index 0000000000..5e69cb8906
--- /dev/null
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerClientLinkRequest.java
@@ -0,0 +1,806 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/ads/googleads/v0/services/customer_client_link_service.proto
+
+package com.google.ads.googleads.v0.services;
+
+/**
+ * 
+ * Request message for [CustomerClientLinkService.MutateCustomerClientLink][google.ads.googleads.v0.services.CustomerClientLinkService.MutateCustomerClientLink].
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.services.MutateCustomerClientLinkRequest} + */ +public final class MutateCustomerClientLinkRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.services.MutateCustomerClientLinkRequest) + MutateCustomerClientLinkRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use MutateCustomerClientLinkRequest.newBuilder() to construct. + private MutateCustomerClientLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MutateCustomerClientLinkRequest() { + customerId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MutateCustomerClientLinkRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + customerId_ = s; + break; + } + case 18: { + com.google.ads.googleads.v0.services.CustomerClientLinkOperation.Builder subBuilder = null; + if (operation_ != null) { + subBuilder = operation_.toBuilder(); + } + operation_ = input.readMessage(com.google.ads.googleads.v0.services.CustomerClientLinkOperation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(operation_); + operation_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.services.CustomerClientLinkServiceProto.internal_static_google_ads_googleads_v0_services_MutateCustomerClientLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.services.CustomerClientLinkServiceProto.internal_static_google_ads_googleads_v0_services_MutateCustomerClientLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest.class, com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest.Builder.class); + } + + public static final int CUSTOMER_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object customerId_; + /** + *
+   * The ID of the customer whose customer link are being modified.
+   * 
+ * + * string customer_id = 1; + */ + public java.lang.String getCustomerId() { + java.lang.Object ref = customerId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customerId_ = s; + return s; + } + } + /** + *
+   * The ID of the customer whose customer link are being modified.
+   * 
+ * + * string customer_id = 1; + */ + public com.google.protobuf.ByteString + getCustomerIdBytes() { + java.lang.Object ref = customerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + customerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPERATION_FIELD_NUMBER = 2; + private com.google.ads.googleads.v0.services.CustomerClientLinkOperation operation_; + /** + *
+   * The operation to perform on the individual CustomerClientLink.
+   * 
+ * + * .google.ads.googleads.v0.services.CustomerClientLinkOperation operation = 2; + */ + public boolean hasOperation() { + return operation_ != null; + } + /** + *
+   * The operation to perform on the individual CustomerClientLink.
+   * 
+ * + * .google.ads.googleads.v0.services.CustomerClientLinkOperation operation = 2; + */ + public com.google.ads.googleads.v0.services.CustomerClientLinkOperation getOperation() { + return operation_ == null ? com.google.ads.googleads.v0.services.CustomerClientLinkOperation.getDefaultInstance() : operation_; + } + /** + *
+   * The operation to perform on the individual CustomerClientLink.
+   * 
+ * + * .google.ads.googleads.v0.services.CustomerClientLinkOperation operation = 2; + */ + public com.google.ads.googleads.v0.services.CustomerClientLinkOperationOrBuilder getOperationOrBuilder() { + return getOperation(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getCustomerIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, customerId_); + } + if (operation_ != null) { + output.writeMessage(2, getOperation()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getCustomerIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, customerId_); + } + if (operation_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getOperation()); + } + size += unknownFields.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.ads.googleads.v0.services.MutateCustomerClientLinkRequest)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest other = (com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest) obj; + + boolean result = true; + result = result && getCustomerId() + .equals(other.getCustomerId()); + result = result && (hasOperation() == other.hasOperation()); + if (hasOperation()) { + result = result && getOperation() + .equals(other.getOperation()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CUSTOMER_ID_FIELD_NUMBER; + hash = (53 * hash) + getCustomerId().hashCode(); + if (hasOperation()) { + hash = (37 * hash) + OPERATION_FIELD_NUMBER; + hash = (53 * hash) + getOperation().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest 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.ads.googleads.v0.services.MutateCustomerClientLinkRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest 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.ads.googleads.v0.services.MutateCustomerClientLinkRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest 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.ads.googleads.v0.services.MutateCustomerClientLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest 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.ads.googleads.v0.services.MutateCustomerClientLinkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request message for [CustomerClientLinkService.MutateCustomerClientLink][google.ads.googleads.v0.services.CustomerClientLinkService.MutateCustomerClientLink].
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.services.MutateCustomerClientLinkRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.services.MutateCustomerClientLinkRequest) + com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.services.CustomerClientLinkServiceProto.internal_static_google_ads_googleads_v0_services_MutateCustomerClientLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.services.CustomerClientLinkServiceProto.internal_static_google_ads_googleads_v0_services_MutateCustomerClientLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest.class, com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + customerId_ = ""; + + if (operationBuilder_ == null) { + operation_ = null; + } else { + operation_ = null; + operationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.services.CustomerClientLinkServiceProto.internal_static_google_ads_googleads_v0_services_MutateCustomerClientLinkRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest getDefaultInstanceForType() { + return com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest build() { + com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest buildPartial() { + com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest result = new com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest(this); + result.customerId_ = customerId_; + if (operationBuilder_ == null) { + result.operation_ = operation_; + } else { + result.operation_ = operationBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest) { + return mergeFrom((com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest other) { + if (other == com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest.getDefaultInstance()) return this; + if (!other.getCustomerId().isEmpty()) { + customerId_ = other.customerId_; + onChanged(); + } + if (other.hasOperation()) { + mergeOperation(other.getOperation()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object customerId_ = ""; + /** + *
+     * The ID of the customer whose customer link are being modified.
+     * 
+ * + * string customer_id = 1; + */ + public java.lang.String getCustomerId() { + java.lang.Object ref = customerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The ID of the customer whose customer link are being modified.
+     * 
+ * + * string customer_id = 1; + */ + public com.google.protobuf.ByteString + getCustomerIdBytes() { + java.lang.Object ref = customerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + customerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The ID of the customer whose customer link are being modified.
+     * 
+ * + * string customer_id = 1; + */ + public Builder setCustomerId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + customerId_ = value; + onChanged(); + return this; + } + /** + *
+     * The ID of the customer whose customer link are being modified.
+     * 
+ * + * string customer_id = 1; + */ + public Builder clearCustomerId() { + + customerId_ = getDefaultInstance().getCustomerId(); + onChanged(); + return this; + } + /** + *
+     * The ID of the customer whose customer link are being modified.
+     * 
+ * + * string customer_id = 1; + */ + public Builder setCustomerIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + customerId_ = value; + onChanged(); + return this; + } + + private com.google.ads.googleads.v0.services.CustomerClientLinkOperation operation_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.services.CustomerClientLinkOperation, com.google.ads.googleads.v0.services.CustomerClientLinkOperation.Builder, com.google.ads.googleads.v0.services.CustomerClientLinkOperationOrBuilder> operationBuilder_; + /** + *
+     * The operation to perform on the individual CustomerClientLink.
+     * 
+ * + * .google.ads.googleads.v0.services.CustomerClientLinkOperation operation = 2; + */ + public boolean hasOperation() { + return operationBuilder_ != null || operation_ != null; + } + /** + *
+     * The operation to perform on the individual CustomerClientLink.
+     * 
+ * + * .google.ads.googleads.v0.services.CustomerClientLinkOperation operation = 2; + */ + public com.google.ads.googleads.v0.services.CustomerClientLinkOperation getOperation() { + if (operationBuilder_ == null) { + return operation_ == null ? com.google.ads.googleads.v0.services.CustomerClientLinkOperation.getDefaultInstance() : operation_; + } else { + return operationBuilder_.getMessage(); + } + } + /** + *
+     * The operation to perform on the individual CustomerClientLink.
+     * 
+ * + * .google.ads.googleads.v0.services.CustomerClientLinkOperation operation = 2; + */ + public Builder setOperation(com.google.ads.googleads.v0.services.CustomerClientLinkOperation value) { + if (operationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + operation_ = value; + onChanged(); + } else { + operationBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The operation to perform on the individual CustomerClientLink.
+     * 
+ * + * .google.ads.googleads.v0.services.CustomerClientLinkOperation operation = 2; + */ + public Builder setOperation( + com.google.ads.googleads.v0.services.CustomerClientLinkOperation.Builder builderForValue) { + if (operationBuilder_ == null) { + operation_ = builderForValue.build(); + onChanged(); + } else { + operationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The operation to perform on the individual CustomerClientLink.
+     * 
+ * + * .google.ads.googleads.v0.services.CustomerClientLinkOperation operation = 2; + */ + public Builder mergeOperation(com.google.ads.googleads.v0.services.CustomerClientLinkOperation value) { + if (operationBuilder_ == null) { + if (operation_ != null) { + operation_ = + com.google.ads.googleads.v0.services.CustomerClientLinkOperation.newBuilder(operation_).mergeFrom(value).buildPartial(); + } else { + operation_ = value; + } + onChanged(); + } else { + operationBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The operation to perform on the individual CustomerClientLink.
+     * 
+ * + * .google.ads.googleads.v0.services.CustomerClientLinkOperation operation = 2; + */ + public Builder clearOperation() { + if (operationBuilder_ == null) { + operation_ = null; + onChanged(); + } else { + operation_ = null; + operationBuilder_ = null; + } + + return this; + } + /** + *
+     * The operation to perform on the individual CustomerClientLink.
+     * 
+ * + * .google.ads.googleads.v0.services.CustomerClientLinkOperation operation = 2; + */ + public com.google.ads.googleads.v0.services.CustomerClientLinkOperation.Builder getOperationBuilder() { + + onChanged(); + return getOperationFieldBuilder().getBuilder(); + } + /** + *
+     * The operation to perform on the individual CustomerClientLink.
+     * 
+ * + * .google.ads.googleads.v0.services.CustomerClientLinkOperation operation = 2; + */ + public com.google.ads.googleads.v0.services.CustomerClientLinkOperationOrBuilder getOperationOrBuilder() { + if (operationBuilder_ != null) { + return operationBuilder_.getMessageOrBuilder(); + } else { + return operation_ == null ? + com.google.ads.googleads.v0.services.CustomerClientLinkOperation.getDefaultInstance() : operation_; + } + } + /** + *
+     * The operation to perform on the individual CustomerClientLink.
+     * 
+ * + * .google.ads.googleads.v0.services.CustomerClientLinkOperation operation = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.services.CustomerClientLinkOperation, com.google.ads.googleads.v0.services.CustomerClientLinkOperation.Builder, com.google.ads.googleads.v0.services.CustomerClientLinkOperationOrBuilder> + getOperationFieldBuilder() { + if (operationBuilder_ == null) { + operationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.services.CustomerClientLinkOperation, com.google.ads.googleads.v0.services.CustomerClientLinkOperation.Builder, com.google.ads.googleads.v0.services.CustomerClientLinkOperationOrBuilder>( + getOperation(), + getParentForChildren(), + isClean()); + operation_ = null; + } + return operationBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.services.MutateCustomerClientLinkRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.MutateCustomerClientLinkRequest) + private static final com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest(); + } + + public static com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MutateCustomerClientLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MutateCustomerClientLinkRequest(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.services.MutateCustomerClientLinkRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerClientLinkRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerClientLinkRequestOrBuilder.java new file mode 100644 index 0000000000..45497f2983 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerClientLinkRequestOrBuilder.java @@ -0,0 +1,52 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/customer_client_link_service.proto + +package com.google.ads.googleads.v0.services; + +public interface MutateCustomerClientLinkRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateCustomerClientLinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The ID of the customer whose customer link are being modified.
+   * 
+ * + * string customer_id = 1; + */ + java.lang.String getCustomerId(); + /** + *
+   * The ID of the customer whose customer link are being modified.
+   * 
+ * + * string customer_id = 1; + */ + com.google.protobuf.ByteString + getCustomerIdBytes(); + + /** + *
+   * The operation to perform on the individual CustomerClientLink.
+   * 
+ * + * .google.ads.googleads.v0.services.CustomerClientLinkOperation operation = 2; + */ + boolean hasOperation(); + /** + *
+   * The operation to perform on the individual CustomerClientLink.
+   * 
+ * + * .google.ads.googleads.v0.services.CustomerClientLinkOperation operation = 2; + */ + com.google.ads.googleads.v0.services.CustomerClientLinkOperation getOperation(); + /** + *
+   * The operation to perform on the individual CustomerClientLink.
+   * 
+ * + * .google.ads.googleads.v0.services.CustomerClientLinkOperation operation = 2; + */ + com.google.ads.googleads.v0.services.CustomerClientLinkOperationOrBuilder getOperationOrBuilder(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerClientLinkResponse.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerClientLinkResponse.java new file mode 100644 index 0000000000..3f8fd832ee --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerClientLinkResponse.java @@ -0,0 +1,651 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/customer_client_link_service.proto + +package com.google.ads.googleads.v0.services; + +/** + *
+ * Response message for a CustomerClientLink mutate.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.services.MutateCustomerClientLinkResponse} + */ +public final class MutateCustomerClientLinkResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.services.MutateCustomerClientLinkResponse) + MutateCustomerClientLinkResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use MutateCustomerClientLinkResponse.newBuilder() to construct. + private MutateCustomerClientLinkResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MutateCustomerClientLinkResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MutateCustomerClientLinkResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult.Builder subBuilder = null; + if (result_ != null) { + subBuilder = result_.toBuilder(); + } + result_ = input.readMessage(com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(result_); + result_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.services.CustomerClientLinkServiceProto.internal_static_google_ads_googleads_v0_services_MutateCustomerClientLinkResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.services.CustomerClientLinkServiceProto.internal_static_google_ads_googleads_v0_services_MutateCustomerClientLinkResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse.class, com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse.Builder.class); + } + + public static final int RESULT_FIELD_NUMBER = 1; + private com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult result_; + /** + *
+   * A result that identifies the resource affected by the mutate request.
+   * 
+ * + * .google.ads.googleads.v0.services.MutateCustomerClientLinkResult result = 1; + */ + public boolean hasResult() { + return result_ != null; + } + /** + *
+   * A result that identifies the resource affected by the mutate request.
+   * 
+ * + * .google.ads.googleads.v0.services.MutateCustomerClientLinkResult result = 1; + */ + public com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult getResult() { + return result_ == null ? com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult.getDefaultInstance() : result_; + } + /** + *
+   * A result that identifies the resource affected by the mutate request.
+   * 
+ * + * .google.ads.googleads.v0.services.MutateCustomerClientLinkResult result = 1; + */ + public com.google.ads.googleads.v0.services.MutateCustomerClientLinkResultOrBuilder getResultOrBuilder() { + return getResult(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (result_ != null) { + output.writeMessage(1, getResult()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (result_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getResult()); + } + size += unknownFields.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.ads.googleads.v0.services.MutateCustomerClientLinkResponse)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse other = (com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse) obj; + + boolean result = true; + result = result && (hasResult() == other.hasResult()); + if (hasResult()) { + result = result && getResult() + .equals(other.getResult()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResult()) { + hash = (37 * hash) + RESULT_FIELD_NUMBER; + hash = (53 * hash) + getResult().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse 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.ads.googleads.v0.services.MutateCustomerClientLinkResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse 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.ads.googleads.v0.services.MutateCustomerClientLinkResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse 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.ads.googleads.v0.services.MutateCustomerClientLinkResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse 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.ads.googleads.v0.services.MutateCustomerClientLinkResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response message for a CustomerClientLink mutate.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.services.MutateCustomerClientLinkResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.services.MutateCustomerClientLinkResponse) + com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.services.CustomerClientLinkServiceProto.internal_static_google_ads_googleads_v0_services_MutateCustomerClientLinkResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.services.CustomerClientLinkServiceProto.internal_static_google_ads_googleads_v0_services_MutateCustomerClientLinkResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse.class, com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (resultBuilder_ == null) { + result_ = null; + } else { + result_ = null; + resultBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.services.CustomerClientLinkServiceProto.internal_static_google_ads_googleads_v0_services_MutateCustomerClientLinkResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse getDefaultInstanceForType() { + return com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse build() { + com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse buildPartial() { + com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse result = new com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse(this); + if (resultBuilder_ == null) { + result.result_ = result_; + } else { + result.result_ = resultBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse) { + return mergeFrom((com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse other) { + if (other == com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse.getDefaultInstance()) return this; + if (other.hasResult()) { + mergeResult(other.getResult()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult result_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult, com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult.Builder, com.google.ads.googleads.v0.services.MutateCustomerClientLinkResultOrBuilder> resultBuilder_; + /** + *
+     * A result that identifies the resource affected by the mutate request.
+     * 
+ * + * .google.ads.googleads.v0.services.MutateCustomerClientLinkResult result = 1; + */ + public boolean hasResult() { + return resultBuilder_ != null || result_ != null; + } + /** + *
+     * A result that identifies the resource affected by the mutate request.
+     * 
+ * + * .google.ads.googleads.v0.services.MutateCustomerClientLinkResult result = 1; + */ + public com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult getResult() { + if (resultBuilder_ == null) { + return result_ == null ? com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult.getDefaultInstance() : result_; + } else { + return resultBuilder_.getMessage(); + } + } + /** + *
+     * A result that identifies the resource affected by the mutate request.
+     * 
+ * + * .google.ads.googleads.v0.services.MutateCustomerClientLinkResult result = 1; + */ + public Builder setResult(com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult value) { + if (resultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + result_ = value; + onChanged(); + } else { + resultBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * A result that identifies the resource affected by the mutate request.
+     * 
+ * + * .google.ads.googleads.v0.services.MutateCustomerClientLinkResult result = 1; + */ + public Builder setResult( + com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult.Builder builderForValue) { + if (resultBuilder_ == null) { + result_ = builderForValue.build(); + onChanged(); + } else { + resultBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * A result that identifies the resource affected by the mutate request.
+     * 
+ * + * .google.ads.googleads.v0.services.MutateCustomerClientLinkResult result = 1; + */ + public Builder mergeResult(com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult value) { + if (resultBuilder_ == null) { + if (result_ != null) { + result_ = + com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult.newBuilder(result_).mergeFrom(value).buildPartial(); + } else { + result_ = value; + } + onChanged(); + } else { + resultBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * A result that identifies the resource affected by the mutate request.
+     * 
+ * + * .google.ads.googleads.v0.services.MutateCustomerClientLinkResult result = 1; + */ + public Builder clearResult() { + if (resultBuilder_ == null) { + result_ = null; + onChanged(); + } else { + result_ = null; + resultBuilder_ = null; + } + + return this; + } + /** + *
+     * A result that identifies the resource affected by the mutate request.
+     * 
+ * + * .google.ads.googleads.v0.services.MutateCustomerClientLinkResult result = 1; + */ + public com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult.Builder getResultBuilder() { + + onChanged(); + return getResultFieldBuilder().getBuilder(); + } + /** + *
+     * A result that identifies the resource affected by the mutate request.
+     * 
+ * + * .google.ads.googleads.v0.services.MutateCustomerClientLinkResult result = 1; + */ + public com.google.ads.googleads.v0.services.MutateCustomerClientLinkResultOrBuilder getResultOrBuilder() { + if (resultBuilder_ != null) { + return resultBuilder_.getMessageOrBuilder(); + } else { + return result_ == null ? + com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult.getDefaultInstance() : result_; + } + } + /** + *
+     * A result that identifies the resource affected by the mutate request.
+     * 
+ * + * .google.ads.googleads.v0.services.MutateCustomerClientLinkResult result = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult, com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult.Builder, com.google.ads.googleads.v0.services.MutateCustomerClientLinkResultOrBuilder> + getResultFieldBuilder() { + if (resultBuilder_ == null) { + resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult, com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult.Builder, com.google.ads.googleads.v0.services.MutateCustomerClientLinkResultOrBuilder>( + getResult(), + getParentForChildren(), + isClean()); + result_ = null; + } + return resultBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.services.MutateCustomerClientLinkResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.MutateCustomerClientLinkResponse) + private static final com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse(); + } + + public static com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MutateCustomerClientLinkResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MutateCustomerClientLinkResponse(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.services.MutateCustomerClientLinkResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerClientLinkResponseOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerClientLinkResponseOrBuilder.java new file mode 100644 index 0000000000..13b8b23d4e --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerClientLinkResponseOrBuilder.java @@ -0,0 +1,34 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/customer_client_link_service.proto + +package com.google.ads.googleads.v0.services; + +public interface MutateCustomerClientLinkResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateCustomerClientLinkResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A result that identifies the resource affected by the mutate request.
+   * 
+ * + * .google.ads.googleads.v0.services.MutateCustomerClientLinkResult result = 1; + */ + boolean hasResult(); + /** + *
+   * A result that identifies the resource affected by the mutate request.
+   * 
+ * + * .google.ads.googleads.v0.services.MutateCustomerClientLinkResult result = 1; + */ + com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult getResult(); + /** + *
+   * A result that identifies the resource affected by the mutate request.
+   * 
+ * + * .google.ads.googleads.v0.services.MutateCustomerClientLinkResult result = 1; + */ + com.google.ads.googleads.v0.services.MutateCustomerClientLinkResultOrBuilder getResultOrBuilder(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerClientLinkResult.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerClientLinkResult.java new file mode 100644 index 0000000000..6d9d4a705a --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerClientLinkResult.java @@ -0,0 +1,577 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/customer_client_link_service.proto + +package com.google.ads.googleads.v0.services; + +/** + *
+ * The result for a single customer client link mutate.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.services.MutateCustomerClientLinkResult} + */ +public final class MutateCustomerClientLinkResult extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.services.MutateCustomerClientLinkResult) + MutateCustomerClientLinkResultOrBuilder { +private static final long serialVersionUID = 0L; + // Use MutateCustomerClientLinkResult.newBuilder() to construct. + private MutateCustomerClientLinkResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MutateCustomerClientLinkResult() { + resourceName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MutateCustomerClientLinkResult( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + resourceName_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.services.CustomerClientLinkServiceProto.internal_static_google_ads_googleads_v0_services_MutateCustomerClientLinkResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.services.CustomerClientLinkServiceProto.internal_static_google_ads_googleads_v0_services_MutateCustomerClientLinkResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult.class, com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult.Builder.class); + } + + public static final int RESOURCE_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object resourceName_; + /** + *
+   * Returned for successful operations.
+   * 
+ * + * string resource_name = 1; + */ + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } + } + /** + *
+   * Returned for successful operations.
+   * 
+ * + * string resource_name = 1; + */ + public com.google.protobuf.ByteString + getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getResourceNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getResourceNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_); + } + size += unknownFields.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.ads.googleads.v0.services.MutateCustomerClientLinkResult)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult other = (com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult) obj; + + boolean result = true; + result = result && getResourceName() + .equals(other.getResourceName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getResourceName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult 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.ads.googleads.v0.services.MutateCustomerClientLinkResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult 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.ads.googleads.v0.services.MutateCustomerClientLinkResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult 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.ads.googleads.v0.services.MutateCustomerClientLinkResult parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult 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.ads.googleads.v0.services.MutateCustomerClientLinkResult 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; + } + /** + *
+   * The result for a single customer client link mutate.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.services.MutateCustomerClientLinkResult} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.services.MutateCustomerClientLinkResult) + com.google.ads.googleads.v0.services.MutateCustomerClientLinkResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.services.CustomerClientLinkServiceProto.internal_static_google_ads_googleads_v0_services_MutateCustomerClientLinkResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.services.CustomerClientLinkServiceProto.internal_static_google_ads_googleads_v0_services_MutateCustomerClientLinkResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult.class, com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + resourceName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.services.CustomerClientLinkServiceProto.internal_static_google_ads_googleads_v0_services_MutateCustomerClientLinkResult_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult getDefaultInstanceForType() { + return com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult build() { + com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult buildPartial() { + com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult result = new com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult(this); + result.resourceName_ = resourceName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult) { + return mergeFrom((com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult other) { + if (other == com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult.getDefaultInstance()) return this; + if (!other.getResourceName().isEmpty()) { + resourceName_ = other.resourceName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object resourceName_ = ""; + /** + *
+     * Returned for successful operations.
+     * 
+ * + * string resource_name = 1; + */ + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Returned for successful operations.
+     * 
+ * + * string resource_name = 1; + */ + public com.google.protobuf.ByteString + getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Returned for successful operations.
+     * 
+ * + * string resource_name = 1; + */ + public Builder setResourceName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceName_ = value; + onChanged(); + return this; + } + /** + *
+     * Returned for successful operations.
+     * 
+ * + * string resource_name = 1; + */ + public Builder clearResourceName() { + + resourceName_ = getDefaultInstance().getResourceName(); + onChanged(); + return this; + } + /** + *
+     * Returned for successful operations.
+     * 
+ * + * string resource_name = 1; + */ + public Builder setResourceNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceName_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.services.MutateCustomerClientLinkResult) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.MutateCustomerClientLinkResult) + private static final com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult(); + } + + public static com.google.ads.googleads.v0.services.MutateCustomerClientLinkResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MutateCustomerClientLinkResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MutateCustomerClientLinkResult(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.services.MutateCustomerClientLinkResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerClientLinkResultOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerClientLinkResultOrBuilder.java new file mode 100644 index 0000000000..2f51ad3d9b --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerClientLinkResultOrBuilder.java @@ -0,0 +1,27 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/customer_client_link_service.proto + +package com.google.ads.googleads.v0.services; + +public interface MutateCustomerClientLinkResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateCustomerClientLinkResult) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Returned for successful operations.
+   * 
+ * + * string resource_name = 1; + */ + java.lang.String getResourceName(); + /** + *
+   * Returned for successful operations.
+   * 
+ * + * string resource_name = 1; + */ + com.google.protobuf.ByteString + getResourceNameBytes(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerFeedsRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerFeedsRequest.java index 65c14195d6..de5dab5713 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerFeedsRequest.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerFeedsRequest.java @@ -22,6 +22,8 @@ private MutateCustomerFeedsRequest(com.google.protobuf.GeneratedMessageV3.Builde private MutateCustomerFeedsRequest() { customerId_ = ""; operations_ = java.util.Collections.emptyList(); + partialFailure_ = false; + validateOnly_ = false; } @java.lang.Override @@ -63,6 +65,16 @@ private MutateCustomerFeedsRequest( input.readMessage(com.google.ads.googleads.v0.services.CustomerFeedOperation.parser(), extensionRegistry)); break; } + case 24: { + + partialFailure_ = input.readBool(); + break; + } + case 32: { + + validateOnly_ = input.readBool(); + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -196,6 +208,36 @@ public com.google.ads.googleads.v0.services.CustomerFeedOperationOrBuilder getOp return operations_.get(index); } + public static final int PARTIAL_FAILURE_FIELD_NUMBER = 3; + private boolean partialFailure_; + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_; + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -216,6 +258,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < operations_.size(); i++) { output.writeMessage(2, operations_.get(i)); } + if (partialFailure_ != false) { + output.writeBool(3, partialFailure_); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } unknownFields.writeTo(output); } @@ -232,6 +280,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, operations_.get(i)); } + if (partialFailure_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, partialFailure_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -252,6 +308,10 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getCustomerId()); result = result && getOperationsList() .equals(other.getOperationsList()); + result = result && (getPartialFailure() + == other.getPartialFailure()); + result = result && (getValidateOnly() + == other.getValidateOnly()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -269,6 +329,12 @@ public int hashCode() { hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + getOperationsList().hashCode(); } + hash = (37 * hash) + PARTIAL_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPartialFailure()); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -415,6 +481,10 @@ public Builder clear() { } else { operationsBuilder_.clear(); } + partialFailure_ = false; + + validateOnly_ = false; + return this; } @@ -453,6 +523,8 @@ public com.google.ads.googleads.v0.services.MutateCustomerFeedsRequest buildPart } else { result.operations_ = operationsBuilder_.build(); } + result.partialFailure_ = partialFailure_; + result.validateOnly_ = validateOnly_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -532,6 +604,12 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateCustomerFeed } } } + if (other.getPartialFailure() != false) { + setPartialFailure(other.getPartialFailure()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -962,6 +1040,94 @@ public com.google.ads.googleads.v0.services.CustomerFeedOperation.Builder addOpe } return operationsBuilder_; } + + private boolean partialFailure_ ; + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder setPartialFailure(boolean value) { + + partialFailure_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder clearPartialFailure() { + + partialFailure_ = false; + onChanged(); + return this; + } + + private boolean validateOnly_ ; + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerFeedsRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerFeedsRequestOrBuilder.java index 2ad76fc917..e7a52291df 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerFeedsRequestOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerFeedsRequestOrBuilder.java @@ -68,4 +68,26 @@ public interface MutateCustomerFeedsRequestOrBuilder extends */ com.google.ads.googleads.v0.services.CustomerFeedOperationOrBuilder getOperationsOrBuilder( int index); + + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + boolean getPartialFailure(); + + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + boolean getValidateOnly(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerFeedsResponse.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerFeedsResponse.java index baf920136f..4030d96691 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerFeedsResponse.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerFeedsResponse.java @@ -48,14 +48,27 @@ private MutateCustomerFeedsResponse( done = true; break; case 18: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + mutable_bitField0_ |= 0x00000002; } results_.add( input.readMessage(com.google.ads.googleads.v0.services.MutateCustomerFeedResult.parser(), extensionRegistry)); break; } + case 26: { + com.google.rpc.Status.Builder subBuilder = null; + if (partialFailureError_ != null) { + subBuilder = partialFailureError_.toBuilder(); + } + partialFailureError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(partialFailureError_); + partialFailureError_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -71,7 +84,7 @@ private MutateCustomerFeedsResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); } this.unknownFields = unknownFields.build(); @@ -91,6 +104,49 @@ private MutateCustomerFeedsResponse( com.google.ads.googleads.v0.services.MutateCustomerFeedsResponse.class, com.google.ads.googleads.v0.services.MutateCustomerFeedsResponse.Builder.class); } + private int bitField0_; + public static final int PARTIAL_FAILURE_ERROR_FIELD_NUMBER = 3; + private com.google.rpc.Status partialFailureError_; + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureError_ != null; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + return getPartialFailureError(); + } + public static final int RESULTS_FIELD_NUMBER = 2; private java.util.List results_; /** @@ -163,6 +219,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } + if (partialFailureError_ != null) { + output.writeMessage(3, getPartialFailureError()); + } unknownFields.writeTo(output); } @@ -176,6 +235,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, results_.get(i)); } + if (partialFailureError_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPartialFailureError()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -192,6 +255,11 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.googleads.v0.services.MutateCustomerFeedsResponse other = (com.google.ads.googleads.v0.services.MutateCustomerFeedsResponse) obj; boolean result = true; + result = result && (hasPartialFailureError() == other.hasPartialFailureError()); + if (hasPartialFailureError()) { + result = result && getPartialFailureError() + .equals(other.getPartialFailureError()); + } result = result && getResultsList() .equals(other.getResultsList()); result = result && unknownFields.equals(other.unknownFields); @@ -205,6 +273,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPartialFailureError()) { + hash = (37 * hash) + PARTIAL_FAILURE_ERROR_FIELD_NUMBER; + hash = (53 * hash) + getPartialFailureError().hashCode(); + } if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); @@ -347,9 +419,15 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { resultsBuilder_.clear(); } @@ -380,15 +458,22 @@ public com.google.ads.googleads.v0.services.MutateCustomerFeedsResponse build() public com.google.ads.googleads.v0.services.MutateCustomerFeedsResponse buildPartial() { com.google.ads.googleads.v0.services.MutateCustomerFeedsResponse result = new com.google.ads.googleads.v0.services.MutateCustomerFeedsResponse(this); int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (partialFailureErrorBuilder_ == null) { + result.partialFailureError_ = partialFailureError_; + } else { + result.partialFailureError_ = partialFailureErrorBuilder_.build(); + } if (resultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.results_ = results_; } else { result.results_ = resultsBuilder_.build(); } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -437,11 +522,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateCustomerFeedsResponse other) { if (other == com.google.ads.googleads.v0.services.MutateCustomerFeedsResponse.getDefaultInstance()) return this; + if (other.hasPartialFailureError()) { + mergePartialFailureError(other.getPartialFailureError()); + } if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResultsIsMutable(); results_.addAll(other.results_); @@ -454,7 +542,7 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateCustomerFeed resultsBuilder_.dispose(); resultsBuilder_ = null; results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); resultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResultsFieldBuilder() : null; @@ -493,12 +581,192 @@ public Builder mergeFrom( } private int bitField0_; + private com.google.rpc.Status partialFailureError_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> partialFailureErrorBuilder_; + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureErrorBuilder_ != null || partialFailureError_ != null; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } else { + return partialFailureErrorBuilder_.getMessage(); + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partialFailureError_ = value; + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError( + com.google.rpc.Status.Builder builderForValue) { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = builderForValue.build(); + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder mergePartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (partialFailureError_ != null) { + partialFailureError_ = + com.google.rpc.Status.newBuilder(partialFailureError_).mergeFrom(value).buildPartial(); + } else { + partialFailureError_ = value; + } + onChanged(); + } else { + partialFailureErrorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder clearPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + onChanged(); + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status.Builder getPartialFailureErrorBuilder() { + + onChanged(); + return getPartialFailureErrorFieldBuilder().getBuilder(); + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + if (partialFailureErrorBuilder_ != null) { + return partialFailureErrorBuilder_.getMessageOrBuilder(); + } else { + return partialFailureError_ == null ? + com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getPartialFailureErrorFieldBuilder() { + if (partialFailureErrorBuilder_ == null) { + partialFailureErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getPartialFailureError(), + getParentForChildren(), + isClean()); + partialFailureError_ = null; + } + return partialFailureErrorBuilder_; + } + private java.util.List results_ = java.util.Collections.emptyList(); private void ensureResultsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(results_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -692,7 +960,7 @@ public Builder addAllResults( public Builder clearResults() { if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { resultsBuilder_.clear(); @@ -797,7 +1065,7 @@ public com.google.ads.googleads.v0.services.MutateCustomerFeedResult.Builder add resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v0.services.MutateCustomerFeedResult, com.google.ads.googleads.v0.services.MutateCustomerFeedResult.Builder, com.google.ads.googleads.v0.services.MutateCustomerFeedResultOrBuilder>( results_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); results_ = null; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerFeedsResponseOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerFeedsResponseOrBuilder.java index 943506cb70..4218a63a13 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerFeedsResponseOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerFeedsResponseOrBuilder.java @@ -7,6 +7,40 @@ public interface MutateCustomerFeedsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateCustomerFeedsResponse) com.google.protobuf.MessageOrBuilder { + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + boolean hasPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.Status getPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder(); + /** *
    * All results for the mutate.
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignGroupsRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerManagerLinkRequest.java
similarity index 64%
rename from google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignGroupsRequest.java
rename to google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerManagerLinkRequest.java
index 4ffce179af..74b8a1fbcc 100644
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignGroupsRequest.java
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerManagerLinkRequest.java
@@ -1,25 +1,25 @@
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: google/ads/googleads/v0/services/campaign_group_service.proto
+// source: google/ads/googleads/v0/services/customer_manager_link_service.proto
 
 package com.google.ads.googleads.v0.services;
 
 /**
  * 
- * Request message for [CampaignGroupService.MutateCampaignGroups][google.ads.googleads.v0.services.CampaignGroupService.MutateCampaignGroups].
+ * Request message for [CustomerManagerLinkService.MutateCustomerManagerLink][google.ads.googleads.v0.services.CustomerManagerLinkService.MutateCustomerManagerLink].
  * 
* - * Protobuf type {@code google.ads.googleads.v0.services.MutateCampaignGroupsRequest} + * Protobuf type {@code google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest} */ -public final class MutateCampaignGroupsRequest extends +public final class MutateCustomerManagerLinkRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.services.MutateCampaignGroupsRequest) - MutateCampaignGroupsRequestOrBuilder { + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest) + MutateCustomerManagerLinkRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use MutateCampaignGroupsRequest.newBuilder() to construct. - private MutateCampaignGroupsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use MutateCustomerManagerLinkRequest.newBuilder() to construct. + private MutateCustomerManagerLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MutateCampaignGroupsRequest() { + private MutateCustomerManagerLinkRequest() { customerId_ = ""; operations_ = java.util.Collections.emptyList(); } @@ -29,7 +29,7 @@ private MutateCampaignGroupsRequest() { getUnknownFields() { return this.unknownFields; } - private MutateCampaignGroupsRequest( + private MutateCustomerManagerLinkRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -56,11 +56,11 @@ private MutateCampaignGroupsRequest( } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - operations_ = new java.util.ArrayList(); + operations_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } operations_.add( - input.readMessage(com.google.ads.googleads.v0.services.CampaignGroupOperation.parser(), extensionRegistry)); + input.readMessage(com.google.ads.googleads.v0.services.CustomerManagerLinkOperation.parser(), extensionRegistry)); break; } default: { @@ -87,15 +87,15 @@ private MutateCampaignGroupsRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.googleads.v0.services.CampaignGroupServiceProto.internal_static_google_ads_googleads_v0_services_MutateCampaignGroupsRequest_descriptor; + return com.google.ads.googleads.v0.services.CustomerManagerLinkServiceProto.internal_static_google_ads_googleads_v0_services_MutateCustomerManagerLinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.googleads.v0.services.CampaignGroupServiceProto.internal_static_google_ads_googleads_v0_services_MutateCampaignGroupsRequest_fieldAccessorTable + return com.google.ads.googleads.v0.services.CustomerManagerLinkServiceProto.internal_static_google_ads_googleads_v0_services_MutateCustomerManagerLinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest.class, com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest.Builder.class); + com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest.class, com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest.Builder.class); } private int bitField0_; @@ -103,7 +103,7 @@ private MutateCampaignGroupsRequest( private volatile java.lang.Object customerId_; /** *
-   * The ID of the customer whose campaign groups are being modified.
+   * The ID of the customer whose customer manager links are being modified.
    * 
* * string customer_id = 1; @@ -122,7 +122,7 @@ public java.lang.String getCustomerId() { } /** *
-   * The ID of the customer whose campaign groups are being modified.
+   * The ID of the customer whose customer manager links are being modified.
    * 
* * string customer_id = 1; @@ -142,56 +142,56 @@ public java.lang.String getCustomerId() { } public static final int OPERATIONS_FIELD_NUMBER = 2; - private java.util.List operations_; + private java.util.List operations_; /** *
-   * The list of operations to perform on individual campaign groups.
+   * The list of operations to perform on individual customer manager links.
    * 
* - * repeated .google.ads.googleads.v0.services.CampaignGroupOperation operations = 2; + * repeated .google.ads.googleads.v0.services.CustomerManagerLinkOperation operations = 2; */ - public java.util.List getOperationsList() { + public java.util.List getOperationsList() { return operations_; } /** *
-   * The list of operations to perform on individual campaign groups.
+   * The list of operations to perform on individual customer manager links.
    * 
* - * repeated .google.ads.googleads.v0.services.CampaignGroupOperation operations = 2; + * repeated .google.ads.googleads.v0.services.CustomerManagerLinkOperation operations = 2; */ - public java.util.List + public java.util.List getOperationsOrBuilderList() { return operations_; } /** *
-   * The list of operations to perform on individual campaign groups.
+   * The list of operations to perform on individual customer manager links.
    * 
* - * repeated .google.ads.googleads.v0.services.CampaignGroupOperation operations = 2; + * repeated .google.ads.googleads.v0.services.CustomerManagerLinkOperation operations = 2; */ public int getOperationsCount() { return operations_.size(); } /** *
-   * The list of operations to perform on individual campaign groups.
+   * The list of operations to perform on individual customer manager links.
    * 
* - * repeated .google.ads.googleads.v0.services.CampaignGroupOperation operations = 2; + * repeated .google.ads.googleads.v0.services.CustomerManagerLinkOperation operations = 2; */ - public com.google.ads.googleads.v0.services.CampaignGroupOperation getOperations(int index) { + public com.google.ads.googleads.v0.services.CustomerManagerLinkOperation getOperations(int index) { return operations_.get(index); } /** *
-   * The list of operations to perform on individual campaign groups.
+   * The list of operations to perform on individual customer manager links.
    * 
* - * repeated .google.ads.googleads.v0.services.CampaignGroupOperation operations = 2; + * repeated .google.ads.googleads.v0.services.CustomerManagerLinkOperation operations = 2; */ - public com.google.ads.googleads.v0.services.CampaignGroupOperationOrBuilder getOperationsOrBuilder( + public com.google.ads.googleads.v0.services.CustomerManagerLinkOperationOrBuilder getOperationsOrBuilder( int index) { return operations_.get(index); } @@ -242,10 +242,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest)) { + if (!(obj instanceof com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest)) { return super.equals(obj); } - com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest other = (com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest) obj; + com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest other = (com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest) obj; boolean result = true; result = result && getCustomerId() @@ -274,69 +274,69 @@ public int hashCode() { return hash; } - public static com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest parseFrom( + public static com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest parseFrom( + public static com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest parseFrom( + public static com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest parseFrom( + public static com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest 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.ads.googleads.v0.services.MutateCampaignGroupsRequest parseFrom(byte[] data) + public static com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest parseFrom( + public static com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest parseFrom(java.io.InputStream input) + public static com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest parseFrom( + public static com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest 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.ads.googleads.v0.services.MutateCampaignGroupsRequest parseDelimitedFrom(java.io.InputStream input) + public static com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest parseDelimitedFrom( + public static com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest 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.ads.googleads.v0.services.MutateCampaignGroupsRequest parseFrom( + public static com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest parseFrom( + public static com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -349,7 +349,7 @@ public static com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest p public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest prototype) { + public static Builder newBuilder(com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -366,29 +366,29 @@ protected Builder newBuilderForType( } /** *
-   * Request message for [CampaignGroupService.MutateCampaignGroups][google.ads.googleads.v0.services.CampaignGroupService.MutateCampaignGroups].
+   * Request message for [CustomerManagerLinkService.MutateCustomerManagerLink][google.ads.googleads.v0.services.CustomerManagerLinkService.MutateCustomerManagerLink].
    * 
* - * Protobuf type {@code google.ads.googleads.v0.services.MutateCampaignGroupsRequest} + * Protobuf type {@code google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.services.MutateCampaignGroupsRequest) - com.google.ads.googleads.v0.services.MutateCampaignGroupsRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest) + com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.googleads.v0.services.CampaignGroupServiceProto.internal_static_google_ads_googleads_v0_services_MutateCampaignGroupsRequest_descriptor; + return com.google.ads.googleads.v0.services.CustomerManagerLinkServiceProto.internal_static_google_ads_googleads_v0_services_MutateCustomerManagerLinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.googleads.v0.services.CampaignGroupServiceProto.internal_static_google_ads_googleads_v0_services_MutateCampaignGroupsRequest_fieldAccessorTable + return com.google.ads.googleads.v0.services.CustomerManagerLinkServiceProto.internal_static_google_ads_googleads_v0_services_MutateCustomerManagerLinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest.class, com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest.Builder.class); + com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest.class, com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest.Builder.class); } - // Construct using com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest.newBuilder() + // Construct using com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -421,17 +421,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.googleads.v0.services.CampaignGroupServiceProto.internal_static_google_ads_googleads_v0_services_MutateCampaignGroupsRequest_descriptor; + return com.google.ads.googleads.v0.services.CustomerManagerLinkServiceProto.internal_static_google_ads_googleads_v0_services_MutateCustomerManagerLinkRequest_descriptor; } @java.lang.Override - public com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest getDefaultInstanceForType() { - return com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest.getDefaultInstance(); + public com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest getDefaultInstanceForType() { + return com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest.getDefaultInstance(); } @java.lang.Override - public com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest build() { - com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest result = buildPartial(); + public com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest build() { + com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -439,8 +439,8 @@ public com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest build() } @java.lang.Override - public com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest buildPartial() { - com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest result = new com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest(this); + public com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest buildPartial() { + com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest result = new com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.customerId_ = customerId_; @@ -492,16 +492,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest) { - return mergeFrom((com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest)other); + if (other instanceof com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest) { + return mergeFrom((com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest other) { - if (other == com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest other) { + if (other == com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest.getDefaultInstance()) return this; if (!other.getCustomerId().isEmpty()) { customerId_ = other.customerId_; onChanged(); @@ -547,11 +547,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest parsedMessage = null; + com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -565,7 +565,7 @@ public Builder mergeFrom( private java.lang.Object customerId_ = ""; /** *
-     * The ID of the customer whose campaign groups are being modified.
+     * The ID of the customer whose customer manager links are being modified.
      * 
* * string customer_id = 1; @@ -584,7 +584,7 @@ public java.lang.String getCustomerId() { } /** *
-     * The ID of the customer whose campaign groups are being modified.
+     * The ID of the customer whose customer manager links are being modified.
      * 
* * string customer_id = 1; @@ -604,7 +604,7 @@ public java.lang.String getCustomerId() { } /** *
-     * The ID of the customer whose campaign groups are being modified.
+     * The ID of the customer whose customer manager links are being modified.
      * 
* * string customer_id = 1; @@ -621,7 +621,7 @@ public Builder setCustomerId( } /** *
-     * The ID of the customer whose campaign groups are being modified.
+     * The ID of the customer whose customer manager links are being modified.
      * 
* * string customer_id = 1; @@ -634,7 +634,7 @@ public Builder clearCustomerId() { } /** *
-     * The ID of the customer whose campaign groups are being modified.
+     * The ID of the customer whose customer manager links are being modified.
      * 
* * string customer_id = 1; @@ -651,26 +651,26 @@ public Builder setCustomerIdBytes( return this; } - private java.util.List operations_ = + private java.util.List operations_ = java.util.Collections.emptyList(); private void ensureOperationsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { - operations_ = new java.util.ArrayList(operations_); + operations_ = new java.util.ArrayList(operations_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.googleads.v0.services.CampaignGroupOperation, com.google.ads.googleads.v0.services.CampaignGroupOperation.Builder, com.google.ads.googleads.v0.services.CampaignGroupOperationOrBuilder> operationsBuilder_; + com.google.ads.googleads.v0.services.CustomerManagerLinkOperation, com.google.ads.googleads.v0.services.CustomerManagerLinkOperation.Builder, com.google.ads.googleads.v0.services.CustomerManagerLinkOperationOrBuilder> operationsBuilder_; /** *
-     * The list of operations to perform on individual campaign groups.
+     * The list of operations to perform on individual customer manager links.
      * 
* - * repeated .google.ads.googleads.v0.services.CampaignGroupOperation operations = 2; + * repeated .google.ads.googleads.v0.services.CustomerManagerLinkOperation operations = 2; */ - public java.util.List getOperationsList() { + public java.util.List getOperationsList() { if (operationsBuilder_ == null) { return java.util.Collections.unmodifiableList(operations_); } else { @@ -679,10 +679,10 @@ public java.util.List - * The list of operations to perform on individual campaign groups. + * The list of operations to perform on individual customer manager links. *
* - * repeated .google.ads.googleads.v0.services.CampaignGroupOperation operations = 2; + * repeated .google.ads.googleads.v0.services.CustomerManagerLinkOperation operations = 2; */ public int getOperationsCount() { if (operationsBuilder_ == null) { @@ -693,12 +693,12 @@ public int getOperationsCount() { } /** *
-     * The list of operations to perform on individual campaign groups.
+     * The list of operations to perform on individual customer manager links.
      * 
* - * repeated .google.ads.googleads.v0.services.CampaignGroupOperation operations = 2; + * repeated .google.ads.googleads.v0.services.CustomerManagerLinkOperation operations = 2; */ - public com.google.ads.googleads.v0.services.CampaignGroupOperation getOperations(int index) { + public com.google.ads.googleads.v0.services.CustomerManagerLinkOperation getOperations(int index) { if (operationsBuilder_ == null) { return operations_.get(index); } else { @@ -707,13 +707,13 @@ public com.google.ads.googleads.v0.services.CampaignGroupOperation getOperations } /** *
-     * The list of operations to perform on individual campaign groups.
+     * The list of operations to perform on individual customer manager links.
      * 
* - * repeated .google.ads.googleads.v0.services.CampaignGroupOperation operations = 2; + * repeated .google.ads.googleads.v0.services.CustomerManagerLinkOperation operations = 2; */ public Builder setOperations( - int index, com.google.ads.googleads.v0.services.CampaignGroupOperation value) { + int index, com.google.ads.googleads.v0.services.CustomerManagerLinkOperation value) { if (operationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -728,13 +728,13 @@ public Builder setOperations( } /** *
-     * The list of operations to perform on individual campaign groups.
+     * The list of operations to perform on individual customer manager links.
      * 
* - * repeated .google.ads.googleads.v0.services.CampaignGroupOperation operations = 2; + * repeated .google.ads.googleads.v0.services.CustomerManagerLinkOperation operations = 2; */ public Builder setOperations( - int index, com.google.ads.googleads.v0.services.CampaignGroupOperation.Builder builderForValue) { + int index, com.google.ads.googleads.v0.services.CustomerManagerLinkOperation.Builder builderForValue) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); operations_.set(index, builderForValue.build()); @@ -746,12 +746,12 @@ public Builder setOperations( } /** *
-     * The list of operations to perform on individual campaign groups.
+     * The list of operations to perform on individual customer manager links.
      * 
* - * repeated .google.ads.googleads.v0.services.CampaignGroupOperation operations = 2; + * repeated .google.ads.googleads.v0.services.CustomerManagerLinkOperation operations = 2; */ - public Builder addOperations(com.google.ads.googleads.v0.services.CampaignGroupOperation value) { + public Builder addOperations(com.google.ads.googleads.v0.services.CustomerManagerLinkOperation value) { if (operationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -766,13 +766,13 @@ public Builder addOperations(com.google.ads.googleads.v0.services.CampaignGroupO } /** *
-     * The list of operations to perform on individual campaign groups.
+     * The list of operations to perform on individual customer manager links.
      * 
* - * repeated .google.ads.googleads.v0.services.CampaignGroupOperation operations = 2; + * repeated .google.ads.googleads.v0.services.CustomerManagerLinkOperation operations = 2; */ public Builder addOperations( - int index, com.google.ads.googleads.v0.services.CampaignGroupOperation value) { + int index, com.google.ads.googleads.v0.services.CustomerManagerLinkOperation value) { if (operationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -787,13 +787,13 @@ public Builder addOperations( } /** *
-     * The list of operations to perform on individual campaign groups.
+     * The list of operations to perform on individual customer manager links.
      * 
* - * repeated .google.ads.googleads.v0.services.CampaignGroupOperation operations = 2; + * repeated .google.ads.googleads.v0.services.CustomerManagerLinkOperation operations = 2; */ public Builder addOperations( - com.google.ads.googleads.v0.services.CampaignGroupOperation.Builder builderForValue) { + com.google.ads.googleads.v0.services.CustomerManagerLinkOperation.Builder builderForValue) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); operations_.add(builderForValue.build()); @@ -805,13 +805,13 @@ public Builder addOperations( } /** *
-     * The list of operations to perform on individual campaign groups.
+     * The list of operations to perform on individual customer manager links.
      * 
* - * repeated .google.ads.googleads.v0.services.CampaignGroupOperation operations = 2; + * repeated .google.ads.googleads.v0.services.CustomerManagerLinkOperation operations = 2; */ public Builder addOperations( - int index, com.google.ads.googleads.v0.services.CampaignGroupOperation.Builder builderForValue) { + int index, com.google.ads.googleads.v0.services.CustomerManagerLinkOperation.Builder builderForValue) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); operations_.add(index, builderForValue.build()); @@ -823,13 +823,13 @@ public Builder addOperations( } /** *
-     * The list of operations to perform on individual campaign groups.
+     * The list of operations to perform on individual customer manager links.
      * 
* - * repeated .google.ads.googleads.v0.services.CampaignGroupOperation operations = 2; + * repeated .google.ads.googleads.v0.services.CustomerManagerLinkOperation operations = 2; */ public Builder addAllOperations( - java.lang.Iterable values) { + java.lang.Iterable values) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -842,10 +842,10 @@ public Builder addAllOperations( } /** *
-     * The list of operations to perform on individual campaign groups.
+     * The list of operations to perform on individual customer manager links.
      * 
* - * repeated .google.ads.googleads.v0.services.CampaignGroupOperation operations = 2; + * repeated .google.ads.googleads.v0.services.CustomerManagerLinkOperation operations = 2; */ public Builder clearOperations() { if (operationsBuilder_ == null) { @@ -859,10 +859,10 @@ public Builder clearOperations() { } /** *
-     * The list of operations to perform on individual campaign groups.
+     * The list of operations to perform on individual customer manager links.
      * 
* - * repeated .google.ads.googleads.v0.services.CampaignGroupOperation operations = 2; + * repeated .google.ads.googleads.v0.services.CustomerManagerLinkOperation operations = 2; */ public Builder removeOperations(int index) { if (operationsBuilder_ == null) { @@ -876,23 +876,23 @@ public Builder removeOperations(int index) { } /** *
-     * The list of operations to perform on individual campaign groups.
+     * The list of operations to perform on individual customer manager links.
      * 
* - * repeated .google.ads.googleads.v0.services.CampaignGroupOperation operations = 2; + * repeated .google.ads.googleads.v0.services.CustomerManagerLinkOperation operations = 2; */ - public com.google.ads.googleads.v0.services.CampaignGroupOperation.Builder getOperationsBuilder( + public com.google.ads.googleads.v0.services.CustomerManagerLinkOperation.Builder getOperationsBuilder( int index) { return getOperationsFieldBuilder().getBuilder(index); } /** *
-     * The list of operations to perform on individual campaign groups.
+     * The list of operations to perform on individual customer manager links.
      * 
* - * repeated .google.ads.googleads.v0.services.CampaignGroupOperation operations = 2; + * repeated .google.ads.googleads.v0.services.CustomerManagerLinkOperation operations = 2; */ - public com.google.ads.googleads.v0.services.CampaignGroupOperationOrBuilder getOperationsOrBuilder( + public com.google.ads.googleads.v0.services.CustomerManagerLinkOperationOrBuilder getOperationsOrBuilder( int index) { if (operationsBuilder_ == null) { return operations_.get(index); } else { @@ -901,12 +901,12 @@ public com.google.ads.googleads.v0.services.CampaignGroupOperationOrBuilder getO } /** *
-     * The list of operations to perform on individual campaign groups.
+     * The list of operations to perform on individual customer manager links.
      * 
* - * repeated .google.ads.googleads.v0.services.CampaignGroupOperation operations = 2; + * repeated .google.ads.googleads.v0.services.CustomerManagerLinkOperation operations = 2; */ - public java.util.List + public java.util.List getOperationsOrBuilderList() { if (operationsBuilder_ != null) { return operationsBuilder_.getMessageOrBuilderList(); @@ -916,44 +916,44 @@ public com.google.ads.googleads.v0.services.CampaignGroupOperationOrBuilder getO } /** *
-     * The list of operations to perform on individual campaign groups.
+     * The list of operations to perform on individual customer manager links.
      * 
* - * repeated .google.ads.googleads.v0.services.CampaignGroupOperation operations = 2; + * repeated .google.ads.googleads.v0.services.CustomerManagerLinkOperation operations = 2; */ - public com.google.ads.googleads.v0.services.CampaignGroupOperation.Builder addOperationsBuilder() { + public com.google.ads.googleads.v0.services.CustomerManagerLinkOperation.Builder addOperationsBuilder() { return getOperationsFieldBuilder().addBuilder( - com.google.ads.googleads.v0.services.CampaignGroupOperation.getDefaultInstance()); + com.google.ads.googleads.v0.services.CustomerManagerLinkOperation.getDefaultInstance()); } /** *
-     * The list of operations to perform on individual campaign groups.
+     * The list of operations to perform on individual customer manager links.
      * 
* - * repeated .google.ads.googleads.v0.services.CampaignGroupOperation operations = 2; + * repeated .google.ads.googleads.v0.services.CustomerManagerLinkOperation operations = 2; */ - public com.google.ads.googleads.v0.services.CampaignGroupOperation.Builder addOperationsBuilder( + public com.google.ads.googleads.v0.services.CustomerManagerLinkOperation.Builder addOperationsBuilder( int index) { return getOperationsFieldBuilder().addBuilder( - index, com.google.ads.googleads.v0.services.CampaignGroupOperation.getDefaultInstance()); + index, com.google.ads.googleads.v0.services.CustomerManagerLinkOperation.getDefaultInstance()); } /** *
-     * The list of operations to perform on individual campaign groups.
+     * The list of operations to perform on individual customer manager links.
      * 
* - * repeated .google.ads.googleads.v0.services.CampaignGroupOperation operations = 2; + * repeated .google.ads.googleads.v0.services.CustomerManagerLinkOperation operations = 2; */ - public java.util.List + public java.util.List getOperationsBuilderList() { return getOperationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.googleads.v0.services.CampaignGroupOperation, com.google.ads.googleads.v0.services.CampaignGroupOperation.Builder, com.google.ads.googleads.v0.services.CampaignGroupOperationOrBuilder> + com.google.ads.googleads.v0.services.CustomerManagerLinkOperation, com.google.ads.googleads.v0.services.CustomerManagerLinkOperation.Builder, com.google.ads.googleads.v0.services.CustomerManagerLinkOperationOrBuilder> getOperationsFieldBuilder() { if (operationsBuilder_ == null) { operationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.googleads.v0.services.CampaignGroupOperation, com.google.ads.googleads.v0.services.CampaignGroupOperation.Builder, com.google.ads.googleads.v0.services.CampaignGroupOperationOrBuilder>( + com.google.ads.googleads.v0.services.CustomerManagerLinkOperation, com.google.ads.googleads.v0.services.CustomerManagerLinkOperation.Builder, com.google.ads.googleads.v0.services.CustomerManagerLinkOperationOrBuilder>( operations_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), @@ -975,41 +975,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.services.MutateCampaignGroupsRequest) + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest) } - // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.MutateCampaignGroupsRequest) - private static final com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest) + private static final com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest(); + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest(); } - public static com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest getDefaultInstance() { + public static com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest 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 MutateCampaignGroupsRequest parsePartialFrom( + public MutateCustomerManagerLinkRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new MutateCampaignGroupsRequest(input, extensionRegistry); + return new MutateCustomerManagerLinkRequest(input, extensionRegistry); } }; - 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.ads.googleads.v0.services.MutateCampaignGroupsRequest getDefaultInstanceForType() { + public com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerManagerLinkRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerManagerLinkRequestOrBuilder.java new file mode 100644 index 0000000000..85f58dda15 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerManagerLinkRequestOrBuilder.java @@ -0,0 +1,71 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/customer_manager_link_service.proto + +package com.google.ads.googleads.v0.services; + +public interface MutateCustomerManagerLinkRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The ID of the customer whose customer manager links are being modified.
+   * 
+ * + * string customer_id = 1; + */ + java.lang.String getCustomerId(); + /** + *
+   * The ID of the customer whose customer manager links are being modified.
+   * 
+ * + * string customer_id = 1; + */ + com.google.protobuf.ByteString + getCustomerIdBytes(); + + /** + *
+   * The list of operations to perform on individual customer manager links.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.CustomerManagerLinkOperation operations = 2; + */ + java.util.List + getOperationsList(); + /** + *
+   * The list of operations to perform on individual customer manager links.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.CustomerManagerLinkOperation operations = 2; + */ + com.google.ads.googleads.v0.services.CustomerManagerLinkOperation getOperations(int index); + /** + *
+   * The list of operations to perform on individual customer manager links.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.CustomerManagerLinkOperation operations = 2; + */ + int getOperationsCount(); + /** + *
+   * The list of operations to perform on individual customer manager links.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.CustomerManagerLinkOperation operations = 2; + */ + java.util.List + getOperationsOrBuilderList(); + /** + *
+   * The list of operations to perform on individual customer manager links.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.CustomerManagerLinkOperation operations = 2; + */ + com.google.ads.googleads.v0.services.CustomerManagerLinkOperationOrBuilder getOperationsOrBuilder( + int index); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignGroupsResponse.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerManagerLinkResponse.java similarity index 61% rename from google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignGroupsResponse.java rename to google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerManagerLinkResponse.java index e7c4c90962..112a07d058 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignGroupsResponse.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerManagerLinkResponse.java @@ -1,25 +1,25 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v0/services/campaign_group_service.proto +// source: google/ads/googleads/v0/services/customer_manager_link_service.proto package com.google.ads.googleads.v0.services; /** *
- * Response message for campaign group mutate.
+ * Response message for a CustomerManagerLink mutate.
  * 
* - * Protobuf type {@code google.ads.googleads.v0.services.MutateCampaignGroupsResponse} + * Protobuf type {@code google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse} */ -public final class MutateCampaignGroupsResponse extends +public final class MutateCustomerManagerLinkResponse extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.services.MutateCampaignGroupsResponse) - MutateCampaignGroupsResponseOrBuilder { + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse) + MutateCustomerManagerLinkResponseOrBuilder { private static final long serialVersionUID = 0L; - // Use MutateCampaignGroupsResponse.newBuilder() to construct. - private MutateCampaignGroupsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use MutateCustomerManagerLinkResponse.newBuilder() to construct. + private MutateCustomerManagerLinkResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MutateCampaignGroupsResponse() { + private MutateCustomerManagerLinkResponse() { results_ = java.util.Collections.emptyList(); } @@ -28,7 +28,7 @@ private MutateCampaignGroupsResponse() { getUnknownFields() { return this.unknownFields; } - private MutateCampaignGroupsResponse( + private MutateCustomerManagerLinkResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -47,13 +47,13 @@ private MutateCampaignGroupsResponse( case 0: done = true; break; - case 18: { + case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - results_ = new java.util.ArrayList(); + results_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } results_.add( - input.readMessage(com.google.ads.googleads.v0.services.MutateCampaignGroupResult.parser(), extensionRegistry)); + input.readMessage(com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult.parser(), extensionRegistry)); break; } default: { @@ -80,68 +80,68 @@ private MutateCampaignGroupsResponse( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.googleads.v0.services.CampaignGroupServiceProto.internal_static_google_ads_googleads_v0_services_MutateCampaignGroupsResponse_descriptor; + return com.google.ads.googleads.v0.services.CustomerManagerLinkServiceProto.internal_static_google_ads_googleads_v0_services_MutateCustomerManagerLinkResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.googleads.v0.services.CampaignGroupServiceProto.internal_static_google_ads_googleads_v0_services_MutateCampaignGroupsResponse_fieldAccessorTable + return com.google.ads.googleads.v0.services.CustomerManagerLinkServiceProto.internal_static_google_ads_googleads_v0_services_MutateCustomerManagerLinkResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse.class, com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse.Builder.class); + com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse.class, com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse.Builder.class); } - public static final int RESULTS_FIELD_NUMBER = 2; - private java.util.List results_; + public static final int RESULTS_FIELD_NUMBER = 1; + private java.util.List results_; /** *
-   * All results for the mutate.
+   * A result that identifies the resource affected by the mutate request.
    * 
* - * repeated .google.ads.googleads.v0.services.MutateCampaignGroupResult results = 2; + * repeated .google.ads.googleads.v0.services.MutateCustomerManagerLinkResult results = 1; */ - public java.util.List getResultsList() { + public java.util.List getResultsList() { return results_; } /** *
-   * All results for the mutate.
+   * A result that identifies the resource affected by the mutate request.
    * 
* - * repeated .google.ads.googleads.v0.services.MutateCampaignGroupResult results = 2; + * repeated .google.ads.googleads.v0.services.MutateCustomerManagerLinkResult results = 1; */ - public java.util.List + public java.util.List getResultsOrBuilderList() { return results_; } /** *
-   * All results for the mutate.
+   * A result that identifies the resource affected by the mutate request.
    * 
* - * repeated .google.ads.googleads.v0.services.MutateCampaignGroupResult results = 2; + * repeated .google.ads.googleads.v0.services.MutateCustomerManagerLinkResult results = 1; */ public int getResultsCount() { return results_.size(); } /** *
-   * All results for the mutate.
+   * A result that identifies the resource affected by the mutate request.
    * 
* - * repeated .google.ads.googleads.v0.services.MutateCampaignGroupResult results = 2; + * repeated .google.ads.googleads.v0.services.MutateCustomerManagerLinkResult results = 1; */ - public com.google.ads.googleads.v0.services.MutateCampaignGroupResult getResults(int index) { + public com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult getResults(int index) { return results_.get(index); } /** *
-   * All results for the mutate.
+   * A result that identifies the resource affected by the mutate request.
    * 
* - * repeated .google.ads.googleads.v0.services.MutateCampaignGroupResult results = 2; + * repeated .google.ads.googleads.v0.services.MutateCustomerManagerLinkResult results = 1; */ - public com.google.ads.googleads.v0.services.MutateCampaignGroupResultOrBuilder getResultsOrBuilder( + public com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResultOrBuilder getResultsOrBuilder( int index) { return results_.get(index); } @@ -161,7 +161,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < results_.size(); i++) { - output.writeMessage(2, results_.get(i)); + output.writeMessage(1, results_.get(i)); } unknownFields.writeTo(output); } @@ -174,7 +174,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < results_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, results_.get(i)); + .computeMessageSize(1, results_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -186,10 +186,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse)) { + if (!(obj instanceof com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse)) { return super.equals(obj); } - com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse other = (com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse) obj; + com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse other = (com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse) obj; boolean result = true; result = result && getResultsList() @@ -214,69 +214,69 @@ public int hashCode() { return hash; } - public static com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse parseFrom( + public static com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse parseFrom( + public static com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse parseFrom( + public static com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse parseFrom( + public static com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse 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.ads.googleads.v0.services.MutateCampaignGroupsResponse parseFrom(byte[] data) + public static com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse parseFrom( + public static com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse parseFrom(java.io.InputStream input) + public static com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse parseFrom( + public static com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse 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.ads.googleads.v0.services.MutateCampaignGroupsResponse parseDelimitedFrom(java.io.InputStream input) + public static com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse parseDelimitedFrom( + public static com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse 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.ads.googleads.v0.services.MutateCampaignGroupsResponse parseFrom( + public static com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse parseFrom( + public static com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -289,7 +289,7 @@ public static com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse prototype) { + public static Builder newBuilder(com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -306,29 +306,29 @@ protected Builder newBuilderForType( } /** *
-   * Response message for campaign group mutate.
+   * Response message for a CustomerManagerLink mutate.
    * 
* - * Protobuf type {@code google.ads.googleads.v0.services.MutateCampaignGroupsResponse} + * Protobuf type {@code google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.services.MutateCampaignGroupsResponse) - com.google.ads.googleads.v0.services.MutateCampaignGroupsResponseOrBuilder { + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse) + com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.googleads.v0.services.CampaignGroupServiceProto.internal_static_google_ads_googleads_v0_services_MutateCampaignGroupsResponse_descriptor; + return com.google.ads.googleads.v0.services.CustomerManagerLinkServiceProto.internal_static_google_ads_googleads_v0_services_MutateCustomerManagerLinkResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.ads.googleads.v0.services.CampaignGroupServiceProto.internal_static_google_ads_googleads_v0_services_MutateCampaignGroupsResponse_fieldAccessorTable + return com.google.ads.googleads.v0.services.CustomerManagerLinkServiceProto.internal_static_google_ads_googleads_v0_services_MutateCustomerManagerLinkResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse.class, com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse.Builder.class); + com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse.class, com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse.Builder.class); } - // Construct using com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse.newBuilder() + // Construct using com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -359,17 +359,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.googleads.v0.services.CampaignGroupServiceProto.internal_static_google_ads_googleads_v0_services_MutateCampaignGroupsResponse_descriptor; + return com.google.ads.googleads.v0.services.CustomerManagerLinkServiceProto.internal_static_google_ads_googleads_v0_services_MutateCustomerManagerLinkResponse_descriptor; } @java.lang.Override - public com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse getDefaultInstanceForType() { - return com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse.getDefaultInstance(); + public com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse getDefaultInstanceForType() { + return com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse.getDefaultInstance(); } @java.lang.Override - public com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse build() { - com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse result = buildPartial(); + public com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse build() { + com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -377,8 +377,8 @@ public com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse build() } @java.lang.Override - public com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse buildPartial() { - com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse result = new com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse(this); + public com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse buildPartial() { + com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse result = new com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse(this); int from_bitField0_ = bitField0_; if (resultsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { @@ -427,16 +427,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse) { - return mergeFrom((com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse)other); + if (other instanceof com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse) { + return mergeFrom((com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse other) { - if (other == com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse other) { + if (other == com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse.getDefaultInstance()) return this; if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { @@ -478,11 +478,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse parsedMessage = null; + com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -493,26 +493,26 @@ public Builder mergeFrom( } private int bitField0_; - private java.util.List results_ = + private java.util.List results_ = java.util.Collections.emptyList(); private void ensureResultsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { - results_ = new java.util.ArrayList(results_); + results_ = new java.util.ArrayList(results_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.googleads.v0.services.MutateCampaignGroupResult, com.google.ads.googleads.v0.services.MutateCampaignGroupResult.Builder, com.google.ads.googleads.v0.services.MutateCampaignGroupResultOrBuilder> resultsBuilder_; + com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult, com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult.Builder, com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResultOrBuilder> resultsBuilder_; /** *
-     * All results for the mutate.
+     * A result that identifies the resource affected by the mutate request.
      * 
* - * repeated .google.ads.googleads.v0.services.MutateCampaignGroupResult results = 2; + * repeated .google.ads.googleads.v0.services.MutateCustomerManagerLinkResult results = 1; */ - public java.util.List getResultsList() { + public java.util.List getResultsList() { if (resultsBuilder_ == null) { return java.util.Collections.unmodifiableList(results_); } else { @@ -521,10 +521,10 @@ public java.util.List - * All results for the mutate. + * A result that identifies the resource affected by the mutate request. *
* - * repeated .google.ads.googleads.v0.services.MutateCampaignGroupResult results = 2; + * repeated .google.ads.googleads.v0.services.MutateCustomerManagerLinkResult results = 1; */ public int getResultsCount() { if (resultsBuilder_ == null) { @@ -535,12 +535,12 @@ public int getResultsCount() { } /** *
-     * All results for the mutate.
+     * A result that identifies the resource affected by the mutate request.
      * 
* - * repeated .google.ads.googleads.v0.services.MutateCampaignGroupResult results = 2; + * repeated .google.ads.googleads.v0.services.MutateCustomerManagerLinkResult results = 1; */ - public com.google.ads.googleads.v0.services.MutateCampaignGroupResult getResults(int index) { + public com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult getResults(int index) { if (resultsBuilder_ == null) { return results_.get(index); } else { @@ -549,13 +549,13 @@ public com.google.ads.googleads.v0.services.MutateCampaignGroupResult getResults } /** *
-     * All results for the mutate.
+     * A result that identifies the resource affected by the mutate request.
      * 
* - * repeated .google.ads.googleads.v0.services.MutateCampaignGroupResult results = 2; + * repeated .google.ads.googleads.v0.services.MutateCustomerManagerLinkResult results = 1; */ public Builder setResults( - int index, com.google.ads.googleads.v0.services.MutateCampaignGroupResult value) { + int index, com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -570,13 +570,13 @@ public Builder setResults( } /** *
-     * All results for the mutate.
+     * A result that identifies the resource affected by the mutate request.
      * 
* - * repeated .google.ads.googleads.v0.services.MutateCampaignGroupResult results = 2; + * repeated .google.ads.googleads.v0.services.MutateCustomerManagerLinkResult results = 1; */ public Builder setResults( - int index, com.google.ads.googleads.v0.services.MutateCampaignGroupResult.Builder builderForValue) { + int index, com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.set(index, builderForValue.build()); @@ -588,12 +588,12 @@ public Builder setResults( } /** *
-     * All results for the mutate.
+     * A result that identifies the resource affected by the mutate request.
      * 
* - * repeated .google.ads.googleads.v0.services.MutateCampaignGroupResult results = 2; + * repeated .google.ads.googleads.v0.services.MutateCustomerManagerLinkResult results = 1; */ - public Builder addResults(com.google.ads.googleads.v0.services.MutateCampaignGroupResult value) { + public Builder addResults(com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -608,13 +608,13 @@ public Builder addResults(com.google.ads.googleads.v0.services.MutateCampaignGro } /** *
-     * All results for the mutate.
+     * A result that identifies the resource affected by the mutate request.
      * 
* - * repeated .google.ads.googleads.v0.services.MutateCampaignGroupResult results = 2; + * repeated .google.ads.googleads.v0.services.MutateCustomerManagerLinkResult results = 1; */ public Builder addResults( - int index, com.google.ads.googleads.v0.services.MutateCampaignGroupResult value) { + int index, com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -629,13 +629,13 @@ public Builder addResults( } /** *
-     * All results for the mutate.
+     * A result that identifies the resource affected by the mutate request.
      * 
* - * repeated .google.ads.googleads.v0.services.MutateCampaignGroupResult results = 2; + * repeated .google.ads.googleads.v0.services.MutateCustomerManagerLinkResult results = 1; */ public Builder addResults( - com.google.ads.googleads.v0.services.MutateCampaignGroupResult.Builder builderForValue) { + com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(builderForValue.build()); @@ -647,13 +647,13 @@ public Builder addResults( } /** *
-     * All results for the mutate.
+     * A result that identifies the resource affected by the mutate request.
      * 
* - * repeated .google.ads.googleads.v0.services.MutateCampaignGroupResult results = 2; + * repeated .google.ads.googleads.v0.services.MutateCustomerManagerLinkResult results = 1; */ public Builder addResults( - int index, com.google.ads.googleads.v0.services.MutateCampaignGroupResult.Builder builderForValue) { + int index, com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(index, builderForValue.build()); @@ -665,13 +665,13 @@ public Builder addResults( } /** *
-     * All results for the mutate.
+     * A result that identifies the resource affected by the mutate request.
      * 
* - * repeated .google.ads.googleads.v0.services.MutateCampaignGroupResult results = 2; + * repeated .google.ads.googleads.v0.services.MutateCustomerManagerLinkResult results = 1; */ public Builder addAllResults( - java.lang.Iterable values) { + java.lang.Iterable values) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -684,10 +684,10 @@ public Builder addAllResults( } /** *
-     * All results for the mutate.
+     * A result that identifies the resource affected by the mutate request.
      * 
* - * repeated .google.ads.googleads.v0.services.MutateCampaignGroupResult results = 2; + * repeated .google.ads.googleads.v0.services.MutateCustomerManagerLinkResult results = 1; */ public Builder clearResults() { if (resultsBuilder_ == null) { @@ -701,10 +701,10 @@ public Builder clearResults() { } /** *
-     * All results for the mutate.
+     * A result that identifies the resource affected by the mutate request.
      * 
* - * repeated .google.ads.googleads.v0.services.MutateCampaignGroupResult results = 2; + * repeated .google.ads.googleads.v0.services.MutateCustomerManagerLinkResult results = 1; */ public Builder removeResults(int index) { if (resultsBuilder_ == null) { @@ -718,23 +718,23 @@ public Builder removeResults(int index) { } /** *
-     * All results for the mutate.
+     * A result that identifies the resource affected by the mutate request.
      * 
* - * repeated .google.ads.googleads.v0.services.MutateCampaignGroupResult results = 2; + * repeated .google.ads.googleads.v0.services.MutateCustomerManagerLinkResult results = 1; */ - public com.google.ads.googleads.v0.services.MutateCampaignGroupResult.Builder getResultsBuilder( + public com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult.Builder getResultsBuilder( int index) { return getResultsFieldBuilder().getBuilder(index); } /** *
-     * All results for the mutate.
+     * A result that identifies the resource affected by the mutate request.
      * 
* - * repeated .google.ads.googleads.v0.services.MutateCampaignGroupResult results = 2; + * repeated .google.ads.googleads.v0.services.MutateCustomerManagerLinkResult results = 1; */ - public com.google.ads.googleads.v0.services.MutateCampaignGroupResultOrBuilder getResultsOrBuilder( + public com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResultOrBuilder getResultsOrBuilder( int index) { if (resultsBuilder_ == null) { return results_.get(index); } else { @@ -743,12 +743,12 @@ public com.google.ads.googleads.v0.services.MutateCampaignGroupResultOrBuilder g } /** *
-     * All results for the mutate.
+     * A result that identifies the resource affected by the mutate request.
      * 
* - * repeated .google.ads.googleads.v0.services.MutateCampaignGroupResult results = 2; + * repeated .google.ads.googleads.v0.services.MutateCustomerManagerLinkResult results = 1; */ - public java.util.List + public java.util.List getResultsOrBuilderList() { if (resultsBuilder_ != null) { return resultsBuilder_.getMessageOrBuilderList(); @@ -758,44 +758,44 @@ public com.google.ads.googleads.v0.services.MutateCampaignGroupResultOrBuilder g } /** *
-     * All results for the mutate.
+     * A result that identifies the resource affected by the mutate request.
      * 
* - * repeated .google.ads.googleads.v0.services.MutateCampaignGroupResult results = 2; + * repeated .google.ads.googleads.v0.services.MutateCustomerManagerLinkResult results = 1; */ - public com.google.ads.googleads.v0.services.MutateCampaignGroupResult.Builder addResultsBuilder() { + public com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult.Builder addResultsBuilder() { return getResultsFieldBuilder().addBuilder( - com.google.ads.googleads.v0.services.MutateCampaignGroupResult.getDefaultInstance()); + com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult.getDefaultInstance()); } /** *
-     * All results for the mutate.
+     * A result that identifies the resource affected by the mutate request.
      * 
* - * repeated .google.ads.googleads.v0.services.MutateCampaignGroupResult results = 2; + * repeated .google.ads.googleads.v0.services.MutateCustomerManagerLinkResult results = 1; */ - public com.google.ads.googleads.v0.services.MutateCampaignGroupResult.Builder addResultsBuilder( + public com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult.Builder addResultsBuilder( int index) { return getResultsFieldBuilder().addBuilder( - index, com.google.ads.googleads.v0.services.MutateCampaignGroupResult.getDefaultInstance()); + index, com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult.getDefaultInstance()); } /** *
-     * All results for the mutate.
+     * A result that identifies the resource affected by the mutate request.
      * 
* - * repeated .google.ads.googleads.v0.services.MutateCampaignGroupResult results = 2; + * repeated .google.ads.googleads.v0.services.MutateCustomerManagerLinkResult results = 1; */ - public java.util.List + public java.util.List getResultsBuilderList() { return getResultsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.googleads.v0.services.MutateCampaignGroupResult, com.google.ads.googleads.v0.services.MutateCampaignGroupResult.Builder, com.google.ads.googleads.v0.services.MutateCampaignGroupResultOrBuilder> + com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult, com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult.Builder, com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResultOrBuilder> getResultsFieldBuilder() { if (resultsBuilder_ == null) { resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.ads.googleads.v0.services.MutateCampaignGroupResult, com.google.ads.googleads.v0.services.MutateCampaignGroupResult.Builder, com.google.ads.googleads.v0.services.MutateCampaignGroupResultOrBuilder>( + com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult, com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult.Builder, com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResultOrBuilder>( results_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), @@ -817,41 +817,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.services.MutateCampaignGroupsResponse) + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse) } - // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.MutateCampaignGroupsResponse) - private static final com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse) + private static final com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse(); + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse(); } - public static com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse getDefaultInstance() { + public static com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse 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 MutateCampaignGroupsResponse parsePartialFrom( + public MutateCustomerManagerLinkResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new MutateCampaignGroupsResponse(input, extensionRegistry); + return new MutateCustomerManagerLinkResponse(input, extensionRegistry); } }; - 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.ads.googleads.v0.services.MutateCampaignGroupsResponse getDefaultInstanceForType() { + public com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerManagerLinkResponseOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerManagerLinkResponseOrBuilder.java new file mode 100644 index 0000000000..c4112b0e65 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerManagerLinkResponseOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/customer_manager_link_service.proto + +package com.google.ads.googleads.v0.services; + +public interface MutateCustomerManagerLinkResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A result that identifies the resource affected by the mutate request.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.MutateCustomerManagerLinkResult results = 1; + */ + java.util.List + getResultsList(); + /** + *
+   * A result that identifies the resource affected by the mutate request.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.MutateCustomerManagerLinkResult results = 1; + */ + com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult getResults(int index); + /** + *
+   * A result that identifies the resource affected by the mutate request.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.MutateCustomerManagerLinkResult results = 1; + */ + int getResultsCount(); + /** + *
+   * A result that identifies the resource affected by the mutate request.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.MutateCustomerManagerLinkResult results = 1; + */ + java.util.List + getResultsOrBuilderList(); + /** + *
+   * A result that identifies the resource affected by the mutate request.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.MutateCustomerManagerLinkResult results = 1; + */ + com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResultOrBuilder getResultsOrBuilder( + int index); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerManagerLinkResult.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerManagerLinkResult.java new file mode 100644 index 0000000000..1eef2eeb7c --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerManagerLinkResult.java @@ -0,0 +1,577 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/customer_manager_link_service.proto + +package com.google.ads.googleads.v0.services; + +/** + *
+ * The result for the customer manager link mutate.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.services.MutateCustomerManagerLinkResult} + */ +public final class MutateCustomerManagerLinkResult extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.services.MutateCustomerManagerLinkResult) + MutateCustomerManagerLinkResultOrBuilder { +private static final long serialVersionUID = 0L; + // Use MutateCustomerManagerLinkResult.newBuilder() to construct. + private MutateCustomerManagerLinkResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MutateCustomerManagerLinkResult() { + resourceName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MutateCustomerManagerLinkResult( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + resourceName_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.services.CustomerManagerLinkServiceProto.internal_static_google_ads_googleads_v0_services_MutateCustomerManagerLinkResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.services.CustomerManagerLinkServiceProto.internal_static_google_ads_googleads_v0_services_MutateCustomerManagerLinkResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult.class, com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult.Builder.class); + } + + public static final int RESOURCE_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object resourceName_; + /** + *
+   * Returned for successful operations.
+   * 
+ * + * string resource_name = 1; + */ + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } + } + /** + *
+   * Returned for successful operations.
+   * 
+ * + * string resource_name = 1; + */ + public com.google.protobuf.ByteString + getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getResourceNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getResourceNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_); + } + size += unknownFields.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.ads.googleads.v0.services.MutateCustomerManagerLinkResult)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult other = (com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult) obj; + + boolean result = true; + result = result && getResourceName() + .equals(other.getResourceName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getResourceName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult 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.ads.googleads.v0.services.MutateCustomerManagerLinkResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult 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.ads.googleads.v0.services.MutateCustomerManagerLinkResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult 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.ads.googleads.v0.services.MutateCustomerManagerLinkResult parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult 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.ads.googleads.v0.services.MutateCustomerManagerLinkResult 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; + } + /** + *
+   * The result for the customer manager link mutate.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.services.MutateCustomerManagerLinkResult} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.services.MutateCustomerManagerLinkResult) + com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.services.CustomerManagerLinkServiceProto.internal_static_google_ads_googleads_v0_services_MutateCustomerManagerLinkResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.services.CustomerManagerLinkServiceProto.internal_static_google_ads_googleads_v0_services_MutateCustomerManagerLinkResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult.class, com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + resourceName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.services.CustomerManagerLinkServiceProto.internal_static_google_ads_googleads_v0_services_MutateCustomerManagerLinkResult_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult getDefaultInstanceForType() { + return com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult build() { + com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult buildPartial() { + com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult result = new com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult(this); + result.resourceName_ = resourceName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult) { + return mergeFrom((com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult other) { + if (other == com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult.getDefaultInstance()) return this; + if (!other.getResourceName().isEmpty()) { + resourceName_ = other.resourceName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object resourceName_ = ""; + /** + *
+     * Returned for successful operations.
+     * 
+ * + * string resource_name = 1; + */ + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Returned for successful operations.
+     * 
+ * + * string resource_name = 1; + */ + public com.google.protobuf.ByteString + getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Returned for successful operations.
+     * 
+ * + * string resource_name = 1; + */ + public Builder setResourceName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceName_ = value; + onChanged(); + return this; + } + /** + *
+     * Returned for successful operations.
+     * 
+ * + * string resource_name = 1; + */ + public Builder clearResourceName() { + + resourceName_ = getDefaultInstance().getResourceName(); + onChanged(); + return this; + } + /** + *
+     * Returned for successful operations.
+     * 
+ * + * string resource_name = 1; + */ + public Builder setResourceNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceName_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.services.MutateCustomerManagerLinkResult) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.MutateCustomerManagerLinkResult) + private static final com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult(); + } + + public static com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MutateCustomerManagerLinkResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MutateCustomerManagerLinkResult(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.services.MutateCustomerManagerLinkResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerManagerLinkResultOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerManagerLinkResultOrBuilder.java new file mode 100644 index 0000000000..4af85bba3b --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerManagerLinkResultOrBuilder.java @@ -0,0 +1,27 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/customer_manager_link_service.proto + +package com.google.ads.googleads.v0.services; + +public interface MutateCustomerManagerLinkResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateCustomerManagerLinkResult) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Returned for successful operations.
+   * 
+ * + * string resource_name = 1; + */ + java.lang.String getResourceName(); + /** + *
+   * Returned for successful operations.
+   * 
+ * + * string resource_name = 1; + */ + com.google.protobuf.ByteString + getResourceNameBytes(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerRequest.java index d3666f1239..3988206713 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerRequest.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerRequest.java @@ -21,6 +21,7 @@ private MutateCustomerRequest(com.google.protobuf.GeneratedMessageV3.Builder } private MutateCustomerRequest() { customerId_ = ""; + validateOnly_ = false; } @java.lang.Override @@ -66,6 +67,11 @@ private MutateCustomerRequest( break; } + case 40: { + + validateOnly_ = input.readBool(); + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -173,6 +179,20 @@ public com.google.ads.googleads.v0.services.CustomerOperationOrBuilder getOperat return getOperation(); } + public static final int VALIDATE_ONLY_FIELD_NUMBER = 5; + private boolean validateOnly_; + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 5; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -193,6 +213,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (operation_ != null) { output.writeMessage(4, getOperation()); } + if (validateOnly_ != false) { + output.writeBool(5, validateOnly_); + } unknownFields.writeTo(output); } @@ -209,6 +232,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getOperation()); } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, validateOnly_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -232,6 +259,8 @@ public boolean equals(final java.lang.Object obj) { result = result && getOperation() .equals(other.getOperation()); } + result = result && (getValidateOnly() + == other.getValidateOnly()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -249,6 +278,9 @@ public int hashCode() { hash = (37 * hash) + OPERATION_FIELD_NUMBER; hash = (53 * hash) + getOperation().hashCode(); } + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -394,6 +426,8 @@ public Builder clear() { operation_ = null; operationBuilder_ = null; } + validateOnly_ = false; + return this; } @@ -426,6 +460,7 @@ public com.google.ads.googleads.v0.services.MutateCustomerRequest buildPartial() } else { result.operation_ = operationBuilder_.build(); } + result.validateOnly_ = validateOnly_; onBuilt(); return result; } @@ -481,6 +516,9 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateCustomerRequ if (other.hasOperation()) { mergeOperation(other.getOperation()); } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -751,6 +789,47 @@ public com.google.ads.googleads.v0.services.CustomerOperationOrBuilder getOperat } return operationBuilder_; } + + private boolean validateOnly_ ; + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 5; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 5; + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 5; + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerRequestOrBuilder.java index 7192d3fd3e..b620aa62b5 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerRequestOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCustomerRequestOrBuilder.java @@ -49,4 +49,14 @@ public interface MutateCustomerRequestOrBuilder extends * .google.ads.googleads.v0.services.CustomerOperation operation = 4; */ com.google.ads.googleads.v0.services.CustomerOperationOrBuilder getOperationOrBuilder(); + + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 5; + */ + boolean getValidateOnly(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedItemsRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedItemsRequest.java index b2c081b566..04ace76c3b 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedItemsRequest.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedItemsRequest.java @@ -22,6 +22,8 @@ private MutateFeedItemsRequest(com.google.protobuf.GeneratedMessageV3.Builder private MutateFeedItemsRequest() { customerId_ = ""; operations_ = java.util.Collections.emptyList(); + partialFailure_ = false; + validateOnly_ = false; } @java.lang.Override @@ -63,6 +65,16 @@ private MutateFeedItemsRequest( input.readMessage(com.google.ads.googleads.v0.services.FeedItemOperation.parser(), extensionRegistry)); break; } + case 24: { + + partialFailure_ = input.readBool(); + break; + } + case 32: { + + validateOnly_ = input.readBool(); + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -196,6 +208,36 @@ public com.google.ads.googleads.v0.services.FeedItemOperationOrBuilder getOperat return operations_.get(index); } + public static final int PARTIAL_FAILURE_FIELD_NUMBER = 3; + private boolean partialFailure_; + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_; + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -216,6 +258,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < operations_.size(); i++) { output.writeMessage(2, operations_.get(i)); } + if (partialFailure_ != false) { + output.writeBool(3, partialFailure_); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } unknownFields.writeTo(output); } @@ -232,6 +280,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, operations_.get(i)); } + if (partialFailure_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, partialFailure_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -252,6 +308,10 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getCustomerId()); result = result && getOperationsList() .equals(other.getOperationsList()); + result = result && (getPartialFailure() + == other.getPartialFailure()); + result = result && (getValidateOnly() + == other.getValidateOnly()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -269,6 +329,12 @@ public int hashCode() { hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + getOperationsList().hashCode(); } + hash = (37 * hash) + PARTIAL_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPartialFailure()); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -415,6 +481,10 @@ public Builder clear() { } else { operationsBuilder_.clear(); } + partialFailure_ = false; + + validateOnly_ = false; + return this; } @@ -453,6 +523,8 @@ public com.google.ads.googleads.v0.services.MutateFeedItemsRequest buildPartial( } else { result.operations_ = operationsBuilder_.build(); } + result.partialFailure_ = partialFailure_; + result.validateOnly_ = validateOnly_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -532,6 +604,12 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateFeedItemsReq } } } + if (other.getPartialFailure() != false) { + setPartialFailure(other.getPartialFailure()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -962,6 +1040,94 @@ public com.google.ads.googleads.v0.services.FeedItemOperation.Builder addOperati } return operationsBuilder_; } + + private boolean partialFailure_ ; + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder setPartialFailure(boolean value) { + + partialFailure_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder clearPartialFailure() { + + partialFailure_ = false; + onChanged(); + return this; + } + + private boolean validateOnly_ ; + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedItemsRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedItemsRequestOrBuilder.java index 5697f27059..f7800b24cd 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedItemsRequestOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedItemsRequestOrBuilder.java @@ -68,4 +68,26 @@ public interface MutateFeedItemsRequestOrBuilder extends */ com.google.ads.googleads.v0.services.FeedItemOperationOrBuilder getOperationsOrBuilder( int index); + + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + boolean getPartialFailure(); + + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + boolean getValidateOnly(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedItemsResponse.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedItemsResponse.java index 588c1f92a3..ee4af84eb6 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedItemsResponse.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedItemsResponse.java @@ -48,14 +48,27 @@ private MutateFeedItemsResponse( done = true; break; case 18: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + mutable_bitField0_ |= 0x00000002; } results_.add( input.readMessage(com.google.ads.googleads.v0.services.MutateFeedItemResult.parser(), extensionRegistry)); break; } + case 26: { + com.google.rpc.Status.Builder subBuilder = null; + if (partialFailureError_ != null) { + subBuilder = partialFailureError_.toBuilder(); + } + partialFailureError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(partialFailureError_); + partialFailureError_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -71,7 +84,7 @@ private MutateFeedItemsResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); } this.unknownFields = unknownFields.build(); @@ -91,6 +104,49 @@ private MutateFeedItemsResponse( com.google.ads.googleads.v0.services.MutateFeedItemsResponse.class, com.google.ads.googleads.v0.services.MutateFeedItemsResponse.Builder.class); } + private int bitField0_; + public static final int PARTIAL_FAILURE_ERROR_FIELD_NUMBER = 3; + private com.google.rpc.Status partialFailureError_; + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureError_ != null; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + return getPartialFailureError(); + } + public static final int RESULTS_FIELD_NUMBER = 2; private java.util.List results_; /** @@ -163,6 +219,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } + if (partialFailureError_ != null) { + output.writeMessage(3, getPartialFailureError()); + } unknownFields.writeTo(output); } @@ -176,6 +235,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, results_.get(i)); } + if (partialFailureError_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPartialFailureError()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -192,6 +255,11 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.googleads.v0.services.MutateFeedItemsResponse other = (com.google.ads.googleads.v0.services.MutateFeedItemsResponse) obj; boolean result = true; + result = result && (hasPartialFailureError() == other.hasPartialFailureError()); + if (hasPartialFailureError()) { + result = result && getPartialFailureError() + .equals(other.getPartialFailureError()); + } result = result && getResultsList() .equals(other.getResultsList()); result = result && unknownFields.equals(other.unknownFields); @@ -205,6 +273,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPartialFailureError()) { + hash = (37 * hash) + PARTIAL_FAILURE_ERROR_FIELD_NUMBER; + hash = (53 * hash) + getPartialFailureError().hashCode(); + } if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); @@ -347,9 +419,15 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { resultsBuilder_.clear(); } @@ -380,15 +458,22 @@ public com.google.ads.googleads.v0.services.MutateFeedItemsResponse build() { public com.google.ads.googleads.v0.services.MutateFeedItemsResponse buildPartial() { com.google.ads.googleads.v0.services.MutateFeedItemsResponse result = new com.google.ads.googleads.v0.services.MutateFeedItemsResponse(this); int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (partialFailureErrorBuilder_ == null) { + result.partialFailureError_ = partialFailureError_; + } else { + result.partialFailureError_ = partialFailureErrorBuilder_.build(); + } if (resultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.results_ = results_; } else { result.results_ = resultsBuilder_.build(); } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -437,11 +522,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateFeedItemsResponse other) { if (other == com.google.ads.googleads.v0.services.MutateFeedItemsResponse.getDefaultInstance()) return this; + if (other.hasPartialFailureError()) { + mergePartialFailureError(other.getPartialFailureError()); + } if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResultsIsMutable(); results_.addAll(other.results_); @@ -454,7 +542,7 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateFeedItemsRes resultsBuilder_.dispose(); resultsBuilder_ = null; results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); resultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResultsFieldBuilder() : null; @@ -493,12 +581,192 @@ public Builder mergeFrom( } private int bitField0_; + private com.google.rpc.Status partialFailureError_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> partialFailureErrorBuilder_; + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureErrorBuilder_ != null || partialFailureError_ != null; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } else { + return partialFailureErrorBuilder_.getMessage(); + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partialFailureError_ = value; + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError( + com.google.rpc.Status.Builder builderForValue) { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = builderForValue.build(); + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder mergePartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (partialFailureError_ != null) { + partialFailureError_ = + com.google.rpc.Status.newBuilder(partialFailureError_).mergeFrom(value).buildPartial(); + } else { + partialFailureError_ = value; + } + onChanged(); + } else { + partialFailureErrorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder clearPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + onChanged(); + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status.Builder getPartialFailureErrorBuilder() { + + onChanged(); + return getPartialFailureErrorFieldBuilder().getBuilder(); + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + if (partialFailureErrorBuilder_ != null) { + return partialFailureErrorBuilder_.getMessageOrBuilder(); + } else { + return partialFailureError_ == null ? + com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getPartialFailureErrorFieldBuilder() { + if (partialFailureErrorBuilder_ == null) { + partialFailureErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getPartialFailureError(), + getParentForChildren(), + isClean()); + partialFailureError_ = null; + } + return partialFailureErrorBuilder_; + } + private java.util.List results_ = java.util.Collections.emptyList(); private void ensureResultsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(results_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -692,7 +960,7 @@ public Builder addAllResults( public Builder clearResults() { if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { resultsBuilder_.clear(); @@ -797,7 +1065,7 @@ public com.google.ads.googleads.v0.services.MutateFeedItemResult.Builder addResu resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v0.services.MutateFeedItemResult, com.google.ads.googleads.v0.services.MutateFeedItemResult.Builder, com.google.ads.googleads.v0.services.MutateFeedItemResultOrBuilder>( results_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); results_ = null; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedItemsResponseOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedItemsResponseOrBuilder.java index ae3d40a0ba..d5883dff31 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedItemsResponseOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedItemsResponseOrBuilder.java @@ -7,6 +7,40 @@ public interface MutateFeedItemsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateFeedItemsResponse) com.google.protobuf.MessageOrBuilder { + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + boolean hasPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.Status getPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder(); + /** *
    * All results for the mutate.
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedMappingsRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedMappingsRequest.java
index ff232e2f1b..63a275deeb 100644
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedMappingsRequest.java
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedMappingsRequest.java
@@ -22,6 +22,8 @@ private MutateFeedMappingsRequest(com.google.protobuf.GeneratedMessageV3.Builder
   private MutateFeedMappingsRequest() {
     customerId_ = "";
     operations_ = java.util.Collections.emptyList();
+    partialFailure_ = false;
+    validateOnly_ = false;
   }
 
   @java.lang.Override
@@ -63,6 +65,16 @@ private MutateFeedMappingsRequest(
                 input.readMessage(com.google.ads.googleads.v0.services.FeedMappingOperation.parser(), extensionRegistry));
             break;
           }
+          case 24: {
+
+            partialFailure_ = input.readBool();
+            break;
+          }
+          case 32: {
+
+            validateOnly_ = input.readBool();
+            break;
+          }
           default: {
             if (!parseUnknownFieldProto3(
                 input, unknownFields, extensionRegistry, tag)) {
@@ -196,6 +208,36 @@ public com.google.ads.googleads.v0.services.FeedMappingOperationOrBuilder getOpe
     return operations_.get(index);
   }
 
+  public static final int PARTIAL_FAILURE_FIELD_NUMBER = 3;
+  private boolean partialFailure_;
+  /**
+   * 
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_; + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -216,6 +258,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < operations_.size(); i++) { output.writeMessage(2, operations_.get(i)); } + if (partialFailure_ != false) { + output.writeBool(3, partialFailure_); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } unknownFields.writeTo(output); } @@ -232,6 +280,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, operations_.get(i)); } + if (partialFailure_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, partialFailure_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -252,6 +308,10 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getCustomerId()); result = result && getOperationsList() .equals(other.getOperationsList()); + result = result && (getPartialFailure() + == other.getPartialFailure()); + result = result && (getValidateOnly() + == other.getValidateOnly()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -269,6 +329,12 @@ public int hashCode() { hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + getOperationsList().hashCode(); } + hash = (37 * hash) + PARTIAL_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPartialFailure()); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -415,6 +481,10 @@ public Builder clear() { } else { operationsBuilder_.clear(); } + partialFailure_ = false; + + validateOnly_ = false; + return this; } @@ -453,6 +523,8 @@ public com.google.ads.googleads.v0.services.MutateFeedMappingsRequest buildParti } else { result.operations_ = operationsBuilder_.build(); } + result.partialFailure_ = partialFailure_; + result.validateOnly_ = validateOnly_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -532,6 +604,12 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateFeedMappings } } } + if (other.getPartialFailure() != false) { + setPartialFailure(other.getPartialFailure()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -962,6 +1040,94 @@ public com.google.ads.googleads.v0.services.FeedMappingOperation.Builder addOper } return operationsBuilder_; } + + private boolean partialFailure_ ; + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder setPartialFailure(boolean value) { + + partialFailure_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder clearPartialFailure() { + + partialFailure_ = false; + onChanged(); + return this; + } + + private boolean validateOnly_ ; + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedMappingsRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedMappingsRequestOrBuilder.java index dc02cbc3e6..3629aef9ca 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedMappingsRequestOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedMappingsRequestOrBuilder.java @@ -68,4 +68,26 @@ public interface MutateFeedMappingsRequestOrBuilder extends */ com.google.ads.googleads.v0.services.FeedMappingOperationOrBuilder getOperationsOrBuilder( int index); + + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + boolean getPartialFailure(); + + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + boolean getValidateOnly(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedMappingsResponse.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedMappingsResponse.java index de759f0709..ec9dee90c5 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedMappingsResponse.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedMappingsResponse.java @@ -48,14 +48,27 @@ private MutateFeedMappingsResponse( done = true; break; case 18: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + mutable_bitField0_ |= 0x00000002; } results_.add( input.readMessage(com.google.ads.googleads.v0.services.MutateFeedMappingResult.parser(), extensionRegistry)); break; } + case 26: { + com.google.rpc.Status.Builder subBuilder = null; + if (partialFailureError_ != null) { + subBuilder = partialFailureError_.toBuilder(); + } + partialFailureError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(partialFailureError_); + partialFailureError_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -71,7 +84,7 @@ private MutateFeedMappingsResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); } this.unknownFields = unknownFields.build(); @@ -91,6 +104,49 @@ private MutateFeedMappingsResponse( com.google.ads.googleads.v0.services.MutateFeedMappingsResponse.class, com.google.ads.googleads.v0.services.MutateFeedMappingsResponse.Builder.class); } + private int bitField0_; + public static final int PARTIAL_FAILURE_ERROR_FIELD_NUMBER = 3; + private com.google.rpc.Status partialFailureError_; + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureError_ != null; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + return getPartialFailureError(); + } + public static final int RESULTS_FIELD_NUMBER = 2; private java.util.List results_; /** @@ -163,6 +219,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } + if (partialFailureError_ != null) { + output.writeMessage(3, getPartialFailureError()); + } unknownFields.writeTo(output); } @@ -176,6 +235,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, results_.get(i)); } + if (partialFailureError_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPartialFailureError()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -192,6 +255,11 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.googleads.v0.services.MutateFeedMappingsResponse other = (com.google.ads.googleads.v0.services.MutateFeedMappingsResponse) obj; boolean result = true; + result = result && (hasPartialFailureError() == other.hasPartialFailureError()); + if (hasPartialFailureError()) { + result = result && getPartialFailureError() + .equals(other.getPartialFailureError()); + } result = result && getResultsList() .equals(other.getResultsList()); result = result && unknownFields.equals(other.unknownFields); @@ -205,6 +273,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPartialFailureError()) { + hash = (37 * hash) + PARTIAL_FAILURE_ERROR_FIELD_NUMBER; + hash = (53 * hash) + getPartialFailureError().hashCode(); + } if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); @@ -347,9 +419,15 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { resultsBuilder_.clear(); } @@ -380,15 +458,22 @@ public com.google.ads.googleads.v0.services.MutateFeedMappingsResponse build() { public com.google.ads.googleads.v0.services.MutateFeedMappingsResponse buildPartial() { com.google.ads.googleads.v0.services.MutateFeedMappingsResponse result = new com.google.ads.googleads.v0.services.MutateFeedMappingsResponse(this); int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (partialFailureErrorBuilder_ == null) { + result.partialFailureError_ = partialFailureError_; + } else { + result.partialFailureError_ = partialFailureErrorBuilder_.build(); + } if (resultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.results_ = results_; } else { result.results_ = resultsBuilder_.build(); } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -437,11 +522,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateFeedMappingsResponse other) { if (other == com.google.ads.googleads.v0.services.MutateFeedMappingsResponse.getDefaultInstance()) return this; + if (other.hasPartialFailureError()) { + mergePartialFailureError(other.getPartialFailureError()); + } if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResultsIsMutable(); results_.addAll(other.results_); @@ -454,7 +542,7 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateFeedMappings resultsBuilder_.dispose(); resultsBuilder_ = null; results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); resultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResultsFieldBuilder() : null; @@ -493,12 +581,192 @@ public Builder mergeFrom( } private int bitField0_; + private com.google.rpc.Status partialFailureError_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> partialFailureErrorBuilder_; + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureErrorBuilder_ != null || partialFailureError_ != null; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } else { + return partialFailureErrorBuilder_.getMessage(); + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partialFailureError_ = value; + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError( + com.google.rpc.Status.Builder builderForValue) { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = builderForValue.build(); + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder mergePartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (partialFailureError_ != null) { + partialFailureError_ = + com.google.rpc.Status.newBuilder(partialFailureError_).mergeFrom(value).buildPartial(); + } else { + partialFailureError_ = value; + } + onChanged(); + } else { + partialFailureErrorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder clearPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + onChanged(); + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status.Builder getPartialFailureErrorBuilder() { + + onChanged(); + return getPartialFailureErrorFieldBuilder().getBuilder(); + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + if (partialFailureErrorBuilder_ != null) { + return partialFailureErrorBuilder_.getMessageOrBuilder(); + } else { + return partialFailureError_ == null ? + com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getPartialFailureErrorFieldBuilder() { + if (partialFailureErrorBuilder_ == null) { + partialFailureErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getPartialFailureError(), + getParentForChildren(), + isClean()); + partialFailureError_ = null; + } + return partialFailureErrorBuilder_; + } + private java.util.List results_ = java.util.Collections.emptyList(); private void ensureResultsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(results_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -692,7 +960,7 @@ public Builder addAllResults( public Builder clearResults() { if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { resultsBuilder_.clear(); @@ -797,7 +1065,7 @@ public com.google.ads.googleads.v0.services.MutateFeedMappingResult.Builder addR resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v0.services.MutateFeedMappingResult, com.google.ads.googleads.v0.services.MutateFeedMappingResult.Builder, com.google.ads.googleads.v0.services.MutateFeedMappingResultOrBuilder>( results_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); results_ = null; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedMappingsResponseOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedMappingsResponseOrBuilder.java index 304dee5431..60428f7bae 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedMappingsResponseOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedMappingsResponseOrBuilder.java @@ -7,6 +7,40 @@ public interface MutateFeedMappingsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateFeedMappingsResponse) com.google.protobuf.MessageOrBuilder { + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + boolean hasPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.Status getPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder(); + /** *
    * All results for the mutate.
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedsRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedsRequest.java
index 50891f620f..2502fc7008 100644
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedsRequest.java
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedsRequest.java
@@ -22,6 +22,8 @@ private MutateFeedsRequest(com.google.protobuf.GeneratedMessageV3.Builder bui
   private MutateFeedsRequest() {
     customerId_ = "";
     operations_ = java.util.Collections.emptyList();
+    partialFailure_ = false;
+    validateOnly_ = false;
   }
 
   @java.lang.Override
@@ -63,6 +65,16 @@ private MutateFeedsRequest(
                 input.readMessage(com.google.ads.googleads.v0.services.FeedOperation.parser(), extensionRegistry));
             break;
           }
+          case 24: {
+
+            partialFailure_ = input.readBool();
+            break;
+          }
+          case 32: {
+
+            validateOnly_ = input.readBool();
+            break;
+          }
           default: {
             if (!parseUnknownFieldProto3(
                 input, unknownFields, extensionRegistry, tag)) {
@@ -196,6 +208,36 @@ public com.google.ads.googleads.v0.services.FeedOperationOrBuilder getOperations
     return operations_.get(index);
   }
 
+  public static final int PARTIAL_FAILURE_FIELD_NUMBER = 3;
+  private boolean partialFailure_;
+  /**
+   * 
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_; + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -216,6 +258,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < operations_.size(); i++) { output.writeMessage(2, operations_.get(i)); } + if (partialFailure_ != false) { + output.writeBool(3, partialFailure_); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } unknownFields.writeTo(output); } @@ -232,6 +280,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, operations_.get(i)); } + if (partialFailure_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, partialFailure_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -252,6 +308,10 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getCustomerId()); result = result && getOperationsList() .equals(other.getOperationsList()); + result = result && (getPartialFailure() + == other.getPartialFailure()); + result = result && (getValidateOnly() + == other.getValidateOnly()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -269,6 +329,12 @@ public int hashCode() { hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + getOperationsList().hashCode(); } + hash = (37 * hash) + PARTIAL_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPartialFailure()); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -415,6 +481,10 @@ public Builder clear() { } else { operationsBuilder_.clear(); } + partialFailure_ = false; + + validateOnly_ = false; + return this; } @@ -453,6 +523,8 @@ public com.google.ads.googleads.v0.services.MutateFeedsRequest buildPartial() { } else { result.operations_ = operationsBuilder_.build(); } + result.partialFailure_ = partialFailure_; + result.validateOnly_ = validateOnly_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -532,6 +604,12 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateFeedsRequest } } } + if (other.getPartialFailure() != false) { + setPartialFailure(other.getPartialFailure()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -962,6 +1040,94 @@ public com.google.ads.googleads.v0.services.FeedOperation.Builder addOperationsB } return operationsBuilder_; } + + private boolean partialFailure_ ; + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder setPartialFailure(boolean value) { + + partialFailure_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder clearPartialFailure() { + + partialFailure_ = false; + onChanged(); + return this; + } + + private boolean validateOnly_ ; + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedsRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedsRequestOrBuilder.java index f3cbce5945..92d1986822 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedsRequestOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedsRequestOrBuilder.java @@ -68,4 +68,26 @@ public interface MutateFeedsRequestOrBuilder extends */ com.google.ads.googleads.v0.services.FeedOperationOrBuilder getOperationsOrBuilder( int index); + + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + boolean getPartialFailure(); + + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + boolean getValidateOnly(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedsResponse.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedsResponse.java index 3f1f88888f..1f9001a847 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedsResponse.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedsResponse.java @@ -48,14 +48,27 @@ private MutateFeedsResponse( done = true; break; case 18: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + mutable_bitField0_ |= 0x00000002; } results_.add( input.readMessage(com.google.ads.googleads.v0.services.MutateFeedResult.parser(), extensionRegistry)); break; } + case 26: { + com.google.rpc.Status.Builder subBuilder = null; + if (partialFailureError_ != null) { + subBuilder = partialFailureError_.toBuilder(); + } + partialFailureError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(partialFailureError_); + partialFailureError_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -71,7 +84,7 @@ private MutateFeedsResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); } this.unknownFields = unknownFields.build(); @@ -91,6 +104,49 @@ private MutateFeedsResponse( com.google.ads.googleads.v0.services.MutateFeedsResponse.class, com.google.ads.googleads.v0.services.MutateFeedsResponse.Builder.class); } + private int bitField0_; + public static final int PARTIAL_FAILURE_ERROR_FIELD_NUMBER = 3; + private com.google.rpc.Status partialFailureError_; + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureError_ != null; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + return getPartialFailureError(); + } + public static final int RESULTS_FIELD_NUMBER = 2; private java.util.List results_; /** @@ -163,6 +219,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } + if (partialFailureError_ != null) { + output.writeMessage(3, getPartialFailureError()); + } unknownFields.writeTo(output); } @@ -176,6 +235,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, results_.get(i)); } + if (partialFailureError_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPartialFailureError()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -192,6 +255,11 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.googleads.v0.services.MutateFeedsResponse other = (com.google.ads.googleads.v0.services.MutateFeedsResponse) obj; boolean result = true; + result = result && (hasPartialFailureError() == other.hasPartialFailureError()); + if (hasPartialFailureError()) { + result = result && getPartialFailureError() + .equals(other.getPartialFailureError()); + } result = result && getResultsList() .equals(other.getResultsList()); result = result && unknownFields.equals(other.unknownFields); @@ -205,6 +273,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPartialFailureError()) { + hash = (37 * hash) + PARTIAL_FAILURE_ERROR_FIELD_NUMBER; + hash = (53 * hash) + getPartialFailureError().hashCode(); + } if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); @@ -347,9 +419,15 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { resultsBuilder_.clear(); } @@ -380,15 +458,22 @@ public com.google.ads.googleads.v0.services.MutateFeedsResponse build() { public com.google.ads.googleads.v0.services.MutateFeedsResponse buildPartial() { com.google.ads.googleads.v0.services.MutateFeedsResponse result = new com.google.ads.googleads.v0.services.MutateFeedsResponse(this); int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (partialFailureErrorBuilder_ == null) { + result.partialFailureError_ = partialFailureError_; + } else { + result.partialFailureError_ = partialFailureErrorBuilder_.build(); + } if (resultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.results_ = results_; } else { result.results_ = resultsBuilder_.build(); } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -437,11 +522,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateFeedsResponse other) { if (other == com.google.ads.googleads.v0.services.MutateFeedsResponse.getDefaultInstance()) return this; + if (other.hasPartialFailureError()) { + mergePartialFailureError(other.getPartialFailureError()); + } if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResultsIsMutable(); results_.addAll(other.results_); @@ -454,7 +542,7 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateFeedsRespons resultsBuilder_.dispose(); resultsBuilder_ = null; results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); resultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResultsFieldBuilder() : null; @@ -493,12 +581,192 @@ public Builder mergeFrom( } private int bitField0_; + private com.google.rpc.Status partialFailureError_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> partialFailureErrorBuilder_; + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureErrorBuilder_ != null || partialFailureError_ != null; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } else { + return partialFailureErrorBuilder_.getMessage(); + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partialFailureError_ = value; + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError( + com.google.rpc.Status.Builder builderForValue) { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = builderForValue.build(); + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder mergePartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (partialFailureError_ != null) { + partialFailureError_ = + com.google.rpc.Status.newBuilder(partialFailureError_).mergeFrom(value).buildPartial(); + } else { + partialFailureError_ = value; + } + onChanged(); + } else { + partialFailureErrorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder clearPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + onChanged(); + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status.Builder getPartialFailureErrorBuilder() { + + onChanged(); + return getPartialFailureErrorFieldBuilder().getBuilder(); + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + if (partialFailureErrorBuilder_ != null) { + return partialFailureErrorBuilder_.getMessageOrBuilder(); + } else { + return partialFailureError_ == null ? + com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getPartialFailureErrorFieldBuilder() { + if (partialFailureErrorBuilder_ == null) { + partialFailureErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getPartialFailureError(), + getParentForChildren(), + isClean()); + partialFailureError_ = null; + } + return partialFailureErrorBuilder_; + } + private java.util.List results_ = java.util.Collections.emptyList(); private void ensureResultsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(results_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -692,7 +960,7 @@ public Builder addAllResults( public Builder clearResults() { if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { resultsBuilder_.clear(); @@ -797,7 +1065,7 @@ public com.google.ads.googleads.v0.services.MutateFeedResult.Builder addResultsB resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v0.services.MutateFeedResult, com.google.ads.googleads.v0.services.MutateFeedResult.Builder, com.google.ads.googleads.v0.services.MutateFeedResultOrBuilder>( results_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); results_ = null; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedsResponseOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedsResponseOrBuilder.java index 2fc56607f2..eb447438ea 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedsResponseOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateFeedsResponseOrBuilder.java @@ -7,6 +7,40 @@ public interface MutateFeedsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateFeedsResponse) com.google.protobuf.MessageOrBuilder { + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + boolean hasPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.Status getPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder(); + /** *
    * All results for the mutate.
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateGoogleAdsRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateGoogleAdsRequest.java
index 134d4e6eb0..956b9dccf8 100644
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateGoogleAdsRequest.java
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateGoogleAdsRequest.java
@@ -22,6 +22,8 @@ private MutateGoogleAdsRequest(com.google.protobuf.GeneratedMessageV3.Builder
   private MutateGoogleAdsRequest() {
     customerId_ = "";
     mutateOperations_ = java.util.Collections.emptyList();
+    partialFailure_ = false;
+    validateOnly_ = false;
   }
 
   @java.lang.Override
@@ -63,6 +65,16 @@ private MutateGoogleAdsRequest(
                 input.readMessage(com.google.ads.googleads.v0.services.MutateOperation.parser(), extensionRegistry));
             break;
           }
+          case 24: {
+
+            partialFailure_ = input.readBool();
+            break;
+          }
+          case 32: {
+
+            validateOnly_ = input.readBool();
+            break;
+          }
           default: {
             if (!parseUnknownFieldProto3(
                 input, unknownFields, extensionRegistry, tag)) {
@@ -196,6 +208,36 @@ public com.google.ads.googleads.v0.services.MutateOperationOrBuilder getMutateOp
     return mutateOperations_.get(index);
   }
 
+  public static final int PARTIAL_FAILURE_FIELD_NUMBER = 3;
+  private boolean partialFailure_;
+  /**
+   * 
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_; + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -216,6 +258,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < mutateOperations_.size(); i++) { output.writeMessage(2, mutateOperations_.get(i)); } + if (partialFailure_ != false) { + output.writeBool(3, partialFailure_); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } unknownFields.writeTo(output); } @@ -232,6 +280,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, mutateOperations_.get(i)); } + if (partialFailure_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, partialFailure_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -252,6 +308,10 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getCustomerId()); result = result && getMutateOperationsList() .equals(other.getMutateOperationsList()); + result = result && (getPartialFailure() + == other.getPartialFailure()); + result = result && (getValidateOnly() + == other.getValidateOnly()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -269,6 +329,12 @@ public int hashCode() { hash = (37 * hash) + MUTATE_OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + getMutateOperationsList().hashCode(); } + hash = (37 * hash) + PARTIAL_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPartialFailure()); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -415,6 +481,10 @@ public Builder clear() { } else { mutateOperationsBuilder_.clear(); } + partialFailure_ = false; + + validateOnly_ = false; + return this; } @@ -453,6 +523,8 @@ public com.google.ads.googleads.v0.services.MutateGoogleAdsRequest buildPartial( } else { result.mutateOperations_ = mutateOperationsBuilder_.build(); } + result.partialFailure_ = partialFailure_; + result.validateOnly_ = validateOnly_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -532,6 +604,12 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateGoogleAdsReq } } } + if (other.getPartialFailure() != false) { + setPartialFailure(other.getPartialFailure()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -962,6 +1040,94 @@ public com.google.ads.googleads.v0.services.MutateOperation.Builder addMutateOpe } return mutateOperationsBuilder_; } + + private boolean partialFailure_ ; + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder setPartialFailure(boolean value) { + + partialFailure_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder clearPartialFailure() { + + partialFailure_ = false; + onChanged(); + return this; + } + + private boolean validateOnly_ ; + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateGoogleAdsRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateGoogleAdsRequestOrBuilder.java index 924d2afa1a..41d14c3aef 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateGoogleAdsRequestOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateGoogleAdsRequestOrBuilder.java @@ -68,4 +68,26 @@ public interface MutateGoogleAdsRequestOrBuilder extends */ com.google.ads.googleads.v0.services.MutateOperationOrBuilder getMutateOperationsOrBuilder( int index); + + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + boolean getPartialFailure(); + + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + boolean getValidateOnly(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateGoogleAdsResponse.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateGoogleAdsResponse.java index f9447ab72f..3aa4b514b6 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateGoogleAdsResponse.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateGoogleAdsResponse.java @@ -48,14 +48,27 @@ private MutateGoogleAdsResponse( done = true; break; case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { mutateOperationResponses_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + mutable_bitField0_ |= 0x00000002; } mutateOperationResponses_.add( input.readMessage(com.google.ads.googleads.v0.services.MutateOperationResponse.parser(), extensionRegistry)); break; } + case 26: { + com.google.rpc.Status.Builder subBuilder = null; + if (partialFailureError_ != null) { + subBuilder = partialFailureError_.toBuilder(); + } + partialFailureError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(partialFailureError_); + partialFailureError_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -71,7 +84,7 @@ private MutateGoogleAdsResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { mutateOperationResponses_ = java.util.Collections.unmodifiableList(mutateOperationResponses_); } this.unknownFields = unknownFields.build(); @@ -91,6 +104,49 @@ private MutateGoogleAdsResponse( com.google.ads.googleads.v0.services.MutateGoogleAdsResponse.class, com.google.ads.googleads.v0.services.MutateGoogleAdsResponse.Builder.class); } + private int bitField0_; + public static final int PARTIAL_FAILURE_ERROR_FIELD_NUMBER = 3; + private com.google.rpc.Status partialFailureError_; + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureError_ != null; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + return getPartialFailureError(); + } + public static final int MUTATE_OPERATION_RESPONSES_FIELD_NUMBER = 1; private java.util.List mutateOperationResponses_; /** @@ -163,6 +219,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < mutateOperationResponses_.size(); i++) { output.writeMessage(1, mutateOperationResponses_.get(i)); } + if (partialFailureError_ != null) { + output.writeMessage(3, getPartialFailureError()); + } unknownFields.writeTo(output); } @@ -176,6 +235,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, mutateOperationResponses_.get(i)); } + if (partialFailureError_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPartialFailureError()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -192,6 +255,11 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.googleads.v0.services.MutateGoogleAdsResponse other = (com.google.ads.googleads.v0.services.MutateGoogleAdsResponse) obj; boolean result = true; + result = result && (hasPartialFailureError() == other.hasPartialFailureError()); + if (hasPartialFailureError()) { + result = result && getPartialFailureError() + .equals(other.getPartialFailureError()); + } result = result && getMutateOperationResponsesList() .equals(other.getMutateOperationResponsesList()); result = result && unknownFields.equals(other.unknownFields); @@ -205,6 +273,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPartialFailureError()) { + hash = (37 * hash) + PARTIAL_FAILURE_ERROR_FIELD_NUMBER; + hash = (53 * hash) + getPartialFailureError().hashCode(); + } if (getMutateOperationResponsesCount() > 0) { hash = (37 * hash) + MUTATE_OPERATION_RESPONSES_FIELD_NUMBER; hash = (53 * hash) + getMutateOperationResponsesList().hashCode(); @@ -347,9 +419,15 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } if (mutateOperationResponsesBuilder_ == null) { mutateOperationResponses_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { mutateOperationResponsesBuilder_.clear(); } @@ -380,15 +458,22 @@ public com.google.ads.googleads.v0.services.MutateGoogleAdsResponse build() { public com.google.ads.googleads.v0.services.MutateGoogleAdsResponse buildPartial() { com.google.ads.googleads.v0.services.MutateGoogleAdsResponse result = new com.google.ads.googleads.v0.services.MutateGoogleAdsResponse(this); int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (partialFailureErrorBuilder_ == null) { + result.partialFailureError_ = partialFailureError_; + } else { + result.partialFailureError_ = partialFailureErrorBuilder_.build(); + } if (mutateOperationResponsesBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { mutateOperationResponses_ = java.util.Collections.unmodifiableList(mutateOperationResponses_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.mutateOperationResponses_ = mutateOperationResponses_; } else { result.mutateOperationResponses_ = mutateOperationResponsesBuilder_.build(); } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -437,11 +522,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateGoogleAdsResponse other) { if (other == com.google.ads.googleads.v0.services.MutateGoogleAdsResponse.getDefaultInstance()) return this; + if (other.hasPartialFailureError()) { + mergePartialFailureError(other.getPartialFailureError()); + } if (mutateOperationResponsesBuilder_ == null) { if (!other.mutateOperationResponses_.isEmpty()) { if (mutateOperationResponses_.isEmpty()) { mutateOperationResponses_ = other.mutateOperationResponses_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMutateOperationResponsesIsMutable(); mutateOperationResponses_.addAll(other.mutateOperationResponses_); @@ -454,7 +542,7 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateGoogleAdsRes mutateOperationResponsesBuilder_.dispose(); mutateOperationResponsesBuilder_ = null; mutateOperationResponses_ = other.mutateOperationResponses_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); mutateOperationResponsesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMutateOperationResponsesFieldBuilder() : null; @@ -493,12 +581,192 @@ public Builder mergeFrom( } private int bitField0_; + private com.google.rpc.Status partialFailureError_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> partialFailureErrorBuilder_; + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureErrorBuilder_ != null || partialFailureError_ != null; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } else { + return partialFailureErrorBuilder_.getMessage(); + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partialFailureError_ = value; + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError( + com.google.rpc.Status.Builder builderForValue) { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = builderForValue.build(); + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder mergePartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (partialFailureError_ != null) { + partialFailureError_ = + com.google.rpc.Status.newBuilder(partialFailureError_).mergeFrom(value).buildPartial(); + } else { + partialFailureError_ = value; + } + onChanged(); + } else { + partialFailureErrorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder clearPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + onChanged(); + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status.Builder getPartialFailureErrorBuilder() { + + onChanged(); + return getPartialFailureErrorFieldBuilder().getBuilder(); + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + if (partialFailureErrorBuilder_ != null) { + return partialFailureErrorBuilder_.getMessageOrBuilder(); + } else { + return partialFailureError_ == null ? + com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getPartialFailureErrorFieldBuilder() { + if (partialFailureErrorBuilder_ == null) { + partialFailureErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getPartialFailureError(), + getParentForChildren(), + isClean()); + partialFailureError_ = null; + } + return partialFailureErrorBuilder_; + } + private java.util.List mutateOperationResponses_ = java.util.Collections.emptyList(); private void ensureMutateOperationResponsesIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { mutateOperationResponses_ = new java.util.ArrayList(mutateOperationResponses_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -692,7 +960,7 @@ public Builder addAllMutateOperationResponses( public Builder clearMutateOperationResponses() { if (mutateOperationResponsesBuilder_ == null) { mutateOperationResponses_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { mutateOperationResponsesBuilder_.clear(); @@ -797,7 +1065,7 @@ public com.google.ads.googleads.v0.services.MutateOperationResponse.Builder addM mutateOperationResponsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v0.services.MutateOperationResponse, com.google.ads.googleads.v0.services.MutateOperationResponse.Builder, com.google.ads.googleads.v0.services.MutateOperationResponseOrBuilder>( mutateOperationResponses_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); mutateOperationResponses_ = null; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateGoogleAdsResponseOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateGoogleAdsResponseOrBuilder.java index 40a590d478..0eda036194 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateGoogleAdsResponseOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateGoogleAdsResponseOrBuilder.java @@ -7,6 +7,40 @@ public interface MutateGoogleAdsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateGoogleAdsResponse) com.google.protobuf.MessageOrBuilder { + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + boolean hasPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.Status getPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder(); + /** *
    * All responses for the mutate.
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanAdGroupsRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanAdGroupsRequest.java
index b70f2d4469..2adbd1db8e 100644
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanAdGroupsRequest.java
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanAdGroupsRequest.java
@@ -22,6 +22,8 @@ private MutateKeywordPlanAdGroupsRequest(com.google.protobuf.GeneratedMessageV3.
   private MutateKeywordPlanAdGroupsRequest() {
     customerId_ = "";
     operations_ = java.util.Collections.emptyList();
+    partialFailure_ = false;
+    validateOnly_ = false;
   }
 
   @java.lang.Override
@@ -63,6 +65,16 @@ private MutateKeywordPlanAdGroupsRequest(
                 input.readMessage(com.google.ads.googleads.v0.services.KeywordPlanAdGroupOperation.parser(), extensionRegistry));
             break;
           }
+          case 24: {
+
+            partialFailure_ = input.readBool();
+            break;
+          }
+          case 32: {
+
+            validateOnly_ = input.readBool();
+            break;
+          }
           default: {
             if (!parseUnknownFieldProto3(
                 input, unknownFields, extensionRegistry, tag)) {
@@ -196,6 +208,36 @@ public com.google.ads.googleads.v0.services.KeywordPlanAdGroupOperationOrBuilder
     return operations_.get(index);
   }
 
+  public static final int PARTIAL_FAILURE_FIELD_NUMBER = 3;
+  private boolean partialFailure_;
+  /**
+   * 
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_; + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -216,6 +258,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < operations_.size(); i++) { output.writeMessage(2, operations_.get(i)); } + if (partialFailure_ != false) { + output.writeBool(3, partialFailure_); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } unknownFields.writeTo(output); } @@ -232,6 +280,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, operations_.get(i)); } + if (partialFailure_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, partialFailure_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -252,6 +308,10 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getCustomerId()); result = result && getOperationsList() .equals(other.getOperationsList()); + result = result && (getPartialFailure() + == other.getPartialFailure()); + result = result && (getValidateOnly() + == other.getValidateOnly()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -269,6 +329,12 @@ public int hashCode() { hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + getOperationsList().hashCode(); } + hash = (37 * hash) + PARTIAL_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPartialFailure()); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -415,6 +481,10 @@ public Builder clear() { } else { operationsBuilder_.clear(); } + partialFailure_ = false; + + validateOnly_ = false; + return this; } @@ -453,6 +523,8 @@ public com.google.ads.googleads.v0.services.MutateKeywordPlanAdGroupsRequest bui } else { result.operations_ = operationsBuilder_.build(); } + result.partialFailure_ = partialFailure_; + result.validateOnly_ = validateOnly_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -532,6 +604,12 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateKeywordPlanA } } } + if (other.getPartialFailure() != false) { + setPartialFailure(other.getPartialFailure()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -962,6 +1040,94 @@ public com.google.ads.googleads.v0.services.KeywordPlanAdGroupOperation.Builder } return operationsBuilder_; } + + private boolean partialFailure_ ; + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder setPartialFailure(boolean value) { + + partialFailure_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder clearPartialFailure() { + + partialFailure_ = false; + onChanged(); + return this; + } + + private boolean validateOnly_ ; + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanAdGroupsRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanAdGroupsRequestOrBuilder.java index 7dbf09c941..2a33d4148f 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanAdGroupsRequestOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanAdGroupsRequestOrBuilder.java @@ -68,4 +68,26 @@ public interface MutateKeywordPlanAdGroupsRequestOrBuilder extends */ com.google.ads.googleads.v0.services.KeywordPlanAdGroupOperationOrBuilder getOperationsOrBuilder( int index); + + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + boolean getPartialFailure(); + + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + boolean getValidateOnly(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanAdGroupsResponse.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanAdGroupsResponse.java index 0298308a02..37ac7b467e 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanAdGroupsResponse.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanAdGroupsResponse.java @@ -48,14 +48,27 @@ private MutateKeywordPlanAdGroupsResponse( done = true; break; case 18: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + mutable_bitField0_ |= 0x00000002; } results_.add( input.readMessage(com.google.ads.googleads.v0.services.MutateKeywordPlanAdGroupResult.parser(), extensionRegistry)); break; } + case 26: { + com.google.rpc.Status.Builder subBuilder = null; + if (partialFailureError_ != null) { + subBuilder = partialFailureError_.toBuilder(); + } + partialFailureError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(partialFailureError_); + partialFailureError_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -71,7 +84,7 @@ private MutateKeywordPlanAdGroupsResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); } this.unknownFields = unknownFields.build(); @@ -91,6 +104,49 @@ private MutateKeywordPlanAdGroupsResponse( com.google.ads.googleads.v0.services.MutateKeywordPlanAdGroupsResponse.class, com.google.ads.googleads.v0.services.MutateKeywordPlanAdGroupsResponse.Builder.class); } + private int bitField0_; + public static final int PARTIAL_FAILURE_ERROR_FIELD_NUMBER = 3; + private com.google.rpc.Status partialFailureError_; + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureError_ != null; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + return getPartialFailureError(); + } + public static final int RESULTS_FIELD_NUMBER = 2; private java.util.List results_; /** @@ -163,6 +219,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } + if (partialFailureError_ != null) { + output.writeMessage(3, getPartialFailureError()); + } unknownFields.writeTo(output); } @@ -176,6 +235,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, results_.get(i)); } + if (partialFailureError_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPartialFailureError()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -192,6 +255,11 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.googleads.v0.services.MutateKeywordPlanAdGroupsResponse other = (com.google.ads.googleads.v0.services.MutateKeywordPlanAdGroupsResponse) obj; boolean result = true; + result = result && (hasPartialFailureError() == other.hasPartialFailureError()); + if (hasPartialFailureError()) { + result = result && getPartialFailureError() + .equals(other.getPartialFailureError()); + } result = result && getResultsList() .equals(other.getResultsList()); result = result && unknownFields.equals(other.unknownFields); @@ -205,6 +273,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPartialFailureError()) { + hash = (37 * hash) + PARTIAL_FAILURE_ERROR_FIELD_NUMBER; + hash = (53 * hash) + getPartialFailureError().hashCode(); + } if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); @@ -347,9 +419,15 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { resultsBuilder_.clear(); } @@ -380,15 +458,22 @@ public com.google.ads.googleads.v0.services.MutateKeywordPlanAdGroupsResponse bu public com.google.ads.googleads.v0.services.MutateKeywordPlanAdGroupsResponse buildPartial() { com.google.ads.googleads.v0.services.MutateKeywordPlanAdGroupsResponse result = new com.google.ads.googleads.v0.services.MutateKeywordPlanAdGroupsResponse(this); int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (partialFailureErrorBuilder_ == null) { + result.partialFailureError_ = partialFailureError_; + } else { + result.partialFailureError_ = partialFailureErrorBuilder_.build(); + } if (resultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.results_ = results_; } else { result.results_ = resultsBuilder_.build(); } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -437,11 +522,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateKeywordPlanAdGroupsResponse other) { if (other == com.google.ads.googleads.v0.services.MutateKeywordPlanAdGroupsResponse.getDefaultInstance()) return this; + if (other.hasPartialFailureError()) { + mergePartialFailureError(other.getPartialFailureError()); + } if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResultsIsMutable(); results_.addAll(other.results_); @@ -454,7 +542,7 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateKeywordPlanA resultsBuilder_.dispose(); resultsBuilder_ = null; results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); resultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResultsFieldBuilder() : null; @@ -493,12 +581,192 @@ public Builder mergeFrom( } private int bitField0_; + private com.google.rpc.Status partialFailureError_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> partialFailureErrorBuilder_; + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureErrorBuilder_ != null || partialFailureError_ != null; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } else { + return partialFailureErrorBuilder_.getMessage(); + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partialFailureError_ = value; + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError( + com.google.rpc.Status.Builder builderForValue) { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = builderForValue.build(); + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder mergePartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (partialFailureError_ != null) { + partialFailureError_ = + com.google.rpc.Status.newBuilder(partialFailureError_).mergeFrom(value).buildPartial(); + } else { + partialFailureError_ = value; + } + onChanged(); + } else { + partialFailureErrorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder clearPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + onChanged(); + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status.Builder getPartialFailureErrorBuilder() { + + onChanged(); + return getPartialFailureErrorFieldBuilder().getBuilder(); + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + if (partialFailureErrorBuilder_ != null) { + return partialFailureErrorBuilder_.getMessageOrBuilder(); + } else { + return partialFailureError_ == null ? + com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getPartialFailureErrorFieldBuilder() { + if (partialFailureErrorBuilder_ == null) { + partialFailureErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getPartialFailureError(), + getParentForChildren(), + isClean()); + partialFailureError_ = null; + } + return partialFailureErrorBuilder_; + } + private java.util.List results_ = java.util.Collections.emptyList(); private void ensureResultsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(results_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -692,7 +960,7 @@ public Builder addAllResults( public Builder clearResults() { if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { resultsBuilder_.clear(); @@ -797,7 +1065,7 @@ public com.google.ads.googleads.v0.services.MutateKeywordPlanAdGroupResult.Build resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v0.services.MutateKeywordPlanAdGroupResult, com.google.ads.googleads.v0.services.MutateKeywordPlanAdGroupResult.Builder, com.google.ads.googleads.v0.services.MutateKeywordPlanAdGroupResultOrBuilder>( results_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); results_ = null; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanAdGroupsResponseOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanAdGroupsResponseOrBuilder.java index cf6dbfb8d5..a9812b46e7 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanAdGroupsResponseOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanAdGroupsResponseOrBuilder.java @@ -7,6 +7,40 @@ public interface MutateKeywordPlanAdGroupsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateKeywordPlanAdGroupsResponse) com.google.protobuf.MessageOrBuilder { + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + boolean hasPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.Status getPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder(); + /** *
    * All results for the mutate.
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanCampaignsRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanCampaignsRequest.java
index 572bf32388..5cf4d94fb0 100644
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanCampaignsRequest.java
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanCampaignsRequest.java
@@ -23,6 +23,8 @@ private MutateKeywordPlanCampaignsRequest(com.google.protobuf.GeneratedMessageV3
   private MutateKeywordPlanCampaignsRequest() {
     customerId_ = "";
     operations_ = java.util.Collections.emptyList();
+    partialFailure_ = false;
+    validateOnly_ = false;
   }
 
   @java.lang.Override
@@ -64,6 +66,16 @@ private MutateKeywordPlanCampaignsRequest(
                 input.readMessage(com.google.ads.googleads.v0.services.KeywordPlanCampaignOperation.parser(), extensionRegistry));
             break;
           }
+          case 24: {
+
+            partialFailure_ = input.readBool();
+            break;
+          }
+          case 32: {
+
+            validateOnly_ = input.readBool();
+            break;
+          }
           default: {
             if (!parseUnknownFieldProto3(
                 input, unknownFields, extensionRegistry, tag)) {
@@ -197,6 +209,36 @@ public com.google.ads.googleads.v0.services.KeywordPlanCampaignOperationOrBuilde
     return operations_.get(index);
   }
 
+  public static final int PARTIAL_FAILURE_FIELD_NUMBER = 3;
+  private boolean partialFailure_;
+  /**
+   * 
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_; + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -217,6 +259,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < operations_.size(); i++) { output.writeMessage(2, operations_.get(i)); } + if (partialFailure_ != false) { + output.writeBool(3, partialFailure_); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } unknownFields.writeTo(output); } @@ -233,6 +281,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, operations_.get(i)); } + if (partialFailure_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, partialFailure_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -253,6 +309,10 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getCustomerId()); result = result && getOperationsList() .equals(other.getOperationsList()); + result = result && (getPartialFailure() + == other.getPartialFailure()); + result = result && (getValidateOnly() + == other.getValidateOnly()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -270,6 +330,12 @@ public int hashCode() { hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + getOperationsList().hashCode(); } + hash = (37 * hash) + PARTIAL_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPartialFailure()); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -417,6 +483,10 @@ public Builder clear() { } else { operationsBuilder_.clear(); } + partialFailure_ = false; + + validateOnly_ = false; + return this; } @@ -455,6 +525,8 @@ public com.google.ads.googleads.v0.services.MutateKeywordPlanCampaignsRequest bu } else { result.operations_ = operationsBuilder_.build(); } + result.partialFailure_ = partialFailure_; + result.validateOnly_ = validateOnly_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -534,6 +606,12 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateKeywordPlanC } } } + if (other.getPartialFailure() != false) { + setPartialFailure(other.getPartialFailure()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -964,6 +1042,94 @@ public com.google.ads.googleads.v0.services.KeywordPlanCampaignOperation.Builder } return operationsBuilder_; } + + private boolean partialFailure_ ; + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder setPartialFailure(boolean value) { + + partialFailure_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder clearPartialFailure() { + + partialFailure_ = false; + onChanged(); + return this; + } + + private boolean validateOnly_ ; + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanCampaignsRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanCampaignsRequestOrBuilder.java index dc86d7e8e2..831ff9d4d2 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanCampaignsRequestOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanCampaignsRequestOrBuilder.java @@ -68,4 +68,26 @@ public interface MutateKeywordPlanCampaignsRequestOrBuilder extends */ com.google.ads.googleads.v0.services.KeywordPlanCampaignOperationOrBuilder getOperationsOrBuilder( int index); + + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + boolean getPartialFailure(); + + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + boolean getValidateOnly(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanCampaignsResponse.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanCampaignsResponse.java index 004f073b78..e8e42bc822 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanCampaignsResponse.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanCampaignsResponse.java @@ -48,14 +48,27 @@ private MutateKeywordPlanCampaignsResponse( done = true; break; case 18: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + mutable_bitField0_ |= 0x00000002; } results_.add( input.readMessage(com.google.ads.googleads.v0.services.MutateKeywordPlanCampaignResult.parser(), extensionRegistry)); break; } + case 26: { + com.google.rpc.Status.Builder subBuilder = null; + if (partialFailureError_ != null) { + subBuilder = partialFailureError_.toBuilder(); + } + partialFailureError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(partialFailureError_); + partialFailureError_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -71,7 +84,7 @@ private MutateKeywordPlanCampaignsResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); } this.unknownFields = unknownFields.build(); @@ -91,6 +104,49 @@ private MutateKeywordPlanCampaignsResponse( com.google.ads.googleads.v0.services.MutateKeywordPlanCampaignsResponse.class, com.google.ads.googleads.v0.services.MutateKeywordPlanCampaignsResponse.Builder.class); } + private int bitField0_; + public static final int PARTIAL_FAILURE_ERROR_FIELD_NUMBER = 3; + private com.google.rpc.Status partialFailureError_; + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureError_ != null; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + return getPartialFailureError(); + } + public static final int RESULTS_FIELD_NUMBER = 2; private java.util.List results_; /** @@ -163,6 +219,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } + if (partialFailureError_ != null) { + output.writeMessage(3, getPartialFailureError()); + } unknownFields.writeTo(output); } @@ -176,6 +235,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, results_.get(i)); } + if (partialFailureError_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPartialFailureError()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -192,6 +255,11 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.googleads.v0.services.MutateKeywordPlanCampaignsResponse other = (com.google.ads.googleads.v0.services.MutateKeywordPlanCampaignsResponse) obj; boolean result = true; + result = result && (hasPartialFailureError() == other.hasPartialFailureError()); + if (hasPartialFailureError()) { + result = result && getPartialFailureError() + .equals(other.getPartialFailureError()); + } result = result && getResultsList() .equals(other.getResultsList()); result = result && unknownFields.equals(other.unknownFields); @@ -205,6 +273,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPartialFailureError()) { + hash = (37 * hash) + PARTIAL_FAILURE_ERROR_FIELD_NUMBER; + hash = (53 * hash) + getPartialFailureError().hashCode(); + } if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); @@ -347,9 +419,15 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { resultsBuilder_.clear(); } @@ -380,15 +458,22 @@ public com.google.ads.googleads.v0.services.MutateKeywordPlanCampaignsResponse b public com.google.ads.googleads.v0.services.MutateKeywordPlanCampaignsResponse buildPartial() { com.google.ads.googleads.v0.services.MutateKeywordPlanCampaignsResponse result = new com.google.ads.googleads.v0.services.MutateKeywordPlanCampaignsResponse(this); int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (partialFailureErrorBuilder_ == null) { + result.partialFailureError_ = partialFailureError_; + } else { + result.partialFailureError_ = partialFailureErrorBuilder_.build(); + } if (resultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.results_ = results_; } else { result.results_ = resultsBuilder_.build(); } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -437,11 +522,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateKeywordPlanCampaignsResponse other) { if (other == com.google.ads.googleads.v0.services.MutateKeywordPlanCampaignsResponse.getDefaultInstance()) return this; + if (other.hasPartialFailureError()) { + mergePartialFailureError(other.getPartialFailureError()); + } if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResultsIsMutable(); results_.addAll(other.results_); @@ -454,7 +542,7 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateKeywordPlanC resultsBuilder_.dispose(); resultsBuilder_ = null; results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); resultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResultsFieldBuilder() : null; @@ -493,12 +581,192 @@ public Builder mergeFrom( } private int bitField0_; + private com.google.rpc.Status partialFailureError_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> partialFailureErrorBuilder_; + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureErrorBuilder_ != null || partialFailureError_ != null; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } else { + return partialFailureErrorBuilder_.getMessage(); + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partialFailureError_ = value; + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError( + com.google.rpc.Status.Builder builderForValue) { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = builderForValue.build(); + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder mergePartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (partialFailureError_ != null) { + partialFailureError_ = + com.google.rpc.Status.newBuilder(partialFailureError_).mergeFrom(value).buildPartial(); + } else { + partialFailureError_ = value; + } + onChanged(); + } else { + partialFailureErrorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder clearPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + onChanged(); + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status.Builder getPartialFailureErrorBuilder() { + + onChanged(); + return getPartialFailureErrorFieldBuilder().getBuilder(); + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + if (partialFailureErrorBuilder_ != null) { + return partialFailureErrorBuilder_.getMessageOrBuilder(); + } else { + return partialFailureError_ == null ? + com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getPartialFailureErrorFieldBuilder() { + if (partialFailureErrorBuilder_ == null) { + partialFailureErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getPartialFailureError(), + getParentForChildren(), + isClean()); + partialFailureError_ = null; + } + return partialFailureErrorBuilder_; + } + private java.util.List results_ = java.util.Collections.emptyList(); private void ensureResultsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(results_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -692,7 +960,7 @@ public Builder addAllResults( public Builder clearResults() { if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { resultsBuilder_.clear(); @@ -797,7 +1065,7 @@ public com.google.ads.googleads.v0.services.MutateKeywordPlanCampaignResult.Buil resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v0.services.MutateKeywordPlanCampaignResult, com.google.ads.googleads.v0.services.MutateKeywordPlanCampaignResult.Builder, com.google.ads.googleads.v0.services.MutateKeywordPlanCampaignResultOrBuilder>( results_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); results_ = null; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanCampaignsResponseOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanCampaignsResponseOrBuilder.java index 8479028ff9..0431ba0b3a 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanCampaignsResponseOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanCampaignsResponseOrBuilder.java @@ -7,6 +7,40 @@ public interface MutateKeywordPlanCampaignsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateKeywordPlanCampaignsResponse) com.google.protobuf.MessageOrBuilder { + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + boolean hasPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.Status getPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder(); + /** *
    * All results for the mutate.
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanKeywordsRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanKeywordsRequest.java
index c0f41a4657..24e69feffd 100644
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanKeywordsRequest.java
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanKeywordsRequest.java
@@ -22,6 +22,8 @@ private MutateKeywordPlanKeywordsRequest(com.google.protobuf.GeneratedMessageV3.
   private MutateKeywordPlanKeywordsRequest() {
     customerId_ = "";
     operations_ = java.util.Collections.emptyList();
+    partialFailure_ = false;
+    validateOnly_ = false;
   }
 
   @java.lang.Override
@@ -63,6 +65,16 @@ private MutateKeywordPlanKeywordsRequest(
                 input.readMessage(com.google.ads.googleads.v0.services.KeywordPlanKeywordOperation.parser(), extensionRegistry));
             break;
           }
+          case 24: {
+
+            partialFailure_ = input.readBool();
+            break;
+          }
+          case 32: {
+
+            validateOnly_ = input.readBool();
+            break;
+          }
           default: {
             if (!parseUnknownFieldProto3(
                 input, unknownFields, extensionRegistry, tag)) {
@@ -196,6 +208,36 @@ public com.google.ads.googleads.v0.services.KeywordPlanKeywordOperationOrBuilder
     return operations_.get(index);
   }
 
+  public static final int PARTIAL_FAILURE_FIELD_NUMBER = 3;
+  private boolean partialFailure_;
+  /**
+   * 
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_; + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -216,6 +258,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < operations_.size(); i++) { output.writeMessage(2, operations_.get(i)); } + if (partialFailure_ != false) { + output.writeBool(3, partialFailure_); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } unknownFields.writeTo(output); } @@ -232,6 +280,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, operations_.get(i)); } + if (partialFailure_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, partialFailure_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -252,6 +308,10 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getCustomerId()); result = result && getOperationsList() .equals(other.getOperationsList()); + result = result && (getPartialFailure() + == other.getPartialFailure()); + result = result && (getValidateOnly() + == other.getValidateOnly()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -269,6 +329,12 @@ public int hashCode() { hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + getOperationsList().hashCode(); } + hash = (37 * hash) + PARTIAL_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPartialFailure()); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -415,6 +481,10 @@ public Builder clear() { } else { operationsBuilder_.clear(); } + partialFailure_ = false; + + validateOnly_ = false; + return this; } @@ -453,6 +523,8 @@ public com.google.ads.googleads.v0.services.MutateKeywordPlanKeywordsRequest bui } else { result.operations_ = operationsBuilder_.build(); } + result.partialFailure_ = partialFailure_; + result.validateOnly_ = validateOnly_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -532,6 +604,12 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateKeywordPlanK } } } + if (other.getPartialFailure() != false) { + setPartialFailure(other.getPartialFailure()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -962,6 +1040,94 @@ public com.google.ads.googleads.v0.services.KeywordPlanKeywordOperation.Builder } return operationsBuilder_; } + + private boolean partialFailure_ ; + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder setPartialFailure(boolean value) { + + partialFailure_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder clearPartialFailure() { + + partialFailure_ = false; + onChanged(); + return this; + } + + private boolean validateOnly_ ; + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanKeywordsRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanKeywordsRequestOrBuilder.java index a9ea3a51dc..6456330efe 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanKeywordsRequestOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanKeywordsRequestOrBuilder.java @@ -68,4 +68,26 @@ public interface MutateKeywordPlanKeywordsRequestOrBuilder extends */ com.google.ads.googleads.v0.services.KeywordPlanKeywordOperationOrBuilder getOperationsOrBuilder( int index); + + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + boolean getPartialFailure(); + + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + boolean getValidateOnly(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanKeywordsResponse.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanKeywordsResponse.java index c7081816be..ea33ea645b 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanKeywordsResponse.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanKeywordsResponse.java @@ -48,14 +48,27 @@ private MutateKeywordPlanKeywordsResponse( done = true; break; case 18: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + mutable_bitField0_ |= 0x00000002; } results_.add( input.readMessage(com.google.ads.googleads.v0.services.MutateKeywordPlanKeywordResult.parser(), extensionRegistry)); break; } + case 26: { + com.google.rpc.Status.Builder subBuilder = null; + if (partialFailureError_ != null) { + subBuilder = partialFailureError_.toBuilder(); + } + partialFailureError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(partialFailureError_); + partialFailureError_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -71,7 +84,7 @@ private MutateKeywordPlanKeywordsResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); } this.unknownFields = unknownFields.build(); @@ -91,6 +104,49 @@ private MutateKeywordPlanKeywordsResponse( com.google.ads.googleads.v0.services.MutateKeywordPlanKeywordsResponse.class, com.google.ads.googleads.v0.services.MutateKeywordPlanKeywordsResponse.Builder.class); } + private int bitField0_; + public static final int PARTIAL_FAILURE_ERROR_FIELD_NUMBER = 3; + private com.google.rpc.Status partialFailureError_; + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureError_ != null; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + return getPartialFailureError(); + } + public static final int RESULTS_FIELD_NUMBER = 2; private java.util.List results_; /** @@ -163,6 +219,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } + if (partialFailureError_ != null) { + output.writeMessage(3, getPartialFailureError()); + } unknownFields.writeTo(output); } @@ -176,6 +235,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, results_.get(i)); } + if (partialFailureError_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPartialFailureError()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -192,6 +255,11 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.googleads.v0.services.MutateKeywordPlanKeywordsResponse other = (com.google.ads.googleads.v0.services.MutateKeywordPlanKeywordsResponse) obj; boolean result = true; + result = result && (hasPartialFailureError() == other.hasPartialFailureError()); + if (hasPartialFailureError()) { + result = result && getPartialFailureError() + .equals(other.getPartialFailureError()); + } result = result && getResultsList() .equals(other.getResultsList()); result = result && unknownFields.equals(other.unknownFields); @@ -205,6 +273,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPartialFailureError()) { + hash = (37 * hash) + PARTIAL_FAILURE_ERROR_FIELD_NUMBER; + hash = (53 * hash) + getPartialFailureError().hashCode(); + } if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); @@ -347,9 +419,15 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { resultsBuilder_.clear(); } @@ -380,15 +458,22 @@ public com.google.ads.googleads.v0.services.MutateKeywordPlanKeywordsResponse bu public com.google.ads.googleads.v0.services.MutateKeywordPlanKeywordsResponse buildPartial() { com.google.ads.googleads.v0.services.MutateKeywordPlanKeywordsResponse result = new com.google.ads.googleads.v0.services.MutateKeywordPlanKeywordsResponse(this); int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (partialFailureErrorBuilder_ == null) { + result.partialFailureError_ = partialFailureError_; + } else { + result.partialFailureError_ = partialFailureErrorBuilder_.build(); + } if (resultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.results_ = results_; } else { result.results_ = resultsBuilder_.build(); } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -437,11 +522,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateKeywordPlanKeywordsResponse other) { if (other == com.google.ads.googleads.v0.services.MutateKeywordPlanKeywordsResponse.getDefaultInstance()) return this; + if (other.hasPartialFailureError()) { + mergePartialFailureError(other.getPartialFailureError()); + } if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResultsIsMutable(); results_.addAll(other.results_); @@ -454,7 +542,7 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateKeywordPlanK resultsBuilder_.dispose(); resultsBuilder_ = null; results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); resultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResultsFieldBuilder() : null; @@ -493,12 +581,192 @@ public Builder mergeFrom( } private int bitField0_; + private com.google.rpc.Status partialFailureError_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> partialFailureErrorBuilder_; + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureErrorBuilder_ != null || partialFailureError_ != null; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } else { + return partialFailureErrorBuilder_.getMessage(); + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partialFailureError_ = value; + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError( + com.google.rpc.Status.Builder builderForValue) { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = builderForValue.build(); + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder mergePartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (partialFailureError_ != null) { + partialFailureError_ = + com.google.rpc.Status.newBuilder(partialFailureError_).mergeFrom(value).buildPartial(); + } else { + partialFailureError_ = value; + } + onChanged(); + } else { + partialFailureErrorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder clearPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + onChanged(); + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status.Builder getPartialFailureErrorBuilder() { + + onChanged(); + return getPartialFailureErrorFieldBuilder().getBuilder(); + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + if (partialFailureErrorBuilder_ != null) { + return partialFailureErrorBuilder_.getMessageOrBuilder(); + } else { + return partialFailureError_ == null ? + com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getPartialFailureErrorFieldBuilder() { + if (partialFailureErrorBuilder_ == null) { + partialFailureErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getPartialFailureError(), + getParentForChildren(), + isClean()); + partialFailureError_ = null; + } + return partialFailureErrorBuilder_; + } + private java.util.List results_ = java.util.Collections.emptyList(); private void ensureResultsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(results_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -692,7 +960,7 @@ public Builder addAllResults( public Builder clearResults() { if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { resultsBuilder_.clear(); @@ -797,7 +1065,7 @@ public com.google.ads.googleads.v0.services.MutateKeywordPlanKeywordResult.Build resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v0.services.MutateKeywordPlanKeywordResult, com.google.ads.googleads.v0.services.MutateKeywordPlanKeywordResult.Builder, com.google.ads.googleads.v0.services.MutateKeywordPlanKeywordResultOrBuilder>( results_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); results_ = null; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanKeywordsResponseOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanKeywordsResponseOrBuilder.java index 3aa8333cf3..f88bba6638 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanKeywordsResponseOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanKeywordsResponseOrBuilder.java @@ -7,6 +7,40 @@ public interface MutateKeywordPlanKeywordsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateKeywordPlanKeywordsResponse) com.google.protobuf.MessageOrBuilder { + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + boolean hasPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.Status getPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder(); + /** *
    * All results for the mutate.
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanNegativeKeywordsRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanNegativeKeywordsRequest.java
index 19e77048eb..f0820d2c2b 100644
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanNegativeKeywordsRequest.java
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanNegativeKeywordsRequest.java
@@ -23,6 +23,8 @@ private MutateKeywordPlanNegativeKeywordsRequest(com.google.protobuf.GeneratedMe
   private MutateKeywordPlanNegativeKeywordsRequest() {
     customerId_ = "";
     operations_ = java.util.Collections.emptyList();
+    partialFailure_ = false;
+    validateOnly_ = false;
   }
 
   @java.lang.Override
@@ -64,6 +66,16 @@ private MutateKeywordPlanNegativeKeywordsRequest(
                 input.readMessage(com.google.ads.googleads.v0.services.KeywordPlanNegativeKeywordOperation.parser(), extensionRegistry));
             break;
           }
+          case 24: {
+
+            partialFailure_ = input.readBool();
+            break;
+          }
+          case 32: {
+
+            validateOnly_ = input.readBool();
+            break;
+          }
           default: {
             if (!parseUnknownFieldProto3(
                 input, unknownFields, extensionRegistry, tag)) {
@@ -202,6 +214,36 @@ public com.google.ads.googleads.v0.services.KeywordPlanNegativeKeywordOperationO
     return operations_.get(index);
   }
 
+  public static final int PARTIAL_FAILURE_FIELD_NUMBER = 3;
+  private boolean partialFailure_;
+  /**
+   * 
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_; + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -222,6 +264,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < operations_.size(); i++) { output.writeMessage(2, operations_.get(i)); } + if (partialFailure_ != false) { + output.writeBool(3, partialFailure_); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } unknownFields.writeTo(output); } @@ -238,6 +286,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, operations_.get(i)); } + if (partialFailure_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, partialFailure_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -258,6 +314,10 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getCustomerId()); result = result && getOperationsList() .equals(other.getOperationsList()); + result = result && (getPartialFailure() + == other.getPartialFailure()); + result = result && (getValidateOnly() + == other.getValidateOnly()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -275,6 +335,12 @@ public int hashCode() { hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + getOperationsList().hashCode(); } + hash = (37 * hash) + PARTIAL_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPartialFailure()); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -422,6 +488,10 @@ public Builder clear() { } else { operationsBuilder_.clear(); } + partialFailure_ = false; + + validateOnly_ = false; + return this; } @@ -460,6 +530,8 @@ public com.google.ads.googleads.v0.services.MutateKeywordPlanNegativeKeywordsReq } else { result.operations_ = operationsBuilder_.build(); } + result.partialFailure_ = partialFailure_; + result.validateOnly_ = validateOnly_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -539,6 +611,12 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateKeywordPlanN } } } + if (other.getPartialFailure() != false) { + setPartialFailure(other.getPartialFailure()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -987,6 +1065,94 @@ public com.google.ads.googleads.v0.services.KeywordPlanNegativeKeywordOperation. } return operationsBuilder_; } + + private boolean partialFailure_ ; + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder setPartialFailure(boolean value) { + + partialFailure_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder clearPartialFailure() { + + partialFailure_ = false; + onChanged(); + return this; + } + + private boolean validateOnly_ ; + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanNegativeKeywordsRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanNegativeKeywordsRequestOrBuilder.java index 427c38ed11..8d836a9516 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanNegativeKeywordsRequestOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanNegativeKeywordsRequestOrBuilder.java @@ -73,4 +73,26 @@ public interface MutateKeywordPlanNegativeKeywordsRequestOrBuilder extends */ com.google.ads.googleads.v0.services.KeywordPlanNegativeKeywordOperationOrBuilder getOperationsOrBuilder( int index); + + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + boolean getPartialFailure(); + + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + boolean getValidateOnly(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanNegativeKeywordsResponse.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanNegativeKeywordsResponse.java index 78d45adfe2..2eb8271038 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanNegativeKeywordsResponse.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanNegativeKeywordsResponse.java @@ -48,14 +48,27 @@ private MutateKeywordPlanNegativeKeywordsResponse( done = true; break; case 18: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + mutable_bitField0_ |= 0x00000002; } results_.add( input.readMessage(com.google.ads.googleads.v0.services.MutateKeywordPlanNegativeKeywordResult.parser(), extensionRegistry)); break; } + case 26: { + com.google.rpc.Status.Builder subBuilder = null; + if (partialFailureError_ != null) { + subBuilder = partialFailureError_.toBuilder(); + } + partialFailureError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(partialFailureError_); + partialFailureError_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -71,7 +84,7 @@ private MutateKeywordPlanNegativeKeywordsResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); } this.unknownFields = unknownFields.build(); @@ -91,6 +104,49 @@ private MutateKeywordPlanNegativeKeywordsResponse( com.google.ads.googleads.v0.services.MutateKeywordPlanNegativeKeywordsResponse.class, com.google.ads.googleads.v0.services.MutateKeywordPlanNegativeKeywordsResponse.Builder.class); } + private int bitField0_; + public static final int PARTIAL_FAILURE_ERROR_FIELD_NUMBER = 3; + private com.google.rpc.Status partialFailureError_; + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureError_ != null; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + return getPartialFailureError(); + } + public static final int RESULTS_FIELD_NUMBER = 2; private java.util.List results_; /** @@ -163,6 +219,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } + if (partialFailureError_ != null) { + output.writeMessage(3, getPartialFailureError()); + } unknownFields.writeTo(output); } @@ -176,6 +235,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, results_.get(i)); } + if (partialFailureError_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPartialFailureError()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -192,6 +255,11 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.googleads.v0.services.MutateKeywordPlanNegativeKeywordsResponse other = (com.google.ads.googleads.v0.services.MutateKeywordPlanNegativeKeywordsResponse) obj; boolean result = true; + result = result && (hasPartialFailureError() == other.hasPartialFailureError()); + if (hasPartialFailureError()) { + result = result && getPartialFailureError() + .equals(other.getPartialFailureError()); + } result = result && getResultsList() .equals(other.getResultsList()); result = result && unknownFields.equals(other.unknownFields); @@ -205,6 +273,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPartialFailureError()) { + hash = (37 * hash) + PARTIAL_FAILURE_ERROR_FIELD_NUMBER; + hash = (53 * hash) + getPartialFailureError().hashCode(); + } if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); @@ -347,9 +419,15 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { resultsBuilder_.clear(); } @@ -380,15 +458,22 @@ public com.google.ads.googleads.v0.services.MutateKeywordPlanNegativeKeywordsRes public com.google.ads.googleads.v0.services.MutateKeywordPlanNegativeKeywordsResponse buildPartial() { com.google.ads.googleads.v0.services.MutateKeywordPlanNegativeKeywordsResponse result = new com.google.ads.googleads.v0.services.MutateKeywordPlanNegativeKeywordsResponse(this); int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (partialFailureErrorBuilder_ == null) { + result.partialFailureError_ = partialFailureError_; + } else { + result.partialFailureError_ = partialFailureErrorBuilder_.build(); + } if (resultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.results_ = results_; } else { result.results_ = resultsBuilder_.build(); } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -437,11 +522,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateKeywordPlanNegativeKeywordsResponse other) { if (other == com.google.ads.googleads.v0.services.MutateKeywordPlanNegativeKeywordsResponse.getDefaultInstance()) return this; + if (other.hasPartialFailureError()) { + mergePartialFailureError(other.getPartialFailureError()); + } if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResultsIsMutable(); results_.addAll(other.results_); @@ -454,7 +542,7 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateKeywordPlanN resultsBuilder_.dispose(); resultsBuilder_ = null; results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); resultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResultsFieldBuilder() : null; @@ -493,12 +581,192 @@ public Builder mergeFrom( } private int bitField0_; + private com.google.rpc.Status partialFailureError_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> partialFailureErrorBuilder_; + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureErrorBuilder_ != null || partialFailureError_ != null; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } else { + return partialFailureErrorBuilder_.getMessage(); + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partialFailureError_ = value; + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError( + com.google.rpc.Status.Builder builderForValue) { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = builderForValue.build(); + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder mergePartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (partialFailureError_ != null) { + partialFailureError_ = + com.google.rpc.Status.newBuilder(partialFailureError_).mergeFrom(value).buildPartial(); + } else { + partialFailureError_ = value; + } + onChanged(); + } else { + partialFailureErrorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder clearPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + onChanged(); + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status.Builder getPartialFailureErrorBuilder() { + + onChanged(); + return getPartialFailureErrorFieldBuilder().getBuilder(); + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + if (partialFailureErrorBuilder_ != null) { + return partialFailureErrorBuilder_.getMessageOrBuilder(); + } else { + return partialFailureError_ == null ? + com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getPartialFailureErrorFieldBuilder() { + if (partialFailureErrorBuilder_ == null) { + partialFailureErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getPartialFailureError(), + getParentForChildren(), + isClean()); + partialFailureError_ = null; + } + return partialFailureErrorBuilder_; + } + private java.util.List results_ = java.util.Collections.emptyList(); private void ensureResultsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(results_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -692,7 +960,7 @@ public Builder addAllResults( public Builder clearResults() { if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { resultsBuilder_.clear(); @@ -797,7 +1065,7 @@ public com.google.ads.googleads.v0.services.MutateKeywordPlanNegativeKeywordResu resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v0.services.MutateKeywordPlanNegativeKeywordResult, com.google.ads.googleads.v0.services.MutateKeywordPlanNegativeKeywordResult.Builder, com.google.ads.googleads.v0.services.MutateKeywordPlanNegativeKeywordResultOrBuilder>( results_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); results_ = null; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanNegativeKeywordsResponseOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanNegativeKeywordsResponseOrBuilder.java index 53e3681149..947f262045 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanNegativeKeywordsResponseOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlanNegativeKeywordsResponseOrBuilder.java @@ -7,6 +7,40 @@ public interface MutateKeywordPlanNegativeKeywordsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateKeywordPlanNegativeKeywordsResponse) com.google.protobuf.MessageOrBuilder { + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + boolean hasPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.Status getPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder(); + /** *
    * All results for the mutate.
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlansRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlansRequest.java
index 31fe0181bd..c01e5f6bdf 100644
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlansRequest.java
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlansRequest.java
@@ -22,6 +22,8 @@ private MutateKeywordPlansRequest(com.google.protobuf.GeneratedMessageV3.Builder
   private MutateKeywordPlansRequest() {
     customerId_ = "";
     operations_ = java.util.Collections.emptyList();
+    partialFailure_ = false;
+    validateOnly_ = false;
   }
 
   @java.lang.Override
@@ -63,6 +65,16 @@ private MutateKeywordPlansRequest(
                 input.readMessage(com.google.ads.googleads.v0.services.KeywordPlanOperation.parser(), extensionRegistry));
             break;
           }
+          case 24: {
+
+            partialFailure_ = input.readBool();
+            break;
+          }
+          case 32: {
+
+            validateOnly_ = input.readBool();
+            break;
+          }
           default: {
             if (!parseUnknownFieldProto3(
                 input, unknownFields, extensionRegistry, tag)) {
@@ -196,6 +208,36 @@ public com.google.ads.googleads.v0.services.KeywordPlanOperationOrBuilder getOpe
     return operations_.get(index);
   }
 
+  public static final int PARTIAL_FAILURE_FIELD_NUMBER = 3;
+  private boolean partialFailure_;
+  /**
+   * 
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_; + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -216,6 +258,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < operations_.size(); i++) { output.writeMessage(2, operations_.get(i)); } + if (partialFailure_ != false) { + output.writeBool(3, partialFailure_); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } unknownFields.writeTo(output); } @@ -232,6 +280,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, operations_.get(i)); } + if (partialFailure_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, partialFailure_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -252,6 +308,10 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getCustomerId()); result = result && getOperationsList() .equals(other.getOperationsList()); + result = result && (getPartialFailure() + == other.getPartialFailure()); + result = result && (getValidateOnly() + == other.getValidateOnly()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -269,6 +329,12 @@ public int hashCode() { hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + getOperationsList().hashCode(); } + hash = (37 * hash) + PARTIAL_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPartialFailure()); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -415,6 +481,10 @@ public Builder clear() { } else { operationsBuilder_.clear(); } + partialFailure_ = false; + + validateOnly_ = false; + return this; } @@ -453,6 +523,8 @@ public com.google.ads.googleads.v0.services.MutateKeywordPlansRequest buildParti } else { result.operations_ = operationsBuilder_.build(); } + result.partialFailure_ = partialFailure_; + result.validateOnly_ = validateOnly_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -532,6 +604,12 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateKeywordPlans } } } + if (other.getPartialFailure() != false) { + setPartialFailure(other.getPartialFailure()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -962,6 +1040,94 @@ public com.google.ads.googleads.v0.services.KeywordPlanOperation.Builder addOper } return operationsBuilder_; } + + private boolean partialFailure_ ; + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder setPartialFailure(boolean value) { + + partialFailure_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder clearPartialFailure() { + + partialFailure_ = false; + onChanged(); + return this; + } + + private boolean validateOnly_ ; + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlansRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlansRequestOrBuilder.java index 2fd0ee54dc..19a593a8f7 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlansRequestOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlansRequestOrBuilder.java @@ -68,4 +68,26 @@ public interface MutateKeywordPlansRequestOrBuilder extends */ com.google.ads.googleads.v0.services.KeywordPlanOperationOrBuilder getOperationsOrBuilder( int index); + + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + boolean getPartialFailure(); + + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + boolean getValidateOnly(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlansResponse.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlansResponse.java index b4c913b289..c6d49e309b 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlansResponse.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlansResponse.java @@ -48,14 +48,27 @@ private MutateKeywordPlansResponse( done = true; break; case 18: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + mutable_bitField0_ |= 0x00000002; } results_.add( input.readMessage(com.google.ads.googleads.v0.services.MutateKeywordPlansResult.parser(), extensionRegistry)); break; } + case 26: { + com.google.rpc.Status.Builder subBuilder = null; + if (partialFailureError_ != null) { + subBuilder = partialFailureError_.toBuilder(); + } + partialFailureError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(partialFailureError_); + partialFailureError_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -71,7 +84,7 @@ private MutateKeywordPlansResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); } this.unknownFields = unknownFields.build(); @@ -91,6 +104,49 @@ private MutateKeywordPlansResponse( com.google.ads.googleads.v0.services.MutateKeywordPlansResponse.class, com.google.ads.googleads.v0.services.MutateKeywordPlansResponse.Builder.class); } + private int bitField0_; + public static final int PARTIAL_FAILURE_ERROR_FIELD_NUMBER = 3; + private com.google.rpc.Status partialFailureError_; + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureError_ != null; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + return getPartialFailureError(); + } + public static final int RESULTS_FIELD_NUMBER = 2; private java.util.List results_; /** @@ -163,6 +219,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } + if (partialFailureError_ != null) { + output.writeMessage(3, getPartialFailureError()); + } unknownFields.writeTo(output); } @@ -176,6 +235,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, results_.get(i)); } + if (partialFailureError_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPartialFailureError()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -192,6 +255,11 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.googleads.v0.services.MutateKeywordPlansResponse other = (com.google.ads.googleads.v0.services.MutateKeywordPlansResponse) obj; boolean result = true; + result = result && (hasPartialFailureError() == other.hasPartialFailureError()); + if (hasPartialFailureError()) { + result = result && getPartialFailureError() + .equals(other.getPartialFailureError()); + } result = result && getResultsList() .equals(other.getResultsList()); result = result && unknownFields.equals(other.unknownFields); @@ -205,6 +273,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPartialFailureError()) { + hash = (37 * hash) + PARTIAL_FAILURE_ERROR_FIELD_NUMBER; + hash = (53 * hash) + getPartialFailureError().hashCode(); + } if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); @@ -347,9 +419,15 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { resultsBuilder_.clear(); } @@ -380,15 +458,22 @@ public com.google.ads.googleads.v0.services.MutateKeywordPlansResponse build() { public com.google.ads.googleads.v0.services.MutateKeywordPlansResponse buildPartial() { com.google.ads.googleads.v0.services.MutateKeywordPlansResponse result = new com.google.ads.googleads.v0.services.MutateKeywordPlansResponse(this); int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (partialFailureErrorBuilder_ == null) { + result.partialFailureError_ = partialFailureError_; + } else { + result.partialFailureError_ = partialFailureErrorBuilder_.build(); + } if (resultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.results_ = results_; } else { result.results_ = resultsBuilder_.build(); } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -437,11 +522,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateKeywordPlansResponse other) { if (other == com.google.ads.googleads.v0.services.MutateKeywordPlansResponse.getDefaultInstance()) return this; + if (other.hasPartialFailureError()) { + mergePartialFailureError(other.getPartialFailureError()); + } if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResultsIsMutable(); results_.addAll(other.results_); @@ -454,7 +542,7 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateKeywordPlans resultsBuilder_.dispose(); resultsBuilder_ = null; results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); resultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResultsFieldBuilder() : null; @@ -493,12 +581,192 @@ public Builder mergeFrom( } private int bitField0_; + private com.google.rpc.Status partialFailureError_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> partialFailureErrorBuilder_; + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureErrorBuilder_ != null || partialFailureError_ != null; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } else { + return partialFailureErrorBuilder_.getMessage(); + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partialFailureError_ = value; + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError( + com.google.rpc.Status.Builder builderForValue) { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = builderForValue.build(); + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder mergePartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (partialFailureError_ != null) { + partialFailureError_ = + com.google.rpc.Status.newBuilder(partialFailureError_).mergeFrom(value).buildPartial(); + } else { + partialFailureError_ = value; + } + onChanged(); + } else { + partialFailureErrorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder clearPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + onChanged(); + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status.Builder getPartialFailureErrorBuilder() { + + onChanged(); + return getPartialFailureErrorFieldBuilder().getBuilder(); + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + if (partialFailureErrorBuilder_ != null) { + return partialFailureErrorBuilder_.getMessageOrBuilder(); + } else { + return partialFailureError_ == null ? + com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getPartialFailureErrorFieldBuilder() { + if (partialFailureErrorBuilder_ == null) { + partialFailureErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getPartialFailureError(), + getParentForChildren(), + isClean()); + partialFailureError_ = null; + } + return partialFailureErrorBuilder_; + } + private java.util.List results_ = java.util.Collections.emptyList(); private void ensureResultsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(results_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -692,7 +960,7 @@ public Builder addAllResults( public Builder clearResults() { if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { resultsBuilder_.clear(); @@ -797,7 +1065,7 @@ public com.google.ads.googleads.v0.services.MutateKeywordPlansResult.Builder add resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v0.services.MutateKeywordPlansResult, com.google.ads.googleads.v0.services.MutateKeywordPlansResult.Builder, com.google.ads.googleads.v0.services.MutateKeywordPlansResultOrBuilder>( results_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); results_ = null; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlansResponseOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlansResponseOrBuilder.java index 9ff76fe7fb..234fb685c1 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlansResponseOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateKeywordPlansResponseOrBuilder.java @@ -7,6 +7,40 @@ public interface MutateKeywordPlansResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateKeywordPlansResponse) com.google.protobuf.MessageOrBuilder { + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + boolean hasPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.Status getPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder(); + /** *
    * All results for the mutate.
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateMediaFilesRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateMediaFilesRequest.java
index 837b936069..b251e469c3 100644
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateMediaFilesRequest.java
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateMediaFilesRequest.java
@@ -22,6 +22,8 @@ private MutateMediaFilesRequest(com.google.protobuf.GeneratedMessageV3.Builder
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_; + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -216,6 +258,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < operations_.size(); i++) { output.writeMessage(2, operations_.get(i)); } + if (partialFailure_ != false) { + output.writeBool(3, partialFailure_); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } unknownFields.writeTo(output); } @@ -232,6 +280,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, operations_.get(i)); } + if (partialFailure_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, partialFailure_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -252,6 +308,10 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getCustomerId()); result = result && getOperationsList() .equals(other.getOperationsList()); + result = result && (getPartialFailure() + == other.getPartialFailure()); + result = result && (getValidateOnly() + == other.getValidateOnly()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -269,6 +329,12 @@ public int hashCode() { hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + getOperationsList().hashCode(); } + hash = (37 * hash) + PARTIAL_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPartialFailure()); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -415,6 +481,10 @@ public Builder clear() { } else { operationsBuilder_.clear(); } + partialFailure_ = false; + + validateOnly_ = false; + return this; } @@ -453,6 +523,8 @@ public com.google.ads.googleads.v0.services.MutateMediaFilesRequest buildPartial } else { result.operations_ = operationsBuilder_.build(); } + result.partialFailure_ = partialFailure_; + result.validateOnly_ = validateOnly_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -532,6 +604,12 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateMediaFilesRe } } } + if (other.getPartialFailure() != false) { + setPartialFailure(other.getPartialFailure()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -962,6 +1040,94 @@ public com.google.ads.googleads.v0.services.MediaFileOperation.Builder addOperat } return operationsBuilder_; } + + private boolean partialFailure_ ; + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder setPartialFailure(boolean value) { + + partialFailure_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder clearPartialFailure() { + + partialFailure_ = false; + onChanged(); + return this; + } + + private boolean validateOnly_ ; + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateMediaFilesRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateMediaFilesRequestOrBuilder.java index e39ac8c4be..3a0dd301a7 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateMediaFilesRequestOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateMediaFilesRequestOrBuilder.java @@ -68,4 +68,26 @@ public interface MutateMediaFilesRequestOrBuilder extends */ com.google.ads.googleads.v0.services.MediaFileOperationOrBuilder getOperationsOrBuilder( int index); + + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + boolean getPartialFailure(); + + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + boolean getValidateOnly(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateMediaFilesResponse.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateMediaFilesResponse.java index 9b00e4639d..61c66690bb 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateMediaFilesResponse.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateMediaFilesResponse.java @@ -48,14 +48,27 @@ private MutateMediaFilesResponse( done = true; break; case 18: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + mutable_bitField0_ |= 0x00000002; } results_.add( input.readMessage(com.google.ads.googleads.v0.services.MutateMediaFileResult.parser(), extensionRegistry)); break; } + case 26: { + com.google.rpc.Status.Builder subBuilder = null; + if (partialFailureError_ != null) { + subBuilder = partialFailureError_.toBuilder(); + } + partialFailureError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(partialFailureError_); + partialFailureError_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -71,7 +84,7 @@ private MutateMediaFilesResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); } this.unknownFields = unknownFields.build(); @@ -91,6 +104,49 @@ private MutateMediaFilesResponse( com.google.ads.googleads.v0.services.MutateMediaFilesResponse.class, com.google.ads.googleads.v0.services.MutateMediaFilesResponse.Builder.class); } + private int bitField0_; + public static final int PARTIAL_FAILURE_ERROR_FIELD_NUMBER = 3; + private com.google.rpc.Status partialFailureError_; + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureError_ != null; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + return getPartialFailureError(); + } + public static final int RESULTS_FIELD_NUMBER = 2; private java.util.List results_; /** @@ -163,6 +219,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } + if (partialFailureError_ != null) { + output.writeMessage(3, getPartialFailureError()); + } unknownFields.writeTo(output); } @@ -176,6 +235,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, results_.get(i)); } + if (partialFailureError_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPartialFailureError()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -192,6 +255,11 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.googleads.v0.services.MutateMediaFilesResponse other = (com.google.ads.googleads.v0.services.MutateMediaFilesResponse) obj; boolean result = true; + result = result && (hasPartialFailureError() == other.hasPartialFailureError()); + if (hasPartialFailureError()) { + result = result && getPartialFailureError() + .equals(other.getPartialFailureError()); + } result = result && getResultsList() .equals(other.getResultsList()); result = result && unknownFields.equals(other.unknownFields); @@ -205,6 +273,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPartialFailureError()) { + hash = (37 * hash) + PARTIAL_FAILURE_ERROR_FIELD_NUMBER; + hash = (53 * hash) + getPartialFailureError().hashCode(); + } if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); @@ -347,9 +419,15 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { resultsBuilder_.clear(); } @@ -380,15 +458,22 @@ public com.google.ads.googleads.v0.services.MutateMediaFilesResponse build() { public com.google.ads.googleads.v0.services.MutateMediaFilesResponse buildPartial() { com.google.ads.googleads.v0.services.MutateMediaFilesResponse result = new com.google.ads.googleads.v0.services.MutateMediaFilesResponse(this); int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (partialFailureErrorBuilder_ == null) { + result.partialFailureError_ = partialFailureError_; + } else { + result.partialFailureError_ = partialFailureErrorBuilder_.build(); + } if (resultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.results_ = results_; } else { result.results_ = resultsBuilder_.build(); } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -437,11 +522,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateMediaFilesResponse other) { if (other == com.google.ads.googleads.v0.services.MutateMediaFilesResponse.getDefaultInstance()) return this; + if (other.hasPartialFailureError()) { + mergePartialFailureError(other.getPartialFailureError()); + } if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResultsIsMutable(); results_.addAll(other.results_); @@ -454,7 +542,7 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateMediaFilesRe resultsBuilder_.dispose(); resultsBuilder_ = null; results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); resultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResultsFieldBuilder() : null; @@ -493,12 +581,192 @@ public Builder mergeFrom( } private int bitField0_; + private com.google.rpc.Status partialFailureError_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> partialFailureErrorBuilder_; + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureErrorBuilder_ != null || partialFailureError_ != null; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } else { + return partialFailureErrorBuilder_.getMessage(); + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partialFailureError_ = value; + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError( + com.google.rpc.Status.Builder builderForValue) { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = builderForValue.build(); + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder mergePartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (partialFailureError_ != null) { + partialFailureError_ = + com.google.rpc.Status.newBuilder(partialFailureError_).mergeFrom(value).buildPartial(); + } else { + partialFailureError_ = value; + } + onChanged(); + } else { + partialFailureErrorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder clearPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + onChanged(); + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status.Builder getPartialFailureErrorBuilder() { + + onChanged(); + return getPartialFailureErrorFieldBuilder().getBuilder(); + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + if (partialFailureErrorBuilder_ != null) { + return partialFailureErrorBuilder_.getMessageOrBuilder(); + } else { + return partialFailureError_ == null ? + com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getPartialFailureErrorFieldBuilder() { + if (partialFailureErrorBuilder_ == null) { + partialFailureErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getPartialFailureError(), + getParentForChildren(), + isClean()); + partialFailureError_ = null; + } + return partialFailureErrorBuilder_; + } + private java.util.List results_ = java.util.Collections.emptyList(); private void ensureResultsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(results_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -692,7 +960,7 @@ public Builder addAllResults( public Builder clearResults() { if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { resultsBuilder_.clear(); @@ -797,7 +1065,7 @@ public com.google.ads.googleads.v0.services.MutateMediaFileResult.Builder addRes resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v0.services.MutateMediaFileResult, com.google.ads.googleads.v0.services.MutateMediaFileResult.Builder, com.google.ads.googleads.v0.services.MutateMediaFileResultOrBuilder>( results_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); results_ = null; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateMediaFilesResponseOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateMediaFilesResponseOrBuilder.java index a724bab43c..83df77fe81 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateMediaFilesResponseOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateMediaFilesResponseOrBuilder.java @@ -7,6 +7,40 @@ public interface MutateMediaFilesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateMediaFilesResponse) com.google.protobuf.MessageOrBuilder { + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + boolean hasPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.Status getPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder(); + /** *
    * All results for the mutate.
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateOperation.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateOperation.java
index 3a9b58b816..3f0cfe6a92 100644
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateOperation.java
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateOperation.java
@@ -144,20 +144,6 @@ private MutateOperation(
             operationCase_ = 8;
             break;
           }
-          case 74: {
-            com.google.ads.googleads.v0.services.CampaignGroupOperation.Builder subBuilder = null;
-            if (operationCase_ == 9) {
-              subBuilder = ((com.google.ads.googleads.v0.services.CampaignGroupOperation) operation_).toBuilder();
-            }
-            operation_ =
-                input.readMessage(com.google.ads.googleads.v0.services.CampaignGroupOperation.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.ads.googleads.v0.services.CampaignGroupOperation) operation_);
-              operation_ = subBuilder.buildPartial();
-            }
-            operationCase_ = 9;
-            break;
-          }
           case 82: {
             com.google.ads.googleads.v0.services.CampaignOperation.Builder subBuilder = null;
             if (operationCase_ == 10) {
@@ -299,7 +285,6 @@ public enum OperationCase
     BIDDING_STRATEGY_OPERATION(6),
     CAMPAIGN_BID_MODIFIER_OPERATION(7),
     CAMPAIGN_BUDGET_OPERATION(8),
-    CAMPAIGN_GROUP_OPERATION(9),
     CAMPAIGN_OPERATION(10),
     CAMPAIGN_SHARED_SET_OPERATION(11),
     CONVERSION_ACTION_OPERATION(12),
@@ -329,7 +314,6 @@ public static OperationCase forNumber(int value) {
         case 6: return BIDDING_STRATEGY_OPERATION;
         case 7: return CAMPAIGN_BID_MODIFIER_OPERATION;
         case 8: return CAMPAIGN_BUDGET_OPERATION;
-        case 9: return CAMPAIGN_GROUP_OPERATION;
         case 10: return CAMPAIGN_OPERATION;
         case 11: return CAMPAIGN_SHARED_SET_OPERATION;
         case 12: return CONVERSION_ACTION_OPERATION;
@@ -618,44 +602,6 @@ public com.google.ads.googleads.v0.services.CampaignBudgetOperationOrBuilder get
     return com.google.ads.googleads.v0.services.CampaignBudgetOperation.getDefaultInstance();
   }
 
-  public static final int CAMPAIGN_GROUP_OPERATION_FIELD_NUMBER = 9;
-  /**
-   * 
-   * A campaign group mutate operation.
-   * 
- * - * .google.ads.googleads.v0.services.CampaignGroupOperation campaign_group_operation = 9; - */ - public boolean hasCampaignGroupOperation() { - return operationCase_ == 9; - } - /** - *
-   * A campaign group mutate operation.
-   * 
- * - * .google.ads.googleads.v0.services.CampaignGroupOperation campaign_group_operation = 9; - */ - public com.google.ads.googleads.v0.services.CampaignGroupOperation getCampaignGroupOperation() { - if (operationCase_ == 9) { - return (com.google.ads.googleads.v0.services.CampaignGroupOperation) operation_; - } - return com.google.ads.googleads.v0.services.CampaignGroupOperation.getDefaultInstance(); - } - /** - *
-   * A campaign group mutate operation.
-   * 
- * - * .google.ads.googleads.v0.services.CampaignGroupOperation campaign_group_operation = 9; - */ - public com.google.ads.googleads.v0.services.CampaignGroupOperationOrBuilder getCampaignGroupOperationOrBuilder() { - if (operationCase_ == 9) { - return (com.google.ads.googleads.v0.services.CampaignGroupOperation) operation_; - } - return com.google.ads.googleads.v0.services.CampaignGroupOperation.getDefaultInstance(); - } - public static final int CAMPAIGN_OPERATION_FIELD_NUMBER = 10; /** *
@@ -957,9 +903,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (operationCase_ == 8) {
       output.writeMessage(8, (com.google.ads.googleads.v0.services.CampaignBudgetOperation) operation_);
     }
-    if (operationCase_ == 9) {
-      output.writeMessage(9, (com.google.ads.googleads.v0.services.CampaignGroupOperation) operation_);
-    }
     if (operationCase_ == 10) {
       output.writeMessage(10, (com.google.ads.googleads.v0.services.CampaignOperation) operation_);
     }
@@ -1018,10 +961,6 @@ public int getSerializedSize() {
       size += com.google.protobuf.CodedOutputStream
         .computeMessageSize(8, (com.google.ads.googleads.v0.services.CampaignBudgetOperation) operation_);
     }
-    if (operationCase_ == 9) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(9, (com.google.ads.googleads.v0.services.CampaignGroupOperation) operation_);
-    }
     if (operationCase_ == 10) {
       size += com.google.protobuf.CodedOutputStream
         .computeMessageSize(10, (com.google.ads.googleads.v0.services.CampaignOperation) operation_);
@@ -1098,10 +1037,6 @@ public boolean equals(final java.lang.Object obj) {
         result = result && getCampaignBudgetOperation()
             .equals(other.getCampaignBudgetOperation());
         break;
-      case 9:
-        result = result && getCampaignGroupOperation()
-            .equals(other.getCampaignGroupOperation());
-        break;
       case 10:
         result = result && getCampaignOperation()
             .equals(other.getCampaignOperation());
@@ -1173,10 +1108,6 @@ public int hashCode() {
         hash = (37 * hash) + CAMPAIGN_BUDGET_OPERATION_FIELD_NUMBER;
         hash = (53 * hash) + getCampaignBudgetOperation().hashCode();
         break;
-      case 9:
-        hash = (37 * hash) + CAMPAIGN_GROUP_OPERATION_FIELD_NUMBER;
-        hash = (53 * hash) + getCampaignGroupOperation().hashCode();
-        break;
       case 10:
         hash = (37 * hash) + CAMPAIGN_OPERATION_FIELD_NUMBER;
         hash = (53 * hash) + getCampaignOperation().hashCode();
@@ -1422,13 +1353,6 @@ public com.google.ads.googleads.v0.services.MutateOperation buildPartial() {
           result.operation_ = campaignBudgetOperationBuilder_.build();
         }
       }
-      if (operationCase_ == 9) {
-        if (campaignGroupOperationBuilder_ == null) {
-          result.operation_ = operation_;
-        } else {
-          result.operation_ = campaignGroupOperationBuilder_.build();
-        }
-      }
       if (operationCase_ == 10) {
         if (campaignOperationBuilder_ == null) {
           result.operation_ = operation_;
@@ -1556,10 +1480,6 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateOperation ot
           mergeCampaignBudgetOperation(other.getCampaignBudgetOperation());
           break;
         }
-        case CAMPAIGN_GROUP_OPERATION: {
-          mergeCampaignGroupOperation(other.getCampaignGroupOperation());
-          break;
-        }
         case CAMPAIGN_OPERATION: {
           mergeCampaignOperation(other.getCampaignOperation());
           break;
@@ -2840,178 +2760,6 @@ public com.google.ads.googleads.v0.services.CampaignBudgetOperationOrBuilder get
       return campaignBudgetOperationBuilder_;
     }
 
-    private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.ads.googleads.v0.services.CampaignGroupOperation, com.google.ads.googleads.v0.services.CampaignGroupOperation.Builder, com.google.ads.googleads.v0.services.CampaignGroupOperationOrBuilder> campaignGroupOperationBuilder_;
-    /**
-     * 
-     * A campaign group mutate operation.
-     * 
- * - * .google.ads.googleads.v0.services.CampaignGroupOperation campaign_group_operation = 9; - */ - public boolean hasCampaignGroupOperation() { - return operationCase_ == 9; - } - /** - *
-     * A campaign group mutate operation.
-     * 
- * - * .google.ads.googleads.v0.services.CampaignGroupOperation campaign_group_operation = 9; - */ - public com.google.ads.googleads.v0.services.CampaignGroupOperation getCampaignGroupOperation() { - if (campaignGroupOperationBuilder_ == null) { - if (operationCase_ == 9) { - return (com.google.ads.googleads.v0.services.CampaignGroupOperation) operation_; - } - return com.google.ads.googleads.v0.services.CampaignGroupOperation.getDefaultInstance(); - } else { - if (operationCase_ == 9) { - return campaignGroupOperationBuilder_.getMessage(); - } - return com.google.ads.googleads.v0.services.CampaignGroupOperation.getDefaultInstance(); - } - } - /** - *
-     * A campaign group mutate operation.
-     * 
- * - * .google.ads.googleads.v0.services.CampaignGroupOperation campaign_group_operation = 9; - */ - public Builder setCampaignGroupOperation(com.google.ads.googleads.v0.services.CampaignGroupOperation value) { - if (campaignGroupOperationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - operation_ = value; - onChanged(); - } else { - campaignGroupOperationBuilder_.setMessage(value); - } - operationCase_ = 9; - return this; - } - /** - *
-     * A campaign group mutate operation.
-     * 
- * - * .google.ads.googleads.v0.services.CampaignGroupOperation campaign_group_operation = 9; - */ - public Builder setCampaignGroupOperation( - com.google.ads.googleads.v0.services.CampaignGroupOperation.Builder builderForValue) { - if (campaignGroupOperationBuilder_ == null) { - operation_ = builderForValue.build(); - onChanged(); - } else { - campaignGroupOperationBuilder_.setMessage(builderForValue.build()); - } - operationCase_ = 9; - return this; - } - /** - *
-     * A campaign group mutate operation.
-     * 
- * - * .google.ads.googleads.v0.services.CampaignGroupOperation campaign_group_operation = 9; - */ - public Builder mergeCampaignGroupOperation(com.google.ads.googleads.v0.services.CampaignGroupOperation value) { - if (campaignGroupOperationBuilder_ == null) { - if (operationCase_ == 9 && - operation_ != com.google.ads.googleads.v0.services.CampaignGroupOperation.getDefaultInstance()) { - operation_ = com.google.ads.googleads.v0.services.CampaignGroupOperation.newBuilder((com.google.ads.googleads.v0.services.CampaignGroupOperation) operation_) - .mergeFrom(value).buildPartial(); - } else { - operation_ = value; - } - onChanged(); - } else { - if (operationCase_ == 9) { - campaignGroupOperationBuilder_.mergeFrom(value); - } - campaignGroupOperationBuilder_.setMessage(value); - } - operationCase_ = 9; - return this; - } - /** - *
-     * A campaign group mutate operation.
-     * 
- * - * .google.ads.googleads.v0.services.CampaignGroupOperation campaign_group_operation = 9; - */ - public Builder clearCampaignGroupOperation() { - if (campaignGroupOperationBuilder_ == null) { - if (operationCase_ == 9) { - operationCase_ = 0; - operation_ = null; - onChanged(); - } - } else { - if (operationCase_ == 9) { - operationCase_ = 0; - operation_ = null; - } - campaignGroupOperationBuilder_.clear(); - } - return this; - } - /** - *
-     * A campaign group mutate operation.
-     * 
- * - * .google.ads.googleads.v0.services.CampaignGroupOperation campaign_group_operation = 9; - */ - public com.google.ads.googleads.v0.services.CampaignGroupOperation.Builder getCampaignGroupOperationBuilder() { - return getCampaignGroupOperationFieldBuilder().getBuilder(); - } - /** - *
-     * A campaign group mutate operation.
-     * 
- * - * .google.ads.googleads.v0.services.CampaignGroupOperation campaign_group_operation = 9; - */ - public com.google.ads.googleads.v0.services.CampaignGroupOperationOrBuilder getCampaignGroupOperationOrBuilder() { - if ((operationCase_ == 9) && (campaignGroupOperationBuilder_ != null)) { - return campaignGroupOperationBuilder_.getMessageOrBuilder(); - } else { - if (operationCase_ == 9) { - return (com.google.ads.googleads.v0.services.CampaignGroupOperation) operation_; - } - return com.google.ads.googleads.v0.services.CampaignGroupOperation.getDefaultInstance(); - } - } - /** - *
-     * A campaign group mutate operation.
-     * 
- * - * .google.ads.googleads.v0.services.CampaignGroupOperation campaign_group_operation = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.services.CampaignGroupOperation, com.google.ads.googleads.v0.services.CampaignGroupOperation.Builder, com.google.ads.googleads.v0.services.CampaignGroupOperationOrBuilder> - getCampaignGroupOperationFieldBuilder() { - if (campaignGroupOperationBuilder_ == null) { - if (!(operationCase_ == 9)) { - operation_ = com.google.ads.googleads.v0.services.CampaignGroupOperation.getDefaultInstance(); - } - campaignGroupOperationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.services.CampaignGroupOperation, com.google.ads.googleads.v0.services.CampaignGroupOperation.Builder, com.google.ads.googleads.v0.services.CampaignGroupOperationOrBuilder>( - (com.google.ads.googleads.v0.services.CampaignGroupOperation) operation_, - getParentForChildren(), - isClean()); - operation_ = null; - } - operationCase_ = 9; - onChanged();; - return campaignGroupOperationBuilder_; - } - private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v0.services.CampaignOperation, com.google.ads.googleads.v0.services.CampaignOperation.Builder, com.google.ads.googleads.v0.services.CampaignOperationOrBuilder> campaignOperationBuilder_; /** diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateOperationOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateOperationOrBuilder.java index 98e4c34bc7..9bc004854f 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateOperationOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateOperationOrBuilder.java @@ -182,31 +182,6 @@ public interface MutateOperationOrBuilder extends */ com.google.ads.googleads.v0.services.CampaignBudgetOperationOrBuilder getCampaignBudgetOperationOrBuilder(); - /** - *
-   * A campaign group mutate operation.
-   * 
- * - * .google.ads.googleads.v0.services.CampaignGroupOperation campaign_group_operation = 9; - */ - boolean hasCampaignGroupOperation(); - /** - *
-   * A campaign group mutate operation.
-   * 
- * - * .google.ads.googleads.v0.services.CampaignGroupOperation campaign_group_operation = 9; - */ - com.google.ads.googleads.v0.services.CampaignGroupOperation getCampaignGroupOperation(); - /** - *
-   * A campaign group mutate operation.
-   * 
- * - * .google.ads.googleads.v0.services.CampaignGroupOperation campaign_group_operation = 9; - */ - com.google.ads.googleads.v0.services.CampaignGroupOperationOrBuilder getCampaignGroupOperationOrBuilder(); - /** *
    * A campaign mutate operation.
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateOperationResponse.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateOperationResponse.java
index d19b1ec433..f6eb88cf36 100644
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateOperationResponse.java
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateOperationResponse.java
@@ -144,20 +144,6 @@ private MutateOperationResponse(
             responseCase_ = 8;
             break;
           }
-          case 74: {
-            com.google.ads.googleads.v0.services.MutateCampaignGroupResult.Builder subBuilder = null;
-            if (responseCase_ == 9) {
-              subBuilder = ((com.google.ads.googleads.v0.services.MutateCampaignGroupResult) response_).toBuilder();
-            }
-            response_ =
-                input.readMessage(com.google.ads.googleads.v0.services.MutateCampaignGroupResult.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.ads.googleads.v0.services.MutateCampaignGroupResult) response_);
-              response_ = subBuilder.buildPartial();
-            }
-            responseCase_ = 9;
-            break;
-          }
           case 82: {
             com.google.ads.googleads.v0.services.MutateCampaignResult.Builder subBuilder = null;
             if (responseCase_ == 10) {
@@ -299,7 +285,6 @@ public enum ResponseCase
     BIDDING_STRATEGY_RESULT(6),
     CAMPAIGN_BID_MODIFIER_RESULT(7),
     CAMPAIGN_BUDGET_RESULT(8),
-    CAMPAIGN_GROUP_RESULT(9),
     CAMPAIGN_RESULT(10),
     CAMPAIGN_SHARED_SET_RESULT(11),
     CONVERSION_ACTION_RESULT(12),
@@ -329,7 +314,6 @@ public static ResponseCase forNumber(int value) {
         case 6: return BIDDING_STRATEGY_RESULT;
         case 7: return CAMPAIGN_BID_MODIFIER_RESULT;
         case 8: return CAMPAIGN_BUDGET_RESULT;
-        case 9: return CAMPAIGN_GROUP_RESULT;
         case 10: return CAMPAIGN_RESULT;
         case 11: return CAMPAIGN_SHARED_SET_RESULT;
         case 12: return CONVERSION_ACTION_RESULT;
@@ -618,44 +602,6 @@ public com.google.ads.googleads.v0.services.MutateCampaignBudgetResultOrBuilder
     return com.google.ads.googleads.v0.services.MutateCampaignBudgetResult.getDefaultInstance();
   }
 
-  public static final int CAMPAIGN_GROUP_RESULT_FIELD_NUMBER = 9;
-  /**
-   * 
-   * The result for the campaign group mutate.
-   * 
- * - * .google.ads.googleads.v0.services.MutateCampaignGroupResult campaign_group_result = 9; - */ - public boolean hasCampaignGroupResult() { - return responseCase_ == 9; - } - /** - *
-   * The result for the campaign group mutate.
-   * 
- * - * .google.ads.googleads.v0.services.MutateCampaignGroupResult campaign_group_result = 9; - */ - public com.google.ads.googleads.v0.services.MutateCampaignGroupResult getCampaignGroupResult() { - if (responseCase_ == 9) { - return (com.google.ads.googleads.v0.services.MutateCampaignGroupResult) response_; - } - return com.google.ads.googleads.v0.services.MutateCampaignGroupResult.getDefaultInstance(); - } - /** - *
-   * The result for the campaign group mutate.
-   * 
- * - * .google.ads.googleads.v0.services.MutateCampaignGroupResult campaign_group_result = 9; - */ - public com.google.ads.googleads.v0.services.MutateCampaignGroupResultOrBuilder getCampaignGroupResultOrBuilder() { - if (responseCase_ == 9) { - return (com.google.ads.googleads.v0.services.MutateCampaignGroupResult) response_; - } - return com.google.ads.googleads.v0.services.MutateCampaignGroupResult.getDefaultInstance(); - } - public static final int CAMPAIGN_RESULT_FIELD_NUMBER = 10; /** *
@@ -957,9 +903,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (responseCase_ == 8) {
       output.writeMessage(8, (com.google.ads.googleads.v0.services.MutateCampaignBudgetResult) response_);
     }
-    if (responseCase_ == 9) {
-      output.writeMessage(9, (com.google.ads.googleads.v0.services.MutateCampaignGroupResult) response_);
-    }
     if (responseCase_ == 10) {
       output.writeMessage(10, (com.google.ads.googleads.v0.services.MutateCampaignResult) response_);
     }
@@ -1018,10 +961,6 @@ public int getSerializedSize() {
       size += com.google.protobuf.CodedOutputStream
         .computeMessageSize(8, (com.google.ads.googleads.v0.services.MutateCampaignBudgetResult) response_);
     }
-    if (responseCase_ == 9) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(9, (com.google.ads.googleads.v0.services.MutateCampaignGroupResult) response_);
-    }
     if (responseCase_ == 10) {
       size += com.google.protobuf.CodedOutputStream
         .computeMessageSize(10, (com.google.ads.googleads.v0.services.MutateCampaignResult) response_);
@@ -1098,10 +1037,6 @@ public boolean equals(final java.lang.Object obj) {
         result = result && getCampaignBudgetResult()
             .equals(other.getCampaignBudgetResult());
         break;
-      case 9:
-        result = result && getCampaignGroupResult()
-            .equals(other.getCampaignGroupResult());
-        break;
       case 10:
         result = result && getCampaignResult()
             .equals(other.getCampaignResult());
@@ -1173,10 +1108,6 @@ public int hashCode() {
         hash = (37 * hash) + CAMPAIGN_BUDGET_RESULT_FIELD_NUMBER;
         hash = (53 * hash) + getCampaignBudgetResult().hashCode();
         break;
-      case 9:
-        hash = (37 * hash) + CAMPAIGN_GROUP_RESULT_FIELD_NUMBER;
-        hash = (53 * hash) + getCampaignGroupResult().hashCode();
-        break;
       case 10:
         hash = (37 * hash) + CAMPAIGN_RESULT_FIELD_NUMBER;
         hash = (53 * hash) + getCampaignResult().hashCode();
@@ -1422,13 +1353,6 @@ public com.google.ads.googleads.v0.services.MutateOperationResponse buildPartial
           result.response_ = campaignBudgetResultBuilder_.build();
         }
       }
-      if (responseCase_ == 9) {
-        if (campaignGroupResultBuilder_ == null) {
-          result.response_ = response_;
-        } else {
-          result.response_ = campaignGroupResultBuilder_.build();
-        }
-      }
       if (responseCase_ == 10) {
         if (campaignResultBuilder_ == null) {
           result.response_ = response_;
@@ -1556,10 +1480,6 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateOperationRes
           mergeCampaignBudgetResult(other.getCampaignBudgetResult());
           break;
         }
-        case CAMPAIGN_GROUP_RESULT: {
-          mergeCampaignGroupResult(other.getCampaignGroupResult());
-          break;
-        }
         case CAMPAIGN_RESULT: {
           mergeCampaignResult(other.getCampaignResult());
           break;
@@ -2840,178 +2760,6 @@ public com.google.ads.googleads.v0.services.MutateCampaignBudgetResultOrBuilder
       return campaignBudgetResultBuilder_;
     }
 
-    private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.ads.googleads.v0.services.MutateCampaignGroupResult, com.google.ads.googleads.v0.services.MutateCampaignGroupResult.Builder, com.google.ads.googleads.v0.services.MutateCampaignGroupResultOrBuilder> campaignGroupResultBuilder_;
-    /**
-     * 
-     * The result for the campaign group mutate.
-     * 
- * - * .google.ads.googleads.v0.services.MutateCampaignGroupResult campaign_group_result = 9; - */ - public boolean hasCampaignGroupResult() { - return responseCase_ == 9; - } - /** - *
-     * The result for the campaign group mutate.
-     * 
- * - * .google.ads.googleads.v0.services.MutateCampaignGroupResult campaign_group_result = 9; - */ - public com.google.ads.googleads.v0.services.MutateCampaignGroupResult getCampaignGroupResult() { - if (campaignGroupResultBuilder_ == null) { - if (responseCase_ == 9) { - return (com.google.ads.googleads.v0.services.MutateCampaignGroupResult) response_; - } - return com.google.ads.googleads.v0.services.MutateCampaignGroupResult.getDefaultInstance(); - } else { - if (responseCase_ == 9) { - return campaignGroupResultBuilder_.getMessage(); - } - return com.google.ads.googleads.v0.services.MutateCampaignGroupResult.getDefaultInstance(); - } - } - /** - *
-     * The result for the campaign group mutate.
-     * 
- * - * .google.ads.googleads.v0.services.MutateCampaignGroupResult campaign_group_result = 9; - */ - public Builder setCampaignGroupResult(com.google.ads.googleads.v0.services.MutateCampaignGroupResult value) { - if (campaignGroupResultBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - response_ = value; - onChanged(); - } else { - campaignGroupResultBuilder_.setMessage(value); - } - responseCase_ = 9; - return this; - } - /** - *
-     * The result for the campaign group mutate.
-     * 
- * - * .google.ads.googleads.v0.services.MutateCampaignGroupResult campaign_group_result = 9; - */ - public Builder setCampaignGroupResult( - com.google.ads.googleads.v0.services.MutateCampaignGroupResult.Builder builderForValue) { - if (campaignGroupResultBuilder_ == null) { - response_ = builderForValue.build(); - onChanged(); - } else { - campaignGroupResultBuilder_.setMessage(builderForValue.build()); - } - responseCase_ = 9; - return this; - } - /** - *
-     * The result for the campaign group mutate.
-     * 
- * - * .google.ads.googleads.v0.services.MutateCampaignGroupResult campaign_group_result = 9; - */ - public Builder mergeCampaignGroupResult(com.google.ads.googleads.v0.services.MutateCampaignGroupResult value) { - if (campaignGroupResultBuilder_ == null) { - if (responseCase_ == 9 && - response_ != com.google.ads.googleads.v0.services.MutateCampaignGroupResult.getDefaultInstance()) { - response_ = com.google.ads.googleads.v0.services.MutateCampaignGroupResult.newBuilder((com.google.ads.googleads.v0.services.MutateCampaignGroupResult) response_) - .mergeFrom(value).buildPartial(); - } else { - response_ = value; - } - onChanged(); - } else { - if (responseCase_ == 9) { - campaignGroupResultBuilder_.mergeFrom(value); - } - campaignGroupResultBuilder_.setMessage(value); - } - responseCase_ = 9; - return this; - } - /** - *
-     * The result for the campaign group mutate.
-     * 
- * - * .google.ads.googleads.v0.services.MutateCampaignGroupResult campaign_group_result = 9; - */ - public Builder clearCampaignGroupResult() { - if (campaignGroupResultBuilder_ == null) { - if (responseCase_ == 9) { - responseCase_ = 0; - response_ = null; - onChanged(); - } - } else { - if (responseCase_ == 9) { - responseCase_ = 0; - response_ = null; - } - campaignGroupResultBuilder_.clear(); - } - return this; - } - /** - *
-     * The result for the campaign group mutate.
-     * 
- * - * .google.ads.googleads.v0.services.MutateCampaignGroupResult campaign_group_result = 9; - */ - public com.google.ads.googleads.v0.services.MutateCampaignGroupResult.Builder getCampaignGroupResultBuilder() { - return getCampaignGroupResultFieldBuilder().getBuilder(); - } - /** - *
-     * The result for the campaign group mutate.
-     * 
- * - * .google.ads.googleads.v0.services.MutateCampaignGroupResult campaign_group_result = 9; - */ - public com.google.ads.googleads.v0.services.MutateCampaignGroupResultOrBuilder getCampaignGroupResultOrBuilder() { - if ((responseCase_ == 9) && (campaignGroupResultBuilder_ != null)) { - return campaignGroupResultBuilder_.getMessageOrBuilder(); - } else { - if (responseCase_ == 9) { - return (com.google.ads.googleads.v0.services.MutateCampaignGroupResult) response_; - } - return com.google.ads.googleads.v0.services.MutateCampaignGroupResult.getDefaultInstance(); - } - } - /** - *
-     * The result for the campaign group mutate.
-     * 
- * - * .google.ads.googleads.v0.services.MutateCampaignGroupResult campaign_group_result = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.services.MutateCampaignGroupResult, com.google.ads.googleads.v0.services.MutateCampaignGroupResult.Builder, com.google.ads.googleads.v0.services.MutateCampaignGroupResultOrBuilder> - getCampaignGroupResultFieldBuilder() { - if (campaignGroupResultBuilder_ == null) { - if (!(responseCase_ == 9)) { - response_ = com.google.ads.googleads.v0.services.MutateCampaignGroupResult.getDefaultInstance(); - } - campaignGroupResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.ads.googleads.v0.services.MutateCampaignGroupResult, com.google.ads.googleads.v0.services.MutateCampaignGroupResult.Builder, com.google.ads.googleads.v0.services.MutateCampaignGroupResultOrBuilder>( - (com.google.ads.googleads.v0.services.MutateCampaignGroupResult) response_, - getParentForChildren(), - isClean()); - response_ = null; - } - responseCase_ = 9; - onChanged();; - return campaignGroupResultBuilder_; - } - private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v0.services.MutateCampaignResult, com.google.ads.googleads.v0.services.MutateCampaignResult.Builder, com.google.ads.googleads.v0.services.MutateCampaignResultOrBuilder> campaignResultBuilder_; /** diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateOperationResponseOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateOperationResponseOrBuilder.java index ca349899e1..fcffb67974 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateOperationResponseOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateOperationResponseOrBuilder.java @@ -182,31 +182,6 @@ public interface MutateOperationResponseOrBuilder extends */ com.google.ads.googleads.v0.services.MutateCampaignBudgetResultOrBuilder getCampaignBudgetResultOrBuilder(); - /** - *
-   * The result for the campaign group mutate.
-   * 
- * - * .google.ads.googleads.v0.services.MutateCampaignGroupResult campaign_group_result = 9; - */ - boolean hasCampaignGroupResult(); - /** - *
-   * The result for the campaign group mutate.
-   * 
- * - * .google.ads.googleads.v0.services.MutateCampaignGroupResult campaign_group_result = 9; - */ - com.google.ads.googleads.v0.services.MutateCampaignGroupResult getCampaignGroupResult(); - /** - *
-   * The result for the campaign group mutate.
-   * 
- * - * .google.ads.googleads.v0.services.MutateCampaignGroupResult campaign_group_result = 9; - */ - com.google.ads.googleads.v0.services.MutateCampaignGroupResultOrBuilder getCampaignGroupResultOrBuilder(); - /** *
    * The result for the campaign mutate.
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateRemarketingActionResult.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateRemarketingActionResult.java
new file mode 100644
index 0000000000..10996ef939
--- /dev/null
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateRemarketingActionResult.java
@@ -0,0 +1,577 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/ads/googleads/v0/services/remarketing_action_service.proto
+
+package com.google.ads.googleads.v0.services;
+
+/**
+ * 
+ * The result for the remarketing action mutate.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.services.MutateRemarketingActionResult} + */ +public final class MutateRemarketingActionResult extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.services.MutateRemarketingActionResult) + MutateRemarketingActionResultOrBuilder { +private static final long serialVersionUID = 0L; + // Use MutateRemarketingActionResult.newBuilder() to construct. + private MutateRemarketingActionResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MutateRemarketingActionResult() { + resourceName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MutateRemarketingActionResult( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + resourceName_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.services.RemarketingActionServiceProto.internal_static_google_ads_googleads_v0_services_MutateRemarketingActionResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.services.RemarketingActionServiceProto.internal_static_google_ads_googleads_v0_services_MutateRemarketingActionResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.services.MutateRemarketingActionResult.class, com.google.ads.googleads.v0.services.MutateRemarketingActionResult.Builder.class); + } + + public static final int RESOURCE_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object resourceName_; + /** + *
+   * Returned for successful operations.
+   * 
+ * + * string resource_name = 1; + */ + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } + } + /** + *
+   * Returned for successful operations.
+   * 
+ * + * string resource_name = 1; + */ + public com.google.protobuf.ByteString + getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getResourceNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getResourceNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_); + } + size += unknownFields.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.ads.googleads.v0.services.MutateRemarketingActionResult)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.services.MutateRemarketingActionResult other = (com.google.ads.googleads.v0.services.MutateRemarketingActionResult) obj; + + boolean result = true; + result = result && getResourceName() + .equals(other.getResourceName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getResourceName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.services.MutateRemarketingActionResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.MutateRemarketingActionResult parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.services.MutateRemarketingActionResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.MutateRemarketingActionResult 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.ads.googleads.v0.services.MutateRemarketingActionResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.MutateRemarketingActionResult parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.services.MutateRemarketingActionResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.MutateRemarketingActionResult 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.ads.googleads.v0.services.MutateRemarketingActionResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.MutateRemarketingActionResult 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.ads.googleads.v0.services.MutateRemarketingActionResult parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.MutateRemarketingActionResult 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.ads.googleads.v0.services.MutateRemarketingActionResult 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; + } + /** + *
+   * The result for the remarketing action mutate.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.services.MutateRemarketingActionResult} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.services.MutateRemarketingActionResult) + com.google.ads.googleads.v0.services.MutateRemarketingActionResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.services.RemarketingActionServiceProto.internal_static_google_ads_googleads_v0_services_MutateRemarketingActionResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.services.RemarketingActionServiceProto.internal_static_google_ads_googleads_v0_services_MutateRemarketingActionResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.services.MutateRemarketingActionResult.class, com.google.ads.googleads.v0.services.MutateRemarketingActionResult.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.services.MutateRemarketingActionResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + resourceName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.services.RemarketingActionServiceProto.internal_static_google_ads_googleads_v0_services_MutateRemarketingActionResult_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.MutateRemarketingActionResult getDefaultInstanceForType() { + return com.google.ads.googleads.v0.services.MutateRemarketingActionResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.MutateRemarketingActionResult build() { + com.google.ads.googleads.v0.services.MutateRemarketingActionResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.MutateRemarketingActionResult buildPartial() { + com.google.ads.googleads.v0.services.MutateRemarketingActionResult result = new com.google.ads.googleads.v0.services.MutateRemarketingActionResult(this); + result.resourceName_ = resourceName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.services.MutateRemarketingActionResult) { + return mergeFrom((com.google.ads.googleads.v0.services.MutateRemarketingActionResult)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateRemarketingActionResult other) { + if (other == com.google.ads.googleads.v0.services.MutateRemarketingActionResult.getDefaultInstance()) return this; + if (!other.getResourceName().isEmpty()) { + resourceName_ = other.resourceName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.services.MutateRemarketingActionResult parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.services.MutateRemarketingActionResult) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object resourceName_ = ""; + /** + *
+     * Returned for successful operations.
+     * 
+ * + * string resource_name = 1; + */ + public java.lang.String getResourceName() { + java.lang.Object ref = resourceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Returned for successful operations.
+     * 
+ * + * string resource_name = 1; + */ + public com.google.protobuf.ByteString + getResourceNameBytes() { + java.lang.Object ref = resourceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Returned for successful operations.
+     * 
+ * + * string resource_name = 1; + */ + public Builder setResourceName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceName_ = value; + onChanged(); + return this; + } + /** + *
+     * Returned for successful operations.
+     * 
+ * + * string resource_name = 1; + */ + public Builder clearResourceName() { + + resourceName_ = getDefaultInstance().getResourceName(); + onChanged(); + return this; + } + /** + *
+     * Returned for successful operations.
+     * 
+ * + * string resource_name = 1; + */ + public Builder setResourceNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceName_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.services.MutateRemarketingActionResult) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.MutateRemarketingActionResult) + private static final com.google.ads.googleads.v0.services.MutateRemarketingActionResult DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.services.MutateRemarketingActionResult(); + } + + public static com.google.ads.googleads.v0.services.MutateRemarketingActionResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MutateRemarketingActionResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MutateRemarketingActionResult(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.services.MutateRemarketingActionResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignGroupResultOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateRemarketingActionResultOrBuilder.java similarity index 74% rename from google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignGroupResultOrBuilder.java rename to google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateRemarketingActionResultOrBuilder.java index cf58105e0c..6289222408 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateCampaignGroupResultOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateRemarketingActionResultOrBuilder.java @@ -1,10 +1,10 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v0/services/campaign_group_service.proto +// source: google/ads/googleads/v0/services/remarketing_action_service.proto package com.google.ads.googleads.v0.services; -public interface MutateCampaignGroupResultOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateCampaignGroupResult) +public interface MutateRemarketingActionResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateRemarketingActionResult) com.google.protobuf.MessageOrBuilder { /** diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateRemarketingActionsRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateRemarketingActionsRequest.java new file mode 100644 index 0000000000..8581ab3df7 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateRemarketingActionsRequest.java @@ -0,0 +1,1183 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/remarketing_action_service.proto + +package com.google.ads.googleads.v0.services; + +/** + *
+ * Request message for [RemarketingActionService.MutateRemarketingActions][google.ads.googleads.v0.services.RemarketingActionService.MutateRemarketingActions].
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.services.MutateRemarketingActionsRequest} + */ +public final class MutateRemarketingActionsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.services.MutateRemarketingActionsRequest) + MutateRemarketingActionsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use MutateRemarketingActionsRequest.newBuilder() to construct. + private MutateRemarketingActionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MutateRemarketingActionsRequest() { + customerId_ = ""; + operations_ = java.util.Collections.emptyList(); + partialFailure_ = false; + validateOnly_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MutateRemarketingActionsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + customerId_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + operations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + operations_.add( + input.readMessage(com.google.ads.googleads.v0.services.RemarketingActionOperation.parser(), extensionRegistry)); + break; + } + case 24: { + + partialFailure_ = input.readBool(); + break; + } + case 32: { + + validateOnly_ = input.readBool(); + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + operations_ = java.util.Collections.unmodifiableList(operations_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.services.RemarketingActionServiceProto.internal_static_google_ads_googleads_v0_services_MutateRemarketingActionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.services.RemarketingActionServiceProto.internal_static_google_ads_googleads_v0_services_MutateRemarketingActionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest.class, com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest.Builder.class); + } + + private int bitField0_; + public static final int CUSTOMER_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object customerId_; + /** + *
+   * The ID of the customer whose remarketing actions are being modified.
+   * 
+ * + * string customer_id = 1; + */ + public java.lang.String getCustomerId() { + java.lang.Object ref = customerId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customerId_ = s; + return s; + } + } + /** + *
+   * The ID of the customer whose remarketing actions are being modified.
+   * 
+ * + * string customer_id = 1; + */ + public com.google.protobuf.ByteString + getCustomerIdBytes() { + java.lang.Object ref = customerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + customerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPERATIONS_FIELD_NUMBER = 2; + private java.util.List operations_; + /** + *
+   * The list of operations to perform on individual remarketing actions.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.RemarketingActionOperation operations = 2; + */ + public java.util.List getOperationsList() { + return operations_; + } + /** + *
+   * The list of operations to perform on individual remarketing actions.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.RemarketingActionOperation operations = 2; + */ + public java.util.List + getOperationsOrBuilderList() { + return operations_; + } + /** + *
+   * The list of operations to perform on individual remarketing actions.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.RemarketingActionOperation operations = 2; + */ + public int getOperationsCount() { + return operations_.size(); + } + /** + *
+   * The list of operations to perform on individual remarketing actions.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.RemarketingActionOperation operations = 2; + */ + public com.google.ads.googleads.v0.services.RemarketingActionOperation getOperations(int index) { + return operations_.get(index); + } + /** + *
+   * The list of operations to perform on individual remarketing actions.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.RemarketingActionOperation operations = 2; + */ + public com.google.ads.googleads.v0.services.RemarketingActionOperationOrBuilder getOperationsOrBuilder( + int index) { + return operations_.get(index); + } + + public static final int PARTIAL_FAILURE_FIELD_NUMBER = 3; + private boolean partialFailure_; + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_; + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getCustomerIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, customerId_); + } + for (int i = 0; i < operations_.size(); i++) { + output.writeMessage(2, operations_.get(i)); + } + if (partialFailure_ != false) { + output.writeBool(3, partialFailure_); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getCustomerIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, customerId_); + } + for (int i = 0; i < operations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, operations_.get(i)); + } + if (partialFailure_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, partialFailure_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); + } + size += unknownFields.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.ads.googleads.v0.services.MutateRemarketingActionsRequest)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest other = (com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest) obj; + + boolean result = true; + result = result && getCustomerId() + .equals(other.getCustomerId()); + result = result && getOperationsList() + .equals(other.getOperationsList()); + result = result && (getPartialFailure() + == other.getPartialFailure()); + result = result && (getValidateOnly() + == other.getValidateOnly()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CUSTOMER_ID_FIELD_NUMBER; + hash = (53 * hash) + getCustomerId().hashCode(); + if (getOperationsCount() > 0) { + hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; + hash = (53 * hash) + getOperationsList().hashCode(); + } + hash = (37 * hash) + PARTIAL_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPartialFailure()); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest 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.ads.googleads.v0.services.MutateRemarketingActionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest 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.ads.googleads.v0.services.MutateRemarketingActionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest 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.ads.googleads.v0.services.MutateRemarketingActionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest 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.ads.googleads.v0.services.MutateRemarketingActionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request message for [RemarketingActionService.MutateRemarketingActions][google.ads.googleads.v0.services.RemarketingActionService.MutateRemarketingActions].
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.services.MutateRemarketingActionsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.services.MutateRemarketingActionsRequest) + com.google.ads.googleads.v0.services.MutateRemarketingActionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.services.RemarketingActionServiceProto.internal_static_google_ads_googleads_v0_services_MutateRemarketingActionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.services.RemarketingActionServiceProto.internal_static_google_ads_googleads_v0_services_MutateRemarketingActionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest.class, com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getOperationsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + customerId_ = ""; + + if (operationsBuilder_ == null) { + operations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + operationsBuilder_.clear(); + } + partialFailure_ = false; + + validateOnly_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.services.RemarketingActionServiceProto.internal_static_google_ads_googleads_v0_services_MutateRemarketingActionsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest getDefaultInstanceForType() { + return com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest build() { + com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest buildPartial() { + com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest result = new com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.customerId_ = customerId_; + if (operationsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + operations_ = java.util.Collections.unmodifiableList(operations_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.operations_ = operations_; + } else { + result.operations_ = operationsBuilder_.build(); + } + result.partialFailure_ = partialFailure_; + result.validateOnly_ = validateOnly_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest) { + return mergeFrom((com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest other) { + if (other == com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest.getDefaultInstance()) return this; + if (!other.getCustomerId().isEmpty()) { + customerId_ = other.customerId_; + onChanged(); + } + if (operationsBuilder_ == null) { + if (!other.operations_.isEmpty()) { + if (operations_.isEmpty()) { + operations_ = other.operations_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureOperationsIsMutable(); + operations_.addAll(other.operations_); + } + onChanged(); + } + } else { + if (!other.operations_.isEmpty()) { + if (operationsBuilder_.isEmpty()) { + operationsBuilder_.dispose(); + operationsBuilder_ = null; + operations_ = other.operations_; + bitField0_ = (bitField0_ & ~0x00000002); + operationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOperationsFieldBuilder() : null; + } else { + operationsBuilder_.addAllMessages(other.operations_); + } + } + } + if (other.getPartialFailure() != false) { + setPartialFailure(other.getPartialFailure()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object customerId_ = ""; + /** + *
+     * The ID of the customer whose remarketing actions are being modified.
+     * 
+ * + * string customer_id = 1; + */ + public java.lang.String getCustomerId() { + java.lang.Object ref = customerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The ID of the customer whose remarketing actions are being modified.
+     * 
+ * + * string customer_id = 1; + */ + public com.google.protobuf.ByteString + getCustomerIdBytes() { + java.lang.Object ref = customerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + customerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The ID of the customer whose remarketing actions are being modified.
+     * 
+ * + * string customer_id = 1; + */ + public Builder setCustomerId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + customerId_ = value; + onChanged(); + return this; + } + /** + *
+     * The ID of the customer whose remarketing actions are being modified.
+     * 
+ * + * string customer_id = 1; + */ + public Builder clearCustomerId() { + + customerId_ = getDefaultInstance().getCustomerId(); + onChanged(); + return this; + } + /** + *
+     * The ID of the customer whose remarketing actions are being modified.
+     * 
+ * + * string customer_id = 1; + */ + public Builder setCustomerIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + customerId_ = value; + onChanged(); + return this; + } + + private java.util.List operations_ = + java.util.Collections.emptyList(); + private void ensureOperationsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + operations_ = new java.util.ArrayList(operations_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.services.RemarketingActionOperation, com.google.ads.googleads.v0.services.RemarketingActionOperation.Builder, com.google.ads.googleads.v0.services.RemarketingActionOperationOrBuilder> operationsBuilder_; + + /** + *
+     * The list of operations to perform on individual remarketing actions.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.RemarketingActionOperation operations = 2; + */ + public java.util.List getOperationsList() { + if (operationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(operations_); + } else { + return operationsBuilder_.getMessageList(); + } + } + /** + *
+     * The list of operations to perform on individual remarketing actions.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.RemarketingActionOperation operations = 2; + */ + public int getOperationsCount() { + if (operationsBuilder_ == null) { + return operations_.size(); + } else { + return operationsBuilder_.getCount(); + } + } + /** + *
+     * The list of operations to perform on individual remarketing actions.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.RemarketingActionOperation operations = 2; + */ + public com.google.ads.googleads.v0.services.RemarketingActionOperation getOperations(int index) { + if (operationsBuilder_ == null) { + return operations_.get(index); + } else { + return operationsBuilder_.getMessage(index); + } + } + /** + *
+     * The list of operations to perform on individual remarketing actions.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.RemarketingActionOperation operations = 2; + */ + public Builder setOperations( + int index, com.google.ads.googleads.v0.services.RemarketingActionOperation value) { + if (operationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOperationsIsMutable(); + operations_.set(index, value); + onChanged(); + } else { + operationsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The list of operations to perform on individual remarketing actions.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.RemarketingActionOperation operations = 2; + */ + public Builder setOperations( + int index, com.google.ads.googleads.v0.services.RemarketingActionOperation.Builder builderForValue) { + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + operations_.set(index, builderForValue.build()); + onChanged(); + } else { + operationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The list of operations to perform on individual remarketing actions.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.RemarketingActionOperation operations = 2; + */ + public Builder addOperations(com.google.ads.googleads.v0.services.RemarketingActionOperation value) { + if (operationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOperationsIsMutable(); + operations_.add(value); + onChanged(); + } else { + operationsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The list of operations to perform on individual remarketing actions.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.RemarketingActionOperation operations = 2; + */ + public Builder addOperations( + int index, com.google.ads.googleads.v0.services.RemarketingActionOperation value) { + if (operationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOperationsIsMutable(); + operations_.add(index, value); + onChanged(); + } else { + operationsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The list of operations to perform on individual remarketing actions.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.RemarketingActionOperation operations = 2; + */ + public Builder addOperations( + com.google.ads.googleads.v0.services.RemarketingActionOperation.Builder builderForValue) { + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + operations_.add(builderForValue.build()); + onChanged(); + } else { + operationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The list of operations to perform on individual remarketing actions.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.RemarketingActionOperation operations = 2; + */ + public Builder addOperations( + int index, com.google.ads.googleads.v0.services.RemarketingActionOperation.Builder builderForValue) { + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + operations_.add(index, builderForValue.build()); + onChanged(); + } else { + operationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The list of operations to perform on individual remarketing actions.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.RemarketingActionOperation operations = 2; + */ + public Builder addAllOperations( + java.lang.Iterable values) { + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, operations_); + onChanged(); + } else { + operationsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The list of operations to perform on individual remarketing actions.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.RemarketingActionOperation operations = 2; + */ + public Builder clearOperations() { + if (operationsBuilder_ == null) { + operations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + operationsBuilder_.clear(); + } + return this; + } + /** + *
+     * The list of operations to perform on individual remarketing actions.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.RemarketingActionOperation operations = 2; + */ + public Builder removeOperations(int index) { + if (operationsBuilder_ == null) { + ensureOperationsIsMutable(); + operations_.remove(index); + onChanged(); + } else { + operationsBuilder_.remove(index); + } + return this; + } + /** + *
+     * The list of operations to perform on individual remarketing actions.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.RemarketingActionOperation operations = 2; + */ + public com.google.ads.googleads.v0.services.RemarketingActionOperation.Builder getOperationsBuilder( + int index) { + return getOperationsFieldBuilder().getBuilder(index); + } + /** + *
+     * The list of operations to perform on individual remarketing actions.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.RemarketingActionOperation operations = 2; + */ + public com.google.ads.googleads.v0.services.RemarketingActionOperationOrBuilder getOperationsOrBuilder( + int index) { + if (operationsBuilder_ == null) { + return operations_.get(index); } else { + return operationsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The list of operations to perform on individual remarketing actions.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.RemarketingActionOperation operations = 2; + */ + public java.util.List + getOperationsOrBuilderList() { + if (operationsBuilder_ != null) { + return operationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(operations_); + } + } + /** + *
+     * The list of operations to perform on individual remarketing actions.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.RemarketingActionOperation operations = 2; + */ + public com.google.ads.googleads.v0.services.RemarketingActionOperation.Builder addOperationsBuilder() { + return getOperationsFieldBuilder().addBuilder( + com.google.ads.googleads.v0.services.RemarketingActionOperation.getDefaultInstance()); + } + /** + *
+     * The list of operations to perform on individual remarketing actions.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.RemarketingActionOperation operations = 2; + */ + public com.google.ads.googleads.v0.services.RemarketingActionOperation.Builder addOperationsBuilder( + int index) { + return getOperationsFieldBuilder().addBuilder( + index, com.google.ads.googleads.v0.services.RemarketingActionOperation.getDefaultInstance()); + } + /** + *
+     * The list of operations to perform on individual remarketing actions.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.RemarketingActionOperation operations = 2; + */ + public java.util.List + getOperationsBuilderList() { + return getOperationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.services.RemarketingActionOperation, com.google.ads.googleads.v0.services.RemarketingActionOperation.Builder, com.google.ads.googleads.v0.services.RemarketingActionOperationOrBuilder> + getOperationsFieldBuilder() { + if (operationsBuilder_ == null) { + operationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.services.RemarketingActionOperation, com.google.ads.googleads.v0.services.RemarketingActionOperation.Builder, com.google.ads.googleads.v0.services.RemarketingActionOperationOrBuilder>( + operations_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + operations_ = null; + } + return operationsBuilder_; + } + + private boolean partialFailure_ ; + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder setPartialFailure(boolean value) { + + partialFailure_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder clearPartialFailure() { + + partialFailure_ = false; + onChanged(); + return this; + } + + private boolean validateOnly_ ; + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.services.MutateRemarketingActionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.MutateRemarketingActionsRequest) + private static final com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest(); + } + + public static com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MutateRemarketingActionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MutateRemarketingActionsRequest(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.services.MutateRemarketingActionsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateRemarketingActionsRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateRemarketingActionsRequestOrBuilder.java new file mode 100644 index 0000000000..acb0e20280 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateRemarketingActionsRequestOrBuilder.java @@ -0,0 +1,93 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/remarketing_action_service.proto + +package com.google.ads.googleads.v0.services; + +public interface MutateRemarketingActionsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateRemarketingActionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The ID of the customer whose remarketing actions are being modified.
+   * 
+ * + * string customer_id = 1; + */ + java.lang.String getCustomerId(); + /** + *
+   * The ID of the customer whose remarketing actions are being modified.
+   * 
+ * + * string customer_id = 1; + */ + com.google.protobuf.ByteString + getCustomerIdBytes(); + + /** + *
+   * The list of operations to perform on individual remarketing actions.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.RemarketingActionOperation operations = 2; + */ + java.util.List + getOperationsList(); + /** + *
+   * The list of operations to perform on individual remarketing actions.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.RemarketingActionOperation operations = 2; + */ + com.google.ads.googleads.v0.services.RemarketingActionOperation getOperations(int index); + /** + *
+   * The list of operations to perform on individual remarketing actions.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.RemarketingActionOperation operations = 2; + */ + int getOperationsCount(); + /** + *
+   * The list of operations to perform on individual remarketing actions.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.RemarketingActionOperation operations = 2; + */ + java.util.List + getOperationsOrBuilderList(); + /** + *
+   * The list of operations to perform on individual remarketing actions.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.RemarketingActionOperation operations = 2; + */ + com.google.ads.googleads.v0.services.RemarketingActionOperationOrBuilder getOperationsOrBuilder( + int index); + + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + boolean getPartialFailure(); + + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + boolean getValidateOnly(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateRemarketingActionsResponse.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateRemarketingActionsResponse.java new file mode 100644 index 0000000000..9da43b7b15 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateRemarketingActionsResponse.java @@ -0,0 +1,1127 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/remarketing_action_service.proto + +package com.google.ads.googleads.v0.services; + +/** + *
+ * Response message for remarketing action mutate.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.services.MutateRemarketingActionsResponse} + */ +public final class MutateRemarketingActionsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.services.MutateRemarketingActionsResponse) + MutateRemarketingActionsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use MutateRemarketingActionsResponse.newBuilder() to construct. + private MutateRemarketingActionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MutateRemarketingActionsResponse() { + results_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MutateRemarketingActionsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + results_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + results_.add( + input.readMessage(com.google.ads.googleads.v0.services.MutateRemarketingActionResult.parser(), extensionRegistry)); + break; + } + case 26: { + com.google.rpc.Status.Builder subBuilder = null; + if (partialFailureError_ != null) { + subBuilder = partialFailureError_.toBuilder(); + } + partialFailureError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(partialFailureError_); + partialFailureError_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + results_ = java.util.Collections.unmodifiableList(results_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.services.RemarketingActionServiceProto.internal_static_google_ads_googleads_v0_services_MutateRemarketingActionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.services.RemarketingActionServiceProto.internal_static_google_ads_googleads_v0_services_MutateRemarketingActionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse.class, com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse.Builder.class); + } + + private int bitField0_; + public static final int PARTIAL_FAILURE_ERROR_FIELD_NUMBER = 3; + private com.google.rpc.Status partialFailureError_; + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureError_ != null; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + return getPartialFailureError(); + } + + public static final int RESULTS_FIELD_NUMBER = 2; + private java.util.List results_; + /** + *
+   * All results for the mutate.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.MutateRemarketingActionResult results = 2; + */ + public java.util.List getResultsList() { + return results_; + } + /** + *
+   * All results for the mutate.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.MutateRemarketingActionResult results = 2; + */ + public java.util.List + getResultsOrBuilderList() { + return results_; + } + /** + *
+   * All results for the mutate.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.MutateRemarketingActionResult results = 2; + */ + public int getResultsCount() { + return results_.size(); + } + /** + *
+   * All results for the mutate.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.MutateRemarketingActionResult results = 2; + */ + public com.google.ads.googleads.v0.services.MutateRemarketingActionResult getResults(int index) { + return results_.get(index); + } + /** + *
+   * All results for the mutate.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.MutateRemarketingActionResult results = 2; + */ + public com.google.ads.googleads.v0.services.MutateRemarketingActionResultOrBuilder getResultsOrBuilder( + int index) { + return results_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < results_.size(); i++) { + output.writeMessage(2, results_.get(i)); + } + if (partialFailureError_ != null) { + output.writeMessage(3, getPartialFailureError()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < results_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, results_.get(i)); + } + if (partialFailureError_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPartialFailureError()); + } + size += unknownFields.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.ads.googleads.v0.services.MutateRemarketingActionsResponse)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse other = (com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse) obj; + + boolean result = true; + result = result && (hasPartialFailureError() == other.hasPartialFailureError()); + if (hasPartialFailureError()) { + result = result && getPartialFailureError() + .equals(other.getPartialFailureError()); + } + result = result && getResultsList() + .equals(other.getResultsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPartialFailureError()) { + hash = (37 * hash) + PARTIAL_FAILURE_ERROR_FIELD_NUMBER; + hash = (53 * hash) + getPartialFailureError().hashCode(); + } + if (getResultsCount() > 0) { + hash = (37 * hash) + RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getResultsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse 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.ads.googleads.v0.services.MutateRemarketingActionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse 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.ads.googleads.v0.services.MutateRemarketingActionsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse 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.ads.googleads.v0.services.MutateRemarketingActionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse 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.ads.googleads.v0.services.MutateRemarketingActionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response message for remarketing action mutate.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.services.MutateRemarketingActionsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.services.MutateRemarketingActionsResponse) + com.google.ads.googleads.v0.services.MutateRemarketingActionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.services.RemarketingActionServiceProto.internal_static_google_ads_googleads_v0_services_MutateRemarketingActionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.services.RemarketingActionServiceProto.internal_static_google_ads_googleads_v0_services_MutateRemarketingActionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse.class, com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getResultsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } + if (resultsBuilder_ == null) { + results_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + resultsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.services.RemarketingActionServiceProto.internal_static_google_ads_googleads_v0_services_MutateRemarketingActionsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse getDefaultInstanceForType() { + return com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse build() { + com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse buildPartial() { + com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse result = new com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (partialFailureErrorBuilder_ == null) { + result.partialFailureError_ = partialFailureError_; + } else { + result.partialFailureError_ = partialFailureErrorBuilder_.build(); + } + if (resultsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + results_ = java.util.Collections.unmodifiableList(results_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.results_ = results_; + } else { + result.results_ = resultsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse) { + return mergeFrom((com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse other) { + if (other == com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse.getDefaultInstance()) return this; + if (other.hasPartialFailureError()) { + mergePartialFailureError(other.getPartialFailureError()); + } + if (resultsBuilder_ == null) { + if (!other.results_.isEmpty()) { + if (results_.isEmpty()) { + results_ = other.results_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureResultsIsMutable(); + results_.addAll(other.results_); + } + onChanged(); + } + } else { + if (!other.results_.isEmpty()) { + if (resultsBuilder_.isEmpty()) { + resultsBuilder_.dispose(); + resultsBuilder_ = null; + results_ = other.results_; + bitField0_ = (bitField0_ & ~0x00000002); + resultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResultsFieldBuilder() : null; + } else { + resultsBuilder_.addAllMessages(other.results_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.rpc.Status partialFailureError_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> partialFailureErrorBuilder_; + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureErrorBuilder_ != null || partialFailureError_ != null; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } else { + return partialFailureErrorBuilder_.getMessage(); + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partialFailureError_ = value; + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError( + com.google.rpc.Status.Builder builderForValue) { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = builderForValue.build(); + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder mergePartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (partialFailureError_ != null) { + partialFailureError_ = + com.google.rpc.Status.newBuilder(partialFailureError_).mergeFrom(value).buildPartial(); + } else { + partialFailureError_ = value; + } + onChanged(); + } else { + partialFailureErrorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder clearPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + onChanged(); + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status.Builder getPartialFailureErrorBuilder() { + + onChanged(); + return getPartialFailureErrorFieldBuilder().getBuilder(); + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + if (partialFailureErrorBuilder_ != null) { + return partialFailureErrorBuilder_.getMessageOrBuilder(); + } else { + return partialFailureError_ == null ? + com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getPartialFailureErrorFieldBuilder() { + if (partialFailureErrorBuilder_ == null) { + partialFailureErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getPartialFailureError(), + getParentForChildren(), + isClean()); + partialFailureError_ = null; + } + return partialFailureErrorBuilder_; + } + + private java.util.List results_ = + java.util.Collections.emptyList(); + private void ensureResultsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + results_ = new java.util.ArrayList(results_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.services.MutateRemarketingActionResult, com.google.ads.googleads.v0.services.MutateRemarketingActionResult.Builder, com.google.ads.googleads.v0.services.MutateRemarketingActionResultOrBuilder> resultsBuilder_; + + /** + *
+     * All results for the mutate.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.MutateRemarketingActionResult results = 2; + */ + public java.util.List getResultsList() { + if (resultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(results_); + } else { + return resultsBuilder_.getMessageList(); + } + } + /** + *
+     * All results for the mutate.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.MutateRemarketingActionResult results = 2; + */ + public int getResultsCount() { + if (resultsBuilder_ == null) { + return results_.size(); + } else { + return resultsBuilder_.getCount(); + } + } + /** + *
+     * All results for the mutate.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.MutateRemarketingActionResult results = 2; + */ + public com.google.ads.googleads.v0.services.MutateRemarketingActionResult getResults(int index) { + if (resultsBuilder_ == null) { + return results_.get(index); + } else { + return resultsBuilder_.getMessage(index); + } + } + /** + *
+     * All results for the mutate.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.MutateRemarketingActionResult results = 2; + */ + public Builder setResults( + int index, com.google.ads.googleads.v0.services.MutateRemarketingActionResult value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.set(index, value); + onChanged(); + } else { + resultsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * All results for the mutate.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.MutateRemarketingActionResult results = 2; + */ + public Builder setResults( + int index, com.google.ads.googleads.v0.services.MutateRemarketingActionResult.Builder builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.set(index, builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * All results for the mutate.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.MutateRemarketingActionResult results = 2; + */ + public Builder addResults(com.google.ads.googleads.v0.services.MutateRemarketingActionResult value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.add(value); + onChanged(); + } else { + resultsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * All results for the mutate.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.MutateRemarketingActionResult results = 2; + */ + public Builder addResults( + int index, com.google.ads.googleads.v0.services.MutateRemarketingActionResult value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.add(index, value); + onChanged(); + } else { + resultsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * All results for the mutate.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.MutateRemarketingActionResult results = 2; + */ + public Builder addResults( + com.google.ads.googleads.v0.services.MutateRemarketingActionResult.Builder builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * All results for the mutate.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.MutateRemarketingActionResult results = 2; + */ + public Builder addResults( + int index, com.google.ads.googleads.v0.services.MutateRemarketingActionResult.Builder builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(index, builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * All results for the mutate.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.MutateRemarketingActionResult results = 2; + */ + public Builder addAllResults( + java.lang.Iterable values) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, results_); + onChanged(); + } else { + resultsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * All results for the mutate.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.MutateRemarketingActionResult results = 2; + */ + public Builder clearResults() { + if (resultsBuilder_ == null) { + results_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + resultsBuilder_.clear(); + } + return this; + } + /** + *
+     * All results for the mutate.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.MutateRemarketingActionResult results = 2; + */ + public Builder removeResults(int index) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.remove(index); + onChanged(); + } else { + resultsBuilder_.remove(index); + } + return this; + } + /** + *
+     * All results for the mutate.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.MutateRemarketingActionResult results = 2; + */ + public com.google.ads.googleads.v0.services.MutateRemarketingActionResult.Builder getResultsBuilder( + int index) { + return getResultsFieldBuilder().getBuilder(index); + } + /** + *
+     * All results for the mutate.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.MutateRemarketingActionResult results = 2; + */ + public com.google.ads.googleads.v0.services.MutateRemarketingActionResultOrBuilder getResultsOrBuilder( + int index) { + if (resultsBuilder_ == null) { + return results_.get(index); } else { + return resultsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * All results for the mutate.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.MutateRemarketingActionResult results = 2; + */ + public java.util.List + getResultsOrBuilderList() { + if (resultsBuilder_ != null) { + return resultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(results_); + } + } + /** + *
+     * All results for the mutate.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.MutateRemarketingActionResult results = 2; + */ + public com.google.ads.googleads.v0.services.MutateRemarketingActionResult.Builder addResultsBuilder() { + return getResultsFieldBuilder().addBuilder( + com.google.ads.googleads.v0.services.MutateRemarketingActionResult.getDefaultInstance()); + } + /** + *
+     * All results for the mutate.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.MutateRemarketingActionResult results = 2; + */ + public com.google.ads.googleads.v0.services.MutateRemarketingActionResult.Builder addResultsBuilder( + int index) { + return getResultsFieldBuilder().addBuilder( + index, com.google.ads.googleads.v0.services.MutateRemarketingActionResult.getDefaultInstance()); + } + /** + *
+     * All results for the mutate.
+     * 
+ * + * repeated .google.ads.googleads.v0.services.MutateRemarketingActionResult results = 2; + */ + public java.util.List + getResultsBuilderList() { + return getResultsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.services.MutateRemarketingActionResult, com.google.ads.googleads.v0.services.MutateRemarketingActionResult.Builder, com.google.ads.googleads.v0.services.MutateRemarketingActionResultOrBuilder> + getResultsFieldBuilder() { + if (resultsBuilder_ == null) { + resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.googleads.v0.services.MutateRemarketingActionResult, com.google.ads.googleads.v0.services.MutateRemarketingActionResult.Builder, com.google.ads.googleads.v0.services.MutateRemarketingActionResultOrBuilder>( + results_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + results_ = null; + } + return resultsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.services.MutateRemarketingActionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.MutateRemarketingActionsResponse) + private static final com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse(); + } + + public static com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MutateRemarketingActionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MutateRemarketingActionsResponse(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.services.MutateRemarketingActionsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateRemarketingActionsResponseOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateRemarketingActionsResponseOrBuilder.java new file mode 100644 index 0000000000..575d167c44 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateRemarketingActionsResponseOrBuilder.java @@ -0,0 +1,87 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/remarketing_action_service.proto + +package com.google.ads.googleads.v0.services; + +public interface MutateRemarketingActionsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateRemarketingActionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + boolean hasPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.Status getPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder(); + + /** + *
+   * All results for the mutate.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.MutateRemarketingActionResult results = 2; + */ + java.util.List + getResultsList(); + /** + *
+   * All results for the mutate.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.MutateRemarketingActionResult results = 2; + */ + com.google.ads.googleads.v0.services.MutateRemarketingActionResult getResults(int index); + /** + *
+   * All results for the mutate.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.MutateRemarketingActionResult results = 2; + */ + int getResultsCount(); + /** + *
+   * All results for the mutate.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.MutateRemarketingActionResult results = 2; + */ + java.util.List + getResultsOrBuilderList(); + /** + *
+   * All results for the mutate.
+   * 
+ * + * repeated .google.ads.googleads.v0.services.MutateRemarketingActionResult results = 2; + */ + com.google.ads.googleads.v0.services.MutateRemarketingActionResultOrBuilder getResultsOrBuilder( + int index); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateSharedCriteriaRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateSharedCriteriaRequest.java index 43c373da08..a67c882df8 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateSharedCriteriaRequest.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateSharedCriteriaRequest.java @@ -22,6 +22,8 @@ private MutateSharedCriteriaRequest(com.google.protobuf.GeneratedMessageV3.Build private MutateSharedCriteriaRequest() { customerId_ = ""; operations_ = java.util.Collections.emptyList(); + partialFailure_ = false; + validateOnly_ = false; } @java.lang.Override @@ -63,6 +65,16 @@ private MutateSharedCriteriaRequest( input.readMessage(com.google.ads.googleads.v0.services.SharedCriterionOperation.parser(), extensionRegistry)); break; } + case 24: { + + partialFailure_ = input.readBool(); + break; + } + case 32: { + + validateOnly_ = input.readBool(); + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -196,6 +208,36 @@ public com.google.ads.googleads.v0.services.SharedCriterionOperationOrBuilder ge return operations_.get(index); } + public static final int PARTIAL_FAILURE_FIELD_NUMBER = 3; + private boolean partialFailure_; + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_; + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -216,6 +258,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < operations_.size(); i++) { output.writeMessage(2, operations_.get(i)); } + if (partialFailure_ != false) { + output.writeBool(3, partialFailure_); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } unknownFields.writeTo(output); } @@ -232,6 +280,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, operations_.get(i)); } + if (partialFailure_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, partialFailure_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -252,6 +308,10 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getCustomerId()); result = result && getOperationsList() .equals(other.getOperationsList()); + result = result && (getPartialFailure() + == other.getPartialFailure()); + result = result && (getValidateOnly() + == other.getValidateOnly()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -269,6 +329,12 @@ public int hashCode() { hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + getOperationsList().hashCode(); } + hash = (37 * hash) + PARTIAL_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPartialFailure()); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -415,6 +481,10 @@ public Builder clear() { } else { operationsBuilder_.clear(); } + partialFailure_ = false; + + validateOnly_ = false; + return this; } @@ -453,6 +523,8 @@ public com.google.ads.googleads.v0.services.MutateSharedCriteriaRequest buildPar } else { result.operations_ = operationsBuilder_.build(); } + result.partialFailure_ = partialFailure_; + result.validateOnly_ = validateOnly_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -532,6 +604,12 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateSharedCriter } } } + if (other.getPartialFailure() != false) { + setPartialFailure(other.getPartialFailure()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -962,6 +1040,94 @@ public com.google.ads.googleads.v0.services.SharedCriterionOperation.Builder add } return operationsBuilder_; } + + private boolean partialFailure_ ; + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder setPartialFailure(boolean value) { + + partialFailure_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder clearPartialFailure() { + + partialFailure_ = false; + onChanged(); + return this; + } + + private boolean validateOnly_ ; + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateSharedCriteriaRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateSharedCriteriaRequestOrBuilder.java index bed5609d4f..318300262d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateSharedCriteriaRequestOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateSharedCriteriaRequestOrBuilder.java @@ -68,4 +68,26 @@ public interface MutateSharedCriteriaRequestOrBuilder extends */ com.google.ads.googleads.v0.services.SharedCriterionOperationOrBuilder getOperationsOrBuilder( int index); + + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + boolean getPartialFailure(); + + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + boolean getValidateOnly(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateSharedCriteriaResponse.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateSharedCriteriaResponse.java index c242d9eefa..72a0299993 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateSharedCriteriaResponse.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateSharedCriteriaResponse.java @@ -48,14 +48,27 @@ private MutateSharedCriteriaResponse( done = true; break; case 18: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + mutable_bitField0_ |= 0x00000002; } results_.add( input.readMessage(com.google.ads.googleads.v0.services.MutateSharedCriterionResult.parser(), extensionRegistry)); break; } + case 26: { + com.google.rpc.Status.Builder subBuilder = null; + if (partialFailureError_ != null) { + subBuilder = partialFailureError_.toBuilder(); + } + partialFailureError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(partialFailureError_); + partialFailureError_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -71,7 +84,7 @@ private MutateSharedCriteriaResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); } this.unknownFields = unknownFields.build(); @@ -91,6 +104,49 @@ private MutateSharedCriteriaResponse( com.google.ads.googleads.v0.services.MutateSharedCriteriaResponse.class, com.google.ads.googleads.v0.services.MutateSharedCriteriaResponse.Builder.class); } + private int bitField0_; + public static final int PARTIAL_FAILURE_ERROR_FIELD_NUMBER = 3; + private com.google.rpc.Status partialFailureError_; + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureError_ != null; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + return getPartialFailureError(); + } + public static final int RESULTS_FIELD_NUMBER = 2; private java.util.List results_; /** @@ -163,6 +219,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } + if (partialFailureError_ != null) { + output.writeMessage(3, getPartialFailureError()); + } unknownFields.writeTo(output); } @@ -176,6 +235,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, results_.get(i)); } + if (partialFailureError_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPartialFailureError()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -192,6 +255,11 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.googleads.v0.services.MutateSharedCriteriaResponse other = (com.google.ads.googleads.v0.services.MutateSharedCriteriaResponse) obj; boolean result = true; + result = result && (hasPartialFailureError() == other.hasPartialFailureError()); + if (hasPartialFailureError()) { + result = result && getPartialFailureError() + .equals(other.getPartialFailureError()); + } result = result && getResultsList() .equals(other.getResultsList()); result = result && unknownFields.equals(other.unknownFields); @@ -205,6 +273,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPartialFailureError()) { + hash = (37 * hash) + PARTIAL_FAILURE_ERROR_FIELD_NUMBER; + hash = (53 * hash) + getPartialFailureError().hashCode(); + } if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); @@ -347,9 +419,15 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { resultsBuilder_.clear(); } @@ -380,15 +458,22 @@ public com.google.ads.googleads.v0.services.MutateSharedCriteriaResponse build() public com.google.ads.googleads.v0.services.MutateSharedCriteriaResponse buildPartial() { com.google.ads.googleads.v0.services.MutateSharedCriteriaResponse result = new com.google.ads.googleads.v0.services.MutateSharedCriteriaResponse(this); int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (partialFailureErrorBuilder_ == null) { + result.partialFailureError_ = partialFailureError_; + } else { + result.partialFailureError_ = partialFailureErrorBuilder_.build(); + } if (resultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.results_ = results_; } else { result.results_ = resultsBuilder_.build(); } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -437,11 +522,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateSharedCriteriaResponse other) { if (other == com.google.ads.googleads.v0.services.MutateSharedCriteriaResponse.getDefaultInstance()) return this; + if (other.hasPartialFailureError()) { + mergePartialFailureError(other.getPartialFailureError()); + } if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResultsIsMutable(); results_.addAll(other.results_); @@ -454,7 +542,7 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateSharedCriter resultsBuilder_.dispose(); resultsBuilder_ = null; results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); resultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResultsFieldBuilder() : null; @@ -493,12 +581,192 @@ public Builder mergeFrom( } private int bitField0_; + private com.google.rpc.Status partialFailureError_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> partialFailureErrorBuilder_; + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureErrorBuilder_ != null || partialFailureError_ != null; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } else { + return partialFailureErrorBuilder_.getMessage(); + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partialFailureError_ = value; + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError( + com.google.rpc.Status.Builder builderForValue) { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = builderForValue.build(); + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder mergePartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (partialFailureError_ != null) { + partialFailureError_ = + com.google.rpc.Status.newBuilder(partialFailureError_).mergeFrom(value).buildPartial(); + } else { + partialFailureError_ = value; + } + onChanged(); + } else { + partialFailureErrorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder clearPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + onChanged(); + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status.Builder getPartialFailureErrorBuilder() { + + onChanged(); + return getPartialFailureErrorFieldBuilder().getBuilder(); + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + if (partialFailureErrorBuilder_ != null) { + return partialFailureErrorBuilder_.getMessageOrBuilder(); + } else { + return partialFailureError_ == null ? + com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getPartialFailureErrorFieldBuilder() { + if (partialFailureErrorBuilder_ == null) { + partialFailureErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getPartialFailureError(), + getParentForChildren(), + isClean()); + partialFailureError_ = null; + } + return partialFailureErrorBuilder_; + } + private java.util.List results_ = java.util.Collections.emptyList(); private void ensureResultsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(results_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -692,7 +960,7 @@ public Builder addAllResults( public Builder clearResults() { if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { resultsBuilder_.clear(); @@ -797,7 +1065,7 @@ public com.google.ads.googleads.v0.services.MutateSharedCriterionResult.Builder resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v0.services.MutateSharedCriterionResult, com.google.ads.googleads.v0.services.MutateSharedCriterionResult.Builder, com.google.ads.googleads.v0.services.MutateSharedCriterionResultOrBuilder>( results_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); results_ = null; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateSharedCriteriaResponseOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateSharedCriteriaResponseOrBuilder.java index f6751c6888..e2ac64b707 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateSharedCriteriaResponseOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateSharedCriteriaResponseOrBuilder.java @@ -7,6 +7,40 @@ public interface MutateSharedCriteriaResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateSharedCriteriaResponse) com.google.protobuf.MessageOrBuilder { + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + boolean hasPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.Status getPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder(); + /** *
    * All results for the mutate.
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateSharedSetsRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateSharedSetsRequest.java
index 5dcda3864d..0f44347953 100644
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateSharedSetsRequest.java
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateSharedSetsRequest.java
@@ -22,6 +22,8 @@ private MutateSharedSetsRequest(com.google.protobuf.GeneratedMessageV3.Builder
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_; + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -216,6 +258,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < operations_.size(); i++) { output.writeMessage(2, operations_.get(i)); } + if (partialFailure_ != false) { + output.writeBool(3, partialFailure_); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } unknownFields.writeTo(output); } @@ -232,6 +280,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, operations_.get(i)); } + if (partialFailure_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, partialFailure_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -252,6 +308,10 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getCustomerId()); result = result && getOperationsList() .equals(other.getOperationsList()); + result = result && (getPartialFailure() + == other.getPartialFailure()); + result = result && (getValidateOnly() + == other.getValidateOnly()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -269,6 +329,12 @@ public int hashCode() { hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + getOperationsList().hashCode(); } + hash = (37 * hash) + PARTIAL_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPartialFailure()); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -415,6 +481,10 @@ public Builder clear() { } else { operationsBuilder_.clear(); } + partialFailure_ = false; + + validateOnly_ = false; + return this; } @@ -453,6 +523,8 @@ public com.google.ads.googleads.v0.services.MutateSharedSetsRequest buildPartial } else { result.operations_ = operationsBuilder_.build(); } + result.partialFailure_ = partialFailure_; + result.validateOnly_ = validateOnly_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -532,6 +604,12 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateSharedSetsRe } } } + if (other.getPartialFailure() != false) { + setPartialFailure(other.getPartialFailure()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -962,6 +1040,94 @@ public com.google.ads.googleads.v0.services.SharedSetOperation.Builder addOperat } return operationsBuilder_; } + + private boolean partialFailure_ ; + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder setPartialFailure(boolean value) { + + partialFailure_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder clearPartialFailure() { + + partialFailure_ = false; + onChanged(); + return this; + } + + private boolean validateOnly_ ; + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateSharedSetsRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateSharedSetsRequestOrBuilder.java index 4c55543f24..7b4c767a8a 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateSharedSetsRequestOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateSharedSetsRequestOrBuilder.java @@ -68,4 +68,26 @@ public interface MutateSharedSetsRequestOrBuilder extends */ com.google.ads.googleads.v0.services.SharedSetOperationOrBuilder getOperationsOrBuilder( int index); + + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + boolean getPartialFailure(); + + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + boolean getValidateOnly(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateSharedSetsResponse.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateSharedSetsResponse.java index 37e73c4d3e..8adfb1df26 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateSharedSetsResponse.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateSharedSetsResponse.java @@ -48,14 +48,27 @@ private MutateSharedSetsResponse( done = true; break; case 18: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + mutable_bitField0_ |= 0x00000002; } results_.add( input.readMessage(com.google.ads.googleads.v0.services.MutateSharedSetResult.parser(), extensionRegistry)); break; } + case 26: { + com.google.rpc.Status.Builder subBuilder = null; + if (partialFailureError_ != null) { + subBuilder = partialFailureError_.toBuilder(); + } + partialFailureError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(partialFailureError_); + partialFailureError_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -71,7 +84,7 @@ private MutateSharedSetsResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); } this.unknownFields = unknownFields.build(); @@ -91,6 +104,49 @@ private MutateSharedSetsResponse( com.google.ads.googleads.v0.services.MutateSharedSetsResponse.class, com.google.ads.googleads.v0.services.MutateSharedSetsResponse.Builder.class); } + private int bitField0_; + public static final int PARTIAL_FAILURE_ERROR_FIELD_NUMBER = 3; + private com.google.rpc.Status partialFailureError_; + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureError_ != null; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + return getPartialFailureError(); + } + public static final int RESULTS_FIELD_NUMBER = 2; private java.util.List results_; /** @@ -163,6 +219,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } + if (partialFailureError_ != null) { + output.writeMessage(3, getPartialFailureError()); + } unknownFields.writeTo(output); } @@ -176,6 +235,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, results_.get(i)); } + if (partialFailureError_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPartialFailureError()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -192,6 +255,11 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.googleads.v0.services.MutateSharedSetsResponse other = (com.google.ads.googleads.v0.services.MutateSharedSetsResponse) obj; boolean result = true; + result = result && (hasPartialFailureError() == other.hasPartialFailureError()); + if (hasPartialFailureError()) { + result = result && getPartialFailureError() + .equals(other.getPartialFailureError()); + } result = result && getResultsList() .equals(other.getResultsList()); result = result && unknownFields.equals(other.unknownFields); @@ -205,6 +273,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPartialFailureError()) { + hash = (37 * hash) + PARTIAL_FAILURE_ERROR_FIELD_NUMBER; + hash = (53 * hash) + getPartialFailureError().hashCode(); + } if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); @@ -347,9 +419,15 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { resultsBuilder_.clear(); } @@ -380,15 +458,22 @@ public com.google.ads.googleads.v0.services.MutateSharedSetsResponse build() { public com.google.ads.googleads.v0.services.MutateSharedSetsResponse buildPartial() { com.google.ads.googleads.v0.services.MutateSharedSetsResponse result = new com.google.ads.googleads.v0.services.MutateSharedSetsResponse(this); int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (partialFailureErrorBuilder_ == null) { + result.partialFailureError_ = partialFailureError_; + } else { + result.partialFailureError_ = partialFailureErrorBuilder_.build(); + } if (resultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.results_ = results_; } else { result.results_ = resultsBuilder_.build(); } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -437,11 +522,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateSharedSetsResponse other) { if (other == com.google.ads.googleads.v0.services.MutateSharedSetsResponse.getDefaultInstance()) return this; + if (other.hasPartialFailureError()) { + mergePartialFailureError(other.getPartialFailureError()); + } if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResultsIsMutable(); results_.addAll(other.results_); @@ -454,7 +542,7 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateSharedSetsRe resultsBuilder_.dispose(); resultsBuilder_ = null; results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); resultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResultsFieldBuilder() : null; @@ -493,12 +581,192 @@ public Builder mergeFrom( } private int bitField0_; + private com.google.rpc.Status partialFailureError_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> partialFailureErrorBuilder_; + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureErrorBuilder_ != null || partialFailureError_ != null; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } else { + return partialFailureErrorBuilder_.getMessage(); + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partialFailureError_ = value; + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError( + com.google.rpc.Status.Builder builderForValue) { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = builderForValue.build(); + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder mergePartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (partialFailureError_ != null) { + partialFailureError_ = + com.google.rpc.Status.newBuilder(partialFailureError_).mergeFrom(value).buildPartial(); + } else { + partialFailureError_ = value; + } + onChanged(); + } else { + partialFailureErrorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder clearPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + onChanged(); + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status.Builder getPartialFailureErrorBuilder() { + + onChanged(); + return getPartialFailureErrorFieldBuilder().getBuilder(); + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + if (partialFailureErrorBuilder_ != null) { + return partialFailureErrorBuilder_.getMessageOrBuilder(); + } else { + return partialFailureError_ == null ? + com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getPartialFailureErrorFieldBuilder() { + if (partialFailureErrorBuilder_ == null) { + partialFailureErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getPartialFailureError(), + getParentForChildren(), + isClean()); + partialFailureError_ = null; + } + return partialFailureErrorBuilder_; + } + private java.util.List results_ = java.util.Collections.emptyList(); private void ensureResultsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(results_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -692,7 +960,7 @@ public Builder addAllResults( public Builder clearResults() { if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { resultsBuilder_.clear(); @@ -797,7 +1065,7 @@ public com.google.ads.googleads.v0.services.MutateSharedSetResult.Builder addRes resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v0.services.MutateSharedSetResult, com.google.ads.googleads.v0.services.MutateSharedSetResult.Builder, com.google.ads.googleads.v0.services.MutateSharedSetResultOrBuilder>( results_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); results_ = null; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateSharedSetsResponseOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateSharedSetsResponseOrBuilder.java index 49540f3aeb..41da34ba83 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateSharedSetsResponseOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateSharedSetsResponseOrBuilder.java @@ -7,6 +7,40 @@ public interface MutateSharedSetsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateSharedSetsResponse) com.google.protobuf.MessageOrBuilder { + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + boolean hasPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.Status getPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder(); + /** *
    * All results for the mutate.
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateUserListsRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateUserListsRequest.java
index cd75a3d100..80b88fd0d2 100644
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateUserListsRequest.java
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateUserListsRequest.java
@@ -22,6 +22,8 @@ private MutateUserListsRequest(com.google.protobuf.GeneratedMessageV3.Builder
   private MutateUserListsRequest() {
     customerId_ = "";
     operations_ = java.util.Collections.emptyList();
+    partialFailure_ = false;
+    validateOnly_ = false;
   }
 
   @java.lang.Override
@@ -63,6 +65,16 @@ private MutateUserListsRequest(
                 input.readMessage(com.google.ads.googleads.v0.services.UserListOperation.parser(), extensionRegistry));
             break;
           }
+          case 24: {
+
+            partialFailure_ = input.readBool();
+            break;
+          }
+          case 32: {
+
+            validateOnly_ = input.readBool();
+            break;
+          }
           default: {
             if (!parseUnknownFieldProto3(
                 input, unknownFields, extensionRegistry, tag)) {
@@ -196,6 +208,36 @@ public com.google.ads.googleads.v0.services.UserListOperationOrBuilder getOperat
     return operations_.get(index);
   }
 
+  public static final int PARTIAL_FAILURE_FIELD_NUMBER = 3;
+  private boolean partialFailure_;
+  /**
+   * 
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_; + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -216,6 +258,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < operations_.size(); i++) { output.writeMessage(2, operations_.get(i)); } + if (partialFailure_ != false) { + output.writeBool(3, partialFailure_); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } unknownFields.writeTo(output); } @@ -232,6 +280,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, operations_.get(i)); } + if (partialFailure_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, partialFailure_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -252,6 +308,10 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getCustomerId()); result = result && getOperationsList() .equals(other.getOperationsList()); + result = result && (getPartialFailure() + == other.getPartialFailure()); + result = result && (getValidateOnly() + == other.getValidateOnly()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -269,6 +329,12 @@ public int hashCode() { hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + getOperationsList().hashCode(); } + hash = (37 * hash) + PARTIAL_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPartialFailure()); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -415,6 +481,10 @@ public Builder clear() { } else { operationsBuilder_.clear(); } + partialFailure_ = false; + + validateOnly_ = false; + return this; } @@ -453,6 +523,8 @@ public com.google.ads.googleads.v0.services.MutateUserListsRequest buildPartial( } else { result.operations_ = operationsBuilder_.build(); } + result.partialFailure_ = partialFailure_; + result.validateOnly_ = validateOnly_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -532,6 +604,12 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateUserListsReq } } } + if (other.getPartialFailure() != false) { + setPartialFailure(other.getPartialFailure()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -962,6 +1040,94 @@ public com.google.ads.googleads.v0.services.UserListOperation.Builder addOperati } return operationsBuilder_; } + + private boolean partialFailure_ ; + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public boolean getPartialFailure() { + return partialFailure_; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder setPartialFailure(boolean value) { + + partialFailure_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, successful operations will be carried out and invalid
+     * operations will return errors. If false, all operations will be carried
+     * out in one transaction if and only if they are all valid.
+     * Default is false.
+     * 
+ * + * bool partial_failure = 3; + */ + public Builder clearPartialFailure() { + + partialFailure_ = false; + onChanged(); + return this; + } + + private boolean validateOnly_ ; + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, the request is validated but not executed. Only errors are
+     * returned, not results.
+     * 
+ * + * bool validate_only = 4; + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateUserListsRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateUserListsRequestOrBuilder.java index c7f1eb38ce..2904c2b143 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateUserListsRequestOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateUserListsRequestOrBuilder.java @@ -68,4 +68,26 @@ public interface MutateUserListsRequestOrBuilder extends */ com.google.ads.googleads.v0.services.UserListOperationOrBuilder getOperationsOrBuilder( int index); + + /** + *
+   * If true, successful operations will be carried out and invalid
+   * operations will return errors. If false, all operations will be carried
+   * out in one transaction if and only if they are all valid.
+   * Default is false.
+   * 
+ * + * bool partial_failure = 3; + */ + boolean getPartialFailure(); + + /** + *
+   * If true, the request is validated but not executed. Only errors are
+   * returned, not results.
+   * 
+ * + * bool validate_only = 4; + */ + boolean getValidateOnly(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateUserListsResponse.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateUserListsResponse.java index 7b24f930c2..41f77fe7a7 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateUserListsResponse.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateUserListsResponse.java @@ -48,14 +48,27 @@ private MutateUserListsResponse( done = true; break; case 18: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + mutable_bitField0_ |= 0x00000002; } results_.add( input.readMessage(com.google.ads.googleads.v0.services.MutateUserListResult.parser(), extensionRegistry)); break; } + case 26: { + com.google.rpc.Status.Builder subBuilder = null; + if (partialFailureError_ != null) { + subBuilder = partialFailureError_.toBuilder(); + } + partialFailureError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(partialFailureError_); + partialFailureError_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -71,7 +84,7 @@ private MutateUserListsResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); } this.unknownFields = unknownFields.build(); @@ -91,6 +104,49 @@ private MutateUserListsResponse( com.google.ads.googleads.v0.services.MutateUserListsResponse.class, com.google.ads.googleads.v0.services.MutateUserListsResponse.Builder.class); } + private int bitField0_; + public static final int PARTIAL_FAILURE_ERROR_FIELD_NUMBER = 3; + private com.google.rpc.Status partialFailureError_; + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureError_ != null; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + return getPartialFailureError(); + } + public static final int RESULTS_FIELD_NUMBER = 2; private java.util.List results_; /** @@ -163,6 +219,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } + if (partialFailureError_ != null) { + output.writeMessage(3, getPartialFailureError()); + } unknownFields.writeTo(output); } @@ -176,6 +235,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, results_.get(i)); } + if (partialFailureError_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPartialFailureError()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -192,6 +255,11 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.googleads.v0.services.MutateUserListsResponse other = (com.google.ads.googleads.v0.services.MutateUserListsResponse) obj; boolean result = true; + result = result && (hasPartialFailureError() == other.hasPartialFailureError()); + if (hasPartialFailureError()) { + result = result && getPartialFailureError() + .equals(other.getPartialFailureError()); + } result = result && getResultsList() .equals(other.getResultsList()); result = result && unknownFields.equals(other.unknownFields); @@ -205,6 +273,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPartialFailureError()) { + hash = (37 * hash) + PARTIAL_FAILURE_ERROR_FIELD_NUMBER; + hash = (53 * hash) + getPartialFailureError().hashCode(); + } if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); @@ -347,9 +419,15 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { resultsBuilder_.clear(); } @@ -380,15 +458,22 @@ public com.google.ads.googleads.v0.services.MutateUserListsResponse build() { public com.google.ads.googleads.v0.services.MutateUserListsResponse buildPartial() { com.google.ads.googleads.v0.services.MutateUserListsResponse result = new com.google.ads.googleads.v0.services.MutateUserListsResponse(this); int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (partialFailureErrorBuilder_ == null) { + result.partialFailureError_ = partialFailureError_; + } else { + result.partialFailureError_ = partialFailureErrorBuilder_.build(); + } if (resultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { results_ = java.util.Collections.unmodifiableList(results_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.results_ = results_; } else { result.results_ = resultsBuilder_.build(); } + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -437,11 +522,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateUserListsResponse other) { if (other == com.google.ads.googleads.v0.services.MutateUserListsResponse.getDefaultInstance()) return this; + if (other.hasPartialFailureError()) { + mergePartialFailureError(other.getPartialFailureError()); + } if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResultsIsMutable(); results_.addAll(other.results_); @@ -454,7 +542,7 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.MutateUserListsRes resultsBuilder_.dispose(); resultsBuilder_ = null; results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); resultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResultsFieldBuilder() : null; @@ -493,12 +581,192 @@ public Builder mergeFrom( } private int bitField0_; + private com.google.rpc.Status partialFailureError_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> partialFailureErrorBuilder_; + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public boolean hasPartialFailureError() { + return partialFailureErrorBuilder_ != null || partialFailureError_ != null; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status getPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + return partialFailureError_ == null ? com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } else { + return partialFailureErrorBuilder_.getMessage(); + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partialFailureError_ = value; + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder setPartialFailureError( + com.google.rpc.Status.Builder builderForValue) { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = builderForValue.build(); + onChanged(); + } else { + partialFailureErrorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder mergePartialFailureError(com.google.rpc.Status value) { + if (partialFailureErrorBuilder_ == null) { + if (partialFailureError_ != null) { + partialFailureError_ = + com.google.rpc.Status.newBuilder(partialFailureError_).mergeFrom(value).buildPartial(); + } else { + partialFailureError_ = value; + } + onChanged(); + } else { + partialFailureErrorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public Builder clearPartialFailureError() { + if (partialFailureErrorBuilder_ == null) { + partialFailureError_ = null; + onChanged(); + } else { + partialFailureError_ = null; + partialFailureErrorBuilder_ = null; + } + + return this; + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.Status.Builder getPartialFailureErrorBuilder() { + + onChanged(); + return getPartialFailureErrorFieldBuilder().getBuilder(); + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder() { + if (partialFailureErrorBuilder_ != null) { + return partialFailureErrorBuilder_.getMessageOrBuilder(); + } else { + return partialFailureError_ == null ? + com.google.rpc.Status.getDefaultInstance() : partialFailureError_; + } + } + /** + *
+     * Errors that pertain to operation failures in the partial failure mode.
+     * Returned only when partial_failure = true and all errors occur inside the
+     * operations. If any errors occur outside the operations (e.g. auth errors),
+     * we return an RPC level error.
+     * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getPartialFailureErrorFieldBuilder() { + if (partialFailureErrorBuilder_ == null) { + partialFailureErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getPartialFailureError(), + getParentForChildren(), + isClean()); + partialFailureError_ = null; + } + return partialFailureErrorBuilder_; + } + private java.util.List results_ = java.util.Collections.emptyList(); private void ensureResultsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { results_ = new java.util.ArrayList(results_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -692,7 +960,7 @@ public Builder addAllResults( public Builder clearResults() { if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { resultsBuilder_.clear(); @@ -797,7 +1065,7 @@ public com.google.ads.googleads.v0.services.MutateUserListResult.Builder addResu resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v0.services.MutateUserListResult, com.google.ads.googleads.v0.services.MutateUserListResult.Builder, com.google.ads.googleads.v0.services.MutateUserListResultOrBuilder>( results_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); results_ = null; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateUserListsResponseOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateUserListsResponseOrBuilder.java index 1bde8daf85..ab5bf35d8f 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateUserListsResponseOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/MutateUserListsResponseOrBuilder.java @@ -7,6 +7,40 @@ public interface MutateUserListsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.MutateUserListsResponse) com.google.protobuf.MessageOrBuilder { + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + boolean hasPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.Status getPartialFailureError(); + /** + *
+   * Errors that pertain to operation failures in the partial failure mode.
+   * Returned only when partial_failure = true and all errors occur inside the
+   * operations. If any errors occur outside the operations (e.g. auth errors),
+   * we return an RPC level error.
+   * 
+ * + * .google.rpc.Status partial_failure_error = 3; + */ + com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder(); + /** *
    * All results for the mutate.
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/OperatingSystemVersionConstantServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/OperatingSystemVersionConstantServiceClient.java
new file mode 100644
index 0000000000..c27aa60c5b
--- /dev/null
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/OperatingSystemVersionConstantServiceClient.java
@@ -0,0 +1,287 @@
+/*
+ * Copyright 2019 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.google.ads.googleads.v0.services;
+
+import com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant;
+import com.google.ads.googleads.v0.services.stub.OperatingSystemVersionConstantServiceStub;
+import com.google.ads.googleads.v0.services.stub.OperatingSystemVersionConstantServiceStubSettings;
+import com.google.api.core.BetaApi;
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.api.pathtemplate.PathTemplate;
+import java.io.IOException;
+import java.util.concurrent.TimeUnit;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND SERVICE
+/**
+ * Service Description: Service to fetch Operating System Version constants.
+ *
+ * 

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

+ * 
+ * try (OperatingSystemVersionConstantServiceClient operatingSystemVersionConstantServiceClient = OperatingSystemVersionConstantServiceClient.create()) {
+ *   String formattedResourceName = OperatingSystemVersionConstantServiceClient.formatOperatingSystemVersionConstantName("[OPERATING_SYSTEM_VERSION_CONSTANT]");
+ *   OperatingSystemVersionConstant response = operatingSystemVersionConstantServiceClient.getOperatingSystemVersionConstant(formattedResourceName);
+ * }
+ * 
+ * 
+ * + *

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

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

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

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

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

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

To customize credentials: + * + *

+ * 
+ * OperatingSystemVersionConstantServiceSettings operatingSystemVersionConstantServiceSettings =
+ *     OperatingSystemVersionConstantServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * OperatingSystemVersionConstantServiceClient operatingSystemVersionConstantServiceClient =
+ *     OperatingSystemVersionConstantServiceClient.create(operatingSystemVersionConstantServiceSettings);
+ * 
+ * 
+ * + * To customize the endpoint: + * + *
+ * 
+ * OperatingSystemVersionConstantServiceSettings operatingSystemVersionConstantServiceSettings =
+ *     OperatingSystemVersionConstantServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * OperatingSystemVersionConstantServiceClient operatingSystemVersionConstantServiceClient =
+ *     OperatingSystemVersionConstantServiceClient.create(operatingSystemVersionConstantServiceSettings);
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class OperatingSystemVersionConstantServiceClient implements BackgroundResource { + private final OperatingSystemVersionConstantServiceSettings settings; + private final OperatingSystemVersionConstantServiceStub stub; + + private static final PathTemplate OPERATING_SYSTEM_VERSION_CONSTANT_PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding( + "operatingSystemVersionConstants/{operating_system_version_constant}"); + + /** + * Formats a string containing the fully-qualified path to represent a + * operating_system_version_constant resource. + */ + public static final String formatOperatingSystemVersionConstantName( + String operatingSystemVersionConstant) { + return OPERATING_SYSTEM_VERSION_CONSTANT_PATH_TEMPLATE.instantiate( + "operating_system_version_constant", operatingSystemVersionConstant); + } + + /** + * Parses the operating_system_version_constant from the given fully-qualified path which + * represents a operating_system_version_constant resource. + */ + public static final String + parseOperatingSystemVersionConstantFromOperatingSystemVersionConstantName( + String operatingSystemVersionConstantName) { + return OPERATING_SYSTEM_VERSION_CONSTANT_PATH_TEMPLATE + .parse(operatingSystemVersionConstantName) + .get("operating_system_version_constant"); + } + + /** + * Constructs an instance of OperatingSystemVersionConstantServiceClient with default settings. + */ + public static final OperatingSystemVersionConstantServiceClient create() throws IOException { + return create(OperatingSystemVersionConstantServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of OperatingSystemVersionConstantServiceClient, using the given + * settings. The channels are created based on the settings passed in, or defaults for any + * settings that are not set. + */ + public static final OperatingSystemVersionConstantServiceClient create( + OperatingSystemVersionConstantServiceSettings settings) throws IOException { + return new OperatingSystemVersionConstantServiceClient(settings); + } + + /** + * Constructs an instance of OperatingSystemVersionConstantServiceClient, using the given stub for + * making calls. This is for advanced usage - prefer to use + * OperatingSystemVersionConstantServiceSettings}. + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final OperatingSystemVersionConstantServiceClient create( + OperatingSystemVersionConstantServiceStub stub) { + return new OperatingSystemVersionConstantServiceClient(stub); + } + + /** + * Constructs an instance of OperatingSystemVersionConstantServiceClient, using the given + * settings. This is protected so that it is easy to make a subclass, but otherwise, the static + * factory methods should be preferred. + */ + protected OperatingSystemVersionConstantServiceClient( + OperatingSystemVersionConstantServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = + ((OperatingSystemVersionConstantServiceStubSettings) settings.getStubSettings()) + .createStub(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected OperatingSystemVersionConstantServiceClient( + OperatingSystemVersionConstantServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final OperatingSystemVersionConstantServiceSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public OperatingSystemVersionConstantServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns the requested OS version constant in full detail. + * + *

Sample code: + * + *


+   * try (OperatingSystemVersionConstantServiceClient operatingSystemVersionConstantServiceClient = OperatingSystemVersionConstantServiceClient.create()) {
+   *   String formattedResourceName = OperatingSystemVersionConstantServiceClient.formatOperatingSystemVersionConstantName("[OPERATING_SYSTEM_VERSION_CONSTANT]");
+   *   OperatingSystemVersionConstant response = operatingSystemVersionConstantServiceClient.getOperatingSystemVersionConstant(formattedResourceName);
+   * }
+   * 
+ * + * @param resourceName Resource name of the OS version to fetch. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperatingSystemVersionConstant getOperatingSystemVersionConstant( + String resourceName) { + OPERATING_SYSTEM_VERSION_CONSTANT_PATH_TEMPLATE.validate( + resourceName, "getOperatingSystemVersionConstant"); + GetOperatingSystemVersionConstantRequest request = + GetOperatingSystemVersionConstantRequest.newBuilder().setResourceName(resourceName).build(); + return getOperatingSystemVersionConstant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns the requested OS version constant in full detail. + * + *

Sample code: + * + *


+   * try (OperatingSystemVersionConstantServiceClient operatingSystemVersionConstantServiceClient = OperatingSystemVersionConstantServiceClient.create()) {
+   *   String formattedResourceName = OperatingSystemVersionConstantServiceClient.formatOperatingSystemVersionConstantName("[OPERATING_SYSTEM_VERSION_CONSTANT]");
+   *   GetOperatingSystemVersionConstantRequest request = GetOperatingSystemVersionConstantRequest.newBuilder()
+   *     .setResourceName(formattedResourceName)
+   *     .build();
+   *   OperatingSystemVersionConstant response = operatingSystemVersionConstantServiceClient.getOperatingSystemVersionConstant(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperatingSystemVersionConstant getOperatingSystemVersionConstant( + GetOperatingSystemVersionConstantRequest request) { + return getOperatingSystemVersionConstantCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns the requested OS version constant in full detail. + * + *

Sample code: + * + *


+   * try (OperatingSystemVersionConstantServiceClient operatingSystemVersionConstantServiceClient = OperatingSystemVersionConstantServiceClient.create()) {
+   *   String formattedResourceName = OperatingSystemVersionConstantServiceClient.formatOperatingSystemVersionConstantName("[OPERATING_SYSTEM_VERSION_CONSTANT]");
+   *   GetOperatingSystemVersionConstantRequest request = GetOperatingSystemVersionConstantRequest.newBuilder()
+   *     .setResourceName(formattedResourceName)
+   *     .build();
+   *   ApiFuture<OperatingSystemVersionConstant> future = operatingSystemVersionConstantServiceClient.getOperatingSystemVersionConstantCallable().futureCall(request);
+   *   // Do something
+   *   OperatingSystemVersionConstant response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable< + GetOperatingSystemVersionConstantRequest, OperatingSystemVersionConstant> + getOperatingSystemVersionConstantCallable() { + return stub.getOperatingSystemVersionConstantCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/OperatingSystemVersionConstantServiceGrpc.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/OperatingSystemVersionConstantServiceGrpc.java new file mode 100644 index 0000000000..7bb9002d66 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/OperatingSystemVersionConstantServiceGrpc.java @@ -0,0 +1,313 @@ +package com.google.ads.googleads.v0.services; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; +import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; +import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + *
+ * Service to fetch Operating System Version constants.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/ads/googleads/v0/services/operating_system_version_constant_service.proto") +public final class OperatingSystemVersionConstantServiceGrpc { + + private OperatingSystemVersionConstantServiceGrpc() {} + + public static final String SERVICE_NAME = "google.ads.googleads.v0.services.OperatingSystemVersionConstantService"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetOperatingSystemVersionConstantMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_GET_OPERATING_SYSTEM_VERSION_CONSTANT = getGetOperatingSystemVersionConstantMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getGetOperatingSystemVersionConstantMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getGetOperatingSystemVersionConstantMethod() { + return getGetOperatingSystemVersionConstantMethodHelper(); + } + + private static io.grpc.MethodDescriptor getGetOperatingSystemVersionConstantMethodHelper() { + io.grpc.MethodDescriptor getGetOperatingSystemVersionConstantMethod; + if ((getGetOperatingSystemVersionConstantMethod = OperatingSystemVersionConstantServiceGrpc.getGetOperatingSystemVersionConstantMethod) == null) { + synchronized (OperatingSystemVersionConstantServiceGrpc.class) { + if ((getGetOperatingSystemVersionConstantMethod = OperatingSystemVersionConstantServiceGrpc.getGetOperatingSystemVersionConstantMethod) == null) { + OperatingSystemVersionConstantServiceGrpc.getGetOperatingSystemVersionConstantMethod = getGetOperatingSystemVersionConstantMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.ads.googleads.v0.services.OperatingSystemVersionConstantService", "GetOperatingSystemVersionConstant")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant.getDefaultInstance())) + .setSchemaDescriptor(new OperatingSystemVersionConstantServiceMethodDescriptorSupplier("GetOperatingSystemVersionConstant")) + .build(); + } + } + } + return getGetOperatingSystemVersionConstantMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static OperatingSystemVersionConstantServiceStub newStub(io.grpc.Channel channel) { + return new OperatingSystemVersionConstantServiceStub(channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static OperatingSystemVersionConstantServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + return new OperatingSystemVersionConstantServiceBlockingStub(channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static OperatingSystemVersionConstantServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + return new OperatingSystemVersionConstantServiceFutureStub(channel); + } + + /** + *
+   * Service to fetch Operating System Version constants.
+   * 
+ */ + public static abstract class OperatingSystemVersionConstantServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Returns the requested OS version constant in full detail.
+     * 
+ */ + public void getOperatingSystemVersionConstant(com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetOperatingSystemVersionConstantMethodHelper(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetOperatingSystemVersionConstantMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest, + com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant>( + this, METHODID_GET_OPERATING_SYSTEM_VERSION_CONSTANT))) + .build(); + } + } + + /** + *
+   * Service to fetch Operating System Version constants.
+   * 
+ */ + public static final class OperatingSystemVersionConstantServiceStub extends io.grpc.stub.AbstractStub { + private OperatingSystemVersionConstantServiceStub(io.grpc.Channel channel) { + super(channel); + } + + private OperatingSystemVersionConstantServiceStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected OperatingSystemVersionConstantServiceStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new OperatingSystemVersionConstantServiceStub(channel, callOptions); + } + + /** + *
+     * Returns the requested OS version constant in full detail.
+     * 
+ */ + public void getOperatingSystemVersionConstant(com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetOperatingSystemVersionConstantMethodHelper(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Service to fetch Operating System Version constants.
+   * 
+ */ + public static final class OperatingSystemVersionConstantServiceBlockingStub extends io.grpc.stub.AbstractStub { + private OperatingSystemVersionConstantServiceBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + private OperatingSystemVersionConstantServiceBlockingStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected OperatingSystemVersionConstantServiceBlockingStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new OperatingSystemVersionConstantServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Returns the requested OS version constant in full detail.
+     * 
+ */ + public com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant getOperatingSystemVersionConstant(com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest request) { + return blockingUnaryCall( + getChannel(), getGetOperatingSystemVersionConstantMethodHelper(), getCallOptions(), request); + } + } + + /** + *
+   * Service to fetch Operating System Version constants.
+   * 
+ */ + public static final class OperatingSystemVersionConstantServiceFutureStub extends io.grpc.stub.AbstractStub { + private OperatingSystemVersionConstantServiceFutureStub(io.grpc.Channel channel) { + super(channel); + } + + private OperatingSystemVersionConstantServiceFutureStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected OperatingSystemVersionConstantServiceFutureStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new OperatingSystemVersionConstantServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Returns the requested OS version constant in full detail.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getOperatingSystemVersionConstant( + com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetOperatingSystemVersionConstantMethodHelper(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_OPERATING_SYSTEM_VERSION_CONSTANT = 0; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final OperatingSystemVersionConstantServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(OperatingSystemVersionConstantServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_OPERATING_SYSTEM_VERSION_CONSTANT: + serviceImpl.getOperatingSystemVersionConstant((com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class OperatingSystemVersionConstantServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + OperatingSystemVersionConstantServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.ads.googleads.v0.services.OperatingSystemVersionConstantServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("OperatingSystemVersionConstantService"); + } + } + + private static final class OperatingSystemVersionConstantServiceFileDescriptorSupplier + extends OperatingSystemVersionConstantServiceBaseDescriptorSupplier { + OperatingSystemVersionConstantServiceFileDescriptorSupplier() {} + } + + private static final class OperatingSystemVersionConstantServiceMethodDescriptorSupplier + extends OperatingSystemVersionConstantServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + OperatingSystemVersionConstantServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (OperatingSystemVersionConstantServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new OperatingSystemVersionConstantServiceFileDescriptorSupplier()) + .addMethod(getGetOperatingSystemVersionConstantMethodHelper()) + .build(); + } + } + } + return result; + } +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/OperatingSystemVersionConstantServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/OperatingSystemVersionConstantServiceProto.java new file mode 100644 index 0000000000..8565f84f0e --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/OperatingSystemVersionConstantServiceProto.java @@ -0,0 +1,84 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/operating_system_version_constant_service.proto + +package com.google.ads.googleads.v0.services; + +public final class OperatingSystemVersionConstantServiceProto { + private OperatingSystemVersionConstantServiceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_services_GetOperatingSystemVersionConstantRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_services_GetOperatingSystemVersionConstantRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nPgoogle/ads/googleads/v0/services/opera" + + "ting_system_version_constant_service.pro" + + "to\022 google.ads.googleads.v0.services\032Igo" + + "ogle/ads/googleads/v0/resources/operatin" + + "g_system_version_constant.proto\032\034google/" + + "api/annotations.proto\"A\n(GetOperatingSys" + + "temVersionConstantRequest\022\025\n\rresource_na" + + "me\030\001 \001(\t2\233\002\n%OperatingSystemVersionConst" + + "antService\022\361\001\n!GetOperatingSystemVersion" + + "Constant\022J.google.ads.googleads.v0.servi" + + "ces.GetOperatingSystemVersionConstantReq" + + "uest\032A.google.ads.googleads.v0.resources" + + ".OperatingSystemVersionConstant\"=\202\323\344\223\0027\022" + + "5/v0/{resource_name=operatingSystemVersi" + + "onConstants/*}B\221\002\n$com.google.ads.google" + + "ads.v0.servicesB*OperatingSystemVersionC" + + "onstantServiceProtoP\001ZHgoogle.golang.org" + + "/genproto/googleapis/ads/googleads/v0/se" + + "rvices;services\242\002\003GAA\252\002 Google.Ads.Googl" + + "eAds.V0.Services\312\002 Google\\Ads\\GoogleAds\\" + + "V0\\Services\352\002$Google::Ads::GoogleAds::V0" + + "::Servicesb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.googleads.v0.resources.OperatingSystemVersionConstantProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }, assigner); + internal_static_google_ads_googleads_v0_services_GetOperatingSystemVersionConstantRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_googleads_v0_services_GetOperatingSystemVersionConstantRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_services_GetOperatingSystemVersionConstantRequest_descriptor, + new java.lang.String[] { "ResourceName", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.ads.googleads.v0.resources.OperatingSystemVersionConstantProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/OperatingSystemVersionConstantServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/OperatingSystemVersionConstantServiceSettings.java new file mode 100644 index 0000000000..9644077c81 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/OperatingSystemVersionConstantServiceSettings.java @@ -0,0 +1,183 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services; + +import com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant; +import com.google.ads.googleads.v0.services.stub.OperatingSystemVersionConstantServiceStubSettings; +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link OperatingSystemVersionConstantServiceClient}. + * + *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of getOperatingSystemVersionConstant to 30 seconds: + * + *

+ * 
+ * OperatingSystemVersionConstantServiceSettings.Builder operatingSystemVersionConstantServiceSettingsBuilder =
+ *     OperatingSystemVersionConstantServiceSettings.newBuilder();
+ * operatingSystemVersionConstantServiceSettingsBuilder.getOperatingSystemVersionConstantSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * OperatingSystemVersionConstantServiceSettings operatingSystemVersionConstantServiceSettings = operatingSystemVersionConstantServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class OperatingSystemVersionConstantServiceSettings + extends ClientSettings { + /** Returns the object with the settings used for calls to getOperatingSystemVersionConstant. */ + public UnaryCallSettings + getOperatingSystemVersionConstantSettings() { + return ((OperatingSystemVersionConstantServiceStubSettings) getStubSettings()) + .getOperatingSystemVersionConstantSettings(); + } + + public static final OperatingSystemVersionConstantServiceSettings create( + OperatingSystemVersionConstantServiceStubSettings stub) throws IOException { + return new OperatingSystemVersionConstantServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return OperatingSystemVersionConstantServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return OperatingSystemVersionConstantServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return OperatingSystemVersionConstantServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return OperatingSystemVersionConstantServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return OperatingSystemVersionConstantServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return OperatingSystemVersionConstantServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return OperatingSystemVersionConstantServiceStubSettings + .defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected OperatingSystemVersionConstantServiceSettings(Builder settingsBuilder) + throws IOException { + super(settingsBuilder); + } + + /** Builder for OperatingSystemVersionConstantServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + protected Builder() throws IOException { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(OperatingSystemVersionConstantServiceStubSettings.newBuilder(clientContext)); + } + + private static Builder createDefault() { + return new Builder(OperatingSystemVersionConstantServiceStubSettings.newBuilder()); + } + + protected Builder(OperatingSystemVersionConstantServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(OperatingSystemVersionConstantServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + public OperatingSystemVersionConstantServiceStubSettings.Builder getStubSettingsBuilder() { + return ((OperatingSystemVersionConstantServiceStubSettings.Builder) getStubSettings()); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getOperatingSystemVersionConstant. */ + public UnaryCallSettings.Builder< + GetOperatingSystemVersionConstantRequest, OperatingSystemVersionConstant> + getOperatingSystemVersionConstantSettings() { + return getStubSettingsBuilder().getOperatingSystemVersionConstantSettings(); + } + + @Override + public OperatingSystemVersionConstantServiceSettings build() throws IOException { + return new OperatingSystemVersionConstantServiceSettings(this); + } + } +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/ParentalStatusViewServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/ParentalStatusViewServiceClient.java index 1bdbe576ef..961c3183ab 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/ParentalStatusViewServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/ParentalStatusViewServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -226,7 +226,7 @@ public final ParentalStatusView getParentalStatusView(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final ParentalStatusView getParentalStatusView(GetParentalStatusViewRequest request) { + public final ParentalStatusView getParentalStatusView(GetParentalStatusViewRequest request) { return getParentalStatusViewCallable().call(request); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/ParentalStatusViewServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/ParentalStatusViewServiceProto.java index 83e9165024..118e8928a3 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/ParentalStatusViewServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/ParentalStatusViewServiceProto.java @@ -40,13 +40,13 @@ public static void registerAllExtensions( "iewRequest\0325.google.ads.googleads.v0.res" + "ources.ParentalStatusView\"=\202\323\344\223\0027\0225/v0/{" + "resource_name=customers/*/parentalStatus" + - "Views/*}B\336\001\n$com.google.ads.googleads.v0" + + "Views/*}B\205\002\n$com.google.ads.googleads.v0" + ".servicesB\036ParentalStatusViewServiceProt" + "oP\001ZHgoogle.golang.org/genproto/googleap" + "is/ads/googleads/v0/services;services\242\002\003" + "GAA\252\002 Google.Ads.GoogleAds.V0.Services\312\002" + - " Google\\Ads\\GoogleAds\\V0\\Servicesb\006proto" + - "3" + " Google\\Ads\\GoogleAds\\V0\\Services\352\002$Goog" + + "le::Ads::GoogleAds::V0::Servicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/ParentalStatusViewServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/ParentalStatusViewServiceSettings.java index 86f14037b8..4484892064 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/ParentalStatusViewServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/ParentalStatusViewServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/PaymentsAccountServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/PaymentsAccountServiceClient.java index 5e681e399a..addbb12f42 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/PaymentsAccountServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/PaymentsAccountServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -191,7 +191,7 @@ public final ListPaymentsAccountsResponse listPaymentsAccounts(String customerId * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final ListPaymentsAccountsResponse listPaymentsAccounts( + public final ListPaymentsAccountsResponse listPaymentsAccounts( ListPaymentsAccountsRequest request) { return listPaymentsAccountsCallable().call(request); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/PaymentsAccountServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/PaymentsAccountServiceProto.java index aee505065c..dde8008e39 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/PaymentsAccountServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/PaymentsAccountServiceProto.java @@ -47,13 +47,14 @@ public static void registerAllExtensions( "stPaymentsAccountsRequest\032>.google.ads.g" + "oogleads.v0.services.ListPaymentsAccount" + "sResponse\"6\202\323\344\223\0020\022./v0/customers/{custom" + - "er_id=*}/paymentsAccountsB\333\001\n$com.google" + + "er_id=*}/paymentsAccountsB\202\002\n$com.google" + ".ads.googleads.v0.servicesB\033PaymentsAcco" + "untServiceProtoP\001ZHgoogle.golang.org/gen" + "proto/googleapis/ads/googleads/v0/servic" + "es;services\242\002\003GAA\252\002 Google.Ads.GoogleAds" + ".V0.Services\312\002 Google\\Ads\\GoogleAds\\V0\\S" + - "ervicesb\006proto3" + "ervices\352\002$Google::Ads::GoogleAds::V0::Se" + + "rvicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/PaymentsAccountServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/PaymentsAccountServiceSettings.java index 9abeaf3ba5..6a6277e9d8 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/PaymentsAccountServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/PaymentsAccountServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/ProductGroupViewServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/ProductGroupViewServiceClient.java index e74f7c90cb..5e03eec066 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/ProductGroupViewServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/ProductGroupViewServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -221,7 +221,7 @@ public final ProductGroupView getProductGroupView(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final ProductGroupView getProductGroupView(GetProductGroupViewRequest request) { + public final ProductGroupView getProductGroupView(GetProductGroupViewRequest request) { return getProductGroupViewCallable().call(request); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/ProductGroupViewServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/ProductGroupViewServiceProto.java index f6b1c3c2f3..342aa41732 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/ProductGroupViewServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/ProductGroupViewServiceProto.java @@ -39,13 +39,14 @@ public static void registerAllExtensions( "v0.services.GetProductGroupViewRequest\0323" + ".google.ads.googleads.v0.resources.Produ" + "ctGroupView\";\202\323\344\223\0025\0223/v0/{resource_name=" + - "customers/*/productGroupViews/*}B\334\001\n$com" + + "customers/*/productGroupViews/*}B\203\002\n$com" + ".google.ads.googleads.v0.servicesB\034Produ" + "ctGroupViewServiceProtoP\001ZHgoogle.golang" + ".org/genproto/googleapis/ads/googleads/v" + "0/services;services\242\002\003GAA\252\002 Google.Ads.G" + "oogleAds.V0.Services\312\002 Google\\Ads\\Google" + - "Ads\\V0\\Servicesb\006proto3" + "Ads\\V0\\Services\352\002$Google::Ads::GoogleAds" + + "::V0::Servicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/ProductGroupViewServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/ProductGroupViewServiceSettings.java index 0fe596af30..93c3ea2a0b 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/ProductGroupViewServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/ProductGroupViewServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/RecommendationServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/RecommendationServiceClient.java index f471647f62..a8455eacc7 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/RecommendationServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/RecommendationServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -220,7 +220,7 @@ public final Recommendation getRecommendation(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final Recommendation getRecommendation(GetRecommendationRequest request) { + public final Recommendation getRecommendation(GetRecommendationRequest request) { return getRecommendationCallable().call(request); } @@ -255,27 +255,57 @@ public final UnaryCallable getRecommen *


    * try (RecommendationServiceClient recommendationServiceClient = RecommendationServiceClient.create()) {
    *   String customerId = "";
-   *   boolean partialFailure = false;
    *   List<ApplyRecommendationOperation> operations = new ArrayList<>();
-   *   ApplyRecommendationResponse response = recommendationServiceClient.applyRecommendation(customerId, partialFailure, operations);
+   *   boolean partialFailure = false;
+   *   ApplyRecommendationResponse response = recommendationServiceClient.applyRecommendation(customerId, operations, partialFailure);
    * }
    * 
* * @param customerId The ID of the customer with the recommendation. + * @param operations The list of operations to apply recommendations. If partial_failure=false all + * recommendations should be of the same type There is a limit of 100 operations per request. * @param partialFailure If true, successful operations will be carried out and invalid operations * will return errors. If false, operations will be carried out as a transaction if and only * if they are all valid. Default is false. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ApplyRecommendationResponse applyRecommendation( + String customerId, List operations, boolean partialFailure) { + + ApplyRecommendationRequest request = + ApplyRecommendationRequest.newBuilder() + .setCustomerId(customerId) + .addAllOperations(operations) + .setPartialFailure(partialFailure) + .build(); + return applyRecommendation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Applies given recommendations with corresponding apply parameters. + * + *

Sample code: + * + *


+   * try (RecommendationServiceClient recommendationServiceClient = RecommendationServiceClient.create()) {
+   *   String customerId = "";
+   *   List<ApplyRecommendationOperation> operations = new ArrayList<>();
+   *   ApplyRecommendationResponse response = recommendationServiceClient.applyRecommendation(customerId, operations);
+   * }
+   * 
+ * + * @param customerId The ID of the customer with the recommendation. * @param operations The list of operations to apply recommendations. If partial_failure=false all * recommendations should be of the same type There is a limit of 100 operations per request. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ApplyRecommendationResponse applyRecommendation( - String customerId, boolean partialFailure, List operations) { + String customerId, List operations) { ApplyRecommendationRequest request = ApplyRecommendationRequest.newBuilder() .setCustomerId(customerId) - .setPartialFailure(partialFailure) .addAllOperations(operations) .build(); return applyRecommendation(request); @@ -290,11 +320,9 @@ public final ApplyRecommendationResponse applyRecommendation( *

    * try (RecommendationServiceClient recommendationServiceClient = RecommendationServiceClient.create()) {
    *   String customerId = "";
-   *   boolean partialFailure = false;
    *   List<ApplyRecommendationOperation> operations = new ArrayList<>();
    *   ApplyRecommendationRequest request = ApplyRecommendationRequest.newBuilder()
    *     .setCustomerId(customerId)
-   *     .setPartialFailure(partialFailure)
    *     .addAllOperations(operations)
    *     .build();
    *   ApplyRecommendationResponse response = recommendationServiceClient.applyRecommendation(request);
@@ -317,11 +345,9 @@ public final ApplyRecommendationResponse applyRecommendation(ApplyRecommendation
    * 

    * try (RecommendationServiceClient recommendationServiceClient = RecommendationServiceClient.create()) {
    *   String customerId = "";
-   *   boolean partialFailure = false;
    *   List<ApplyRecommendationOperation> operations = new ArrayList<>();
    *   ApplyRecommendationRequest request = ApplyRecommendationRequest.newBuilder()
    *     .setCustomerId(customerId)
-   *     .setPartialFailure(partialFailure)
    *     .addAllOperations(operations)
    *     .build();
    *   ApiFuture<ApplyRecommendationResponse> future = recommendationServiceClient.applyRecommendationCallable().futureCall(request);
@@ -344,16 +370,50 @@ public final ApplyRecommendationResponse applyRecommendation(ApplyRecommendation
    * 

    * try (RecommendationServiceClient recommendationServiceClient = RecommendationServiceClient.create()) {
    *   String customerId = "";
-   *   boolean partialFailure = false;
    *   List<DismissRecommendationRequest.DismissRecommendationOperation> operations = new ArrayList<>();
-   *   DismissRecommendationResponse response = recommendationServiceClient.dismissRecommendation(customerId, partialFailure, operations);
+   *   boolean partialFailure = false;
+   *   DismissRecommendationResponse response = recommendationServiceClient.dismissRecommendation(customerId, operations, partialFailure);
    * }
    * 
* * @param customerId The ID of the customer with the recommendation. + * @param operations The list of operations to dismiss recommendations. If partial_failure=false + * all recommendations should be of the same type There is a limit of 100 operations per + * request. * @param partialFailure If true, successful operations will be carried out and invalid operations * will return errors. If false, operations will be carried in a single transaction if and * only if they are all valid. Default is false. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DismissRecommendationResponse dismissRecommendation( + String customerId, + List operations, + boolean partialFailure) { + + DismissRecommendationRequest request = + DismissRecommendationRequest.newBuilder() + .setCustomerId(customerId) + .addAllOperations(operations) + .setPartialFailure(partialFailure) + .build(); + return dismissRecommendation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Dismisses given recommendations. + * + *

Sample code: + * + *


+   * try (RecommendationServiceClient recommendationServiceClient = RecommendationServiceClient.create()) {
+   *   String customerId = "";
+   *   List<DismissRecommendationRequest.DismissRecommendationOperation> operations = new ArrayList<>();
+   *   DismissRecommendationResponse response = recommendationServiceClient.dismissRecommendation(customerId, operations);
+   * }
+   * 
+ * + * @param customerId The ID of the customer with the recommendation. * @param operations The list of operations to dismiss recommendations. If partial_failure=false * all recommendations should be of the same type There is a limit of 100 operations per * request. @@ -361,13 +421,11 @@ public final ApplyRecommendationResponse applyRecommendation(ApplyRecommendation */ public final DismissRecommendationResponse dismissRecommendation( String customerId, - boolean partialFailure, List operations) { DismissRecommendationRequest request = DismissRecommendationRequest.newBuilder() .setCustomerId(customerId) - .setPartialFailure(partialFailure) .addAllOperations(operations) .build(); return dismissRecommendation(request); @@ -382,11 +440,9 @@ public final DismissRecommendationResponse dismissRecommendation( *

    * try (RecommendationServiceClient recommendationServiceClient = RecommendationServiceClient.create()) {
    *   String customerId = "";
-   *   boolean partialFailure = false;
    *   List<DismissRecommendationRequest.DismissRecommendationOperation> operations = new ArrayList<>();
    *   DismissRecommendationRequest request = DismissRecommendationRequest.newBuilder()
    *     .setCustomerId(customerId)
-   *     .setPartialFailure(partialFailure)
    *     .addAllOperations(operations)
    *     .build();
    *   DismissRecommendationResponse response = recommendationServiceClient.dismissRecommendation(request);
@@ -410,11 +466,9 @@ public final DismissRecommendationResponse dismissRecommendation(
    * 

    * try (RecommendationServiceClient recommendationServiceClient = RecommendationServiceClient.create()) {
    *   String customerId = "";
-   *   boolean partialFailure = false;
    *   List<DismissRecommendationRequest.DismissRecommendationOperation> operations = new ArrayList<>();
    *   DismissRecommendationRequest request = DismissRecommendationRequest.newBuilder()
    *     .setCustomerId(customerId)
-   *     .setPartialFailure(partialFailure)
    *     .addAllOperations(operations)
    *     .build();
    *   ApiFuture<DismissRecommendationResponse> future = recommendationServiceClient.dismissRecommendationCallable().futureCall(request);
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/RecommendationServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/RecommendationServiceProto.java
index f09ae2284b..560f682a5e 100644
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/RecommendationServiceProto.java
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/RecommendationServiceProto.java
@@ -99,9 +99,9 @@ public static void registerAllExtensions(
       "gle/rpc/status.proto\"1\n\030GetRecommendatio" +
       "nRequest\022\025\n\rresource_name\030\001 \001(\t\"\236\001\n\032Appl" +
       "yRecommendationRequest\022\023\n\013customer_id\030\001 " +
-      "\001(\t\022\027\n\017partial_failure\030\003 \001(\010\022R\n\noperatio" +
-      "ns\030\002 \003(\0132>.google.ads.googleads.v0.servi" +
-      "ces.ApplyRecommendationOperation\"\220\010\n\034App" +
+      "\001(\t\022R\n\noperations\030\002 \003(\0132>.google.ads.goo" +
+      "gleads.v0.services.ApplyRecommendationOp" +
+      "eration\022\027\n\017partial_failure\030\003 \001(\010\"\220\010\n\034App" +
       "lyRecommendationOperation\022\025\n\rresource_na" +
       "me\030\001 \001(\t\022r\n\017campaign_budget\030\002 \001(\0132W.goog" +
       "le.ads.googleads.v0.services.ApplyRecomm" +
@@ -134,11 +134,11 @@ public static void registerAllExtensions(
       "lure_error\030\002 \001(\0132\022.google.rpc.Status\"2\n\031" +
       "ApplyRecommendationResult\022\025\n\rresource_na" +
       "me\030\001 \001(\t\"\370\001\n\034DismissRecommendationReques" +
-      "t\022\023\n\013customer_id\030\001 \001(\t\022\027\n\017partial_failur" +
-      "e\030\002 \001(\010\022q\n\noperations\030\003 \003(\0132].google.ads" +
-      ".googleads.v0.services.DismissRecommenda" +
-      "tionRequest.DismissRecommendationOperati" +
-      "on\0327\n\036DismissRecommendationOperation\022\025\n\r" +
+      "t\022\023\n\013customer_id\030\001 \001(\t\022q\n\noperations\030\003 \003" +
+      "(\0132].google.ads.googleads.v0.services.Di" +
+      "smissRecommendationRequest.DismissRecomm" +
+      "endationOperation\022\027\n\017partial_failure\030\002 \001" +
+      "(\010\0327\n\036DismissRecommendationOperation\022\025\n\r" +
       "resource_name\030\001 \001(\t\"\366\001\n\035DismissRecommend" +
       "ationResponse\022l\n\007results\030\001 \003(\0132[.google." +
       "ads.googleads.v0.services.DismissRecomme" +
@@ -162,12 +162,13 @@ public static void registerAllExtensions(
       "ds.googleads.v0.services.DismissRecommen" +
       "dationResponse\"@\202\323\344\223\002:\"5/v0/customers/{c" +
       "ustomer_id=*}/recommendations:dismiss:\001*" +
-      "B\332\001\n$com.google.ads.googleads.v0.service" +
+      "B\201\002\n$com.google.ads.googleads.v0.service" +
       "sB\032RecommendationServiceProtoP\001ZHgoogle." +
       "golang.org/genproto/googleapis/ads/googl" +
       "eads/v0/services;services\242\002\003GAA\252\002 Google" +
       ".Ads.GoogleAds.V0.Services\312\002 Google\\Ads\\" +
-      "GoogleAds\\V0\\Servicesb\006proto3"
+      "GoogleAds\\V0\\Services\352\002$Google::Ads::Goo" +
+      "gleAds::V0::Servicesb\006proto3"
     };
     com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
         new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
@@ -198,7 +199,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
     internal_static_google_ads_googleads_v0_services_ApplyRecommendationRequest_fieldAccessorTable = new
       com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
         internal_static_google_ads_googleads_v0_services_ApplyRecommendationRequest_descriptor,
-        new java.lang.String[] { "CustomerId", "PartialFailure", "Operations", });
+        new java.lang.String[] { "CustomerId", "Operations", "PartialFailure", });
     internal_static_google_ads_googleads_v0_services_ApplyRecommendationOperation_descriptor =
       getDescriptor().getMessageTypes().get(2);
     internal_static_google_ads_googleads_v0_services_ApplyRecommendationOperation_fieldAccessorTable = new
@@ -246,7 +247,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
     internal_static_google_ads_googleads_v0_services_DismissRecommendationRequest_fieldAccessorTable = new
       com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
         internal_static_google_ads_googleads_v0_services_DismissRecommendationRequest_descriptor,
-        new java.lang.String[] { "CustomerId", "PartialFailure", "Operations", });
+        new java.lang.String[] { "CustomerId", "Operations", "PartialFailure", });
     internal_static_google_ads_googleads_v0_services_DismissRecommendationRequest_DismissRecommendationOperation_descriptor =
       internal_static_google_ads_googleads_v0_services_DismissRecommendationRequest_descriptor.getNestedTypes().get(0);
     internal_static_google_ads_googleads_v0_services_DismissRecommendationRequest_DismissRecommendationOperation_fieldAccessorTable = new
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/RecommendationServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/RecommendationServiceSettings.java
index 9b3a7a3f00..2f21043e0f 100644
--- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/RecommendationServiceSettings.java
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/RecommendationServiceSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2018 Google LLC
+ * Copyright 2019 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/RemarketingActionOperation.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/RemarketingActionOperation.java
new file mode 100644
index 0000000000..184cf8a9a0
--- /dev/null
+++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/RemarketingActionOperation.java
@@ -0,0 +1,1247 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/ads/googleads/v0/services/remarketing_action_service.proto
+
+package com.google.ads.googleads.v0.services;
+
+/**
+ * 
+ * A single operation (create, update) on a remarketing action.
+ * 
+ * + * Protobuf type {@code google.ads.googleads.v0.services.RemarketingActionOperation} + */ +public final class RemarketingActionOperation extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.ads.googleads.v0.services.RemarketingActionOperation) + RemarketingActionOperationOrBuilder { +private static final long serialVersionUID = 0L; + // Use RemarketingActionOperation.newBuilder() to construct. + private RemarketingActionOperation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RemarketingActionOperation() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RemarketingActionOperation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.ads.googleads.v0.resources.RemarketingAction.Builder subBuilder = null; + if (operationCase_ == 1) { + subBuilder = ((com.google.ads.googleads.v0.resources.RemarketingAction) operation_).toBuilder(); + } + operation_ = + input.readMessage(com.google.ads.googleads.v0.resources.RemarketingAction.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.ads.googleads.v0.resources.RemarketingAction) operation_); + operation_ = subBuilder.buildPartial(); + } + operationCase_ = 1; + break; + } + case 18: { + com.google.ads.googleads.v0.resources.RemarketingAction.Builder subBuilder = null; + if (operationCase_ == 2) { + subBuilder = ((com.google.ads.googleads.v0.resources.RemarketingAction) operation_).toBuilder(); + } + operation_ = + input.readMessage(com.google.ads.googleads.v0.resources.RemarketingAction.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.ads.googleads.v0.resources.RemarketingAction) operation_); + operation_ = subBuilder.buildPartial(); + } + operationCase_ = 2; + break; + } + case 34: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.services.RemarketingActionServiceProto.internal_static_google_ads_googleads_v0_services_RemarketingActionOperation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.services.RemarketingActionServiceProto.internal_static_google_ads_googleads_v0_services_RemarketingActionOperation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.services.RemarketingActionOperation.class, com.google.ads.googleads.v0.services.RemarketingActionOperation.Builder.class); + } + + private int operationCase_ = 0; + private java.lang.Object operation_; + public enum OperationCase + implements com.google.protobuf.Internal.EnumLite { + CREATE(1), + UPDATE(2), + OPERATION_NOT_SET(0); + private final int value; + private OperationCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OperationCase valueOf(int value) { + return forNumber(value); + } + + public static OperationCase forNumber(int value) { + switch (value) { + case 1: return CREATE; + case 2: return UPDATE; + case 0: return OPERATION_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OperationCase + getOperationCase() { + return OperationCase.forNumber( + operationCase_); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 4; + private com.google.protobuf.FieldMask updateMask_; + /** + *
+   * FieldMask that determines which resource fields are modified in an update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + *
+   * FieldMask that determines which resource fields are modified in an update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + *
+   * FieldMask that determines which resource fields are modified in an update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + public static final int CREATE_FIELD_NUMBER = 1; + /** + *
+   * Create operation: No resource name is expected for the new remarketing
+   * action.
+   * 
+ * + * .google.ads.googleads.v0.resources.RemarketingAction create = 1; + */ + public boolean hasCreate() { + return operationCase_ == 1; + } + /** + *
+   * Create operation: No resource name is expected for the new remarketing
+   * action.
+   * 
+ * + * .google.ads.googleads.v0.resources.RemarketingAction create = 1; + */ + public com.google.ads.googleads.v0.resources.RemarketingAction getCreate() { + if (operationCase_ == 1) { + return (com.google.ads.googleads.v0.resources.RemarketingAction) operation_; + } + return com.google.ads.googleads.v0.resources.RemarketingAction.getDefaultInstance(); + } + /** + *
+   * Create operation: No resource name is expected for the new remarketing
+   * action.
+   * 
+ * + * .google.ads.googleads.v0.resources.RemarketingAction create = 1; + */ + public com.google.ads.googleads.v0.resources.RemarketingActionOrBuilder getCreateOrBuilder() { + if (operationCase_ == 1) { + return (com.google.ads.googleads.v0.resources.RemarketingAction) operation_; + } + return com.google.ads.googleads.v0.resources.RemarketingAction.getDefaultInstance(); + } + + public static final int UPDATE_FIELD_NUMBER = 2; + /** + *
+   * Update operation: The remarketing action is expected to have a valid
+   * resource name.
+   * 
+ * + * .google.ads.googleads.v0.resources.RemarketingAction update = 2; + */ + public boolean hasUpdate() { + return operationCase_ == 2; + } + /** + *
+   * Update operation: The remarketing action is expected to have a valid
+   * resource name.
+   * 
+ * + * .google.ads.googleads.v0.resources.RemarketingAction update = 2; + */ + public com.google.ads.googleads.v0.resources.RemarketingAction getUpdate() { + if (operationCase_ == 2) { + return (com.google.ads.googleads.v0.resources.RemarketingAction) operation_; + } + return com.google.ads.googleads.v0.resources.RemarketingAction.getDefaultInstance(); + } + /** + *
+   * Update operation: The remarketing action is expected to have a valid
+   * resource name.
+   * 
+ * + * .google.ads.googleads.v0.resources.RemarketingAction update = 2; + */ + public com.google.ads.googleads.v0.resources.RemarketingActionOrBuilder getUpdateOrBuilder() { + if (operationCase_ == 2) { + return (com.google.ads.googleads.v0.resources.RemarketingAction) operation_; + } + return com.google.ads.googleads.v0.resources.RemarketingAction.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (operationCase_ == 1) { + output.writeMessage(1, (com.google.ads.googleads.v0.resources.RemarketingAction) operation_); + } + if (operationCase_ == 2) { + output.writeMessage(2, (com.google.ads.googleads.v0.resources.RemarketingAction) operation_); + } + if (updateMask_ != null) { + output.writeMessage(4, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (operationCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.ads.googleads.v0.resources.RemarketingAction) operation_); + } + if (operationCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.ads.googleads.v0.resources.RemarketingAction) operation_); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUpdateMask()); + } + size += unknownFields.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.ads.googleads.v0.services.RemarketingActionOperation)) { + return super.equals(obj); + } + com.google.ads.googleads.v0.services.RemarketingActionOperation other = (com.google.ads.googleads.v0.services.RemarketingActionOperation) obj; + + boolean result = true; + result = result && (hasUpdateMask() == other.hasUpdateMask()); + if (hasUpdateMask()) { + result = result && getUpdateMask() + .equals(other.getUpdateMask()); + } + result = result && getOperationCase().equals( + other.getOperationCase()); + if (!result) return false; + switch (operationCase_) { + case 1: + result = result && getCreate() + .equals(other.getCreate()); + break; + case 2: + result = result && getUpdate() + .equals(other.getUpdate()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + switch (operationCase_) { + case 1: + hash = (37 * hash) + CREATE_FIELD_NUMBER; + hash = (53 * hash) + getCreate().hashCode(); + break; + case 2: + hash = (37 * hash) + UPDATE_FIELD_NUMBER; + hash = (53 * hash) + getUpdate().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.googleads.v0.services.RemarketingActionOperation parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.RemarketingActionOperation parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.services.RemarketingActionOperation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.RemarketingActionOperation 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.ads.googleads.v0.services.RemarketingActionOperation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.ads.googleads.v0.services.RemarketingActionOperation parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.ads.googleads.v0.services.RemarketingActionOperation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.RemarketingActionOperation 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.ads.googleads.v0.services.RemarketingActionOperation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.RemarketingActionOperation 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.ads.googleads.v0.services.RemarketingActionOperation parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.ads.googleads.v0.services.RemarketingActionOperation 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.ads.googleads.v0.services.RemarketingActionOperation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A single operation (create, update) on a remarketing action.
+   * 
+ * + * Protobuf type {@code google.ads.googleads.v0.services.RemarketingActionOperation} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.ads.googleads.v0.services.RemarketingActionOperation) + com.google.ads.googleads.v0.services.RemarketingActionOperationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.ads.googleads.v0.services.RemarketingActionServiceProto.internal_static_google_ads_googleads_v0_services_RemarketingActionOperation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.googleads.v0.services.RemarketingActionServiceProto.internal_static_google_ads_googleads_v0_services_RemarketingActionOperation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.googleads.v0.services.RemarketingActionOperation.class, com.google.ads.googleads.v0.services.RemarketingActionOperation.Builder.class); + } + + // Construct using com.google.ads.googleads.v0.services.RemarketingActionOperation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + operationCase_ = 0; + operation_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.ads.googleads.v0.services.RemarketingActionServiceProto.internal_static_google_ads_googleads_v0_services_RemarketingActionOperation_descriptor; + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.RemarketingActionOperation getDefaultInstanceForType() { + return com.google.ads.googleads.v0.services.RemarketingActionOperation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.RemarketingActionOperation build() { + com.google.ads.googleads.v0.services.RemarketingActionOperation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.googleads.v0.services.RemarketingActionOperation buildPartial() { + com.google.ads.googleads.v0.services.RemarketingActionOperation result = new com.google.ads.googleads.v0.services.RemarketingActionOperation(this); + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + if (operationCase_ == 1) { + if (createBuilder_ == null) { + result.operation_ = operation_; + } else { + result.operation_ = createBuilder_.build(); + } + } + if (operationCase_ == 2) { + if (updateBuilder_ == null) { + result.operation_ = operation_; + } else { + result.operation_ = updateBuilder_.build(); + } + } + result.operationCase_ = operationCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.googleads.v0.services.RemarketingActionOperation) { + return mergeFrom((com.google.ads.googleads.v0.services.RemarketingActionOperation)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.googleads.v0.services.RemarketingActionOperation other) { + if (other == com.google.ads.googleads.v0.services.RemarketingActionOperation.getDefaultInstance()) return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + switch (other.getOperationCase()) { + case CREATE: { + mergeCreate(other.getCreate()); + break; + } + case UPDATE: { + mergeUpdate(other.getUpdate()); + break; + } + case OPERATION_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.ads.googleads.v0.services.RemarketingActionOperation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.ads.googleads.v0.services.RemarketingActionOperation) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int operationCase_ = 0; + private java.lang.Object operation_; + public OperationCase + getOperationCase() { + return OperationCase.forNumber( + operationCase_); + } + + public Builder clearOperation() { + operationCase_ = 0; + operation_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.FieldMask updateMask_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + /** + *
+     * FieldMask that determines which resource fields are modified in an update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + *
+     * FieldMask that determines which resource fields are modified in an update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + *
+     * FieldMask that determines which resource fields are modified in an update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * FieldMask that determines which resource fields are modified in an update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * FieldMask that determines which resource fields are modified in an update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * FieldMask that determines which resource fields are modified in an update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + *
+     * FieldMask that determines which resource fields are modified in an update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + *
+     * FieldMask that determines which resource fields are modified in an update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + } + /** + *
+     * FieldMask that determines which resource fields are modified in an update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.RemarketingAction, com.google.ads.googleads.v0.resources.RemarketingAction.Builder, com.google.ads.googleads.v0.resources.RemarketingActionOrBuilder> createBuilder_; + /** + *
+     * Create operation: No resource name is expected for the new remarketing
+     * action.
+     * 
+ * + * .google.ads.googleads.v0.resources.RemarketingAction create = 1; + */ + public boolean hasCreate() { + return operationCase_ == 1; + } + /** + *
+     * Create operation: No resource name is expected for the new remarketing
+     * action.
+     * 
+ * + * .google.ads.googleads.v0.resources.RemarketingAction create = 1; + */ + public com.google.ads.googleads.v0.resources.RemarketingAction getCreate() { + if (createBuilder_ == null) { + if (operationCase_ == 1) { + return (com.google.ads.googleads.v0.resources.RemarketingAction) operation_; + } + return com.google.ads.googleads.v0.resources.RemarketingAction.getDefaultInstance(); + } else { + if (operationCase_ == 1) { + return createBuilder_.getMessage(); + } + return com.google.ads.googleads.v0.resources.RemarketingAction.getDefaultInstance(); + } + } + /** + *
+     * Create operation: No resource name is expected for the new remarketing
+     * action.
+     * 
+ * + * .google.ads.googleads.v0.resources.RemarketingAction create = 1; + */ + public Builder setCreate(com.google.ads.googleads.v0.resources.RemarketingAction value) { + if (createBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + operation_ = value; + onChanged(); + } else { + createBuilder_.setMessage(value); + } + operationCase_ = 1; + return this; + } + /** + *
+     * Create operation: No resource name is expected for the new remarketing
+     * action.
+     * 
+ * + * .google.ads.googleads.v0.resources.RemarketingAction create = 1; + */ + public Builder setCreate( + com.google.ads.googleads.v0.resources.RemarketingAction.Builder builderForValue) { + if (createBuilder_ == null) { + operation_ = builderForValue.build(); + onChanged(); + } else { + createBuilder_.setMessage(builderForValue.build()); + } + operationCase_ = 1; + return this; + } + /** + *
+     * Create operation: No resource name is expected for the new remarketing
+     * action.
+     * 
+ * + * .google.ads.googleads.v0.resources.RemarketingAction create = 1; + */ + public Builder mergeCreate(com.google.ads.googleads.v0.resources.RemarketingAction value) { + if (createBuilder_ == null) { + if (operationCase_ == 1 && + operation_ != com.google.ads.googleads.v0.resources.RemarketingAction.getDefaultInstance()) { + operation_ = com.google.ads.googleads.v0.resources.RemarketingAction.newBuilder((com.google.ads.googleads.v0.resources.RemarketingAction) operation_) + .mergeFrom(value).buildPartial(); + } else { + operation_ = value; + } + onChanged(); + } else { + if (operationCase_ == 1) { + createBuilder_.mergeFrom(value); + } + createBuilder_.setMessage(value); + } + operationCase_ = 1; + return this; + } + /** + *
+     * Create operation: No resource name is expected for the new remarketing
+     * action.
+     * 
+ * + * .google.ads.googleads.v0.resources.RemarketingAction create = 1; + */ + public Builder clearCreate() { + if (createBuilder_ == null) { + if (operationCase_ == 1) { + operationCase_ = 0; + operation_ = null; + onChanged(); + } + } else { + if (operationCase_ == 1) { + operationCase_ = 0; + operation_ = null; + } + createBuilder_.clear(); + } + return this; + } + /** + *
+     * Create operation: No resource name is expected for the new remarketing
+     * action.
+     * 
+ * + * .google.ads.googleads.v0.resources.RemarketingAction create = 1; + */ + public com.google.ads.googleads.v0.resources.RemarketingAction.Builder getCreateBuilder() { + return getCreateFieldBuilder().getBuilder(); + } + /** + *
+     * Create operation: No resource name is expected for the new remarketing
+     * action.
+     * 
+ * + * .google.ads.googleads.v0.resources.RemarketingAction create = 1; + */ + public com.google.ads.googleads.v0.resources.RemarketingActionOrBuilder getCreateOrBuilder() { + if ((operationCase_ == 1) && (createBuilder_ != null)) { + return createBuilder_.getMessageOrBuilder(); + } else { + if (operationCase_ == 1) { + return (com.google.ads.googleads.v0.resources.RemarketingAction) operation_; + } + return com.google.ads.googleads.v0.resources.RemarketingAction.getDefaultInstance(); + } + } + /** + *
+     * Create operation: No resource name is expected for the new remarketing
+     * action.
+     * 
+ * + * .google.ads.googleads.v0.resources.RemarketingAction create = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.RemarketingAction, com.google.ads.googleads.v0.resources.RemarketingAction.Builder, com.google.ads.googleads.v0.resources.RemarketingActionOrBuilder> + getCreateFieldBuilder() { + if (createBuilder_ == null) { + if (!(operationCase_ == 1)) { + operation_ = com.google.ads.googleads.v0.resources.RemarketingAction.getDefaultInstance(); + } + createBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.RemarketingAction, com.google.ads.googleads.v0.resources.RemarketingAction.Builder, com.google.ads.googleads.v0.resources.RemarketingActionOrBuilder>( + (com.google.ads.googleads.v0.resources.RemarketingAction) operation_, + getParentForChildren(), + isClean()); + operation_ = null; + } + operationCase_ = 1; + onChanged();; + return createBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.RemarketingAction, com.google.ads.googleads.v0.resources.RemarketingAction.Builder, com.google.ads.googleads.v0.resources.RemarketingActionOrBuilder> updateBuilder_; + /** + *
+     * Update operation: The remarketing action is expected to have a valid
+     * resource name.
+     * 
+ * + * .google.ads.googleads.v0.resources.RemarketingAction update = 2; + */ + public boolean hasUpdate() { + return operationCase_ == 2; + } + /** + *
+     * Update operation: The remarketing action is expected to have a valid
+     * resource name.
+     * 
+ * + * .google.ads.googleads.v0.resources.RemarketingAction update = 2; + */ + public com.google.ads.googleads.v0.resources.RemarketingAction getUpdate() { + if (updateBuilder_ == null) { + if (operationCase_ == 2) { + return (com.google.ads.googleads.v0.resources.RemarketingAction) operation_; + } + return com.google.ads.googleads.v0.resources.RemarketingAction.getDefaultInstance(); + } else { + if (operationCase_ == 2) { + return updateBuilder_.getMessage(); + } + return com.google.ads.googleads.v0.resources.RemarketingAction.getDefaultInstance(); + } + } + /** + *
+     * Update operation: The remarketing action is expected to have a valid
+     * resource name.
+     * 
+ * + * .google.ads.googleads.v0.resources.RemarketingAction update = 2; + */ + public Builder setUpdate(com.google.ads.googleads.v0.resources.RemarketingAction value) { + if (updateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + operation_ = value; + onChanged(); + } else { + updateBuilder_.setMessage(value); + } + operationCase_ = 2; + return this; + } + /** + *
+     * Update operation: The remarketing action is expected to have a valid
+     * resource name.
+     * 
+ * + * .google.ads.googleads.v0.resources.RemarketingAction update = 2; + */ + public Builder setUpdate( + com.google.ads.googleads.v0.resources.RemarketingAction.Builder builderForValue) { + if (updateBuilder_ == null) { + operation_ = builderForValue.build(); + onChanged(); + } else { + updateBuilder_.setMessage(builderForValue.build()); + } + operationCase_ = 2; + return this; + } + /** + *
+     * Update operation: The remarketing action is expected to have a valid
+     * resource name.
+     * 
+ * + * .google.ads.googleads.v0.resources.RemarketingAction update = 2; + */ + public Builder mergeUpdate(com.google.ads.googleads.v0.resources.RemarketingAction value) { + if (updateBuilder_ == null) { + if (operationCase_ == 2 && + operation_ != com.google.ads.googleads.v0.resources.RemarketingAction.getDefaultInstance()) { + operation_ = com.google.ads.googleads.v0.resources.RemarketingAction.newBuilder((com.google.ads.googleads.v0.resources.RemarketingAction) operation_) + .mergeFrom(value).buildPartial(); + } else { + operation_ = value; + } + onChanged(); + } else { + if (operationCase_ == 2) { + updateBuilder_.mergeFrom(value); + } + updateBuilder_.setMessage(value); + } + operationCase_ = 2; + return this; + } + /** + *
+     * Update operation: The remarketing action is expected to have a valid
+     * resource name.
+     * 
+ * + * .google.ads.googleads.v0.resources.RemarketingAction update = 2; + */ + public Builder clearUpdate() { + if (updateBuilder_ == null) { + if (operationCase_ == 2) { + operationCase_ = 0; + operation_ = null; + onChanged(); + } + } else { + if (operationCase_ == 2) { + operationCase_ = 0; + operation_ = null; + } + updateBuilder_.clear(); + } + return this; + } + /** + *
+     * Update operation: The remarketing action is expected to have a valid
+     * resource name.
+     * 
+ * + * .google.ads.googleads.v0.resources.RemarketingAction update = 2; + */ + public com.google.ads.googleads.v0.resources.RemarketingAction.Builder getUpdateBuilder() { + return getUpdateFieldBuilder().getBuilder(); + } + /** + *
+     * Update operation: The remarketing action is expected to have a valid
+     * resource name.
+     * 
+ * + * .google.ads.googleads.v0.resources.RemarketingAction update = 2; + */ + public com.google.ads.googleads.v0.resources.RemarketingActionOrBuilder getUpdateOrBuilder() { + if ((operationCase_ == 2) && (updateBuilder_ != null)) { + return updateBuilder_.getMessageOrBuilder(); + } else { + if (operationCase_ == 2) { + return (com.google.ads.googleads.v0.resources.RemarketingAction) operation_; + } + return com.google.ads.googleads.v0.resources.RemarketingAction.getDefaultInstance(); + } + } + /** + *
+     * Update operation: The remarketing action is expected to have a valid
+     * resource name.
+     * 
+ * + * .google.ads.googleads.v0.resources.RemarketingAction update = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.RemarketingAction, com.google.ads.googleads.v0.resources.RemarketingAction.Builder, com.google.ads.googleads.v0.resources.RemarketingActionOrBuilder> + getUpdateFieldBuilder() { + if (updateBuilder_ == null) { + if (!(operationCase_ == 2)) { + operation_ = com.google.ads.googleads.v0.resources.RemarketingAction.getDefaultInstance(); + } + updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.googleads.v0.resources.RemarketingAction, com.google.ads.googleads.v0.resources.RemarketingAction.Builder, com.google.ads.googleads.v0.resources.RemarketingActionOrBuilder>( + (com.google.ads.googleads.v0.resources.RemarketingAction) operation_, + getParentForChildren(), + isClean()); + operation_ = null; + } + operationCase_ = 2; + onChanged();; + return updateBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.ads.googleads.v0.services.RemarketingActionOperation) + } + + // @@protoc_insertion_point(class_scope:google.ads.googleads.v0.services.RemarketingActionOperation) + private static final com.google.ads.googleads.v0.services.RemarketingActionOperation DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.ads.googleads.v0.services.RemarketingActionOperation(); + } + + public static com.google.ads.googleads.v0.services.RemarketingActionOperation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RemarketingActionOperation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RemarketingActionOperation(input, extensionRegistry); + } + }; + + 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.ads.googleads.v0.services.RemarketingActionOperation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/RemarketingActionOperationOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/RemarketingActionOperationOrBuilder.java new file mode 100644 index 0000000000..b4bb231fe0 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/RemarketingActionOperationOrBuilder.java @@ -0,0 +1,92 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/remarketing_action_service.proto + +package com.google.ads.googleads.v0.services; + +public interface RemarketingActionOperationOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.ads.googleads.v0.services.RemarketingActionOperation) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * FieldMask that determines which resource fields are modified in an update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + boolean hasUpdateMask(); + /** + *
+   * FieldMask that determines which resource fields are modified in an update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + *
+   * FieldMask that determines which resource fields are modified in an update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 4; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + *
+   * Create operation: No resource name is expected for the new remarketing
+   * action.
+   * 
+ * + * .google.ads.googleads.v0.resources.RemarketingAction create = 1; + */ + boolean hasCreate(); + /** + *
+   * Create operation: No resource name is expected for the new remarketing
+   * action.
+   * 
+ * + * .google.ads.googleads.v0.resources.RemarketingAction create = 1; + */ + com.google.ads.googleads.v0.resources.RemarketingAction getCreate(); + /** + *
+   * Create operation: No resource name is expected for the new remarketing
+   * action.
+   * 
+ * + * .google.ads.googleads.v0.resources.RemarketingAction create = 1; + */ + com.google.ads.googleads.v0.resources.RemarketingActionOrBuilder getCreateOrBuilder(); + + /** + *
+   * Update operation: The remarketing action is expected to have a valid
+   * resource name.
+   * 
+ * + * .google.ads.googleads.v0.resources.RemarketingAction update = 2; + */ + boolean hasUpdate(); + /** + *
+   * Update operation: The remarketing action is expected to have a valid
+   * resource name.
+   * 
+ * + * .google.ads.googleads.v0.resources.RemarketingAction update = 2; + */ + com.google.ads.googleads.v0.resources.RemarketingAction getUpdate(); + /** + *
+   * Update operation: The remarketing action is expected to have a valid
+   * resource name.
+   * 
+ * + * .google.ads.googleads.v0.resources.RemarketingAction update = 2; + */ + com.google.ads.googleads.v0.resources.RemarketingActionOrBuilder getUpdateOrBuilder(); + + public com.google.ads.googleads.v0.services.RemarketingActionOperation.OperationCase getOperationCase(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/RemarketingActionServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/RemarketingActionServiceClient.java new file mode 100644 index 0000000000..870bddff41 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/RemarketingActionServiceClient.java @@ -0,0 +1,404 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services; + +import com.google.ads.googleads.v0.resources.RemarketingAction; +import com.google.ads.googleads.v0.services.stub.RemarketingActionServiceStub; +import com.google.ads.googleads.v0.services.stub.RemarketingActionServiceStubSettings; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.api.pathtemplate.PathTemplate; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND SERVICE +/** + * Service Description: Service to manage remarketing actions. + * + *

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

+ * 
+ * try (RemarketingActionServiceClient remarketingActionServiceClient = RemarketingActionServiceClient.create()) {
+ *   String formattedResourceName = RemarketingActionServiceClient.formatRemarketingActionName("[CUSTOMER]", "[REMARKETING_ACTION]");
+ *   RemarketingAction response = remarketingActionServiceClient.getRemarketingAction(formattedResourceName);
+ * }
+ * 
+ * 
+ * + *

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

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

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

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

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

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

To customize credentials: + * + *

+ * 
+ * RemarketingActionServiceSettings remarketingActionServiceSettings =
+ *     RemarketingActionServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * RemarketingActionServiceClient remarketingActionServiceClient =
+ *     RemarketingActionServiceClient.create(remarketingActionServiceSettings);
+ * 
+ * 
+ * + * To customize the endpoint: + * + *
+ * 
+ * RemarketingActionServiceSettings remarketingActionServiceSettings =
+ *     RemarketingActionServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * RemarketingActionServiceClient remarketingActionServiceClient =
+ *     RemarketingActionServiceClient.create(remarketingActionServiceSettings);
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class RemarketingActionServiceClient implements BackgroundResource { + private final RemarketingActionServiceSettings settings; + private final RemarketingActionServiceStub stub; + + private static final PathTemplate REMARKETING_ACTION_PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding( + "customers/{customer}/remarketingActions/{remarketing_action}"); + + /** + * Formats a string containing the fully-qualified path to represent a remarketing_action + * resource. + */ + public static final String formatRemarketingActionName( + String customer, String remarketingAction) { + return REMARKETING_ACTION_PATH_TEMPLATE.instantiate( + "customer", customer, + "remarketing_action", remarketingAction); + } + + /** + * Parses the customer from the given fully-qualified path which represents a remarketing_action + * resource. + */ + public static final String parseCustomerFromRemarketingActionName(String remarketingActionName) { + return REMARKETING_ACTION_PATH_TEMPLATE.parse(remarketingActionName).get("customer"); + } + + /** + * Parses the remarketing_action from the given fully-qualified path which represents a + * remarketing_action resource. + */ + public static final String parseRemarketingActionFromRemarketingActionName( + String remarketingActionName) { + return REMARKETING_ACTION_PATH_TEMPLATE.parse(remarketingActionName).get("remarketing_action"); + } + + /** Constructs an instance of RemarketingActionServiceClient with default settings. */ + public static final RemarketingActionServiceClient create() throws IOException { + return create(RemarketingActionServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of RemarketingActionServiceClient, using the given settings. The + * channels are created based on the settings passed in, or defaults for any settings that are not + * set. + */ + public static final RemarketingActionServiceClient create( + RemarketingActionServiceSettings settings) throws IOException { + return new RemarketingActionServiceClient(settings); + } + + /** + * Constructs an instance of RemarketingActionServiceClient, using the given stub for making + * calls. This is for advanced usage - prefer to use RemarketingActionServiceSettings}. + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final RemarketingActionServiceClient create(RemarketingActionServiceStub stub) { + return new RemarketingActionServiceClient(stub); + } + + /** + * Constructs an instance of RemarketingActionServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected RemarketingActionServiceClient(RemarketingActionServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((RemarketingActionServiceStubSettings) settings.getStubSettings()).createStub(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected RemarketingActionServiceClient(RemarketingActionServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final RemarketingActionServiceSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public RemarketingActionServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns the requested remarketing action in full detail. + * + *

Sample code: + * + *


+   * try (RemarketingActionServiceClient remarketingActionServiceClient = RemarketingActionServiceClient.create()) {
+   *   String formattedResourceName = RemarketingActionServiceClient.formatRemarketingActionName("[CUSTOMER]", "[REMARKETING_ACTION]");
+   *   RemarketingAction response = remarketingActionServiceClient.getRemarketingAction(formattedResourceName);
+   * }
+   * 
+ * + * @param resourceName The resource name of the remarketing action to fetch. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RemarketingAction getRemarketingAction(String resourceName) { + REMARKETING_ACTION_PATH_TEMPLATE.validate(resourceName, "getRemarketingAction"); + GetRemarketingActionRequest request = + GetRemarketingActionRequest.newBuilder().setResourceName(resourceName).build(); + return getRemarketingAction(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns the requested remarketing action in full detail. + * + *

Sample code: + * + *


+   * try (RemarketingActionServiceClient remarketingActionServiceClient = RemarketingActionServiceClient.create()) {
+   *   String formattedResourceName = RemarketingActionServiceClient.formatRemarketingActionName("[CUSTOMER]", "[REMARKETING_ACTION]");
+   *   GetRemarketingActionRequest request = GetRemarketingActionRequest.newBuilder()
+   *     .setResourceName(formattedResourceName)
+   *     .build();
+   *   RemarketingAction response = remarketingActionServiceClient.getRemarketingAction(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RemarketingAction getRemarketingAction(GetRemarketingActionRequest request) { + return getRemarketingActionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns the requested remarketing action in full detail. + * + *

Sample code: + * + *


+   * try (RemarketingActionServiceClient remarketingActionServiceClient = RemarketingActionServiceClient.create()) {
+   *   String formattedResourceName = RemarketingActionServiceClient.formatRemarketingActionName("[CUSTOMER]", "[REMARKETING_ACTION]");
+   *   GetRemarketingActionRequest request = GetRemarketingActionRequest.newBuilder()
+   *     .setResourceName(formattedResourceName)
+   *     .build();
+   *   ApiFuture<RemarketingAction> future = remarketingActionServiceClient.getRemarketingActionCallable().futureCall(request);
+   *   // Do something
+   *   RemarketingAction response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + getRemarketingActionCallable() { + return stub.getRemarketingActionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates or updates remarketing actions. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (RemarketingActionServiceClient remarketingActionServiceClient = RemarketingActionServiceClient.create()) {
+   *   String customerId = "";
+   *   List<RemarketingActionOperation> operations = new ArrayList<>();
+   *   boolean partialFailure = false;
+   *   boolean validateOnly = false;
+   *   MutateRemarketingActionsResponse response = remarketingActionServiceClient.mutateRemarketingActions(customerId, operations, partialFailure, validateOnly);
+   * }
+   * 
+ * + * @param customerId The ID of the customer whose remarketing actions are being modified. + * @param operations The list of operations to perform on individual remarketing actions. + * @param partialFailure If true, successful operations will be carried out and invalid operations + * will return errors. If false, all operations will be carried out in one transaction if and + * only if they are all valid. Default is false. + * @param validateOnly If true, the request is validated but not executed. Only errors are + * returned, not results. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateRemarketingActionsResponse mutateRemarketingActions( + String customerId, + List operations, + boolean partialFailure, + boolean validateOnly) { + + MutateRemarketingActionsRequest request = + MutateRemarketingActionsRequest.newBuilder() + .setCustomerId(customerId) + .addAllOperations(operations) + .setPartialFailure(partialFailure) + .setValidateOnly(validateOnly) + .build(); + return mutateRemarketingActions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates or updates remarketing actions. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (RemarketingActionServiceClient remarketingActionServiceClient = RemarketingActionServiceClient.create()) {
+   *   String customerId = "";
+   *   List<RemarketingActionOperation> operations = new ArrayList<>();
+   *   MutateRemarketingActionsResponse response = remarketingActionServiceClient.mutateRemarketingActions(customerId, operations);
+   * }
+   * 
+ * + * @param customerId The ID of the customer whose remarketing actions are being modified. + * @param operations The list of operations to perform on individual remarketing actions. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateRemarketingActionsResponse mutateRemarketingActions( + String customerId, List operations) { + + MutateRemarketingActionsRequest request = + MutateRemarketingActionsRequest.newBuilder() + .setCustomerId(customerId) + .addAllOperations(operations) + .build(); + return mutateRemarketingActions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates or updates remarketing actions. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (RemarketingActionServiceClient remarketingActionServiceClient = RemarketingActionServiceClient.create()) {
+   *   String customerId = "";
+   *   List<RemarketingActionOperation> operations = new ArrayList<>();
+   *   MutateRemarketingActionsRequest request = MutateRemarketingActionsRequest.newBuilder()
+   *     .setCustomerId(customerId)
+   *     .addAllOperations(operations)
+   *     .build();
+   *   MutateRemarketingActionsResponse response = remarketingActionServiceClient.mutateRemarketingActions(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateRemarketingActionsResponse mutateRemarketingActions( + MutateRemarketingActionsRequest request) { + return mutateRemarketingActionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates or updates remarketing actions. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (RemarketingActionServiceClient remarketingActionServiceClient = RemarketingActionServiceClient.create()) {
+   *   String customerId = "";
+   *   List<RemarketingActionOperation> operations = new ArrayList<>();
+   *   MutateRemarketingActionsRequest request = MutateRemarketingActionsRequest.newBuilder()
+   *     .setCustomerId(customerId)
+   *     .addAllOperations(operations)
+   *     .build();
+   *   ApiFuture<MutateRemarketingActionsResponse> future = remarketingActionServiceClient.mutateRemarketingActionsCallable().futureCall(request);
+   *   // Do something
+   *   MutateRemarketingActionsResponse response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + mutateRemarketingActionsCallable() { + return stub.mutateRemarketingActionsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/RemarketingActionServiceGrpc.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/RemarketingActionServiceGrpc.java new file mode 100644 index 0000000000..5c277a6258 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/RemarketingActionServiceGrpc.java @@ -0,0 +1,405 @@ +package com.google.ads.googleads.v0.services; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; +import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; +import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + *
+ * Service to manage remarketing actions.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/ads/googleads/v0/services/remarketing_action_service.proto") +public final class RemarketingActionServiceGrpc { + + private RemarketingActionServiceGrpc() {} + + public static final String SERVICE_NAME = "google.ads.googleads.v0.services.RemarketingActionService"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetRemarketingActionMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_GET_REMARKETING_ACTION = getGetRemarketingActionMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getGetRemarketingActionMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getGetRemarketingActionMethod() { + return getGetRemarketingActionMethodHelper(); + } + + private static io.grpc.MethodDescriptor getGetRemarketingActionMethodHelper() { + io.grpc.MethodDescriptor getGetRemarketingActionMethod; + if ((getGetRemarketingActionMethod = RemarketingActionServiceGrpc.getGetRemarketingActionMethod) == null) { + synchronized (RemarketingActionServiceGrpc.class) { + if ((getGetRemarketingActionMethod = RemarketingActionServiceGrpc.getGetRemarketingActionMethod) == null) { + RemarketingActionServiceGrpc.getGetRemarketingActionMethod = getGetRemarketingActionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.ads.googleads.v0.services.RemarketingActionService", "GetRemarketingAction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.ads.googleads.v0.services.GetRemarketingActionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.ads.googleads.v0.resources.RemarketingAction.getDefaultInstance())) + .setSchemaDescriptor(new RemarketingActionServiceMethodDescriptorSupplier("GetRemarketingAction")) + .build(); + } + } + } + return getGetRemarketingActionMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getMutateRemarketingActionsMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_MUTATE_REMARKETING_ACTIONS = getMutateRemarketingActionsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getMutateRemarketingActionsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getMutateRemarketingActionsMethod() { + return getMutateRemarketingActionsMethodHelper(); + } + + private static io.grpc.MethodDescriptor getMutateRemarketingActionsMethodHelper() { + io.grpc.MethodDescriptor getMutateRemarketingActionsMethod; + if ((getMutateRemarketingActionsMethod = RemarketingActionServiceGrpc.getMutateRemarketingActionsMethod) == null) { + synchronized (RemarketingActionServiceGrpc.class) { + if ((getMutateRemarketingActionsMethod = RemarketingActionServiceGrpc.getMutateRemarketingActionsMethod) == null) { + RemarketingActionServiceGrpc.getMutateRemarketingActionsMethod = getMutateRemarketingActionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.ads.googleads.v0.services.RemarketingActionService", "MutateRemarketingActions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new RemarketingActionServiceMethodDescriptorSupplier("MutateRemarketingActions")) + .build(); + } + } + } + return getMutateRemarketingActionsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static RemarketingActionServiceStub newStub(io.grpc.Channel channel) { + return new RemarketingActionServiceStub(channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static RemarketingActionServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + return new RemarketingActionServiceBlockingStub(channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static RemarketingActionServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + return new RemarketingActionServiceFutureStub(channel); + } + + /** + *
+   * Service to manage remarketing actions.
+   * 
+ */ + public static abstract class RemarketingActionServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Returns the requested remarketing action in full detail.
+     * 
+ */ + public void getRemarketingAction(com.google.ads.googleads.v0.services.GetRemarketingActionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetRemarketingActionMethodHelper(), responseObserver); + } + + /** + *
+     * Creates or updates remarketing actions. Operation statuses are returned.
+     * 
+ */ + public void mutateRemarketingActions(com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getMutateRemarketingActionsMethodHelper(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetRemarketingActionMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.ads.googleads.v0.services.GetRemarketingActionRequest, + com.google.ads.googleads.v0.resources.RemarketingAction>( + this, METHODID_GET_REMARKETING_ACTION))) + .addMethod( + getMutateRemarketingActionsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest, + com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse>( + this, METHODID_MUTATE_REMARKETING_ACTIONS))) + .build(); + } + } + + /** + *
+   * Service to manage remarketing actions.
+   * 
+ */ + public static final class RemarketingActionServiceStub extends io.grpc.stub.AbstractStub { + private RemarketingActionServiceStub(io.grpc.Channel channel) { + super(channel); + } + + private RemarketingActionServiceStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected RemarketingActionServiceStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new RemarketingActionServiceStub(channel, callOptions); + } + + /** + *
+     * Returns the requested remarketing action in full detail.
+     * 
+ */ + public void getRemarketingAction(com.google.ads.googleads.v0.services.GetRemarketingActionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetRemarketingActionMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates or updates remarketing actions. Operation statuses are returned.
+     * 
+ */ + public void mutateRemarketingActions(com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getMutateRemarketingActionsMethodHelper(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Service to manage remarketing actions.
+   * 
+ */ + public static final class RemarketingActionServiceBlockingStub extends io.grpc.stub.AbstractStub { + private RemarketingActionServiceBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + private RemarketingActionServiceBlockingStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected RemarketingActionServiceBlockingStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new RemarketingActionServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Returns the requested remarketing action in full detail.
+     * 
+ */ + public com.google.ads.googleads.v0.resources.RemarketingAction getRemarketingAction(com.google.ads.googleads.v0.services.GetRemarketingActionRequest request) { + return blockingUnaryCall( + getChannel(), getGetRemarketingActionMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Creates or updates remarketing actions. Operation statuses are returned.
+     * 
+ */ + public com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse mutateRemarketingActions(com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest request) { + return blockingUnaryCall( + getChannel(), getMutateRemarketingActionsMethodHelper(), getCallOptions(), request); + } + } + + /** + *
+   * Service to manage remarketing actions.
+   * 
+ */ + public static final class RemarketingActionServiceFutureStub extends io.grpc.stub.AbstractStub { + private RemarketingActionServiceFutureStub(io.grpc.Channel channel) { + super(channel); + } + + private RemarketingActionServiceFutureStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected RemarketingActionServiceFutureStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new RemarketingActionServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Returns the requested remarketing action in full detail.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getRemarketingAction( + com.google.ads.googleads.v0.services.GetRemarketingActionRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetRemarketingActionMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Creates or updates remarketing actions. Operation statuses are returned.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture mutateRemarketingActions( + com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest request) { + return futureUnaryCall( + getChannel().newCall(getMutateRemarketingActionsMethodHelper(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_REMARKETING_ACTION = 0; + private static final int METHODID_MUTATE_REMARKETING_ACTIONS = 1; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final RemarketingActionServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(RemarketingActionServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_REMARKETING_ACTION: + serviceImpl.getRemarketingAction((com.google.ads.googleads.v0.services.GetRemarketingActionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_MUTATE_REMARKETING_ACTIONS: + serviceImpl.mutateRemarketingActions((com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class RemarketingActionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + RemarketingActionServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.ads.googleads.v0.services.RemarketingActionServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("RemarketingActionService"); + } + } + + private static final class RemarketingActionServiceFileDescriptorSupplier + extends RemarketingActionServiceBaseDescriptorSupplier { + RemarketingActionServiceFileDescriptorSupplier() {} + } + + private static final class RemarketingActionServiceMethodDescriptorSupplier + extends RemarketingActionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + RemarketingActionServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (RemarketingActionServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new RemarketingActionServiceFileDescriptorSupplier()) + .addMethod(getGetRemarketingActionMethodHelper()) + .addMethod(getMutateRemarketingActionsMethodHelper()) + .build(); + } + } + } + return result; + } +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/RemarketingActionServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/RemarketingActionServiceProto.java new file mode 100644 index 0000000000..e63364a85c --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/RemarketingActionServiceProto.java @@ -0,0 +1,156 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/ads/googleads/v0/services/remarketing_action_service.proto + +package com.google.ads.googleads.v0.services; + +public final class RemarketingActionServiceProto { + private RemarketingActionServiceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_services_GetRemarketingActionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_services_GetRemarketingActionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_services_MutateRemarketingActionsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_services_MutateRemarketingActionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_services_RemarketingActionOperation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_services_RemarketingActionOperation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_services_MutateRemarketingActionsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_services_MutateRemarketingActionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_googleads_v0_services_MutateRemarketingActionResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_googleads_v0_services_MutateRemarketingActionResult_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nAgoogle/ads/googleads/v0/services/remar" + + "keting_action_service.proto\022 google.ads." + + "googleads.v0.services\032:google/ads/google" + + "ads/v0/resources/remarketing_action.prot" + + "o\032\034google/api/annotations.proto\032 google/" + + "protobuf/field_mask.proto\032\036google/protob" + + "uf/wrappers.proto\032\027google/rpc/status.pro" + + "to\"4\n\033GetRemarketingActionRequest\022\025\n\rres" + + "ource_name\030\001 \001(\t\"\270\001\n\037MutateRemarketingAc" + + "tionsRequest\022\023\n\013customer_id\030\001 \001(\t\022P\n\nope" + + "rations\030\002 \003(\0132<.google.ads.googleads.v0." + + "services.RemarketingActionOperation\022\027\n\017p" + + "artial_failure\030\003 \001(\010\022\025\n\rvalidate_only\030\004 " + + "\001(\010\"\352\001\n\032RemarketingActionOperation\022/\n\013up" + + "date_mask\030\004 \001(\0132\032.google.protobuf.FieldM" + + "ask\022F\n\006create\030\001 \001(\01324.google.ads.googlea" + + "ds.v0.resources.RemarketingActionH\000\022F\n\006u" + + "pdate\030\002 \001(\01324.google.ads.googleads.v0.re" + + "sources.RemarketingActionH\000B\013\n\toperation" + + "\"\247\001\n MutateRemarketingActionsResponse\0221\n" + + "\025partial_failure_error\030\003 \001(\0132\022.google.rp" + + "c.Status\022P\n\007results\030\002 \003(\0132?.google.ads.g" + + "oogleads.v0.services.MutateRemarketingAc" + + "tionResult\"6\n\035MutateRemarketingActionRes" + + "ult\022\025\n\rresource_name\030\001 \001(\t2\316\003\n\030Remarketi" + + "ngActionService\022\311\001\n\024GetRemarketingAction" + + "\022=.google.ads.googleads.v0.services.GetR" + + "emarketingActionRequest\0324.google.ads.goo" + + "gleads.v0.resources.RemarketingAction\"<\202" + + "\323\344\223\0026\0224/v0/{resource_name=customers/*/re" + + "marketingActions/*}\022\345\001\n\030MutateRemarketin" + + "gActions\022A.google.ads.googleads.v0.servi" + + "ces.MutateRemarketingActionsRequest\032B.go" + + "ogle.ads.googleads.v0.services.MutateRem" + + "arketingActionsResponse\"B\202\323\344\223\002<\"7/v0/cus" + + "tomers/{customer_id=*}/remarketingAction" + + "s:mutate:\001*B\204\002\n$com.google.ads.googleads" + + ".v0.servicesB\035RemarketingActionServicePr" + + "otoP\001ZHgoogle.golang.org/genproto/google" + + "apis/ads/googleads/v0/services;services\242" + + "\002\003GAA\252\002 Google.Ads.GoogleAds.V0.Services" + + "\312\002 Google\\Ads\\GoogleAds\\V0\\Services\352\002$Go" + + "ogle::Ads::GoogleAds::V0::Servicesb\006prot" + + "o3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.googleads.v0.resources.RemarketingActionProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }, assigner); + internal_static_google_ads_googleads_v0_services_GetRemarketingActionRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_googleads_v0_services_GetRemarketingActionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_services_GetRemarketingActionRequest_descriptor, + new java.lang.String[] { "ResourceName", }); + internal_static_google_ads_googleads_v0_services_MutateRemarketingActionsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_googleads_v0_services_MutateRemarketingActionsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_services_MutateRemarketingActionsRequest_descriptor, + new java.lang.String[] { "CustomerId", "Operations", "PartialFailure", "ValidateOnly", }); + internal_static_google_ads_googleads_v0_services_RemarketingActionOperation_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_googleads_v0_services_RemarketingActionOperation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_services_RemarketingActionOperation_descriptor, + new java.lang.String[] { "UpdateMask", "Create", "Update", "Operation", }); + internal_static_google_ads_googleads_v0_services_MutateRemarketingActionsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_ads_googleads_v0_services_MutateRemarketingActionsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_services_MutateRemarketingActionsResponse_descriptor, + new java.lang.String[] { "PartialFailureError", "Results", }); + internal_static_google_ads_googleads_v0_services_MutateRemarketingActionResult_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_ads_googleads_v0_services_MutateRemarketingActionResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_googleads_v0_services_MutateRemarketingActionResult_descriptor, + new java.lang.String[] { "ResourceName", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.ads.googleads.v0.resources.RemarketingActionProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/RemarketingActionServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/RemarketingActionServiceSettings.java new file mode 100644 index 0000000000..758b05401f --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/RemarketingActionServiceSettings.java @@ -0,0 +1,194 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services; + +import com.google.ads.googleads.v0.resources.RemarketingAction; +import com.google.ads.googleads.v0.services.stub.RemarketingActionServiceStubSettings; +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link RemarketingActionServiceClient}. + * + *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of getRemarketingAction to 30 seconds: + * + *

+ * 
+ * RemarketingActionServiceSettings.Builder remarketingActionServiceSettingsBuilder =
+ *     RemarketingActionServiceSettings.newBuilder();
+ * remarketingActionServiceSettingsBuilder.getRemarketingActionSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * RemarketingActionServiceSettings remarketingActionServiceSettings = remarketingActionServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class RemarketingActionServiceSettings + extends ClientSettings { + /** Returns the object with the settings used for calls to getRemarketingAction. */ + public UnaryCallSettings + getRemarketingActionSettings() { + return ((RemarketingActionServiceStubSettings) getStubSettings()) + .getRemarketingActionSettings(); + } + + /** Returns the object with the settings used for calls to mutateRemarketingActions. */ + public UnaryCallSettings + mutateRemarketingActionsSettings() { + return ((RemarketingActionServiceStubSettings) getStubSettings()) + .mutateRemarketingActionsSettings(); + } + + public static final RemarketingActionServiceSettings create( + RemarketingActionServiceStubSettings stub) throws IOException { + return new RemarketingActionServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return RemarketingActionServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return RemarketingActionServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return RemarketingActionServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return RemarketingActionServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return RemarketingActionServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return RemarketingActionServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return RemarketingActionServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected RemarketingActionServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for RemarketingActionServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + protected Builder() throws IOException { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(RemarketingActionServiceStubSettings.newBuilder(clientContext)); + } + + private static Builder createDefault() { + return new Builder(RemarketingActionServiceStubSettings.newBuilder()); + } + + protected Builder(RemarketingActionServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(RemarketingActionServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + public RemarketingActionServiceStubSettings.Builder getStubSettingsBuilder() { + return ((RemarketingActionServiceStubSettings.Builder) getStubSettings()); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getRemarketingAction. */ + public UnaryCallSettings.Builder + getRemarketingActionSettings() { + return getStubSettingsBuilder().getRemarketingActionSettings(); + } + + /** Returns the builder for the settings used for calls to mutateRemarketingActions. */ + public UnaryCallSettings.Builder< + MutateRemarketingActionsRequest, MutateRemarketingActionsResponse> + mutateRemarketingActionsSettings() { + return getStubSettingsBuilder().mutateRemarketingActionsSettings(); + } + + @Override + public RemarketingActionServiceSettings build() throws IOException { + return new RemarketingActionServiceSettings(this); + } + } +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/SearchGoogleAdsRequest.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/SearchGoogleAdsRequest.java index bfd97d4012..abc5e0e36d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/SearchGoogleAdsRequest.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/SearchGoogleAdsRequest.java @@ -24,6 +24,7 @@ private SearchGoogleAdsRequest() { query_ = ""; pageToken_ = ""; pageSize_ = 0; + validateOnly_ = false; } @java.lang.Override @@ -73,6 +74,11 @@ private SearchGoogleAdsRequest( pageSize_ = input.readInt32(); break; } + case 40: { + + validateOnly_ = input.readBool(); + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -252,6 +258,19 @@ public int getPageSize() { return pageSize_; } + public static final int VALIDATE_ONLY_FIELD_NUMBER = 5; + private boolean validateOnly_; + /** + *

+   * If true, the request is validated but not executed.
+   * 
+ * + * bool validate_only = 5; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -278,6 +297,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (pageSize_ != 0) { output.writeInt32(4, pageSize_); } + if (validateOnly_ != false) { + output.writeBool(5, validateOnly_); + } unknownFields.writeTo(output); } @@ -300,6 +322,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, pageSize_); } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, validateOnly_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -324,6 +350,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getPageToken()); result = result && (getPageSize() == other.getPageSize()); + result = result && (getValidateOnly() + == other.getValidateOnly()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -343,6 +371,9 @@ public int hashCode() { hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -488,6 +519,8 @@ public Builder clear() { pageSize_ = 0; + validateOnly_ = false; + return this; } @@ -518,6 +551,7 @@ public com.google.ads.googleads.v0.services.SearchGoogleAdsRequest buildPartial( result.query_ = query_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; + result.validateOnly_ = validateOnly_; onBuilt(); return result; } @@ -581,6 +615,9 @@ public Builder mergeFrom(com.google.ads.googleads.v0.services.SearchGoogleAdsReq if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -935,6 +972,44 @@ public Builder clearPageSize() { onChanged(); return this; } + + private boolean validateOnly_ ; + /** + *
+     * If true, the request is validated but not executed.
+     * 
+ * + * bool validate_only = 5; + */ + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If true, the request is validated but not executed.
+     * 
+ * + * bool validate_only = 5; + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + onChanged(); + return this; + } + /** + *
+     * If true, the request is validated but not executed.
+     * 
+ * + * bool validate_only = 5; + */ + public Builder clearValidateOnly() { + + validateOnly_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/SearchGoogleAdsRequestOrBuilder.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/SearchGoogleAdsRequestOrBuilder.java index adf5e507a3..7ed60eb9d5 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/SearchGoogleAdsRequestOrBuilder.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/SearchGoogleAdsRequestOrBuilder.java @@ -77,4 +77,13 @@ public interface SearchGoogleAdsRequestOrBuilder extends * int32 page_size = 4; */ int getPageSize(); + + /** + *
+   * If true, the request is validated but not executed.
+   * 
+ * + * bool validate_only = 5; + */ + boolean getValidateOnly(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/SearchTermViewServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/SearchTermViewServiceClient.java index 99a42ff851..32ff3f890f 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/SearchTermViewServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/SearchTermViewServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -218,7 +218,7 @@ public final SearchTermView getSearchTermView(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final SearchTermView getSearchTermView(GetSearchTermViewRequest request) { + public final SearchTermView getSearchTermView(GetSearchTermViewRequest request) { return getSearchTermViewCallable().call(request); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/SearchTermViewServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/SearchTermViewServiceProto.java index 915a7dd609..327304166e 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/SearchTermViewServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/SearchTermViewServiceProto.java @@ -39,13 +39,14 @@ public static void registerAllExtensions( "s.GetSearchTermViewRequest\0321.google.ads." + "googleads.v0.resources.SearchTermView\"9\202" + "\323\344\223\0023\0221/v0/{resource_name=customers/*/se" + - "archTermViews/*}B\332\001\n$com.google.ads.goog" + + "archTermViews/*}B\201\002\n$com.google.ads.goog" + "leads.v0.servicesB\032SearchTermViewService" + "ProtoP\001ZHgoogle.golang.org/genproto/goog" + "leapis/ads/googleads/v0/services;service" + "s\242\002\003GAA\252\002 Google.Ads.GoogleAds.V0.Servic" + - "es\312\002 Google\\Ads\\GoogleAds\\V0\\Servicesb\006p" + - "roto3" + "es\312\002 Google\\Ads\\GoogleAds\\V0\\Services\352\002$" + + "Google::Ads::GoogleAds::V0::Servicesb\006pr" + + "oto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/SearchTermViewServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/SearchTermViewServiceSettings.java index 64cd4edccc..ba10b1bc06 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/SearchTermViewServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/SearchTermViewServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/SharedCriterionServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/SharedCriterionServiceClient.java index 72c714ca8d..6e685ed354 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/SharedCriterionServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/SharedCriterionServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -220,7 +220,7 @@ public final SharedCriterion getSharedCriterion(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final SharedCriterion getSharedCriterion(GetSharedCriterionRequest request) { + public final SharedCriterion getSharedCriterion(GetSharedCriterionRequest request) { return getSharedCriterionCallable().call(request); } @@ -247,6 +247,47 @@ private final SharedCriterion getSharedCriterion(GetSharedCriterionRequest reque return stub.getSharedCriterionCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates or removes shared criteria. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (SharedCriterionServiceClient sharedCriterionServiceClient = SharedCriterionServiceClient.create()) {
+   *   String customerId = "";
+   *   List<SharedCriterionOperation> operations = new ArrayList<>();
+   *   boolean partialFailure = false;
+   *   boolean validateOnly = false;
+   *   MutateSharedCriteriaResponse response = sharedCriterionServiceClient.mutateSharedCriteria(customerId, operations, partialFailure, validateOnly);
+   * }
+   * 
+ * + * @param customerId The ID of the customer whose shared criteria are being modified. + * @param operations The list of operations to perform on individual shared criteria. + * @param partialFailure If true, successful operations will be carried out and invalid operations + * will return errors. If false, all operations will be carried out in one transaction if and + * only if they are all valid. Default is false. + * @param validateOnly If true, the request is validated but not executed. Only errors are + * returned, not results. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateSharedCriteriaResponse mutateSharedCriteria( + String customerId, + List operations, + boolean partialFailure, + boolean validateOnly) { + + MutateSharedCriteriaRequest request = + MutateSharedCriteriaRequest.newBuilder() + .setCustomerId(customerId) + .addAllOperations(operations) + .setPartialFailure(partialFailure) + .setValidateOnly(validateOnly) + .build(); + return mutateSharedCriteria(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Creates or removes shared criteria. Operation statuses are returned. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/SharedCriterionServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/SharedCriterionServiceProto.java index b8c5aff260..8a143865ef 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/SharedCriterionServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/SharedCriterionServiceProto.java @@ -52,36 +52,41 @@ public static void registerAllExtensions( "d_criterion_service.proto\022 google.ads.go" + "ogleads.v0.services\0328google/ads/googlead" + "s/v0/resources/shared_criterion.proto\032\034g" + - "oogle/api/annotations.proto\"2\n\031GetShared" + - "CriterionRequest\022\025\n\rresource_name\030\001 \001(\t\"" + - "\202\001\n\033MutateSharedCriteriaRequest\022\023\n\013custo" + - "mer_id\030\001 \001(\t\022N\n\noperations\030\002 \003(\0132:.googl" + - "e.ads.googleads.v0.services.SharedCriter" + - "ionOperation\"\177\n\030SharedCriterionOperation" + - "\022D\n\006create\030\001 \001(\01322.google.ads.googleads." + - "v0.resources.SharedCriterionH\000\022\020\n\006remove" + - "\030\003 \001(\tH\000B\013\n\toperation\"n\n\034MutateSharedCri" + - "teriaResponse\022N\n\007results\030\002 \003(\0132=.google." + + "oogle/api/annotations.proto\032\036google/prot" + + "obuf/wrappers.proto\032\027google/rpc/status.p" + + "roto\"2\n\031GetSharedCriterionRequest\022\025\n\rres" + + "ource_name\030\001 \001(\t\"\262\001\n\033MutateSharedCriteri" + + "aRequest\022\023\n\013customer_id\030\001 \001(\t\022N\n\noperati" + + "ons\030\002 \003(\0132:.google.ads.googleads.v0.serv" + + "ices.SharedCriterionOperation\022\027\n\017partial" + + "_failure\030\003 \001(\010\022\025\n\rvalidate_only\030\004 \001(\010\"\177\n" + + "\030SharedCriterionOperation\022D\n\006create\030\001 \001(" + + "\01322.google.ads.googleads.v0.resources.Sh" + + "aredCriterionH\000\022\020\n\006remove\030\003 \001(\tH\000B\013\n\tope" + + "ration\"\241\001\n\034MutateSharedCriteriaResponse\022" + + "1\n\025partial_failure_error\030\003 \001(\0132\022.google." + + "rpc.Status\022N\n\007results\030\002 \003(\0132=.google.ads" + + ".googleads.v0.services.MutateSharedCrite" + + "rionResult\"4\n\033MutateSharedCriterionResul" + + "t\022\025\n\rresource_name\030\001 \001(\t2\262\003\n\026SharedCrite" + + "rionService\022\277\001\n\022GetSharedCriterion\022;.goo" + + "gle.ads.googleads.v0.services.GetSharedC" + + "riterionRequest\0322.google.ads.googleads.v" + + "0.resources.SharedCriterion\"8\202\323\344\223\0022\0220/v0" + + "/{resource_name=customers/*/sharedCriter" + + "ia/*}\022\325\001\n\024MutateSharedCriteria\022=.google." + "ads.googleads.v0.services.MutateSharedCr" + - "iterionResult\"4\n\033MutateSharedCriterionRe" + - "sult\022\025\n\rresource_name\030\001 \001(\t2\262\003\n\026SharedCr" + - "iterionService\022\277\001\n\022GetSharedCriterion\022;." + - "google.ads.googleads.v0.services.GetShar" + - "edCriterionRequest\0322.google.ads.googlead" + - "s.v0.resources.SharedCriterion\"8\202\323\344\223\0022\0220" + - "/v0/{resource_name=customers/*/sharedCri" + - "teria/*}\022\325\001\n\024MutateSharedCriteria\022=.goog" + - "le.ads.googleads.v0.services.MutateShare" + - "dCriteriaRequest\032>.google.ads.googleads." + - "v0.services.MutateSharedCriteriaResponse" + - "\">\202\323\344\223\0028\"3/v0/customers/{customer_id=*}/" + - "sharedCriteria:mutate:\001*B\333\001\n$com.google." + - "ads.googleads.v0.servicesB\033SharedCriteri" + - "onServiceProtoP\001ZHgoogle.golang.org/genp" + - "roto/googleapis/ads/googleads/v0/service" + - "s;services\242\002\003GAA\252\002 Google.Ads.GoogleAds." + - "V0.Services\312\002 Google\\Ads\\GoogleAds\\V0\\Se" + - "rvicesb\006proto3" + "iteriaRequest\032>.google.ads.googleads.v0." + + "services.MutateSharedCriteriaResponse\">\202" + + "\323\344\223\0028\"3/v0/customers/{customer_id=*}/sha" + + "redCriteria:mutate:\001*B\202\002\n$com.google.ads" + + ".googleads.v0.servicesB\033SharedCriterionS" + + "erviceProtoP\001ZHgoogle.golang.org/genprot" + + "o/googleapis/ads/googleads/v0/services;s" + + "ervices\242\002\003GAA\252\002 Google.Ads.GoogleAds.V0." + + "Services\312\002 Google\\Ads\\GoogleAds\\V0\\Servi" + + "ces\352\002$Google::Ads::GoogleAds::V0::Servic" + + "esb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -96,6 +101,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.ads.googleads.v0.resources.SharedCriterionProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), }, assigner); internal_static_google_ads_googleads_v0_services_GetSharedCriterionRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -108,7 +115,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateSharedCriteriaRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateSharedCriteriaRequest_descriptor, - new java.lang.String[] { "CustomerId", "Operations", }); + new java.lang.String[] { "CustomerId", "Operations", "PartialFailure", "ValidateOnly", }); internal_static_google_ads_googleads_v0_services_SharedCriterionOperation_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_ads_googleads_v0_services_SharedCriterionOperation_fieldAccessorTable = new @@ -120,7 +127,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateSharedCriteriaResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateSharedCriteriaResponse_descriptor, - new java.lang.String[] { "Results", }); + new java.lang.String[] { "PartialFailureError", "Results", }); internal_static_google_ads_googleads_v0_services_MutateSharedCriterionResult_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_google_ads_googleads_v0_services_MutateSharedCriterionResult_fieldAccessorTable = new @@ -134,6 +141,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( .internalUpdateFileDescriptor(descriptor, registry); com.google.ads.googleads.v0.resources.SharedCriterionProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/SharedCriterionServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/SharedCriterionServiceSettings.java index 92fcf6743d..a861a3b1e7 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/SharedCriterionServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/SharedCriterionServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/SharedSetServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/SharedSetServiceClient.java index 4e681b05be..6af4e6060d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/SharedSetServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/SharedSetServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -215,7 +215,7 @@ public final SharedSet getSharedSet(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final SharedSet getSharedSet(GetSharedSetRequest request) { + public final SharedSet getSharedSet(GetSharedSetRequest request) { return getSharedSetCallable().call(request); } @@ -241,6 +241,47 @@ public final UnaryCallable getSharedSetCallable( return stub.getSharedSetCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates, updates, or removes shared sets. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (SharedSetServiceClient sharedSetServiceClient = SharedSetServiceClient.create()) {
+   *   String customerId = "";
+   *   List<SharedSetOperation> operations = new ArrayList<>();
+   *   boolean partialFailure = false;
+   *   boolean validateOnly = false;
+   *   MutateSharedSetsResponse response = sharedSetServiceClient.mutateSharedSets(customerId, operations, partialFailure, validateOnly);
+   * }
+   * 
+ * + * @param customerId The ID of the customer whose shared sets are being modified. + * @param operations The list of operations to perform on individual shared sets. + * @param partialFailure If true, successful operations will be carried out and invalid operations + * will return errors. If false, all operations will be carried out in one transaction if and + * only if they are all valid. Default is false. + * @param validateOnly If true, the request is validated but not executed. Only errors are + * returned, not results. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateSharedSetsResponse mutateSharedSets( + String customerId, + List operations, + boolean partialFailure, + boolean validateOnly) { + + MutateSharedSetsRequest request = + MutateSharedSetsRequest.newBuilder() + .setCustomerId(customerId) + .addAllOperations(operations) + .setPartialFailure(partialFailure) + .setValidateOnly(validateOnly) + .build(); + return mutateSharedSets(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Creates, updates, or removes shared sets. Operation statuses are returned. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/SharedSetServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/SharedSetServiceProto.java index 8a62390e85..879cecab7d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/SharedSetServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/SharedSetServiceProto.java @@ -53,36 +53,41 @@ public static void registerAllExtensions( "s.v0.services\0322google/ads/googleads/v0/r" + "esources/shared_set.proto\032\034google/api/an" + "notations.proto\032 google/protobuf/field_m" + - "ask.proto\",\n\023GetSharedSetRequest\022\025\n\rreso" + - "urce_name\030\001 \001(\t\"x\n\027MutateSharedSetsReque" + - "st\022\023\n\013customer_id\030\001 \001(\t\022H\n\noperations\030\002 " + - "\003(\01324.google.ads.googleads.v0.services.S" + - "haredSetOperation\"\344\001\n\022SharedSetOperation" + - "\022/\n\013update_mask\030\004 \001(\0132\032.google.protobuf." + - "FieldMask\022>\n\006create\030\001 \001(\0132,.google.ads.g" + - "oogleads.v0.resources.SharedSetH\000\022>\n\006upd" + - "ate\030\002 \001(\0132,.google.ads.googleads.v0.reso" + - "urces.SharedSetH\000\022\020\n\006remove\030\003 \001(\tH\000B\013\n\to" + - "peration\"d\n\030MutateSharedSetsResponse\022H\n\007" + - "results\030\002 \003(\01327.google.ads.googleads.v0." + - "services.MutateSharedSetResult\".\n\025Mutate" + - "SharedSetResult\022\025\n\rresource_name\030\001 \001(\t2\206" + - "\003\n\020SharedSetService\022\251\001\n\014GetSharedSet\0225.g" + - "oogle.ads.googleads.v0.services.GetShare" + - "dSetRequest\032,.google.ads.googleads.v0.re" + - "sources.SharedSet\"4\202\323\344\223\002.\022,/v0/{resource" + - "_name=customers/*/sharedSets/*}\022\305\001\n\020Muta" + - "teSharedSets\0229.google.ads.googleads.v0.s" + - "ervices.MutateSharedSetsRequest\032:.google" + - ".ads.googleads.v0.services.MutateSharedS" + - "etsResponse\":\202\323\344\223\0024\"//v0/customers/{cust" + - "omer_id=*}/sharedSets:mutate:\001*B\325\001\n$com." + - "google.ads.googleads.v0.servicesB\025Shared" + - "SetServiceProtoP\001ZHgoogle.golang.org/gen" + - "proto/googleapis/ads/googleads/v0/servic" + - "es;services\242\002\003GAA\252\002 Google.Ads.GoogleAds" + - ".V0.Services\312\002 Google\\Ads\\GoogleAds\\V0\\S" + - "ervicesb\006proto3" + "ask.proto\032\036google/protobuf/wrappers.prot" + + "o\032\027google/rpc/status.proto\",\n\023GetSharedS" + + "etRequest\022\025\n\rresource_name\030\001 \001(\t\"\250\001\n\027Mut" + + "ateSharedSetsRequest\022\023\n\013customer_id\030\001 \001(" + + "\t\022H\n\noperations\030\002 \003(\01324.google.ads.googl" + + "eads.v0.services.SharedSetOperation\022\027\n\017p" + + "artial_failure\030\003 \001(\010\022\025\n\rvalidate_only\030\004 " + + "\001(\010\"\344\001\n\022SharedSetOperation\022/\n\013update_mas" + + "k\030\004 \001(\0132\032.google.protobuf.FieldMask\022>\n\006c" + + "reate\030\001 \001(\0132,.google.ads.googleads.v0.re" + + "sources.SharedSetH\000\022>\n\006update\030\002 \001(\0132,.go" + + "ogle.ads.googleads.v0.resources.SharedSe" + + "tH\000\022\020\n\006remove\030\003 \001(\tH\000B\013\n\toperation\"\227\001\n\030M" + + "utateSharedSetsResponse\0221\n\025partial_failu" + + "re_error\030\003 \001(\0132\022.google.rpc.Status\022H\n\007re" + + "sults\030\002 \003(\01327.google.ads.googleads.v0.se" + + "rvices.MutateSharedSetResult\".\n\025MutateSh" + + "aredSetResult\022\025\n\rresource_name\030\001 \001(\t2\206\003\n" + + "\020SharedSetService\022\251\001\n\014GetSharedSet\0225.goo" + + "gle.ads.googleads.v0.services.GetSharedS" + + "etRequest\032,.google.ads.googleads.v0.reso" + + "urces.SharedSet\"4\202\323\344\223\002.\022,/v0/{resource_n" + + "ame=customers/*/sharedSets/*}\022\305\001\n\020Mutate" + + "SharedSets\0229.google.ads.googleads.v0.ser" + + "vices.MutateSharedSetsRequest\032:.google.a" + + "ds.googleads.v0.services.MutateSharedSet" + + "sResponse\":\202\323\344\223\0024\"//v0/customers/{custom" + + "er_id=*}/sharedSets:mutate:\001*B\374\001\n$com.go" + + "ogle.ads.googleads.v0.servicesB\025SharedSe" + + "tServiceProtoP\001ZHgoogle.golang.org/genpr" + + "oto/googleapis/ads/googleads/v0/services" + + ";services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V" + + "0.Services\312\002 Google\\Ads\\GoogleAds\\V0\\Ser" + + "vices\352\002$Google::Ads::GoogleAds::V0::Serv" + + "icesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -98,6 +103,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.SharedSetProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), }, assigner); internal_static_google_ads_googleads_v0_services_GetSharedSetRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -110,7 +117,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateSharedSetsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateSharedSetsRequest_descriptor, - new java.lang.String[] { "CustomerId", "Operations", }); + new java.lang.String[] { "CustomerId", "Operations", "PartialFailure", "ValidateOnly", }); internal_static_google_ads_googleads_v0_services_SharedSetOperation_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_ads_googleads_v0_services_SharedSetOperation_fieldAccessorTable = new @@ -122,7 +129,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateSharedSetsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateSharedSetsResponse_descriptor, - new java.lang.String[] { "Results", }); + new java.lang.String[] { "PartialFailureError", "Results", }); internal_static_google_ads_googleads_v0_services_MutateSharedSetResult_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_google_ads_googleads_v0_services_MutateSharedSetResult_fieldAccessorTable = new @@ -137,6 +144,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.SharedSetProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/SharedSetServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/SharedSetServiceSettings.java index 59f41f670f..11e3f1dfe3 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/SharedSetServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/SharedSetServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/TopicConstantServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/TopicConstantServiceClient.java index 1ba4b16620..76911979c9 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/TopicConstantServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/TopicConstantServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -207,7 +207,7 @@ public final TopicConstant getTopicConstant(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final TopicConstant getTopicConstant(GetTopicConstantRequest request) { + public final TopicConstant getTopicConstant(GetTopicConstantRequest request) { return getTopicConstantCallable().call(request); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/TopicConstantServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/TopicConstantServiceProto.java index ad5f8e1526..7cc8eee5d5 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/TopicConstantServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/TopicConstantServiceProto.java @@ -38,13 +38,14 @@ public static void registerAllExtensions( "9.google.ads.googleads.v0.services.GetTo" + "picConstantRequest\0320.google.ads.googlead" + "s.v0.resources.TopicConstant\",\202\323\344\223\002&\022$/v" + - "0/{resource_name=topicConstants/*}B\331\001\n$c" + + "0/{resource_name=topicConstants/*}B\200\002\n$c" + "om.google.ads.googleads.v0.servicesB\031Top" + "icConstantServiceProtoP\001ZHgoogle.golang." + "org/genproto/googleapis/ads/googleads/v0" + "/services;services\242\002\003GAA\252\002 Google.Ads.Go" + "ogleAds.V0.Services\312\002 Google\\Ads\\GoogleA" + - "ds\\V0\\Servicesb\006proto3" + "ds\\V0\\Services\352\002$Google::Ads::GoogleAds:" + + ":V0::Servicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/TopicConstantServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/TopicConstantServiceSettings.java index 81986e88dc..6b0bf971e7 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/TopicConstantServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/TopicConstantServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/TopicViewServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/TopicViewServiceClient.java index df7a5ca0c8..edd5f4d218 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/TopicViewServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/TopicViewServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -214,7 +214,7 @@ public final TopicView getTopicView(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final TopicView getTopicView(GetTopicViewRequest request) { + public final TopicView getTopicView(GetTopicViewRequest request) { return getTopicViewCallable().call(request); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/TopicViewServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/TopicViewServiceProto.java index ba634539ce..b707272ccd 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/TopicViewServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/TopicViewServiceProto.java @@ -38,12 +38,13 @@ public static void registerAllExtensions( "ds.v0.services.GetTopicViewRequest\032,.goo" + "gle.ads.googleads.v0.resources.TopicView" + "\"4\202\323\344\223\002.\022,/v0/{resource_name=customers/*" + - "/topicViews/*}B\325\001\n$com.google.ads.google" + + "/topicViews/*}B\374\001\n$com.google.ads.google" + "ads.v0.servicesB\025TopicViewServiceProtoP\001" + "ZHgoogle.golang.org/genproto/googleapis/" + "ads/googleads/v0/services;services\242\002\003GAA" + "\252\002 Google.Ads.GoogleAds.V0.Services\312\002 Go" + - "ogle\\Ads\\GoogleAds\\V0\\Servicesb\006proto3" + "ogle\\Ads\\GoogleAds\\V0\\Services\352\002$Google:" + + ":Ads::GoogleAds::V0::Servicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/TopicViewServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/TopicViewServiceSettings.java index b6d9be3e97..01d0d92431 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/TopicViewServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/TopicViewServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/UserInterestServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/UserInterestServiceClient.java index 05b8d5c621..dbe8b17050 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/UserInterestServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/UserInterestServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -215,7 +215,7 @@ public final UserInterest getUserInterest(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final UserInterest getUserInterest(GetUserInterestRequest request) { + public final UserInterest getUserInterest(GetUserInterestRequest request) { return getUserInterestCallable().call(request); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/UserInterestServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/UserInterestServiceProto.java index b90a84e50c..0d81166783 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/UserInterestServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/UserInterestServiceProto.java @@ -38,13 +38,14 @@ public static void registerAllExtensions( "gle.ads.googleads.v0.services.GetUserInt" + "erestRequest\032/.google.ads.googleads.v0.r" + "esources.UserInterest\"7\202\323\344\223\0021\022//v0/{reso" + - "urce_name=customers/*/userInterests/*}B\330" + + "urce_name=customers/*/userInterests/*}B\377" + "\001\n$com.google.ads.googleads.v0.servicesB" + "\030UserInterestServiceProtoP\001ZHgoogle.gola" + "ng.org/genproto/googleapis/ads/googleads" + "/v0/services;services\242\002\003GAA\252\002 Google.Ads" + ".GoogleAds.V0.Services\312\002 Google\\Ads\\Goog" + - "leAds\\V0\\Servicesb\006proto3" + "leAds\\V0\\Services\352\002$Google::Ads::GoogleA" + + "ds::V0::Servicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/UserInterestServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/UserInterestServiceSettings.java index ead2a0b06d..01f53cc962 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/UserInterestServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/UserInterestServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/UserListServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/UserListServiceClient.java index 6efa3ca183..fc32eaca99 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/UserListServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/UserListServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -214,7 +214,7 @@ public final UserList getUserList(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final UserList getUserList(GetUserListRequest request) { + public final UserList getUserList(GetUserListRequest request) { return getUserListCallable().call(request); } @@ -240,6 +240,47 @@ public final UnaryCallable getUserListCallable() { return stub.getUserListCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates or updates user lists. Operation statuses are returned. + * + *

Sample code: + * + *


+   * try (UserListServiceClient userListServiceClient = UserListServiceClient.create()) {
+   *   String customerId = "";
+   *   List<UserListOperation> operations = new ArrayList<>();
+   *   boolean partialFailure = false;
+   *   boolean validateOnly = false;
+   *   MutateUserListsResponse response = userListServiceClient.mutateUserLists(customerId, operations, partialFailure, validateOnly);
+   * }
+   * 
+ * + * @param customerId The ID of the customer whose user lists are being modified. + * @param operations The list of operations to perform on individual user lists. + * @param partialFailure If true, successful operations will be carried out and invalid operations + * will return errors. If false, all operations will be carried out in one transaction if and + * only if they are all valid. Default is false. + * @param validateOnly If true, the request is validated but not executed. Only errors are + * returned, not results. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MutateUserListsResponse mutateUserLists( + String customerId, + List operations, + boolean partialFailure, + boolean validateOnly) { + + MutateUserListsRequest request = + MutateUserListsRequest.newBuilder() + .setCustomerId(customerId) + .addAllOperations(operations) + .setPartialFailure(partialFailure) + .setValidateOnly(validateOnly) + .build(); + return mutateUserLists(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Creates or updates user lists. Operation statuses are returned. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/UserListServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/UserListServiceProto.java index fb974aed14..3f16491085 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/UserListServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/UserListServiceProto.java @@ -53,35 +53,40 @@ public static void registerAllExtensions( ".v0.services\0321google/ads/googleads/v0/re" + "sources/user_list.proto\032\034google/api/anno" + "tations.proto\032 google/protobuf/field_mas" + - "k.proto\"+\n\022GetUserListRequest\022\025\n\rresourc" + - "e_name\030\001 \001(\t\"v\n\026MutateUserListsRequest\022\023" + - "\n\013customer_id\030\001 \001(\t\022G\n\noperations\030\002 \003(\0132" + - "3.google.ads.googleads.v0.services.UserL" + - "istOperation\"\341\001\n\021UserListOperation\022/\n\013up" + - "date_mask\030\004 \001(\0132\032.google.protobuf.FieldM" + - "ask\022=\n\006create\030\001 \001(\0132+.google.ads.googlea" + - "ds.v0.resources.UserListH\000\022=\n\006update\030\002 \001" + - "(\0132+.google.ads.googleads.v0.resources.U" + - "serListH\000\022\020\n\006remove\030\003 \001(\tH\000B\013\n\toperation" + - "\"b\n\027MutateUserListsResponse\022G\n\007results\030\002" + - " \003(\01326.google.ads.googleads.v0.services." + - "MutateUserListResult\"-\n\024MutateUserListRe" + - "sult\022\025\n\rresource_name\030\001 \001(\t2\375\002\n\017UserList" + - "Service\022\245\001\n\013GetUserList\0224.google.ads.goo" + - "gleads.v0.services.GetUserListRequest\032+." + - "google.ads.googleads.v0.resources.UserLi" + - "st\"3\202\323\344\223\002-\022+/v0/{resource_name=customers" + - "/*/userLists/*}\022\301\001\n\017MutateUserLists\0228.go" + - "ogle.ads.googleads.v0.services.MutateUse" + - "rListsRequest\0329.google.ads.googleads.v0." + - "services.MutateUserListsResponse\"9\202\323\344\223\0023" + - "\"./v0/customers/{customer_id=*}/userList" + - "s:mutate:\001*B\324\001\n$com.google.ads.googleads" + - ".v0.servicesB\024UserListServiceProtoP\001ZHgo" + - "ogle.golang.org/genproto/googleapis/ads/" + - "googleads/v0/services;services\242\002\003GAA\252\002 G" + - "oogle.Ads.GoogleAds.V0.Services\312\002 Google" + - "\\Ads\\GoogleAds\\V0\\Servicesb\006proto3" + "k.proto\032\036google/protobuf/wrappers.proto\032" + + "\027google/rpc/status.proto\"+\n\022GetUserListR" + + "equest\022\025\n\rresource_name\030\001 \001(\t\"\246\001\n\026Mutate" + + "UserListsRequest\022\023\n\013customer_id\030\001 \001(\t\022G\n" + + "\noperations\030\002 \003(\01323.google.ads.googleads" + + ".v0.services.UserListOperation\022\027\n\017partia" + + "l_failure\030\003 \001(\010\022\025\n\rvalidate_only\030\004 \001(\010\"\341" + + "\001\n\021UserListOperation\022/\n\013update_mask\030\004 \001(" + + "\0132\032.google.protobuf.FieldMask\022=\n\006create\030" + + "\001 \001(\0132+.google.ads.googleads.v0.resource" + + "s.UserListH\000\022=\n\006update\030\002 \001(\0132+.google.ad" + + "s.googleads.v0.resources.UserListH\000\022\020\n\006r" + + "emove\030\003 \001(\tH\000B\013\n\toperation\"\225\001\n\027MutateUse" + + "rListsResponse\0221\n\025partial_failure_error\030" + + "\003 \001(\0132\022.google.rpc.Status\022G\n\007results\030\002 \003" + + "(\01326.google.ads.googleads.v0.services.Mu" + + "tateUserListResult\"-\n\024MutateUserListResu" + + "lt\022\025\n\rresource_name\030\001 \001(\t2\375\002\n\017UserListSe" + + "rvice\022\245\001\n\013GetUserList\0224.google.ads.googl" + + "eads.v0.services.GetUserListRequest\032+.go" + + "ogle.ads.googleads.v0.resources.UserList" + + "\"3\202\323\344\223\002-\022+/v0/{resource_name=customers/*" + + "/userLists/*}\022\301\001\n\017MutateUserLists\0228.goog" + + "le.ads.googleads.v0.services.MutateUserL" + + "istsRequest\0329.google.ads.googleads.v0.se" + + "rvices.MutateUserListsResponse\"9\202\323\344\223\0023\"." + + "/v0/customers/{customer_id=*}/userLists:" + + "mutate:\001*B\373\001\n$com.google.ads.googleads.v" + + "0.servicesB\024UserListServiceProtoP\001ZHgoog" + + "le.golang.org/genproto/googleapis/ads/go" + + "ogleads/v0/services;services\242\002\003GAA\252\002 Goo" + + "gle.Ads.GoogleAds.V0.Services\312\002 Google\\A" + + "ds\\GoogleAds\\V0\\Services\352\002$Google::Ads::" + + "GoogleAds::V0::Servicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -97,6 +102,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.UserListProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), }, assigner); internal_static_google_ads_googleads_v0_services_GetUserListRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -109,7 +116,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateUserListsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateUserListsRequest_descriptor, - new java.lang.String[] { "CustomerId", "Operations", }); + new java.lang.String[] { "CustomerId", "Operations", "PartialFailure", "ValidateOnly", }); internal_static_google_ads_googleads_v0_services_UserListOperation_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_ads_googleads_v0_services_UserListOperation_fieldAccessorTable = new @@ -121,7 +128,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_ads_googleads_v0_services_MutateUserListsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_googleads_v0_services_MutateUserListsResponse_descriptor, - new java.lang.String[] { "Results", }); + new java.lang.String[] { "PartialFailureError", "Results", }); internal_static_google_ads_googleads_v0_services_MutateUserListResult_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_google_ads_googleads_v0_services_MutateUserListResult_fieldAccessorTable = new @@ -136,6 +143,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.ads.googleads.v0.resources.UserListProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/UserListServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/UserListServiceSettings.java index ac99451bee..3cf5c97e1d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/UserListServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/UserListServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/VideoServiceClient.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/VideoServiceClient.java index a47358103f..e025a7f9ab 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/VideoServiceClient.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/VideoServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -206,7 +206,7 @@ public final Video getVideo(String resourceName) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final Video getVideo(GetVideoRequest request) { + public final Video getVideo(GetVideoRequest request) { return getVideoCallable().call(request); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/VideoServiceProto.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/VideoServiceProto.java index aa0a9f3300..1ded6d8a90 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/VideoServiceProto.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/VideoServiceProto.java @@ -37,12 +37,13 @@ public static void registerAllExtensions( "google.ads.googleads.v0.services.GetVide" + "oRequest\032(.google.ads.googleads.v0.resou" + "rces.Video\"0\202\323\344\223\002*\022(/v0/{resource_name=c" + - "ustomers/*/videos/*}B\321\001\n$com.google.ads." + + "ustomers/*/videos/*}B\370\001\n$com.google.ads." + "googleads.v0.servicesB\021VideoServiceProto" + "P\001ZHgoogle.golang.org/genproto/googleapi" + "s/ads/googleads/v0/services;services\242\002\003G" + "AA\252\002 Google.Ads.GoogleAds.V0.Services\312\002 " + - "Google\\Ads\\GoogleAds\\V0\\Servicesb\006proto3" + "Google\\Ads\\GoogleAds\\V0\\Services\352\002$Googl" + + "e::Ads::GoogleAds::V0::Servicesb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/VideoServiceSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/VideoServiceSettings.java index 49486a85ad..ad428156c8 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/VideoServiceSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/VideoServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/package-info.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/package-info.java index 511068c2f0..37f0db41da 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/package-info.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -152,6 +152,36 @@ *
*
* + * ======================== AdParameterServiceClient ======================== + * + *

Service Description: Service to manage ad parameters. + * + *

Sample for AdParameterServiceClient: + * + *

+ * 
+ * try (AdParameterServiceClient adParameterServiceClient = AdParameterServiceClient.create()) {
+ *   String formattedResourceName = AdParameterServiceClient.formatAdParameterName("[CUSTOMER]", "[AD_PARAMETER]");
+ *   AdParameter response = adParameterServiceClient.getAdParameter(formattedResourceName);
+ * }
+ * 
+ * 
+ * + * =========================== AdScheduleViewServiceClient =========================== + * + *

Service Description: Service to fetch ad schedule views. + * + *

Sample for AdScheduleViewServiceClient: + * + *

+ * 
+ * try (AdScheduleViewServiceClient adScheduleViewServiceClient = AdScheduleViewServiceClient.create()) {
+ *   String formattedResourceName = AdScheduleViewServiceClient.formatAdScheduleViewName("[CUSTOMER]", "[AD_SCHEDULE_VIEW]");
+ *   AdScheduleView response = adScheduleViewServiceClient.getAdScheduleView(formattedResourceName);
+ * }
+ * 
+ * 
+ * * ========================= AgeRangeViewServiceClient ========================= * *

Service Description: Service to manage age range views. @@ -282,21 +312,6 @@ * *

* - * ========================== CampaignGroupServiceClient ========================== - * - *

Service Description: Service to manage campaign groups. - * - *

Sample for CampaignGroupServiceClient: - * - *

- * 
- * try (CampaignGroupServiceClient campaignGroupServiceClient = CampaignGroupServiceClient.create()) {
- *   String formattedResourceName = CampaignGroupServiceClient.formatCampaignGroupName("[CUSTOMER]", "[CAMPAIGN_GROUP]");
- *   CampaignGroup response = campaignGroupServiceClient.getCampaignGroup(formattedResourceName);
- * }
- * 
- * 
- * * ===================== CampaignServiceClient ===================== * *

Service Description: Service to manage campaigns. @@ -389,7 +404,7 @@ * * =========================== CustomerClientServiceClient =========================== * - *

Service Description: Service to manage customer clients in a manager hierarchy. + *

Service Description: Service to get clients in a customer's hierarchy. * *

Sample for CustomerClientServiceClient: * @@ -609,7 +624,9 @@ * try (GoogleAdsServiceClient googleAdsServiceClient = GoogleAdsServiceClient.create()) { * String customerId = ""; * List<MutateOperation> mutateOperations = new ArrayList<>(); - * MutateGoogleAdsResponse response = googleAdsServiceClient.mutate(customerId, mutateOperations); + * boolean partialFailure = false; + * boolean validateOnly = false; + * MutateGoogleAdsResponse response = googleAdsServiceClient.mutate(customerId, mutateOperations, partialFailure, validateOnly); * } * *

@@ -639,7 +656,7 @@ *
  * 
  * try (HotelPerformanceViewServiceClient hotelPerformanceViewServiceClient = HotelPerformanceViewServiceClient.create()) {
- *   String formattedResourceName = HotelPerformanceViewServiceClient.formatHotelPerformanceViewName("[CUSTOMER]");
+ *   String formattedResourceName = HotelPerformanceViewServiceClient.formatCustomerName("[CUSTOMER]");
  *   HotelPerformanceView response = hotelPerformanceViewServiceClient.getHotelPerformanceView(formattedResourceName);
  * }
  * 
@@ -801,6 +818,54 @@
  * 
  * 
* + * ====================================== MobileAppCategoryConstantServiceClient + * ====================================== + * + *

Service Description: Service to fetch mobile app category constants. + * + *

Sample for MobileAppCategoryConstantServiceClient: + * + *

+ * 
+ * try (MobileAppCategoryConstantServiceClient mobileAppCategoryConstantServiceClient = MobileAppCategoryConstantServiceClient.create()) {
+ *   String formattedResourceName = MobileAppCategoryConstantServiceClient.formatMobileAppCategoryConstantName("[MOBILE_APP_CATEGORY_CONSTANT]");
+ *   MobileAppCategoryConstant response = mobileAppCategoryConstantServiceClient.getMobileAppCategoryConstant(formattedResourceName);
+ * }
+ * 
+ * 
+ * + * ================================= MobileDeviceConstantServiceClient + * ================================= + * + *

Service Description: Service to fetch mobile device constants. + * + *

Sample for MobileDeviceConstantServiceClient: + * + *

+ * 
+ * try (MobileDeviceConstantServiceClient mobileDeviceConstantServiceClient = MobileDeviceConstantServiceClient.create()) {
+ *   String formattedResourceName = MobileDeviceConstantServiceClient.formatMobileDeviceConstantName("[MOBILE_DEVICE_CONSTANT]");
+ *   MobileDeviceConstant response = mobileDeviceConstantServiceClient.getMobileDeviceConstant(formattedResourceName);
+ * }
+ * 
+ * 
+ * + * =========================================== OperatingSystemVersionConstantServiceClient + * =========================================== + * + *

Service Description: Service to fetch Operating System Version constants. + * + *

Sample for OperatingSystemVersionConstantServiceClient: + * + *

+ * 
+ * try (OperatingSystemVersionConstantServiceClient operatingSystemVersionConstantServiceClient = OperatingSystemVersionConstantServiceClient.create()) {
+ *   String formattedResourceName = OperatingSystemVersionConstantServiceClient.formatOperatingSystemVersionConstantName("[OPERATING_SYSTEM_VERSION_CONSTANT]");
+ *   OperatingSystemVersionConstant response = operatingSystemVersionConstantServiceClient.getOperatingSystemVersionConstant(formattedResourceName);
+ * }
+ * 
+ * 
+ * * =============================== ParentalStatusViewServiceClient =============================== * *

Service Description: Service to manage parental status views. @@ -862,6 +927,21 @@ * *

* + * ============================== RemarketingActionServiceClient ============================== + * + *

Service Description: Service to manage remarketing actions. + * + *

Sample for RemarketingActionServiceClient: + * + *

+ * 
+ * try (RemarketingActionServiceClient remarketingActionServiceClient = RemarketingActionServiceClient.create()) {
+ *   String formattedResourceName = RemarketingActionServiceClient.formatRemarketingActionName("[CUSTOMER]", "[REMARKETING_ACTION]");
+ *   RemarketingAction response = remarketingActionServiceClient.getRemarketingAction(formattedResourceName);
+ * }
+ * 
+ * 
+ * * =========================== SearchTermViewServiceClient =========================== * *

Service Description: Service to manage search term views. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AccountBudgetProposalServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AccountBudgetProposalServiceStub.java index 76360fcef4..79ade6fed7 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AccountBudgetProposalServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AccountBudgetProposalServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AccountBudgetProposalServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AccountBudgetProposalServiceStubSettings.java index aa701f4f22..214857ddad 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AccountBudgetProposalServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AccountBudgetProposalServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AccountBudgetServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AccountBudgetServiceStub.java index 0d61240941..69280c4b5e 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AccountBudgetServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AccountBudgetServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AccountBudgetServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AccountBudgetServiceStubSettings.java index ce2502e1d8..acda640c95 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AccountBudgetServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AccountBudgetServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupAdServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupAdServiceStub.java index 68689a0758..a8e28813a8 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupAdServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupAdServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupAdServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupAdServiceStubSettings.java index 5f472c87d3..7cee448d8a 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupAdServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupAdServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupAudienceViewServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupAudienceViewServiceStub.java index 5608e1882c..d99a9edfd6 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupAudienceViewServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupAudienceViewServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupAudienceViewServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupAudienceViewServiceStubSettings.java index 2c0dba05c9..5d2f687b2e 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupAudienceViewServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupAudienceViewServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupBidModifierServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupBidModifierServiceStub.java index 5068a2e3b8..ad3c5dbe16 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupBidModifierServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupBidModifierServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupBidModifierServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupBidModifierServiceStubSettings.java index 4fbd7aa0bd..56a746514f 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupBidModifierServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupBidModifierServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupCriterionServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupCriterionServiceStub.java index 0e6a7c33bc..29806cca93 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupCriterionServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupCriterionServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupCriterionServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupCriterionServiceStubSettings.java index 7680e98c60..691a15d7d6 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupCriterionServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupCriterionServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupFeedServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupFeedServiceStub.java index 50c3dc6a77..b79820e530 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupFeedServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupFeedServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupFeedServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupFeedServiceStubSettings.java index ce8c38aa36..5f69a7162c 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupFeedServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupFeedServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupServiceStub.java index 286627a711..e2cfb2b641 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupServiceStubSettings.java index 61ab9e801b..b4993f8deb 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdGroupServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignGroupServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdParameterServiceStub.java similarity index 65% rename from google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignGroupServiceStub.java rename to google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdParameterServiceStub.java index e1c53b5cf8..0373c64de7 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignGroupServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdParameterServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,10 +15,10 @@ */ package com.google.ads.googleads.v0.services.stub; -import com.google.ads.googleads.v0.resources.CampaignGroup; -import com.google.ads.googleads.v0.services.GetCampaignGroupRequest; -import com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest; -import com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse; +import com.google.ads.googleads.v0.resources.AdParameter; +import com.google.ads.googleads.v0.services.GetAdParameterRequest; +import com.google.ads.googleads.v0.services.MutateAdParametersRequest; +import com.google.ads.googleads.v0.services.MutateAdParametersResponse; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.UnaryCallable; @@ -32,15 +32,15 @@ */ @Generated("by gapic-generator") @BetaApi("A restructuring of stub classes is planned, so this may break in the future") -public abstract class CampaignGroupServiceStub implements BackgroundResource { +public abstract class AdParameterServiceStub implements BackgroundResource { - public UnaryCallable getCampaignGroupCallable() { - throw new UnsupportedOperationException("Not implemented: getCampaignGroupCallable()"); + public UnaryCallable getAdParameterCallable() { + throw new UnsupportedOperationException("Not implemented: getAdParameterCallable()"); } - public UnaryCallable - mutateCampaignGroupsCallable() { - throw new UnsupportedOperationException("Not implemented: mutateCampaignGroupsCallable()"); + public UnaryCallable + mutateAdParametersCallable() { + throw new UnsupportedOperationException("Not implemented: mutateAdParametersCallable()"); } @Override diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignGroupServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdParameterServiceStubSettings.java similarity index 71% rename from google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignGroupServiceStubSettings.java rename to google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdParameterServiceStubSettings.java index 0731239e41..e774d76a2a 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignGroupServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdParameterServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,10 +15,10 @@ */ package com.google.ads.googleads.v0.services.stub; -import com.google.ads.googleads.v0.resources.CampaignGroup; -import com.google.ads.googleads.v0.services.GetCampaignGroupRequest; -import com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest; -import com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse; +import com.google.ads.googleads.v0.resources.AdParameter; +import com.google.ads.googleads.v0.services.GetAdParameterRequest; +import com.google.ads.googleads.v0.services.MutateAdParametersRequest; +import com.google.ads.googleads.v0.services.MutateAdParametersResponse; import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; import com.google.api.gax.core.GaxProperties; @@ -45,7 +45,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS /** - * Settings class to configure an instance of {@link CampaignGroupServiceStub}. + * Settings class to configure an instance of {@link AdParameterServiceStub}. * *

The default instance has everything set to sensible defaults: * @@ -57,47 +57,46 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of getCampaignGroup to 30 seconds: + * example, to set the total timeout of getAdParameter to 30 seconds: * *

  * 
- * CampaignGroupServiceStubSettings.Builder campaignGroupServiceSettingsBuilder =
- *     CampaignGroupServiceStubSettings.newBuilder();
- * campaignGroupServiceSettingsBuilder.getCampaignGroupSettings().getRetrySettings().toBuilder()
+ * AdParameterServiceStubSettings.Builder adParameterServiceSettingsBuilder =
+ *     AdParameterServiceStubSettings.newBuilder();
+ * adParameterServiceSettingsBuilder.getAdParameterSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
- * CampaignGroupServiceStubSettings campaignGroupServiceSettings = campaignGroupServiceSettingsBuilder.build();
+ * AdParameterServiceStubSettings adParameterServiceSettings = adParameterServiceSettingsBuilder.build();
  * 
  * 
*/ @Generated("by gapic-generator") @BetaApi -public class CampaignGroupServiceStubSettings - extends StubSettings { +public class AdParameterServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = ImmutableList.builder().build(); - private final UnaryCallSettings getCampaignGroupSettings; - private final UnaryCallSettings - mutateCampaignGroupsSettings; + private final UnaryCallSettings getAdParameterSettings; + private final UnaryCallSettings + mutateAdParametersSettings; - /** Returns the object with the settings used for calls to getCampaignGroup. */ - public UnaryCallSettings getCampaignGroupSettings() { - return getCampaignGroupSettings; + /** Returns the object with the settings used for calls to getAdParameter. */ + public UnaryCallSettings getAdParameterSettings() { + return getAdParameterSettings; } - /** Returns the object with the settings used for calls to mutateCampaignGroups. */ - public UnaryCallSettings - mutateCampaignGroupsSettings() { - return mutateCampaignGroupsSettings; + /** Returns the object with the settings used for calls to mutateAdParameters. */ + public UnaryCallSettings + mutateAdParametersSettings() { + return mutateAdParametersSettings; } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public CampaignGroupServiceStub createStub() throws IOException { + public AdParameterServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcCampaignGroupServiceStub.create(this); + return GrpcAdParameterServiceStub.create(this); } else { throw new UnsupportedOperationException( "Transport not supported: " + getTransportChannelProvider().getTransportName()); @@ -137,7 +136,7 @@ public static TransportChannelProvider defaultTransportChannelProvider() { public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(CampaignGroupServiceStubSettings.class)) + "gapic", GaxProperties.getLibraryVersion(AdParameterServiceStubSettings.class)) .setTransportToken( GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } @@ -157,23 +156,22 @@ public Builder toBuilder() { return new Builder(this); } - protected CampaignGroupServiceStubSettings(Builder settingsBuilder) throws IOException { + protected AdParameterServiceStubSettings(Builder settingsBuilder) throws IOException { super(settingsBuilder); - getCampaignGroupSettings = settingsBuilder.getCampaignGroupSettings().build(); - mutateCampaignGroupsSettings = settingsBuilder.mutateCampaignGroupsSettings().build(); + getAdParameterSettings = settingsBuilder.getAdParameterSettings().build(); + mutateAdParametersSettings = settingsBuilder.mutateAdParametersSettings().build(); } - /** Builder for CampaignGroupServiceStubSettings. */ + /** Builder for AdParameterServiceStubSettings. */ public static class Builder - extends StubSettings.Builder { + extends StubSettings.Builder { private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder - getCampaignGroupSettings; - private final UnaryCallSettings.Builder< - MutateCampaignGroupsRequest, MutateCampaignGroupsResponse> - mutateCampaignGroupsSettings; + private final UnaryCallSettings.Builder + getAdParameterSettings; + private final UnaryCallSettings.Builder + mutateAdParametersSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -216,13 +214,13 @@ protected Builder() { protected Builder(ClientContext clientContext) { super(clientContext); - getCampaignGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getAdParameterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - mutateCampaignGroupsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + mutateAdParametersSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( - getCampaignGroupSettings, mutateCampaignGroupsSettings); + getAdParameterSettings, mutateAdParametersSettings); initDefaults(this); } @@ -239,27 +237,27 @@ private static Builder createDefault() { private static Builder initDefaults(Builder builder) { builder - .getCampaignGroupSettings() + .getAdParameterSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); builder - .mutateCampaignGroupsSettings() + .mutateAdParametersSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); return builder; } - protected Builder(CampaignGroupServiceStubSettings settings) { + protected Builder(AdParameterServiceStubSettings settings) { super(settings); - getCampaignGroupSettings = settings.getCampaignGroupSettings.toBuilder(); - mutateCampaignGroupsSettings = settings.mutateCampaignGroupsSettings.toBuilder(); + getAdParameterSettings = settings.getAdParameterSettings.toBuilder(); + mutateAdParametersSettings = settings.mutateAdParametersSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( - getCampaignGroupSettings, mutateCampaignGroupsSettings); + getAdParameterSettings, mutateAdParametersSettings); } // NEXT_MAJOR_VER: remove 'throws Exception' @@ -278,21 +276,20 @@ public Builder applyToAllUnaryMethods( return unaryMethodSettingsBuilders; } - /** Returns the builder for the settings used for calls to getCampaignGroup. */ - public UnaryCallSettings.Builder - getCampaignGroupSettings() { - return getCampaignGroupSettings; + /** Returns the builder for the settings used for calls to getAdParameter. */ + public UnaryCallSettings.Builder getAdParameterSettings() { + return getAdParameterSettings; } - /** Returns the builder for the settings used for calls to mutateCampaignGroups. */ - public UnaryCallSettings.Builder - mutateCampaignGroupsSettings() { - return mutateCampaignGroupsSettings; + /** Returns the builder for the settings used for calls to mutateAdParameters. */ + public UnaryCallSettings.Builder + mutateAdParametersSettings() { + return mutateAdParametersSettings; } @Override - public CampaignGroupServiceStubSettings build() throws IOException { - return new CampaignGroupServiceStubSettings(this); + public AdParameterServiceStubSettings build() throws IOException { + return new AdParameterServiceStubSettings(this); } } } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdScheduleViewServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdScheduleViewServiceStub.java new file mode 100644 index 0000000000..514bd7e923 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdScheduleViewServiceStub.java @@ -0,0 +1,41 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services.stub; + +import com.google.ads.googleads.v0.resources.AdScheduleView; +import com.google.ads.googleads.v0.services.GetAdScheduleViewRequest; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Base stub class for Google Ads API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public abstract class AdScheduleViewServiceStub implements BackgroundResource { + + public UnaryCallable getAdScheduleViewCallable() { + throw new UnsupportedOperationException("Not implemented: getAdScheduleViewCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdScheduleViewServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdScheduleViewServiceStubSettings.java new file mode 100644 index 0000000000..e00edd2614 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AdScheduleViewServiceStubSettings.java @@ -0,0 +1,269 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services.stub; + +import com.google.ads.googleads.v0.resources.AdScheduleView; +import com.google.ads.googleads.v0.services.GetAdScheduleViewRequest; +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link AdScheduleViewServiceStub}. + * + *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of getAdScheduleView to 30 seconds: + * + *

+ * 
+ * AdScheduleViewServiceStubSettings.Builder adScheduleViewServiceSettingsBuilder =
+ *     AdScheduleViewServiceStubSettings.newBuilder();
+ * adScheduleViewServiceSettingsBuilder.getAdScheduleViewSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * AdScheduleViewServiceStubSettings adScheduleViewServiceSettings = adScheduleViewServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class AdScheduleViewServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().build(); + + private final UnaryCallSettings + getAdScheduleViewSettings; + + /** Returns the object with the settings used for calls to getAdScheduleView. */ + public UnaryCallSettings getAdScheduleViewSettings() { + return getAdScheduleViewSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public AdScheduleViewServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcAdScheduleViewServiceStub.create(this); + } else { + throw new UnsupportedOperationException( + "Transport not supported: " + getTransportChannelProvider().getTransportName()); + } + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "googleads.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AdScheduleViewServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected AdScheduleViewServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getAdScheduleViewSettings = settingsBuilder.getAdScheduleViewSettings().build(); + } + + /** Builder for AdScheduleViewServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + + private final UnaryCallSettings.Builder + getAdScheduleViewSettings; + + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "idempotent", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(20000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(20000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("default", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getAdScheduleViewSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(getAdScheduleViewSettings); + + initDefaults(this); + } + + private static Builder createDefault() { + Builder builder = new Builder((ClientContext) null); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + + builder + .getAdScheduleViewSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + return builder; + } + + protected Builder(AdScheduleViewServiceStubSettings settings) { + super(settings); + + getAdScheduleViewSettings = settings.getAdScheduleViewSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(getAdScheduleViewSettings); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getAdScheduleView. */ + public UnaryCallSettings.Builder + getAdScheduleViewSettings() { + return getAdScheduleViewSettings; + } + + @Override + public AdScheduleViewServiceStubSettings build() throws IOException { + return new AdScheduleViewServiceStubSettings(this); + } + } +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AgeRangeViewServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AgeRangeViewServiceStub.java index e3f63fa82a..03131f86a4 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AgeRangeViewServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AgeRangeViewServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AgeRangeViewServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AgeRangeViewServiceStubSettings.java index f33c365bb1..267a48f50f 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AgeRangeViewServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/AgeRangeViewServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/BiddingStrategyServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/BiddingStrategyServiceStub.java index 12e2ab54f9..848cf17091 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/BiddingStrategyServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/BiddingStrategyServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/BiddingStrategyServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/BiddingStrategyServiceStubSettings.java index 53f099766d..bc259a58b1 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/BiddingStrategyServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/BiddingStrategyServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/BillingSetupServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/BillingSetupServiceStub.java index f2d6ef45b9..9d1f38da76 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/BillingSetupServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/BillingSetupServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/BillingSetupServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/BillingSetupServiceStubSettings.java index 1d693b518d..221ac4324f 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/BillingSetupServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/BillingSetupServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignAudienceViewServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignAudienceViewServiceStub.java index 3cd1f009c4..af7f3fce76 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignAudienceViewServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignAudienceViewServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignAudienceViewServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignAudienceViewServiceStubSettings.java index 59c3db8451..f57bc07ca5 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignAudienceViewServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignAudienceViewServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignBidModifierServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignBidModifierServiceStub.java index e299b0850a..561b422069 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignBidModifierServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignBidModifierServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignBidModifierServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignBidModifierServiceStubSettings.java index a1198d15aa..41cb8b5da1 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignBidModifierServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignBidModifierServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignBudgetServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignBudgetServiceStub.java index bc05bd966c..946804091c 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignBudgetServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignBudgetServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignBudgetServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignBudgetServiceStubSettings.java index 9290274375..d91b28a15c 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignBudgetServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignBudgetServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignCriterionServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignCriterionServiceStub.java index bc68a75952..18b5aeb2e4 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignCriterionServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignCriterionServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignCriterionServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignCriterionServiceStubSettings.java index 227002d933..0012651bd5 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignCriterionServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignCriterionServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignFeedServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignFeedServiceStub.java index 0bdcb2203e..40010d6d88 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignFeedServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignFeedServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignFeedServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignFeedServiceStubSettings.java index a17c419774..e71e7e5b93 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignFeedServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignFeedServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignServiceStub.java index 78143fa1b7..d31dd829be 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignServiceStubSettings.java index 845139f5e8..21fad6afac 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignSharedSetServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignSharedSetServiceStub.java index cd47af57a0..ab6d748eed 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignSharedSetServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignSharedSetServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignSharedSetServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignSharedSetServiceStubSettings.java index e7de893e57..4cfbbd7d50 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignSharedSetServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CampaignSharedSetServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CarrierConstantServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CarrierConstantServiceStub.java index 3605314955..c8bd5f4911 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CarrierConstantServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CarrierConstantServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CarrierConstantServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CarrierConstantServiceStubSettings.java index b4ab681d45..d4542cde00 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CarrierConstantServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CarrierConstantServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ChangeStatusServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ChangeStatusServiceStub.java index 6a6450aaf6..f7f8c8ba85 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ChangeStatusServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ChangeStatusServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ChangeStatusServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ChangeStatusServiceStubSettings.java index 97462df440..4307a6ba9f 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ChangeStatusServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ChangeStatusServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ConversionActionServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ConversionActionServiceStub.java index 9f442c2e1a..14bdbbec26 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ConversionActionServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ConversionActionServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ConversionActionServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ConversionActionServiceStubSettings.java index a906d2c82d..b16f4a11d1 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ConversionActionServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ConversionActionServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerClientLinkServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerClientLinkServiceStub.java index f4720f9b6e..9ce6beb6cb 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerClientLinkServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerClientLinkServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,6 +17,8 @@ import com.google.ads.googleads.v0.resources.CustomerClientLink; import com.google.ads.googleads.v0.services.GetCustomerClientLinkRequest; +import com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest; +import com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.UnaryCallable; @@ -37,6 +39,11 @@ public abstract class CustomerClientLinkServiceStub implements BackgroundResourc throw new UnsupportedOperationException("Not implemented: getCustomerClientLinkCallable()"); } + public UnaryCallable + mutateCustomerClientLinkCallable() { + throw new UnsupportedOperationException("Not implemented: mutateCustomerClientLinkCallable()"); + } + @Override public abstract void close(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerClientLinkServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerClientLinkServiceStubSettings.java index a509ff9d11..73929fc491 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerClientLinkServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerClientLinkServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,6 +17,8 @@ import com.google.ads.googleads.v0.resources.CustomerClientLink; import com.google.ads.googleads.v0.services.GetCustomerClientLinkRequest; +import com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest; +import com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse; import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; import com.google.api.gax.core.GaxProperties; @@ -77,6 +79,8 @@ public class CustomerClientLinkServiceStubSettings private final UnaryCallSettings getCustomerClientLinkSettings; + private final UnaryCallSettings + mutateCustomerClientLinkSettings; /** Returns the object with the settings used for calls to getCustomerClientLink. */ public UnaryCallSettings @@ -84,6 +88,12 @@ public class CustomerClientLinkServiceStubSettings return getCustomerClientLinkSettings; } + /** Returns the object with the settings used for calls to mutateCustomerClientLink. */ + public UnaryCallSettings + mutateCustomerClientLinkSettings() { + return mutateCustomerClientLinkSettings; + } + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public CustomerClientLinkServiceStub createStub() throws IOException { if (getTransportChannelProvider() @@ -153,6 +163,7 @@ protected CustomerClientLinkServiceStubSettings(Builder settingsBuilder) throws super(settingsBuilder); getCustomerClientLinkSettings = settingsBuilder.getCustomerClientLinkSettings().build(); + mutateCustomerClientLinkSettings = settingsBuilder.mutateCustomerClientLinkSettings().build(); } /** Builder for CustomerClientLinkServiceStubSettings. */ @@ -162,6 +173,9 @@ public static class Builder private final UnaryCallSettings.Builder getCustomerClientLinkSettings; + private final UnaryCallSettings.Builder< + MutateCustomerClientLinkRequest, MutateCustomerClientLinkResponse> + mutateCustomerClientLinkSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -206,8 +220,11 @@ protected Builder(ClientContext clientContext) { getCustomerClientLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + mutateCustomerClientLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + unaryMethodSettingsBuilders = - ImmutableList.>of(getCustomerClientLinkSettings); + ImmutableList.>of( + getCustomerClientLinkSettings, mutateCustomerClientLinkSettings); initDefaults(this); } @@ -228,6 +245,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + builder + .mutateCustomerClientLinkSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + return builder; } @@ -235,9 +257,11 @@ protected Builder(CustomerClientLinkServiceStubSettings settings) { super(settings); getCustomerClientLinkSettings = settings.getCustomerClientLinkSettings.toBuilder(); + mutateCustomerClientLinkSettings = settings.mutateCustomerClientLinkSettings.toBuilder(); unaryMethodSettingsBuilders = - ImmutableList.>of(getCustomerClientLinkSettings); + ImmutableList.>of( + getCustomerClientLinkSettings, mutateCustomerClientLinkSettings); } // NEXT_MAJOR_VER: remove 'throws Exception' @@ -262,6 +286,13 @@ public Builder applyToAllUnaryMethods( return getCustomerClientLinkSettings; } + /** Returns the builder for the settings used for calls to mutateCustomerClientLink. */ + public UnaryCallSettings.Builder< + MutateCustomerClientLinkRequest, MutateCustomerClientLinkResponse> + mutateCustomerClientLinkSettings() { + return mutateCustomerClientLinkSettings; + } + @Override public CustomerClientLinkServiceStubSettings build() throws IOException { return new CustomerClientLinkServiceStubSettings(this); diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerClientServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerClientServiceStub.java index de6ecfaa00..7d9dcccfb6 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerClientServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerClientServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerClientServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerClientServiceStubSettings.java index 036c9df774..c1f1858ae5 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerClientServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerClientServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerFeedServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerFeedServiceStub.java index 6aba5801ea..2165a1f934 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerFeedServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerFeedServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerFeedServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerFeedServiceStubSettings.java index 94b437c45e..1852929579 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerFeedServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerFeedServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerManagerLinkServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerManagerLinkServiceStub.java index 0a391c0c3f..9b7037bf21 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerManagerLinkServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerManagerLinkServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,6 +17,8 @@ import com.google.ads.googleads.v0.resources.CustomerManagerLink; import com.google.ads.googleads.v0.services.GetCustomerManagerLinkRequest; +import com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest; +import com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.UnaryCallable; @@ -37,6 +39,11 @@ public abstract class CustomerManagerLinkServiceStub implements BackgroundResour throw new UnsupportedOperationException("Not implemented: getCustomerManagerLinkCallable()"); } + public UnaryCallable + mutateCustomerManagerLinkCallable() { + throw new UnsupportedOperationException("Not implemented: mutateCustomerManagerLinkCallable()"); + } + @Override public abstract void close(); } diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerManagerLinkServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerManagerLinkServiceStubSettings.java index bdc8fc60d1..de24bd522f 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerManagerLinkServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerManagerLinkServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,6 +17,8 @@ import com.google.ads.googleads.v0.resources.CustomerManagerLink; import com.google.ads.googleads.v0.services.GetCustomerManagerLinkRequest; +import com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest; +import com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse; import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; import com.google.api.gax.core.GaxProperties; @@ -77,6 +79,9 @@ public class CustomerManagerLinkServiceStubSettings private final UnaryCallSettings getCustomerManagerLinkSettings; + private final UnaryCallSettings< + MutateCustomerManagerLinkRequest, MutateCustomerManagerLinkResponse> + mutateCustomerManagerLinkSettings; /** Returns the object with the settings used for calls to getCustomerManagerLink. */ public UnaryCallSettings @@ -84,6 +89,12 @@ public class CustomerManagerLinkServiceStubSettings return getCustomerManagerLinkSettings; } + /** Returns the object with the settings used for calls to mutateCustomerManagerLink. */ + public UnaryCallSettings + mutateCustomerManagerLinkSettings() { + return mutateCustomerManagerLinkSettings; + } + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public CustomerManagerLinkServiceStub createStub() throws IOException { if (getTransportChannelProvider() @@ -153,6 +164,7 @@ protected CustomerManagerLinkServiceStubSettings(Builder settingsBuilder) throws super(settingsBuilder); getCustomerManagerLinkSettings = settingsBuilder.getCustomerManagerLinkSettings().build(); + mutateCustomerManagerLinkSettings = settingsBuilder.mutateCustomerManagerLinkSettings().build(); } /** Builder for CustomerManagerLinkServiceStubSettings. */ @@ -162,6 +174,9 @@ public static class Builder private final UnaryCallSettings.Builder getCustomerManagerLinkSettings; + private final UnaryCallSettings.Builder< + MutateCustomerManagerLinkRequest, MutateCustomerManagerLinkResponse> + mutateCustomerManagerLinkSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -206,8 +221,11 @@ protected Builder(ClientContext clientContext) { getCustomerManagerLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + mutateCustomerManagerLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + unaryMethodSettingsBuilders = - ImmutableList.>of(getCustomerManagerLinkSettings); + ImmutableList.>of( + getCustomerManagerLinkSettings, mutateCustomerManagerLinkSettings); initDefaults(this); } @@ -228,6 +246,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + builder + .mutateCustomerManagerLinkSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + return builder; } @@ -235,9 +258,11 @@ protected Builder(CustomerManagerLinkServiceStubSettings settings) { super(settings); getCustomerManagerLinkSettings = settings.getCustomerManagerLinkSettings.toBuilder(); + mutateCustomerManagerLinkSettings = settings.mutateCustomerManagerLinkSettings.toBuilder(); unaryMethodSettingsBuilders = - ImmutableList.>of(getCustomerManagerLinkSettings); + ImmutableList.>of( + getCustomerManagerLinkSettings, mutateCustomerManagerLinkSettings); } // NEXT_MAJOR_VER: remove 'throws Exception' @@ -262,6 +287,13 @@ public Builder applyToAllUnaryMethods( return getCustomerManagerLinkSettings; } + /** Returns the builder for the settings used for calls to mutateCustomerManagerLink. */ + public UnaryCallSettings.Builder< + MutateCustomerManagerLinkRequest, MutateCustomerManagerLinkResponse> + mutateCustomerManagerLinkSettings() { + return mutateCustomerManagerLinkSettings; + } + @Override public CustomerManagerLinkServiceStubSettings build() throws IOException { return new CustomerManagerLinkServiceStubSettings(this); diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerServiceStub.java index 3b621af01f..6fa2044b51 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerServiceStubSettings.java index eb2a428296..ea1a7c291d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/CustomerServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/DisplayKeywordViewServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/DisplayKeywordViewServiceStub.java index a46a718461..0dd9779062 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/DisplayKeywordViewServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/DisplayKeywordViewServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/DisplayKeywordViewServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/DisplayKeywordViewServiceStubSettings.java index fbbbb00084..3d2dbfb153 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/DisplayKeywordViewServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/DisplayKeywordViewServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/FeedItemServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/FeedItemServiceStub.java index 0762fe33ad..bbcec6fac4 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/FeedItemServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/FeedItemServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/FeedItemServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/FeedItemServiceStubSettings.java index fd8ced3e9e..220353b36b 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/FeedItemServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/FeedItemServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/FeedMappingServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/FeedMappingServiceStub.java index d4821f1576..c5d0b9a953 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/FeedMappingServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/FeedMappingServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/FeedMappingServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/FeedMappingServiceStubSettings.java index 982230cc8b..5beeba29e9 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/FeedMappingServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/FeedMappingServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/FeedServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/FeedServiceStub.java index b623c2a196..3039fee82d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/FeedServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/FeedServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/FeedServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/FeedServiceStubSettings.java index 825f6bcfcd..71f5165d38 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/FeedServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/FeedServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GenderViewServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GenderViewServiceStub.java index f03ce105c1..180378ad1e 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GenderViewServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GenderViewServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GenderViewServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GenderViewServiceStubSettings.java index c143dcc277..4da75b202a 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GenderViewServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GenderViewServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GeoTargetConstantServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GeoTargetConstantServiceStub.java index 2d85cdd167..b68be4c39d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GeoTargetConstantServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GeoTargetConstantServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GeoTargetConstantServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GeoTargetConstantServiceStubSettings.java index c1f992eab9..0bab6006fe 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GeoTargetConstantServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GeoTargetConstantServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GoogleAdsFieldServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GoogleAdsFieldServiceStub.java index c9496aab12..47c48a6397 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GoogleAdsFieldServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GoogleAdsFieldServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GoogleAdsFieldServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GoogleAdsFieldServiceStubSettings.java index 5f6d54ad02..14e171a05d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GoogleAdsFieldServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GoogleAdsFieldServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -213,7 +213,9 @@ public String extractNextToken(SearchGoogleAdsFieldsResponse payload) { @Override public Iterable extractResources( SearchGoogleAdsFieldsResponse payload) { - return payload.getResultsList(); + return payload.getResultsList() != null + ? payload.getResultsList() + : ImmutableList.of(); } }; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GoogleAdsServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GoogleAdsServiceStub.java index c6afeab985..e52e53a472 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GoogleAdsServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GoogleAdsServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GoogleAdsServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GoogleAdsServiceStubSettings.java index b1a23fc47f..7612accb5f 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GoogleAdsServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GoogleAdsServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -207,7 +207,9 @@ public String extractNextToken(SearchGoogleAdsResponse payload) { @Override public Iterable extractResources(SearchGoogleAdsResponse payload) { - return payload.getResultsList(); + return payload.getResultsList() != null + ? payload.getResultsList() + : ImmutableList.of(); } }; diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAccountBudgetProposalServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAccountBudgetProposalServiceCallableFactory.java index f46a3e9f08..7546c22de0 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAccountBudgetProposalServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAccountBudgetProposalServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAccountBudgetProposalServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAccountBudgetProposalServiceStub.java index 4b10da56a4..1806053622 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAccountBudgetProposalServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAccountBudgetProposalServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAccountBudgetServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAccountBudgetServiceCallableFactory.java index cdd79f245d..bd22af3901 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAccountBudgetServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAccountBudgetServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAccountBudgetServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAccountBudgetServiceStub.java index ae470a1fe7..f855f6411e 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAccountBudgetServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAccountBudgetServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupAdServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupAdServiceCallableFactory.java index f7e69da72e..99c120cb31 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupAdServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupAdServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupAdServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupAdServiceStub.java index 45351d0bc4..5d6d5cfde0 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupAdServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupAdServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupAudienceViewServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupAudienceViewServiceCallableFactory.java index 2f77a25167..6e6e1cd7ae 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupAudienceViewServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupAudienceViewServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupAudienceViewServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupAudienceViewServiceStub.java index b3135c9b33..1f6b4842bd 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupAudienceViewServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupAudienceViewServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupBidModifierServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupBidModifierServiceCallableFactory.java index 5dde038a78..255625ea25 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupBidModifierServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupBidModifierServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupBidModifierServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupBidModifierServiceStub.java index bd736f7633..7c7f726fc6 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupBidModifierServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupBidModifierServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupCriterionServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupCriterionServiceCallableFactory.java index 1e1971cb74..1a35ca0fe2 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupCriterionServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupCriterionServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupCriterionServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupCriterionServiceStub.java index 8bf2631321..3c8d553801 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupCriterionServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupCriterionServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupFeedServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupFeedServiceCallableFactory.java index f6eb4457eb..5bb95a522c 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupFeedServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupFeedServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupFeedServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupFeedServiceStub.java index d20aa18a34..2e419ccc1e 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupFeedServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupFeedServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupServiceCallableFactory.java index fa5e353d0b..c11c069c7e 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupServiceStub.java index f1de0e59b2..e2e5124ff2 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdGroupServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignGroupServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdParameterServiceCallableFactory.java similarity index 93% rename from google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignGroupServiceCallableFactory.java rename to google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdParameterServiceCallableFactory.java index 80d99cc797..df3d74a497 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignGroupServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdParameterServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -43,4 +43,4 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class GrpcCampaignGroupServiceCallableFactory extends GrpcGoogleAdsCallableFactory {} +public class GrpcAdParameterServiceCallableFactory extends GrpcGoogleAdsCallableFactory {} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdParameterServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdParameterServiceStub.java new file mode 100644 index 0000000000..e0c241b6e5 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdParameterServiceStub.java @@ -0,0 +1,174 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services.stub; + +import com.google.ads.googleads.v0.resources.AdParameter; +import com.google.ads.googleads.v0.services.GetAdParameterRequest; +import com.google.ads.googleads.v0.services.MutateAdParametersRequest; +import com.google.ads.googleads.v0.services.MutateAdParametersResponse; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC stub implementation for Google Ads API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public class GrpcAdParameterServiceStub extends AdParameterServiceStub { + + private static final MethodDescriptor + getAdParameterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.ads.googleads.v0.services.AdParameterService/GetAdParameter") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAdParameterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AdParameter.getDefaultInstance())) + .build(); + private static final MethodDescriptor + mutateAdParametersMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.ads.googleads.v0.services.AdParameterService/MutateAdParameters") + .setRequestMarshaller( + ProtoUtils.marshaller(MutateAdParametersRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(MutateAdParametersResponse.getDefaultInstance())) + .build(); + + private final BackgroundResource backgroundResources; + + private final UnaryCallable getAdParameterCallable; + private final UnaryCallable + mutateAdParametersCallable; + + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcAdParameterServiceStub create(AdParameterServiceStubSettings settings) + throws IOException { + return new GrpcAdParameterServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcAdParameterServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcAdParameterServiceStub( + AdParameterServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcAdParameterServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcAdParameterServiceStub( + AdParameterServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcAdParameterServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcAdParameterServiceStub( + AdParameterServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcAdParameterServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcAdParameterServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcAdParameterServiceStub( + AdParameterServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + GrpcCallSettings getAdParameterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAdParameterMethodDescriptor) + .build(); + GrpcCallSettings + mutateAdParametersTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(mutateAdParametersMethodDescriptor) + .build(); + + this.getAdParameterCallable = + callableFactory.createUnaryCallable( + getAdParameterTransportSettings, settings.getAdParameterSettings(), clientContext); + this.mutateAdParametersCallable = + callableFactory.createUnaryCallable( + mutateAdParametersTransportSettings, + settings.mutateAdParametersSettings(), + clientContext); + + backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public UnaryCallable getAdParameterCallable() { + return getAdParameterCallable; + } + + public UnaryCallable + mutateAdParametersCallable() { + return mutateAdParametersCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdScheduleViewServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdScheduleViewServiceCallableFactory.java new file mode 100644 index 0000000000..33f85784f0 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdScheduleViewServiceCallableFactory.java @@ -0,0 +1,46 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC callable factory implementation for Google Ads API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator") +@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") +public class GrpcAdScheduleViewServiceCallableFactory extends GrpcGoogleAdsCallableFactory {} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdScheduleViewServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdScheduleViewServiceStub.java new file mode 100644 index 0000000000..d35f1fbfc4 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAdScheduleViewServiceStub.java @@ -0,0 +1,146 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services.stub; + +import com.google.ads.googleads.v0.resources.AdScheduleView; +import com.google.ads.googleads.v0.services.GetAdScheduleViewRequest; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC stub implementation for Google Ads API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public class GrpcAdScheduleViewServiceStub extends AdScheduleViewServiceStub { + + private static final MethodDescriptor + getAdScheduleViewMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.ads.googleads.v0.services.AdScheduleViewService/GetAdScheduleView") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAdScheduleViewRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AdScheduleView.getDefaultInstance())) + .build(); + + private final BackgroundResource backgroundResources; + + private final UnaryCallable getAdScheduleViewCallable; + + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcAdScheduleViewServiceStub create( + AdScheduleViewServiceStubSettings settings) throws IOException { + return new GrpcAdScheduleViewServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcAdScheduleViewServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcAdScheduleViewServiceStub( + AdScheduleViewServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcAdScheduleViewServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcAdScheduleViewServiceStub( + AdScheduleViewServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcAdScheduleViewServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcAdScheduleViewServiceStub( + AdScheduleViewServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcAdScheduleViewServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcAdScheduleViewServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcAdScheduleViewServiceStub( + AdScheduleViewServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + GrpcCallSettings getAdScheduleViewTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAdScheduleViewMethodDescriptor) + .build(); + + this.getAdScheduleViewCallable = + callableFactory.createUnaryCallable( + getAdScheduleViewTransportSettings, + settings.getAdScheduleViewSettings(), + clientContext); + + backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public UnaryCallable getAdScheduleViewCallable() { + return getAdScheduleViewCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAgeRangeViewServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAgeRangeViewServiceCallableFactory.java index 43dfb86fe8..3c1c08a595 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAgeRangeViewServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAgeRangeViewServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAgeRangeViewServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAgeRangeViewServiceStub.java index e165071404..333ee50b4e 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAgeRangeViewServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcAgeRangeViewServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcBiddingStrategyServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcBiddingStrategyServiceCallableFactory.java index f63ca76ec3..172ecad70b 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcBiddingStrategyServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcBiddingStrategyServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcBiddingStrategyServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcBiddingStrategyServiceStub.java index e16bcdfdf3..a593aacff1 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcBiddingStrategyServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcBiddingStrategyServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcBillingSetupServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcBillingSetupServiceCallableFactory.java index 8e473ac1bd..d34a9cc3f5 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcBillingSetupServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcBillingSetupServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcBillingSetupServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcBillingSetupServiceStub.java index 14c851e15d..fb226cebe0 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcBillingSetupServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcBillingSetupServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignAudienceViewServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignAudienceViewServiceCallableFactory.java index 3637966f25..0bd6ccaa5b 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignAudienceViewServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignAudienceViewServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignAudienceViewServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignAudienceViewServiceStub.java index 66126e47c6..976eda4b75 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignAudienceViewServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignAudienceViewServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignBidModifierServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignBidModifierServiceCallableFactory.java index a55d9a30aa..bfbd6a4d5c 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignBidModifierServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignBidModifierServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignBidModifierServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignBidModifierServiceStub.java index c7896d357b..99c07e1d74 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignBidModifierServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignBidModifierServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignBudgetServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignBudgetServiceCallableFactory.java index b4664a18de..1c157da64d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignBudgetServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignBudgetServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignBudgetServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignBudgetServiceStub.java index 0907368e1d..69cac3515a 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignBudgetServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignBudgetServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignCriterionServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignCriterionServiceCallableFactory.java index 4ee67efe78..72ce346558 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignCriterionServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignCriterionServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignCriterionServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignCriterionServiceStub.java index faa88b7b97..b69e67fec8 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignCriterionServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignCriterionServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignFeedServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignFeedServiceCallableFactory.java index 31f7588f52..afe15334b1 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignFeedServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignFeedServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignFeedServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignFeedServiceStub.java index d0cde50255..5fe02398a3 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignFeedServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignFeedServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignGroupServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignGroupServiceStub.java deleted file mode 100644 index 97fbe1041f..0000000000 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignGroupServiceStub.java +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Copyright 2018 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.ads.googleads.v0.services.stub; - -import com.google.ads.googleads.v0.resources.CampaignGroup; -import com.google.ads.googleads.v0.services.GetCampaignGroupRequest; -import com.google.ads.googleads.v0.services.MutateCampaignGroupsRequest; -import com.google.ads.googleads.v0.services.MutateCampaignGroupsResponse; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.UnaryCallable; -import io.grpc.MethodDescriptor; -import io.grpc.protobuf.ProtoUtils; -import java.io.IOException; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -/** - * gRPC stub implementation for Google Ads API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator") -@BetaApi("A restructuring of stub classes is planned, so this may break in the future") -public class GrpcCampaignGroupServiceStub extends CampaignGroupServiceStub { - - private static final MethodDescriptor - getCampaignGroupMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.ads.googleads.v0.services.CampaignGroupService/GetCampaignGroup") - .setRequestMarshaller( - ProtoUtils.marshaller(GetCampaignGroupRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(CampaignGroup.getDefaultInstance())) - .build(); - private static final MethodDescriptor - mutateCampaignGroupsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.ads.googleads.v0.services.CampaignGroupService/MutateCampaignGroups") - .setRequestMarshaller( - ProtoUtils.marshaller(MutateCampaignGroupsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(MutateCampaignGroupsResponse.getDefaultInstance())) - .build(); - - private final BackgroundResource backgroundResources; - - private final UnaryCallable getCampaignGroupCallable; - private final UnaryCallable - mutateCampaignGroupsCallable; - - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcCampaignGroupServiceStub create(CampaignGroupServiceStubSettings settings) - throws IOException { - return new GrpcCampaignGroupServiceStub(settings, ClientContext.create(settings)); - } - - public static final GrpcCampaignGroupServiceStub create(ClientContext clientContext) - throws IOException { - return new GrpcCampaignGroupServiceStub( - CampaignGroupServiceStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcCampaignGroupServiceStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcCampaignGroupServiceStub( - CampaignGroupServiceStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcCampaignGroupServiceStub, using the given settings. This is - * protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected GrpcCampaignGroupServiceStub( - CampaignGroupServiceStubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new GrpcCampaignGroupServiceCallableFactory()); - } - - /** - * Constructs an instance of GrpcCampaignGroupServiceStub, using the given settings. This is - * protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected GrpcCampaignGroupServiceStub( - CampaignGroupServiceStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - - GrpcCallSettings getCampaignGroupTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getCampaignGroupMethodDescriptor) - .build(); - GrpcCallSettings - mutateCampaignGroupsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(mutateCampaignGroupsMethodDescriptor) - .build(); - - this.getCampaignGroupCallable = - callableFactory.createUnaryCallable( - getCampaignGroupTransportSettings, settings.getCampaignGroupSettings(), clientContext); - this.mutateCampaignGroupsCallable = - callableFactory.createUnaryCallable( - mutateCampaignGroupsTransportSettings, - settings.mutateCampaignGroupsSettings(), - clientContext); - - backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public UnaryCallable getCampaignGroupCallable() { - return getCampaignGroupCallable; - } - - public UnaryCallable - mutateCampaignGroupsCallable() { - return mutateCampaignGroupsCallable; - } - - @Override - public final void close() { - shutdown(); - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignServiceCallableFactory.java index 76df7471b3..f8cc12ba0e 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignServiceStub.java index b1dc7fe7f0..bd24445cfe 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignSharedSetServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignSharedSetServiceCallableFactory.java index 9b61353dca..45499b1e8b 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignSharedSetServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignSharedSetServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignSharedSetServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignSharedSetServiceStub.java index 43b465c8ef..9b36e0db07 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignSharedSetServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCampaignSharedSetServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCarrierConstantServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCarrierConstantServiceCallableFactory.java index 7bb1320147..db0918a447 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCarrierConstantServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCarrierConstantServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCarrierConstantServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCarrierConstantServiceStub.java index 51eeb8215f..9053c9b087 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCarrierConstantServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCarrierConstantServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcChangeStatusServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcChangeStatusServiceCallableFactory.java index 8c63f55a03..8371178969 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcChangeStatusServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcChangeStatusServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcChangeStatusServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcChangeStatusServiceStub.java index 9d8700911a..e22e549609 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcChangeStatusServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcChangeStatusServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcConversionActionServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcConversionActionServiceCallableFactory.java index 6a16af48eb..9b88a961eb 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcConversionActionServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcConversionActionServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcConversionActionServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcConversionActionServiceStub.java index 0b9bd791af..1e72f00e46 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcConversionActionServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcConversionActionServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerClientLinkServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerClientLinkServiceCallableFactory.java index 6887366e11..dd1fc7a172 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerClientLinkServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerClientLinkServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerClientLinkServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerClientLinkServiceStub.java index eb81ec46e0..c99a4eb367 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerClientLinkServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerClientLinkServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,6 +17,8 @@ import com.google.ads.googleads.v0.resources.CustomerClientLink; import com.google.ads.googleads.v0.services.GetCustomerClientLinkRequest; +import com.google.ads.googleads.v0.services.MutateCustomerClientLinkRequest; +import com.google.ads.googleads.v0.services.MutateCustomerClientLinkResponse; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -50,11 +52,26 @@ public class GrpcCustomerClientLinkServiceStub extends CustomerClientLinkService ProtoUtils.marshaller(GetCustomerClientLinkRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(CustomerClientLink.getDefaultInstance())) .build(); + private static final MethodDescriptor< + MutateCustomerClientLinkRequest, MutateCustomerClientLinkResponse> + mutateCustomerClientLinkMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.ads.googleads.v0.services.CustomerClientLinkService/MutateCustomerClientLink") + .setRequestMarshaller( + ProtoUtils.marshaller(MutateCustomerClientLinkRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(MutateCustomerClientLinkResponse.getDefaultInstance())) + .build(); private final BackgroundResource backgroundResources; private final UnaryCallable getCustomerClientLinkCallable; + private final UnaryCallable + mutateCustomerClientLinkCallable; private final GrpcStubCallableFactory callableFactory; @@ -103,12 +120,23 @@ protected GrpcCustomerClientLinkServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(getCustomerClientLinkMethodDescriptor) .build(); + GrpcCallSettings + mutateCustomerClientLinkTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(mutateCustomerClientLinkMethodDescriptor) + .build(); this.getCustomerClientLinkCallable = callableFactory.createUnaryCallable( getCustomerClientLinkTransportSettings, settings.getCustomerClientLinkSettings(), clientContext); + this.mutateCustomerClientLinkCallable = + callableFactory.createUnaryCallable( + mutateCustomerClientLinkTransportSettings, + settings.mutateCustomerClientLinkSettings(), + clientContext); backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } @@ -118,6 +146,11 @@ protected GrpcCustomerClientLinkServiceStub( return getCustomerClientLinkCallable; } + public UnaryCallable + mutateCustomerClientLinkCallable() { + return mutateCustomerClientLinkCallable; + } + @Override public final void close() { shutdown(); diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerClientServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerClientServiceCallableFactory.java index 676cd00d93..cc76e55fb9 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerClientServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerClientServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerClientServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerClientServiceStub.java index 73563c7473..33a3fe0d31 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerClientServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerClientServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerFeedServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerFeedServiceCallableFactory.java index 7e4846e946..cf9abffd40 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerFeedServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerFeedServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerFeedServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerFeedServiceStub.java index d2335205c5..f47fa46dac 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerFeedServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerFeedServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerManagerLinkServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerManagerLinkServiceCallableFactory.java index 837f5d88c7..799c7b0ddd 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerManagerLinkServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerManagerLinkServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerManagerLinkServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerManagerLinkServiceStub.java index 97e62586b1..72667a3e39 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerManagerLinkServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerManagerLinkServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,6 +17,8 @@ import com.google.ads.googleads.v0.resources.CustomerManagerLink; import com.google.ads.googleads.v0.services.GetCustomerManagerLinkRequest; +import com.google.ads.googleads.v0.services.MutateCustomerManagerLinkRequest; +import com.google.ads.googleads.v0.services.MutateCustomerManagerLinkResponse; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -51,11 +53,26 @@ public class GrpcCustomerManagerLinkServiceStub extends CustomerManagerLinkServi .setResponseMarshaller( ProtoUtils.marshaller(CustomerManagerLink.getDefaultInstance())) .build(); + private static final MethodDescriptor< + MutateCustomerManagerLinkRequest, MutateCustomerManagerLinkResponse> + mutateCustomerManagerLinkMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.ads.googleads.v0.services.CustomerManagerLinkService/MutateCustomerManagerLink") + .setRequestMarshaller( + ProtoUtils.marshaller(MutateCustomerManagerLinkRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(MutateCustomerManagerLinkResponse.getDefaultInstance())) + .build(); private final BackgroundResource backgroundResources; private final UnaryCallable getCustomerManagerLinkCallable; + private final UnaryCallable + mutateCustomerManagerLinkCallable; private final GrpcStubCallableFactory callableFactory; @@ -106,12 +123,23 @@ protected GrpcCustomerManagerLinkServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(getCustomerManagerLinkMethodDescriptor) .build(); + GrpcCallSettings + mutateCustomerManagerLinkTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(mutateCustomerManagerLinkMethodDescriptor) + .build(); this.getCustomerManagerLinkCallable = callableFactory.createUnaryCallable( getCustomerManagerLinkTransportSettings, settings.getCustomerManagerLinkSettings(), clientContext); + this.mutateCustomerManagerLinkCallable = + callableFactory.createUnaryCallable( + mutateCustomerManagerLinkTransportSettings, + settings.mutateCustomerManagerLinkSettings(), + clientContext); backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } @@ -121,6 +149,11 @@ protected GrpcCustomerManagerLinkServiceStub( return getCustomerManagerLinkCallable; } + public UnaryCallable + mutateCustomerManagerLinkCallable() { + return mutateCustomerManagerLinkCallable; + } + @Override public final void close() { shutdown(); diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerServiceCallableFactory.java index 5865970d86..63077348b3 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerServiceStub.java index ac9caf4e20..bdb9f6d504 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcCustomerServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcDisplayKeywordViewServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcDisplayKeywordViewServiceCallableFactory.java index 9f55ecef56..54111de45b 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcDisplayKeywordViewServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcDisplayKeywordViewServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcDisplayKeywordViewServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcDisplayKeywordViewServiceStub.java index b4adb91d9d..7786feee58 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcDisplayKeywordViewServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcDisplayKeywordViewServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcFeedItemServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcFeedItemServiceCallableFactory.java index 894bcc6197..47d7f38fca 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcFeedItemServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcFeedItemServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcFeedItemServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcFeedItemServiceStub.java index ced98e7ae4..0b2c9b6253 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcFeedItemServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcFeedItemServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcFeedMappingServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcFeedMappingServiceCallableFactory.java index 3baef9b4b1..dc9e3bd27c 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcFeedMappingServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcFeedMappingServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcFeedMappingServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcFeedMappingServiceStub.java index bc1920a47d..fb3bc72963 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcFeedMappingServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcFeedMappingServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcFeedServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcFeedServiceCallableFactory.java index 8c360b2ca5..9aee3b6470 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcFeedServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcFeedServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcFeedServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcFeedServiceStub.java index 59ed6c5f31..80c3691373 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcFeedServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcFeedServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcGenderViewServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcGenderViewServiceCallableFactory.java index 1b1bf502b9..4e9078cf27 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcGenderViewServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcGenderViewServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcGenderViewServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcGenderViewServiceStub.java index aa8cef5984..8aaa432784 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcGenderViewServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcGenderViewServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcGeoTargetConstantServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcGeoTargetConstantServiceCallableFactory.java index 7fd9c5a150..69b612542f 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcGeoTargetConstantServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcGeoTargetConstantServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcGeoTargetConstantServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcGeoTargetConstantServiceStub.java index a5a8380eeb..939646b47f 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcGeoTargetConstantServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcGeoTargetConstantServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcGoogleAdsFieldServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcGoogleAdsFieldServiceCallableFactory.java index 2a6b938348..138004d7ed 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcGoogleAdsFieldServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcGoogleAdsFieldServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcGoogleAdsFieldServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcGoogleAdsFieldServiceStub.java index 4d3254c8d7..16efb1fd01 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcGoogleAdsFieldServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcGoogleAdsFieldServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcGoogleAdsServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcGoogleAdsServiceCallableFactory.java index bd658ace61..3d161a3ca6 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcGoogleAdsServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcGoogleAdsServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcGoogleAdsServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcGoogleAdsServiceStub.java index 8f8b2b802d..f8e82a4e55 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcGoogleAdsServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcGoogleAdsServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcHotelGroupViewServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcHotelGroupViewServiceCallableFactory.java index d5c89e901d..13e0f83569 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcHotelGroupViewServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcHotelGroupViewServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcHotelGroupViewServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcHotelGroupViewServiceStub.java index 0307b0d633..a189bb6575 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcHotelGroupViewServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcHotelGroupViewServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcHotelPerformanceViewServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcHotelPerformanceViewServiceCallableFactory.java index 60218f65af..fab4e82430 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcHotelPerformanceViewServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcHotelPerformanceViewServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcHotelPerformanceViewServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcHotelPerformanceViewServiceStub.java index f0b48afb5f..b1050e5b43 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcHotelPerformanceViewServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcHotelPerformanceViewServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanAdGroupServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanAdGroupServiceCallableFactory.java index f59221da6e..5594c2c815 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanAdGroupServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanAdGroupServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanAdGroupServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanAdGroupServiceStub.java index 3769dd2a30..395ed01924 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanAdGroupServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanAdGroupServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanCampaignServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanCampaignServiceCallableFactory.java index 76bbf39814..b5ddb2452d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanCampaignServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanCampaignServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanCampaignServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanCampaignServiceStub.java index 91ee2db1b9..3c90118ebf 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanCampaignServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanCampaignServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanIdeaServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanIdeaServiceCallableFactory.java index c514f8b9ad..ba98bec705 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanIdeaServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanIdeaServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanIdeaServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanIdeaServiceStub.java index 3c90643d08..593626d63e 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanIdeaServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanIdeaServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanKeywordServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanKeywordServiceCallableFactory.java index 484de89a81..f297c993a2 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanKeywordServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanKeywordServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanKeywordServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanKeywordServiceStub.java index 047d00b24c..93a103da1f 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanKeywordServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanKeywordServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanNegativeKeywordServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanNegativeKeywordServiceCallableFactory.java index 03d62f4699..e59e181ea0 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanNegativeKeywordServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanNegativeKeywordServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanNegativeKeywordServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanNegativeKeywordServiceStub.java index 2d9cec1225..b1d543f915 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanNegativeKeywordServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanNegativeKeywordServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanServiceCallableFactory.java index f5c7e26ad5..e310f64d9e 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanServiceStub.java index 9fd649c5ca..b6f9deb072 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordPlanServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordViewServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordViewServiceCallableFactory.java index fc33f4fd71..8ad58af554 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordViewServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordViewServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordViewServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordViewServiceStub.java index 7b3c77aa00..14b0e22693 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordViewServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcKeywordViewServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcLanguageConstantServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcLanguageConstantServiceCallableFactory.java index 871c7d308e..e96cf0206e 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcLanguageConstantServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcLanguageConstantServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcLanguageConstantServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcLanguageConstantServiceStub.java index 4a7c98b16d..fe1d3e1e5a 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcLanguageConstantServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcLanguageConstantServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcManagedPlacementViewServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcManagedPlacementViewServiceCallableFactory.java index b526373555..7d2273fd91 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcManagedPlacementViewServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcManagedPlacementViewServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcManagedPlacementViewServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcManagedPlacementViewServiceStub.java index 4270fb705d..93015a324e 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcManagedPlacementViewServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcManagedPlacementViewServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcMediaFileServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcMediaFileServiceCallableFactory.java index 7882a047ad..dbaf8f6ec0 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcMediaFileServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcMediaFileServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcMediaFileServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcMediaFileServiceStub.java index 30f2bc8404..a45b4c4844 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcMediaFileServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcMediaFileServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcMobileAppCategoryConstantServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcMobileAppCategoryConstantServiceCallableFactory.java new file mode 100644 index 0000000000..6dee550f2d --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcMobileAppCategoryConstantServiceCallableFactory.java @@ -0,0 +1,46 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC callable factory implementation for Google Ads API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator") +@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") +public class GrpcMobileAppCategoryConstantServiceCallableFactory extends GrpcGoogleAdsCallableFactory {} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcMobileAppCategoryConstantServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcMobileAppCategoryConstantServiceStub.java new file mode 100644 index 0000000000..69a217b656 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcMobileAppCategoryConstantServiceStub.java @@ -0,0 +1,156 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services.stub; + +import com.google.ads.googleads.v0.resources.MobileAppCategoryConstant; +import com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC stub implementation for Google Ads API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public class GrpcMobileAppCategoryConstantServiceStub extends MobileAppCategoryConstantServiceStub { + + private static final MethodDescriptor< + GetMobileAppCategoryConstantRequest, MobileAppCategoryConstant> + getMobileAppCategoryConstantMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.ads.googleads.v0.services.MobileAppCategoryConstantService/GetMobileAppCategoryConstant") + .setRequestMarshaller( + ProtoUtils.marshaller(GetMobileAppCategoryConstantRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(MobileAppCategoryConstant.getDefaultInstance())) + .build(); + + private final BackgroundResource backgroundResources; + + private final UnaryCallable + getMobileAppCategoryConstantCallable; + + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcMobileAppCategoryConstantServiceStub create( + MobileAppCategoryConstantServiceStubSettings settings) throws IOException { + return new GrpcMobileAppCategoryConstantServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcMobileAppCategoryConstantServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcMobileAppCategoryConstantServiceStub( + MobileAppCategoryConstantServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcMobileAppCategoryConstantServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcMobileAppCategoryConstantServiceStub( + MobileAppCategoryConstantServiceStubSettings.newBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of GrpcMobileAppCategoryConstantServiceStub, using the given settings. + * This is protected so that it is easy to make a subclass, but otherwise, the static factory + * methods should be preferred. + */ + protected GrpcMobileAppCategoryConstantServiceStub( + MobileAppCategoryConstantServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcMobileAppCategoryConstantServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcMobileAppCategoryConstantServiceStub, using the given settings. + * This is protected so that it is easy to make a subclass, but otherwise, the static factory + * methods should be preferred. + */ + protected GrpcMobileAppCategoryConstantServiceStub( + MobileAppCategoryConstantServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + GrpcCallSettings + getMobileAppCategoryConstantTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(getMobileAppCategoryConstantMethodDescriptor) + .build(); + + this.getMobileAppCategoryConstantCallable = + callableFactory.createUnaryCallable( + getMobileAppCategoryConstantTransportSettings, + settings.getMobileAppCategoryConstantSettings(), + clientContext); + + backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public UnaryCallable + getMobileAppCategoryConstantCallable() { + return getMobileAppCategoryConstantCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcMobileDeviceConstantServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcMobileDeviceConstantServiceCallableFactory.java new file mode 100644 index 0000000000..8869716c9b --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcMobileDeviceConstantServiceCallableFactory.java @@ -0,0 +1,46 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC callable factory implementation for Google Ads API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator") +@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") +public class GrpcMobileDeviceConstantServiceCallableFactory extends GrpcGoogleAdsCallableFactory {} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcMobileDeviceConstantServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcMobileDeviceConstantServiceStub.java new file mode 100644 index 0000000000..2d273881b3 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcMobileDeviceConstantServiceStub.java @@ -0,0 +1,153 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services.stub; + +import com.google.ads.googleads.v0.resources.MobileDeviceConstant; +import com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC stub implementation for Google Ads API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public class GrpcMobileDeviceConstantServiceStub extends MobileDeviceConstantServiceStub { + + private static final MethodDescriptor + getMobileDeviceConstantMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.ads.googleads.v0.services.MobileDeviceConstantService/GetMobileDeviceConstant") + .setRequestMarshaller( + ProtoUtils.marshaller(GetMobileDeviceConstantRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(MobileDeviceConstant.getDefaultInstance())) + .build(); + + private final BackgroundResource backgroundResources; + + private final UnaryCallable + getMobileDeviceConstantCallable; + + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcMobileDeviceConstantServiceStub create( + MobileDeviceConstantServiceStubSettings settings) throws IOException { + return new GrpcMobileDeviceConstantServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcMobileDeviceConstantServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcMobileDeviceConstantServiceStub( + MobileDeviceConstantServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcMobileDeviceConstantServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcMobileDeviceConstantServiceStub( + MobileDeviceConstantServiceStubSettings.newBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of GrpcMobileDeviceConstantServiceStub, using the given settings. This + * is protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcMobileDeviceConstantServiceStub( + MobileDeviceConstantServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcMobileDeviceConstantServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcMobileDeviceConstantServiceStub, using the given settings. This + * is protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcMobileDeviceConstantServiceStub( + MobileDeviceConstantServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + GrpcCallSettings + getMobileDeviceConstantTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getMobileDeviceConstantMethodDescriptor) + .build(); + + this.getMobileDeviceConstantCallable = + callableFactory.createUnaryCallable( + getMobileDeviceConstantTransportSettings, + settings.getMobileDeviceConstantSettings(), + clientContext); + + backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public UnaryCallable + getMobileDeviceConstantCallable() { + return getMobileDeviceConstantCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcOperatingSystemVersionConstantServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcOperatingSystemVersionConstantServiceCallableFactory.java new file mode 100644 index 0000000000..df5d1400a0 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcOperatingSystemVersionConstantServiceCallableFactory.java @@ -0,0 +1,46 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC callable factory implementation for Google Ads API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator") +@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") +public class GrpcOperatingSystemVersionConstantServiceCallableFactory extends GrpcGoogleAdsCallableFactory {} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcOperatingSystemVersionConstantServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcOperatingSystemVersionConstantServiceStub.java new file mode 100644 index 0000000000..3349fe3ab9 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcOperatingSystemVersionConstantServiceStub.java @@ -0,0 +1,162 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services.stub; + +import com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant; +import com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC stub implementation for Google Ads API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public class GrpcOperatingSystemVersionConstantServiceStub + extends OperatingSystemVersionConstantServiceStub { + + private static final MethodDescriptor< + GetOperatingSystemVersionConstantRequest, OperatingSystemVersionConstant> + getOperatingSystemVersionConstantMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.ads.googleads.v0.services.OperatingSystemVersionConstantService/GetOperatingSystemVersionConstant") + .setRequestMarshaller( + ProtoUtils.marshaller( + GetOperatingSystemVersionConstantRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(OperatingSystemVersionConstant.getDefaultInstance())) + .build(); + + private final BackgroundResource backgroundResources; + + private final UnaryCallable< + GetOperatingSystemVersionConstantRequest, OperatingSystemVersionConstant> + getOperatingSystemVersionConstantCallable; + + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcOperatingSystemVersionConstantServiceStub create( + OperatingSystemVersionConstantServiceStubSettings settings) throws IOException { + return new GrpcOperatingSystemVersionConstantServiceStub( + settings, ClientContext.create(settings)); + } + + public static final GrpcOperatingSystemVersionConstantServiceStub create( + ClientContext clientContext) throws IOException { + return new GrpcOperatingSystemVersionConstantServiceStub( + OperatingSystemVersionConstantServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcOperatingSystemVersionConstantServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcOperatingSystemVersionConstantServiceStub( + OperatingSystemVersionConstantServiceStubSettings.newBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of GrpcOperatingSystemVersionConstantServiceStub, using the given + * settings. This is protected so that it is easy to make a subclass, but otherwise, the static + * factory methods should be preferred. + */ + protected GrpcOperatingSystemVersionConstantServiceStub( + OperatingSystemVersionConstantServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcOperatingSystemVersionConstantServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcOperatingSystemVersionConstantServiceStub, using the given + * settings. This is protected so that it is easy to make a subclass, but otherwise, the static + * factory methods should be preferred. + */ + protected GrpcOperatingSystemVersionConstantServiceStub( + OperatingSystemVersionConstantServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + GrpcCallSettings + getOperatingSystemVersionConstantTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(getOperatingSystemVersionConstantMethodDescriptor) + .build(); + + this.getOperatingSystemVersionConstantCallable = + callableFactory.createUnaryCallable( + getOperatingSystemVersionConstantTransportSettings, + settings.getOperatingSystemVersionConstantSettings(), + clientContext); + + backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public UnaryCallable + getOperatingSystemVersionConstantCallable() { + return getOperatingSystemVersionConstantCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcParentalStatusViewServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcParentalStatusViewServiceCallableFactory.java index 1e28d283c8..fb46616dce 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcParentalStatusViewServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcParentalStatusViewServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcParentalStatusViewServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcParentalStatusViewServiceStub.java index 1efc2af3fe..8fb98d7f44 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcParentalStatusViewServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcParentalStatusViewServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcPaymentsAccountServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcPaymentsAccountServiceCallableFactory.java index 1736b27a30..e8750fab5d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcPaymentsAccountServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcPaymentsAccountServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcPaymentsAccountServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcPaymentsAccountServiceStub.java index 380f9b171d..cfa5ba09d8 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcPaymentsAccountServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcPaymentsAccountServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcProductGroupViewServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcProductGroupViewServiceCallableFactory.java index d833d2a51f..33fb746ffe 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcProductGroupViewServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcProductGroupViewServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcProductGroupViewServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcProductGroupViewServiceStub.java index 2c3ba8383e..5e01c733f9 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcProductGroupViewServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcProductGroupViewServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcRecommendationServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcRecommendationServiceCallableFactory.java index 5a7a53edd6..ba000707be 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcRecommendationServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcRecommendationServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcRecommendationServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcRecommendationServiceStub.java index 35068a9b84..86921d707d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcRecommendationServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcRecommendationServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcRemarketingActionServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcRemarketingActionServiceCallableFactory.java new file mode 100644 index 0000000000..f8c2aeb3ae --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcRemarketingActionServiceCallableFactory.java @@ -0,0 +1,46 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC callable factory implementation for Google Ads API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator") +@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") +public class GrpcRemarketingActionServiceCallableFactory extends GrpcGoogleAdsCallableFactory {} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcRemarketingActionServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcRemarketingActionServiceStub.java new file mode 100644 index 0000000000..7f19b1ba3c --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcRemarketingActionServiceStub.java @@ -0,0 +1,183 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services.stub; + +import com.google.ads.googleads.v0.resources.RemarketingAction; +import com.google.ads.googleads.v0.services.GetRemarketingActionRequest; +import com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest; +import com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC stub implementation for Google Ads API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public class GrpcRemarketingActionServiceStub extends RemarketingActionServiceStub { + + private static final MethodDescriptor + getRemarketingActionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.ads.googleads.v0.services.RemarketingActionService/GetRemarketingAction") + .setRequestMarshaller( + ProtoUtils.marshaller(GetRemarketingActionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(RemarketingAction.getDefaultInstance())) + .build(); + private static final MethodDescriptor< + MutateRemarketingActionsRequest, MutateRemarketingActionsResponse> + mutateRemarketingActionsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.ads.googleads.v0.services.RemarketingActionService/MutateRemarketingActions") + .setRequestMarshaller( + ProtoUtils.marshaller(MutateRemarketingActionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(MutateRemarketingActionsResponse.getDefaultInstance())) + .build(); + + private final BackgroundResource backgroundResources; + + private final UnaryCallable + getRemarketingActionCallable; + private final UnaryCallable + mutateRemarketingActionsCallable; + + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcRemarketingActionServiceStub create( + RemarketingActionServiceStubSettings settings) throws IOException { + return new GrpcRemarketingActionServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcRemarketingActionServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcRemarketingActionServiceStub( + RemarketingActionServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcRemarketingActionServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcRemarketingActionServiceStub( + RemarketingActionServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcRemarketingActionServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcRemarketingActionServiceStub( + RemarketingActionServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcRemarketingActionServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcRemarketingActionServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcRemarketingActionServiceStub( + RemarketingActionServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + GrpcCallSettings + getRemarketingActionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getRemarketingActionMethodDescriptor) + .build(); + GrpcCallSettings + mutateRemarketingActionsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(mutateRemarketingActionsMethodDescriptor) + .build(); + + this.getRemarketingActionCallable = + callableFactory.createUnaryCallable( + getRemarketingActionTransportSettings, + settings.getRemarketingActionSettings(), + clientContext); + this.mutateRemarketingActionsCallable = + callableFactory.createUnaryCallable( + mutateRemarketingActionsTransportSettings, + settings.mutateRemarketingActionsSettings(), + clientContext); + + backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public UnaryCallable + getRemarketingActionCallable() { + return getRemarketingActionCallable; + } + + public UnaryCallable + mutateRemarketingActionsCallable() { + return mutateRemarketingActionsCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcSearchTermViewServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcSearchTermViewServiceCallableFactory.java index 3b77736850..d096f5a7e0 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcSearchTermViewServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcSearchTermViewServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcSearchTermViewServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcSearchTermViewServiceStub.java index 9e0b259aea..bde85f4b92 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcSearchTermViewServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcSearchTermViewServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcSharedCriterionServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcSharedCriterionServiceCallableFactory.java index 4eb991cdb8..772e767845 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcSharedCriterionServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcSharedCriterionServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcSharedCriterionServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcSharedCriterionServiceStub.java index 6ded1a44ae..ea50f7782c 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcSharedCriterionServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcSharedCriterionServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcSharedSetServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcSharedSetServiceCallableFactory.java index d2e7a29aeb..3556b1b255 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcSharedSetServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcSharedSetServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcSharedSetServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcSharedSetServiceStub.java index 0b4a013c80..05155e4eb8 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcSharedSetServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcSharedSetServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcTopicConstantServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcTopicConstantServiceCallableFactory.java index d7affebea8..93173661d2 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcTopicConstantServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcTopicConstantServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcTopicConstantServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcTopicConstantServiceStub.java index be45c9295c..c439755905 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcTopicConstantServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcTopicConstantServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcTopicViewServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcTopicViewServiceCallableFactory.java index 378334059e..17d8094ac8 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcTopicViewServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcTopicViewServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcTopicViewServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcTopicViewServiceStub.java index 04275c15e5..42a950e03a 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcTopicViewServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcTopicViewServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcUserInterestServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcUserInterestServiceCallableFactory.java index f522e7abf5..6040a01196 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcUserInterestServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcUserInterestServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcUserInterestServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcUserInterestServiceStub.java index b8d9d2f863..d1fc5d835e 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcUserInterestServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcUserInterestServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcUserListServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcUserListServiceCallableFactory.java index e92a511edc..efbf168843 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcUserListServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcUserListServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcUserListServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcUserListServiceStub.java index 246d33cada..44725e5f71 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcUserListServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcUserListServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcVideoServiceCallableFactory.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcVideoServiceCallableFactory.java index a70eca8e11..2665fc9015 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcVideoServiceCallableFactory.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcVideoServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcVideoServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcVideoServiceStub.java index ad4e8fc6c8..32faf2c283 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcVideoServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/GrpcVideoServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/HotelGroupViewServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/HotelGroupViewServiceStub.java index 814f06c555..9fab951567 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/HotelGroupViewServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/HotelGroupViewServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/HotelGroupViewServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/HotelGroupViewServiceStubSettings.java index f8e542969f..b903a01114 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/HotelGroupViewServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/HotelGroupViewServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/HotelPerformanceViewServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/HotelPerformanceViewServiceStub.java index 02ae7536ac..b7b477cb13 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/HotelPerformanceViewServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/HotelPerformanceViewServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/HotelPerformanceViewServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/HotelPerformanceViewServiceStubSettings.java index 948df9e2dc..0f2f95507c 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/HotelPerformanceViewServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/HotelPerformanceViewServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanAdGroupServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanAdGroupServiceStub.java index 763bc8e76d..7d9b9aaf0e 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanAdGroupServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanAdGroupServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanAdGroupServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanAdGroupServiceStubSettings.java index 97ff73aea9..a1c0222e1e 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanAdGroupServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanAdGroupServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanCampaignServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanCampaignServiceStub.java index dd0ff7e409..0194117677 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanCampaignServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanCampaignServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanCampaignServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanCampaignServiceStubSettings.java index 172bf21cc6..54806279ef 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanCampaignServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanCampaignServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanIdeaServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanIdeaServiceStub.java index 204c00eb27..2629bc11bb 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanIdeaServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanIdeaServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanIdeaServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanIdeaServiceStubSettings.java index adc192027f..b2ceaad301 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanIdeaServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanIdeaServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanKeywordServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanKeywordServiceStub.java index c9b484a537..45b8165c3e 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanKeywordServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanKeywordServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanKeywordServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanKeywordServiceStubSettings.java index b8f4687328..04d5e2ded2 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanKeywordServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanKeywordServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanNegativeKeywordServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanNegativeKeywordServiceStub.java index a1d8ba30ae..88330bd094 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanNegativeKeywordServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanNegativeKeywordServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanNegativeKeywordServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanNegativeKeywordServiceStubSettings.java index aa71e1ea63..f734fc256e 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanNegativeKeywordServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanNegativeKeywordServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanServiceStub.java index a34c9a2924..f3eb326845 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanServiceStubSettings.java index 0cf61c010e..b5344a002d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordPlanServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordViewServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordViewServiceStub.java index e6e50e2d9f..a658045fb0 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordViewServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordViewServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordViewServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordViewServiceStubSettings.java index 6b9d59068e..60385b4b67 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordViewServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/KeywordViewServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/LanguageConstantServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/LanguageConstantServiceStub.java index d07b44be03..85578da0de 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/LanguageConstantServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/LanguageConstantServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/LanguageConstantServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/LanguageConstantServiceStubSettings.java index 8e65aa44a2..e94776220d 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/LanguageConstantServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/LanguageConstantServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ManagedPlacementViewServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ManagedPlacementViewServiceStub.java index d40cefd411..d22b9aec32 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ManagedPlacementViewServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ManagedPlacementViewServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ManagedPlacementViewServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ManagedPlacementViewServiceStubSettings.java index 94a1c7ea7a..d791909df8 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ManagedPlacementViewServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ManagedPlacementViewServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/MediaFileServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/MediaFileServiceStub.java index 425916825c..3260f1daae 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/MediaFileServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/MediaFileServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/MediaFileServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/MediaFileServiceStubSettings.java index cd774e38a9..60366d39fb 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/MediaFileServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/MediaFileServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/MobileAppCategoryConstantServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/MobileAppCategoryConstantServiceStub.java new file mode 100644 index 0000000000..e56607ef9b --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/MobileAppCategoryConstantServiceStub.java @@ -0,0 +1,43 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services.stub; + +import com.google.ads.googleads.v0.resources.MobileAppCategoryConstant; +import com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Base stub class for Google Ads API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public abstract class MobileAppCategoryConstantServiceStub implements BackgroundResource { + + public UnaryCallable + getMobileAppCategoryConstantCallable() { + throw new UnsupportedOperationException( + "Not implemented: getMobileAppCategoryConstantCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/MobileAppCategoryConstantServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/MobileAppCategoryConstantServiceStubSettings.java new file mode 100644 index 0000000000..776944c998 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/MobileAppCategoryConstantServiceStubSettings.java @@ -0,0 +1,275 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services.stub; + +import com.google.ads.googleads.v0.resources.MobileAppCategoryConstant; +import com.google.ads.googleads.v0.services.GetMobileAppCategoryConstantRequest; +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link MobileAppCategoryConstantServiceStub}. + * + *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of getMobileAppCategoryConstant to 30 seconds: + * + *

+ * 
+ * MobileAppCategoryConstantServiceStubSettings.Builder mobileAppCategoryConstantServiceSettingsBuilder =
+ *     MobileAppCategoryConstantServiceStubSettings.newBuilder();
+ * mobileAppCategoryConstantServiceSettingsBuilder.getMobileAppCategoryConstantSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * MobileAppCategoryConstantServiceStubSettings mobileAppCategoryConstantServiceSettings = mobileAppCategoryConstantServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class MobileAppCategoryConstantServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().build(); + + private final UnaryCallSettings + getMobileAppCategoryConstantSettings; + + /** Returns the object with the settings used for calls to getMobileAppCategoryConstant. */ + public UnaryCallSettings + getMobileAppCategoryConstantSettings() { + return getMobileAppCategoryConstantSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public MobileAppCategoryConstantServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcMobileAppCategoryConstantServiceStub.create(this); + } else { + throw new UnsupportedOperationException( + "Transport not supported: " + getTransportChannelProvider().getTransportName()); + } + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "googleads.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", + GaxProperties.getLibraryVersion(MobileAppCategoryConstantServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected MobileAppCategoryConstantServiceStubSettings(Builder settingsBuilder) + throws IOException { + super(settingsBuilder); + + getMobileAppCategoryConstantSettings = + settingsBuilder.getMobileAppCategoryConstantSettings().build(); + } + + /** Builder for MobileAppCategoryConstantServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + + private final UnaryCallSettings.Builder< + GetMobileAppCategoryConstantRequest, MobileAppCategoryConstant> + getMobileAppCategoryConstantSettings; + + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "idempotent", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(20000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(20000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("default", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getMobileAppCategoryConstantSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(getMobileAppCategoryConstantSettings); + + initDefaults(this); + } + + private static Builder createDefault() { + Builder builder = new Builder((ClientContext) null); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + + builder + .getMobileAppCategoryConstantSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + return builder; + } + + protected Builder(MobileAppCategoryConstantServiceStubSettings settings) { + super(settings); + + getMobileAppCategoryConstantSettings = + settings.getMobileAppCategoryConstantSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(getMobileAppCategoryConstantSettings); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getMobileAppCategoryConstant. */ + public UnaryCallSettings.Builder + getMobileAppCategoryConstantSettings() { + return getMobileAppCategoryConstantSettings; + } + + @Override + public MobileAppCategoryConstantServiceStubSettings build() throws IOException { + return new MobileAppCategoryConstantServiceStubSettings(this); + } + } +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/MobileDeviceConstantServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/MobileDeviceConstantServiceStub.java new file mode 100644 index 0000000000..40e7704bf5 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/MobileDeviceConstantServiceStub.java @@ -0,0 +1,42 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services.stub; + +import com.google.ads.googleads.v0.resources.MobileDeviceConstant; +import com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Base stub class for Google Ads API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public abstract class MobileDeviceConstantServiceStub implements BackgroundResource { + + public UnaryCallable + getMobileDeviceConstantCallable() { + throw new UnsupportedOperationException("Not implemented: getMobileDeviceConstantCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/MobileDeviceConstantServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/MobileDeviceConstantServiceStubSettings.java new file mode 100644 index 0000000000..0739d9a7c0 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/MobileDeviceConstantServiceStubSettings.java @@ -0,0 +1,270 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services.stub; + +import com.google.ads.googleads.v0.resources.MobileDeviceConstant; +import com.google.ads.googleads.v0.services.GetMobileDeviceConstantRequest; +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link MobileDeviceConstantServiceStub}. + * + *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of getMobileDeviceConstant to 30 seconds: + * + *

+ * 
+ * MobileDeviceConstantServiceStubSettings.Builder mobileDeviceConstantServiceSettingsBuilder =
+ *     MobileDeviceConstantServiceStubSettings.newBuilder();
+ * mobileDeviceConstantServiceSettingsBuilder.getMobileDeviceConstantSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * MobileDeviceConstantServiceStubSettings mobileDeviceConstantServiceSettings = mobileDeviceConstantServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class MobileDeviceConstantServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().build(); + + private final UnaryCallSettings + getMobileDeviceConstantSettings; + + /** Returns the object with the settings used for calls to getMobileDeviceConstant. */ + public UnaryCallSettings + getMobileDeviceConstantSettings() { + return getMobileDeviceConstantSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public MobileDeviceConstantServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcMobileDeviceConstantServiceStub.create(this); + } else { + throw new UnsupportedOperationException( + "Transport not supported: " + getTransportChannelProvider().getTransportName()); + } + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "googleads.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(MobileDeviceConstantServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected MobileDeviceConstantServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getMobileDeviceConstantSettings = settingsBuilder.getMobileDeviceConstantSettings().build(); + } + + /** Builder for MobileDeviceConstantServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + + private final UnaryCallSettings.Builder + getMobileDeviceConstantSettings; + + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "idempotent", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(20000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(20000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("default", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getMobileDeviceConstantSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(getMobileDeviceConstantSettings); + + initDefaults(this); + } + + private static Builder createDefault() { + Builder builder = new Builder((ClientContext) null); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + + builder + .getMobileDeviceConstantSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + return builder; + } + + protected Builder(MobileDeviceConstantServiceStubSettings settings) { + super(settings); + + getMobileDeviceConstantSettings = settings.getMobileDeviceConstantSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(getMobileDeviceConstantSettings); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getMobileDeviceConstant. */ + public UnaryCallSettings.Builder + getMobileDeviceConstantSettings() { + return getMobileDeviceConstantSettings; + } + + @Override + public MobileDeviceConstantServiceStubSettings build() throws IOException { + return new MobileDeviceConstantServiceStubSettings(this); + } + } +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/OperatingSystemVersionConstantServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/OperatingSystemVersionConstantServiceStub.java new file mode 100644 index 0000000000..79b2093018 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/OperatingSystemVersionConstantServiceStub.java @@ -0,0 +1,43 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services.stub; + +import com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant; +import com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Base stub class for Google Ads API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public abstract class OperatingSystemVersionConstantServiceStub implements BackgroundResource { + + public UnaryCallable + getOperatingSystemVersionConstantCallable() { + throw new UnsupportedOperationException( + "Not implemented: getOperatingSystemVersionConstantCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/OperatingSystemVersionConstantServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/OperatingSystemVersionConstantServiceStubSettings.java new file mode 100644 index 0000000000..a069c56606 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/OperatingSystemVersionConstantServiceStubSettings.java @@ -0,0 +1,280 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services.stub; + +import com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant; +import com.google.ads.googleads.v0.services.GetOperatingSystemVersionConstantRequest; +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link OperatingSystemVersionConstantServiceStub}. + * + *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of getOperatingSystemVersionConstant to 30 seconds: + * + *

+ * 
+ * OperatingSystemVersionConstantServiceStubSettings.Builder operatingSystemVersionConstantServiceSettingsBuilder =
+ *     OperatingSystemVersionConstantServiceStubSettings.newBuilder();
+ * operatingSystemVersionConstantServiceSettingsBuilder.getOperatingSystemVersionConstantSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * OperatingSystemVersionConstantServiceStubSettings operatingSystemVersionConstantServiceSettings = operatingSystemVersionConstantServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class OperatingSystemVersionConstantServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().build(); + + private final UnaryCallSettings< + GetOperatingSystemVersionConstantRequest, OperatingSystemVersionConstant> + getOperatingSystemVersionConstantSettings; + + /** Returns the object with the settings used for calls to getOperatingSystemVersionConstant. */ + public UnaryCallSettings + getOperatingSystemVersionConstantSettings() { + return getOperatingSystemVersionConstantSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public OperatingSystemVersionConstantServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcOperatingSystemVersionConstantServiceStub.create(this); + } else { + throw new UnsupportedOperationException( + "Transport not supported: " + getTransportChannelProvider().getTransportName()); + } + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "googleads.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", + GaxProperties.getLibraryVersion( + OperatingSystemVersionConstantServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected OperatingSystemVersionConstantServiceStubSettings(Builder settingsBuilder) + throws IOException { + super(settingsBuilder); + + getOperatingSystemVersionConstantSettings = + settingsBuilder.getOperatingSystemVersionConstantSettings().build(); + } + + /** Builder for OperatingSystemVersionConstantServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + + private final UnaryCallSettings.Builder< + GetOperatingSystemVersionConstantRequest, OperatingSystemVersionConstant> + getOperatingSystemVersionConstantSettings; + + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "idempotent", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(20000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(20000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("default", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getOperatingSystemVersionConstantSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getOperatingSystemVersionConstantSettings); + + initDefaults(this); + } + + private static Builder createDefault() { + Builder builder = new Builder((ClientContext) null); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + + builder + .getOperatingSystemVersionConstantSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + return builder; + } + + protected Builder(OperatingSystemVersionConstantServiceStubSettings settings) { + super(settings); + + getOperatingSystemVersionConstantSettings = + settings.getOperatingSystemVersionConstantSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getOperatingSystemVersionConstantSettings); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getOperatingSystemVersionConstant. */ + public UnaryCallSettings.Builder< + GetOperatingSystemVersionConstantRequest, OperatingSystemVersionConstant> + getOperatingSystemVersionConstantSettings() { + return getOperatingSystemVersionConstantSettings; + } + + @Override + public OperatingSystemVersionConstantServiceStubSettings build() throws IOException { + return new OperatingSystemVersionConstantServiceStubSettings(this); + } + } +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ParentalStatusViewServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ParentalStatusViewServiceStub.java index 126e0720b2..fb894ef979 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ParentalStatusViewServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ParentalStatusViewServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ParentalStatusViewServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ParentalStatusViewServiceStubSettings.java index 6e9085bd16..35be005851 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ParentalStatusViewServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ParentalStatusViewServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/PaymentsAccountServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/PaymentsAccountServiceStub.java index bb3b1fc9be..1a8c340bc2 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/PaymentsAccountServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/PaymentsAccountServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/PaymentsAccountServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/PaymentsAccountServiceStubSettings.java index e67a0ba3af..21a4607fad 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/PaymentsAccountServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/PaymentsAccountServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ProductGroupViewServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ProductGroupViewServiceStub.java index 1c4ff8d8ed..2d920062c7 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ProductGroupViewServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ProductGroupViewServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ProductGroupViewServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ProductGroupViewServiceStubSettings.java index 5669b0bb00..ae4e39a4a4 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ProductGroupViewServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/ProductGroupViewServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/RecommendationServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/RecommendationServiceStub.java index 7604a713da..0353b81678 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/RecommendationServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/RecommendationServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/RecommendationServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/RecommendationServiceStubSettings.java index 1a89f40095..70a4ecd30f 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/RecommendationServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/RecommendationServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/RemarketingActionServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/RemarketingActionServiceStub.java new file mode 100644 index 0000000000..b25d6b62b4 --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/RemarketingActionServiceStub.java @@ -0,0 +1,49 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services.stub; + +import com.google.ads.googleads.v0.resources.RemarketingAction; +import com.google.ads.googleads.v0.services.GetRemarketingActionRequest; +import com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest; +import com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Base stub class for Google Ads API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public abstract class RemarketingActionServiceStub implements BackgroundResource { + + public UnaryCallable + getRemarketingActionCallable() { + throw new UnsupportedOperationException("Not implemented: getRemarketingActionCallable()"); + } + + public UnaryCallable + mutateRemarketingActionsCallable() { + throw new UnsupportedOperationException("Not implemented: mutateRemarketingActionsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/RemarketingActionServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/RemarketingActionServiceStubSettings.java new file mode 100644 index 0000000000..ef065202eb --- /dev/null +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/RemarketingActionServiceStubSettings.java @@ -0,0 +1,301 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services.stub; + +import com.google.ads.googleads.v0.resources.RemarketingAction; +import com.google.ads.googleads.v0.services.GetRemarketingActionRequest; +import com.google.ads.googleads.v0.services.MutateRemarketingActionsRequest; +import com.google.ads.googleads.v0.services.MutateRemarketingActionsResponse; +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link RemarketingActionServiceStub}. + * + *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of getRemarketingAction to 30 seconds: + * + *

+ * 
+ * RemarketingActionServiceStubSettings.Builder remarketingActionServiceSettingsBuilder =
+ *     RemarketingActionServiceStubSettings.newBuilder();
+ * remarketingActionServiceSettingsBuilder.getRemarketingActionSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * RemarketingActionServiceStubSettings remarketingActionServiceSettings = remarketingActionServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class RemarketingActionServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().build(); + + private final UnaryCallSettings + getRemarketingActionSettings; + private final UnaryCallSettings + mutateRemarketingActionsSettings; + + /** Returns the object with the settings used for calls to getRemarketingAction. */ + public UnaryCallSettings + getRemarketingActionSettings() { + return getRemarketingActionSettings; + } + + /** Returns the object with the settings used for calls to mutateRemarketingActions. */ + public UnaryCallSettings + mutateRemarketingActionsSettings() { + return mutateRemarketingActionsSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public RemarketingActionServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcRemarketingActionServiceStub.create(this); + } else { + throw new UnsupportedOperationException( + "Transport not supported: " + getTransportChannelProvider().getTransportName()); + } + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "googleads.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(RemarketingActionServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected RemarketingActionServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getRemarketingActionSettings = settingsBuilder.getRemarketingActionSettings().build(); + mutateRemarketingActionsSettings = settingsBuilder.mutateRemarketingActionsSettings().build(); + } + + /** Builder for RemarketingActionServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + + private final UnaryCallSettings.Builder + getRemarketingActionSettings; + private final UnaryCallSettings.Builder< + MutateRemarketingActionsRequest, MutateRemarketingActionsResponse> + mutateRemarketingActionsSettings; + + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "idempotent", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(20000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(20000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("default", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getRemarketingActionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + mutateRemarketingActionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getRemarketingActionSettings, mutateRemarketingActionsSettings); + + initDefaults(this); + } + + private static Builder createDefault() { + Builder builder = new Builder((ClientContext) null); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + + builder + .getRemarketingActionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .mutateRemarketingActionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + return builder; + } + + protected Builder(RemarketingActionServiceStubSettings settings) { + super(settings); + + getRemarketingActionSettings = settings.getRemarketingActionSettings.toBuilder(); + mutateRemarketingActionsSettings = settings.mutateRemarketingActionsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getRemarketingActionSettings, mutateRemarketingActionsSettings); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getRemarketingAction. */ + public UnaryCallSettings.Builder + getRemarketingActionSettings() { + return getRemarketingActionSettings; + } + + /** Returns the builder for the settings used for calls to mutateRemarketingActions. */ + public UnaryCallSettings.Builder< + MutateRemarketingActionsRequest, MutateRemarketingActionsResponse> + mutateRemarketingActionsSettings() { + return mutateRemarketingActionsSettings; + } + + @Override + public RemarketingActionServiceStubSettings build() throws IOException { + return new RemarketingActionServiceStubSettings(this); + } + } +} diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/SearchTermViewServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/SearchTermViewServiceStub.java index d3c0eccdd1..a57aba2f3c 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/SearchTermViewServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/SearchTermViewServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/SearchTermViewServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/SearchTermViewServiceStubSettings.java index fbcc914595..f8a87229b0 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/SearchTermViewServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/SearchTermViewServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/SharedCriterionServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/SharedCriterionServiceStub.java index 91ee997f69..7fa1701a39 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/SharedCriterionServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/SharedCriterionServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/SharedCriterionServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/SharedCriterionServiceStubSettings.java index b6c7df5542..86bab4aa00 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/SharedCriterionServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/SharedCriterionServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/SharedSetServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/SharedSetServiceStub.java index afb6d23d54..5e11cb784a 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/SharedSetServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/SharedSetServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/SharedSetServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/SharedSetServiceStubSettings.java index f548dcca77..127e5e7e70 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/SharedSetServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/SharedSetServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/TopicConstantServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/TopicConstantServiceStub.java index f06af21bbe..28562f761b 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/TopicConstantServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/TopicConstantServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/TopicConstantServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/TopicConstantServiceStubSettings.java index 73eda31e85..71fef52380 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/TopicConstantServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/TopicConstantServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/TopicViewServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/TopicViewServiceStub.java index ab59311efb..66045ee67f 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/TopicViewServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/TopicViewServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/TopicViewServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/TopicViewServiceStubSettings.java index e3c1adb2e2..2801b14d53 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/TopicViewServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/TopicViewServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/UserInterestServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/UserInterestServiceStub.java index 1a25ce82d4..5409c74c80 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/UserInterestServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/UserInterestServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/UserInterestServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/UserInterestServiceStubSettings.java index b7c496ce58..1259955061 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/UserInterestServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/UserInterestServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/UserListServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/UserListServiceStub.java index c5db224d24..4107c3ce4b 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/UserListServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/UserListServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/UserListServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/UserListServiceStubSettings.java index bafd4b8af1..7780452258 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/UserListServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/UserListServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/VideoServiceStub.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/VideoServiceStub.java index 8d1a1ce8ef..9a9c7db6aa 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/VideoServiceStub.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/VideoServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/VideoServiceStubSettings.java b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/VideoServiceStubSettings.java index ee910cc143..a730ae4f00 100644 --- a/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/VideoServiceStubSettings.java +++ b/google-ads/src/main/java/com/google/ads/googleads/v0/services/stub/VideoServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/main/resources/googleads-logging/jdk-logger.properties b/google-ads/src/main/resources/googleads-logging/jdk-logger.properties new file mode 100644 index 0000000000..559d01a9a3 --- /dev/null +++ b/google-ads/src/main/resources/googleads-logging/jdk-logger.properties @@ -0,0 +1,28 @@ +# Copyright 2019, Google Inc. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# The Google Ads API Java Client Library uses the slf4j logging facade, allowing +# you to plug in a logging framework of your choice. This configuration file +# sets up the logging infrastructure using JDK logging. If you wish to take advantage +# of this file and use JDK as your framework, you must add a dependency on org.slf4j:slf4j-jdk14. +# Please see http://www.slf4j.org for more information about slf4j. +# +# See the Google Ads API Java Client Library README.md for more details: +# https://github.com/googleads/google-ads-java/README.md + +handlers=java.util.logging.ConsoleHandler +com.google.ads.googleads.lib.logging.request.level=FINE +com.google.ads.googleads.lib.logging.request.level=FINE +java.util.logging.ConsoleHandler.level=FINE +java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter diff --git a/google-ads/src/main/resources/googleads-logging/log4j.properties b/google-ads/src/main/resources/googleads-logging/log4j.properties new file mode 100644 index 0000000000..e95cca687a --- /dev/null +++ b/google-ads/src/main/resources/googleads-logging/log4j.properties @@ -0,0 +1,31 @@ +# Copyright 2019, Google Inc. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License +# +# The Google Ads API Java Client Library uses the slf4j logging facade, allowing +# you to plug in a logging framework of your choice. This configuration file +# sets up the logging infrastructure using log4j 1.2 logging. If you wish to take advantage +# of this file and use log4j 1.2 as your framework, you must add a dependency on +# org.slf4j:slf4j-log4j12 Please see http://www.slf4j.org for more information about slf4j. + +log4j.rootLogger=off + +log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender +log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout + +log4j.logger.com.google.ads.googleads.lib.request.summary=ALL, CONSOLE +log4j.logger.com.google.ads.googleads.lib.request.detail=ALL, CONSOLE + +log4j.appender.CONSOLE.Target=System.err +log4j.appender.CONSOLE.Threshold=ALL +log4j.appender.CONSOLE.layout.ConversionPattern=[%d{DATE}-%c{1}:%p:%t] %m%n diff --git a/google-ads/src/main/resources/googleads-logging/log4j2.xml b/google-ads/src/main/resources/googleads-logging/log4j2.xml new file mode 100644 index 0000000000..2160752f44 --- /dev/null +++ b/google-ads/src/main/resources/googleads-logging/log4j2.xml @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/google-ads/src/test/java/com/google/ads/googleads/lib/FakeCredential.java b/google-ads/src/test/java/com/google/ads/googleads/lib/FakeCredential.java new file mode 100644 index 0000000000..64532c6835 --- /dev/null +++ b/google-ads/src/test/java/com/google/ads/googleads/lib/FakeCredential.java @@ -0,0 +1,48 @@ +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package com.google.ads.googleads.lib; + +import com.google.auth.Credentials; +import java.io.IOException; +import java.net.URI; +import java.util.List; +import java.util.Map; + +/** Dummy implementation of credentials for testing purposes. A call to refresh does nothing. */ +public class FakeCredential extends Credentials { + + @Override + public String getAuthenticationType() { + return null; + } + + @Override + public Map> getRequestMetadata(URI uri) throws IOException { + return null; + } + + @Override + public boolean hasRequestMetadata() { + return false; + } + + @Override + public boolean hasRequestMetadataOnly() { + return false; + } + + @Override + public void refresh() throws IOException {} +} diff --git a/google-ads/src/test/java/com/google/ads/googleads/lib/GoogleAdsClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/lib/GoogleAdsClientTest.java index 1ffcf1db67..04d6291445 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/lib/GoogleAdsClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/lib/GoogleAdsClientTest.java @@ -19,10 +19,18 @@ import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertThat; +import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import com.google.ads.googleads.lib.GoogleAdsClient.Builder; import com.google.ads.googleads.lib.GoogleAdsClient.Builder.ConfigPropertyKey; +import com.google.ads.googleads.v0.services.GoogleAdsServiceClient; +import com.google.ads.googleads.v0.services.MockGoogleAdsService; +import com.google.ads.googleads.v0.services.SearchGoogleAdsResponse; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.auth.Credentials; import com.google.auth.oauth2.UserCredentials; import java.io.File; @@ -32,14 +40,16 @@ import java.lang.reflect.InvocationTargetException; import java.util.Collections; import java.util.HashSet; -import java.util.Map; import java.util.Properties; import java.util.Set; import java.util.concurrent.ScheduledExecutorService; +import java.util.regex.Pattern; import java.util.stream.Stream; import javax.annotation.Nullable; import org.hamcrest.Matchers; +import org.junit.AfterClass; import org.junit.Before; +import org.junit.BeforeClass; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; @@ -47,7 +57,6 @@ import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import org.mockito.Mock; -import org.mockito.Mockito; import org.mockito.MockitoAnnotations; /** Tests for {@link GoogleAdsClient}. */ @@ -59,11 +68,26 @@ public class GoogleAdsClientTest { private static final String REFRESH_TOKEN = "QRSTUVWXYZ"; private static final String DEVELOPER_TOKEN = "developer_token"; private static final long LOGIN_CUSTOMER_ID = 123456789L; + private static final MockGoogleAdsService mockService = new MockGoogleAdsService(); + private static final MockServiceHelper mockServiceHelper = + new MockServiceHelper("fake-address", mockService); @Rule public TemporaryFolder folder = new TemporaryFolder(); @Rule public ExpectedException thrown = ExpectedException.none(); @Mock private ScheduledExecutorService executor; + private Credentials fakeCredentials = new FakeCredential(); + private LocalChannelProvider localChannelProvider; private Properties testProperties; + @BeforeClass + public static void startLocalServer() { + mockServiceHelper.start(); + } + + @AfterClass + public static void stopLocalServer() { + mockServiceHelper.stop(); + } + @Before public void setUp() { MockitoAnnotations.initMocks(this); @@ -74,15 +98,8 @@ public void setUp() { testProperties.setProperty(ConfigPropertyKey.DEVELOPER_TOKEN.getPropertyKey(), DEVELOPER_TOKEN); testProperties.setProperty( ConfigPropertyKey.LOGIN_CUSTOMER_ID.getPropertyKey(), String.valueOf(LOGIN_CUSTOMER_ID)); - } - - /** Creates an GoogleAdsClient using mock credentials. */ - private GoogleAdsClient createTestGoogleAdsClient() { - return GoogleAdsClient.newBuilder() - .setCredentials(Mockito.mock(Credentials.class)) - .setDeveloperToken(DEVELOPER_TOKEN) - .setLoginCustomerId(LOGIN_CUSTOMER_ID) - .build(); + mockServiceHelper.reset(); + localChannelProvider = mockServiceHelper.createChannelProvider(); } /** @@ -176,7 +193,10 @@ public void testBuildFromPropertiesFile_withoutLoginCustomerId() throws IOExcept // Build a new client from the file. GoogleAdsClient client = - GoogleAdsClient.newBuilder().fromPropertiesFile(propertiesFile).build(); + GoogleAdsClient.newBuilder() + .fromPropertiesFile(propertiesFile) + .setTransportChannelProvider(localChannelProvider) + .build(); assertGoogleAdsClient(client, null); } @@ -226,6 +246,7 @@ public void buildWithoutPropertiesFile_supportsAllFields() throws IOException { .setCredentials(credentials) .setDeveloperToken(DEVELOPER_TOKEN) .setLoginCustomerId(LOGIN_CUSTOMER_ID) + .setTransportChannelProvider(localChannelProvider) .build(); assertGoogleAdsClient(client); } @@ -255,44 +276,80 @@ public void buildFromProperties_loginCustomerId_isOptional() { assertNull(client.getLoginCustomerId()); } - /** Verifies that headers include loginCustomerId if present. */ + /** + * Verifies that the internal headers for the API client versions (gax, grpc, java) etc. are sent. + */ @Test - public void getHeaders_loginCustomerId_includedIfSpecified() { - Credentials credentials = - UserCredentials.newBuilder() - .setClientId(CLIENT_ID) - .setClientSecret(CLIENT_SECRET) - .setRefreshToken(REFRESH_TOKEN) + public void x_goog_api_client_header_isSent() { + GoogleAdsClient client = + GoogleAdsClient.newBuilder() + .setCredentials(fakeCredentials) + .setDeveloperToken(DEVELOPER_TOKEN) + .setLoginCustomerId(LOGIN_CUSTOMER_ID) + .setTransportChannelProvider(localChannelProvider) + .setEndpoint("fake-address") .build(); + mockService.addResponse(SearchGoogleAdsResponse.newBuilder().build()); + try (GoogleAdsServiceClient googleAdsClient = client.getGoogleAdsServiceClient()) { + googleAdsClient.search("123", "select blah"); + } + assertTrue( + "GAX/GRPC/Java platform headers missing", + localChannelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + /** Verifies that headers include loginCustomerId if present. */ + @Test + public void loginCustomerId_sentIfSpecified() { GoogleAdsClient client = GoogleAdsClient.newBuilder() - .setCredentials(credentials) + .setCredentials(fakeCredentials) .setDeveloperToken(DEVELOPER_TOKEN) .setLoginCustomerId(LOGIN_CUSTOMER_ID) + .setTransportChannelProvider(localChannelProvider) + .setEndpoint("fake-address") .build(); - Map headers = client.getHeaders(); - assertEquals( - "invalid login-customer-id", - String.valueOf(LOGIN_CUSTOMER_ID), - headers.get("login-customer-id")); + mockService.addResponse(SearchGoogleAdsResponse.newBuilder().build()); + client.getGoogleAdsServiceClient().search("123", "select blah"); + assertTrue( + "login customer ID not found", + localChannelProvider.isHeaderSent( + "login-customer-id", Pattern.compile(String.valueOf(LOGIN_CUSTOMER_ID)))); } /** Verifies that headers does not include loginCustomerId if not specified. */ @Test - public void getHeaders_loginCustomerId_excludedIfNotSpecified() { - Credentials credentials = - UserCredentials.newBuilder() - .setClientId(CLIENT_ID) - .setClientSecret(CLIENT_SECRET) - .setRefreshToken(REFRESH_TOKEN) - .build(); + public void loginCustomerId_notSentIfExcluded() { GoogleAdsClient client = GoogleAdsClient.newBuilder() - .setCredentials(credentials) + .setCredentials(fakeCredentials) .setDeveloperToken(DEVELOPER_TOKEN) + .setTransportChannelProvider(localChannelProvider) .build(); - Map headers = client.getHeaders(); - assertFalse("invalid login-customer-id", headers.containsKey("login-customer-id")); + mockService.addResponse(SearchGoogleAdsResponse.newBuilder().build()); + client.getGoogleAdsServiceClient().search("123", "select blah"); + assertFalse( + "login customer ID header should be excluded if not configured", + localChannelProvider.isHeaderSent("login-customer-id", Pattern.compile(".*"))); + } + + @Test + public void transportChannelProvider_defaultRequiresEndpoint() { + assertTrue( + "Default TransportChannelProvider must accept endpoint.", + GoogleAdsClient.newBuilder().getTransportChannelProvider().needsEndpoint()); + } + + /** Creates an GoogleAdsClient using mock credentials. */ + private GoogleAdsClient createTestGoogleAdsClient() { + return GoogleAdsClient.newBuilder() + .setCredentials(fakeCredentials) + .setDeveloperToken(DEVELOPER_TOKEN) + .setLoginCustomerId(LOGIN_CUSTOMER_ID) + .setTransportChannelProvider(localChannelProvider) + .build(); } /** @@ -310,7 +367,9 @@ private void assertGoogleAdsClient(GoogleAdsClient client) throws IOException { private void assertGoogleAdsClient(GoogleAdsClient client, @Nullable Long loginCustomerId) throws IOException { assertNotNull("Null client", client); - assertNotNull("Null channel", client.withExecutor(executor).getTransportChannel()); + if (client.needsExecutor()) { + assertNotNull("Null channel", client.withExecutor(executor).getTransportChannel()); + } Credentials credentials = client.getCredentials(); assertNotNull("Null credentials", credentials); diff --git a/google-ads/src/test/java/com/google/ads/googleads/lib/GoogleAdsHeaderProviderTest.java b/google-ads/src/test/java/com/google/ads/googleads/lib/GoogleAdsHeaderProviderTest.java new file mode 100644 index 0000000000..41a2d71b2f --- /dev/null +++ b/google-ads/src/test/java/com/google/ads/googleads/lib/GoogleAdsHeaderProviderTest.java @@ -0,0 +1,81 @@ +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package com.google.ads.googleads.lib; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertNull; +import static org.junit.Assert.assertTrue; +import static org.junit.Assert.fail; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +@RunWith(JUnit4.class) +public class GoogleAdsHeaderProviderTest { + + /** Verifies that the developer token is not nullable. */ + @Test + public void requiresDeveloperToken() { + try { + GoogleAdsHeaderProvider.newBuilder().build(); + fail(); + } catch (IllegalStateException ex) { + // expected + } + } + + /** Verifies that the customer ID is nullable and when null is not present in headers. */ + @Test + public void loginCustomerIdOptional() { + GoogleAdsHeaderProvider provider = + GoogleAdsHeaderProvider.newBuilder().setDeveloperToken("test").build(); + assertNull(provider.getLoginCustomerId()); + assertFalse( + "login customer id found when null", + provider.getHeaders().containsKey("login-customer-id")); + } + + /** Verifies that the login customer id is set and present when provided. */ + @Test + public void loginCustomerId_includesIfSet() { + GoogleAdsHeaderProvider provider = + GoogleAdsHeaderProvider.newBuilder() + .setDeveloperToken("test") + .setLoginCustomerId(123L) + .build(); + assertEquals("Incorrect login customer id", (long) 123, (long) provider.getLoginCustomerId()); + assertEquals( + "Missing login customer id", "123", provider.getHeaders().get("login-customer-id")); + } + + /** Verifies that the developer token is set and present in the headers. */ + @Test + public void developerToken_includesInHeaderSet() { + GoogleAdsHeaderProvider provider = + GoogleAdsHeaderProvider.newBuilder().setDeveloperToken("test").build(); + assertEquals("Developer token incorrect", "test", provider.getHeaders().get("developer-token")); + } + + /** Verifies that the API client version header is sent */ + @Test + public void apiClientVersion_isIncluded() { + GoogleAdsHeaderProvider provider = + GoogleAdsHeaderProvider.newBuilder().setDeveloperToken("test").build(); + assertTrue(provider.getHeaders().containsKey("x-goog-api-client")); + + } +} diff --git a/google-ads/src/test/java/com/google/ads/googleads/lib/logging/LoggingInterceptorTest.java b/google-ads/src/test/java/com/google/ads/googleads/lib/logging/LoggingInterceptorTest.java new file mode 100644 index 0000000000..ad20443e51 --- /dev/null +++ b/google-ads/src/test/java/com/google/ads/googleads/lib/logging/LoggingInterceptorTest.java @@ -0,0 +1,418 @@ +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package com.google.ads.googleads.lib.logging; + +import static org.mockito.Matchers.any; +import static org.mockito.Matchers.eq; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; + +import com.google.ads.googleads.lib.logging.Event.Detail; +import com.google.ads.googleads.lib.logging.Event.Summary; +import com.google.common.collect.ImmutableMap; +import io.grpc.Channel; +import io.grpc.ClientCall; +import io.grpc.ClientCall.Listener; +import io.grpc.Metadata; +import io.grpc.MethodDescriptor; +import io.grpc.MethodDescriptor.Marshaller; +import io.grpc.MethodDescriptor.MethodType; +import io.grpc.Status; +import java.io.InputStream; +import java.util.Collections; +import java.util.Map; +import java.util.function.BiConsumer; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.mockito.ArgumentCaptor; +import org.mockito.Mock; +import org.mockito.runners.MockitoJUnitRunner; +import org.slf4j.Logger; + +/** + * Test suite for the logging interceptor. Uses mocks to avoid sending actual RPC calls. At some + * point in future we should investigate gRPC's support for mocking servers. + * + *

The mutable fields in this class get composed into request/responses and sent to the logger. + * Set these fields to match the test case, and call runCall()/runDefaultCall() to simulate the call + * and verify the result. + */ +@RunWith(MockitoJUnitRunner.class) +public class LoggingInterceptorTest { + + private MethodDescriptor methodDescriptor; + private RequestLogger requestLogger; + private String devToken; + private String endpoint; + private String loginCustomerId; + private String customerId; + private Object request; + private Object response; + private Status status; + private boolean isSuccess; + private Map requestHeaders; + private Map scrubbedHeaders; + private Metadata responseHeaders; + private Metadata trailers; + private String requestId; + + @Mock(name = "summaryLogger") + private Logger summaryLogger; + + @Mock(name = "detailLogger") + private Logger detailLogger; + + @Mock private Channel nextChannel; + + @Mock private ClientCall nextCall; + + @Before + public void setup() { + // Initialize Mockito objects. + when(nextChannel.newCall(any(), any())).thenReturn(nextCall); + enableAllLevels(summaryLogger); + enableAllLevels(detailLogger); + + // Initialize dummy request object. + devToken = "devtoken-test"; + loginCustomerId = "lcid-test"; + endpoint = "google.com"; + request = new Object(); + requestHeaders = + ImmutableMap.of("developer-token", devToken, "login-customer-id", loginCustomerId); + scrubbedHeaders = + ImmutableMap.of("developer-token", "REDACTED", "login-customer-id", loginCustomerId); + + // Initialize dummy response object. + status = Status.OK; + isSuccess = true; + responseHeaders = new Metadata(); + response = new Object(); + requestId = "testrqid"; + responseHeaders.put(LoggingInterceptor.REQUEST_ID_HEADER_KEY, requestId); + trailers = new Metadata(); + customerId = null; + + // Initialize logger and gRPC. + requestLogger = new RequestLogger(summaryLogger, detailLogger, () -> Integer.MAX_VALUE); + methodDescriptor = + MethodDescriptor.newBuilder() + .setFullMethodName("this.is.the/Method") + .setType(MethodType.UNARY) + .setResponseMarshaller( + new Marshaller() { + @Override + public InputStream stream(Object value) { + return null; + } + + @Override + public Object parse(InputStream stream) { + return null; + } + }) + .setRequestMarshaller( + new Marshaller() { + @Override + public InputStream stream(Object value) { + return null; + } + + @Override + public Object parse(InputStream stream) { + return null; + } + }) + .build(); + } + + /** Ensures that the normal RPC flow results in a correct log. */ + @Test + public void logsSuccessfulCall() { + runDefaultCall(); + } + + /** Ensures that a failed call is logged at the appropriate levels. */ + @Test + public void logsFailedCall() { + status = Status.INVALID_ARGUMENT; + isSuccess = false; + runDefaultCall(); + } + + /** Ensures that the CID is extracted from requests where it's present. */ + @Test + public void logsCustomerId() { + request = + new Object() { + // This method is accessed using reflection in the logging impl. + @SuppressWarnings("unused") + public String getCustomerId() { + return "dummyCID"; + } + }; + customerId = "dummyCID"; + runDefaultCall(); + } + + /** Ensures that can read the requestID from trailers. */ + @Test + public void canReadRequestIdFromTrailers() { + trailers = responseHeaders; + responseHeaders = new Metadata(); + runDefaultCall(); + } + + /** Ensures that logging works without requestID. */ + @Test + public void logsWhenMissingRequestId() { + responseHeaders = new Metadata(); + trailers = new Metadata(); + requestId = null; + runDefaultCall(); + } + + /** Ensures that logging works with empty request headers. */ + @Test + public void logsWhenRequestHeadersEmpty() { + requestHeaders = Collections.emptyMap(); + scrubbedHeaders = Collections.emptyMap(); + runDefaultCall(); + } + + /** Ensures that logging works with null request headers. */ + @Test + public void logsWhenRequestHeadersNull() { + requestHeaders = null; + scrubbedHeaders = Collections.emptyMap(); + runDefaultCall(); + } + + /** Ensures that logging works with the RPC method not provided (should never happen). */ + @Test + public void logsWithMethodNotSet() { + methodDescriptor = null; + runDefaultCall(); + } + + /** Ensures that logging works with no RPC response status received. */ + @Test + public void logsWithStatusNotSet() { + status = null; + isSuccess = false; + runDefaultCall(); + } + + /** Ensures that logging works when no endpoint is set (should never happen). */ + @Test + public void logsWithEndpointNotSet() { + endpoint = null; + runDefaultCall(); + } + + /** Ensures that logging works with null response headers. */ + @Test + public void logsWithResponseHeadersNotSet() { + responseHeaders = null; + requestId = null; + runDefaultCall(); + } + + /** Ensures that logging works with null response trailers. */ + @Test + public void logsWithTrailersNotSet() { + trailers = null; + runDefaultCall(); + } + + /** Ensures that logging works when onHeaders is not called. */ + @Test + public void logsIfResponseHeadersNotSent() { + responseHeaders = null; + requestId = null; + runCall( + (listener, detail) -> { + listener.onMessage(detail.getResponse()); + listener.onClose(detail.getResponseStatus(), detail.getResponseTrailerMetadata()); + }); + } + + /** Ensures that logging works if onMessage is not called. */ + @Test + public void logsIfResponseNotReceived() { + response = null; + runCall( + (listener, detail) -> { + listener.onHeaders(detail.getResponseHeaderMetadata()); + listener.onClose(detail.getResponseStatus(), detail.getResponseTrailerMetadata()); + }); + } + + /** Ensures that logging works if onHeaders and onMessage are not called. */ + @Test + public void logsIfResponseAndHeadersNotReceived() { + response = null; + responseHeaders = null; + requestId = null; + runCall( + (listener, detail) -> + listener.onClose(detail.getResponseStatus(), detail.getResponseTrailerMetadata())); + } + + /** Ensures that the truncation setting is respected and request/responses are truncated. */ + @Test + public void truncatesLongResponses() { + requestLogger = new RequestLogger(summaryLogger, detailLogger, () -> 5); + response = "12345" + RequestLogger.TRUNCATE_MESSAGE; + runCall( + (listener, detail) -> { + listener.onHeaders(detail.getResponseHeaderMetadata()); + listener.onMessage("123456"); + listener.onClose(detail.getResponseStatus(), detail.getResponseTrailerMetadata()); + }); + } + + /** + * Ensures that truncation doesn't apply at the boundary case where response.length = + * truncateLength. + */ + @Test + public void doesntTruncateOnLimitBoundary() { + requestLogger = new RequestLogger(summaryLogger, detailLogger, () -> 5); + response = "12345"; + runCall( + (listener, detail) -> { + listener.onHeaders(detail.getResponseHeaderMetadata()); + listener.onMessage("12345"); + listener.onClose(detail.getResponseStatus(), detail.getResponseTrailerMetadata()); + }); + } + + private static Listener simulateCall( + RequestLogger requestLogger, + Detail detail, + Summary summary, + MethodDescriptor methodDescriptor, + Channel nextChannel, + ClientCall nextCall) { + LoggingInterceptor interceptor = + new LoggingInterceptor(requestLogger, detail.getRawRequestHeaders(), summary.getEndpoint()); + + // Simulate a call (mocked channel doesn't actually make a call). + ClientCall call = interceptor.interceptCall(methodDescriptor, null, nextChannel); + Metadata upstreamHeaders = new Metadata(); + call.start(new Listener() {}, upstreamHeaders); + call.sendMessage(detail.getRequest()); + + // Capture the response listener and return this so we can test with different responses. + ArgumentCaptor listenerCaptor = ArgumentCaptor.forClass(Listener.class); + verify(nextCall).start(listenerCaptor.capture(), eq(upstreamHeaders)); + return listenerCaptor.getValue(); + } + + private static void verifyLoggers( + Detail detail, Summary summary, Logger detailLogger, Logger summaryLogger) { + // A small bit of logic here is a reasonable trade-off to simplify the tests. + if (detail.isSuccess()) { + verify(detailLogger).debug(any(), getDetailLoggerParams(detail)); + verify(summaryLogger).info(any(), getSummaryLoggerParams(summary)); + } else { + verify(detailLogger).info(any(), getDetailLoggerParams(detail)); + verify(summaryLogger).warn(any(), getSummaryLoggerParams(summary)); + } + } + + private static Object[] getDetailLoggerParams(Detail detail) { + return new Object[] { + any(), + eq(detail.getMethodName()), + eq(detail.getEndpoint()), + eq(detail.getScrubbedRequestHeaders()), + eq(detail.getRequest()), + eq(detail.getResponseHeaderMetadata()), + eq(detail.getResponseAsText()), + eq(detail.getResponseStatus()) + }; + } + + private static Object[] getSummaryLoggerParams(Summary summary) { + return new Object[] { + any(), + eq(summary.getMethodName()), + eq(summary.getEndpoint()), + eq(summary.getCustomerId()), + eq(summary.getRequestId()), + eq(summary.getResponseCode()), + eq(summary.getResponseDescription()) + }; + } + + private void enableAllLevels(Logger logger) { + when(logger.isDebugEnabled()).thenReturn(true); + when(logger.isErrorEnabled()).thenReturn(true); + when(logger.isInfoEnabled()).thenReturn(true); + when(logger.isTraceEnabled()).thenReturn(true); + when(logger.isWarnEnabled()).thenReturn(true); + } + + private void runDefaultCall() { + runCall( + (listener, detail) -> { + listener.onHeaders(detail.getResponseHeaderMetadata()); + listener.onMessage(detail.getResponse()); + listener.onClose(detail.getResponseStatus(), detail.getResponseTrailerMetadata()); + }); + } + + private void runCall(BiConsumer callback) { + Detail detail = createDetail(); + Summary summary = createSummary(); + runCall(callback, detail, summary); + } + + private void runCall(BiConsumer callback, Detail detail, Summary summary) { + Listener listener = + simulateCall(requestLogger, detail, summary, methodDescriptor, nextChannel, nextCall); + callback.accept(listener, detail); + verifyLoggers(detail, summary, detailLogger, summaryLogger); + } + + private Detail createDetail() { + return Detail.builder() + .setResponseStatus(status) + .setSuccess(isSuccess) + .setMethodName(methodDescriptor == null ? null : methodDescriptor.getFullMethodName()) + .setRawRequestHeaders(requestHeaders) + .setScrubbedRequestHeaders(scrubbedHeaders) + .setEndpoint(endpoint) + .setRequest(request) + .setResponseHeaderMetadata(responseHeaders) + .setResponseTrailerMetadata(trailers) + .setResponse(response) + .build(); + } + + private Summary createSummary() { + return Summary.builder() + .setResponseStatus(status) + .setSuccess(isSuccess) + .setMethodName(methodDescriptor == null ? null : methodDescriptor.getFullMethodName()) + .setCustomerId(customerId) + .setEndpoint(endpoint) + .setRequestId(requestId) + .build(); + } +} diff --git a/google-ads/src/test/java/com/google/ads/googleads/lib/utils/ResourceNamesTest.java b/google-ads/src/test/java/com/google/ads/googleads/lib/utils/ResourceNamesTest.java index 44cb60d814..601c1d32b5 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/lib/utils/ResourceNamesTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/lib/utils/ResourceNamesTest.java @@ -106,6 +106,18 @@ public void testAdGroup() { assertEquals(expected, ResourceNames.adGroup(1234L, 5678L)); } + @Test + public void testAdParameter() { + String expected = "customers/1234/adParameters/5678_1011_3"; + assertEquals(expected, ResourceNames.adParameter(1234L, 5678L, 1011L, 3L)); + } + + @Test + public void testAdScheduleView() { + String expected = "customers/1234/adScheduleViews/5678_1011"; + assertEquals(expected, ResourceNames.adScheduleView(1234L, 5678L, 1011L)); + } + @Test public void testBiddingStrategy() { String expected = "customers/1234/biddingStrategies/5678"; @@ -142,12 +154,6 @@ public void testCampaignCriteria() { assertEquals(expected, ResourceNames.campaignCriterion(1234L, 5678L, 1011L)); } - @Test - public void testCampaignGroup() { - String expected = "customers/1234/campaignGroups/5678"; - assertEquals(expected, ResourceNames.campaignGroup(1234L, 5678L)); - } - @Test public void testCampaignSharedSet() { String expected = "customers/1234/campaignSharedSets/5678_91011"; @@ -191,6 +197,30 @@ public void testKeywordView() { assertEquals(expected, ResourceNames.keywordView(1234L, 5678L, 1011L)); } + @Test + public void testMobileAppCategoryConstant() { + String expected = "mobileAppCategoryConstants/1234"; + assertEquals(expected, ResourceNames.mobileAppCategoryConstant(1234L)); + } + + @Test + public void testMobileDeviceConstant() { + String expected = "mobileDeviceConstants/1234"; + assertEquals(expected, ResourceNames.mobileDeviceConstant(1234L)); + } + + @Test + public void testOperationSystemVersionConstant() { + String expected = "operatingSystemVersionConstants/1234"; + assertEquals(expected, ResourceNames.operatingSystemVersionConstant(1234L)); + } + + @Test + public void testRemarketingAction() { + String expected = "customers/1234/remarketingActions/5678"; + assertEquals(expected, ResourceNames.remarketingAction(1234L, 5678L)); + } + @Test public void testSharedSet() { String expected = "customers/1234/sharedSets/5678"; diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/AccountBudgetProposalServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/AccountBudgetProposalServiceClientTest.java index 94cca9897c..b4613e3e3f 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/AccountBudgetProposalServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/AccountBudgetProposalServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,6 +46,8 @@ public class AccountBudgetProposalServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -54,7 +56,6 @@ public class AccountBudgetProposalServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -88,10 +89,15 @@ public class AccountBudgetProposalServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -111,6 +117,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -119,7 +127,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -153,10 +160,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -174,6 +185,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -182,7 +195,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -216,10 +228,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/AccountBudgetServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/AccountBudgetServiceClientTest.java index c0bba04792..ec4a997c4a 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/AccountBudgetServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/AccountBudgetServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,6 +46,8 @@ public class AccountBudgetServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -54,7 +56,6 @@ public class AccountBudgetServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -88,10 +89,15 @@ public class AccountBudgetServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -111,6 +117,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -119,7 +127,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -153,10 +160,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -174,6 +185,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -182,7 +195,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -216,10 +228,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/AdGroupAdServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/AdGroupAdServiceClientTest.java index 123d16fbb3..e01a5f0a16 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/AdGroupAdServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/AdGroupAdServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,6 +47,8 @@ public class AdGroupAdServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -55,7 +57,6 @@ public class AdGroupAdServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -89,10 +90,15 @@ public class AdGroupAdServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -112,6 +118,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -120,7 +128,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -154,10 +161,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -175,6 +186,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -183,7 +196,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -217,10 +229,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, @@ -300,8 +316,11 @@ public void mutateAdGroupAdsTest() { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; - MutateAdGroupAdsResponse actualResponse = client.mutateAdGroupAds(customerId, operations); + MutateAdGroupAdsResponse actualResponse = + client.mutateAdGroupAds(customerId, operations, partialFailure, validateOnly); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAdGroupAdService.getRequests(); @@ -310,6 +329,8 @@ public void mutateAdGroupAdsTest() { Assert.assertEquals(customerId, actualRequest.getCustomerId()); Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertEquals(partialFailure, actualRequest.getPartialFailure()); + Assert.assertEquals(validateOnly, actualRequest.getValidateOnly()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -322,6 +343,49 @@ public void mutateAdGroupAdsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockAdGroupAdService.addException(exception); + try { + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; + + client.mutateAdGroupAds(customerId, operations, partialFailure, validateOnly); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void mutateAdGroupAdsTest2() { + MutateAdGroupAdsResponse expectedResponse = MutateAdGroupAdsResponse.newBuilder().build(); + mockAdGroupAdService.addResponse(expectedResponse); + + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + + MutateAdGroupAdsResponse actualResponse = client.mutateAdGroupAds(customerId, operations); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdGroupAdService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MutateAdGroupAdsRequest actualRequest = (MutateAdGroupAdsRequest) actualRequests.get(0); + + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void mutateAdGroupAdsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockAdGroupAdService.addException(exception); + try { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/AdGroupAudienceViewServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/AdGroupAudienceViewServiceClientTest.java index 580b0520a4..f5d42f2fab 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/AdGroupAudienceViewServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/AdGroupAudienceViewServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,6 +46,8 @@ public class AdGroupAudienceViewServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -54,7 +56,6 @@ public class AdGroupAudienceViewServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -88,10 +89,15 @@ public class AdGroupAudienceViewServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -111,6 +117,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -119,7 +127,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -153,10 +160,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -174,6 +185,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -182,7 +195,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -216,10 +228,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/AdGroupBidModifierServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/AdGroupBidModifierServiceClientTest.java index 33956714f8..db4df04c0f 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/AdGroupBidModifierServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/AdGroupBidModifierServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,6 +47,8 @@ public class AdGroupBidModifierServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -55,7 +57,6 @@ public class AdGroupBidModifierServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -89,10 +90,15 @@ public class AdGroupBidModifierServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -112,6 +118,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -120,7 +128,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -154,10 +161,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -175,6 +186,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -183,7 +196,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -217,10 +229,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, @@ -305,9 +321,11 @@ public void mutateAdGroupBidModifiersTest() { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; MutateAdGroupBidModifiersResponse actualResponse = - client.mutateAdGroupBidModifiers(customerId, operations); + client.mutateAdGroupBidModifiers(customerId, operations, partialFailure, validateOnly); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAdGroupBidModifierService.getRequests(); @@ -317,6 +335,8 @@ public void mutateAdGroupBidModifiersTest() { Assert.assertEquals(customerId, actualRequest.getCustomerId()); Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertEquals(partialFailure, actualRequest.getPartialFailure()); + Assert.assertEquals(validateOnly, actualRequest.getValidateOnly()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -329,6 +349,52 @@ public void mutateAdGroupBidModifiersExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockAdGroupBidModifierService.addException(exception); + try { + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; + + client.mutateAdGroupBidModifiers(customerId, operations, partialFailure, validateOnly); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void mutateAdGroupBidModifiersTest2() { + MutateAdGroupBidModifiersResponse expectedResponse = + MutateAdGroupBidModifiersResponse.newBuilder().build(); + mockAdGroupBidModifierService.addResponse(expectedResponse); + + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + + MutateAdGroupBidModifiersResponse actualResponse = + client.mutateAdGroupBidModifiers(customerId, operations); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdGroupBidModifierService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MutateAdGroupBidModifiersRequest actualRequest = + (MutateAdGroupBidModifiersRequest) actualRequests.get(0); + + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void mutateAdGroupBidModifiersExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockAdGroupBidModifierService.addException(exception); + try { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/AdGroupCriterionServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/AdGroupCriterionServiceClientTest.java index 4137265347..8a9210fcf8 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/AdGroupCriterionServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/AdGroupCriterionServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,6 +47,8 @@ public class AdGroupCriterionServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -55,7 +57,6 @@ public class AdGroupCriterionServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -89,10 +90,15 @@ public class AdGroupCriterionServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -112,6 +118,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -120,7 +128,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -154,10 +161,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -175,6 +186,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -183,7 +196,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -217,10 +229,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, @@ -304,9 +320,11 @@ public void mutateAdGroupCriteriaTest() { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; MutateAdGroupCriteriaResponse actualResponse = - client.mutateAdGroupCriteria(customerId, operations); + client.mutateAdGroupCriteria(customerId, operations, partialFailure, validateOnly); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAdGroupCriterionService.getRequests(); @@ -316,6 +334,8 @@ public void mutateAdGroupCriteriaTest() { Assert.assertEquals(customerId, actualRequest.getCustomerId()); Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertEquals(partialFailure, actualRequest.getPartialFailure()); + Assert.assertEquals(validateOnly, actualRequest.getValidateOnly()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -328,6 +348,52 @@ public void mutateAdGroupCriteriaExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockAdGroupCriterionService.addException(exception); + try { + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; + + client.mutateAdGroupCriteria(customerId, operations, partialFailure, validateOnly); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void mutateAdGroupCriteriaTest2() { + MutateAdGroupCriteriaResponse expectedResponse = + MutateAdGroupCriteriaResponse.newBuilder().build(); + mockAdGroupCriterionService.addResponse(expectedResponse); + + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + + MutateAdGroupCriteriaResponse actualResponse = + client.mutateAdGroupCriteria(customerId, operations); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdGroupCriterionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MutateAdGroupCriteriaRequest actualRequest = + (MutateAdGroupCriteriaRequest) actualRequests.get(0); + + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void mutateAdGroupCriteriaExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockAdGroupCriterionService.addException(exception); + try { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/AdGroupFeedServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/AdGroupFeedServiceClientTest.java index 48fb9bc063..f65da82fb9 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/AdGroupFeedServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/AdGroupFeedServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,6 +47,8 @@ public class AdGroupFeedServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -55,7 +57,6 @@ public class AdGroupFeedServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -89,10 +90,15 @@ public class AdGroupFeedServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -112,6 +118,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -120,7 +128,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -154,10 +161,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -175,6 +186,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -183,7 +196,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -217,10 +229,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, @@ -300,8 +316,11 @@ public void mutateAdGroupFeedsTest() { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; - MutateAdGroupFeedsResponse actualResponse = client.mutateAdGroupFeeds(customerId, operations); + MutateAdGroupFeedsResponse actualResponse = + client.mutateAdGroupFeeds(customerId, operations, partialFailure, validateOnly); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAdGroupFeedService.getRequests(); @@ -310,6 +329,8 @@ public void mutateAdGroupFeedsTest() { Assert.assertEquals(customerId, actualRequest.getCustomerId()); Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertEquals(partialFailure, actualRequest.getPartialFailure()); + Assert.assertEquals(validateOnly, actualRequest.getValidateOnly()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -322,6 +343,49 @@ public void mutateAdGroupFeedsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockAdGroupFeedService.addException(exception); + try { + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; + + client.mutateAdGroupFeeds(customerId, operations, partialFailure, validateOnly); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void mutateAdGroupFeedsTest2() { + MutateAdGroupFeedsResponse expectedResponse = MutateAdGroupFeedsResponse.newBuilder().build(); + mockAdGroupFeedService.addResponse(expectedResponse); + + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + + MutateAdGroupFeedsResponse actualResponse = client.mutateAdGroupFeeds(customerId, operations); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdGroupFeedService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MutateAdGroupFeedsRequest actualRequest = (MutateAdGroupFeedsRequest) actualRequests.get(0); + + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void mutateAdGroupFeedsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockAdGroupFeedService.addException(exception); + try { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/AdGroupServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/AdGroupServiceClientTest.java index 8120c8d453..b8068e4128 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/AdGroupServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/AdGroupServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,6 +47,8 @@ public class AdGroupServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -55,7 +57,6 @@ public class AdGroupServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -89,10 +90,15 @@ public class AdGroupServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -112,6 +118,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -120,7 +128,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -154,10 +161,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -175,6 +186,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -183,7 +196,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -217,10 +229,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, @@ -300,8 +316,11 @@ public void mutateAdGroupsTest() { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; - MutateAdGroupsResponse actualResponse = client.mutateAdGroups(customerId, operations); + MutateAdGroupsResponse actualResponse = + client.mutateAdGroups(customerId, operations, partialFailure, validateOnly); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAdGroupService.getRequests(); @@ -310,6 +329,8 @@ public void mutateAdGroupsTest() { Assert.assertEquals(customerId, actualRequest.getCustomerId()); Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertEquals(partialFailure, actualRequest.getPartialFailure()); + Assert.assertEquals(validateOnly, actualRequest.getValidateOnly()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -322,6 +343,49 @@ public void mutateAdGroupsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockAdGroupService.addException(exception); + try { + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; + + client.mutateAdGroups(customerId, operations, partialFailure, validateOnly); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void mutateAdGroupsTest2() { + MutateAdGroupsResponse expectedResponse = MutateAdGroupsResponse.newBuilder().build(); + mockAdGroupService.addResponse(expectedResponse); + + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + + MutateAdGroupsResponse actualResponse = client.mutateAdGroups(customerId, operations); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MutateAdGroupsRequest actualRequest = (MutateAdGroupsRequest) actualRequests.get(0); + + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void mutateAdGroupsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockAdGroupService.addException(exception); + try { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/AdParameterServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/AdParameterServiceClientTest.java new file mode 100644 index 0000000000..8b9c4d1a99 --- /dev/null +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/AdParameterServiceClientTest.java @@ -0,0 +1,399 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services; + +import com.google.ads.googleads.v0.resources.AdParameter; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class AdParameterServiceClientTest { + private static MockAccountBudgetProposalService mockAccountBudgetProposalService; + private static MockAccountBudgetService mockAccountBudgetService; + private static MockAdGroupAdService mockAdGroupAdService; + private static MockAdGroupAudienceViewService mockAdGroupAudienceViewService; + private static MockAdGroupBidModifierService mockAdGroupBidModifierService; + private static MockAdGroupCriterionService mockAdGroupCriterionService; + private static MockAdGroupFeedService mockAdGroupFeedService; + private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; + private static MockAgeRangeViewService mockAgeRangeViewService; + private static MockBiddingStrategyService mockBiddingStrategyService; + private static MockBillingSetupService mockBillingSetupService; + private static MockCampaignAudienceViewService mockCampaignAudienceViewService; + private static MockCampaignBidModifierService mockCampaignBidModifierService; + private static MockCampaignBudgetService mockCampaignBudgetService; + private static MockCampaignCriterionService mockCampaignCriterionService; + private static MockCampaignFeedService mockCampaignFeedService; + private static MockCampaignService mockCampaignService; + private static MockCampaignSharedSetService mockCampaignSharedSetService; + private static MockCarrierConstantService mockCarrierConstantService; + private static MockChangeStatusService mockChangeStatusService; + private static MockConversionActionService mockConversionActionService; + private static MockCustomerClientLinkService mockCustomerClientLinkService; + private static MockCustomerClientService mockCustomerClientService; + private static MockCustomerFeedService mockCustomerFeedService; + private static MockCustomerManagerLinkService mockCustomerManagerLinkService; + private static MockCustomerService mockCustomerService; + private static MockDisplayKeywordViewService mockDisplayKeywordViewService; + private static MockFeedItemService mockFeedItemService; + private static MockFeedMappingService mockFeedMappingService; + private static MockFeedService mockFeedService; + private static MockGenderViewService mockGenderViewService; + private static MockGeoTargetConstantService mockGeoTargetConstantService; + private static MockGoogleAdsFieldService mockGoogleAdsFieldService; + private static MockSharedCriterionService mockSharedCriterionService; + private static MockSharedSetService mockSharedSetService; + private static MockUserListService mockUserListService; + private static MockGoogleAdsService mockGoogleAdsService; + private static MockHotelGroupViewService mockHotelGroupViewService; + private static MockHotelPerformanceViewService mockHotelPerformanceViewService; + private static MockKeywordPlanAdGroupService mockKeywordPlanAdGroupService; + private static MockKeywordPlanCampaignService mockKeywordPlanCampaignService; + private static MockKeywordPlanIdeaService mockKeywordPlanIdeaService; + private static MockKeywordPlanKeywordService mockKeywordPlanKeywordService; + private static MockKeywordPlanNegativeKeywordService mockKeywordPlanNegativeKeywordService; + private static MockKeywordPlanService mockKeywordPlanService; + private static MockKeywordViewService mockKeywordViewService; + private static MockLanguageConstantService mockLanguageConstantService; + private static MockManagedPlacementViewService mockManagedPlacementViewService; + private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; + private static MockParentalStatusViewService mockParentalStatusViewService; + private static MockPaymentsAccountService mockPaymentsAccountService; + private static MockProductGroupViewService mockProductGroupViewService; + private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; + private static MockSearchTermViewService mockSearchTermViewService; + private static MockTopicConstantService mockTopicConstantService; + private static MockTopicViewService mockTopicViewService; + private static MockUserInterestService mockUserInterestService; + private static MockVideoService mockVideoService; + private static MockServiceHelper serviceHelper; + private AdParameterServiceClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockAccountBudgetProposalService = new MockAccountBudgetProposalService(); + mockAccountBudgetService = new MockAccountBudgetService(); + mockAdGroupAdService = new MockAdGroupAdService(); + mockAdGroupAudienceViewService = new MockAdGroupAudienceViewService(); + mockAdGroupBidModifierService = new MockAdGroupBidModifierService(); + mockAdGroupCriterionService = new MockAdGroupCriterionService(); + mockAdGroupFeedService = new MockAdGroupFeedService(); + mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); + mockAgeRangeViewService = new MockAgeRangeViewService(); + mockBiddingStrategyService = new MockBiddingStrategyService(); + mockBillingSetupService = new MockBillingSetupService(); + mockCampaignAudienceViewService = new MockCampaignAudienceViewService(); + mockCampaignBidModifierService = new MockCampaignBidModifierService(); + mockCampaignBudgetService = new MockCampaignBudgetService(); + mockCampaignCriterionService = new MockCampaignCriterionService(); + mockCampaignFeedService = new MockCampaignFeedService(); + mockCampaignService = new MockCampaignService(); + mockCampaignSharedSetService = new MockCampaignSharedSetService(); + mockCarrierConstantService = new MockCarrierConstantService(); + mockChangeStatusService = new MockChangeStatusService(); + mockConversionActionService = new MockConversionActionService(); + mockCustomerClientLinkService = new MockCustomerClientLinkService(); + mockCustomerClientService = new MockCustomerClientService(); + mockCustomerFeedService = new MockCustomerFeedService(); + mockCustomerManagerLinkService = new MockCustomerManagerLinkService(); + mockCustomerService = new MockCustomerService(); + mockDisplayKeywordViewService = new MockDisplayKeywordViewService(); + mockFeedItemService = new MockFeedItemService(); + mockFeedMappingService = new MockFeedMappingService(); + mockFeedService = new MockFeedService(); + mockGenderViewService = new MockGenderViewService(); + mockGeoTargetConstantService = new MockGeoTargetConstantService(); + mockGoogleAdsFieldService = new MockGoogleAdsFieldService(); + mockSharedCriterionService = new MockSharedCriterionService(); + mockSharedSetService = new MockSharedSetService(); + mockUserListService = new MockUserListService(); + mockGoogleAdsService = new MockGoogleAdsService(); + mockHotelGroupViewService = new MockHotelGroupViewService(); + mockHotelPerformanceViewService = new MockHotelPerformanceViewService(); + mockKeywordPlanAdGroupService = new MockKeywordPlanAdGroupService(); + mockKeywordPlanCampaignService = new MockKeywordPlanCampaignService(); + mockKeywordPlanIdeaService = new MockKeywordPlanIdeaService(); + mockKeywordPlanKeywordService = new MockKeywordPlanKeywordService(); + mockKeywordPlanNegativeKeywordService = new MockKeywordPlanNegativeKeywordService(); + mockKeywordPlanService = new MockKeywordPlanService(); + mockKeywordViewService = new MockKeywordViewService(); + mockLanguageConstantService = new MockLanguageConstantService(); + mockManagedPlacementViewService = new MockManagedPlacementViewService(); + mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); + mockParentalStatusViewService = new MockParentalStatusViewService(); + mockPaymentsAccountService = new MockPaymentsAccountService(); + mockProductGroupViewService = new MockProductGroupViewService(); + mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); + mockSearchTermViewService = new MockSearchTermViewService(); + mockTopicConstantService = new MockTopicConstantService(); + mockTopicViewService = new MockTopicViewService(); + mockUserInterestService = new MockUserInterestService(); + mockVideoService = new MockVideoService(); + serviceHelper = + new MockServiceHelper( + "in-process-1", + Arrays.asList( + mockAccountBudgetProposalService, + mockAccountBudgetService, + mockAdGroupAdService, + mockAdGroupAudienceViewService, + mockAdGroupBidModifierService, + mockAdGroupCriterionService, + mockAdGroupFeedService, + mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, + mockAgeRangeViewService, + mockBiddingStrategyService, + mockBillingSetupService, + mockCampaignAudienceViewService, + mockCampaignBidModifierService, + mockCampaignBudgetService, + mockCampaignCriterionService, + mockCampaignFeedService, + mockCampaignService, + mockCampaignSharedSetService, + mockCarrierConstantService, + mockChangeStatusService, + mockConversionActionService, + mockCustomerClientLinkService, + mockCustomerClientService, + mockCustomerFeedService, + mockCustomerManagerLinkService, + mockCustomerService, + mockDisplayKeywordViewService, + mockFeedItemService, + mockFeedMappingService, + mockFeedService, + mockGenderViewService, + mockGeoTargetConstantService, + mockGoogleAdsFieldService, + mockSharedCriterionService, + mockSharedSetService, + mockUserListService, + mockGoogleAdsService, + mockHotelGroupViewService, + mockHotelPerformanceViewService, + mockKeywordPlanAdGroupService, + mockKeywordPlanCampaignService, + mockKeywordPlanIdeaService, + mockKeywordPlanKeywordService, + mockKeywordPlanNegativeKeywordService, + mockKeywordPlanService, + mockKeywordViewService, + mockLanguageConstantService, + mockManagedPlacementViewService, + mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, + mockParentalStatusViewService, + mockPaymentsAccountService, + mockProductGroupViewService, + mockRecommendationService, + mockRemarketingActionService, + mockSearchTermViewService, + mockTopicConstantService, + mockTopicViewService, + mockUserInterestService, + mockVideoService)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + AdParameterServiceSettings settings = + AdParameterServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AdParameterServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + @SuppressWarnings("all") + public void getAdParameterTest() { + String resourceName2 = "resourceName2625949903"; + AdParameter expectedResponse = AdParameter.newBuilder().setResourceName(resourceName2).build(); + mockAdParameterService.addResponse(expectedResponse); + + String formattedResourceName = + AdParameterServiceClient.formatAdParameterName("[CUSTOMER]", "[AD_PARAMETER]"); + + AdParameter actualResponse = client.getAdParameter(formattedResourceName); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdParameterService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAdParameterRequest actualRequest = (GetAdParameterRequest) actualRequests.get(0); + + Assert.assertEquals(formattedResourceName, actualRequest.getResourceName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getAdParameterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockAdParameterService.addException(exception); + + try { + String formattedResourceName = + AdParameterServiceClient.formatAdParameterName("[CUSTOMER]", "[AD_PARAMETER]"); + + client.getAdParameter(formattedResourceName); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void mutateAdParametersTest() { + MutateAdParametersResponse expectedResponse = MutateAdParametersResponse.newBuilder().build(); + mockAdParameterService.addResponse(expectedResponse); + + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; + + MutateAdParametersResponse actualResponse = + client.mutateAdParameters(customerId, operations, partialFailure, validateOnly); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdParameterService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MutateAdParametersRequest actualRequest = (MutateAdParametersRequest) actualRequests.get(0); + + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertEquals(partialFailure, actualRequest.getPartialFailure()); + Assert.assertEquals(validateOnly, actualRequest.getValidateOnly()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void mutateAdParametersExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockAdParameterService.addException(exception); + + try { + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; + + client.mutateAdParameters(customerId, operations, partialFailure, validateOnly); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void mutateAdParametersTest2() { + MutateAdParametersResponse expectedResponse = MutateAdParametersResponse.newBuilder().build(); + mockAdParameterService.addResponse(expectedResponse); + + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + + MutateAdParametersResponse actualResponse = client.mutateAdParameters(customerId, operations); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdParameterService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MutateAdParametersRequest actualRequest = (MutateAdParametersRequest) actualRequests.get(0); + + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void mutateAdParametersExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockAdParameterService.addException(exception); + + try { + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + + client.mutateAdParameters(customerId, operations); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } +} diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/AdScheduleViewServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/AdScheduleViewServiceClientTest.java new file mode 100644 index 0000000000..b7c18c5808 --- /dev/null +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/AdScheduleViewServiceClientTest.java @@ -0,0 +1,310 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services; + +import com.google.ads.googleads.v0.resources.AdScheduleView; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class AdScheduleViewServiceClientTest { + private static MockAccountBudgetProposalService mockAccountBudgetProposalService; + private static MockAccountBudgetService mockAccountBudgetService; + private static MockAdGroupAdService mockAdGroupAdService; + private static MockAdGroupAudienceViewService mockAdGroupAudienceViewService; + private static MockAdGroupBidModifierService mockAdGroupBidModifierService; + private static MockAdGroupCriterionService mockAdGroupCriterionService; + private static MockAdGroupFeedService mockAdGroupFeedService; + private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; + private static MockAgeRangeViewService mockAgeRangeViewService; + private static MockBiddingStrategyService mockBiddingStrategyService; + private static MockBillingSetupService mockBillingSetupService; + private static MockCampaignAudienceViewService mockCampaignAudienceViewService; + private static MockCampaignBidModifierService mockCampaignBidModifierService; + private static MockCampaignBudgetService mockCampaignBudgetService; + private static MockCampaignCriterionService mockCampaignCriterionService; + private static MockCampaignFeedService mockCampaignFeedService; + private static MockCampaignService mockCampaignService; + private static MockCampaignSharedSetService mockCampaignSharedSetService; + private static MockCarrierConstantService mockCarrierConstantService; + private static MockChangeStatusService mockChangeStatusService; + private static MockConversionActionService mockConversionActionService; + private static MockCustomerClientLinkService mockCustomerClientLinkService; + private static MockCustomerClientService mockCustomerClientService; + private static MockCustomerFeedService mockCustomerFeedService; + private static MockCustomerManagerLinkService mockCustomerManagerLinkService; + private static MockCustomerService mockCustomerService; + private static MockDisplayKeywordViewService mockDisplayKeywordViewService; + private static MockFeedItemService mockFeedItemService; + private static MockFeedMappingService mockFeedMappingService; + private static MockFeedService mockFeedService; + private static MockGenderViewService mockGenderViewService; + private static MockGeoTargetConstantService mockGeoTargetConstantService; + private static MockGoogleAdsFieldService mockGoogleAdsFieldService; + private static MockSharedCriterionService mockSharedCriterionService; + private static MockSharedSetService mockSharedSetService; + private static MockUserListService mockUserListService; + private static MockGoogleAdsService mockGoogleAdsService; + private static MockHotelGroupViewService mockHotelGroupViewService; + private static MockHotelPerformanceViewService mockHotelPerformanceViewService; + private static MockKeywordPlanAdGroupService mockKeywordPlanAdGroupService; + private static MockKeywordPlanCampaignService mockKeywordPlanCampaignService; + private static MockKeywordPlanIdeaService mockKeywordPlanIdeaService; + private static MockKeywordPlanKeywordService mockKeywordPlanKeywordService; + private static MockKeywordPlanNegativeKeywordService mockKeywordPlanNegativeKeywordService; + private static MockKeywordPlanService mockKeywordPlanService; + private static MockKeywordViewService mockKeywordViewService; + private static MockLanguageConstantService mockLanguageConstantService; + private static MockManagedPlacementViewService mockManagedPlacementViewService; + private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; + private static MockParentalStatusViewService mockParentalStatusViewService; + private static MockPaymentsAccountService mockPaymentsAccountService; + private static MockProductGroupViewService mockProductGroupViewService; + private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; + private static MockSearchTermViewService mockSearchTermViewService; + private static MockTopicConstantService mockTopicConstantService; + private static MockTopicViewService mockTopicViewService; + private static MockUserInterestService mockUserInterestService; + private static MockVideoService mockVideoService; + private static MockServiceHelper serviceHelper; + private AdScheduleViewServiceClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockAccountBudgetProposalService = new MockAccountBudgetProposalService(); + mockAccountBudgetService = new MockAccountBudgetService(); + mockAdGroupAdService = new MockAdGroupAdService(); + mockAdGroupAudienceViewService = new MockAdGroupAudienceViewService(); + mockAdGroupBidModifierService = new MockAdGroupBidModifierService(); + mockAdGroupCriterionService = new MockAdGroupCriterionService(); + mockAdGroupFeedService = new MockAdGroupFeedService(); + mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); + mockAgeRangeViewService = new MockAgeRangeViewService(); + mockBiddingStrategyService = new MockBiddingStrategyService(); + mockBillingSetupService = new MockBillingSetupService(); + mockCampaignAudienceViewService = new MockCampaignAudienceViewService(); + mockCampaignBidModifierService = new MockCampaignBidModifierService(); + mockCampaignBudgetService = new MockCampaignBudgetService(); + mockCampaignCriterionService = new MockCampaignCriterionService(); + mockCampaignFeedService = new MockCampaignFeedService(); + mockCampaignService = new MockCampaignService(); + mockCampaignSharedSetService = new MockCampaignSharedSetService(); + mockCarrierConstantService = new MockCarrierConstantService(); + mockChangeStatusService = new MockChangeStatusService(); + mockConversionActionService = new MockConversionActionService(); + mockCustomerClientLinkService = new MockCustomerClientLinkService(); + mockCustomerClientService = new MockCustomerClientService(); + mockCustomerFeedService = new MockCustomerFeedService(); + mockCustomerManagerLinkService = new MockCustomerManagerLinkService(); + mockCustomerService = new MockCustomerService(); + mockDisplayKeywordViewService = new MockDisplayKeywordViewService(); + mockFeedItemService = new MockFeedItemService(); + mockFeedMappingService = new MockFeedMappingService(); + mockFeedService = new MockFeedService(); + mockGenderViewService = new MockGenderViewService(); + mockGeoTargetConstantService = new MockGeoTargetConstantService(); + mockGoogleAdsFieldService = new MockGoogleAdsFieldService(); + mockSharedCriterionService = new MockSharedCriterionService(); + mockSharedSetService = new MockSharedSetService(); + mockUserListService = new MockUserListService(); + mockGoogleAdsService = new MockGoogleAdsService(); + mockHotelGroupViewService = new MockHotelGroupViewService(); + mockHotelPerformanceViewService = new MockHotelPerformanceViewService(); + mockKeywordPlanAdGroupService = new MockKeywordPlanAdGroupService(); + mockKeywordPlanCampaignService = new MockKeywordPlanCampaignService(); + mockKeywordPlanIdeaService = new MockKeywordPlanIdeaService(); + mockKeywordPlanKeywordService = new MockKeywordPlanKeywordService(); + mockKeywordPlanNegativeKeywordService = new MockKeywordPlanNegativeKeywordService(); + mockKeywordPlanService = new MockKeywordPlanService(); + mockKeywordViewService = new MockKeywordViewService(); + mockLanguageConstantService = new MockLanguageConstantService(); + mockManagedPlacementViewService = new MockManagedPlacementViewService(); + mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); + mockParentalStatusViewService = new MockParentalStatusViewService(); + mockPaymentsAccountService = new MockPaymentsAccountService(); + mockProductGroupViewService = new MockProductGroupViewService(); + mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); + mockSearchTermViewService = new MockSearchTermViewService(); + mockTopicConstantService = new MockTopicConstantService(); + mockTopicViewService = new MockTopicViewService(); + mockUserInterestService = new MockUserInterestService(); + mockVideoService = new MockVideoService(); + serviceHelper = + new MockServiceHelper( + "in-process-1", + Arrays.asList( + mockAccountBudgetProposalService, + mockAccountBudgetService, + mockAdGroupAdService, + mockAdGroupAudienceViewService, + mockAdGroupBidModifierService, + mockAdGroupCriterionService, + mockAdGroupFeedService, + mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, + mockAgeRangeViewService, + mockBiddingStrategyService, + mockBillingSetupService, + mockCampaignAudienceViewService, + mockCampaignBidModifierService, + mockCampaignBudgetService, + mockCampaignCriterionService, + mockCampaignFeedService, + mockCampaignService, + mockCampaignSharedSetService, + mockCarrierConstantService, + mockChangeStatusService, + mockConversionActionService, + mockCustomerClientLinkService, + mockCustomerClientService, + mockCustomerFeedService, + mockCustomerManagerLinkService, + mockCustomerService, + mockDisplayKeywordViewService, + mockFeedItemService, + mockFeedMappingService, + mockFeedService, + mockGenderViewService, + mockGeoTargetConstantService, + mockGoogleAdsFieldService, + mockSharedCriterionService, + mockSharedSetService, + mockUserListService, + mockGoogleAdsService, + mockHotelGroupViewService, + mockHotelPerformanceViewService, + mockKeywordPlanAdGroupService, + mockKeywordPlanCampaignService, + mockKeywordPlanIdeaService, + mockKeywordPlanKeywordService, + mockKeywordPlanNegativeKeywordService, + mockKeywordPlanService, + mockKeywordViewService, + mockLanguageConstantService, + mockManagedPlacementViewService, + mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, + mockParentalStatusViewService, + mockPaymentsAccountService, + mockProductGroupViewService, + mockRecommendationService, + mockRemarketingActionService, + mockSearchTermViewService, + mockTopicConstantService, + mockTopicViewService, + mockUserInterestService, + mockVideoService)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + AdScheduleViewServiceSettings settings = + AdScheduleViewServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AdScheduleViewServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + @SuppressWarnings("all") + public void getAdScheduleViewTest() { + String resourceName2 = "resourceName2625949903"; + AdScheduleView expectedResponse = + AdScheduleView.newBuilder().setResourceName(resourceName2).build(); + mockAdScheduleViewService.addResponse(expectedResponse); + + String formattedResourceName = + AdScheduleViewServiceClient.formatAdScheduleViewName("[CUSTOMER]", "[AD_SCHEDULE_VIEW]"); + + AdScheduleView actualResponse = client.getAdScheduleView(formattedResourceName); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdScheduleViewService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAdScheduleViewRequest actualRequest = (GetAdScheduleViewRequest) actualRequests.get(0); + + Assert.assertEquals(formattedResourceName, actualRequest.getResourceName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getAdScheduleViewExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockAdScheduleViewService.addException(exception); + + try { + String formattedResourceName = + AdScheduleViewServiceClient.formatAdScheduleViewName("[CUSTOMER]", "[AD_SCHEDULE_VIEW]"); + + client.getAdScheduleView(formattedResourceName); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } +} diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/AgeRangeViewServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/AgeRangeViewServiceClientTest.java index 1dada6910b..b617c92efc 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/AgeRangeViewServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/AgeRangeViewServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,6 +46,8 @@ public class AgeRangeViewServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -54,7 +56,6 @@ public class AgeRangeViewServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -88,10 +89,15 @@ public class AgeRangeViewServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -111,6 +117,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -119,7 +127,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -153,10 +160,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -174,6 +185,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -182,7 +195,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -216,10 +228,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/BiddingStrategyServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/BiddingStrategyServiceClientTest.java index b7404e1b5f..92742ae3ac 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/BiddingStrategyServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/BiddingStrategyServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,6 +47,8 @@ public class BiddingStrategyServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -55,7 +57,6 @@ public class BiddingStrategyServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -89,10 +90,15 @@ public class BiddingStrategyServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -112,6 +118,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -120,7 +128,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -154,10 +161,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -175,6 +186,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -183,7 +196,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -217,10 +229,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, @@ -303,9 +319,11 @@ public void mutateBiddingStrategiesTest() { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; MutateBiddingStrategiesResponse actualResponse = - client.mutateBiddingStrategies(customerId, operations); + client.mutateBiddingStrategies(customerId, operations, partialFailure, validateOnly); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockBiddingStrategyService.getRequests(); @@ -315,6 +333,8 @@ public void mutateBiddingStrategiesTest() { Assert.assertEquals(customerId, actualRequest.getCustomerId()); Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertEquals(partialFailure, actualRequest.getPartialFailure()); + Assert.assertEquals(validateOnly, actualRequest.getValidateOnly()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -327,6 +347,52 @@ public void mutateBiddingStrategiesExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockBiddingStrategyService.addException(exception); + try { + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; + + client.mutateBiddingStrategies(customerId, operations, partialFailure, validateOnly); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void mutateBiddingStrategiesTest2() { + MutateBiddingStrategiesResponse expectedResponse = + MutateBiddingStrategiesResponse.newBuilder().build(); + mockBiddingStrategyService.addResponse(expectedResponse); + + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + + MutateBiddingStrategiesResponse actualResponse = + client.mutateBiddingStrategies(customerId, operations); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBiddingStrategyService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MutateBiddingStrategiesRequest actualRequest = + (MutateBiddingStrategiesRequest) actualRequests.get(0); + + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void mutateBiddingStrategiesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockBiddingStrategyService.addException(exception); + try { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/BillingSetupServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/BillingSetupServiceClientTest.java index d26c3772ea..24710635ac 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/BillingSetupServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/BillingSetupServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,6 +46,8 @@ public class BillingSetupServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -54,7 +56,6 @@ public class BillingSetupServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -88,10 +89,15 @@ public class BillingSetupServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -111,6 +117,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -119,7 +127,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -153,10 +160,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -174,6 +185,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -182,7 +195,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -216,10 +228,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/CampaignAudienceViewServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/CampaignAudienceViewServiceClientTest.java index 5fb5ee1793..245814f35d 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/CampaignAudienceViewServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/CampaignAudienceViewServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,6 +46,8 @@ public class CampaignAudienceViewServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -54,7 +56,6 @@ public class CampaignAudienceViewServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -88,10 +89,15 @@ public class CampaignAudienceViewServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -111,6 +117,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -119,7 +127,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -153,10 +160,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -174,6 +185,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -182,7 +195,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -216,10 +228,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/CampaignBidModifierServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/CampaignBidModifierServiceClientTest.java index 04d92e946f..75520b0cbc 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/CampaignBidModifierServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/CampaignBidModifierServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,6 +47,8 @@ public class CampaignBidModifierServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -55,7 +57,6 @@ public class CampaignBidModifierServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -89,10 +90,15 @@ public class CampaignBidModifierServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -112,6 +118,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -120,7 +128,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -154,10 +161,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -175,6 +186,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -183,7 +196,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -217,10 +229,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, @@ -305,9 +321,11 @@ public void mutateCampaignBidModifiersTest() { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; MutateCampaignBidModifiersResponse actualResponse = - client.mutateCampaignBidModifiers(customerId, operations); + client.mutateCampaignBidModifiers(customerId, operations, partialFailure, validateOnly); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockCampaignBidModifierService.getRequests(); @@ -317,6 +335,8 @@ public void mutateCampaignBidModifiersTest() { Assert.assertEquals(customerId, actualRequest.getCustomerId()); Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertEquals(partialFailure, actualRequest.getPartialFailure()); + Assert.assertEquals(validateOnly, actualRequest.getValidateOnly()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -329,6 +349,52 @@ public void mutateCampaignBidModifiersExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockCampaignBidModifierService.addException(exception); + try { + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; + + client.mutateCampaignBidModifiers(customerId, operations, partialFailure, validateOnly); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void mutateCampaignBidModifiersTest2() { + MutateCampaignBidModifiersResponse expectedResponse = + MutateCampaignBidModifiersResponse.newBuilder().build(); + mockCampaignBidModifierService.addResponse(expectedResponse); + + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + + MutateCampaignBidModifiersResponse actualResponse = + client.mutateCampaignBidModifiers(customerId, operations); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCampaignBidModifierService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MutateCampaignBidModifiersRequest actualRequest = + (MutateCampaignBidModifiersRequest) actualRequests.get(0); + + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void mutateCampaignBidModifiersExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCampaignBidModifierService.addException(exception); + try { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/CampaignBudgetServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/CampaignBudgetServiceClientTest.java index 7829c84468..d09d6b269d 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/CampaignBudgetServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/CampaignBudgetServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,6 +47,8 @@ public class CampaignBudgetServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -55,7 +57,6 @@ public class CampaignBudgetServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -89,10 +90,15 @@ public class CampaignBudgetServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -112,6 +118,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -120,7 +128,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -154,10 +161,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -175,6 +186,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -183,7 +196,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -217,10 +229,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, @@ -302,9 +318,11 @@ public void mutateCampaignBudgetsTest() { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; MutateCampaignBudgetsResponse actualResponse = - client.mutateCampaignBudgets(customerId, operations); + client.mutateCampaignBudgets(customerId, operations, partialFailure, validateOnly); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockCampaignBudgetService.getRequests(); @@ -314,6 +332,8 @@ public void mutateCampaignBudgetsTest() { Assert.assertEquals(customerId, actualRequest.getCustomerId()); Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertEquals(partialFailure, actualRequest.getPartialFailure()); + Assert.assertEquals(validateOnly, actualRequest.getValidateOnly()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -326,6 +346,52 @@ public void mutateCampaignBudgetsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockCampaignBudgetService.addException(exception); + try { + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; + + client.mutateCampaignBudgets(customerId, operations, partialFailure, validateOnly); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void mutateCampaignBudgetsTest2() { + MutateCampaignBudgetsResponse expectedResponse = + MutateCampaignBudgetsResponse.newBuilder().build(); + mockCampaignBudgetService.addResponse(expectedResponse); + + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + + MutateCampaignBudgetsResponse actualResponse = + client.mutateCampaignBudgets(customerId, operations); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCampaignBudgetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MutateCampaignBudgetsRequest actualRequest = + (MutateCampaignBudgetsRequest) actualRequests.get(0); + + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void mutateCampaignBudgetsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCampaignBudgetService.addException(exception); + try { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/CampaignCriterionServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/CampaignCriterionServiceClientTest.java index ecab96c1ce..494449112f 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/CampaignCriterionServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/CampaignCriterionServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,6 +47,8 @@ public class CampaignCriterionServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -55,7 +57,6 @@ public class CampaignCriterionServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -89,10 +90,15 @@ public class CampaignCriterionServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -112,6 +118,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -120,7 +128,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -154,10 +161,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -175,6 +186,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -183,7 +196,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -217,10 +229,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, @@ -304,9 +320,11 @@ public void mutateCampaignCriteriaTest() { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; MutateCampaignCriteriaResponse actualResponse = - client.mutateCampaignCriteria(customerId, operations); + client.mutateCampaignCriteria(customerId, operations, partialFailure, validateOnly); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockCampaignCriterionService.getRequests(); @@ -316,6 +334,8 @@ public void mutateCampaignCriteriaTest() { Assert.assertEquals(customerId, actualRequest.getCustomerId()); Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertEquals(partialFailure, actualRequest.getPartialFailure()); + Assert.assertEquals(validateOnly, actualRequest.getValidateOnly()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -328,6 +348,52 @@ public void mutateCampaignCriteriaExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockCampaignCriterionService.addException(exception); + try { + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; + + client.mutateCampaignCriteria(customerId, operations, partialFailure, validateOnly); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void mutateCampaignCriteriaTest2() { + MutateCampaignCriteriaResponse expectedResponse = + MutateCampaignCriteriaResponse.newBuilder().build(); + mockCampaignCriterionService.addResponse(expectedResponse); + + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + + MutateCampaignCriteriaResponse actualResponse = + client.mutateCampaignCriteria(customerId, operations); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCampaignCriterionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MutateCampaignCriteriaRequest actualRequest = + (MutateCampaignCriteriaRequest) actualRequests.get(0); + + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void mutateCampaignCriteriaExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCampaignCriterionService.addException(exception); + try { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/CampaignFeedServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/CampaignFeedServiceClientTest.java index 57854f082a..9d2201f02f 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/CampaignFeedServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/CampaignFeedServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,6 +47,8 @@ public class CampaignFeedServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -55,7 +57,6 @@ public class CampaignFeedServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -89,10 +90,15 @@ public class CampaignFeedServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -112,6 +118,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -120,7 +128,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -154,10 +161,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -175,6 +186,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -183,7 +196,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -217,10 +229,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, @@ -301,8 +317,11 @@ public void mutateCampaignFeedsTest() { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; - MutateCampaignFeedsResponse actualResponse = client.mutateCampaignFeeds(customerId, operations); + MutateCampaignFeedsResponse actualResponse = + client.mutateCampaignFeeds(customerId, operations, partialFailure, validateOnly); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockCampaignFeedService.getRequests(); @@ -311,6 +330,8 @@ public void mutateCampaignFeedsTest() { Assert.assertEquals(customerId, actualRequest.getCustomerId()); Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertEquals(partialFailure, actualRequest.getPartialFailure()); + Assert.assertEquals(validateOnly, actualRequest.getValidateOnly()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -323,6 +344,49 @@ public void mutateCampaignFeedsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockCampaignFeedService.addException(exception); + try { + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; + + client.mutateCampaignFeeds(customerId, operations, partialFailure, validateOnly); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void mutateCampaignFeedsTest2() { + MutateCampaignFeedsResponse expectedResponse = MutateCampaignFeedsResponse.newBuilder().build(); + mockCampaignFeedService.addResponse(expectedResponse); + + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + + MutateCampaignFeedsResponse actualResponse = client.mutateCampaignFeeds(customerId, operations); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCampaignFeedService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MutateCampaignFeedsRequest actualRequest = (MutateCampaignFeedsRequest) actualRequests.get(0); + + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void mutateCampaignFeedsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCampaignFeedService.addException(exception); + try { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/CampaignServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/CampaignServiceClientTest.java index b8832bb89b..d1a875fe11 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/CampaignServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/CampaignServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,6 +47,8 @@ public class CampaignServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -55,7 +57,6 @@ public class CampaignServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -89,10 +90,15 @@ public class CampaignServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -112,6 +118,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -120,7 +128,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -154,10 +161,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -175,6 +186,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -183,7 +196,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -217,10 +229,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, @@ -300,8 +316,11 @@ public void mutateCampaignsTest() { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; - MutateCampaignsResponse actualResponse = client.mutateCampaigns(customerId, operations); + MutateCampaignsResponse actualResponse = + client.mutateCampaigns(customerId, operations, partialFailure, validateOnly); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockCampaignService.getRequests(); @@ -310,6 +329,8 @@ public void mutateCampaignsTest() { Assert.assertEquals(customerId, actualRequest.getCustomerId()); Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertEquals(partialFailure, actualRequest.getPartialFailure()); + Assert.assertEquals(validateOnly, actualRequest.getValidateOnly()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -322,6 +343,49 @@ public void mutateCampaignsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockCampaignService.addException(exception); + try { + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; + + client.mutateCampaigns(customerId, operations, partialFailure, validateOnly); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void mutateCampaignsTest2() { + MutateCampaignsResponse expectedResponse = MutateCampaignsResponse.newBuilder().build(); + mockCampaignService.addResponse(expectedResponse); + + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + + MutateCampaignsResponse actualResponse = client.mutateCampaigns(customerId, operations); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCampaignService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MutateCampaignsRequest actualRequest = (MutateCampaignsRequest) actualRequests.get(0); + + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void mutateCampaignsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCampaignService.addException(exception); + try { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/CampaignSharedSetServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/CampaignSharedSetServiceClientTest.java index 1dfe1c28cb..1b81f1274f 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/CampaignSharedSetServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/CampaignSharedSetServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,6 +47,8 @@ public class CampaignSharedSetServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -55,7 +57,6 @@ public class CampaignSharedSetServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -89,10 +90,15 @@ public class CampaignSharedSetServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -112,6 +118,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -120,7 +128,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -154,10 +161,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -175,6 +186,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -183,7 +196,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -217,10 +229,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, @@ -304,9 +320,11 @@ public void mutateCampaignSharedSetsTest() { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; MutateCampaignSharedSetsResponse actualResponse = - client.mutateCampaignSharedSets(customerId, operations); + client.mutateCampaignSharedSets(customerId, operations, partialFailure, validateOnly); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockCampaignSharedSetService.getRequests(); @@ -316,6 +334,8 @@ public void mutateCampaignSharedSetsTest() { Assert.assertEquals(customerId, actualRequest.getCustomerId()); Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertEquals(partialFailure, actualRequest.getPartialFailure()); + Assert.assertEquals(validateOnly, actualRequest.getValidateOnly()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -328,6 +348,52 @@ public void mutateCampaignSharedSetsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockCampaignSharedSetService.addException(exception); + try { + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; + + client.mutateCampaignSharedSets(customerId, operations, partialFailure, validateOnly); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void mutateCampaignSharedSetsTest2() { + MutateCampaignSharedSetsResponse expectedResponse = + MutateCampaignSharedSetsResponse.newBuilder().build(); + mockCampaignSharedSetService.addResponse(expectedResponse); + + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + + MutateCampaignSharedSetsResponse actualResponse = + client.mutateCampaignSharedSets(customerId, operations); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCampaignSharedSetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MutateCampaignSharedSetsRequest actualRequest = + (MutateCampaignSharedSetsRequest) actualRequests.get(0); + + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void mutateCampaignSharedSetsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCampaignSharedSetService.addException(exception); + try { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/CarrierConstantServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/CarrierConstantServiceClientTest.java index df2d5c1d01..39df5b822a 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/CarrierConstantServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/CarrierConstantServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,6 +46,8 @@ public class CarrierConstantServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -54,7 +56,6 @@ public class CarrierConstantServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -88,10 +89,15 @@ public class CarrierConstantServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -111,6 +117,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -119,7 +127,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -153,10 +160,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -174,6 +185,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -182,7 +195,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -216,10 +228,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/ChangeStatusServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/ChangeStatusServiceClientTest.java index 9cfde8d56b..ab9e9f7b53 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/ChangeStatusServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/ChangeStatusServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,6 +46,8 @@ public class ChangeStatusServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -54,7 +56,6 @@ public class ChangeStatusServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -88,10 +89,15 @@ public class ChangeStatusServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -111,6 +117,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -119,7 +127,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -153,10 +160,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -174,6 +185,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -182,7 +195,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -216,10 +228,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/ConversionActionServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/ConversionActionServiceClientTest.java index 1814e27244..dd65a46ce8 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/ConversionActionServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/ConversionActionServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,6 +47,8 @@ public class ConversionActionServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -55,7 +57,6 @@ public class ConversionActionServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -89,10 +90,15 @@ public class ConversionActionServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -112,6 +118,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -120,7 +128,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -154,10 +161,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -175,6 +186,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -183,7 +196,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -217,10 +229,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, @@ -304,9 +320,11 @@ public void mutateConversionActionsTest() { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; MutateConversionActionsResponse actualResponse = - client.mutateConversionActions(customerId, operations); + client.mutateConversionActions(customerId, operations, partialFailure, validateOnly); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockConversionActionService.getRequests(); @@ -316,6 +334,8 @@ public void mutateConversionActionsTest() { Assert.assertEquals(customerId, actualRequest.getCustomerId()); Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertEquals(partialFailure, actualRequest.getPartialFailure()); + Assert.assertEquals(validateOnly, actualRequest.getValidateOnly()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -328,6 +348,52 @@ public void mutateConversionActionsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockConversionActionService.addException(exception); + try { + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; + + client.mutateConversionActions(customerId, operations, partialFailure, validateOnly); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void mutateConversionActionsTest2() { + MutateConversionActionsResponse expectedResponse = + MutateConversionActionsResponse.newBuilder().build(); + mockConversionActionService.addResponse(expectedResponse); + + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + + MutateConversionActionsResponse actualResponse = + client.mutateConversionActions(customerId, operations); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConversionActionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MutateConversionActionsRequest actualRequest = + (MutateConversionActionsRequest) actualRequests.get(0); + + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void mutateConversionActionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockConversionActionService.addException(exception); + try { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/CustomerClientLinkServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/CustomerClientLinkServiceClientTest.java index 3eebcba29f..a960e7c612 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/CustomerClientLinkServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/CustomerClientLinkServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,6 +46,8 @@ public class CustomerClientLinkServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -54,7 +56,6 @@ public class CustomerClientLinkServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -88,10 +89,15 @@ public class CustomerClientLinkServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -111,6 +117,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -119,7 +127,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -153,10 +160,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -174,6 +185,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -182,7 +195,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -216,10 +228,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, @@ -294,4 +310,48 @@ public void getCustomerClientLinkExceptionTest() throws Exception { // Expected exception } } + + @Test + @SuppressWarnings("all") + public void mutateCustomerClientLinkTest() { + MutateCustomerClientLinkResponse expectedResponse = + MutateCustomerClientLinkResponse.newBuilder().build(); + mockCustomerClientLinkService.addResponse(expectedResponse); + + String customerId = "customerId-1772061412"; + CustomerClientLinkOperation operation = CustomerClientLinkOperation.newBuilder().build(); + + MutateCustomerClientLinkResponse actualResponse = + client.mutateCustomerClientLink(customerId, operation); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCustomerClientLinkService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MutateCustomerClientLinkRequest actualRequest = + (MutateCustomerClientLinkRequest) actualRequests.get(0); + + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertEquals(operation, actualRequest.getOperation()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void mutateCustomerClientLinkExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCustomerClientLinkService.addException(exception); + + try { + String customerId = "customerId-1772061412"; + CustomerClientLinkOperation operation = CustomerClientLinkOperation.newBuilder().build(); + + client.mutateCustomerClientLink(customerId, operation); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } } diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/CustomerClientServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/CustomerClientServiceClientTest.java index acf1c1e424..887ea99ec4 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/CustomerClientServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/CustomerClientServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,6 +46,8 @@ public class CustomerClientServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -54,7 +56,6 @@ public class CustomerClientServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -88,10 +89,15 @@ public class CustomerClientServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -111,6 +117,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -119,7 +127,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -153,10 +160,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -174,6 +185,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -182,7 +195,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -216,10 +228,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/CustomerFeedServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/CustomerFeedServiceClientTest.java index 6c99512295..aaa50385e0 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/CustomerFeedServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/CustomerFeedServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,6 +47,8 @@ public class CustomerFeedServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -55,7 +57,6 @@ public class CustomerFeedServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -89,10 +90,15 @@ public class CustomerFeedServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -112,6 +118,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -120,7 +128,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -154,10 +161,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -175,6 +186,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -183,7 +196,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -217,10 +229,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, @@ -301,8 +317,11 @@ public void mutateCustomerFeedsTest() { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; - MutateCustomerFeedsResponse actualResponse = client.mutateCustomerFeeds(customerId, operations); + MutateCustomerFeedsResponse actualResponse = + client.mutateCustomerFeeds(customerId, operations, partialFailure, validateOnly); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockCustomerFeedService.getRequests(); @@ -311,6 +330,8 @@ public void mutateCustomerFeedsTest() { Assert.assertEquals(customerId, actualRequest.getCustomerId()); Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertEquals(partialFailure, actualRequest.getPartialFailure()); + Assert.assertEquals(validateOnly, actualRequest.getValidateOnly()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -323,6 +344,49 @@ public void mutateCustomerFeedsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockCustomerFeedService.addException(exception); + try { + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; + + client.mutateCustomerFeeds(customerId, operations, partialFailure, validateOnly); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void mutateCustomerFeedsTest2() { + MutateCustomerFeedsResponse expectedResponse = MutateCustomerFeedsResponse.newBuilder().build(); + mockCustomerFeedService.addResponse(expectedResponse); + + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + + MutateCustomerFeedsResponse actualResponse = client.mutateCustomerFeeds(customerId, operations); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCustomerFeedService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MutateCustomerFeedsRequest actualRequest = (MutateCustomerFeedsRequest) actualRequests.get(0); + + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void mutateCustomerFeedsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCustomerFeedService.addException(exception); + try { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/CustomerManagerLinkServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/CustomerManagerLinkServiceClientTest.java index d7a6601e6c..6d87c39638 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/CustomerManagerLinkServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/CustomerManagerLinkServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,6 +27,7 @@ import io.grpc.Status; import io.grpc.StatusRuntimeException; import java.io.IOException; +import java.util.ArrayList; import java.util.Arrays; import java.util.List; import org.junit.After; @@ -46,6 +47,8 @@ public class CustomerManagerLinkServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -54,7 +57,6 @@ public class CustomerManagerLinkServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -88,10 +90,15 @@ public class CustomerManagerLinkServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -111,6 +118,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -119,7 +128,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -153,10 +161,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -174,6 +186,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -182,7 +196,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -216,10 +229,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, @@ -294,4 +311,48 @@ public void getCustomerManagerLinkExceptionTest() throws Exception { // Expected exception } } + + @Test + @SuppressWarnings("all") + public void mutateCustomerManagerLinkTest() { + MutateCustomerManagerLinkResponse expectedResponse = + MutateCustomerManagerLinkResponse.newBuilder().build(); + mockCustomerManagerLinkService.addResponse(expectedResponse); + + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + + MutateCustomerManagerLinkResponse actualResponse = + client.mutateCustomerManagerLink(customerId, operations); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCustomerManagerLinkService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MutateCustomerManagerLinkRequest actualRequest = + (MutateCustomerManagerLinkRequest) actualRequests.get(0); + + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void mutateCustomerManagerLinkExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCustomerManagerLinkService.addException(exception); + + try { + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + + client.mutateCustomerManagerLink(customerId, operations); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } } diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/CustomerServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/CustomerServiceClientTest.java index fc0e199829..ce62e89acb 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/CustomerServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/CustomerServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,6 +46,8 @@ public class CustomerServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -54,7 +56,6 @@ public class CustomerServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -88,10 +89,15 @@ public class CustomerServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -111,6 +117,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -119,7 +127,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -153,10 +160,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -174,6 +185,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -182,7 +195,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -216,10 +228,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, @@ -297,8 +313,10 @@ public void mutateCustomerTest() { String customerId = "customerId-1772061412"; CustomerOperation operation = CustomerOperation.newBuilder().build(); + boolean validateOnly = false; - MutateCustomerResponse actualResponse = client.mutateCustomer(customerId, operation); + MutateCustomerResponse actualResponse = + client.mutateCustomer(customerId, operation, validateOnly); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockCustomerService.getRequests(); @@ -307,6 +325,7 @@ public void mutateCustomerTest() { Assert.assertEquals(customerId, actualRequest.getCustomerId()); Assert.assertEquals(operation, actualRequest.getOperation()); + Assert.assertEquals(validateOnly, actualRequest.getValidateOnly()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -319,6 +338,48 @@ public void mutateCustomerExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockCustomerService.addException(exception); + try { + String customerId = "customerId-1772061412"; + CustomerOperation operation = CustomerOperation.newBuilder().build(); + boolean validateOnly = false; + + client.mutateCustomer(customerId, operation, validateOnly); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void mutateCustomerTest2() { + MutateCustomerResponse expectedResponse = MutateCustomerResponse.newBuilder().build(); + mockCustomerService.addResponse(expectedResponse); + + String customerId = "customerId-1772061412"; + CustomerOperation operation = CustomerOperation.newBuilder().build(); + + MutateCustomerResponse actualResponse = client.mutateCustomer(customerId, operation); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCustomerService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MutateCustomerRequest actualRequest = (MutateCustomerRequest) actualRequests.get(0); + + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertEquals(operation, actualRequest.getOperation()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void mutateCustomerExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockCustomerService.addException(exception); + try { String customerId = "customerId-1772061412"; CustomerOperation operation = CustomerOperation.newBuilder().build(); diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/DisplayKeywordViewServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/DisplayKeywordViewServiceClientTest.java index 3319dc6bf3..5ff3c6b8aa 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/DisplayKeywordViewServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/DisplayKeywordViewServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,6 +46,8 @@ public class DisplayKeywordViewServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -54,7 +56,6 @@ public class DisplayKeywordViewServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -88,10 +89,15 @@ public class DisplayKeywordViewServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -111,6 +117,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -119,7 +127,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -153,10 +160,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -174,6 +185,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -182,7 +195,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -216,10 +228,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/FeedItemServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/FeedItemServiceClientTest.java index eaf64f7ba8..bc2d758796 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/FeedItemServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/FeedItemServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,6 +47,8 @@ public class FeedItemServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -55,7 +57,6 @@ public class FeedItemServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -89,10 +90,15 @@ public class FeedItemServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -112,6 +118,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -120,7 +128,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -154,10 +161,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -175,6 +186,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -183,7 +196,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -217,10 +229,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, @@ -300,8 +316,11 @@ public void mutateFeedItemsTest() { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; - MutateFeedItemsResponse actualResponse = client.mutateFeedItems(customerId, operations); + MutateFeedItemsResponse actualResponse = + client.mutateFeedItems(customerId, operations, partialFailure, validateOnly); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockFeedItemService.getRequests(); @@ -310,6 +329,8 @@ public void mutateFeedItemsTest() { Assert.assertEquals(customerId, actualRequest.getCustomerId()); Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertEquals(partialFailure, actualRequest.getPartialFailure()); + Assert.assertEquals(validateOnly, actualRequest.getValidateOnly()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -322,6 +343,49 @@ public void mutateFeedItemsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockFeedItemService.addException(exception); + try { + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; + + client.mutateFeedItems(customerId, operations, partialFailure, validateOnly); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void mutateFeedItemsTest2() { + MutateFeedItemsResponse expectedResponse = MutateFeedItemsResponse.newBuilder().build(); + mockFeedItemService.addResponse(expectedResponse); + + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + + MutateFeedItemsResponse actualResponse = client.mutateFeedItems(customerId, operations); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFeedItemService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MutateFeedItemsRequest actualRequest = (MutateFeedItemsRequest) actualRequests.get(0); + + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void mutateFeedItemsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockFeedItemService.addException(exception); + try { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/FeedMappingServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/FeedMappingServiceClientTest.java index 410f973c1d..c4d95c897e 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/FeedMappingServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/FeedMappingServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,6 +47,8 @@ public class FeedMappingServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -55,7 +57,6 @@ public class FeedMappingServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -89,10 +90,15 @@ public class FeedMappingServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -112,6 +118,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -120,7 +128,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -154,10 +161,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -175,6 +186,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -183,7 +196,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -217,10 +229,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, @@ -300,8 +316,11 @@ public void mutateFeedMappingsTest() { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; - MutateFeedMappingsResponse actualResponse = client.mutateFeedMappings(customerId, operations); + MutateFeedMappingsResponse actualResponse = + client.mutateFeedMappings(customerId, operations, partialFailure, validateOnly); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockFeedMappingService.getRequests(); @@ -310,6 +329,8 @@ public void mutateFeedMappingsTest() { Assert.assertEquals(customerId, actualRequest.getCustomerId()); Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertEquals(partialFailure, actualRequest.getPartialFailure()); + Assert.assertEquals(validateOnly, actualRequest.getValidateOnly()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -322,6 +343,49 @@ public void mutateFeedMappingsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockFeedMappingService.addException(exception); + try { + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; + + client.mutateFeedMappings(customerId, operations, partialFailure, validateOnly); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void mutateFeedMappingsTest2() { + MutateFeedMappingsResponse expectedResponse = MutateFeedMappingsResponse.newBuilder().build(); + mockFeedMappingService.addResponse(expectedResponse); + + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + + MutateFeedMappingsResponse actualResponse = client.mutateFeedMappings(customerId, operations); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFeedMappingService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MutateFeedMappingsRequest actualRequest = (MutateFeedMappingsRequest) actualRequests.get(0); + + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void mutateFeedMappingsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockFeedMappingService.addException(exception); + try { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/FeedServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/FeedServiceClientTest.java index 0b696aa7f1..b4c38dee4b 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/FeedServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/FeedServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,6 +47,8 @@ public class FeedServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -55,7 +57,6 @@ public class FeedServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -89,10 +90,15 @@ public class FeedServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -112,6 +118,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -120,7 +128,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -154,10 +161,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -175,6 +186,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -183,7 +196,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -217,10 +229,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, @@ -298,8 +314,11 @@ public void mutateFeedsTest() { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; - MutateFeedsResponse actualResponse = client.mutateFeeds(customerId, operations); + MutateFeedsResponse actualResponse = + client.mutateFeeds(customerId, operations, partialFailure, validateOnly); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockFeedService.getRequests(); @@ -308,6 +327,8 @@ public void mutateFeedsTest() { Assert.assertEquals(customerId, actualRequest.getCustomerId()); Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertEquals(partialFailure, actualRequest.getPartialFailure()); + Assert.assertEquals(validateOnly, actualRequest.getValidateOnly()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -320,6 +341,49 @@ public void mutateFeedsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockFeedService.addException(exception); + try { + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; + + client.mutateFeeds(customerId, operations, partialFailure, validateOnly); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void mutateFeedsTest2() { + MutateFeedsResponse expectedResponse = MutateFeedsResponse.newBuilder().build(); + mockFeedService.addResponse(expectedResponse); + + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + + MutateFeedsResponse actualResponse = client.mutateFeeds(customerId, operations); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFeedService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MutateFeedsRequest actualRequest = (MutateFeedsRequest) actualRequests.get(0); + + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void mutateFeedsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockFeedService.addException(exception); + try { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/GenderViewServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/GenderViewServiceClientTest.java index 0d866cf3fd..9c3626f1a2 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/GenderViewServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/GenderViewServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,6 +46,8 @@ public class GenderViewServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -54,7 +56,6 @@ public class GenderViewServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -88,10 +89,15 @@ public class GenderViewServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -111,6 +117,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -119,7 +127,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -153,10 +160,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -174,6 +185,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -182,7 +195,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -216,10 +228,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/GeoTargetConstantServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/GeoTargetConstantServiceClientTest.java index 2a93edbc70..4b677b4395 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/GeoTargetConstantServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/GeoTargetConstantServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,6 +47,8 @@ public class GeoTargetConstantServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -55,7 +57,6 @@ public class GeoTargetConstantServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -89,10 +90,15 @@ public class GeoTargetConstantServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -112,6 +118,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -120,7 +128,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -154,10 +161,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -175,6 +186,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -183,7 +196,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -217,10 +229,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/GoogleAdsFieldServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/GoogleAdsFieldServiceClientTest.java index 9a18c6e8ac..08524a9e8b 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/GoogleAdsFieldServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/GoogleAdsFieldServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -49,6 +49,8 @@ public class GoogleAdsFieldServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -57,7 +59,6 @@ public class GoogleAdsFieldServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -91,10 +92,15 @@ public class GoogleAdsFieldServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -114,6 +120,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -122,7 +130,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -156,10 +163,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -177,6 +188,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -185,7 +198,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -219,10 +231,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/GoogleAdsServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/GoogleAdsServiceClientTest.java index 3185d8e2ba..69671d24cf 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/GoogleAdsServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/GoogleAdsServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -49,6 +49,8 @@ public class GoogleAdsServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -57,7 +59,6 @@ public class GoogleAdsServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -91,10 +92,15 @@ public class GoogleAdsServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -114,6 +120,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -122,7 +130,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -156,10 +163,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -177,6 +188,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -185,7 +198,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -219,10 +231,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, @@ -270,8 +286,9 @@ public void searchTest() { String customerId = "customerId-1772061412"; String query = "query107944136"; + boolean validateOnly = false; - SearchPagedResponse pagedListResponse = client.search(customerId, query); + SearchPagedResponse pagedListResponse = client.search(customerId, query, validateOnly); List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); @@ -283,6 +300,7 @@ public void searchTest() { Assert.assertEquals(customerId, actualRequest.getCustomerId()); Assert.assertEquals(query, actualRequest.getQuery()); + Assert.assertEquals(validateOnly, actualRequest.getValidateOnly()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -295,6 +313,60 @@ public void searchExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockGoogleAdsService.addException(exception); + try { + String customerId = "customerId-1772061412"; + String query = "query107944136"; + boolean validateOnly = false; + + client.search(customerId, query, validateOnly); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void searchTest2() { + String nextPageToken = ""; + long totalResultsCount = 43694645L; + GoogleAdsRow resultsElement = GoogleAdsRow.newBuilder().build(); + List results = Arrays.asList(resultsElement); + SearchGoogleAdsResponse expectedResponse = + SearchGoogleAdsResponse.newBuilder() + .setNextPageToken(nextPageToken) + .setTotalResultsCount(totalResultsCount) + .addAllResults(results) + .build(); + mockGoogleAdsService.addResponse(expectedResponse); + + String customerId = "customerId-1772061412"; + String query = "query107944136"; + + SearchPagedResponse pagedListResponse = client.search(customerId, query); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getResultsList().get(0), resources.get(0)); + + List actualRequests = mockGoogleAdsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchGoogleAdsRequest actualRequest = (SearchGoogleAdsRequest) actualRequests.get(0); + + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertEquals(query, actualRequest.getQuery()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void searchExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockGoogleAdsService.addException(exception); + try { String customerId = "customerId-1772061412"; String query = "query107944136"; @@ -314,8 +386,11 @@ public void mutateTest() { String customerId = "customerId-1772061412"; List mutateOperations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; - MutateGoogleAdsResponse actualResponse = client.mutate(customerId, mutateOperations); + MutateGoogleAdsResponse actualResponse = + client.mutate(customerId, mutateOperations, partialFailure, validateOnly); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockGoogleAdsService.getRequests(); @@ -324,6 +399,8 @@ public void mutateTest() { Assert.assertEquals(customerId, actualRequest.getCustomerId()); Assert.assertEquals(mutateOperations, actualRequest.getMutateOperationsList()); + Assert.assertEquals(partialFailure, actualRequest.getPartialFailure()); + Assert.assertEquals(validateOnly, actualRequest.getValidateOnly()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -336,6 +413,49 @@ public void mutateExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockGoogleAdsService.addException(exception); + try { + String customerId = "customerId-1772061412"; + List mutateOperations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; + + client.mutate(customerId, mutateOperations, partialFailure, validateOnly); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void mutateTest2() { + MutateGoogleAdsResponse expectedResponse = MutateGoogleAdsResponse.newBuilder().build(); + mockGoogleAdsService.addResponse(expectedResponse); + + String customerId = "customerId-1772061412"; + List mutateOperations = new ArrayList<>(); + + MutateGoogleAdsResponse actualResponse = client.mutate(customerId, mutateOperations); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGoogleAdsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MutateGoogleAdsRequest actualRequest = (MutateGoogleAdsRequest) actualRequests.get(0); + + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertEquals(mutateOperations, actualRequest.getMutateOperationsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void mutateExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockGoogleAdsService.addException(exception); + try { String customerId = "customerId-1772061412"; List mutateOperations = new ArrayList<>(); diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/HotelGroupViewServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/HotelGroupViewServiceClientTest.java index db1c335471..b85e3b5095 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/HotelGroupViewServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/HotelGroupViewServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,6 +46,8 @@ public class HotelGroupViewServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -54,7 +56,6 @@ public class HotelGroupViewServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -88,10 +89,15 @@ public class HotelGroupViewServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -111,6 +117,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -119,7 +127,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -153,10 +160,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -174,6 +185,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -182,7 +195,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -216,10 +228,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/HotelPerformanceViewServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/HotelPerformanceViewServiceClientTest.java index e853147943..8aa54f589f 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/HotelPerformanceViewServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/HotelPerformanceViewServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,6 +46,8 @@ public class HotelPerformanceViewServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -54,7 +56,6 @@ public class HotelPerformanceViewServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -88,10 +89,15 @@ public class HotelPerformanceViewServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -111,6 +117,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -119,7 +127,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -153,10 +160,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -174,6 +185,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -182,7 +195,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -216,10 +228,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, @@ -259,7 +275,7 @@ public void getHotelPerformanceViewTest() { mockHotelPerformanceViewService.addResponse(expectedResponse); String formattedResourceName = - HotelPerformanceViewServiceClient.formatHotelPerformanceViewName("[CUSTOMER]"); + HotelPerformanceViewServiceClient.formatCustomerName("[CUSTOMER]"); HotelPerformanceView actualResponse = client.getHotelPerformanceView(formattedResourceName); Assert.assertEquals(expectedResponse, actualResponse); @@ -284,7 +300,7 @@ public void getHotelPerformanceViewExceptionTest() throws Exception { try { String formattedResourceName = - HotelPerformanceViewServiceClient.formatHotelPerformanceViewName("[CUSTOMER]"); + HotelPerformanceViewServiceClient.formatCustomerName("[CUSTOMER]"); client.getHotelPerformanceView(formattedResourceName); Assert.fail("No exception raised"); diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/KeywordPlanAdGroupServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/KeywordPlanAdGroupServiceClientTest.java index 8afc43df03..1fa2ec1136 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/KeywordPlanAdGroupServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/KeywordPlanAdGroupServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,6 +47,8 @@ public class KeywordPlanAdGroupServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -55,7 +57,6 @@ public class KeywordPlanAdGroupServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -89,10 +90,15 @@ public class KeywordPlanAdGroupServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -112,6 +118,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -120,7 +128,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -154,10 +161,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -175,6 +186,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -183,7 +196,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -217,10 +229,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, @@ -305,9 +321,11 @@ public void mutateKeywordPlanAdGroupsTest() { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; MutateKeywordPlanAdGroupsResponse actualResponse = - client.mutateKeywordPlanAdGroups(customerId, operations); + client.mutateKeywordPlanAdGroups(customerId, operations, partialFailure, validateOnly); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockKeywordPlanAdGroupService.getRequests(); @@ -317,6 +335,8 @@ public void mutateKeywordPlanAdGroupsTest() { Assert.assertEquals(customerId, actualRequest.getCustomerId()); Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertEquals(partialFailure, actualRequest.getPartialFailure()); + Assert.assertEquals(validateOnly, actualRequest.getValidateOnly()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -329,6 +349,52 @@ public void mutateKeywordPlanAdGroupsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockKeywordPlanAdGroupService.addException(exception); + try { + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; + + client.mutateKeywordPlanAdGroups(customerId, operations, partialFailure, validateOnly); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void mutateKeywordPlanAdGroupsTest2() { + MutateKeywordPlanAdGroupsResponse expectedResponse = + MutateKeywordPlanAdGroupsResponse.newBuilder().build(); + mockKeywordPlanAdGroupService.addResponse(expectedResponse); + + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + + MutateKeywordPlanAdGroupsResponse actualResponse = + client.mutateKeywordPlanAdGroups(customerId, operations); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockKeywordPlanAdGroupService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MutateKeywordPlanAdGroupsRequest actualRequest = + (MutateKeywordPlanAdGroupsRequest) actualRequests.get(0); + + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void mutateKeywordPlanAdGroupsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockKeywordPlanAdGroupService.addException(exception); + try { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/KeywordPlanCampaignServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/KeywordPlanCampaignServiceClientTest.java index ba7e77d63b..34859190e3 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/KeywordPlanCampaignServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/KeywordPlanCampaignServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,6 +47,8 @@ public class KeywordPlanCampaignServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -55,7 +57,6 @@ public class KeywordPlanCampaignServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -89,10 +90,15 @@ public class KeywordPlanCampaignServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -112,6 +118,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -120,7 +128,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -154,10 +161,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -175,6 +186,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -183,7 +196,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -217,10 +229,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, @@ -305,9 +321,11 @@ public void mutateKeywordPlanCampaignsTest() { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; MutateKeywordPlanCampaignsResponse actualResponse = - client.mutateKeywordPlanCampaigns(customerId, operations); + client.mutateKeywordPlanCampaigns(customerId, operations, partialFailure, validateOnly); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockKeywordPlanCampaignService.getRequests(); @@ -317,6 +335,8 @@ public void mutateKeywordPlanCampaignsTest() { Assert.assertEquals(customerId, actualRequest.getCustomerId()); Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertEquals(partialFailure, actualRequest.getPartialFailure()); + Assert.assertEquals(validateOnly, actualRequest.getValidateOnly()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -329,6 +349,52 @@ public void mutateKeywordPlanCampaignsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockKeywordPlanCampaignService.addException(exception); + try { + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; + + client.mutateKeywordPlanCampaigns(customerId, operations, partialFailure, validateOnly); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void mutateKeywordPlanCampaignsTest2() { + MutateKeywordPlanCampaignsResponse expectedResponse = + MutateKeywordPlanCampaignsResponse.newBuilder().build(); + mockKeywordPlanCampaignService.addResponse(expectedResponse); + + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + + MutateKeywordPlanCampaignsResponse actualResponse = + client.mutateKeywordPlanCampaigns(customerId, operations); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockKeywordPlanCampaignService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MutateKeywordPlanCampaignsRequest actualRequest = + (MutateKeywordPlanCampaignsRequest) actualRequests.get(0); + + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void mutateKeywordPlanCampaignsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockKeywordPlanCampaignService.addException(exception); + try { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/KeywordPlanIdeaServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/KeywordPlanIdeaServiceClientTest.java index 8d0a13d0d9..b444eed380 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/KeywordPlanIdeaServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/KeywordPlanIdeaServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -48,6 +48,8 @@ public class KeywordPlanIdeaServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -56,7 +58,6 @@ public class KeywordPlanIdeaServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -90,10 +91,15 @@ public class KeywordPlanIdeaServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -113,6 +119,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -121,7 +129,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -155,10 +162,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -176,6 +187,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -184,7 +197,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -218,10 +230,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/KeywordPlanKeywordServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/KeywordPlanKeywordServiceClientTest.java index 09cf5ce1d6..cc2a559320 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/KeywordPlanKeywordServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/KeywordPlanKeywordServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,6 +47,8 @@ public class KeywordPlanKeywordServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -55,7 +57,6 @@ public class KeywordPlanKeywordServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -89,10 +90,15 @@ public class KeywordPlanKeywordServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -112,6 +118,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -120,7 +128,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -154,10 +161,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -175,6 +186,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -183,7 +196,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -217,10 +229,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, @@ -305,9 +321,11 @@ public void mutateKeywordPlanKeywordsTest() { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; MutateKeywordPlanKeywordsResponse actualResponse = - client.mutateKeywordPlanKeywords(customerId, operations); + client.mutateKeywordPlanKeywords(customerId, operations, partialFailure, validateOnly); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockKeywordPlanKeywordService.getRequests(); @@ -317,6 +335,8 @@ public void mutateKeywordPlanKeywordsTest() { Assert.assertEquals(customerId, actualRequest.getCustomerId()); Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertEquals(partialFailure, actualRequest.getPartialFailure()); + Assert.assertEquals(validateOnly, actualRequest.getValidateOnly()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -329,6 +349,52 @@ public void mutateKeywordPlanKeywordsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockKeywordPlanKeywordService.addException(exception); + try { + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; + + client.mutateKeywordPlanKeywords(customerId, operations, partialFailure, validateOnly); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void mutateKeywordPlanKeywordsTest2() { + MutateKeywordPlanKeywordsResponse expectedResponse = + MutateKeywordPlanKeywordsResponse.newBuilder().build(); + mockKeywordPlanKeywordService.addResponse(expectedResponse); + + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + + MutateKeywordPlanKeywordsResponse actualResponse = + client.mutateKeywordPlanKeywords(customerId, operations); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockKeywordPlanKeywordService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MutateKeywordPlanKeywordsRequest actualRequest = + (MutateKeywordPlanKeywordsRequest) actualRequests.get(0); + + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void mutateKeywordPlanKeywordsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockKeywordPlanKeywordService.addException(exception); + try { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/KeywordPlanNegativeKeywordServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/KeywordPlanNegativeKeywordServiceClientTest.java index 5d20437b8f..81779dc8af 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/KeywordPlanNegativeKeywordServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/KeywordPlanNegativeKeywordServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,6 +47,8 @@ public class KeywordPlanNegativeKeywordServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -55,7 +57,6 @@ public class KeywordPlanNegativeKeywordServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -89,10 +90,15 @@ public class KeywordPlanNegativeKeywordServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -112,6 +118,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -120,7 +128,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -154,10 +161,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -175,6 +186,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -183,7 +196,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -217,10 +229,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, @@ -306,9 +322,12 @@ public void mutateKeywordPlanNegativeKeywordsTest() { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; MutateKeywordPlanNegativeKeywordsResponse actualResponse = - client.mutateKeywordPlanNegativeKeywords(customerId, operations); + client.mutateKeywordPlanNegativeKeywords( + customerId, operations, partialFailure, validateOnly); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockKeywordPlanNegativeKeywordService.getRequests(); @@ -318,6 +337,8 @@ public void mutateKeywordPlanNegativeKeywordsTest() { Assert.assertEquals(customerId, actualRequest.getCustomerId()); Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertEquals(partialFailure, actualRequest.getPartialFailure()); + Assert.assertEquals(validateOnly, actualRequest.getValidateOnly()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -330,6 +351,53 @@ public void mutateKeywordPlanNegativeKeywordsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockKeywordPlanNegativeKeywordService.addException(exception); + try { + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; + + client.mutateKeywordPlanNegativeKeywords( + customerId, operations, partialFailure, validateOnly); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void mutateKeywordPlanNegativeKeywordsTest2() { + MutateKeywordPlanNegativeKeywordsResponse expectedResponse = + MutateKeywordPlanNegativeKeywordsResponse.newBuilder().build(); + mockKeywordPlanNegativeKeywordService.addResponse(expectedResponse); + + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + + MutateKeywordPlanNegativeKeywordsResponse actualResponse = + client.mutateKeywordPlanNegativeKeywords(customerId, operations); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockKeywordPlanNegativeKeywordService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MutateKeywordPlanNegativeKeywordsRequest actualRequest = + (MutateKeywordPlanNegativeKeywordsRequest) actualRequests.get(0); + + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void mutateKeywordPlanNegativeKeywordsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockKeywordPlanNegativeKeywordService.addException(exception); + try { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/KeywordPlanServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/KeywordPlanServiceClientTest.java index 186ebcd2d3..7f39a19c42 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/KeywordPlanServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/KeywordPlanServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,6 +47,8 @@ public class KeywordPlanServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -55,7 +57,6 @@ public class KeywordPlanServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -89,10 +90,15 @@ public class KeywordPlanServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -112,6 +118,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -120,7 +128,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -154,10 +161,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -175,6 +186,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -183,7 +196,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -217,10 +229,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, @@ -300,8 +316,11 @@ public void mutateKeywordPlansTest() { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; - MutateKeywordPlansResponse actualResponse = client.mutateKeywordPlans(customerId, operations); + MutateKeywordPlansResponse actualResponse = + client.mutateKeywordPlans(customerId, operations, partialFailure, validateOnly); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockKeywordPlanService.getRequests(); @@ -310,6 +329,8 @@ public void mutateKeywordPlansTest() { Assert.assertEquals(customerId, actualRequest.getCustomerId()); Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertEquals(partialFailure, actualRequest.getPartialFailure()); + Assert.assertEquals(validateOnly, actualRequest.getValidateOnly()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -322,6 +343,49 @@ public void mutateKeywordPlansExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockKeywordPlanService.addException(exception); + try { + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; + + client.mutateKeywordPlans(customerId, operations, partialFailure, validateOnly); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void mutateKeywordPlansTest2() { + MutateKeywordPlansResponse expectedResponse = MutateKeywordPlansResponse.newBuilder().build(); + mockKeywordPlanService.addResponse(expectedResponse); + + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + + MutateKeywordPlansResponse actualResponse = client.mutateKeywordPlans(customerId, operations); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockKeywordPlanService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MutateKeywordPlansRequest actualRequest = (MutateKeywordPlansRequest) actualRequests.get(0); + + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void mutateKeywordPlansExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockKeywordPlanService.addException(exception); + try { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/KeywordViewServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/KeywordViewServiceClientTest.java index f68f0e9df2..cda2b176c7 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/KeywordViewServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/KeywordViewServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,6 +46,8 @@ public class KeywordViewServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -54,7 +56,6 @@ public class KeywordViewServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -88,10 +89,15 @@ public class KeywordViewServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -111,6 +117,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -119,7 +127,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -153,10 +160,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -174,6 +185,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -182,7 +195,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -216,10 +228,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/LanguageConstantServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/LanguageConstantServiceClientTest.java index cbf3d7420d..5427aed26e 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/LanguageConstantServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/LanguageConstantServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,6 +46,8 @@ public class LanguageConstantServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -54,7 +56,6 @@ public class LanguageConstantServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -88,10 +89,15 @@ public class LanguageConstantServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -111,6 +117,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -119,7 +127,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -153,10 +160,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -174,6 +185,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -182,7 +195,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -216,10 +228,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/ManagedPlacementViewServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/ManagedPlacementViewServiceClientTest.java index b347b310fe..69ec72c38b 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/ManagedPlacementViewServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/ManagedPlacementViewServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,6 +46,8 @@ public class ManagedPlacementViewServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -54,7 +56,6 @@ public class ManagedPlacementViewServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -88,10 +89,15 @@ public class ManagedPlacementViewServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -111,6 +117,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -119,7 +127,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -153,10 +160,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -174,6 +185,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -182,7 +195,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -216,10 +228,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MediaFileServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MediaFileServiceClientTest.java index a0d1a1bf74..9ae20d91e9 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MediaFileServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MediaFileServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,6 +47,8 @@ public class MediaFileServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -55,7 +57,6 @@ public class MediaFileServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -89,10 +90,15 @@ public class MediaFileServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -112,6 +118,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -120,7 +128,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -154,10 +161,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -175,6 +186,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -183,7 +196,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -217,10 +229,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, @@ -300,8 +316,11 @@ public void mutateMediaFilesTest() { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; - MutateMediaFilesResponse actualResponse = client.mutateMediaFiles(customerId, operations); + MutateMediaFilesResponse actualResponse = + client.mutateMediaFiles(customerId, operations, partialFailure, validateOnly); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockMediaFileService.getRequests(); @@ -310,6 +329,8 @@ public void mutateMediaFilesTest() { Assert.assertEquals(customerId, actualRequest.getCustomerId()); Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertEquals(partialFailure, actualRequest.getPartialFailure()); + Assert.assertEquals(validateOnly, actualRequest.getValidateOnly()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -322,6 +343,49 @@ public void mutateMediaFilesExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockMediaFileService.addException(exception); + try { + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; + + client.mutateMediaFiles(customerId, operations, partialFailure, validateOnly); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void mutateMediaFilesTest2() { + MutateMediaFilesResponse expectedResponse = MutateMediaFilesResponse.newBuilder().build(); + mockMediaFileService.addResponse(expectedResponse); + + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + + MutateMediaFilesResponse actualResponse = client.mutateMediaFiles(customerId, operations); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMediaFileService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MutateMediaFilesRequest actualRequest = (MutateMediaFilesRequest) actualRequests.get(0); + + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void mutateMediaFilesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockMediaFileService.addException(exception); + try { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MobileAppCategoryConstantServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MobileAppCategoryConstantServiceClientTest.java new file mode 100644 index 0000000000..6f64772fc0 --- /dev/null +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MobileAppCategoryConstantServiceClientTest.java @@ -0,0 +1,314 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services; + +import com.google.ads.googleads.v0.resources.MobileAppCategoryConstant; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class MobileAppCategoryConstantServiceClientTest { + private static MockAccountBudgetProposalService mockAccountBudgetProposalService; + private static MockAccountBudgetService mockAccountBudgetService; + private static MockAdGroupAdService mockAdGroupAdService; + private static MockAdGroupAudienceViewService mockAdGroupAudienceViewService; + private static MockAdGroupBidModifierService mockAdGroupBidModifierService; + private static MockAdGroupCriterionService mockAdGroupCriterionService; + private static MockAdGroupFeedService mockAdGroupFeedService; + private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; + private static MockAgeRangeViewService mockAgeRangeViewService; + private static MockBiddingStrategyService mockBiddingStrategyService; + private static MockBillingSetupService mockBillingSetupService; + private static MockCampaignAudienceViewService mockCampaignAudienceViewService; + private static MockCampaignBidModifierService mockCampaignBidModifierService; + private static MockCampaignBudgetService mockCampaignBudgetService; + private static MockCampaignCriterionService mockCampaignCriterionService; + private static MockCampaignFeedService mockCampaignFeedService; + private static MockCampaignService mockCampaignService; + private static MockCampaignSharedSetService mockCampaignSharedSetService; + private static MockCarrierConstantService mockCarrierConstantService; + private static MockChangeStatusService mockChangeStatusService; + private static MockConversionActionService mockConversionActionService; + private static MockCustomerClientLinkService mockCustomerClientLinkService; + private static MockCustomerClientService mockCustomerClientService; + private static MockCustomerFeedService mockCustomerFeedService; + private static MockCustomerManagerLinkService mockCustomerManagerLinkService; + private static MockCustomerService mockCustomerService; + private static MockDisplayKeywordViewService mockDisplayKeywordViewService; + private static MockFeedItemService mockFeedItemService; + private static MockFeedMappingService mockFeedMappingService; + private static MockFeedService mockFeedService; + private static MockGenderViewService mockGenderViewService; + private static MockGeoTargetConstantService mockGeoTargetConstantService; + private static MockGoogleAdsFieldService mockGoogleAdsFieldService; + private static MockSharedCriterionService mockSharedCriterionService; + private static MockSharedSetService mockSharedSetService; + private static MockUserListService mockUserListService; + private static MockGoogleAdsService mockGoogleAdsService; + private static MockHotelGroupViewService mockHotelGroupViewService; + private static MockHotelPerformanceViewService mockHotelPerformanceViewService; + private static MockKeywordPlanAdGroupService mockKeywordPlanAdGroupService; + private static MockKeywordPlanCampaignService mockKeywordPlanCampaignService; + private static MockKeywordPlanIdeaService mockKeywordPlanIdeaService; + private static MockKeywordPlanKeywordService mockKeywordPlanKeywordService; + private static MockKeywordPlanNegativeKeywordService mockKeywordPlanNegativeKeywordService; + private static MockKeywordPlanService mockKeywordPlanService; + private static MockKeywordViewService mockKeywordViewService; + private static MockLanguageConstantService mockLanguageConstantService; + private static MockManagedPlacementViewService mockManagedPlacementViewService; + private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; + private static MockParentalStatusViewService mockParentalStatusViewService; + private static MockPaymentsAccountService mockPaymentsAccountService; + private static MockProductGroupViewService mockProductGroupViewService; + private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; + private static MockSearchTermViewService mockSearchTermViewService; + private static MockTopicConstantService mockTopicConstantService; + private static MockTopicViewService mockTopicViewService; + private static MockUserInterestService mockUserInterestService; + private static MockVideoService mockVideoService; + private static MockServiceHelper serviceHelper; + private MobileAppCategoryConstantServiceClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockAccountBudgetProposalService = new MockAccountBudgetProposalService(); + mockAccountBudgetService = new MockAccountBudgetService(); + mockAdGroupAdService = new MockAdGroupAdService(); + mockAdGroupAudienceViewService = new MockAdGroupAudienceViewService(); + mockAdGroupBidModifierService = new MockAdGroupBidModifierService(); + mockAdGroupCriterionService = new MockAdGroupCriterionService(); + mockAdGroupFeedService = new MockAdGroupFeedService(); + mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); + mockAgeRangeViewService = new MockAgeRangeViewService(); + mockBiddingStrategyService = new MockBiddingStrategyService(); + mockBillingSetupService = new MockBillingSetupService(); + mockCampaignAudienceViewService = new MockCampaignAudienceViewService(); + mockCampaignBidModifierService = new MockCampaignBidModifierService(); + mockCampaignBudgetService = new MockCampaignBudgetService(); + mockCampaignCriterionService = new MockCampaignCriterionService(); + mockCampaignFeedService = new MockCampaignFeedService(); + mockCampaignService = new MockCampaignService(); + mockCampaignSharedSetService = new MockCampaignSharedSetService(); + mockCarrierConstantService = new MockCarrierConstantService(); + mockChangeStatusService = new MockChangeStatusService(); + mockConversionActionService = new MockConversionActionService(); + mockCustomerClientLinkService = new MockCustomerClientLinkService(); + mockCustomerClientService = new MockCustomerClientService(); + mockCustomerFeedService = new MockCustomerFeedService(); + mockCustomerManagerLinkService = new MockCustomerManagerLinkService(); + mockCustomerService = new MockCustomerService(); + mockDisplayKeywordViewService = new MockDisplayKeywordViewService(); + mockFeedItemService = new MockFeedItemService(); + mockFeedMappingService = new MockFeedMappingService(); + mockFeedService = new MockFeedService(); + mockGenderViewService = new MockGenderViewService(); + mockGeoTargetConstantService = new MockGeoTargetConstantService(); + mockGoogleAdsFieldService = new MockGoogleAdsFieldService(); + mockSharedCriterionService = new MockSharedCriterionService(); + mockSharedSetService = new MockSharedSetService(); + mockUserListService = new MockUserListService(); + mockGoogleAdsService = new MockGoogleAdsService(); + mockHotelGroupViewService = new MockHotelGroupViewService(); + mockHotelPerformanceViewService = new MockHotelPerformanceViewService(); + mockKeywordPlanAdGroupService = new MockKeywordPlanAdGroupService(); + mockKeywordPlanCampaignService = new MockKeywordPlanCampaignService(); + mockKeywordPlanIdeaService = new MockKeywordPlanIdeaService(); + mockKeywordPlanKeywordService = new MockKeywordPlanKeywordService(); + mockKeywordPlanNegativeKeywordService = new MockKeywordPlanNegativeKeywordService(); + mockKeywordPlanService = new MockKeywordPlanService(); + mockKeywordViewService = new MockKeywordViewService(); + mockLanguageConstantService = new MockLanguageConstantService(); + mockManagedPlacementViewService = new MockManagedPlacementViewService(); + mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); + mockParentalStatusViewService = new MockParentalStatusViewService(); + mockPaymentsAccountService = new MockPaymentsAccountService(); + mockProductGroupViewService = new MockProductGroupViewService(); + mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); + mockSearchTermViewService = new MockSearchTermViewService(); + mockTopicConstantService = new MockTopicConstantService(); + mockTopicViewService = new MockTopicViewService(); + mockUserInterestService = new MockUserInterestService(); + mockVideoService = new MockVideoService(); + serviceHelper = + new MockServiceHelper( + "in-process-1", + Arrays.asList( + mockAccountBudgetProposalService, + mockAccountBudgetService, + mockAdGroupAdService, + mockAdGroupAudienceViewService, + mockAdGroupBidModifierService, + mockAdGroupCriterionService, + mockAdGroupFeedService, + mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, + mockAgeRangeViewService, + mockBiddingStrategyService, + mockBillingSetupService, + mockCampaignAudienceViewService, + mockCampaignBidModifierService, + mockCampaignBudgetService, + mockCampaignCriterionService, + mockCampaignFeedService, + mockCampaignService, + mockCampaignSharedSetService, + mockCarrierConstantService, + mockChangeStatusService, + mockConversionActionService, + mockCustomerClientLinkService, + mockCustomerClientService, + mockCustomerFeedService, + mockCustomerManagerLinkService, + mockCustomerService, + mockDisplayKeywordViewService, + mockFeedItemService, + mockFeedMappingService, + mockFeedService, + mockGenderViewService, + mockGeoTargetConstantService, + mockGoogleAdsFieldService, + mockSharedCriterionService, + mockSharedSetService, + mockUserListService, + mockGoogleAdsService, + mockHotelGroupViewService, + mockHotelPerformanceViewService, + mockKeywordPlanAdGroupService, + mockKeywordPlanCampaignService, + mockKeywordPlanIdeaService, + mockKeywordPlanKeywordService, + mockKeywordPlanNegativeKeywordService, + mockKeywordPlanService, + mockKeywordViewService, + mockLanguageConstantService, + mockManagedPlacementViewService, + mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, + mockParentalStatusViewService, + mockPaymentsAccountService, + mockProductGroupViewService, + mockRecommendationService, + mockRemarketingActionService, + mockSearchTermViewService, + mockTopicConstantService, + mockTopicViewService, + mockUserInterestService, + mockVideoService)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + MobileAppCategoryConstantServiceSettings settings = + MobileAppCategoryConstantServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = MobileAppCategoryConstantServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + @SuppressWarnings("all") + public void getMobileAppCategoryConstantTest() { + String resourceName2 = "resourceName2625949903"; + MobileAppCategoryConstant expectedResponse = + MobileAppCategoryConstant.newBuilder().setResourceName(resourceName2).build(); + mockMobileAppCategoryConstantService.addResponse(expectedResponse); + + String formattedResourceName = + MobileAppCategoryConstantServiceClient.formatMobileAppCategoryConstantName( + "[MOBILE_APP_CATEGORY_CONSTANT]"); + + MobileAppCategoryConstant actualResponse = + client.getMobileAppCategoryConstant(formattedResourceName); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockMobileAppCategoryConstantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMobileAppCategoryConstantRequest actualRequest = + (GetMobileAppCategoryConstantRequest) actualRequests.get(0); + + Assert.assertEquals(formattedResourceName, actualRequest.getResourceName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getMobileAppCategoryConstantExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockMobileAppCategoryConstantService.addException(exception); + + try { + String formattedResourceName = + MobileAppCategoryConstantServiceClient.formatMobileAppCategoryConstantName( + "[MOBILE_APP_CATEGORY_CONSTANT]"); + + client.getMobileAppCategoryConstant(formattedResourceName); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } +} diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/CampaignGroupServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MobileDeviceConstantServiceClientTest.java similarity index 81% rename from google-ads/src/test/java/com/google/ads/googleads/v0/services/CampaignGroupServiceClientTest.java rename to google-ads/src/test/java/com/google/ads/googleads/v0/services/MobileDeviceConstantServiceClientTest.java index 019a995165..f67cab5fb6 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/CampaignGroupServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MobileDeviceConstantServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,7 +15,7 @@ */ package com.google.ads.googleads.v0.services; -import com.google.ads.googleads.v0.resources.CampaignGroup; +import com.google.ads.googleads.v0.resources.MobileDeviceConstant; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.testing.LocalChannelProvider; @@ -27,7 +27,6 @@ import io.grpc.Status; import io.grpc.StatusRuntimeException; import java.io.IOException; -import java.util.ArrayList; import java.util.Arrays; import java.util.List; import org.junit.After; @@ -38,7 +37,7 @@ import org.junit.Test; @javax.annotation.Generated("by GAPIC") -public class CampaignGroupServiceClientTest { +public class MobileDeviceConstantServiceClientTest { private static MockAccountBudgetProposalService mockAccountBudgetProposalService; private static MockAccountBudgetService mockAccountBudgetService; private static MockAdGroupAdService mockAdGroupAdService; @@ -47,6 +46,8 @@ public class CampaignGroupServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -55,7 +56,6 @@ public class CampaignGroupServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -89,17 +89,22 @@ public class CampaignGroupServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; private static MockUserInterestService mockUserInterestService; private static MockVideoService mockVideoService; private static MockServiceHelper serviceHelper; - private CampaignGroupServiceClient client; + private MobileDeviceConstantServiceClient client; private LocalChannelProvider channelProvider; @BeforeClass @@ -112,6 +117,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -120,7 +127,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -154,10 +160,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -175,6 +185,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -183,7 +195,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -217,10 +228,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, @@ -238,12 +253,12 @@ public static void stopServer() { public void setUp() throws IOException { serviceHelper.reset(); channelProvider = serviceHelper.createChannelProvider(); - CampaignGroupServiceSettings settings = - CampaignGroupServiceSettings.newBuilder() + MobileDeviceConstantServiceSettings settings = + MobileDeviceConstantServiceSettings.newBuilder() .setTransportChannelProvider(channelProvider) .setCredentialsProvider(NoCredentialsProvider.create()) .build(); - client = CampaignGroupServiceClient.create(settings); + client = MobileDeviceConstantServiceClient.create(settings); } @After @@ -253,21 +268,23 @@ public void tearDown() throws Exception { @Test @SuppressWarnings("all") - public void getCampaignGroupTest() { + public void getMobileDeviceConstantTest() { String resourceName2 = "resourceName2625949903"; - CampaignGroup expectedResponse = - CampaignGroup.newBuilder().setResourceName(resourceName2).build(); - mockCampaignGroupService.addResponse(expectedResponse); + MobileDeviceConstant expectedResponse = + MobileDeviceConstant.newBuilder().setResourceName(resourceName2).build(); + mockMobileDeviceConstantService.addResponse(expectedResponse); String formattedResourceName = - CampaignGroupServiceClient.formatCampaignGroupName("[CUSTOMER]", "[CAMPAIGN_GROUP]"); + MobileDeviceConstantServiceClient.formatMobileDeviceConstantName( + "[MOBILE_DEVICE_CONSTANT]"); - CampaignGroup actualResponse = client.getCampaignGroup(formattedResourceName); + MobileDeviceConstant actualResponse = client.getMobileDeviceConstant(formattedResourceName); Assert.assertEquals(expectedResponse, actualResponse); - List actualRequests = mockCampaignGroupService.getRequests(); + List actualRequests = mockMobileDeviceConstantService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetCampaignGroupRequest actualRequest = (GetCampaignGroupRequest) actualRequests.get(0); + GetMobileDeviceConstantRequest actualRequest = + (GetMobileDeviceConstantRequest) actualRequests.get(0); Assert.assertEquals(formattedResourceName, actualRequest.getResourceName()); Assert.assertTrue( @@ -278,58 +295,16 @@ public void getCampaignGroupTest() { @Test @SuppressWarnings("all") - public void getCampaignGroupExceptionTest() throws Exception { + public void getMobileDeviceConstantExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockCampaignGroupService.addException(exception); + mockMobileDeviceConstantService.addException(exception); try { String formattedResourceName = - CampaignGroupServiceClient.formatCampaignGroupName("[CUSTOMER]", "[CAMPAIGN_GROUP]"); + MobileDeviceConstantServiceClient.formatMobileDeviceConstantName( + "[MOBILE_DEVICE_CONSTANT]"); - client.getCampaignGroup(formattedResourceName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void mutateCampaignGroupsTest() { - MutateCampaignGroupsResponse expectedResponse = - MutateCampaignGroupsResponse.newBuilder().build(); - mockCampaignGroupService.addResponse(expectedResponse); - - String customerId = "customerId-1772061412"; - List operations = new ArrayList<>(); - - MutateCampaignGroupsResponse actualResponse = - client.mutateCampaignGroups(customerId, operations); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCampaignGroupService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - MutateCampaignGroupsRequest actualRequest = (MutateCampaignGroupsRequest) actualRequests.get(0); - - Assert.assertEquals(customerId, actualRequest.getCustomerId()); - Assert.assertEquals(operations, actualRequest.getOperationsList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void mutateCampaignGroupsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockCampaignGroupService.addException(exception); - - try { - String customerId = "customerId-1772061412"; - List operations = new ArrayList<>(); - - client.mutateCampaignGroups(customerId, operations); + client.getMobileDeviceConstant(formattedResourceName); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAccountBudgetProposalService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAccountBudgetProposalService.java index 173933e886..6b29f03e29 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAccountBudgetProposalService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAccountBudgetProposalService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAccountBudgetProposalServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAccountBudgetProposalServiceImpl.java index 3077eb6de3..0909e164c8 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAccountBudgetProposalServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAccountBudgetProposalServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAccountBudgetService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAccountBudgetService.java index 6553816245..f7b9b5a54f 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAccountBudgetService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAccountBudgetService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAccountBudgetServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAccountBudgetServiceImpl.java index 57fa6ed8c3..48a8c2c476 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAccountBudgetServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAccountBudgetServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupAdService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupAdService.java index c16bbbad15..63142a6edd 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupAdService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupAdService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupAdServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupAdServiceImpl.java index 0ead57aecb..dca8e02f43 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupAdServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupAdServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupAudienceViewService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupAudienceViewService.java index 98f10d088b..0bfd0acf19 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupAudienceViewService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupAudienceViewService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupAudienceViewServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupAudienceViewServiceImpl.java index ab610d57d4..feaa1e4382 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupAudienceViewServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupAudienceViewServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupBidModifierService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupBidModifierService.java index 1774a0798e..256fdef917 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupBidModifierService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupBidModifierService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupBidModifierServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupBidModifierServiceImpl.java index a3f9a5d862..872cdfe8c0 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupBidModifierServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupBidModifierServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupCriterionService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupCriterionService.java index 46fc88a482..6d6da5217a 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupCriterionService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupCriterionService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupCriterionServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupCriterionServiceImpl.java index 561a6bb9ff..6dcc743e07 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupCriterionServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupCriterionServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupFeedService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupFeedService.java index f099e8086d..5c961a12d2 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupFeedService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupFeedService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupFeedServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupFeedServiceImpl.java index fdc184badf..6532795338 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupFeedServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupFeedServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupService.java index ba568247b2..03d81542d8 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupServiceImpl.java index ed0fd7cbc3..9870221d90 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdGroupServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignGroupService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdParameterService.java similarity index 86% rename from google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignGroupService.java rename to google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdParameterService.java index 51f91211d6..c71437a740 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignGroupService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdParameterService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,11 +23,11 @@ @javax.annotation.Generated("by GAPIC") @BetaApi -public class MockCampaignGroupService implements MockGrpcService { - private final MockCampaignGroupServiceImpl serviceImpl; +public class MockAdParameterService implements MockGrpcService { + private final MockAdParameterServiceImpl serviceImpl; - public MockCampaignGroupService() { - serviceImpl = new MockCampaignGroupServiceImpl(); + public MockAdParameterService() { + serviceImpl = new MockAdParameterServiceImpl(); } @Override diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignGroupServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdParameterServiceImpl.java similarity index 72% rename from google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignGroupServiceImpl.java rename to google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdParameterServiceImpl.java index 58109aeb3d..7de027015e 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignGroupServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdParameterServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,8 +15,8 @@ */ package com.google.ads.googleads.v0.services; -import com.google.ads.googleads.v0.resources.CampaignGroup; -import com.google.ads.googleads.v0.services.CampaignGroupServiceGrpc.CampaignGroupServiceImplBase; +import com.google.ads.googleads.v0.resources.AdParameter; +import com.google.ads.googleads.v0.services.AdParameterServiceGrpc.AdParameterServiceImplBase; import com.google.api.core.BetaApi; import com.google.protobuf.GeneratedMessageV3; import io.grpc.stub.StreamObserver; @@ -27,11 +27,11 @@ @javax.annotation.Generated("by GAPIC") @BetaApi -public class MockCampaignGroupServiceImpl extends CampaignGroupServiceImplBase { +public class MockAdParameterServiceImpl extends AdParameterServiceImplBase { private ArrayList requests; private Queue responses; - public MockCampaignGroupServiceImpl() { + public MockAdParameterServiceImpl() { requests = new ArrayList<>(); responses = new LinkedList<>(); } @@ -58,12 +58,12 @@ public void reset() { } @Override - public void getCampaignGroup( - GetCampaignGroupRequest request, StreamObserver responseObserver) { + public void getAdParameter( + GetAdParameterRequest request, StreamObserver responseObserver) { Object response = responses.remove(); - if (response instanceof CampaignGroup) { + if (response instanceof AdParameter) { requests.add(request); - responseObserver.onNext((CampaignGroup) response); + responseObserver.onNext((AdParameter) response); responseObserver.onCompleted(); } else if (response instanceof Exception) { responseObserver.onError((Exception) response); @@ -73,13 +73,13 @@ public void getCampaignGroup( } @Override - public void mutateCampaignGroups( - MutateCampaignGroupsRequest request, - StreamObserver responseObserver) { + public void mutateAdParameters( + MutateAdParametersRequest request, + StreamObserver responseObserver) { Object response = responses.remove(); - if (response instanceof MutateCampaignGroupsResponse) { + if (response instanceof MutateAdParametersResponse) { requests.add(request); - responseObserver.onNext((MutateCampaignGroupsResponse) response); + responseObserver.onNext((MutateAdParametersResponse) response); responseObserver.onCompleted(); } else if (response instanceof Exception) { responseObserver.onError((Exception) response); diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdScheduleViewService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdScheduleViewService.java new file mode 100644 index 0000000000..a435455fc8 --- /dev/null +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdScheduleViewService.java @@ -0,0 +1,57 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.ServerServiceDefinition; +import java.util.List; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockAdScheduleViewService implements MockGrpcService { + private final MockAdScheduleViewServiceImpl serviceImpl; + + public MockAdScheduleViewService() { + serviceImpl = new MockAdScheduleViewServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(GeneratedMessageV3 response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdScheduleViewServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdScheduleViewServiceImpl.java new file mode 100644 index 0000000000..4199ec406f --- /dev/null +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAdScheduleViewServiceImpl.java @@ -0,0 +1,74 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services; + +import com.google.ads.googleads.v0.resources.AdScheduleView; +import com.google.ads.googleads.v0.services.AdScheduleViewServiceGrpc.AdScheduleViewServiceImplBase; +import com.google.api.core.BetaApi; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockAdScheduleViewServiceImpl extends AdScheduleViewServiceImplBase { + private ArrayList requests; + private Queue responses; + + public MockAdScheduleViewServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(GeneratedMessageV3 response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void getAdScheduleView( + GetAdScheduleViewRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof AdScheduleView) { + requests.add(request); + responseObserver.onNext((AdScheduleView) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } +} diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAgeRangeViewService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAgeRangeViewService.java index 2983e66b1e..003e677af7 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAgeRangeViewService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAgeRangeViewService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAgeRangeViewServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAgeRangeViewServiceImpl.java index ef801f8643..020b33fc21 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAgeRangeViewServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockAgeRangeViewServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockBiddingStrategyService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockBiddingStrategyService.java index ac9a093b52..5156e2a405 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockBiddingStrategyService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockBiddingStrategyService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockBiddingStrategyServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockBiddingStrategyServiceImpl.java index 18cac5e525..d1872f19e0 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockBiddingStrategyServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockBiddingStrategyServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockBillingSetupService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockBillingSetupService.java index 8b5f6aec04..f2c7328ca7 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockBillingSetupService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockBillingSetupService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockBillingSetupServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockBillingSetupServiceImpl.java index 5ae7cb0ed6..205bc39585 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockBillingSetupServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockBillingSetupServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignAudienceViewService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignAudienceViewService.java index 97593ad352..6993bf4614 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignAudienceViewService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignAudienceViewService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignAudienceViewServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignAudienceViewServiceImpl.java index 594d494b40..dabc91c198 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignAudienceViewServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignAudienceViewServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignBidModifierService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignBidModifierService.java index a900b29b31..d499fcf220 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignBidModifierService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignBidModifierService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignBidModifierServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignBidModifierServiceImpl.java index 7909608ae1..a998f8eb67 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignBidModifierServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignBidModifierServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignBudgetService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignBudgetService.java index 9c83f16f17..049448e64f 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignBudgetService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignBudgetService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignBudgetServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignBudgetServiceImpl.java index 08280d7364..219e1b86ef 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignBudgetServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignBudgetServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignCriterionService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignCriterionService.java index 3d94fec089..9ecffdd580 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignCriterionService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignCriterionService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignCriterionServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignCriterionServiceImpl.java index 7efb931c4c..e3ef752cf5 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignCriterionServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignCriterionServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignFeedService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignFeedService.java index f3e890e98c..f2c390432c 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignFeedService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignFeedService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignFeedServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignFeedServiceImpl.java index dc848682e5..158efd5434 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignFeedServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignFeedServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignService.java index 47c9207bb6..941466c568 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignServiceImpl.java index 93cd175398..8974eda12d 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignSharedSetService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignSharedSetService.java index 25910f5217..1f57fed493 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignSharedSetService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignSharedSetService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignSharedSetServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignSharedSetServiceImpl.java index 6700b4a932..84d509dd62 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignSharedSetServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCampaignSharedSetServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCarrierConstantService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCarrierConstantService.java index 9e343db93a..65df90c04e 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCarrierConstantService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCarrierConstantService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCarrierConstantServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCarrierConstantServiceImpl.java index dbdc4b70fa..6b002137d6 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCarrierConstantServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCarrierConstantServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockChangeStatusService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockChangeStatusService.java index 2bf8574f1b..ae951e9fef 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockChangeStatusService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockChangeStatusService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockChangeStatusServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockChangeStatusServiceImpl.java index 7b1dd32bed..0fb05bc0d3 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockChangeStatusServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockChangeStatusServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockConversionActionService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockConversionActionService.java index dee60b6d26..2204291610 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockConversionActionService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockConversionActionService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockConversionActionServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockConversionActionServiceImpl.java index 56ce7fb1f2..942a9b4832 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockConversionActionServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockConversionActionServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerClientLinkService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerClientLinkService.java index e996171c6c..5bf2914cc7 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerClientLinkService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerClientLinkService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerClientLinkServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerClientLinkServiceImpl.java index 439476ef4e..75ce7ac30c 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerClientLinkServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerClientLinkServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -71,4 +71,20 @@ public void getCustomerClientLink( responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } } + + @Override + public void mutateCustomerClientLink( + MutateCustomerClientLinkRequest request, + StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof MutateCustomerClientLinkResponse) { + requests.add(request); + responseObserver.onNext((MutateCustomerClientLinkResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } } diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerClientService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerClientService.java index 27a4ba0566..a280d04276 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerClientService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerClientService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerClientServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerClientServiceImpl.java index ea3c700302..b055fe8ac9 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerClientServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerClientServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerFeedService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerFeedService.java index 434b4846b4..4fb2b4acc9 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerFeedService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerFeedService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerFeedServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerFeedServiceImpl.java index e7b8d7bea7..a546443c29 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerFeedServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerFeedServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerManagerLinkService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerManagerLinkService.java index 2737a8116e..1466809817 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerManagerLinkService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerManagerLinkService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerManagerLinkServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerManagerLinkServiceImpl.java index 4cbf9c9bdb..312841ace7 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerManagerLinkServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerManagerLinkServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -71,4 +71,20 @@ public void getCustomerManagerLink( responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } } + + @Override + public void mutateCustomerManagerLink( + MutateCustomerManagerLinkRequest request, + StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof MutateCustomerManagerLinkResponse) { + requests.add(request); + responseObserver.onNext((MutateCustomerManagerLinkResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } } diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerService.java index 778baa1fa8..683d016db0 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerServiceImpl.java index edf51ea07a..79baaa25c7 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockCustomerServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockDisplayKeywordViewService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockDisplayKeywordViewService.java index 5622beba22..6467473365 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockDisplayKeywordViewService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockDisplayKeywordViewService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockDisplayKeywordViewServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockDisplayKeywordViewServiceImpl.java index 3e9c7966d1..f6ec7ad489 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockDisplayKeywordViewServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockDisplayKeywordViewServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockFeedItemService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockFeedItemService.java index 6047fc0612..011ddad3ed 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockFeedItemService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockFeedItemService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockFeedItemServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockFeedItemServiceImpl.java index 9271e1ea13..06b6e85e86 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockFeedItemServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockFeedItemServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockFeedMappingService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockFeedMappingService.java index c80cca4da8..0a1c5860cb 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockFeedMappingService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockFeedMappingService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockFeedMappingServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockFeedMappingServiceImpl.java index 346765ecee..3d4ab73fb1 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockFeedMappingServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockFeedMappingServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockFeedService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockFeedService.java index 716d9bd8e3..814d406efb 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockFeedService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockFeedService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockFeedServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockFeedServiceImpl.java index db0aa3fb1f..f971ccee1d 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockFeedServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockFeedServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockGenderViewService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockGenderViewService.java index d41415c046..7951198c98 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockGenderViewService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockGenderViewService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockGenderViewServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockGenderViewServiceImpl.java index ae3194c291..fc1f3b692b 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockGenderViewServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockGenderViewServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockGeoTargetConstantService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockGeoTargetConstantService.java index 6ea43810cc..39ca3d983a 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockGeoTargetConstantService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockGeoTargetConstantService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockGeoTargetConstantServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockGeoTargetConstantServiceImpl.java index dcf3404316..98c2b90211 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockGeoTargetConstantServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockGeoTargetConstantServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockGoogleAdsFieldService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockGoogleAdsFieldService.java index 03ce12eeb5..0e6115d5b0 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockGoogleAdsFieldService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockGoogleAdsFieldService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockGoogleAdsFieldServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockGoogleAdsFieldServiceImpl.java index 50f7d156ce..9183b9a690 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockGoogleAdsFieldServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockGoogleAdsFieldServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockGoogleAdsService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockGoogleAdsService.java index 11bc1a595a..06e92a5836 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockGoogleAdsService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockGoogleAdsService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockGoogleAdsServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockGoogleAdsServiceImpl.java index eb2fb05f9d..c1628822c6 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockGoogleAdsServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockGoogleAdsServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockHotelGroupViewService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockHotelGroupViewService.java index f0e5a1aa51..219046967a 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockHotelGroupViewService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockHotelGroupViewService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockHotelGroupViewServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockHotelGroupViewServiceImpl.java index a879443ec8..7406803e30 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockHotelGroupViewServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockHotelGroupViewServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockHotelPerformanceViewService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockHotelPerformanceViewService.java index 94893a2cd2..b1e1ecf212 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockHotelPerformanceViewService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockHotelPerformanceViewService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockHotelPerformanceViewServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockHotelPerformanceViewServiceImpl.java index 9b9dbd0d3d..1a13610244 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockHotelPerformanceViewServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockHotelPerformanceViewServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanAdGroupService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanAdGroupService.java index 2b7bb65940..8c95c4504e 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanAdGroupService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanAdGroupService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanAdGroupServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanAdGroupServiceImpl.java index 7983c9fc4d..aec9dc2b78 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanAdGroupServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanAdGroupServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanCampaignService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanCampaignService.java index 1545733415..d2ecdcbd25 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanCampaignService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanCampaignService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanCampaignServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanCampaignServiceImpl.java index 1bedb18926..1f2e0a133f 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanCampaignServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanCampaignServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanIdeaService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanIdeaService.java index 9bda4f946d..e0d68dd0f3 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanIdeaService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanIdeaService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanIdeaServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanIdeaServiceImpl.java index 930780cadd..7555a39e8e 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanIdeaServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanIdeaServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanKeywordService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanKeywordService.java index 1dab1ee4d4..7766177dee 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanKeywordService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanKeywordService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanKeywordServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanKeywordServiceImpl.java index 3e4b037929..255a6928f4 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanKeywordServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanKeywordServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanNegativeKeywordService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanNegativeKeywordService.java index 133bdfe734..cbb23a6d16 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanNegativeKeywordService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanNegativeKeywordService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanNegativeKeywordServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanNegativeKeywordServiceImpl.java index 3f3303820c..6990b3cdda 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanNegativeKeywordServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanNegativeKeywordServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanService.java index 3e3dd5b073..ae9d4c87f8 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanServiceImpl.java index 8b87567148..a07f965ffe 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordPlanServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordViewService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordViewService.java index ad8bc6a965..e8bf0feef2 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordViewService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordViewService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordViewServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordViewServiceImpl.java index 1d86286ba2..81a9df6655 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordViewServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockKeywordViewServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockLanguageConstantService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockLanguageConstantService.java index 0301fd182e..a279ec070d 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockLanguageConstantService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockLanguageConstantService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockLanguageConstantServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockLanguageConstantServiceImpl.java index 9248d27698..fcb8b7ac46 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockLanguageConstantServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockLanguageConstantServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockManagedPlacementViewService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockManagedPlacementViewService.java index 13f57c1057..8bb71ca02b 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockManagedPlacementViewService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockManagedPlacementViewService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockManagedPlacementViewServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockManagedPlacementViewServiceImpl.java index 05141c15d8..896835f988 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockManagedPlacementViewServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockManagedPlacementViewServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockMediaFileService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockMediaFileService.java index 7525462175..6b68e6bc75 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockMediaFileService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockMediaFileService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockMediaFileServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockMediaFileServiceImpl.java index 54558b47cc..8e09538e0d 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockMediaFileServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockMediaFileServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockMobileAppCategoryConstantService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockMobileAppCategoryConstantService.java new file mode 100644 index 0000000000..48cae80cd8 --- /dev/null +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockMobileAppCategoryConstantService.java @@ -0,0 +1,57 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.ServerServiceDefinition; +import java.util.List; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockMobileAppCategoryConstantService implements MockGrpcService { + private final MockMobileAppCategoryConstantServiceImpl serviceImpl; + + public MockMobileAppCategoryConstantService() { + serviceImpl = new MockMobileAppCategoryConstantServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(GeneratedMessageV3 response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockMobileAppCategoryConstantServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockMobileAppCategoryConstantServiceImpl.java new file mode 100644 index 0000000000..630464aeaf --- /dev/null +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockMobileAppCategoryConstantServiceImpl.java @@ -0,0 +1,76 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services; + +import com.google.ads.googleads.v0.resources.MobileAppCategoryConstant; +import com.google.ads.googleads.v0.services.MobileAppCategoryConstantServiceGrpc.MobileAppCategoryConstantServiceImplBase; +import com.google.api.core.BetaApi; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockMobileAppCategoryConstantServiceImpl + extends MobileAppCategoryConstantServiceImplBase { + private ArrayList requests; + private Queue responses; + + public MockMobileAppCategoryConstantServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(GeneratedMessageV3 response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void getMobileAppCategoryConstant( + GetMobileAppCategoryConstantRequest request, + StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof MobileAppCategoryConstant) { + requests.add(request); + responseObserver.onNext((MobileAppCategoryConstant) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } +} diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockMobileDeviceConstantService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockMobileDeviceConstantService.java new file mode 100644 index 0000000000..4a9835f5c7 --- /dev/null +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockMobileDeviceConstantService.java @@ -0,0 +1,57 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.ServerServiceDefinition; +import java.util.List; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockMobileDeviceConstantService implements MockGrpcService { + private final MockMobileDeviceConstantServiceImpl serviceImpl; + + public MockMobileDeviceConstantService() { + serviceImpl = new MockMobileDeviceConstantServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(GeneratedMessageV3 response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockMobileDeviceConstantServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockMobileDeviceConstantServiceImpl.java new file mode 100644 index 0000000000..3fc5c7017e --- /dev/null +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockMobileDeviceConstantServiceImpl.java @@ -0,0 +1,75 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services; + +import com.google.ads.googleads.v0.resources.MobileDeviceConstant; +import com.google.ads.googleads.v0.services.MobileDeviceConstantServiceGrpc.MobileDeviceConstantServiceImplBase; +import com.google.api.core.BetaApi; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockMobileDeviceConstantServiceImpl extends MobileDeviceConstantServiceImplBase { + private ArrayList requests; + private Queue responses; + + public MockMobileDeviceConstantServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(GeneratedMessageV3 response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void getMobileDeviceConstant( + GetMobileDeviceConstantRequest request, + StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof MobileDeviceConstant) { + requests.add(request); + responseObserver.onNext((MobileDeviceConstant) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } +} diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockOperatingSystemVersionConstantService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockOperatingSystemVersionConstantService.java new file mode 100644 index 0000000000..3ab20fa891 --- /dev/null +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockOperatingSystemVersionConstantService.java @@ -0,0 +1,57 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.ServerServiceDefinition; +import java.util.List; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockOperatingSystemVersionConstantService implements MockGrpcService { + private final MockOperatingSystemVersionConstantServiceImpl serviceImpl; + + public MockOperatingSystemVersionConstantService() { + serviceImpl = new MockOperatingSystemVersionConstantServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(GeneratedMessageV3 response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockOperatingSystemVersionConstantServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockOperatingSystemVersionConstantServiceImpl.java new file mode 100644 index 0000000000..8263117c09 --- /dev/null +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockOperatingSystemVersionConstantServiceImpl.java @@ -0,0 +1,76 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services; + +import com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant; +import com.google.ads.googleads.v0.services.OperatingSystemVersionConstantServiceGrpc.OperatingSystemVersionConstantServiceImplBase; +import com.google.api.core.BetaApi; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockOperatingSystemVersionConstantServiceImpl + extends OperatingSystemVersionConstantServiceImplBase { + private ArrayList requests; + private Queue responses; + + public MockOperatingSystemVersionConstantServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(GeneratedMessageV3 response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void getOperatingSystemVersionConstant( + GetOperatingSystemVersionConstantRequest request, + StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof OperatingSystemVersionConstant) { + requests.add(request); + responseObserver.onNext((OperatingSystemVersionConstant) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } +} diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockParentalStatusViewService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockParentalStatusViewService.java index 99403ee366..ab8ba4e0f2 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockParentalStatusViewService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockParentalStatusViewService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockParentalStatusViewServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockParentalStatusViewServiceImpl.java index 13754387f3..2073c91033 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockParentalStatusViewServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockParentalStatusViewServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockPaymentsAccountService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockPaymentsAccountService.java index 6cd3f70764..e66537d238 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockPaymentsAccountService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockPaymentsAccountService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockPaymentsAccountServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockPaymentsAccountServiceImpl.java index a95de07fab..e9d3d72a4d 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockPaymentsAccountServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockPaymentsAccountServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockProductGroupViewService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockProductGroupViewService.java index ac67dd16e5..782f8e2b23 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockProductGroupViewService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockProductGroupViewService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockProductGroupViewServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockProductGroupViewServiceImpl.java index 4bbf0476b4..f1c27ab1fd 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockProductGroupViewServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockProductGroupViewServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockRecommendationService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockRecommendationService.java index e5c61b187b..9e4d9fc8db 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockRecommendationService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockRecommendationService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockRecommendationServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockRecommendationServiceImpl.java index e7125f4beb..680546f655 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockRecommendationServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockRecommendationServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockRemarketingActionService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockRemarketingActionService.java new file mode 100644 index 0000000000..9c5e8370c8 --- /dev/null +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockRemarketingActionService.java @@ -0,0 +1,57 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.ServerServiceDefinition; +import java.util.List; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockRemarketingActionService implements MockGrpcService { + private final MockRemarketingActionServiceImpl serviceImpl; + + public MockRemarketingActionService() { + serviceImpl = new MockRemarketingActionServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(GeneratedMessageV3 response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockRemarketingActionServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockRemarketingActionServiceImpl.java new file mode 100644 index 0000000000..4a904cc158 --- /dev/null +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockRemarketingActionServiceImpl.java @@ -0,0 +1,90 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services; + +import com.google.ads.googleads.v0.resources.RemarketingAction; +import com.google.ads.googleads.v0.services.RemarketingActionServiceGrpc.RemarketingActionServiceImplBase; +import com.google.api.core.BetaApi; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockRemarketingActionServiceImpl extends RemarketingActionServiceImplBase { + private ArrayList requests; + private Queue responses; + + public MockRemarketingActionServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(GeneratedMessageV3 response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void getRemarketingAction( + GetRemarketingActionRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof RemarketingAction) { + requests.add(request); + responseObserver.onNext((RemarketingAction) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void mutateRemarketingActions( + MutateRemarketingActionsRequest request, + StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof MutateRemarketingActionsResponse) { + requests.add(request); + responseObserver.onNext((MutateRemarketingActionsResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } +} diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockSearchTermViewService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockSearchTermViewService.java index 977eecc1c2..054b400355 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockSearchTermViewService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockSearchTermViewService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockSearchTermViewServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockSearchTermViewServiceImpl.java index ba952bb39e..c883633d20 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockSearchTermViewServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockSearchTermViewServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockSharedCriterionService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockSharedCriterionService.java index 7c5ed5248f..5fda5d1aa8 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockSharedCriterionService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockSharedCriterionService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockSharedCriterionServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockSharedCriterionServiceImpl.java index b8780fe33e..eda2825dff 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockSharedCriterionServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockSharedCriterionServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockSharedSetService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockSharedSetService.java index c00bae20ed..b9c27bb4b4 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockSharedSetService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockSharedSetService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockSharedSetServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockSharedSetServiceImpl.java index 98e7a1cb70..7f0413caa4 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockSharedSetServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockSharedSetServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockTopicConstantService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockTopicConstantService.java index 023567e3d2..ddbbdac13c 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockTopicConstantService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockTopicConstantService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockTopicConstantServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockTopicConstantServiceImpl.java index c6a193c23e..b58f561c60 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockTopicConstantServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockTopicConstantServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockTopicViewService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockTopicViewService.java index bfa4dcc7e5..9a36426368 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockTopicViewService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockTopicViewService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockTopicViewServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockTopicViewServiceImpl.java index bf0b4613c4..aa8fc69233 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockTopicViewServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockTopicViewServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockUserInterestService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockUserInterestService.java index 5b5f30a792..5ff475821d 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockUserInterestService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockUserInterestService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockUserInterestServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockUserInterestServiceImpl.java index ea6b91a34e..019f4577e4 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockUserInterestServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockUserInterestServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockUserListService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockUserListService.java index ff0fff02ec..21420074ff 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockUserListService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockUserListService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockUserListServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockUserListServiceImpl.java index 92bf85c037..ad89602ae4 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockUserListServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockUserListServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockVideoService.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockVideoService.java index ebf6195f09..370cb83152 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockVideoService.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockVideoService.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockVideoServiceImpl.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockVideoServiceImpl.java index 01145e16d0..bb4f1cd050 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockVideoServiceImpl.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/MockVideoServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/OperatingSystemVersionConstantServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/OperatingSystemVersionConstantServiceClientTest.java new file mode 100644 index 0000000000..ae4dfa429a --- /dev/null +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/OperatingSystemVersionConstantServiceClientTest.java @@ -0,0 +1,315 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services; + +import com.google.ads.googleads.v0.resources.OperatingSystemVersionConstant; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class OperatingSystemVersionConstantServiceClientTest { + private static MockAccountBudgetProposalService mockAccountBudgetProposalService; + private static MockAccountBudgetService mockAccountBudgetService; + private static MockAdGroupAdService mockAdGroupAdService; + private static MockAdGroupAudienceViewService mockAdGroupAudienceViewService; + private static MockAdGroupBidModifierService mockAdGroupBidModifierService; + private static MockAdGroupCriterionService mockAdGroupCriterionService; + private static MockAdGroupFeedService mockAdGroupFeedService; + private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; + private static MockAgeRangeViewService mockAgeRangeViewService; + private static MockBiddingStrategyService mockBiddingStrategyService; + private static MockBillingSetupService mockBillingSetupService; + private static MockCampaignAudienceViewService mockCampaignAudienceViewService; + private static MockCampaignBidModifierService mockCampaignBidModifierService; + private static MockCampaignBudgetService mockCampaignBudgetService; + private static MockCampaignCriterionService mockCampaignCriterionService; + private static MockCampaignFeedService mockCampaignFeedService; + private static MockCampaignService mockCampaignService; + private static MockCampaignSharedSetService mockCampaignSharedSetService; + private static MockCarrierConstantService mockCarrierConstantService; + private static MockChangeStatusService mockChangeStatusService; + private static MockConversionActionService mockConversionActionService; + private static MockCustomerClientLinkService mockCustomerClientLinkService; + private static MockCustomerClientService mockCustomerClientService; + private static MockCustomerFeedService mockCustomerFeedService; + private static MockCustomerManagerLinkService mockCustomerManagerLinkService; + private static MockCustomerService mockCustomerService; + private static MockDisplayKeywordViewService mockDisplayKeywordViewService; + private static MockFeedItemService mockFeedItemService; + private static MockFeedMappingService mockFeedMappingService; + private static MockFeedService mockFeedService; + private static MockGenderViewService mockGenderViewService; + private static MockGeoTargetConstantService mockGeoTargetConstantService; + private static MockGoogleAdsFieldService mockGoogleAdsFieldService; + private static MockSharedCriterionService mockSharedCriterionService; + private static MockSharedSetService mockSharedSetService; + private static MockUserListService mockUserListService; + private static MockGoogleAdsService mockGoogleAdsService; + private static MockHotelGroupViewService mockHotelGroupViewService; + private static MockHotelPerformanceViewService mockHotelPerformanceViewService; + private static MockKeywordPlanAdGroupService mockKeywordPlanAdGroupService; + private static MockKeywordPlanCampaignService mockKeywordPlanCampaignService; + private static MockKeywordPlanIdeaService mockKeywordPlanIdeaService; + private static MockKeywordPlanKeywordService mockKeywordPlanKeywordService; + private static MockKeywordPlanNegativeKeywordService mockKeywordPlanNegativeKeywordService; + private static MockKeywordPlanService mockKeywordPlanService; + private static MockKeywordViewService mockKeywordViewService; + private static MockLanguageConstantService mockLanguageConstantService; + private static MockManagedPlacementViewService mockManagedPlacementViewService; + private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; + private static MockParentalStatusViewService mockParentalStatusViewService; + private static MockPaymentsAccountService mockPaymentsAccountService; + private static MockProductGroupViewService mockProductGroupViewService; + private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; + private static MockSearchTermViewService mockSearchTermViewService; + private static MockTopicConstantService mockTopicConstantService; + private static MockTopicViewService mockTopicViewService; + private static MockUserInterestService mockUserInterestService; + private static MockVideoService mockVideoService; + private static MockServiceHelper serviceHelper; + private OperatingSystemVersionConstantServiceClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockAccountBudgetProposalService = new MockAccountBudgetProposalService(); + mockAccountBudgetService = new MockAccountBudgetService(); + mockAdGroupAdService = new MockAdGroupAdService(); + mockAdGroupAudienceViewService = new MockAdGroupAudienceViewService(); + mockAdGroupBidModifierService = new MockAdGroupBidModifierService(); + mockAdGroupCriterionService = new MockAdGroupCriterionService(); + mockAdGroupFeedService = new MockAdGroupFeedService(); + mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); + mockAgeRangeViewService = new MockAgeRangeViewService(); + mockBiddingStrategyService = new MockBiddingStrategyService(); + mockBillingSetupService = new MockBillingSetupService(); + mockCampaignAudienceViewService = new MockCampaignAudienceViewService(); + mockCampaignBidModifierService = new MockCampaignBidModifierService(); + mockCampaignBudgetService = new MockCampaignBudgetService(); + mockCampaignCriterionService = new MockCampaignCriterionService(); + mockCampaignFeedService = new MockCampaignFeedService(); + mockCampaignService = new MockCampaignService(); + mockCampaignSharedSetService = new MockCampaignSharedSetService(); + mockCarrierConstantService = new MockCarrierConstantService(); + mockChangeStatusService = new MockChangeStatusService(); + mockConversionActionService = new MockConversionActionService(); + mockCustomerClientLinkService = new MockCustomerClientLinkService(); + mockCustomerClientService = new MockCustomerClientService(); + mockCustomerFeedService = new MockCustomerFeedService(); + mockCustomerManagerLinkService = new MockCustomerManagerLinkService(); + mockCustomerService = new MockCustomerService(); + mockDisplayKeywordViewService = new MockDisplayKeywordViewService(); + mockFeedItemService = new MockFeedItemService(); + mockFeedMappingService = new MockFeedMappingService(); + mockFeedService = new MockFeedService(); + mockGenderViewService = new MockGenderViewService(); + mockGeoTargetConstantService = new MockGeoTargetConstantService(); + mockGoogleAdsFieldService = new MockGoogleAdsFieldService(); + mockSharedCriterionService = new MockSharedCriterionService(); + mockSharedSetService = new MockSharedSetService(); + mockUserListService = new MockUserListService(); + mockGoogleAdsService = new MockGoogleAdsService(); + mockHotelGroupViewService = new MockHotelGroupViewService(); + mockHotelPerformanceViewService = new MockHotelPerformanceViewService(); + mockKeywordPlanAdGroupService = new MockKeywordPlanAdGroupService(); + mockKeywordPlanCampaignService = new MockKeywordPlanCampaignService(); + mockKeywordPlanIdeaService = new MockKeywordPlanIdeaService(); + mockKeywordPlanKeywordService = new MockKeywordPlanKeywordService(); + mockKeywordPlanNegativeKeywordService = new MockKeywordPlanNegativeKeywordService(); + mockKeywordPlanService = new MockKeywordPlanService(); + mockKeywordViewService = new MockKeywordViewService(); + mockLanguageConstantService = new MockLanguageConstantService(); + mockManagedPlacementViewService = new MockManagedPlacementViewService(); + mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); + mockParentalStatusViewService = new MockParentalStatusViewService(); + mockPaymentsAccountService = new MockPaymentsAccountService(); + mockProductGroupViewService = new MockProductGroupViewService(); + mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); + mockSearchTermViewService = new MockSearchTermViewService(); + mockTopicConstantService = new MockTopicConstantService(); + mockTopicViewService = new MockTopicViewService(); + mockUserInterestService = new MockUserInterestService(); + mockVideoService = new MockVideoService(); + serviceHelper = + new MockServiceHelper( + "in-process-1", + Arrays.asList( + mockAccountBudgetProposalService, + mockAccountBudgetService, + mockAdGroupAdService, + mockAdGroupAudienceViewService, + mockAdGroupBidModifierService, + mockAdGroupCriterionService, + mockAdGroupFeedService, + mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, + mockAgeRangeViewService, + mockBiddingStrategyService, + mockBillingSetupService, + mockCampaignAudienceViewService, + mockCampaignBidModifierService, + mockCampaignBudgetService, + mockCampaignCriterionService, + mockCampaignFeedService, + mockCampaignService, + mockCampaignSharedSetService, + mockCarrierConstantService, + mockChangeStatusService, + mockConversionActionService, + mockCustomerClientLinkService, + mockCustomerClientService, + mockCustomerFeedService, + mockCustomerManagerLinkService, + mockCustomerService, + mockDisplayKeywordViewService, + mockFeedItemService, + mockFeedMappingService, + mockFeedService, + mockGenderViewService, + mockGeoTargetConstantService, + mockGoogleAdsFieldService, + mockSharedCriterionService, + mockSharedSetService, + mockUserListService, + mockGoogleAdsService, + mockHotelGroupViewService, + mockHotelPerformanceViewService, + mockKeywordPlanAdGroupService, + mockKeywordPlanCampaignService, + mockKeywordPlanIdeaService, + mockKeywordPlanKeywordService, + mockKeywordPlanNegativeKeywordService, + mockKeywordPlanService, + mockKeywordViewService, + mockLanguageConstantService, + mockManagedPlacementViewService, + mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, + mockParentalStatusViewService, + mockPaymentsAccountService, + mockProductGroupViewService, + mockRecommendationService, + mockRemarketingActionService, + mockSearchTermViewService, + mockTopicConstantService, + mockTopicViewService, + mockUserInterestService, + mockVideoService)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + OperatingSystemVersionConstantServiceSettings settings = + OperatingSystemVersionConstantServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = OperatingSystemVersionConstantServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + @SuppressWarnings("all") + public void getOperatingSystemVersionConstantTest() { + String resourceName2 = "resourceName2625949903"; + OperatingSystemVersionConstant expectedResponse = + OperatingSystemVersionConstant.newBuilder().setResourceName(resourceName2).build(); + mockOperatingSystemVersionConstantService.addResponse(expectedResponse); + + String formattedResourceName = + OperatingSystemVersionConstantServiceClient.formatOperatingSystemVersionConstantName( + "[OPERATING_SYSTEM_VERSION_CONSTANT]"); + + OperatingSystemVersionConstant actualResponse = + client.getOperatingSystemVersionConstant(formattedResourceName); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = + mockOperatingSystemVersionConstantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetOperatingSystemVersionConstantRequest actualRequest = + (GetOperatingSystemVersionConstantRequest) actualRequests.get(0); + + Assert.assertEquals(formattedResourceName, actualRequest.getResourceName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getOperatingSystemVersionConstantExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockOperatingSystemVersionConstantService.addException(exception); + + try { + String formattedResourceName = + OperatingSystemVersionConstantServiceClient.formatOperatingSystemVersionConstantName( + "[OPERATING_SYSTEM_VERSION_CONSTANT]"); + + client.getOperatingSystemVersionConstant(formattedResourceName); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } +} diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/ParentalStatusViewServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/ParentalStatusViewServiceClientTest.java index a36c26973a..95fbf699c1 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/ParentalStatusViewServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/ParentalStatusViewServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,6 +46,8 @@ public class ParentalStatusViewServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -54,7 +56,6 @@ public class ParentalStatusViewServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -88,10 +89,15 @@ public class ParentalStatusViewServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -111,6 +117,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -119,7 +127,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -153,10 +160,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -174,6 +185,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -182,7 +195,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -216,10 +228,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/PaymentsAccountServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/PaymentsAccountServiceClientTest.java index fad62339d2..4e89ac16b1 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/PaymentsAccountServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/PaymentsAccountServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -45,6 +45,8 @@ public class PaymentsAccountServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -53,7 +55,6 @@ public class PaymentsAccountServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -87,10 +88,15 @@ public class PaymentsAccountServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -110,6 +116,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -118,7 +126,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -152,10 +159,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -173,6 +184,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -181,7 +194,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -215,10 +227,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/ProductGroupViewServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/ProductGroupViewServiceClientTest.java index de4955fb7c..49a70b18f1 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/ProductGroupViewServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/ProductGroupViewServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,6 +46,8 @@ public class ProductGroupViewServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -54,7 +56,6 @@ public class ProductGroupViewServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -88,10 +89,15 @@ public class ProductGroupViewServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -111,6 +117,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -119,7 +127,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -153,10 +160,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -174,6 +185,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -182,7 +195,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -216,10 +228,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/RecommendationServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/RecommendationServiceClientTest.java index 7ef193fe29..6b704d1736 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/RecommendationServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/RecommendationServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -48,6 +48,8 @@ public class RecommendationServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -56,7 +58,6 @@ public class RecommendationServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -90,10 +91,15 @@ public class RecommendationServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -113,6 +119,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -121,7 +129,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -155,10 +162,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -176,6 +187,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -184,7 +197,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -218,10 +230,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, @@ -301,11 +317,11 @@ public void applyRecommendationTest() { mockRecommendationService.addResponse(expectedResponse); String customerId = "customerId-1772061412"; - boolean partialFailure = true; List operations = new ArrayList<>(); + boolean partialFailure = true; ApplyRecommendationResponse actualResponse = - client.applyRecommendation(customerId, partialFailure, operations); + client.applyRecommendation(customerId, operations, partialFailure); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockRecommendationService.getRequests(); @@ -313,8 +329,8 @@ public void applyRecommendationTest() { ApplyRecommendationRequest actualRequest = (ApplyRecommendationRequest) actualRequests.get(0); Assert.assertEquals(customerId, actualRequest.getCustomerId()); - Assert.assertEquals(partialFailure, actualRequest.getPartialFailure()); Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertEquals(partialFailure, actualRequest.getPartialFailure()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -329,10 +345,51 @@ public void applyRecommendationExceptionTest() throws Exception { try { String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); boolean partialFailure = true; + + client.applyRecommendation(customerId, operations, partialFailure); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void applyRecommendationTest2() { + ApplyRecommendationResponse expectedResponse = ApplyRecommendationResponse.newBuilder().build(); + mockRecommendationService.addResponse(expectedResponse); + + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + + ApplyRecommendationResponse actualResponse = client.applyRecommendation(customerId, operations); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockRecommendationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ApplyRecommendationRequest actualRequest = (ApplyRecommendationRequest) actualRequests.get(0); + + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void applyRecommendationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockRecommendationService.addException(exception); + + try { + String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); - client.applyRecommendation(customerId, partialFailure, operations); + client.applyRecommendation(customerId, operations); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -347,12 +404,12 @@ public void dismissRecommendationTest() { mockRecommendationService.addResponse(expectedResponse); String customerId = "customerId-1772061412"; - boolean partialFailure = true; List operations = new ArrayList<>(); + boolean partialFailure = true; DismissRecommendationResponse actualResponse = - client.dismissRecommendation(customerId, partialFailure, operations); + client.dismissRecommendation(customerId, operations, partialFailure); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockRecommendationService.getRequests(); @@ -361,8 +418,8 @@ public void dismissRecommendationTest() { (DismissRecommendationRequest) actualRequests.get(0); Assert.assertEquals(customerId, actualRequest.getCustomerId()); - Assert.assertEquals(partialFailure, actualRequest.getPartialFailure()); Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertEquals(partialFailure, actualRequest.getPartialFailure()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -377,11 +434,57 @@ public void dismissRecommendationExceptionTest() throws Exception { try { String customerId = "customerId-1772061412"; + List operations = + new ArrayList<>(); boolean partialFailure = true; + + client.dismissRecommendation(customerId, operations, partialFailure); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void dismissRecommendationTest2() { + DismissRecommendationResponse expectedResponse = + DismissRecommendationResponse.newBuilder().build(); + mockRecommendationService.addResponse(expectedResponse); + + String customerId = "customerId-1772061412"; + List operations = + new ArrayList<>(); + + DismissRecommendationResponse actualResponse = + client.dismissRecommendation(customerId, operations); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockRecommendationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DismissRecommendationRequest actualRequest = + (DismissRecommendationRequest) actualRequests.get(0); + + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void dismissRecommendationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockRecommendationService.addException(exception); + + try { + String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); - client.dismissRecommendation(customerId, partialFailure, operations); + client.dismissRecommendation(customerId, operations); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/RemarketingActionServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/RemarketingActionServiceClientTest.java new file mode 100644 index 0000000000..a55ee2b496 --- /dev/null +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/RemarketingActionServiceClientTest.java @@ -0,0 +1,407 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.ads.googleads.v0.services; + +import com.google.ads.googleads.v0.resources.RemarketingAction; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class RemarketingActionServiceClientTest { + private static MockAccountBudgetProposalService mockAccountBudgetProposalService; + private static MockAccountBudgetService mockAccountBudgetService; + private static MockAdGroupAdService mockAdGroupAdService; + private static MockAdGroupAudienceViewService mockAdGroupAudienceViewService; + private static MockAdGroupBidModifierService mockAdGroupBidModifierService; + private static MockAdGroupCriterionService mockAdGroupCriterionService; + private static MockAdGroupFeedService mockAdGroupFeedService; + private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; + private static MockAgeRangeViewService mockAgeRangeViewService; + private static MockBiddingStrategyService mockBiddingStrategyService; + private static MockBillingSetupService mockBillingSetupService; + private static MockCampaignAudienceViewService mockCampaignAudienceViewService; + private static MockCampaignBidModifierService mockCampaignBidModifierService; + private static MockCampaignBudgetService mockCampaignBudgetService; + private static MockCampaignCriterionService mockCampaignCriterionService; + private static MockCampaignFeedService mockCampaignFeedService; + private static MockCampaignService mockCampaignService; + private static MockCampaignSharedSetService mockCampaignSharedSetService; + private static MockCarrierConstantService mockCarrierConstantService; + private static MockChangeStatusService mockChangeStatusService; + private static MockConversionActionService mockConversionActionService; + private static MockCustomerClientLinkService mockCustomerClientLinkService; + private static MockCustomerClientService mockCustomerClientService; + private static MockCustomerFeedService mockCustomerFeedService; + private static MockCustomerManagerLinkService mockCustomerManagerLinkService; + private static MockCustomerService mockCustomerService; + private static MockDisplayKeywordViewService mockDisplayKeywordViewService; + private static MockFeedItemService mockFeedItemService; + private static MockFeedMappingService mockFeedMappingService; + private static MockFeedService mockFeedService; + private static MockGenderViewService mockGenderViewService; + private static MockGeoTargetConstantService mockGeoTargetConstantService; + private static MockGoogleAdsFieldService mockGoogleAdsFieldService; + private static MockSharedCriterionService mockSharedCriterionService; + private static MockSharedSetService mockSharedSetService; + private static MockUserListService mockUserListService; + private static MockGoogleAdsService mockGoogleAdsService; + private static MockHotelGroupViewService mockHotelGroupViewService; + private static MockHotelPerformanceViewService mockHotelPerformanceViewService; + private static MockKeywordPlanAdGroupService mockKeywordPlanAdGroupService; + private static MockKeywordPlanCampaignService mockKeywordPlanCampaignService; + private static MockKeywordPlanIdeaService mockKeywordPlanIdeaService; + private static MockKeywordPlanKeywordService mockKeywordPlanKeywordService; + private static MockKeywordPlanNegativeKeywordService mockKeywordPlanNegativeKeywordService; + private static MockKeywordPlanService mockKeywordPlanService; + private static MockKeywordViewService mockKeywordViewService; + private static MockLanguageConstantService mockLanguageConstantService; + private static MockManagedPlacementViewService mockManagedPlacementViewService; + private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; + private static MockParentalStatusViewService mockParentalStatusViewService; + private static MockPaymentsAccountService mockPaymentsAccountService; + private static MockProductGroupViewService mockProductGroupViewService; + private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; + private static MockSearchTermViewService mockSearchTermViewService; + private static MockTopicConstantService mockTopicConstantService; + private static MockTopicViewService mockTopicViewService; + private static MockUserInterestService mockUserInterestService; + private static MockVideoService mockVideoService; + private static MockServiceHelper serviceHelper; + private RemarketingActionServiceClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockAccountBudgetProposalService = new MockAccountBudgetProposalService(); + mockAccountBudgetService = new MockAccountBudgetService(); + mockAdGroupAdService = new MockAdGroupAdService(); + mockAdGroupAudienceViewService = new MockAdGroupAudienceViewService(); + mockAdGroupBidModifierService = new MockAdGroupBidModifierService(); + mockAdGroupCriterionService = new MockAdGroupCriterionService(); + mockAdGroupFeedService = new MockAdGroupFeedService(); + mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); + mockAgeRangeViewService = new MockAgeRangeViewService(); + mockBiddingStrategyService = new MockBiddingStrategyService(); + mockBillingSetupService = new MockBillingSetupService(); + mockCampaignAudienceViewService = new MockCampaignAudienceViewService(); + mockCampaignBidModifierService = new MockCampaignBidModifierService(); + mockCampaignBudgetService = new MockCampaignBudgetService(); + mockCampaignCriterionService = new MockCampaignCriterionService(); + mockCampaignFeedService = new MockCampaignFeedService(); + mockCampaignService = new MockCampaignService(); + mockCampaignSharedSetService = new MockCampaignSharedSetService(); + mockCarrierConstantService = new MockCarrierConstantService(); + mockChangeStatusService = new MockChangeStatusService(); + mockConversionActionService = new MockConversionActionService(); + mockCustomerClientLinkService = new MockCustomerClientLinkService(); + mockCustomerClientService = new MockCustomerClientService(); + mockCustomerFeedService = new MockCustomerFeedService(); + mockCustomerManagerLinkService = new MockCustomerManagerLinkService(); + mockCustomerService = new MockCustomerService(); + mockDisplayKeywordViewService = new MockDisplayKeywordViewService(); + mockFeedItemService = new MockFeedItemService(); + mockFeedMappingService = new MockFeedMappingService(); + mockFeedService = new MockFeedService(); + mockGenderViewService = new MockGenderViewService(); + mockGeoTargetConstantService = new MockGeoTargetConstantService(); + mockGoogleAdsFieldService = new MockGoogleAdsFieldService(); + mockSharedCriterionService = new MockSharedCriterionService(); + mockSharedSetService = new MockSharedSetService(); + mockUserListService = new MockUserListService(); + mockGoogleAdsService = new MockGoogleAdsService(); + mockHotelGroupViewService = new MockHotelGroupViewService(); + mockHotelPerformanceViewService = new MockHotelPerformanceViewService(); + mockKeywordPlanAdGroupService = new MockKeywordPlanAdGroupService(); + mockKeywordPlanCampaignService = new MockKeywordPlanCampaignService(); + mockKeywordPlanIdeaService = new MockKeywordPlanIdeaService(); + mockKeywordPlanKeywordService = new MockKeywordPlanKeywordService(); + mockKeywordPlanNegativeKeywordService = new MockKeywordPlanNegativeKeywordService(); + mockKeywordPlanService = new MockKeywordPlanService(); + mockKeywordViewService = new MockKeywordViewService(); + mockLanguageConstantService = new MockLanguageConstantService(); + mockManagedPlacementViewService = new MockManagedPlacementViewService(); + mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); + mockParentalStatusViewService = new MockParentalStatusViewService(); + mockPaymentsAccountService = new MockPaymentsAccountService(); + mockProductGroupViewService = new MockProductGroupViewService(); + mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); + mockSearchTermViewService = new MockSearchTermViewService(); + mockTopicConstantService = new MockTopicConstantService(); + mockTopicViewService = new MockTopicViewService(); + mockUserInterestService = new MockUserInterestService(); + mockVideoService = new MockVideoService(); + serviceHelper = + new MockServiceHelper( + "in-process-1", + Arrays.asList( + mockAccountBudgetProposalService, + mockAccountBudgetService, + mockAdGroupAdService, + mockAdGroupAudienceViewService, + mockAdGroupBidModifierService, + mockAdGroupCriterionService, + mockAdGroupFeedService, + mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, + mockAgeRangeViewService, + mockBiddingStrategyService, + mockBillingSetupService, + mockCampaignAudienceViewService, + mockCampaignBidModifierService, + mockCampaignBudgetService, + mockCampaignCriterionService, + mockCampaignFeedService, + mockCampaignService, + mockCampaignSharedSetService, + mockCarrierConstantService, + mockChangeStatusService, + mockConversionActionService, + mockCustomerClientLinkService, + mockCustomerClientService, + mockCustomerFeedService, + mockCustomerManagerLinkService, + mockCustomerService, + mockDisplayKeywordViewService, + mockFeedItemService, + mockFeedMappingService, + mockFeedService, + mockGenderViewService, + mockGeoTargetConstantService, + mockGoogleAdsFieldService, + mockSharedCriterionService, + mockSharedSetService, + mockUserListService, + mockGoogleAdsService, + mockHotelGroupViewService, + mockHotelPerformanceViewService, + mockKeywordPlanAdGroupService, + mockKeywordPlanCampaignService, + mockKeywordPlanIdeaService, + mockKeywordPlanKeywordService, + mockKeywordPlanNegativeKeywordService, + mockKeywordPlanService, + mockKeywordViewService, + mockLanguageConstantService, + mockManagedPlacementViewService, + mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, + mockParentalStatusViewService, + mockPaymentsAccountService, + mockProductGroupViewService, + mockRecommendationService, + mockRemarketingActionService, + mockSearchTermViewService, + mockTopicConstantService, + mockTopicViewService, + mockUserInterestService, + mockVideoService)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + RemarketingActionServiceSettings settings = + RemarketingActionServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = RemarketingActionServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + @SuppressWarnings("all") + public void getRemarketingActionTest() { + String resourceName2 = "resourceName2625949903"; + RemarketingAction expectedResponse = + RemarketingAction.newBuilder().setResourceName(resourceName2).build(); + mockRemarketingActionService.addResponse(expectedResponse); + + String formattedResourceName = + RemarketingActionServiceClient.formatRemarketingActionName( + "[CUSTOMER]", "[REMARKETING_ACTION]"); + + RemarketingAction actualResponse = client.getRemarketingAction(formattedResourceName); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockRemarketingActionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetRemarketingActionRequest actualRequest = (GetRemarketingActionRequest) actualRequests.get(0); + + Assert.assertEquals(formattedResourceName, actualRequest.getResourceName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getRemarketingActionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockRemarketingActionService.addException(exception); + + try { + String formattedResourceName = + RemarketingActionServiceClient.formatRemarketingActionName( + "[CUSTOMER]", "[REMARKETING_ACTION]"); + + client.getRemarketingAction(formattedResourceName); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void mutateRemarketingActionsTest() { + MutateRemarketingActionsResponse expectedResponse = + MutateRemarketingActionsResponse.newBuilder().build(); + mockRemarketingActionService.addResponse(expectedResponse); + + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; + + MutateRemarketingActionsResponse actualResponse = + client.mutateRemarketingActions(customerId, operations, partialFailure, validateOnly); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockRemarketingActionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MutateRemarketingActionsRequest actualRequest = + (MutateRemarketingActionsRequest) actualRequests.get(0); + + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertEquals(partialFailure, actualRequest.getPartialFailure()); + Assert.assertEquals(validateOnly, actualRequest.getValidateOnly()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void mutateRemarketingActionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockRemarketingActionService.addException(exception); + + try { + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; + + client.mutateRemarketingActions(customerId, operations, partialFailure, validateOnly); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void mutateRemarketingActionsTest2() { + MutateRemarketingActionsResponse expectedResponse = + MutateRemarketingActionsResponse.newBuilder().build(); + mockRemarketingActionService.addResponse(expectedResponse); + + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + + MutateRemarketingActionsResponse actualResponse = + client.mutateRemarketingActions(customerId, operations); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockRemarketingActionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MutateRemarketingActionsRequest actualRequest = + (MutateRemarketingActionsRequest) actualRequests.get(0); + + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void mutateRemarketingActionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockRemarketingActionService.addException(exception); + + try { + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + + client.mutateRemarketingActions(customerId, operations); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } +} diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/SearchTermViewServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/SearchTermViewServiceClientTest.java index adc6afa2f3..ed97ee9fd0 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/SearchTermViewServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/SearchTermViewServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,6 +46,8 @@ public class SearchTermViewServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -54,7 +56,6 @@ public class SearchTermViewServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -88,10 +89,15 @@ public class SearchTermViewServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -111,6 +117,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -119,7 +127,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -153,10 +160,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -174,6 +185,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -182,7 +195,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -216,10 +228,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/SharedCriterionServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/SharedCriterionServiceClientTest.java index 7705efb73d..51e5bac5aa 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/SharedCriterionServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/SharedCriterionServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,6 +47,8 @@ public class SharedCriterionServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -55,7 +57,6 @@ public class SharedCriterionServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -89,10 +90,15 @@ public class SharedCriterionServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -112,6 +118,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -120,7 +128,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -154,10 +161,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -175,6 +186,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -183,7 +196,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -217,10 +229,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, @@ -302,9 +318,11 @@ public void mutateSharedCriteriaTest() { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; MutateSharedCriteriaResponse actualResponse = - client.mutateSharedCriteria(customerId, operations); + client.mutateSharedCriteria(customerId, operations, partialFailure, validateOnly); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockSharedCriterionService.getRequests(); @@ -313,6 +331,8 @@ public void mutateSharedCriteriaTest() { Assert.assertEquals(customerId, actualRequest.getCustomerId()); Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertEquals(partialFailure, actualRequest.getPartialFailure()); + Assert.assertEquals(validateOnly, actualRequest.getValidateOnly()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -325,6 +345,51 @@ public void mutateSharedCriteriaExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockSharedCriterionService.addException(exception); + try { + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; + + client.mutateSharedCriteria(customerId, operations, partialFailure, validateOnly); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void mutateSharedCriteriaTest2() { + MutateSharedCriteriaResponse expectedResponse = + MutateSharedCriteriaResponse.newBuilder().build(); + mockSharedCriterionService.addResponse(expectedResponse); + + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + + MutateSharedCriteriaResponse actualResponse = + client.mutateSharedCriteria(customerId, operations); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSharedCriterionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MutateSharedCriteriaRequest actualRequest = (MutateSharedCriteriaRequest) actualRequests.get(0); + + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void mutateSharedCriteriaExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSharedCriterionService.addException(exception); + try { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/SharedSetServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/SharedSetServiceClientTest.java index 02dafa3af0..df0e3682a0 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/SharedSetServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/SharedSetServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,6 +47,8 @@ public class SharedSetServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -55,7 +57,6 @@ public class SharedSetServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -89,10 +90,15 @@ public class SharedSetServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -112,6 +118,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -120,7 +128,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -154,10 +161,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -175,6 +186,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -183,7 +196,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -217,10 +229,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, @@ -300,8 +316,11 @@ public void mutateSharedSetsTest() { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; - MutateSharedSetsResponse actualResponse = client.mutateSharedSets(customerId, operations); + MutateSharedSetsResponse actualResponse = + client.mutateSharedSets(customerId, operations, partialFailure, validateOnly); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockSharedSetService.getRequests(); @@ -310,6 +329,8 @@ public void mutateSharedSetsTest() { Assert.assertEquals(customerId, actualRequest.getCustomerId()); Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertEquals(partialFailure, actualRequest.getPartialFailure()); + Assert.assertEquals(validateOnly, actualRequest.getValidateOnly()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -322,6 +343,49 @@ public void mutateSharedSetsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockSharedSetService.addException(exception); + try { + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; + + client.mutateSharedSets(customerId, operations, partialFailure, validateOnly); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void mutateSharedSetsTest2() { + MutateSharedSetsResponse expectedResponse = MutateSharedSetsResponse.newBuilder().build(); + mockSharedSetService.addResponse(expectedResponse); + + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + + MutateSharedSetsResponse actualResponse = client.mutateSharedSets(customerId, operations); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSharedSetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MutateSharedSetsRequest actualRequest = (MutateSharedSetsRequest) actualRequests.get(0); + + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void mutateSharedSetsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSharedSetService.addException(exception); + try { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/TopicConstantServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/TopicConstantServiceClientTest.java index 75272256d6..1a1810e448 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/TopicConstantServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/TopicConstantServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,6 +46,8 @@ public class TopicConstantServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -54,7 +56,6 @@ public class TopicConstantServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -88,10 +89,15 @@ public class TopicConstantServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -111,6 +117,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -119,7 +127,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -153,10 +160,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -174,6 +185,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -182,7 +195,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -216,10 +228,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/TopicViewServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/TopicViewServiceClientTest.java index a38e1f384b..37a31d8ef0 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/TopicViewServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/TopicViewServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,6 +46,8 @@ public class TopicViewServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -54,7 +56,6 @@ public class TopicViewServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -88,10 +89,15 @@ public class TopicViewServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -111,6 +117,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -119,7 +127,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -153,10 +160,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -174,6 +185,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -182,7 +195,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -216,10 +228,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/UserInterestServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/UserInterestServiceClientTest.java index 8faf8725e3..5a782f6f2a 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/UserInterestServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/UserInterestServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,6 +46,8 @@ public class UserInterestServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -54,7 +56,6 @@ public class UserInterestServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -88,10 +89,15 @@ public class UserInterestServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -111,6 +117,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -119,7 +127,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -153,10 +160,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -174,6 +185,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -182,7 +195,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -216,10 +228,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/UserListServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/UserListServiceClientTest.java index 0d2116f8e8..64801b4f1b 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/UserListServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/UserListServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,6 +47,8 @@ public class UserListServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -55,7 +57,6 @@ public class UserListServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -89,10 +90,15 @@ public class UserListServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -112,6 +118,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -120,7 +128,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -154,10 +161,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -175,6 +186,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -183,7 +196,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -217,10 +229,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService, @@ -300,8 +316,11 @@ public void mutateUserListsTest() { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; - MutateUserListsResponse actualResponse = client.mutateUserLists(customerId, operations); + MutateUserListsResponse actualResponse = + client.mutateUserLists(customerId, operations, partialFailure, validateOnly); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockUserListService.getRequests(); @@ -310,6 +329,8 @@ public void mutateUserListsTest() { Assert.assertEquals(customerId, actualRequest.getCustomerId()); Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertEquals(partialFailure, actualRequest.getPartialFailure()); + Assert.assertEquals(validateOnly, actualRequest.getValidateOnly()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -322,6 +343,49 @@ public void mutateUserListsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockUserListService.addException(exception); + try { + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + boolean partialFailure = true; + boolean validateOnly = false; + + client.mutateUserLists(customerId, operations, partialFailure, validateOnly); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void mutateUserListsTest2() { + MutateUserListsResponse expectedResponse = MutateUserListsResponse.newBuilder().build(); + mockUserListService.addResponse(expectedResponse); + + String customerId = "customerId-1772061412"; + List operations = new ArrayList<>(); + + MutateUserListsResponse actualResponse = client.mutateUserLists(customerId, operations); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockUserListService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + MutateUserListsRequest actualRequest = (MutateUserListsRequest) actualRequests.get(0); + + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertEquals(operations, actualRequest.getOperationsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void mutateUserListsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockUserListService.addException(exception); + try { String customerId = "customerId-1772061412"; List operations = new ArrayList<>(); diff --git a/google-ads/src/test/java/com/google/ads/googleads/v0/services/VideoServiceClientTest.java b/google-ads/src/test/java/com/google/ads/googleads/v0/services/VideoServiceClientTest.java index e2a13645e3..bd46425db1 100644 --- a/google-ads/src/test/java/com/google/ads/googleads/v0/services/VideoServiceClientTest.java +++ b/google-ads/src/test/java/com/google/ads/googleads/v0/services/VideoServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,6 +46,8 @@ public class VideoServiceClientTest { private static MockAdGroupCriterionService mockAdGroupCriterionService; private static MockAdGroupFeedService mockAdGroupFeedService; private static MockAdGroupService mockAdGroupService; + private static MockAdParameterService mockAdParameterService; + private static MockAdScheduleViewService mockAdScheduleViewService; private static MockAgeRangeViewService mockAgeRangeViewService; private static MockBiddingStrategyService mockBiddingStrategyService; private static MockBillingSetupService mockBillingSetupService; @@ -54,7 +56,6 @@ public class VideoServiceClientTest { private static MockCampaignBudgetService mockCampaignBudgetService; private static MockCampaignCriterionService mockCampaignCriterionService; private static MockCampaignFeedService mockCampaignFeedService; - private static MockCampaignGroupService mockCampaignGroupService; private static MockCampaignService mockCampaignService; private static MockCampaignSharedSetService mockCampaignSharedSetService; private static MockCarrierConstantService mockCarrierConstantService; @@ -88,10 +89,15 @@ public class VideoServiceClientTest { private static MockLanguageConstantService mockLanguageConstantService; private static MockManagedPlacementViewService mockManagedPlacementViewService; private static MockMediaFileService mockMediaFileService; + private static MockMobileAppCategoryConstantService mockMobileAppCategoryConstantService; + private static MockMobileDeviceConstantService mockMobileDeviceConstantService; + private static MockOperatingSystemVersionConstantService + mockOperatingSystemVersionConstantService; private static MockParentalStatusViewService mockParentalStatusViewService; private static MockPaymentsAccountService mockPaymentsAccountService; private static MockProductGroupViewService mockProductGroupViewService; private static MockRecommendationService mockRecommendationService; + private static MockRemarketingActionService mockRemarketingActionService; private static MockSearchTermViewService mockSearchTermViewService; private static MockTopicConstantService mockTopicConstantService; private static MockTopicViewService mockTopicViewService; @@ -111,6 +117,8 @@ public static void startStaticServer() { mockAdGroupCriterionService = new MockAdGroupCriterionService(); mockAdGroupFeedService = new MockAdGroupFeedService(); mockAdGroupService = new MockAdGroupService(); + mockAdParameterService = new MockAdParameterService(); + mockAdScheduleViewService = new MockAdScheduleViewService(); mockAgeRangeViewService = new MockAgeRangeViewService(); mockBiddingStrategyService = new MockBiddingStrategyService(); mockBillingSetupService = new MockBillingSetupService(); @@ -119,7 +127,6 @@ public static void startStaticServer() { mockCampaignBudgetService = new MockCampaignBudgetService(); mockCampaignCriterionService = new MockCampaignCriterionService(); mockCampaignFeedService = new MockCampaignFeedService(); - mockCampaignGroupService = new MockCampaignGroupService(); mockCampaignService = new MockCampaignService(); mockCampaignSharedSetService = new MockCampaignSharedSetService(); mockCarrierConstantService = new MockCarrierConstantService(); @@ -153,10 +160,14 @@ public static void startStaticServer() { mockLanguageConstantService = new MockLanguageConstantService(); mockManagedPlacementViewService = new MockManagedPlacementViewService(); mockMediaFileService = new MockMediaFileService(); + mockMobileAppCategoryConstantService = new MockMobileAppCategoryConstantService(); + mockMobileDeviceConstantService = new MockMobileDeviceConstantService(); + mockOperatingSystemVersionConstantService = new MockOperatingSystemVersionConstantService(); mockParentalStatusViewService = new MockParentalStatusViewService(); mockPaymentsAccountService = new MockPaymentsAccountService(); mockProductGroupViewService = new MockProductGroupViewService(); mockRecommendationService = new MockRecommendationService(); + mockRemarketingActionService = new MockRemarketingActionService(); mockSearchTermViewService = new MockSearchTermViewService(); mockTopicConstantService = new MockTopicConstantService(); mockTopicViewService = new MockTopicViewService(); @@ -174,6 +185,8 @@ public static void startStaticServer() { mockAdGroupCriterionService, mockAdGroupFeedService, mockAdGroupService, + mockAdParameterService, + mockAdScheduleViewService, mockAgeRangeViewService, mockBiddingStrategyService, mockBillingSetupService, @@ -182,7 +195,6 @@ public static void startStaticServer() { mockCampaignBudgetService, mockCampaignCriterionService, mockCampaignFeedService, - mockCampaignGroupService, mockCampaignService, mockCampaignSharedSetService, mockCarrierConstantService, @@ -216,10 +228,14 @@ public static void startStaticServer() { mockLanguageConstantService, mockManagedPlacementViewService, mockMediaFileService, + mockMobileAppCategoryConstantService, + mockMobileDeviceConstantService, + mockOperatingSystemVersionConstantService, mockParentalStatusViewService, mockPaymentsAccountService, mockProductGroupViewService, mockRecommendationService, + mockRemarketingActionService, mockSearchTermViewService, mockTopicConstantService, mockTopicViewService,