All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v17/services/smart_campaign_setting_service.proto

// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.services;

/**
 * 
 * Response message for
 * [SmartCampaignSettingService.GetSmartCampaignStatus][google.ads.googleads.v17.services.SmartCampaignSettingService.GetSmartCampaignStatus].
 * 
* * Protobuf type {@code google.ads.googleads.v17.services.GetSmartCampaignStatusResponse} */ public final class GetSmartCampaignStatusResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v17.services.GetSmartCampaignStatusResponse) GetSmartCampaignStatusResponseOrBuilder { private static final long serialVersionUID = 0L; // Use GetSmartCampaignStatusResponse.newBuilder() to construct. private GetSmartCampaignStatusResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetSmartCampaignStatusResponse() { smartCampaignStatus_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GetSmartCampaignStatusResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.services.SmartCampaignSettingServiceProto.internal_static_google_ads_googleads_v17_services_GetSmartCampaignStatusResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.services.SmartCampaignSettingServiceProto.internal_static_google_ads_googleads_v17_services_GetSmartCampaignStatusResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse.class, com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse.Builder.class); } private int smartCampaignStatusDetailsCase_ = 0; @SuppressWarnings("serial") private java.lang.Object smartCampaignStatusDetails_; public enum SmartCampaignStatusDetailsCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { NOT_ELIGIBLE_DETAILS(2), ELIGIBLE_DETAILS(3), PAUSED_DETAILS(4), REMOVED_DETAILS(5), ENDED_DETAILS(6), SMARTCAMPAIGNSTATUSDETAILS_NOT_SET(0); private final int value; private SmartCampaignStatusDetailsCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static SmartCampaignStatusDetailsCase valueOf(int value) { return forNumber(value); } public static SmartCampaignStatusDetailsCase forNumber(int value) { switch (value) { case 2: return NOT_ELIGIBLE_DETAILS; case 3: return ELIGIBLE_DETAILS; case 4: return PAUSED_DETAILS; case 5: return REMOVED_DETAILS; case 6: return ENDED_DETAILS; case 0: return SMARTCAMPAIGNSTATUSDETAILS_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public SmartCampaignStatusDetailsCase getSmartCampaignStatusDetailsCase() { return SmartCampaignStatusDetailsCase.forNumber( smartCampaignStatusDetailsCase_); } public static final int SMART_CAMPAIGN_STATUS_FIELD_NUMBER = 1; private int smartCampaignStatus_ = 0; /** *
   * The status of this Smart campaign.
   * 
* * .google.ads.googleads.v17.enums.SmartCampaignStatusEnum.SmartCampaignStatus smart_campaign_status = 1; * @return The enum numeric value on the wire for smartCampaignStatus. */ @java.lang.Override public int getSmartCampaignStatusValue() { return smartCampaignStatus_; } /** *
   * The status of this Smart campaign.
   * 
* * .google.ads.googleads.v17.enums.SmartCampaignStatusEnum.SmartCampaignStatus smart_campaign_status = 1; * @return The smartCampaignStatus. */ @java.lang.Override public com.google.ads.googleads.v17.enums.SmartCampaignStatusEnum.SmartCampaignStatus getSmartCampaignStatus() { com.google.ads.googleads.v17.enums.SmartCampaignStatusEnum.SmartCampaignStatus result = com.google.ads.googleads.v17.enums.SmartCampaignStatusEnum.SmartCampaignStatus.forNumber(smartCampaignStatus_); return result == null ? com.google.ads.googleads.v17.enums.SmartCampaignStatusEnum.SmartCampaignStatus.UNRECOGNIZED : result; } public static final int NOT_ELIGIBLE_DETAILS_FIELD_NUMBER = 2; /** *
   * Details related to Smart campaigns that are ineligible to serve.
   * 
* * .google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails not_eligible_details = 2; * @return Whether the notEligibleDetails field is set. */ @java.lang.Override public boolean hasNotEligibleDetails() { return smartCampaignStatusDetailsCase_ == 2; } /** *
   * Details related to Smart campaigns that are ineligible to serve.
   * 
* * .google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails not_eligible_details = 2; * @return The notEligibleDetails. */ @java.lang.Override public com.google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails getNotEligibleDetails() { if (smartCampaignStatusDetailsCase_ == 2) { return (com.google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails) smartCampaignStatusDetails_; } return com.google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails.getDefaultInstance(); } /** *
   * Details related to Smart campaigns that are ineligible to serve.
   * 
* * .google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails not_eligible_details = 2; */ @java.lang.Override public com.google.ads.googleads.v17.services.SmartCampaignNotEligibleDetailsOrBuilder getNotEligibleDetailsOrBuilder() { if (smartCampaignStatusDetailsCase_ == 2) { return (com.google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails) smartCampaignStatusDetails_; } return com.google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails.getDefaultInstance(); } public static final int ELIGIBLE_DETAILS_FIELD_NUMBER = 3; /** *
   * Details related to Smart campaigns that are eligible to serve.
   * 
* * .google.ads.googleads.v17.services.SmartCampaignEligibleDetails eligible_details = 3; * @return Whether the eligibleDetails field is set. */ @java.lang.Override public boolean hasEligibleDetails() { return smartCampaignStatusDetailsCase_ == 3; } /** *
   * Details related to Smart campaigns that are eligible to serve.
   * 
* * .google.ads.googleads.v17.services.SmartCampaignEligibleDetails eligible_details = 3; * @return The eligibleDetails. */ @java.lang.Override public com.google.ads.googleads.v17.services.SmartCampaignEligibleDetails getEligibleDetails() { if (smartCampaignStatusDetailsCase_ == 3) { return (com.google.ads.googleads.v17.services.SmartCampaignEligibleDetails) smartCampaignStatusDetails_; } return com.google.ads.googleads.v17.services.SmartCampaignEligibleDetails.getDefaultInstance(); } /** *
   * Details related to Smart campaigns that are eligible to serve.
   * 
* * .google.ads.googleads.v17.services.SmartCampaignEligibleDetails eligible_details = 3; */ @java.lang.Override public com.google.ads.googleads.v17.services.SmartCampaignEligibleDetailsOrBuilder getEligibleDetailsOrBuilder() { if (smartCampaignStatusDetailsCase_ == 3) { return (com.google.ads.googleads.v17.services.SmartCampaignEligibleDetails) smartCampaignStatusDetails_; } return com.google.ads.googleads.v17.services.SmartCampaignEligibleDetails.getDefaultInstance(); } public static final int PAUSED_DETAILS_FIELD_NUMBER = 4; /** *
   * Details related to paused Smart campaigns.
   * 
* * .google.ads.googleads.v17.services.SmartCampaignPausedDetails paused_details = 4; * @return Whether the pausedDetails field is set. */ @java.lang.Override public boolean hasPausedDetails() { return smartCampaignStatusDetailsCase_ == 4; } /** *
   * Details related to paused Smart campaigns.
   * 
* * .google.ads.googleads.v17.services.SmartCampaignPausedDetails paused_details = 4; * @return The pausedDetails. */ @java.lang.Override public com.google.ads.googleads.v17.services.SmartCampaignPausedDetails getPausedDetails() { if (smartCampaignStatusDetailsCase_ == 4) { return (com.google.ads.googleads.v17.services.SmartCampaignPausedDetails) smartCampaignStatusDetails_; } return com.google.ads.googleads.v17.services.SmartCampaignPausedDetails.getDefaultInstance(); } /** *
   * Details related to paused Smart campaigns.
   * 
* * .google.ads.googleads.v17.services.SmartCampaignPausedDetails paused_details = 4; */ @java.lang.Override public com.google.ads.googleads.v17.services.SmartCampaignPausedDetailsOrBuilder getPausedDetailsOrBuilder() { if (smartCampaignStatusDetailsCase_ == 4) { return (com.google.ads.googleads.v17.services.SmartCampaignPausedDetails) smartCampaignStatusDetails_; } return com.google.ads.googleads.v17.services.SmartCampaignPausedDetails.getDefaultInstance(); } public static final int REMOVED_DETAILS_FIELD_NUMBER = 5; /** *
   * Details related to removed Smart campaigns.
   * 
* * .google.ads.googleads.v17.services.SmartCampaignRemovedDetails removed_details = 5; * @return Whether the removedDetails field is set. */ @java.lang.Override public boolean hasRemovedDetails() { return smartCampaignStatusDetailsCase_ == 5; } /** *
   * Details related to removed Smart campaigns.
   * 
* * .google.ads.googleads.v17.services.SmartCampaignRemovedDetails removed_details = 5; * @return The removedDetails. */ @java.lang.Override public com.google.ads.googleads.v17.services.SmartCampaignRemovedDetails getRemovedDetails() { if (smartCampaignStatusDetailsCase_ == 5) { return (com.google.ads.googleads.v17.services.SmartCampaignRemovedDetails) smartCampaignStatusDetails_; } return com.google.ads.googleads.v17.services.SmartCampaignRemovedDetails.getDefaultInstance(); } /** *
   * Details related to removed Smart campaigns.
   * 
* * .google.ads.googleads.v17.services.SmartCampaignRemovedDetails removed_details = 5; */ @java.lang.Override public com.google.ads.googleads.v17.services.SmartCampaignRemovedDetailsOrBuilder getRemovedDetailsOrBuilder() { if (smartCampaignStatusDetailsCase_ == 5) { return (com.google.ads.googleads.v17.services.SmartCampaignRemovedDetails) smartCampaignStatusDetails_; } return com.google.ads.googleads.v17.services.SmartCampaignRemovedDetails.getDefaultInstance(); } public static final int ENDED_DETAILS_FIELD_NUMBER = 6; /** *
   * Details related to Smart campaigns that have ended.
   * 
* * .google.ads.googleads.v17.services.SmartCampaignEndedDetails ended_details = 6; * @return Whether the endedDetails field is set. */ @java.lang.Override public boolean hasEndedDetails() { return smartCampaignStatusDetailsCase_ == 6; } /** *
   * Details related to Smart campaigns that have ended.
   * 
* * .google.ads.googleads.v17.services.SmartCampaignEndedDetails ended_details = 6; * @return The endedDetails. */ @java.lang.Override public com.google.ads.googleads.v17.services.SmartCampaignEndedDetails getEndedDetails() { if (smartCampaignStatusDetailsCase_ == 6) { return (com.google.ads.googleads.v17.services.SmartCampaignEndedDetails) smartCampaignStatusDetails_; } return com.google.ads.googleads.v17.services.SmartCampaignEndedDetails.getDefaultInstance(); } /** *
   * Details related to Smart campaigns that have ended.
   * 
* * .google.ads.googleads.v17.services.SmartCampaignEndedDetails ended_details = 6; */ @java.lang.Override public com.google.ads.googleads.v17.services.SmartCampaignEndedDetailsOrBuilder getEndedDetailsOrBuilder() { if (smartCampaignStatusDetailsCase_ == 6) { return (com.google.ads.googleads.v17.services.SmartCampaignEndedDetails) smartCampaignStatusDetails_; } return com.google.ads.googleads.v17.services.SmartCampaignEndedDetails.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (smartCampaignStatus_ != com.google.ads.googleads.v17.enums.SmartCampaignStatusEnum.SmartCampaignStatus.UNSPECIFIED.getNumber()) { output.writeEnum(1, smartCampaignStatus_); } if (smartCampaignStatusDetailsCase_ == 2) { output.writeMessage(2, (com.google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails) smartCampaignStatusDetails_); } if (smartCampaignStatusDetailsCase_ == 3) { output.writeMessage(3, (com.google.ads.googleads.v17.services.SmartCampaignEligibleDetails) smartCampaignStatusDetails_); } if (smartCampaignStatusDetailsCase_ == 4) { output.writeMessage(4, (com.google.ads.googleads.v17.services.SmartCampaignPausedDetails) smartCampaignStatusDetails_); } if (smartCampaignStatusDetailsCase_ == 5) { output.writeMessage(5, (com.google.ads.googleads.v17.services.SmartCampaignRemovedDetails) smartCampaignStatusDetails_); } if (smartCampaignStatusDetailsCase_ == 6) { output.writeMessage(6, (com.google.ads.googleads.v17.services.SmartCampaignEndedDetails) smartCampaignStatusDetails_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (smartCampaignStatus_ != com.google.ads.googleads.v17.enums.SmartCampaignStatusEnum.SmartCampaignStatus.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, smartCampaignStatus_); } if (smartCampaignStatusDetailsCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails) smartCampaignStatusDetails_); } if (smartCampaignStatusDetailsCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (com.google.ads.googleads.v17.services.SmartCampaignEligibleDetails) smartCampaignStatusDetails_); } if (smartCampaignStatusDetailsCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (com.google.ads.googleads.v17.services.SmartCampaignPausedDetails) smartCampaignStatusDetails_); } if (smartCampaignStatusDetailsCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (com.google.ads.googleads.v17.services.SmartCampaignRemovedDetails) smartCampaignStatusDetails_); } if (smartCampaignStatusDetailsCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (com.google.ads.googleads.v17.services.SmartCampaignEndedDetails) smartCampaignStatusDetails_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse)) { return super.equals(obj); } com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse other = (com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse) obj; if (smartCampaignStatus_ != other.smartCampaignStatus_) return false; if (!getSmartCampaignStatusDetailsCase().equals(other.getSmartCampaignStatusDetailsCase())) return false; switch (smartCampaignStatusDetailsCase_) { case 2: if (!getNotEligibleDetails() .equals(other.getNotEligibleDetails())) return false; break; case 3: if (!getEligibleDetails() .equals(other.getEligibleDetails())) return false; break; case 4: if (!getPausedDetails() .equals(other.getPausedDetails())) return false; break; case 5: if (!getRemovedDetails() .equals(other.getRemovedDetails())) return false; break; case 6: if (!getEndedDetails() .equals(other.getEndedDetails())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SMART_CAMPAIGN_STATUS_FIELD_NUMBER; hash = (53 * hash) + smartCampaignStatus_; switch (smartCampaignStatusDetailsCase_) { case 2: hash = (37 * hash) + NOT_ELIGIBLE_DETAILS_FIELD_NUMBER; hash = (53 * hash) + getNotEligibleDetails().hashCode(); break; case 3: hash = (37 * hash) + ELIGIBLE_DETAILS_FIELD_NUMBER; hash = (53 * hash) + getEligibleDetails().hashCode(); break; case 4: hash = (37 * hash) + PAUSED_DETAILS_FIELD_NUMBER; hash = (53 * hash) + getPausedDetails().hashCode(); break; case 5: hash = (37 * hash) + REMOVED_DETAILS_FIELD_NUMBER; hash = (53 * hash) + getRemovedDetails().hashCode(); break; case 6: hash = (37 * hash) + ENDED_DETAILS_FIELD_NUMBER; hash = (53 * hash) + getEndedDetails().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Response message for
   * [SmartCampaignSettingService.GetSmartCampaignStatus][google.ads.googleads.v17.services.SmartCampaignSettingService.GetSmartCampaignStatus].
   * 
* * Protobuf type {@code google.ads.googleads.v17.services.GetSmartCampaignStatusResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.services.GetSmartCampaignStatusResponse) com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.services.SmartCampaignSettingServiceProto.internal_static_google_ads_googleads_v17_services_GetSmartCampaignStatusResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.services.SmartCampaignSettingServiceProto.internal_static_google_ads_googleads_v17_services_GetSmartCampaignStatusResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse.class, com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse.Builder.class); } // Construct using com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; smartCampaignStatus_ = 0; if (notEligibleDetailsBuilder_ != null) { notEligibleDetailsBuilder_.clear(); } if (eligibleDetailsBuilder_ != null) { eligibleDetailsBuilder_.clear(); } if (pausedDetailsBuilder_ != null) { pausedDetailsBuilder_.clear(); } if (removedDetailsBuilder_ != null) { removedDetailsBuilder_.clear(); } if (endedDetailsBuilder_ != null) { endedDetailsBuilder_.clear(); } smartCampaignStatusDetailsCase_ = 0; smartCampaignStatusDetails_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v17.services.SmartCampaignSettingServiceProto.internal_static_google_ads_googleads_v17_services_GetSmartCampaignStatusResponse_descriptor; } @java.lang.Override public com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse getDefaultInstanceForType() { return com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse build() { com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse buildPartial() { com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse result = new com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.smartCampaignStatus_ = smartCampaignStatus_; } } private void buildPartialOneofs(com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse result) { result.smartCampaignStatusDetailsCase_ = smartCampaignStatusDetailsCase_; result.smartCampaignStatusDetails_ = this.smartCampaignStatusDetails_; if (smartCampaignStatusDetailsCase_ == 2 && notEligibleDetailsBuilder_ != null) { result.smartCampaignStatusDetails_ = notEligibleDetailsBuilder_.build(); } if (smartCampaignStatusDetailsCase_ == 3 && eligibleDetailsBuilder_ != null) { result.smartCampaignStatusDetails_ = eligibleDetailsBuilder_.build(); } if (smartCampaignStatusDetailsCase_ == 4 && pausedDetailsBuilder_ != null) { result.smartCampaignStatusDetails_ = pausedDetailsBuilder_.build(); } if (smartCampaignStatusDetailsCase_ == 5 && removedDetailsBuilder_ != null) { result.smartCampaignStatusDetails_ = removedDetailsBuilder_.build(); } if (smartCampaignStatusDetailsCase_ == 6 && endedDetailsBuilder_ != null) { result.smartCampaignStatusDetails_ = endedDetailsBuilder_.build(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse) { return mergeFrom((com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse other) { if (other == com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse.getDefaultInstance()) return this; if (other.smartCampaignStatus_ != 0) { setSmartCampaignStatusValue(other.getSmartCampaignStatusValue()); } switch (other.getSmartCampaignStatusDetailsCase()) { case NOT_ELIGIBLE_DETAILS: { mergeNotEligibleDetails(other.getNotEligibleDetails()); break; } case ELIGIBLE_DETAILS: { mergeEligibleDetails(other.getEligibleDetails()); break; } case PAUSED_DETAILS: { mergePausedDetails(other.getPausedDetails()); break; } case REMOVED_DETAILS: { mergeRemovedDetails(other.getRemovedDetails()); break; } case ENDED_DETAILS: { mergeEndedDetails(other.getEndedDetails()); break; } case SMARTCAMPAIGNSTATUSDETAILS_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { smartCampaignStatus_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getNotEligibleDetailsFieldBuilder().getBuilder(), extensionRegistry); smartCampaignStatusDetailsCase_ = 2; break; } // case 18 case 26: { input.readMessage( getEligibleDetailsFieldBuilder().getBuilder(), extensionRegistry); smartCampaignStatusDetailsCase_ = 3; break; } // case 26 case 34: { input.readMessage( getPausedDetailsFieldBuilder().getBuilder(), extensionRegistry); smartCampaignStatusDetailsCase_ = 4; break; } // case 34 case 42: { input.readMessage( getRemovedDetailsFieldBuilder().getBuilder(), extensionRegistry); smartCampaignStatusDetailsCase_ = 5; break; } // case 42 case 50: { input.readMessage( getEndedDetailsFieldBuilder().getBuilder(), extensionRegistry); smartCampaignStatusDetailsCase_ = 6; break; } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int smartCampaignStatusDetailsCase_ = 0; private java.lang.Object smartCampaignStatusDetails_; public SmartCampaignStatusDetailsCase getSmartCampaignStatusDetailsCase() { return SmartCampaignStatusDetailsCase.forNumber( smartCampaignStatusDetailsCase_); } public Builder clearSmartCampaignStatusDetails() { smartCampaignStatusDetailsCase_ = 0; smartCampaignStatusDetails_ = null; onChanged(); return this; } private int bitField0_; private int smartCampaignStatus_ = 0; /** *
     * The status of this Smart campaign.
     * 
* * .google.ads.googleads.v17.enums.SmartCampaignStatusEnum.SmartCampaignStatus smart_campaign_status = 1; * @return The enum numeric value on the wire for smartCampaignStatus. */ @java.lang.Override public int getSmartCampaignStatusValue() { return smartCampaignStatus_; } /** *
     * The status of this Smart campaign.
     * 
* * .google.ads.googleads.v17.enums.SmartCampaignStatusEnum.SmartCampaignStatus smart_campaign_status = 1; * @param value The enum numeric value on the wire for smartCampaignStatus to set. * @return This builder for chaining. */ public Builder setSmartCampaignStatusValue(int value) { smartCampaignStatus_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The status of this Smart campaign.
     * 
* * .google.ads.googleads.v17.enums.SmartCampaignStatusEnum.SmartCampaignStatus smart_campaign_status = 1; * @return The smartCampaignStatus. */ @java.lang.Override public com.google.ads.googleads.v17.enums.SmartCampaignStatusEnum.SmartCampaignStatus getSmartCampaignStatus() { com.google.ads.googleads.v17.enums.SmartCampaignStatusEnum.SmartCampaignStatus result = com.google.ads.googleads.v17.enums.SmartCampaignStatusEnum.SmartCampaignStatus.forNumber(smartCampaignStatus_); return result == null ? com.google.ads.googleads.v17.enums.SmartCampaignStatusEnum.SmartCampaignStatus.UNRECOGNIZED : result; } /** *
     * The status of this Smart campaign.
     * 
* * .google.ads.googleads.v17.enums.SmartCampaignStatusEnum.SmartCampaignStatus smart_campaign_status = 1; * @param value The smartCampaignStatus to set. * @return This builder for chaining. */ public Builder setSmartCampaignStatus(com.google.ads.googleads.v17.enums.SmartCampaignStatusEnum.SmartCampaignStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; smartCampaignStatus_ = value.getNumber(); onChanged(); return this; } /** *
     * The status of this Smart campaign.
     * 
* * .google.ads.googleads.v17.enums.SmartCampaignStatusEnum.SmartCampaignStatus smart_campaign_status = 1; * @return This builder for chaining. */ public Builder clearSmartCampaignStatus() { bitField0_ = (bitField0_ & ~0x00000001); smartCampaignStatus_ = 0; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails, com.google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails.Builder, com.google.ads.googleads.v17.services.SmartCampaignNotEligibleDetailsOrBuilder> notEligibleDetailsBuilder_; /** *
     * Details related to Smart campaigns that are ineligible to serve.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails not_eligible_details = 2; * @return Whether the notEligibleDetails field is set. */ @java.lang.Override public boolean hasNotEligibleDetails() { return smartCampaignStatusDetailsCase_ == 2; } /** *
     * Details related to Smart campaigns that are ineligible to serve.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails not_eligible_details = 2; * @return The notEligibleDetails. */ @java.lang.Override public com.google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails getNotEligibleDetails() { if (notEligibleDetailsBuilder_ == null) { if (smartCampaignStatusDetailsCase_ == 2) { return (com.google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails) smartCampaignStatusDetails_; } return com.google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails.getDefaultInstance(); } else { if (smartCampaignStatusDetailsCase_ == 2) { return notEligibleDetailsBuilder_.getMessage(); } return com.google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails.getDefaultInstance(); } } /** *
     * Details related to Smart campaigns that are ineligible to serve.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails not_eligible_details = 2; */ public Builder setNotEligibleDetails(com.google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails value) { if (notEligibleDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } smartCampaignStatusDetails_ = value; onChanged(); } else { notEligibleDetailsBuilder_.setMessage(value); } smartCampaignStatusDetailsCase_ = 2; return this; } /** *
     * Details related to Smart campaigns that are ineligible to serve.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails not_eligible_details = 2; */ public Builder setNotEligibleDetails( com.google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails.Builder builderForValue) { if (notEligibleDetailsBuilder_ == null) { smartCampaignStatusDetails_ = builderForValue.build(); onChanged(); } else { notEligibleDetailsBuilder_.setMessage(builderForValue.build()); } smartCampaignStatusDetailsCase_ = 2; return this; } /** *
     * Details related to Smart campaigns that are ineligible to serve.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails not_eligible_details = 2; */ public Builder mergeNotEligibleDetails(com.google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails value) { if (notEligibleDetailsBuilder_ == null) { if (smartCampaignStatusDetailsCase_ == 2 && smartCampaignStatusDetails_ != com.google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails.getDefaultInstance()) { smartCampaignStatusDetails_ = com.google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails.newBuilder((com.google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails) smartCampaignStatusDetails_) .mergeFrom(value).buildPartial(); } else { smartCampaignStatusDetails_ = value; } onChanged(); } else { if (smartCampaignStatusDetailsCase_ == 2) { notEligibleDetailsBuilder_.mergeFrom(value); } else { notEligibleDetailsBuilder_.setMessage(value); } } smartCampaignStatusDetailsCase_ = 2; return this; } /** *
     * Details related to Smart campaigns that are ineligible to serve.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails not_eligible_details = 2; */ public Builder clearNotEligibleDetails() { if (notEligibleDetailsBuilder_ == null) { if (smartCampaignStatusDetailsCase_ == 2) { smartCampaignStatusDetailsCase_ = 0; smartCampaignStatusDetails_ = null; onChanged(); } } else { if (smartCampaignStatusDetailsCase_ == 2) { smartCampaignStatusDetailsCase_ = 0; smartCampaignStatusDetails_ = null; } notEligibleDetailsBuilder_.clear(); } return this; } /** *
     * Details related to Smart campaigns that are ineligible to serve.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails not_eligible_details = 2; */ public com.google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails.Builder getNotEligibleDetailsBuilder() { return getNotEligibleDetailsFieldBuilder().getBuilder(); } /** *
     * Details related to Smart campaigns that are ineligible to serve.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails not_eligible_details = 2; */ @java.lang.Override public com.google.ads.googleads.v17.services.SmartCampaignNotEligibleDetailsOrBuilder getNotEligibleDetailsOrBuilder() { if ((smartCampaignStatusDetailsCase_ == 2) && (notEligibleDetailsBuilder_ != null)) { return notEligibleDetailsBuilder_.getMessageOrBuilder(); } else { if (smartCampaignStatusDetailsCase_ == 2) { return (com.google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails) smartCampaignStatusDetails_; } return com.google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails.getDefaultInstance(); } } /** *
     * Details related to Smart campaigns that are ineligible to serve.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails not_eligible_details = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails, com.google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails.Builder, com.google.ads.googleads.v17.services.SmartCampaignNotEligibleDetailsOrBuilder> getNotEligibleDetailsFieldBuilder() { if (notEligibleDetailsBuilder_ == null) { if (!(smartCampaignStatusDetailsCase_ == 2)) { smartCampaignStatusDetails_ = com.google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails.getDefaultInstance(); } notEligibleDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails, com.google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails.Builder, com.google.ads.googleads.v17.services.SmartCampaignNotEligibleDetailsOrBuilder>( (com.google.ads.googleads.v17.services.SmartCampaignNotEligibleDetails) smartCampaignStatusDetails_, getParentForChildren(), isClean()); smartCampaignStatusDetails_ = null; } smartCampaignStatusDetailsCase_ = 2; onChanged(); return notEligibleDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.SmartCampaignEligibleDetails, com.google.ads.googleads.v17.services.SmartCampaignEligibleDetails.Builder, com.google.ads.googleads.v17.services.SmartCampaignEligibleDetailsOrBuilder> eligibleDetailsBuilder_; /** *
     * Details related to Smart campaigns that are eligible to serve.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignEligibleDetails eligible_details = 3; * @return Whether the eligibleDetails field is set. */ @java.lang.Override public boolean hasEligibleDetails() { return smartCampaignStatusDetailsCase_ == 3; } /** *
     * Details related to Smart campaigns that are eligible to serve.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignEligibleDetails eligible_details = 3; * @return The eligibleDetails. */ @java.lang.Override public com.google.ads.googleads.v17.services.SmartCampaignEligibleDetails getEligibleDetails() { if (eligibleDetailsBuilder_ == null) { if (smartCampaignStatusDetailsCase_ == 3) { return (com.google.ads.googleads.v17.services.SmartCampaignEligibleDetails) smartCampaignStatusDetails_; } return com.google.ads.googleads.v17.services.SmartCampaignEligibleDetails.getDefaultInstance(); } else { if (smartCampaignStatusDetailsCase_ == 3) { return eligibleDetailsBuilder_.getMessage(); } return com.google.ads.googleads.v17.services.SmartCampaignEligibleDetails.getDefaultInstance(); } } /** *
     * Details related to Smart campaigns that are eligible to serve.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignEligibleDetails eligible_details = 3; */ public Builder setEligibleDetails(com.google.ads.googleads.v17.services.SmartCampaignEligibleDetails value) { if (eligibleDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } smartCampaignStatusDetails_ = value; onChanged(); } else { eligibleDetailsBuilder_.setMessage(value); } smartCampaignStatusDetailsCase_ = 3; return this; } /** *
     * Details related to Smart campaigns that are eligible to serve.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignEligibleDetails eligible_details = 3; */ public Builder setEligibleDetails( com.google.ads.googleads.v17.services.SmartCampaignEligibleDetails.Builder builderForValue) { if (eligibleDetailsBuilder_ == null) { smartCampaignStatusDetails_ = builderForValue.build(); onChanged(); } else { eligibleDetailsBuilder_.setMessage(builderForValue.build()); } smartCampaignStatusDetailsCase_ = 3; return this; } /** *
     * Details related to Smart campaigns that are eligible to serve.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignEligibleDetails eligible_details = 3; */ public Builder mergeEligibleDetails(com.google.ads.googleads.v17.services.SmartCampaignEligibleDetails value) { if (eligibleDetailsBuilder_ == null) { if (smartCampaignStatusDetailsCase_ == 3 && smartCampaignStatusDetails_ != com.google.ads.googleads.v17.services.SmartCampaignEligibleDetails.getDefaultInstance()) { smartCampaignStatusDetails_ = com.google.ads.googleads.v17.services.SmartCampaignEligibleDetails.newBuilder((com.google.ads.googleads.v17.services.SmartCampaignEligibleDetails) smartCampaignStatusDetails_) .mergeFrom(value).buildPartial(); } else { smartCampaignStatusDetails_ = value; } onChanged(); } else { if (smartCampaignStatusDetailsCase_ == 3) { eligibleDetailsBuilder_.mergeFrom(value); } else { eligibleDetailsBuilder_.setMessage(value); } } smartCampaignStatusDetailsCase_ = 3; return this; } /** *
     * Details related to Smart campaigns that are eligible to serve.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignEligibleDetails eligible_details = 3; */ public Builder clearEligibleDetails() { if (eligibleDetailsBuilder_ == null) { if (smartCampaignStatusDetailsCase_ == 3) { smartCampaignStatusDetailsCase_ = 0; smartCampaignStatusDetails_ = null; onChanged(); } } else { if (smartCampaignStatusDetailsCase_ == 3) { smartCampaignStatusDetailsCase_ = 0; smartCampaignStatusDetails_ = null; } eligibleDetailsBuilder_.clear(); } return this; } /** *
     * Details related to Smart campaigns that are eligible to serve.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignEligibleDetails eligible_details = 3; */ public com.google.ads.googleads.v17.services.SmartCampaignEligibleDetails.Builder getEligibleDetailsBuilder() { return getEligibleDetailsFieldBuilder().getBuilder(); } /** *
     * Details related to Smart campaigns that are eligible to serve.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignEligibleDetails eligible_details = 3; */ @java.lang.Override public com.google.ads.googleads.v17.services.SmartCampaignEligibleDetailsOrBuilder getEligibleDetailsOrBuilder() { if ((smartCampaignStatusDetailsCase_ == 3) && (eligibleDetailsBuilder_ != null)) { return eligibleDetailsBuilder_.getMessageOrBuilder(); } else { if (smartCampaignStatusDetailsCase_ == 3) { return (com.google.ads.googleads.v17.services.SmartCampaignEligibleDetails) smartCampaignStatusDetails_; } return com.google.ads.googleads.v17.services.SmartCampaignEligibleDetails.getDefaultInstance(); } } /** *
     * Details related to Smart campaigns that are eligible to serve.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignEligibleDetails eligible_details = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.SmartCampaignEligibleDetails, com.google.ads.googleads.v17.services.SmartCampaignEligibleDetails.Builder, com.google.ads.googleads.v17.services.SmartCampaignEligibleDetailsOrBuilder> getEligibleDetailsFieldBuilder() { if (eligibleDetailsBuilder_ == null) { if (!(smartCampaignStatusDetailsCase_ == 3)) { smartCampaignStatusDetails_ = com.google.ads.googleads.v17.services.SmartCampaignEligibleDetails.getDefaultInstance(); } eligibleDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.SmartCampaignEligibleDetails, com.google.ads.googleads.v17.services.SmartCampaignEligibleDetails.Builder, com.google.ads.googleads.v17.services.SmartCampaignEligibleDetailsOrBuilder>( (com.google.ads.googleads.v17.services.SmartCampaignEligibleDetails) smartCampaignStatusDetails_, getParentForChildren(), isClean()); smartCampaignStatusDetails_ = null; } smartCampaignStatusDetailsCase_ = 3; onChanged(); return eligibleDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.SmartCampaignPausedDetails, com.google.ads.googleads.v17.services.SmartCampaignPausedDetails.Builder, com.google.ads.googleads.v17.services.SmartCampaignPausedDetailsOrBuilder> pausedDetailsBuilder_; /** *
     * Details related to paused Smart campaigns.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignPausedDetails paused_details = 4; * @return Whether the pausedDetails field is set. */ @java.lang.Override public boolean hasPausedDetails() { return smartCampaignStatusDetailsCase_ == 4; } /** *
     * Details related to paused Smart campaigns.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignPausedDetails paused_details = 4; * @return The pausedDetails. */ @java.lang.Override public com.google.ads.googleads.v17.services.SmartCampaignPausedDetails getPausedDetails() { if (pausedDetailsBuilder_ == null) { if (smartCampaignStatusDetailsCase_ == 4) { return (com.google.ads.googleads.v17.services.SmartCampaignPausedDetails) smartCampaignStatusDetails_; } return com.google.ads.googleads.v17.services.SmartCampaignPausedDetails.getDefaultInstance(); } else { if (smartCampaignStatusDetailsCase_ == 4) { return pausedDetailsBuilder_.getMessage(); } return com.google.ads.googleads.v17.services.SmartCampaignPausedDetails.getDefaultInstance(); } } /** *
     * Details related to paused Smart campaigns.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignPausedDetails paused_details = 4; */ public Builder setPausedDetails(com.google.ads.googleads.v17.services.SmartCampaignPausedDetails value) { if (pausedDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } smartCampaignStatusDetails_ = value; onChanged(); } else { pausedDetailsBuilder_.setMessage(value); } smartCampaignStatusDetailsCase_ = 4; return this; } /** *
     * Details related to paused Smart campaigns.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignPausedDetails paused_details = 4; */ public Builder setPausedDetails( com.google.ads.googleads.v17.services.SmartCampaignPausedDetails.Builder builderForValue) { if (pausedDetailsBuilder_ == null) { smartCampaignStatusDetails_ = builderForValue.build(); onChanged(); } else { pausedDetailsBuilder_.setMessage(builderForValue.build()); } smartCampaignStatusDetailsCase_ = 4; return this; } /** *
     * Details related to paused Smart campaigns.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignPausedDetails paused_details = 4; */ public Builder mergePausedDetails(com.google.ads.googleads.v17.services.SmartCampaignPausedDetails value) { if (pausedDetailsBuilder_ == null) { if (smartCampaignStatusDetailsCase_ == 4 && smartCampaignStatusDetails_ != com.google.ads.googleads.v17.services.SmartCampaignPausedDetails.getDefaultInstance()) { smartCampaignStatusDetails_ = com.google.ads.googleads.v17.services.SmartCampaignPausedDetails.newBuilder((com.google.ads.googleads.v17.services.SmartCampaignPausedDetails) smartCampaignStatusDetails_) .mergeFrom(value).buildPartial(); } else { smartCampaignStatusDetails_ = value; } onChanged(); } else { if (smartCampaignStatusDetailsCase_ == 4) { pausedDetailsBuilder_.mergeFrom(value); } else { pausedDetailsBuilder_.setMessage(value); } } smartCampaignStatusDetailsCase_ = 4; return this; } /** *
     * Details related to paused Smart campaigns.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignPausedDetails paused_details = 4; */ public Builder clearPausedDetails() { if (pausedDetailsBuilder_ == null) { if (smartCampaignStatusDetailsCase_ == 4) { smartCampaignStatusDetailsCase_ = 0; smartCampaignStatusDetails_ = null; onChanged(); } } else { if (smartCampaignStatusDetailsCase_ == 4) { smartCampaignStatusDetailsCase_ = 0; smartCampaignStatusDetails_ = null; } pausedDetailsBuilder_.clear(); } return this; } /** *
     * Details related to paused Smart campaigns.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignPausedDetails paused_details = 4; */ public com.google.ads.googleads.v17.services.SmartCampaignPausedDetails.Builder getPausedDetailsBuilder() { return getPausedDetailsFieldBuilder().getBuilder(); } /** *
     * Details related to paused Smart campaigns.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignPausedDetails paused_details = 4; */ @java.lang.Override public com.google.ads.googleads.v17.services.SmartCampaignPausedDetailsOrBuilder getPausedDetailsOrBuilder() { if ((smartCampaignStatusDetailsCase_ == 4) && (pausedDetailsBuilder_ != null)) { return pausedDetailsBuilder_.getMessageOrBuilder(); } else { if (smartCampaignStatusDetailsCase_ == 4) { return (com.google.ads.googleads.v17.services.SmartCampaignPausedDetails) smartCampaignStatusDetails_; } return com.google.ads.googleads.v17.services.SmartCampaignPausedDetails.getDefaultInstance(); } } /** *
     * Details related to paused Smart campaigns.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignPausedDetails paused_details = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.SmartCampaignPausedDetails, com.google.ads.googleads.v17.services.SmartCampaignPausedDetails.Builder, com.google.ads.googleads.v17.services.SmartCampaignPausedDetailsOrBuilder> getPausedDetailsFieldBuilder() { if (pausedDetailsBuilder_ == null) { if (!(smartCampaignStatusDetailsCase_ == 4)) { smartCampaignStatusDetails_ = com.google.ads.googleads.v17.services.SmartCampaignPausedDetails.getDefaultInstance(); } pausedDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.SmartCampaignPausedDetails, com.google.ads.googleads.v17.services.SmartCampaignPausedDetails.Builder, com.google.ads.googleads.v17.services.SmartCampaignPausedDetailsOrBuilder>( (com.google.ads.googleads.v17.services.SmartCampaignPausedDetails) smartCampaignStatusDetails_, getParentForChildren(), isClean()); smartCampaignStatusDetails_ = null; } smartCampaignStatusDetailsCase_ = 4; onChanged(); return pausedDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.SmartCampaignRemovedDetails, com.google.ads.googleads.v17.services.SmartCampaignRemovedDetails.Builder, com.google.ads.googleads.v17.services.SmartCampaignRemovedDetailsOrBuilder> removedDetailsBuilder_; /** *
     * Details related to removed Smart campaigns.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignRemovedDetails removed_details = 5; * @return Whether the removedDetails field is set. */ @java.lang.Override public boolean hasRemovedDetails() { return smartCampaignStatusDetailsCase_ == 5; } /** *
     * Details related to removed Smart campaigns.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignRemovedDetails removed_details = 5; * @return The removedDetails. */ @java.lang.Override public com.google.ads.googleads.v17.services.SmartCampaignRemovedDetails getRemovedDetails() { if (removedDetailsBuilder_ == null) { if (smartCampaignStatusDetailsCase_ == 5) { return (com.google.ads.googleads.v17.services.SmartCampaignRemovedDetails) smartCampaignStatusDetails_; } return com.google.ads.googleads.v17.services.SmartCampaignRemovedDetails.getDefaultInstance(); } else { if (smartCampaignStatusDetailsCase_ == 5) { return removedDetailsBuilder_.getMessage(); } return com.google.ads.googleads.v17.services.SmartCampaignRemovedDetails.getDefaultInstance(); } } /** *
     * Details related to removed Smart campaigns.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignRemovedDetails removed_details = 5; */ public Builder setRemovedDetails(com.google.ads.googleads.v17.services.SmartCampaignRemovedDetails value) { if (removedDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } smartCampaignStatusDetails_ = value; onChanged(); } else { removedDetailsBuilder_.setMessage(value); } smartCampaignStatusDetailsCase_ = 5; return this; } /** *
     * Details related to removed Smart campaigns.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignRemovedDetails removed_details = 5; */ public Builder setRemovedDetails( com.google.ads.googleads.v17.services.SmartCampaignRemovedDetails.Builder builderForValue) { if (removedDetailsBuilder_ == null) { smartCampaignStatusDetails_ = builderForValue.build(); onChanged(); } else { removedDetailsBuilder_.setMessage(builderForValue.build()); } smartCampaignStatusDetailsCase_ = 5; return this; } /** *
     * Details related to removed Smart campaigns.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignRemovedDetails removed_details = 5; */ public Builder mergeRemovedDetails(com.google.ads.googleads.v17.services.SmartCampaignRemovedDetails value) { if (removedDetailsBuilder_ == null) { if (smartCampaignStatusDetailsCase_ == 5 && smartCampaignStatusDetails_ != com.google.ads.googleads.v17.services.SmartCampaignRemovedDetails.getDefaultInstance()) { smartCampaignStatusDetails_ = com.google.ads.googleads.v17.services.SmartCampaignRemovedDetails.newBuilder((com.google.ads.googleads.v17.services.SmartCampaignRemovedDetails) smartCampaignStatusDetails_) .mergeFrom(value).buildPartial(); } else { smartCampaignStatusDetails_ = value; } onChanged(); } else { if (smartCampaignStatusDetailsCase_ == 5) { removedDetailsBuilder_.mergeFrom(value); } else { removedDetailsBuilder_.setMessage(value); } } smartCampaignStatusDetailsCase_ = 5; return this; } /** *
     * Details related to removed Smart campaigns.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignRemovedDetails removed_details = 5; */ public Builder clearRemovedDetails() { if (removedDetailsBuilder_ == null) { if (smartCampaignStatusDetailsCase_ == 5) { smartCampaignStatusDetailsCase_ = 0; smartCampaignStatusDetails_ = null; onChanged(); } } else { if (smartCampaignStatusDetailsCase_ == 5) { smartCampaignStatusDetailsCase_ = 0; smartCampaignStatusDetails_ = null; } removedDetailsBuilder_.clear(); } return this; } /** *
     * Details related to removed Smart campaigns.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignRemovedDetails removed_details = 5; */ public com.google.ads.googleads.v17.services.SmartCampaignRemovedDetails.Builder getRemovedDetailsBuilder() { return getRemovedDetailsFieldBuilder().getBuilder(); } /** *
     * Details related to removed Smart campaigns.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignRemovedDetails removed_details = 5; */ @java.lang.Override public com.google.ads.googleads.v17.services.SmartCampaignRemovedDetailsOrBuilder getRemovedDetailsOrBuilder() { if ((smartCampaignStatusDetailsCase_ == 5) && (removedDetailsBuilder_ != null)) { return removedDetailsBuilder_.getMessageOrBuilder(); } else { if (smartCampaignStatusDetailsCase_ == 5) { return (com.google.ads.googleads.v17.services.SmartCampaignRemovedDetails) smartCampaignStatusDetails_; } return com.google.ads.googleads.v17.services.SmartCampaignRemovedDetails.getDefaultInstance(); } } /** *
     * Details related to removed Smart campaigns.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignRemovedDetails removed_details = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.SmartCampaignRemovedDetails, com.google.ads.googleads.v17.services.SmartCampaignRemovedDetails.Builder, com.google.ads.googleads.v17.services.SmartCampaignRemovedDetailsOrBuilder> getRemovedDetailsFieldBuilder() { if (removedDetailsBuilder_ == null) { if (!(smartCampaignStatusDetailsCase_ == 5)) { smartCampaignStatusDetails_ = com.google.ads.googleads.v17.services.SmartCampaignRemovedDetails.getDefaultInstance(); } removedDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.SmartCampaignRemovedDetails, com.google.ads.googleads.v17.services.SmartCampaignRemovedDetails.Builder, com.google.ads.googleads.v17.services.SmartCampaignRemovedDetailsOrBuilder>( (com.google.ads.googleads.v17.services.SmartCampaignRemovedDetails) smartCampaignStatusDetails_, getParentForChildren(), isClean()); smartCampaignStatusDetails_ = null; } smartCampaignStatusDetailsCase_ = 5; onChanged(); return removedDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.SmartCampaignEndedDetails, com.google.ads.googleads.v17.services.SmartCampaignEndedDetails.Builder, com.google.ads.googleads.v17.services.SmartCampaignEndedDetailsOrBuilder> endedDetailsBuilder_; /** *
     * Details related to Smart campaigns that have ended.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignEndedDetails ended_details = 6; * @return Whether the endedDetails field is set. */ @java.lang.Override public boolean hasEndedDetails() { return smartCampaignStatusDetailsCase_ == 6; } /** *
     * Details related to Smart campaigns that have ended.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignEndedDetails ended_details = 6; * @return The endedDetails. */ @java.lang.Override public com.google.ads.googleads.v17.services.SmartCampaignEndedDetails getEndedDetails() { if (endedDetailsBuilder_ == null) { if (smartCampaignStatusDetailsCase_ == 6) { return (com.google.ads.googleads.v17.services.SmartCampaignEndedDetails) smartCampaignStatusDetails_; } return com.google.ads.googleads.v17.services.SmartCampaignEndedDetails.getDefaultInstance(); } else { if (smartCampaignStatusDetailsCase_ == 6) { return endedDetailsBuilder_.getMessage(); } return com.google.ads.googleads.v17.services.SmartCampaignEndedDetails.getDefaultInstance(); } } /** *
     * Details related to Smart campaigns that have ended.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignEndedDetails ended_details = 6; */ public Builder setEndedDetails(com.google.ads.googleads.v17.services.SmartCampaignEndedDetails value) { if (endedDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } smartCampaignStatusDetails_ = value; onChanged(); } else { endedDetailsBuilder_.setMessage(value); } smartCampaignStatusDetailsCase_ = 6; return this; } /** *
     * Details related to Smart campaigns that have ended.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignEndedDetails ended_details = 6; */ public Builder setEndedDetails( com.google.ads.googleads.v17.services.SmartCampaignEndedDetails.Builder builderForValue) { if (endedDetailsBuilder_ == null) { smartCampaignStatusDetails_ = builderForValue.build(); onChanged(); } else { endedDetailsBuilder_.setMessage(builderForValue.build()); } smartCampaignStatusDetailsCase_ = 6; return this; } /** *
     * Details related to Smart campaigns that have ended.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignEndedDetails ended_details = 6; */ public Builder mergeEndedDetails(com.google.ads.googleads.v17.services.SmartCampaignEndedDetails value) { if (endedDetailsBuilder_ == null) { if (smartCampaignStatusDetailsCase_ == 6 && smartCampaignStatusDetails_ != com.google.ads.googleads.v17.services.SmartCampaignEndedDetails.getDefaultInstance()) { smartCampaignStatusDetails_ = com.google.ads.googleads.v17.services.SmartCampaignEndedDetails.newBuilder((com.google.ads.googleads.v17.services.SmartCampaignEndedDetails) smartCampaignStatusDetails_) .mergeFrom(value).buildPartial(); } else { smartCampaignStatusDetails_ = value; } onChanged(); } else { if (smartCampaignStatusDetailsCase_ == 6) { endedDetailsBuilder_.mergeFrom(value); } else { endedDetailsBuilder_.setMessage(value); } } smartCampaignStatusDetailsCase_ = 6; return this; } /** *
     * Details related to Smart campaigns that have ended.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignEndedDetails ended_details = 6; */ public Builder clearEndedDetails() { if (endedDetailsBuilder_ == null) { if (smartCampaignStatusDetailsCase_ == 6) { smartCampaignStatusDetailsCase_ = 0; smartCampaignStatusDetails_ = null; onChanged(); } } else { if (smartCampaignStatusDetailsCase_ == 6) { smartCampaignStatusDetailsCase_ = 0; smartCampaignStatusDetails_ = null; } endedDetailsBuilder_.clear(); } return this; } /** *
     * Details related to Smart campaigns that have ended.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignEndedDetails ended_details = 6; */ public com.google.ads.googleads.v17.services.SmartCampaignEndedDetails.Builder getEndedDetailsBuilder() { return getEndedDetailsFieldBuilder().getBuilder(); } /** *
     * Details related to Smart campaigns that have ended.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignEndedDetails ended_details = 6; */ @java.lang.Override public com.google.ads.googleads.v17.services.SmartCampaignEndedDetailsOrBuilder getEndedDetailsOrBuilder() { if ((smartCampaignStatusDetailsCase_ == 6) && (endedDetailsBuilder_ != null)) { return endedDetailsBuilder_.getMessageOrBuilder(); } else { if (smartCampaignStatusDetailsCase_ == 6) { return (com.google.ads.googleads.v17.services.SmartCampaignEndedDetails) smartCampaignStatusDetails_; } return com.google.ads.googleads.v17.services.SmartCampaignEndedDetails.getDefaultInstance(); } } /** *
     * Details related to Smart campaigns that have ended.
     * 
* * .google.ads.googleads.v17.services.SmartCampaignEndedDetails ended_details = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.SmartCampaignEndedDetails, com.google.ads.googleads.v17.services.SmartCampaignEndedDetails.Builder, com.google.ads.googleads.v17.services.SmartCampaignEndedDetailsOrBuilder> getEndedDetailsFieldBuilder() { if (endedDetailsBuilder_ == null) { if (!(smartCampaignStatusDetailsCase_ == 6)) { smartCampaignStatusDetails_ = com.google.ads.googleads.v17.services.SmartCampaignEndedDetails.getDefaultInstance(); } endedDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.SmartCampaignEndedDetails, com.google.ads.googleads.v17.services.SmartCampaignEndedDetails.Builder, com.google.ads.googleads.v17.services.SmartCampaignEndedDetailsOrBuilder>( (com.google.ads.googleads.v17.services.SmartCampaignEndedDetails) smartCampaignStatusDetails_, getParentForChildren(), isClean()); smartCampaignStatusDetails_ = null; } smartCampaignStatusDetailsCase_ = 6; onChanged(); return endedDetailsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.ads.googleads.v17.services.GetSmartCampaignStatusResponse) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v17.services.GetSmartCampaignStatusResponse) private static final com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse(); } public static com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GetSmartCampaignStatusResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy