1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/analytics/admin/v1alpha/resources.proto 18 19 package com.google.analytics.admin.v1alpha; 20 21 /** 22 * 23 * 24 * <pre> 25 * A link between a GA4 property and a Search Ads 360 entity. 26 * </pre> 27 * 28 * Protobuf type {@code google.analytics.admin.v1alpha.SearchAds360Link} 29 */ 30 public final class SearchAds360Link extends com.google.protobuf.GeneratedMessageV3 31 implements 32 // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.SearchAds360Link) 33 SearchAds360LinkOrBuilder { 34 private static final long serialVersionUID = 0L; 35 // Use SearchAds360Link.newBuilder() to construct. SearchAds360Link(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36 private SearchAds360Link(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 37 super(builder); 38 } 39 SearchAds360Link()40 private SearchAds360Link() { 41 name_ = ""; 42 advertiserId_ = ""; 43 advertiserDisplayName_ = ""; 44 } 45 46 @java.lang.Override 47 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)48 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 49 return new SearchAds360Link(); 50 } 51 52 @java.lang.Override getUnknownFields()53 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 54 return this.unknownFields; 55 } 56 getDescriptor()57 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 58 return com.google.analytics.admin.v1alpha.ResourcesProto 59 .internal_static_google_analytics_admin_v1alpha_SearchAds360Link_descriptor; 60 } 61 62 @java.lang.Override 63 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()64 internalGetFieldAccessorTable() { 65 return com.google.analytics.admin.v1alpha.ResourcesProto 66 .internal_static_google_analytics_admin_v1alpha_SearchAds360Link_fieldAccessorTable 67 .ensureFieldAccessorsInitialized( 68 com.google.analytics.admin.v1alpha.SearchAds360Link.class, 69 com.google.analytics.admin.v1alpha.SearchAds360Link.Builder.class); 70 } 71 72 public static final int NAME_FIELD_NUMBER = 1; 73 74 @SuppressWarnings("serial") 75 private volatile java.lang.Object name_ = ""; 76 /** 77 * 78 * 79 * <pre> 80 * Output only. The resource name for this SearchAds360Link resource. 81 * Format: properties/{propertyId}/searchAds360Links/{linkId} 82 * Note: linkId is not the Search Ads 360 advertiser ID 83 * </pre> 84 * 85 * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 86 * 87 * @return The name. 88 */ 89 @java.lang.Override getName()90 public java.lang.String getName() { 91 java.lang.Object ref = name_; 92 if (ref instanceof java.lang.String) { 93 return (java.lang.String) ref; 94 } else { 95 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 96 java.lang.String s = bs.toStringUtf8(); 97 name_ = s; 98 return s; 99 } 100 } 101 /** 102 * 103 * 104 * <pre> 105 * Output only. The resource name for this SearchAds360Link resource. 106 * Format: properties/{propertyId}/searchAds360Links/{linkId} 107 * Note: linkId is not the Search Ads 360 advertiser ID 108 * </pre> 109 * 110 * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 111 * 112 * @return The bytes for name. 113 */ 114 @java.lang.Override getNameBytes()115 public com.google.protobuf.ByteString getNameBytes() { 116 java.lang.Object ref = name_; 117 if (ref instanceof java.lang.String) { 118 com.google.protobuf.ByteString b = 119 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 120 name_ = b; 121 return b; 122 } else { 123 return (com.google.protobuf.ByteString) ref; 124 } 125 } 126 127 public static final int ADVERTISER_ID_FIELD_NUMBER = 2; 128 129 @SuppressWarnings("serial") 130 private volatile java.lang.Object advertiserId_ = ""; 131 /** 132 * 133 * 134 * <pre> 135 * Immutable. This field represents the Advertiser ID of the Search Ads 360 136 * Advertiser. that has been linked. 137 * </pre> 138 * 139 * <code>string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE];</code> 140 * 141 * @return The advertiserId. 142 */ 143 @java.lang.Override getAdvertiserId()144 public java.lang.String getAdvertiserId() { 145 java.lang.Object ref = advertiserId_; 146 if (ref instanceof java.lang.String) { 147 return (java.lang.String) ref; 148 } else { 149 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 150 java.lang.String s = bs.toStringUtf8(); 151 advertiserId_ = s; 152 return s; 153 } 154 } 155 /** 156 * 157 * 158 * <pre> 159 * Immutable. This field represents the Advertiser ID of the Search Ads 360 160 * Advertiser. that has been linked. 161 * </pre> 162 * 163 * <code>string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE];</code> 164 * 165 * @return The bytes for advertiserId. 166 */ 167 @java.lang.Override getAdvertiserIdBytes()168 public com.google.protobuf.ByteString getAdvertiserIdBytes() { 169 java.lang.Object ref = advertiserId_; 170 if (ref instanceof java.lang.String) { 171 com.google.protobuf.ByteString b = 172 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 173 advertiserId_ = b; 174 return b; 175 } else { 176 return (com.google.protobuf.ByteString) ref; 177 } 178 } 179 180 public static final int CAMPAIGN_DATA_SHARING_ENABLED_FIELD_NUMBER = 3; 181 private com.google.protobuf.BoolValue campaignDataSharingEnabled_; 182 /** 183 * 184 * 185 * <pre> 186 * Immutable. Enables the import of campaign data from Search Ads 360 into the 187 * GA4 property. After link creation, this can only be updated from the Search 188 * Ads 360 product. 189 * If this field is not set on create, it will be defaulted to true. 190 * </pre> 191 * 192 * <code> 193 * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; 194 * </code> 195 * 196 * @return Whether the campaignDataSharingEnabled field is set. 197 */ 198 @java.lang.Override hasCampaignDataSharingEnabled()199 public boolean hasCampaignDataSharingEnabled() { 200 return campaignDataSharingEnabled_ != null; 201 } 202 /** 203 * 204 * 205 * <pre> 206 * Immutable. Enables the import of campaign data from Search Ads 360 into the 207 * GA4 property. After link creation, this can only be updated from the Search 208 * Ads 360 product. 209 * If this field is not set on create, it will be defaulted to true. 210 * </pre> 211 * 212 * <code> 213 * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; 214 * </code> 215 * 216 * @return The campaignDataSharingEnabled. 217 */ 218 @java.lang.Override getCampaignDataSharingEnabled()219 public com.google.protobuf.BoolValue getCampaignDataSharingEnabled() { 220 return campaignDataSharingEnabled_ == null 221 ? com.google.protobuf.BoolValue.getDefaultInstance() 222 : campaignDataSharingEnabled_; 223 } 224 /** 225 * 226 * 227 * <pre> 228 * Immutable. Enables the import of campaign data from Search Ads 360 into the 229 * GA4 property. After link creation, this can only be updated from the Search 230 * Ads 360 product. 231 * If this field is not set on create, it will be defaulted to true. 232 * </pre> 233 * 234 * <code> 235 * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; 236 * </code> 237 */ 238 @java.lang.Override getCampaignDataSharingEnabledOrBuilder()239 public com.google.protobuf.BoolValueOrBuilder getCampaignDataSharingEnabledOrBuilder() { 240 return campaignDataSharingEnabled_ == null 241 ? com.google.protobuf.BoolValue.getDefaultInstance() 242 : campaignDataSharingEnabled_; 243 } 244 245 public static final int COST_DATA_SHARING_ENABLED_FIELD_NUMBER = 4; 246 private com.google.protobuf.BoolValue costDataSharingEnabled_; 247 /** 248 * 249 * 250 * <pre> 251 * Immutable. Enables the import of cost data from Search Ads 360 to the GA4 252 * property. This can only be enabled if campaign_data_sharing_enabled is 253 * enabled. After link creation, this can only be updated from 254 * the Search Ads 360 product. 255 * If this field is not set on create, it will be defaulted to true. 256 * </pre> 257 * 258 * <code> 259 * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; 260 * </code> 261 * 262 * @return Whether the costDataSharingEnabled field is set. 263 */ 264 @java.lang.Override hasCostDataSharingEnabled()265 public boolean hasCostDataSharingEnabled() { 266 return costDataSharingEnabled_ != null; 267 } 268 /** 269 * 270 * 271 * <pre> 272 * Immutable. Enables the import of cost data from Search Ads 360 to the GA4 273 * property. This can only be enabled if campaign_data_sharing_enabled is 274 * enabled. After link creation, this can only be updated from 275 * the Search Ads 360 product. 276 * If this field is not set on create, it will be defaulted to true. 277 * </pre> 278 * 279 * <code> 280 * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; 281 * </code> 282 * 283 * @return The costDataSharingEnabled. 284 */ 285 @java.lang.Override getCostDataSharingEnabled()286 public com.google.protobuf.BoolValue getCostDataSharingEnabled() { 287 return costDataSharingEnabled_ == null 288 ? com.google.protobuf.BoolValue.getDefaultInstance() 289 : costDataSharingEnabled_; 290 } 291 /** 292 * 293 * 294 * <pre> 295 * Immutable. Enables the import of cost data from Search Ads 360 to the GA4 296 * property. This can only be enabled if campaign_data_sharing_enabled is 297 * enabled. After link creation, this can only be updated from 298 * the Search Ads 360 product. 299 * If this field is not set on create, it will be defaulted to true. 300 * </pre> 301 * 302 * <code> 303 * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; 304 * </code> 305 */ 306 @java.lang.Override getCostDataSharingEnabledOrBuilder()307 public com.google.protobuf.BoolValueOrBuilder getCostDataSharingEnabledOrBuilder() { 308 return costDataSharingEnabled_ == null 309 ? com.google.protobuf.BoolValue.getDefaultInstance() 310 : costDataSharingEnabled_; 311 } 312 313 public static final int ADVERTISER_DISPLAY_NAME_FIELD_NUMBER = 5; 314 315 @SuppressWarnings("serial") 316 private volatile java.lang.Object advertiserDisplayName_ = ""; 317 /** 318 * 319 * 320 * <pre> 321 * Output only. The display name of the Search Ads 360 Advertiser. 322 * Allows users to easily identify the linked resource. 323 * </pre> 324 * 325 * <code>string advertiser_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 326 * 327 * @return The advertiserDisplayName. 328 */ 329 @java.lang.Override getAdvertiserDisplayName()330 public java.lang.String getAdvertiserDisplayName() { 331 java.lang.Object ref = advertiserDisplayName_; 332 if (ref instanceof java.lang.String) { 333 return (java.lang.String) ref; 334 } else { 335 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 336 java.lang.String s = bs.toStringUtf8(); 337 advertiserDisplayName_ = s; 338 return s; 339 } 340 } 341 /** 342 * 343 * 344 * <pre> 345 * Output only. The display name of the Search Ads 360 Advertiser. 346 * Allows users to easily identify the linked resource. 347 * </pre> 348 * 349 * <code>string advertiser_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 350 * 351 * @return The bytes for advertiserDisplayName. 352 */ 353 @java.lang.Override getAdvertiserDisplayNameBytes()354 public com.google.protobuf.ByteString getAdvertiserDisplayNameBytes() { 355 java.lang.Object ref = advertiserDisplayName_; 356 if (ref instanceof java.lang.String) { 357 com.google.protobuf.ByteString b = 358 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 359 advertiserDisplayName_ = b; 360 return b; 361 } else { 362 return (com.google.protobuf.ByteString) ref; 363 } 364 } 365 366 public static final int ADS_PERSONALIZATION_ENABLED_FIELD_NUMBER = 6; 367 private com.google.protobuf.BoolValue adsPersonalizationEnabled_; 368 /** 369 * 370 * 371 * <pre> 372 * Enables personalized advertising features with this integration. 373 * If this field is not set on create, it will be defaulted to true. 374 * </pre> 375 * 376 * <code>.google.protobuf.BoolValue ads_personalization_enabled = 6;</code> 377 * 378 * @return Whether the adsPersonalizationEnabled field is set. 379 */ 380 @java.lang.Override hasAdsPersonalizationEnabled()381 public boolean hasAdsPersonalizationEnabled() { 382 return adsPersonalizationEnabled_ != null; 383 } 384 /** 385 * 386 * 387 * <pre> 388 * Enables personalized advertising features with this integration. 389 * If this field is not set on create, it will be defaulted to true. 390 * </pre> 391 * 392 * <code>.google.protobuf.BoolValue ads_personalization_enabled = 6;</code> 393 * 394 * @return The adsPersonalizationEnabled. 395 */ 396 @java.lang.Override getAdsPersonalizationEnabled()397 public com.google.protobuf.BoolValue getAdsPersonalizationEnabled() { 398 return adsPersonalizationEnabled_ == null 399 ? com.google.protobuf.BoolValue.getDefaultInstance() 400 : adsPersonalizationEnabled_; 401 } 402 /** 403 * 404 * 405 * <pre> 406 * Enables personalized advertising features with this integration. 407 * If this field is not set on create, it will be defaulted to true. 408 * </pre> 409 * 410 * <code>.google.protobuf.BoolValue ads_personalization_enabled = 6;</code> 411 */ 412 @java.lang.Override getAdsPersonalizationEnabledOrBuilder()413 public com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder() { 414 return adsPersonalizationEnabled_ == null 415 ? com.google.protobuf.BoolValue.getDefaultInstance() 416 : adsPersonalizationEnabled_; 417 } 418 419 public static final int SITE_STATS_SHARING_ENABLED_FIELD_NUMBER = 7; 420 private com.google.protobuf.BoolValue siteStatsSharingEnabled_; 421 /** 422 * 423 * 424 * <pre> 425 * Enables export of site stats with this integration. 426 * If this field is not set on create, it will be defaulted to true. 427 * </pre> 428 * 429 * <code>.google.protobuf.BoolValue site_stats_sharing_enabled = 7;</code> 430 * 431 * @return Whether the siteStatsSharingEnabled field is set. 432 */ 433 @java.lang.Override hasSiteStatsSharingEnabled()434 public boolean hasSiteStatsSharingEnabled() { 435 return siteStatsSharingEnabled_ != null; 436 } 437 /** 438 * 439 * 440 * <pre> 441 * Enables export of site stats with this integration. 442 * If this field is not set on create, it will be defaulted to true. 443 * </pre> 444 * 445 * <code>.google.protobuf.BoolValue site_stats_sharing_enabled = 7;</code> 446 * 447 * @return The siteStatsSharingEnabled. 448 */ 449 @java.lang.Override getSiteStatsSharingEnabled()450 public com.google.protobuf.BoolValue getSiteStatsSharingEnabled() { 451 return siteStatsSharingEnabled_ == null 452 ? com.google.protobuf.BoolValue.getDefaultInstance() 453 : siteStatsSharingEnabled_; 454 } 455 /** 456 * 457 * 458 * <pre> 459 * Enables export of site stats with this integration. 460 * If this field is not set on create, it will be defaulted to true. 461 * </pre> 462 * 463 * <code>.google.protobuf.BoolValue site_stats_sharing_enabled = 7;</code> 464 */ 465 @java.lang.Override getSiteStatsSharingEnabledOrBuilder()466 public com.google.protobuf.BoolValueOrBuilder getSiteStatsSharingEnabledOrBuilder() { 467 return siteStatsSharingEnabled_ == null 468 ? com.google.protobuf.BoolValue.getDefaultInstance() 469 : siteStatsSharingEnabled_; 470 } 471 472 private byte memoizedIsInitialized = -1; 473 474 @java.lang.Override isInitialized()475 public final boolean isInitialized() { 476 byte isInitialized = memoizedIsInitialized; 477 if (isInitialized == 1) return true; 478 if (isInitialized == 0) return false; 479 480 memoizedIsInitialized = 1; 481 return true; 482 } 483 484 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)485 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 486 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 487 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); 488 } 489 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(advertiserId_)) { 490 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, advertiserId_); 491 } 492 if (campaignDataSharingEnabled_ != null) { 493 output.writeMessage(3, getCampaignDataSharingEnabled()); 494 } 495 if (costDataSharingEnabled_ != null) { 496 output.writeMessage(4, getCostDataSharingEnabled()); 497 } 498 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(advertiserDisplayName_)) { 499 com.google.protobuf.GeneratedMessageV3.writeString(output, 5, advertiserDisplayName_); 500 } 501 if (adsPersonalizationEnabled_ != null) { 502 output.writeMessage(6, getAdsPersonalizationEnabled()); 503 } 504 if (siteStatsSharingEnabled_ != null) { 505 output.writeMessage(7, getSiteStatsSharingEnabled()); 506 } 507 getUnknownFields().writeTo(output); 508 } 509 510 @java.lang.Override getSerializedSize()511 public int getSerializedSize() { 512 int size = memoizedSize; 513 if (size != -1) return size; 514 515 size = 0; 516 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 517 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); 518 } 519 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(advertiserId_)) { 520 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, advertiserId_); 521 } 522 if (campaignDataSharingEnabled_ != null) { 523 size += 524 com.google.protobuf.CodedOutputStream.computeMessageSize( 525 3, getCampaignDataSharingEnabled()); 526 } 527 if (costDataSharingEnabled_ != null) { 528 size += 529 com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCostDataSharingEnabled()); 530 } 531 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(advertiserDisplayName_)) { 532 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, advertiserDisplayName_); 533 } 534 if (adsPersonalizationEnabled_ != null) { 535 size += 536 com.google.protobuf.CodedOutputStream.computeMessageSize( 537 6, getAdsPersonalizationEnabled()); 538 } 539 if (siteStatsSharingEnabled_ != null) { 540 size += 541 com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSiteStatsSharingEnabled()); 542 } 543 size += getUnknownFields().getSerializedSize(); 544 memoizedSize = size; 545 return size; 546 } 547 548 @java.lang.Override equals(final java.lang.Object obj)549 public boolean equals(final java.lang.Object obj) { 550 if (obj == this) { 551 return true; 552 } 553 if (!(obj instanceof com.google.analytics.admin.v1alpha.SearchAds360Link)) { 554 return super.equals(obj); 555 } 556 com.google.analytics.admin.v1alpha.SearchAds360Link other = 557 (com.google.analytics.admin.v1alpha.SearchAds360Link) obj; 558 559 if (!getName().equals(other.getName())) return false; 560 if (!getAdvertiserId().equals(other.getAdvertiserId())) return false; 561 if (hasCampaignDataSharingEnabled() != other.hasCampaignDataSharingEnabled()) return false; 562 if (hasCampaignDataSharingEnabled()) { 563 if (!getCampaignDataSharingEnabled().equals(other.getCampaignDataSharingEnabled())) 564 return false; 565 } 566 if (hasCostDataSharingEnabled() != other.hasCostDataSharingEnabled()) return false; 567 if (hasCostDataSharingEnabled()) { 568 if (!getCostDataSharingEnabled().equals(other.getCostDataSharingEnabled())) return false; 569 } 570 if (!getAdvertiserDisplayName().equals(other.getAdvertiserDisplayName())) return false; 571 if (hasAdsPersonalizationEnabled() != other.hasAdsPersonalizationEnabled()) return false; 572 if (hasAdsPersonalizationEnabled()) { 573 if (!getAdsPersonalizationEnabled().equals(other.getAdsPersonalizationEnabled())) 574 return false; 575 } 576 if (hasSiteStatsSharingEnabled() != other.hasSiteStatsSharingEnabled()) return false; 577 if (hasSiteStatsSharingEnabled()) { 578 if (!getSiteStatsSharingEnabled().equals(other.getSiteStatsSharingEnabled())) return false; 579 } 580 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 581 return true; 582 } 583 584 @java.lang.Override hashCode()585 public int hashCode() { 586 if (memoizedHashCode != 0) { 587 return memoizedHashCode; 588 } 589 int hash = 41; 590 hash = (19 * hash) + getDescriptor().hashCode(); 591 hash = (37 * hash) + NAME_FIELD_NUMBER; 592 hash = (53 * hash) + getName().hashCode(); 593 hash = (37 * hash) + ADVERTISER_ID_FIELD_NUMBER; 594 hash = (53 * hash) + getAdvertiserId().hashCode(); 595 if (hasCampaignDataSharingEnabled()) { 596 hash = (37 * hash) + CAMPAIGN_DATA_SHARING_ENABLED_FIELD_NUMBER; 597 hash = (53 * hash) + getCampaignDataSharingEnabled().hashCode(); 598 } 599 if (hasCostDataSharingEnabled()) { 600 hash = (37 * hash) + COST_DATA_SHARING_ENABLED_FIELD_NUMBER; 601 hash = (53 * hash) + getCostDataSharingEnabled().hashCode(); 602 } 603 hash = (37 * hash) + ADVERTISER_DISPLAY_NAME_FIELD_NUMBER; 604 hash = (53 * hash) + getAdvertiserDisplayName().hashCode(); 605 if (hasAdsPersonalizationEnabled()) { 606 hash = (37 * hash) + ADS_PERSONALIZATION_ENABLED_FIELD_NUMBER; 607 hash = (53 * hash) + getAdsPersonalizationEnabled().hashCode(); 608 } 609 if (hasSiteStatsSharingEnabled()) { 610 hash = (37 * hash) + SITE_STATS_SHARING_ENABLED_FIELD_NUMBER; 611 hash = (53 * hash) + getSiteStatsSharingEnabled().hashCode(); 612 } 613 hash = (29 * hash) + getUnknownFields().hashCode(); 614 memoizedHashCode = hash; 615 return hash; 616 } 617 parseFrom( java.nio.ByteBuffer data)618 public static com.google.analytics.admin.v1alpha.SearchAds360Link parseFrom( 619 java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { 620 return PARSER.parseFrom(data); 621 } 622 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)623 public static com.google.analytics.admin.v1alpha.SearchAds360Link parseFrom( 624 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 625 throws com.google.protobuf.InvalidProtocolBufferException { 626 return PARSER.parseFrom(data, extensionRegistry); 627 } 628 parseFrom( com.google.protobuf.ByteString data)629 public static com.google.analytics.admin.v1alpha.SearchAds360Link parseFrom( 630 com.google.protobuf.ByteString data) 631 throws com.google.protobuf.InvalidProtocolBufferException { 632 return PARSER.parseFrom(data); 633 } 634 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)635 public static com.google.analytics.admin.v1alpha.SearchAds360Link parseFrom( 636 com.google.protobuf.ByteString data, 637 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 638 throws com.google.protobuf.InvalidProtocolBufferException { 639 return PARSER.parseFrom(data, extensionRegistry); 640 } 641 parseFrom(byte[] data)642 public static com.google.analytics.admin.v1alpha.SearchAds360Link parseFrom(byte[] data) 643 throws com.google.protobuf.InvalidProtocolBufferException { 644 return PARSER.parseFrom(data); 645 } 646 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)647 public static com.google.analytics.admin.v1alpha.SearchAds360Link parseFrom( 648 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 649 throws com.google.protobuf.InvalidProtocolBufferException { 650 return PARSER.parseFrom(data, extensionRegistry); 651 } 652 parseFrom( java.io.InputStream input)653 public static com.google.analytics.admin.v1alpha.SearchAds360Link parseFrom( 654 java.io.InputStream input) throws java.io.IOException { 655 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 656 } 657 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)658 public static com.google.analytics.admin.v1alpha.SearchAds360Link parseFrom( 659 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 660 throws java.io.IOException { 661 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 662 PARSER, input, extensionRegistry); 663 } 664 parseDelimitedFrom( java.io.InputStream input)665 public static com.google.analytics.admin.v1alpha.SearchAds360Link parseDelimitedFrom( 666 java.io.InputStream input) throws java.io.IOException { 667 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 668 } 669 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)670 public static com.google.analytics.admin.v1alpha.SearchAds360Link parseDelimitedFrom( 671 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 672 throws java.io.IOException { 673 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 674 PARSER, input, extensionRegistry); 675 } 676 parseFrom( com.google.protobuf.CodedInputStream input)677 public static com.google.analytics.admin.v1alpha.SearchAds360Link parseFrom( 678 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 679 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 680 } 681 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)682 public static com.google.analytics.admin.v1alpha.SearchAds360Link parseFrom( 683 com.google.protobuf.CodedInputStream input, 684 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 685 throws java.io.IOException { 686 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 687 PARSER, input, extensionRegistry); 688 } 689 690 @java.lang.Override newBuilderForType()691 public Builder newBuilderForType() { 692 return newBuilder(); 693 } 694 newBuilder()695 public static Builder newBuilder() { 696 return DEFAULT_INSTANCE.toBuilder(); 697 } 698 newBuilder(com.google.analytics.admin.v1alpha.SearchAds360Link prototype)699 public static Builder newBuilder(com.google.analytics.admin.v1alpha.SearchAds360Link prototype) { 700 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 701 } 702 703 @java.lang.Override toBuilder()704 public Builder toBuilder() { 705 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 706 } 707 708 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)709 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 710 Builder builder = new Builder(parent); 711 return builder; 712 } 713 /** 714 * 715 * 716 * <pre> 717 * A link between a GA4 property and a Search Ads 360 entity. 718 * </pre> 719 * 720 * Protobuf type {@code google.analytics.admin.v1alpha.SearchAds360Link} 721 */ 722 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 723 implements 724 // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.SearchAds360Link) 725 com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder { getDescriptor()726 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 727 return com.google.analytics.admin.v1alpha.ResourcesProto 728 .internal_static_google_analytics_admin_v1alpha_SearchAds360Link_descriptor; 729 } 730 731 @java.lang.Override 732 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()733 internalGetFieldAccessorTable() { 734 return com.google.analytics.admin.v1alpha.ResourcesProto 735 .internal_static_google_analytics_admin_v1alpha_SearchAds360Link_fieldAccessorTable 736 .ensureFieldAccessorsInitialized( 737 com.google.analytics.admin.v1alpha.SearchAds360Link.class, 738 com.google.analytics.admin.v1alpha.SearchAds360Link.Builder.class); 739 } 740 741 // Construct using com.google.analytics.admin.v1alpha.SearchAds360Link.newBuilder() Builder()742 private Builder() {} 743 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)744 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 745 super(parent); 746 } 747 748 @java.lang.Override clear()749 public Builder clear() { 750 super.clear(); 751 bitField0_ = 0; 752 name_ = ""; 753 advertiserId_ = ""; 754 campaignDataSharingEnabled_ = null; 755 if (campaignDataSharingEnabledBuilder_ != null) { 756 campaignDataSharingEnabledBuilder_.dispose(); 757 campaignDataSharingEnabledBuilder_ = null; 758 } 759 costDataSharingEnabled_ = null; 760 if (costDataSharingEnabledBuilder_ != null) { 761 costDataSharingEnabledBuilder_.dispose(); 762 costDataSharingEnabledBuilder_ = null; 763 } 764 advertiserDisplayName_ = ""; 765 adsPersonalizationEnabled_ = null; 766 if (adsPersonalizationEnabledBuilder_ != null) { 767 adsPersonalizationEnabledBuilder_.dispose(); 768 adsPersonalizationEnabledBuilder_ = null; 769 } 770 siteStatsSharingEnabled_ = null; 771 if (siteStatsSharingEnabledBuilder_ != null) { 772 siteStatsSharingEnabledBuilder_.dispose(); 773 siteStatsSharingEnabledBuilder_ = null; 774 } 775 return this; 776 } 777 778 @java.lang.Override getDescriptorForType()779 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 780 return com.google.analytics.admin.v1alpha.ResourcesProto 781 .internal_static_google_analytics_admin_v1alpha_SearchAds360Link_descriptor; 782 } 783 784 @java.lang.Override getDefaultInstanceForType()785 public com.google.analytics.admin.v1alpha.SearchAds360Link getDefaultInstanceForType() { 786 return com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance(); 787 } 788 789 @java.lang.Override build()790 public com.google.analytics.admin.v1alpha.SearchAds360Link build() { 791 com.google.analytics.admin.v1alpha.SearchAds360Link result = buildPartial(); 792 if (!result.isInitialized()) { 793 throw newUninitializedMessageException(result); 794 } 795 return result; 796 } 797 798 @java.lang.Override buildPartial()799 public com.google.analytics.admin.v1alpha.SearchAds360Link buildPartial() { 800 com.google.analytics.admin.v1alpha.SearchAds360Link result = 801 new com.google.analytics.admin.v1alpha.SearchAds360Link(this); 802 if (bitField0_ != 0) { 803 buildPartial0(result); 804 } 805 onBuilt(); 806 return result; 807 } 808 buildPartial0(com.google.analytics.admin.v1alpha.SearchAds360Link result)809 private void buildPartial0(com.google.analytics.admin.v1alpha.SearchAds360Link result) { 810 int from_bitField0_ = bitField0_; 811 if (((from_bitField0_ & 0x00000001) != 0)) { 812 result.name_ = name_; 813 } 814 if (((from_bitField0_ & 0x00000002) != 0)) { 815 result.advertiserId_ = advertiserId_; 816 } 817 if (((from_bitField0_ & 0x00000004) != 0)) { 818 result.campaignDataSharingEnabled_ = 819 campaignDataSharingEnabledBuilder_ == null 820 ? campaignDataSharingEnabled_ 821 : campaignDataSharingEnabledBuilder_.build(); 822 } 823 if (((from_bitField0_ & 0x00000008) != 0)) { 824 result.costDataSharingEnabled_ = 825 costDataSharingEnabledBuilder_ == null 826 ? costDataSharingEnabled_ 827 : costDataSharingEnabledBuilder_.build(); 828 } 829 if (((from_bitField0_ & 0x00000010) != 0)) { 830 result.advertiserDisplayName_ = advertiserDisplayName_; 831 } 832 if (((from_bitField0_ & 0x00000020) != 0)) { 833 result.adsPersonalizationEnabled_ = 834 adsPersonalizationEnabledBuilder_ == null 835 ? adsPersonalizationEnabled_ 836 : adsPersonalizationEnabledBuilder_.build(); 837 } 838 if (((from_bitField0_ & 0x00000040) != 0)) { 839 result.siteStatsSharingEnabled_ = 840 siteStatsSharingEnabledBuilder_ == null 841 ? siteStatsSharingEnabled_ 842 : siteStatsSharingEnabledBuilder_.build(); 843 } 844 } 845 846 @java.lang.Override clone()847 public Builder clone() { 848 return super.clone(); 849 } 850 851 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)852 public Builder setField( 853 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 854 return super.setField(field, value); 855 } 856 857 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)858 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 859 return super.clearField(field); 860 } 861 862 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)863 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 864 return super.clearOneof(oneof); 865 } 866 867 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)868 public Builder setRepeatedField( 869 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 870 return super.setRepeatedField(field, index, value); 871 } 872 873 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)874 public Builder addRepeatedField( 875 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 876 return super.addRepeatedField(field, value); 877 } 878 879 @java.lang.Override mergeFrom(com.google.protobuf.Message other)880 public Builder mergeFrom(com.google.protobuf.Message other) { 881 if (other instanceof com.google.analytics.admin.v1alpha.SearchAds360Link) { 882 return mergeFrom((com.google.analytics.admin.v1alpha.SearchAds360Link) other); 883 } else { 884 super.mergeFrom(other); 885 return this; 886 } 887 } 888 mergeFrom(com.google.analytics.admin.v1alpha.SearchAds360Link other)889 public Builder mergeFrom(com.google.analytics.admin.v1alpha.SearchAds360Link other) { 890 if (other == com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance()) 891 return this; 892 if (!other.getName().isEmpty()) { 893 name_ = other.name_; 894 bitField0_ |= 0x00000001; 895 onChanged(); 896 } 897 if (!other.getAdvertiserId().isEmpty()) { 898 advertiserId_ = other.advertiserId_; 899 bitField0_ |= 0x00000002; 900 onChanged(); 901 } 902 if (other.hasCampaignDataSharingEnabled()) { 903 mergeCampaignDataSharingEnabled(other.getCampaignDataSharingEnabled()); 904 } 905 if (other.hasCostDataSharingEnabled()) { 906 mergeCostDataSharingEnabled(other.getCostDataSharingEnabled()); 907 } 908 if (!other.getAdvertiserDisplayName().isEmpty()) { 909 advertiserDisplayName_ = other.advertiserDisplayName_; 910 bitField0_ |= 0x00000010; 911 onChanged(); 912 } 913 if (other.hasAdsPersonalizationEnabled()) { 914 mergeAdsPersonalizationEnabled(other.getAdsPersonalizationEnabled()); 915 } 916 if (other.hasSiteStatsSharingEnabled()) { 917 mergeSiteStatsSharingEnabled(other.getSiteStatsSharingEnabled()); 918 } 919 this.mergeUnknownFields(other.getUnknownFields()); 920 onChanged(); 921 return this; 922 } 923 924 @java.lang.Override isInitialized()925 public final boolean isInitialized() { 926 return true; 927 } 928 929 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)930 public Builder mergeFrom( 931 com.google.protobuf.CodedInputStream input, 932 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 933 throws java.io.IOException { 934 if (extensionRegistry == null) { 935 throw new java.lang.NullPointerException(); 936 } 937 try { 938 boolean done = false; 939 while (!done) { 940 int tag = input.readTag(); 941 switch (tag) { 942 case 0: 943 done = true; 944 break; 945 case 10: 946 { 947 name_ = input.readStringRequireUtf8(); 948 bitField0_ |= 0x00000001; 949 break; 950 } // case 10 951 case 18: 952 { 953 advertiserId_ = input.readStringRequireUtf8(); 954 bitField0_ |= 0x00000002; 955 break; 956 } // case 18 957 case 26: 958 { 959 input.readMessage( 960 getCampaignDataSharingEnabledFieldBuilder().getBuilder(), extensionRegistry); 961 bitField0_ |= 0x00000004; 962 break; 963 } // case 26 964 case 34: 965 { 966 input.readMessage( 967 getCostDataSharingEnabledFieldBuilder().getBuilder(), extensionRegistry); 968 bitField0_ |= 0x00000008; 969 break; 970 } // case 34 971 case 42: 972 { 973 advertiserDisplayName_ = input.readStringRequireUtf8(); 974 bitField0_ |= 0x00000010; 975 break; 976 } // case 42 977 case 50: 978 { 979 input.readMessage( 980 getAdsPersonalizationEnabledFieldBuilder().getBuilder(), extensionRegistry); 981 bitField0_ |= 0x00000020; 982 break; 983 } // case 50 984 case 58: 985 { 986 input.readMessage( 987 getSiteStatsSharingEnabledFieldBuilder().getBuilder(), extensionRegistry); 988 bitField0_ |= 0x00000040; 989 break; 990 } // case 58 991 default: 992 { 993 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 994 done = true; // was an endgroup tag 995 } 996 break; 997 } // default: 998 } // switch (tag) 999 } // while (!done) 1000 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1001 throw e.unwrapIOException(); 1002 } finally { 1003 onChanged(); 1004 } // finally 1005 return this; 1006 } 1007 1008 private int bitField0_; 1009 1010 private java.lang.Object name_ = ""; 1011 /** 1012 * 1013 * 1014 * <pre> 1015 * Output only. The resource name for this SearchAds360Link resource. 1016 * Format: properties/{propertyId}/searchAds360Links/{linkId} 1017 * Note: linkId is not the Search Ads 360 advertiser ID 1018 * </pre> 1019 * 1020 * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1021 * 1022 * @return The name. 1023 */ getName()1024 public java.lang.String getName() { 1025 java.lang.Object ref = name_; 1026 if (!(ref instanceof java.lang.String)) { 1027 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1028 java.lang.String s = bs.toStringUtf8(); 1029 name_ = s; 1030 return s; 1031 } else { 1032 return (java.lang.String) ref; 1033 } 1034 } 1035 /** 1036 * 1037 * 1038 * <pre> 1039 * Output only. The resource name for this SearchAds360Link resource. 1040 * Format: properties/{propertyId}/searchAds360Links/{linkId} 1041 * Note: linkId is not the Search Ads 360 advertiser ID 1042 * </pre> 1043 * 1044 * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1045 * 1046 * @return The bytes for name. 1047 */ getNameBytes()1048 public com.google.protobuf.ByteString getNameBytes() { 1049 java.lang.Object ref = name_; 1050 if (ref instanceof String) { 1051 com.google.protobuf.ByteString b = 1052 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1053 name_ = b; 1054 return b; 1055 } else { 1056 return (com.google.protobuf.ByteString) ref; 1057 } 1058 } 1059 /** 1060 * 1061 * 1062 * <pre> 1063 * Output only. The resource name for this SearchAds360Link resource. 1064 * Format: properties/{propertyId}/searchAds360Links/{linkId} 1065 * Note: linkId is not the Search Ads 360 advertiser ID 1066 * </pre> 1067 * 1068 * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1069 * 1070 * @param value The name to set. 1071 * @return This builder for chaining. 1072 */ setName(java.lang.String value)1073 public Builder setName(java.lang.String value) { 1074 if (value == null) { 1075 throw new NullPointerException(); 1076 } 1077 name_ = value; 1078 bitField0_ |= 0x00000001; 1079 onChanged(); 1080 return this; 1081 } 1082 /** 1083 * 1084 * 1085 * <pre> 1086 * Output only. The resource name for this SearchAds360Link resource. 1087 * Format: properties/{propertyId}/searchAds360Links/{linkId} 1088 * Note: linkId is not the Search Ads 360 advertiser ID 1089 * </pre> 1090 * 1091 * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1092 * 1093 * @return This builder for chaining. 1094 */ clearName()1095 public Builder clearName() { 1096 name_ = getDefaultInstance().getName(); 1097 bitField0_ = (bitField0_ & ~0x00000001); 1098 onChanged(); 1099 return this; 1100 } 1101 /** 1102 * 1103 * 1104 * <pre> 1105 * Output only. The resource name for this SearchAds360Link resource. 1106 * Format: properties/{propertyId}/searchAds360Links/{linkId} 1107 * Note: linkId is not the Search Ads 360 advertiser ID 1108 * </pre> 1109 * 1110 * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1111 * 1112 * @param value The bytes for name to set. 1113 * @return This builder for chaining. 1114 */ setNameBytes(com.google.protobuf.ByteString value)1115 public Builder setNameBytes(com.google.protobuf.ByteString value) { 1116 if (value == null) { 1117 throw new NullPointerException(); 1118 } 1119 checkByteStringIsUtf8(value); 1120 name_ = value; 1121 bitField0_ |= 0x00000001; 1122 onChanged(); 1123 return this; 1124 } 1125 1126 private java.lang.Object advertiserId_ = ""; 1127 /** 1128 * 1129 * 1130 * <pre> 1131 * Immutable. This field represents the Advertiser ID of the Search Ads 360 1132 * Advertiser. that has been linked. 1133 * </pre> 1134 * 1135 * <code>string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE];</code> 1136 * 1137 * @return The advertiserId. 1138 */ getAdvertiserId()1139 public java.lang.String getAdvertiserId() { 1140 java.lang.Object ref = advertiserId_; 1141 if (!(ref instanceof java.lang.String)) { 1142 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1143 java.lang.String s = bs.toStringUtf8(); 1144 advertiserId_ = s; 1145 return s; 1146 } else { 1147 return (java.lang.String) ref; 1148 } 1149 } 1150 /** 1151 * 1152 * 1153 * <pre> 1154 * Immutable. This field represents the Advertiser ID of the Search Ads 360 1155 * Advertiser. that has been linked. 1156 * </pre> 1157 * 1158 * <code>string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE];</code> 1159 * 1160 * @return The bytes for advertiserId. 1161 */ getAdvertiserIdBytes()1162 public com.google.protobuf.ByteString getAdvertiserIdBytes() { 1163 java.lang.Object ref = advertiserId_; 1164 if (ref instanceof String) { 1165 com.google.protobuf.ByteString b = 1166 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1167 advertiserId_ = b; 1168 return b; 1169 } else { 1170 return (com.google.protobuf.ByteString) ref; 1171 } 1172 } 1173 /** 1174 * 1175 * 1176 * <pre> 1177 * Immutable. This field represents the Advertiser ID of the Search Ads 360 1178 * Advertiser. that has been linked. 1179 * </pre> 1180 * 1181 * <code>string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE];</code> 1182 * 1183 * @param value The advertiserId to set. 1184 * @return This builder for chaining. 1185 */ setAdvertiserId(java.lang.String value)1186 public Builder setAdvertiserId(java.lang.String value) { 1187 if (value == null) { 1188 throw new NullPointerException(); 1189 } 1190 advertiserId_ = value; 1191 bitField0_ |= 0x00000002; 1192 onChanged(); 1193 return this; 1194 } 1195 /** 1196 * 1197 * 1198 * <pre> 1199 * Immutable. This field represents the Advertiser ID of the Search Ads 360 1200 * Advertiser. that has been linked. 1201 * </pre> 1202 * 1203 * <code>string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE];</code> 1204 * 1205 * @return This builder for chaining. 1206 */ clearAdvertiserId()1207 public Builder clearAdvertiserId() { 1208 advertiserId_ = getDefaultInstance().getAdvertiserId(); 1209 bitField0_ = (bitField0_ & ~0x00000002); 1210 onChanged(); 1211 return this; 1212 } 1213 /** 1214 * 1215 * 1216 * <pre> 1217 * Immutable. This field represents the Advertiser ID of the Search Ads 360 1218 * Advertiser. that has been linked. 1219 * </pre> 1220 * 1221 * <code>string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE];</code> 1222 * 1223 * @param value The bytes for advertiserId to set. 1224 * @return This builder for chaining. 1225 */ setAdvertiserIdBytes(com.google.protobuf.ByteString value)1226 public Builder setAdvertiserIdBytes(com.google.protobuf.ByteString value) { 1227 if (value == null) { 1228 throw new NullPointerException(); 1229 } 1230 checkByteStringIsUtf8(value); 1231 advertiserId_ = value; 1232 bitField0_ |= 0x00000002; 1233 onChanged(); 1234 return this; 1235 } 1236 1237 private com.google.protobuf.BoolValue campaignDataSharingEnabled_; 1238 private com.google.protobuf.SingleFieldBuilderV3< 1239 com.google.protobuf.BoolValue, 1240 com.google.protobuf.BoolValue.Builder, 1241 com.google.protobuf.BoolValueOrBuilder> 1242 campaignDataSharingEnabledBuilder_; 1243 /** 1244 * 1245 * 1246 * <pre> 1247 * Immutable. Enables the import of campaign data from Search Ads 360 into the 1248 * GA4 property. After link creation, this can only be updated from the Search 1249 * Ads 360 product. 1250 * If this field is not set on create, it will be defaulted to true. 1251 * </pre> 1252 * 1253 * <code> 1254 * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; 1255 * </code> 1256 * 1257 * @return Whether the campaignDataSharingEnabled field is set. 1258 */ hasCampaignDataSharingEnabled()1259 public boolean hasCampaignDataSharingEnabled() { 1260 return ((bitField0_ & 0x00000004) != 0); 1261 } 1262 /** 1263 * 1264 * 1265 * <pre> 1266 * Immutable. Enables the import of campaign data from Search Ads 360 into the 1267 * GA4 property. After link creation, this can only be updated from the Search 1268 * Ads 360 product. 1269 * If this field is not set on create, it will be defaulted to true. 1270 * </pre> 1271 * 1272 * <code> 1273 * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; 1274 * </code> 1275 * 1276 * @return The campaignDataSharingEnabled. 1277 */ getCampaignDataSharingEnabled()1278 public com.google.protobuf.BoolValue getCampaignDataSharingEnabled() { 1279 if (campaignDataSharingEnabledBuilder_ == null) { 1280 return campaignDataSharingEnabled_ == null 1281 ? com.google.protobuf.BoolValue.getDefaultInstance() 1282 : campaignDataSharingEnabled_; 1283 } else { 1284 return campaignDataSharingEnabledBuilder_.getMessage(); 1285 } 1286 } 1287 /** 1288 * 1289 * 1290 * <pre> 1291 * Immutable. Enables the import of campaign data from Search Ads 360 into the 1292 * GA4 property. After link creation, this can only be updated from the Search 1293 * Ads 360 product. 1294 * If this field is not set on create, it will be defaulted to true. 1295 * </pre> 1296 * 1297 * <code> 1298 * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; 1299 * </code> 1300 */ setCampaignDataSharingEnabled(com.google.protobuf.BoolValue value)1301 public Builder setCampaignDataSharingEnabled(com.google.protobuf.BoolValue value) { 1302 if (campaignDataSharingEnabledBuilder_ == null) { 1303 if (value == null) { 1304 throw new NullPointerException(); 1305 } 1306 campaignDataSharingEnabled_ = value; 1307 } else { 1308 campaignDataSharingEnabledBuilder_.setMessage(value); 1309 } 1310 bitField0_ |= 0x00000004; 1311 onChanged(); 1312 return this; 1313 } 1314 /** 1315 * 1316 * 1317 * <pre> 1318 * Immutable. Enables the import of campaign data from Search Ads 360 into the 1319 * GA4 property. After link creation, this can only be updated from the Search 1320 * Ads 360 product. 1321 * If this field is not set on create, it will be defaulted to true. 1322 * </pre> 1323 * 1324 * <code> 1325 * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; 1326 * </code> 1327 */ setCampaignDataSharingEnabled( com.google.protobuf.BoolValue.Builder builderForValue)1328 public Builder setCampaignDataSharingEnabled( 1329 com.google.protobuf.BoolValue.Builder builderForValue) { 1330 if (campaignDataSharingEnabledBuilder_ == null) { 1331 campaignDataSharingEnabled_ = builderForValue.build(); 1332 } else { 1333 campaignDataSharingEnabledBuilder_.setMessage(builderForValue.build()); 1334 } 1335 bitField0_ |= 0x00000004; 1336 onChanged(); 1337 return this; 1338 } 1339 /** 1340 * 1341 * 1342 * <pre> 1343 * Immutable. Enables the import of campaign data from Search Ads 360 into the 1344 * GA4 property. After link creation, this can only be updated from the Search 1345 * Ads 360 product. 1346 * If this field is not set on create, it will be defaulted to true. 1347 * </pre> 1348 * 1349 * <code> 1350 * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; 1351 * </code> 1352 */ mergeCampaignDataSharingEnabled(com.google.protobuf.BoolValue value)1353 public Builder mergeCampaignDataSharingEnabled(com.google.protobuf.BoolValue value) { 1354 if (campaignDataSharingEnabledBuilder_ == null) { 1355 if (((bitField0_ & 0x00000004) != 0) 1356 && campaignDataSharingEnabled_ != null 1357 && campaignDataSharingEnabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) { 1358 getCampaignDataSharingEnabledBuilder().mergeFrom(value); 1359 } else { 1360 campaignDataSharingEnabled_ = value; 1361 } 1362 } else { 1363 campaignDataSharingEnabledBuilder_.mergeFrom(value); 1364 } 1365 bitField0_ |= 0x00000004; 1366 onChanged(); 1367 return this; 1368 } 1369 /** 1370 * 1371 * 1372 * <pre> 1373 * Immutable. Enables the import of campaign data from Search Ads 360 into the 1374 * GA4 property. After link creation, this can only be updated from the Search 1375 * Ads 360 product. 1376 * If this field is not set on create, it will be defaulted to true. 1377 * </pre> 1378 * 1379 * <code> 1380 * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; 1381 * </code> 1382 */ clearCampaignDataSharingEnabled()1383 public Builder clearCampaignDataSharingEnabled() { 1384 bitField0_ = (bitField0_ & ~0x00000004); 1385 campaignDataSharingEnabled_ = null; 1386 if (campaignDataSharingEnabledBuilder_ != null) { 1387 campaignDataSharingEnabledBuilder_.dispose(); 1388 campaignDataSharingEnabledBuilder_ = null; 1389 } 1390 onChanged(); 1391 return this; 1392 } 1393 /** 1394 * 1395 * 1396 * <pre> 1397 * Immutable. Enables the import of campaign data from Search Ads 360 into the 1398 * GA4 property. After link creation, this can only be updated from the Search 1399 * Ads 360 product. 1400 * If this field is not set on create, it will be defaulted to true. 1401 * </pre> 1402 * 1403 * <code> 1404 * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; 1405 * </code> 1406 */ getCampaignDataSharingEnabledBuilder()1407 public com.google.protobuf.BoolValue.Builder getCampaignDataSharingEnabledBuilder() { 1408 bitField0_ |= 0x00000004; 1409 onChanged(); 1410 return getCampaignDataSharingEnabledFieldBuilder().getBuilder(); 1411 } 1412 /** 1413 * 1414 * 1415 * <pre> 1416 * Immutable. Enables the import of campaign data from Search Ads 360 into the 1417 * GA4 property. After link creation, this can only be updated from the Search 1418 * Ads 360 product. 1419 * If this field is not set on create, it will be defaulted to true. 1420 * </pre> 1421 * 1422 * <code> 1423 * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; 1424 * </code> 1425 */ getCampaignDataSharingEnabledOrBuilder()1426 public com.google.protobuf.BoolValueOrBuilder getCampaignDataSharingEnabledOrBuilder() { 1427 if (campaignDataSharingEnabledBuilder_ != null) { 1428 return campaignDataSharingEnabledBuilder_.getMessageOrBuilder(); 1429 } else { 1430 return campaignDataSharingEnabled_ == null 1431 ? com.google.protobuf.BoolValue.getDefaultInstance() 1432 : campaignDataSharingEnabled_; 1433 } 1434 } 1435 /** 1436 * 1437 * 1438 * <pre> 1439 * Immutable. Enables the import of campaign data from Search Ads 360 into the 1440 * GA4 property. After link creation, this can only be updated from the Search 1441 * Ads 360 product. 1442 * If this field is not set on create, it will be defaulted to true. 1443 * </pre> 1444 * 1445 * <code> 1446 * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; 1447 * </code> 1448 */ 1449 private com.google.protobuf.SingleFieldBuilderV3< 1450 com.google.protobuf.BoolValue, 1451 com.google.protobuf.BoolValue.Builder, 1452 com.google.protobuf.BoolValueOrBuilder> getCampaignDataSharingEnabledFieldBuilder()1453 getCampaignDataSharingEnabledFieldBuilder() { 1454 if (campaignDataSharingEnabledBuilder_ == null) { 1455 campaignDataSharingEnabledBuilder_ = 1456 new com.google.protobuf.SingleFieldBuilderV3< 1457 com.google.protobuf.BoolValue, 1458 com.google.protobuf.BoolValue.Builder, 1459 com.google.protobuf.BoolValueOrBuilder>( 1460 getCampaignDataSharingEnabled(), getParentForChildren(), isClean()); 1461 campaignDataSharingEnabled_ = null; 1462 } 1463 return campaignDataSharingEnabledBuilder_; 1464 } 1465 1466 private com.google.protobuf.BoolValue costDataSharingEnabled_; 1467 private com.google.protobuf.SingleFieldBuilderV3< 1468 com.google.protobuf.BoolValue, 1469 com.google.protobuf.BoolValue.Builder, 1470 com.google.protobuf.BoolValueOrBuilder> 1471 costDataSharingEnabledBuilder_; 1472 /** 1473 * 1474 * 1475 * <pre> 1476 * Immutable. Enables the import of cost data from Search Ads 360 to the GA4 1477 * property. This can only be enabled if campaign_data_sharing_enabled is 1478 * enabled. After link creation, this can only be updated from 1479 * the Search Ads 360 product. 1480 * If this field is not set on create, it will be defaulted to true. 1481 * </pre> 1482 * 1483 * <code> 1484 * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; 1485 * </code> 1486 * 1487 * @return Whether the costDataSharingEnabled field is set. 1488 */ hasCostDataSharingEnabled()1489 public boolean hasCostDataSharingEnabled() { 1490 return ((bitField0_ & 0x00000008) != 0); 1491 } 1492 /** 1493 * 1494 * 1495 * <pre> 1496 * Immutable. Enables the import of cost data from Search Ads 360 to the GA4 1497 * property. This can only be enabled if campaign_data_sharing_enabled is 1498 * enabled. After link creation, this can only be updated from 1499 * the Search Ads 360 product. 1500 * If this field is not set on create, it will be defaulted to true. 1501 * </pre> 1502 * 1503 * <code> 1504 * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; 1505 * </code> 1506 * 1507 * @return The costDataSharingEnabled. 1508 */ getCostDataSharingEnabled()1509 public com.google.protobuf.BoolValue getCostDataSharingEnabled() { 1510 if (costDataSharingEnabledBuilder_ == null) { 1511 return costDataSharingEnabled_ == null 1512 ? com.google.protobuf.BoolValue.getDefaultInstance() 1513 : costDataSharingEnabled_; 1514 } else { 1515 return costDataSharingEnabledBuilder_.getMessage(); 1516 } 1517 } 1518 /** 1519 * 1520 * 1521 * <pre> 1522 * Immutable. Enables the import of cost data from Search Ads 360 to the GA4 1523 * property. This can only be enabled if campaign_data_sharing_enabled is 1524 * enabled. After link creation, this can only be updated from 1525 * the Search Ads 360 product. 1526 * If this field is not set on create, it will be defaulted to true. 1527 * </pre> 1528 * 1529 * <code> 1530 * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; 1531 * </code> 1532 */ setCostDataSharingEnabled(com.google.protobuf.BoolValue value)1533 public Builder setCostDataSharingEnabled(com.google.protobuf.BoolValue value) { 1534 if (costDataSharingEnabledBuilder_ == null) { 1535 if (value == null) { 1536 throw new NullPointerException(); 1537 } 1538 costDataSharingEnabled_ = value; 1539 } else { 1540 costDataSharingEnabledBuilder_.setMessage(value); 1541 } 1542 bitField0_ |= 0x00000008; 1543 onChanged(); 1544 return this; 1545 } 1546 /** 1547 * 1548 * 1549 * <pre> 1550 * Immutable. Enables the import of cost data from Search Ads 360 to the GA4 1551 * property. This can only be enabled if campaign_data_sharing_enabled is 1552 * enabled. After link creation, this can only be updated from 1553 * the Search Ads 360 product. 1554 * If this field is not set on create, it will be defaulted to true. 1555 * </pre> 1556 * 1557 * <code> 1558 * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; 1559 * </code> 1560 */ setCostDataSharingEnabled( com.google.protobuf.BoolValue.Builder builderForValue)1561 public Builder setCostDataSharingEnabled( 1562 com.google.protobuf.BoolValue.Builder builderForValue) { 1563 if (costDataSharingEnabledBuilder_ == null) { 1564 costDataSharingEnabled_ = builderForValue.build(); 1565 } else { 1566 costDataSharingEnabledBuilder_.setMessage(builderForValue.build()); 1567 } 1568 bitField0_ |= 0x00000008; 1569 onChanged(); 1570 return this; 1571 } 1572 /** 1573 * 1574 * 1575 * <pre> 1576 * Immutable. Enables the import of cost data from Search Ads 360 to the GA4 1577 * property. This can only be enabled if campaign_data_sharing_enabled is 1578 * enabled. After link creation, this can only be updated from 1579 * the Search Ads 360 product. 1580 * If this field is not set on create, it will be defaulted to true. 1581 * </pre> 1582 * 1583 * <code> 1584 * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; 1585 * </code> 1586 */ mergeCostDataSharingEnabled(com.google.protobuf.BoolValue value)1587 public Builder mergeCostDataSharingEnabled(com.google.protobuf.BoolValue value) { 1588 if (costDataSharingEnabledBuilder_ == null) { 1589 if (((bitField0_ & 0x00000008) != 0) 1590 && costDataSharingEnabled_ != null 1591 && costDataSharingEnabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) { 1592 getCostDataSharingEnabledBuilder().mergeFrom(value); 1593 } else { 1594 costDataSharingEnabled_ = value; 1595 } 1596 } else { 1597 costDataSharingEnabledBuilder_.mergeFrom(value); 1598 } 1599 bitField0_ |= 0x00000008; 1600 onChanged(); 1601 return this; 1602 } 1603 /** 1604 * 1605 * 1606 * <pre> 1607 * Immutable. Enables the import of cost data from Search Ads 360 to the GA4 1608 * property. This can only be enabled if campaign_data_sharing_enabled is 1609 * enabled. After link creation, this can only be updated from 1610 * the Search Ads 360 product. 1611 * If this field is not set on create, it will be defaulted to true. 1612 * </pre> 1613 * 1614 * <code> 1615 * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; 1616 * </code> 1617 */ clearCostDataSharingEnabled()1618 public Builder clearCostDataSharingEnabled() { 1619 bitField0_ = (bitField0_ & ~0x00000008); 1620 costDataSharingEnabled_ = null; 1621 if (costDataSharingEnabledBuilder_ != null) { 1622 costDataSharingEnabledBuilder_.dispose(); 1623 costDataSharingEnabledBuilder_ = null; 1624 } 1625 onChanged(); 1626 return this; 1627 } 1628 /** 1629 * 1630 * 1631 * <pre> 1632 * Immutable. Enables the import of cost data from Search Ads 360 to the GA4 1633 * property. This can only be enabled if campaign_data_sharing_enabled is 1634 * enabled. After link creation, this can only be updated from 1635 * the Search Ads 360 product. 1636 * If this field is not set on create, it will be defaulted to true. 1637 * </pre> 1638 * 1639 * <code> 1640 * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; 1641 * </code> 1642 */ getCostDataSharingEnabledBuilder()1643 public com.google.protobuf.BoolValue.Builder getCostDataSharingEnabledBuilder() { 1644 bitField0_ |= 0x00000008; 1645 onChanged(); 1646 return getCostDataSharingEnabledFieldBuilder().getBuilder(); 1647 } 1648 /** 1649 * 1650 * 1651 * <pre> 1652 * Immutable. Enables the import of cost data from Search Ads 360 to the GA4 1653 * property. This can only be enabled if campaign_data_sharing_enabled is 1654 * enabled. After link creation, this can only be updated from 1655 * the Search Ads 360 product. 1656 * If this field is not set on create, it will be defaulted to true. 1657 * </pre> 1658 * 1659 * <code> 1660 * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; 1661 * </code> 1662 */ getCostDataSharingEnabledOrBuilder()1663 public com.google.protobuf.BoolValueOrBuilder getCostDataSharingEnabledOrBuilder() { 1664 if (costDataSharingEnabledBuilder_ != null) { 1665 return costDataSharingEnabledBuilder_.getMessageOrBuilder(); 1666 } else { 1667 return costDataSharingEnabled_ == null 1668 ? com.google.protobuf.BoolValue.getDefaultInstance() 1669 : costDataSharingEnabled_; 1670 } 1671 } 1672 /** 1673 * 1674 * 1675 * <pre> 1676 * Immutable. Enables the import of cost data from Search Ads 360 to the GA4 1677 * property. This can only be enabled if campaign_data_sharing_enabled is 1678 * enabled. After link creation, this can only be updated from 1679 * the Search Ads 360 product. 1680 * If this field is not set on create, it will be defaulted to true. 1681 * </pre> 1682 * 1683 * <code> 1684 * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; 1685 * </code> 1686 */ 1687 private com.google.protobuf.SingleFieldBuilderV3< 1688 com.google.protobuf.BoolValue, 1689 com.google.protobuf.BoolValue.Builder, 1690 com.google.protobuf.BoolValueOrBuilder> getCostDataSharingEnabledFieldBuilder()1691 getCostDataSharingEnabledFieldBuilder() { 1692 if (costDataSharingEnabledBuilder_ == null) { 1693 costDataSharingEnabledBuilder_ = 1694 new com.google.protobuf.SingleFieldBuilderV3< 1695 com.google.protobuf.BoolValue, 1696 com.google.protobuf.BoolValue.Builder, 1697 com.google.protobuf.BoolValueOrBuilder>( 1698 getCostDataSharingEnabled(), getParentForChildren(), isClean()); 1699 costDataSharingEnabled_ = null; 1700 } 1701 return costDataSharingEnabledBuilder_; 1702 } 1703 1704 private java.lang.Object advertiserDisplayName_ = ""; 1705 /** 1706 * 1707 * 1708 * <pre> 1709 * Output only. The display name of the Search Ads 360 Advertiser. 1710 * Allows users to easily identify the linked resource. 1711 * </pre> 1712 * 1713 * <code>string advertiser_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1714 * 1715 * @return The advertiserDisplayName. 1716 */ getAdvertiserDisplayName()1717 public java.lang.String getAdvertiserDisplayName() { 1718 java.lang.Object ref = advertiserDisplayName_; 1719 if (!(ref instanceof java.lang.String)) { 1720 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1721 java.lang.String s = bs.toStringUtf8(); 1722 advertiserDisplayName_ = s; 1723 return s; 1724 } else { 1725 return (java.lang.String) ref; 1726 } 1727 } 1728 /** 1729 * 1730 * 1731 * <pre> 1732 * Output only. The display name of the Search Ads 360 Advertiser. 1733 * Allows users to easily identify the linked resource. 1734 * </pre> 1735 * 1736 * <code>string advertiser_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1737 * 1738 * @return The bytes for advertiserDisplayName. 1739 */ getAdvertiserDisplayNameBytes()1740 public com.google.protobuf.ByteString getAdvertiserDisplayNameBytes() { 1741 java.lang.Object ref = advertiserDisplayName_; 1742 if (ref instanceof String) { 1743 com.google.protobuf.ByteString b = 1744 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1745 advertiserDisplayName_ = b; 1746 return b; 1747 } else { 1748 return (com.google.protobuf.ByteString) ref; 1749 } 1750 } 1751 /** 1752 * 1753 * 1754 * <pre> 1755 * Output only. The display name of the Search Ads 360 Advertiser. 1756 * Allows users to easily identify the linked resource. 1757 * </pre> 1758 * 1759 * <code>string advertiser_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1760 * 1761 * @param value The advertiserDisplayName to set. 1762 * @return This builder for chaining. 1763 */ setAdvertiserDisplayName(java.lang.String value)1764 public Builder setAdvertiserDisplayName(java.lang.String value) { 1765 if (value == null) { 1766 throw new NullPointerException(); 1767 } 1768 advertiserDisplayName_ = value; 1769 bitField0_ |= 0x00000010; 1770 onChanged(); 1771 return this; 1772 } 1773 /** 1774 * 1775 * 1776 * <pre> 1777 * Output only. The display name of the Search Ads 360 Advertiser. 1778 * Allows users to easily identify the linked resource. 1779 * </pre> 1780 * 1781 * <code>string advertiser_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1782 * 1783 * @return This builder for chaining. 1784 */ clearAdvertiserDisplayName()1785 public Builder clearAdvertiserDisplayName() { 1786 advertiserDisplayName_ = getDefaultInstance().getAdvertiserDisplayName(); 1787 bitField0_ = (bitField0_ & ~0x00000010); 1788 onChanged(); 1789 return this; 1790 } 1791 /** 1792 * 1793 * 1794 * <pre> 1795 * Output only. The display name of the Search Ads 360 Advertiser. 1796 * Allows users to easily identify the linked resource. 1797 * </pre> 1798 * 1799 * <code>string advertiser_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> 1800 * 1801 * @param value The bytes for advertiserDisplayName to set. 1802 * @return This builder for chaining. 1803 */ setAdvertiserDisplayNameBytes(com.google.protobuf.ByteString value)1804 public Builder setAdvertiserDisplayNameBytes(com.google.protobuf.ByteString value) { 1805 if (value == null) { 1806 throw new NullPointerException(); 1807 } 1808 checkByteStringIsUtf8(value); 1809 advertiserDisplayName_ = value; 1810 bitField0_ |= 0x00000010; 1811 onChanged(); 1812 return this; 1813 } 1814 1815 private com.google.protobuf.BoolValue adsPersonalizationEnabled_; 1816 private com.google.protobuf.SingleFieldBuilderV3< 1817 com.google.protobuf.BoolValue, 1818 com.google.protobuf.BoolValue.Builder, 1819 com.google.protobuf.BoolValueOrBuilder> 1820 adsPersonalizationEnabledBuilder_; 1821 /** 1822 * 1823 * 1824 * <pre> 1825 * Enables personalized advertising features with this integration. 1826 * If this field is not set on create, it will be defaulted to true. 1827 * </pre> 1828 * 1829 * <code>.google.protobuf.BoolValue ads_personalization_enabled = 6;</code> 1830 * 1831 * @return Whether the adsPersonalizationEnabled field is set. 1832 */ hasAdsPersonalizationEnabled()1833 public boolean hasAdsPersonalizationEnabled() { 1834 return ((bitField0_ & 0x00000020) != 0); 1835 } 1836 /** 1837 * 1838 * 1839 * <pre> 1840 * Enables personalized advertising features with this integration. 1841 * If this field is not set on create, it will be defaulted to true. 1842 * </pre> 1843 * 1844 * <code>.google.protobuf.BoolValue ads_personalization_enabled = 6;</code> 1845 * 1846 * @return The adsPersonalizationEnabled. 1847 */ getAdsPersonalizationEnabled()1848 public com.google.protobuf.BoolValue getAdsPersonalizationEnabled() { 1849 if (adsPersonalizationEnabledBuilder_ == null) { 1850 return adsPersonalizationEnabled_ == null 1851 ? com.google.protobuf.BoolValue.getDefaultInstance() 1852 : adsPersonalizationEnabled_; 1853 } else { 1854 return adsPersonalizationEnabledBuilder_.getMessage(); 1855 } 1856 } 1857 /** 1858 * 1859 * 1860 * <pre> 1861 * Enables personalized advertising features with this integration. 1862 * If this field is not set on create, it will be defaulted to true. 1863 * </pre> 1864 * 1865 * <code>.google.protobuf.BoolValue ads_personalization_enabled = 6;</code> 1866 */ setAdsPersonalizationEnabled(com.google.protobuf.BoolValue value)1867 public Builder setAdsPersonalizationEnabled(com.google.protobuf.BoolValue value) { 1868 if (adsPersonalizationEnabledBuilder_ == null) { 1869 if (value == null) { 1870 throw new NullPointerException(); 1871 } 1872 adsPersonalizationEnabled_ = value; 1873 } else { 1874 adsPersonalizationEnabledBuilder_.setMessage(value); 1875 } 1876 bitField0_ |= 0x00000020; 1877 onChanged(); 1878 return this; 1879 } 1880 /** 1881 * 1882 * 1883 * <pre> 1884 * Enables personalized advertising features with this integration. 1885 * If this field is not set on create, it will be defaulted to true. 1886 * </pre> 1887 * 1888 * <code>.google.protobuf.BoolValue ads_personalization_enabled = 6;</code> 1889 */ setAdsPersonalizationEnabled( com.google.protobuf.BoolValue.Builder builderForValue)1890 public Builder setAdsPersonalizationEnabled( 1891 com.google.protobuf.BoolValue.Builder builderForValue) { 1892 if (adsPersonalizationEnabledBuilder_ == null) { 1893 adsPersonalizationEnabled_ = builderForValue.build(); 1894 } else { 1895 adsPersonalizationEnabledBuilder_.setMessage(builderForValue.build()); 1896 } 1897 bitField0_ |= 0x00000020; 1898 onChanged(); 1899 return this; 1900 } 1901 /** 1902 * 1903 * 1904 * <pre> 1905 * Enables personalized advertising features with this integration. 1906 * If this field is not set on create, it will be defaulted to true. 1907 * </pre> 1908 * 1909 * <code>.google.protobuf.BoolValue ads_personalization_enabled = 6;</code> 1910 */ mergeAdsPersonalizationEnabled(com.google.protobuf.BoolValue value)1911 public Builder mergeAdsPersonalizationEnabled(com.google.protobuf.BoolValue value) { 1912 if (adsPersonalizationEnabledBuilder_ == null) { 1913 if (((bitField0_ & 0x00000020) != 0) 1914 && adsPersonalizationEnabled_ != null 1915 && adsPersonalizationEnabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) { 1916 getAdsPersonalizationEnabledBuilder().mergeFrom(value); 1917 } else { 1918 adsPersonalizationEnabled_ = value; 1919 } 1920 } else { 1921 adsPersonalizationEnabledBuilder_.mergeFrom(value); 1922 } 1923 bitField0_ |= 0x00000020; 1924 onChanged(); 1925 return this; 1926 } 1927 /** 1928 * 1929 * 1930 * <pre> 1931 * Enables personalized advertising features with this integration. 1932 * If this field is not set on create, it will be defaulted to true. 1933 * </pre> 1934 * 1935 * <code>.google.protobuf.BoolValue ads_personalization_enabled = 6;</code> 1936 */ clearAdsPersonalizationEnabled()1937 public Builder clearAdsPersonalizationEnabled() { 1938 bitField0_ = (bitField0_ & ~0x00000020); 1939 adsPersonalizationEnabled_ = null; 1940 if (adsPersonalizationEnabledBuilder_ != null) { 1941 adsPersonalizationEnabledBuilder_.dispose(); 1942 adsPersonalizationEnabledBuilder_ = null; 1943 } 1944 onChanged(); 1945 return this; 1946 } 1947 /** 1948 * 1949 * 1950 * <pre> 1951 * Enables personalized advertising features with this integration. 1952 * If this field is not set on create, it will be defaulted to true. 1953 * </pre> 1954 * 1955 * <code>.google.protobuf.BoolValue ads_personalization_enabled = 6;</code> 1956 */ getAdsPersonalizationEnabledBuilder()1957 public com.google.protobuf.BoolValue.Builder getAdsPersonalizationEnabledBuilder() { 1958 bitField0_ |= 0x00000020; 1959 onChanged(); 1960 return getAdsPersonalizationEnabledFieldBuilder().getBuilder(); 1961 } 1962 /** 1963 * 1964 * 1965 * <pre> 1966 * Enables personalized advertising features with this integration. 1967 * If this field is not set on create, it will be defaulted to true. 1968 * </pre> 1969 * 1970 * <code>.google.protobuf.BoolValue ads_personalization_enabled = 6;</code> 1971 */ getAdsPersonalizationEnabledOrBuilder()1972 public com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder() { 1973 if (adsPersonalizationEnabledBuilder_ != null) { 1974 return adsPersonalizationEnabledBuilder_.getMessageOrBuilder(); 1975 } else { 1976 return adsPersonalizationEnabled_ == null 1977 ? com.google.protobuf.BoolValue.getDefaultInstance() 1978 : adsPersonalizationEnabled_; 1979 } 1980 } 1981 /** 1982 * 1983 * 1984 * <pre> 1985 * Enables personalized advertising features with this integration. 1986 * If this field is not set on create, it will be defaulted to true. 1987 * </pre> 1988 * 1989 * <code>.google.protobuf.BoolValue ads_personalization_enabled = 6;</code> 1990 */ 1991 private com.google.protobuf.SingleFieldBuilderV3< 1992 com.google.protobuf.BoolValue, 1993 com.google.protobuf.BoolValue.Builder, 1994 com.google.protobuf.BoolValueOrBuilder> getAdsPersonalizationEnabledFieldBuilder()1995 getAdsPersonalizationEnabledFieldBuilder() { 1996 if (adsPersonalizationEnabledBuilder_ == null) { 1997 adsPersonalizationEnabledBuilder_ = 1998 new com.google.protobuf.SingleFieldBuilderV3< 1999 com.google.protobuf.BoolValue, 2000 com.google.protobuf.BoolValue.Builder, 2001 com.google.protobuf.BoolValueOrBuilder>( 2002 getAdsPersonalizationEnabled(), getParentForChildren(), isClean()); 2003 adsPersonalizationEnabled_ = null; 2004 } 2005 return adsPersonalizationEnabledBuilder_; 2006 } 2007 2008 private com.google.protobuf.BoolValue siteStatsSharingEnabled_; 2009 private com.google.protobuf.SingleFieldBuilderV3< 2010 com.google.protobuf.BoolValue, 2011 com.google.protobuf.BoolValue.Builder, 2012 com.google.protobuf.BoolValueOrBuilder> 2013 siteStatsSharingEnabledBuilder_; 2014 /** 2015 * 2016 * 2017 * <pre> 2018 * Enables export of site stats with this integration. 2019 * If this field is not set on create, it will be defaulted to true. 2020 * </pre> 2021 * 2022 * <code>.google.protobuf.BoolValue site_stats_sharing_enabled = 7;</code> 2023 * 2024 * @return Whether the siteStatsSharingEnabled field is set. 2025 */ hasSiteStatsSharingEnabled()2026 public boolean hasSiteStatsSharingEnabled() { 2027 return ((bitField0_ & 0x00000040) != 0); 2028 } 2029 /** 2030 * 2031 * 2032 * <pre> 2033 * Enables export of site stats with this integration. 2034 * If this field is not set on create, it will be defaulted to true. 2035 * </pre> 2036 * 2037 * <code>.google.protobuf.BoolValue site_stats_sharing_enabled = 7;</code> 2038 * 2039 * @return The siteStatsSharingEnabled. 2040 */ getSiteStatsSharingEnabled()2041 public com.google.protobuf.BoolValue getSiteStatsSharingEnabled() { 2042 if (siteStatsSharingEnabledBuilder_ == null) { 2043 return siteStatsSharingEnabled_ == null 2044 ? com.google.protobuf.BoolValue.getDefaultInstance() 2045 : siteStatsSharingEnabled_; 2046 } else { 2047 return siteStatsSharingEnabledBuilder_.getMessage(); 2048 } 2049 } 2050 /** 2051 * 2052 * 2053 * <pre> 2054 * Enables export of site stats with this integration. 2055 * If this field is not set on create, it will be defaulted to true. 2056 * </pre> 2057 * 2058 * <code>.google.protobuf.BoolValue site_stats_sharing_enabled = 7;</code> 2059 */ setSiteStatsSharingEnabled(com.google.protobuf.BoolValue value)2060 public Builder setSiteStatsSharingEnabled(com.google.protobuf.BoolValue value) { 2061 if (siteStatsSharingEnabledBuilder_ == null) { 2062 if (value == null) { 2063 throw new NullPointerException(); 2064 } 2065 siteStatsSharingEnabled_ = value; 2066 } else { 2067 siteStatsSharingEnabledBuilder_.setMessage(value); 2068 } 2069 bitField0_ |= 0x00000040; 2070 onChanged(); 2071 return this; 2072 } 2073 /** 2074 * 2075 * 2076 * <pre> 2077 * Enables export of site stats with this integration. 2078 * If this field is not set on create, it will be defaulted to true. 2079 * </pre> 2080 * 2081 * <code>.google.protobuf.BoolValue site_stats_sharing_enabled = 7;</code> 2082 */ setSiteStatsSharingEnabled( com.google.protobuf.BoolValue.Builder builderForValue)2083 public Builder setSiteStatsSharingEnabled( 2084 com.google.protobuf.BoolValue.Builder builderForValue) { 2085 if (siteStatsSharingEnabledBuilder_ == null) { 2086 siteStatsSharingEnabled_ = builderForValue.build(); 2087 } else { 2088 siteStatsSharingEnabledBuilder_.setMessage(builderForValue.build()); 2089 } 2090 bitField0_ |= 0x00000040; 2091 onChanged(); 2092 return this; 2093 } 2094 /** 2095 * 2096 * 2097 * <pre> 2098 * Enables export of site stats with this integration. 2099 * If this field is not set on create, it will be defaulted to true. 2100 * </pre> 2101 * 2102 * <code>.google.protobuf.BoolValue site_stats_sharing_enabled = 7;</code> 2103 */ mergeSiteStatsSharingEnabled(com.google.protobuf.BoolValue value)2104 public Builder mergeSiteStatsSharingEnabled(com.google.protobuf.BoolValue value) { 2105 if (siteStatsSharingEnabledBuilder_ == null) { 2106 if (((bitField0_ & 0x00000040) != 0) 2107 && siteStatsSharingEnabled_ != null 2108 && siteStatsSharingEnabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) { 2109 getSiteStatsSharingEnabledBuilder().mergeFrom(value); 2110 } else { 2111 siteStatsSharingEnabled_ = value; 2112 } 2113 } else { 2114 siteStatsSharingEnabledBuilder_.mergeFrom(value); 2115 } 2116 bitField0_ |= 0x00000040; 2117 onChanged(); 2118 return this; 2119 } 2120 /** 2121 * 2122 * 2123 * <pre> 2124 * Enables export of site stats with this integration. 2125 * If this field is not set on create, it will be defaulted to true. 2126 * </pre> 2127 * 2128 * <code>.google.protobuf.BoolValue site_stats_sharing_enabled = 7;</code> 2129 */ clearSiteStatsSharingEnabled()2130 public Builder clearSiteStatsSharingEnabled() { 2131 bitField0_ = (bitField0_ & ~0x00000040); 2132 siteStatsSharingEnabled_ = null; 2133 if (siteStatsSharingEnabledBuilder_ != null) { 2134 siteStatsSharingEnabledBuilder_.dispose(); 2135 siteStatsSharingEnabledBuilder_ = null; 2136 } 2137 onChanged(); 2138 return this; 2139 } 2140 /** 2141 * 2142 * 2143 * <pre> 2144 * Enables export of site stats with this integration. 2145 * If this field is not set on create, it will be defaulted to true. 2146 * </pre> 2147 * 2148 * <code>.google.protobuf.BoolValue site_stats_sharing_enabled = 7;</code> 2149 */ getSiteStatsSharingEnabledBuilder()2150 public com.google.protobuf.BoolValue.Builder getSiteStatsSharingEnabledBuilder() { 2151 bitField0_ |= 0x00000040; 2152 onChanged(); 2153 return getSiteStatsSharingEnabledFieldBuilder().getBuilder(); 2154 } 2155 /** 2156 * 2157 * 2158 * <pre> 2159 * Enables export of site stats with this integration. 2160 * If this field is not set on create, it will be defaulted to true. 2161 * </pre> 2162 * 2163 * <code>.google.protobuf.BoolValue site_stats_sharing_enabled = 7;</code> 2164 */ getSiteStatsSharingEnabledOrBuilder()2165 public com.google.protobuf.BoolValueOrBuilder getSiteStatsSharingEnabledOrBuilder() { 2166 if (siteStatsSharingEnabledBuilder_ != null) { 2167 return siteStatsSharingEnabledBuilder_.getMessageOrBuilder(); 2168 } else { 2169 return siteStatsSharingEnabled_ == null 2170 ? com.google.protobuf.BoolValue.getDefaultInstance() 2171 : siteStatsSharingEnabled_; 2172 } 2173 } 2174 /** 2175 * 2176 * 2177 * <pre> 2178 * Enables export of site stats with this integration. 2179 * If this field is not set on create, it will be defaulted to true. 2180 * </pre> 2181 * 2182 * <code>.google.protobuf.BoolValue site_stats_sharing_enabled = 7;</code> 2183 */ 2184 private com.google.protobuf.SingleFieldBuilderV3< 2185 com.google.protobuf.BoolValue, 2186 com.google.protobuf.BoolValue.Builder, 2187 com.google.protobuf.BoolValueOrBuilder> getSiteStatsSharingEnabledFieldBuilder()2188 getSiteStatsSharingEnabledFieldBuilder() { 2189 if (siteStatsSharingEnabledBuilder_ == null) { 2190 siteStatsSharingEnabledBuilder_ = 2191 new com.google.protobuf.SingleFieldBuilderV3< 2192 com.google.protobuf.BoolValue, 2193 com.google.protobuf.BoolValue.Builder, 2194 com.google.protobuf.BoolValueOrBuilder>( 2195 getSiteStatsSharingEnabled(), getParentForChildren(), isClean()); 2196 siteStatsSharingEnabled_ = null; 2197 } 2198 return siteStatsSharingEnabledBuilder_; 2199 } 2200 2201 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)2202 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 2203 return super.setUnknownFields(unknownFields); 2204 } 2205 2206 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2207 public final Builder mergeUnknownFields( 2208 final com.google.protobuf.UnknownFieldSet unknownFields) { 2209 return super.mergeUnknownFields(unknownFields); 2210 } 2211 2212 // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.SearchAds360Link) 2213 } 2214 2215 // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.SearchAds360Link) 2216 private static final com.google.analytics.admin.v1alpha.SearchAds360Link DEFAULT_INSTANCE; 2217 2218 static { 2219 DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.SearchAds360Link(); 2220 } 2221 getDefaultInstance()2222 public static com.google.analytics.admin.v1alpha.SearchAds360Link getDefaultInstance() { 2223 return DEFAULT_INSTANCE; 2224 } 2225 2226 private static final com.google.protobuf.Parser<SearchAds360Link> PARSER = 2227 new com.google.protobuf.AbstractParser<SearchAds360Link>() { 2228 @java.lang.Override 2229 public SearchAds360Link parsePartialFrom( 2230 com.google.protobuf.CodedInputStream input, 2231 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2232 throws com.google.protobuf.InvalidProtocolBufferException { 2233 Builder builder = newBuilder(); 2234 try { 2235 builder.mergeFrom(input, extensionRegistry); 2236 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2237 throw e.setUnfinishedMessage(builder.buildPartial()); 2238 } catch (com.google.protobuf.UninitializedMessageException e) { 2239 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 2240 } catch (java.io.IOException e) { 2241 throw new com.google.protobuf.InvalidProtocolBufferException(e) 2242 .setUnfinishedMessage(builder.buildPartial()); 2243 } 2244 return builder.buildPartial(); 2245 } 2246 }; 2247 parser()2248 public static com.google.protobuf.Parser<SearchAds360Link> parser() { 2249 return PARSER; 2250 } 2251 2252 @java.lang.Override getParserForType()2253 public com.google.protobuf.Parser<SearchAds360Link> getParserForType() { 2254 return PARSER; 2255 } 2256 2257 @java.lang.Override getDefaultInstanceForType()2258 public com.google.analytics.admin.v1alpha.SearchAds360Link getDefaultInstanceForType() { 2259 return DEFAULT_INSTANCE; 2260 } 2261 } 2262