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