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

com.google.ads.googleads.v10.resources.CustomAudienceMember Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v10/resources/custom_audience.proto

package com.google.ads.googleads.v10.resources;

/**
 * 
 * A member of custom audience. A member can be a KEYWORD, URL,
 * PLACE_CATEGORY or APP. It can only be created or removed but not changed.
 * 
* * Protobuf type {@code google.ads.googleads.v10.resources.CustomAudienceMember} */ public final class CustomAudienceMember extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.resources.CustomAudienceMember) CustomAudienceMemberOrBuilder { private static final long serialVersionUID = 0L; // Use CustomAudienceMember.newBuilder() to construct. private CustomAudienceMember(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CustomAudienceMember() { memberType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CustomAudienceMember(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.CustomAudienceProto.internal_static_google_ads_googleads_v10_resources_CustomAudienceMember_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.CustomAudienceProto.internal_static_google_ads_googleads_v10_resources_CustomAudienceMember_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.CustomAudienceMember.class, com.google.ads.googleads.v10.resources.CustomAudienceMember.Builder.class); } private int valueCase_ = 0; private java.lang.Object value_; public enum ValueCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { KEYWORD(2), URL(3), PLACE_CATEGORY(4), APP(5), VALUE_NOT_SET(0); private final int value; private ValueCase(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 ValueCase valueOf(int value) { return forNumber(value); } public static ValueCase forNumber(int value) { switch (value) { case 2: return KEYWORD; case 3: return URL; case 4: return PLACE_CATEGORY; case 5: return APP; case 0: return VALUE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ValueCase getValueCase() { return ValueCase.forNumber( valueCase_); } public static final int MEMBER_TYPE_FIELD_NUMBER = 1; private int memberType_; /** *
   * The type of custom audience member, KEYWORD, URL, PLACE_CATEGORY or APP.
   * 
* * .google.ads.googleads.v10.enums.CustomAudienceMemberTypeEnum.CustomAudienceMemberType member_type = 1; * @return The enum numeric value on the wire for memberType. */ @java.lang.Override public int getMemberTypeValue() { return memberType_; } /** *
   * The type of custom audience member, KEYWORD, URL, PLACE_CATEGORY or APP.
   * 
* * .google.ads.googleads.v10.enums.CustomAudienceMemberTypeEnum.CustomAudienceMemberType member_type = 1; * @return The memberType. */ @java.lang.Override public com.google.ads.googleads.v10.enums.CustomAudienceMemberTypeEnum.CustomAudienceMemberType getMemberType() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.CustomAudienceMemberTypeEnum.CustomAudienceMemberType result = com.google.ads.googleads.v10.enums.CustomAudienceMemberTypeEnum.CustomAudienceMemberType.valueOf(memberType_); return result == null ? com.google.ads.googleads.v10.enums.CustomAudienceMemberTypeEnum.CustomAudienceMemberType.UNRECOGNIZED : result; } public static final int KEYWORD_FIELD_NUMBER = 2; /** *
   * A keyword or keyword phrase — at most 10 words and 80 characters.
   * Languages with double-width characters such as Chinese, Japanese,
   * or Korean, are allowed 40 characters, which describes the user's
   * interests or actions.
   * 
* * string keyword = 2; * @return Whether the keyword field is set. */ public boolean hasKeyword() { return valueCase_ == 2; } /** *
   * A keyword or keyword phrase — at most 10 words and 80 characters.
   * Languages with double-width characters such as Chinese, Japanese,
   * or Korean, are allowed 40 characters, which describes the user's
   * interests or actions.
   * 
* * string keyword = 2; * @return The keyword. */ public java.lang.String getKeyword() { java.lang.Object ref = ""; if (valueCase_ == 2) { ref = value_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (valueCase_ == 2) { value_ = s; } return s; } } /** *
   * A keyword or keyword phrase — at most 10 words and 80 characters.
   * Languages with double-width characters such as Chinese, Japanese,
   * or Korean, are allowed 40 characters, which describes the user's
   * interests or actions.
   * 
* * string keyword = 2; * @return The bytes for keyword. */ public com.google.protobuf.ByteString getKeywordBytes() { java.lang.Object ref = ""; if (valueCase_ == 2) { ref = value_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (valueCase_ == 2) { value_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int URL_FIELD_NUMBER = 3; /** *
   * An HTTP URL, protocol-included — at most 2048 characters, which includes
   * contents users have interests in.
   * 
* * string url = 3; * @return Whether the url field is set. */ public boolean hasUrl() { return valueCase_ == 3; } /** *
   * An HTTP URL, protocol-included — at most 2048 characters, which includes
   * contents users have interests in.
   * 
* * string url = 3; * @return The url. */ public java.lang.String getUrl() { java.lang.Object ref = ""; if (valueCase_ == 3) { ref = value_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (valueCase_ == 3) { value_ = s; } return s; } } /** *
   * An HTTP URL, protocol-included — at most 2048 characters, which includes
   * contents users have interests in.
   * 
* * string url = 3; * @return The bytes for url. */ public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = ""; if (valueCase_ == 3) { ref = value_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (valueCase_ == 3) { value_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PLACE_CATEGORY_FIELD_NUMBER = 4; /** *
   * A place type described by a place category users visit.
   * 
* * int64 place_category = 4; * @return Whether the placeCategory field is set. */ @java.lang.Override public boolean hasPlaceCategory() { return valueCase_ == 4; } /** *
   * A place type described by a place category users visit.
   * 
* * int64 place_category = 4; * @return The placeCategory. */ @java.lang.Override public long getPlaceCategory() { if (valueCase_ == 4) { return (java.lang.Long) value_; } return 0L; } public static final int APP_FIELD_NUMBER = 5; /** *
   * A package name of Android apps which users installed such as
   * com.google.example.
   * 
* * string app = 5; * @return Whether the app field is set. */ public boolean hasApp() { return valueCase_ == 5; } /** *
   * A package name of Android apps which users installed such as
   * com.google.example.
   * 
* * string app = 5; * @return The app. */ public java.lang.String getApp() { java.lang.Object ref = ""; if (valueCase_ == 5) { ref = value_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (valueCase_ == 5) { value_ = s; } return s; } } /** *
   * A package name of Android apps which users installed such as
   * com.google.example.
   * 
* * string app = 5; * @return The bytes for app. */ public com.google.protobuf.ByteString getAppBytes() { java.lang.Object ref = ""; if (valueCase_ == 5) { ref = value_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (valueCase_ == 5) { value_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (memberType_ != com.google.ads.googleads.v10.enums.CustomAudienceMemberTypeEnum.CustomAudienceMemberType.UNSPECIFIED.getNumber()) { output.writeEnum(1, memberType_); } if (valueCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); } if (valueCase_ == 3) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_); } if (valueCase_ == 4) { output.writeInt64( 4, (long)((java.lang.Long) value_)); } if (valueCase_ == 5) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, value_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (memberType_ != com.google.ads.googleads.v10.enums.CustomAudienceMemberTypeEnum.CustomAudienceMemberType.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, memberType_); } if (valueCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); } if (valueCase_ == 3) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, value_); } if (valueCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 4, (long)((java.lang.Long) value_)); } if (valueCase_ == 5) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, value_); } 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.v10.resources.CustomAudienceMember)) { return super.equals(obj); } com.google.ads.googleads.v10.resources.CustomAudienceMember other = (com.google.ads.googleads.v10.resources.CustomAudienceMember) obj; if (memberType_ != other.memberType_) return false; if (!getValueCase().equals(other.getValueCase())) return false; switch (valueCase_) { case 2: if (!getKeyword() .equals(other.getKeyword())) return false; break; case 3: if (!getUrl() .equals(other.getUrl())) return false; break; case 4: if (getPlaceCategory() != other.getPlaceCategory()) return false; break; case 5: if (!getApp() .equals(other.getApp())) 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) + MEMBER_TYPE_FIELD_NUMBER; hash = (53 * hash) + memberType_; switch (valueCase_) { case 2: hash = (37 * hash) + KEYWORD_FIELD_NUMBER; hash = (53 * hash) + getKeyword().hashCode(); break; case 3: hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); break; case 4: hash = (37 * hash) + PLACE_CATEGORY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPlaceCategory()); break; case 5: hash = (37 * hash) + APP_FIELD_NUMBER; hash = (53 * hash) + getApp().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v10.resources.CustomAudienceMember parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.resources.CustomAudienceMember 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.v10.resources.CustomAudienceMember parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.resources.CustomAudienceMember 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.v10.resources.CustomAudienceMember parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.resources.CustomAudienceMember parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v10.resources.CustomAudienceMember parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.resources.CustomAudienceMember 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.v10.resources.CustomAudienceMember parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.resources.CustomAudienceMember 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.v10.resources.CustomAudienceMember parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.resources.CustomAudienceMember 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.v10.resources.CustomAudienceMember prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * A member of custom audience. A member can be a KEYWORD, URL,
   * PLACE_CATEGORY or APP. It can only be created or removed but not changed.
   * 
* * Protobuf type {@code google.ads.googleads.v10.resources.CustomAudienceMember} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.CustomAudienceMember) com.google.ads.googleads.v10.resources.CustomAudienceMemberOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.CustomAudienceProto.internal_static_google_ads_googleads_v10_resources_CustomAudienceMember_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.CustomAudienceProto.internal_static_google_ads_googleads_v10_resources_CustomAudienceMember_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.CustomAudienceMember.class, com.google.ads.googleads.v10.resources.CustomAudienceMember.Builder.class); } // Construct using com.google.ads.googleads.v10.resources.CustomAudienceMember.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); memberType_ = 0; valueCase_ = 0; value_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.resources.CustomAudienceProto.internal_static_google_ads_googleads_v10_resources_CustomAudienceMember_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.resources.CustomAudienceMember getDefaultInstanceForType() { return com.google.ads.googleads.v10.resources.CustomAudienceMember.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.resources.CustomAudienceMember build() { com.google.ads.googleads.v10.resources.CustomAudienceMember result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.resources.CustomAudienceMember buildPartial() { com.google.ads.googleads.v10.resources.CustomAudienceMember result = new com.google.ads.googleads.v10.resources.CustomAudienceMember(this); result.memberType_ = memberType_; if (valueCase_ == 2) { result.value_ = value_; } if (valueCase_ == 3) { result.value_ = value_; } if (valueCase_ == 4) { result.value_ = value_; } if (valueCase_ == 5) { result.value_ = value_; } result.valueCase_ = valueCase_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v10.resources.CustomAudienceMember) { return mergeFrom((com.google.ads.googleads.v10.resources.CustomAudienceMember)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.resources.CustomAudienceMember other) { if (other == com.google.ads.googleads.v10.resources.CustomAudienceMember.getDefaultInstance()) return this; if (other.memberType_ != 0) { setMemberTypeValue(other.getMemberTypeValue()); } switch (other.getValueCase()) { case KEYWORD: { valueCase_ = 2; value_ = other.value_; onChanged(); break; } case URL: { valueCase_ = 3; value_ = other.value_; onChanged(); break; } case PLACE_CATEGORY: { setPlaceCategory(other.getPlaceCategory()); break; } case APP: { valueCase_ = 5; value_ = other.value_; onChanged(); break; } case VALUE_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: { memberType_ = input.readEnum(); break; } // case 8 case 18: { java.lang.String s = input.readStringRequireUtf8(); valueCase_ = 2; value_ = s; break; } // case 18 case 26: { java.lang.String s = input.readStringRequireUtf8(); valueCase_ = 3; value_ = s; break; } // case 26 case 32: { value_ = input.readInt64(); valueCase_ = 4; break; } // case 32 case 42: { java.lang.String s = input.readStringRequireUtf8(); valueCase_ = 5; value_ = s; break; } // case 42 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 valueCase_ = 0; private java.lang.Object value_; public ValueCase getValueCase() { return ValueCase.forNumber( valueCase_); } public Builder clearValue() { valueCase_ = 0; value_ = null; onChanged(); return this; } private int memberType_ = 0; /** *
     * The type of custom audience member, KEYWORD, URL, PLACE_CATEGORY or APP.
     * 
* * .google.ads.googleads.v10.enums.CustomAudienceMemberTypeEnum.CustomAudienceMemberType member_type = 1; * @return The enum numeric value on the wire for memberType. */ @java.lang.Override public int getMemberTypeValue() { return memberType_; } /** *
     * The type of custom audience member, KEYWORD, URL, PLACE_CATEGORY or APP.
     * 
* * .google.ads.googleads.v10.enums.CustomAudienceMemberTypeEnum.CustomAudienceMemberType member_type = 1; * @param value The enum numeric value on the wire for memberType to set. * @return This builder for chaining. */ public Builder setMemberTypeValue(int value) { memberType_ = value; onChanged(); return this; } /** *
     * The type of custom audience member, KEYWORD, URL, PLACE_CATEGORY or APP.
     * 
* * .google.ads.googleads.v10.enums.CustomAudienceMemberTypeEnum.CustomAudienceMemberType member_type = 1; * @return The memberType. */ @java.lang.Override public com.google.ads.googleads.v10.enums.CustomAudienceMemberTypeEnum.CustomAudienceMemberType getMemberType() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.CustomAudienceMemberTypeEnum.CustomAudienceMemberType result = com.google.ads.googleads.v10.enums.CustomAudienceMemberTypeEnum.CustomAudienceMemberType.valueOf(memberType_); return result == null ? com.google.ads.googleads.v10.enums.CustomAudienceMemberTypeEnum.CustomAudienceMemberType.UNRECOGNIZED : result; } /** *
     * The type of custom audience member, KEYWORD, URL, PLACE_CATEGORY or APP.
     * 
* * .google.ads.googleads.v10.enums.CustomAudienceMemberTypeEnum.CustomAudienceMemberType member_type = 1; * @param value The memberType to set. * @return This builder for chaining. */ public Builder setMemberType(com.google.ads.googleads.v10.enums.CustomAudienceMemberTypeEnum.CustomAudienceMemberType value) { if (value == null) { throw new NullPointerException(); } memberType_ = value.getNumber(); onChanged(); return this; } /** *
     * The type of custom audience member, KEYWORD, URL, PLACE_CATEGORY or APP.
     * 
* * .google.ads.googleads.v10.enums.CustomAudienceMemberTypeEnum.CustomAudienceMemberType member_type = 1; * @return This builder for chaining. */ public Builder clearMemberType() { memberType_ = 0; onChanged(); return this; } /** *
     * A keyword or keyword phrase — at most 10 words and 80 characters.
     * Languages with double-width characters such as Chinese, Japanese,
     * or Korean, are allowed 40 characters, which describes the user's
     * interests or actions.
     * 
* * string keyword = 2; * @return Whether the keyword field is set. */ @java.lang.Override public boolean hasKeyword() { return valueCase_ == 2; } /** *
     * A keyword or keyword phrase — at most 10 words and 80 characters.
     * Languages with double-width characters such as Chinese, Japanese,
     * or Korean, are allowed 40 characters, which describes the user's
     * interests or actions.
     * 
* * string keyword = 2; * @return The keyword. */ @java.lang.Override public java.lang.String getKeyword() { java.lang.Object ref = ""; if (valueCase_ == 2) { ref = value_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (valueCase_ == 2) { value_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * A keyword or keyword phrase — at most 10 words and 80 characters.
     * Languages with double-width characters such as Chinese, Japanese,
     * or Korean, are allowed 40 characters, which describes the user's
     * interests or actions.
     * 
* * string keyword = 2; * @return The bytes for keyword. */ @java.lang.Override public com.google.protobuf.ByteString getKeywordBytes() { java.lang.Object ref = ""; if (valueCase_ == 2) { ref = value_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (valueCase_ == 2) { value_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * A keyword or keyword phrase — at most 10 words and 80 characters.
     * Languages with double-width characters such as Chinese, Japanese,
     * or Korean, are allowed 40 characters, which describes the user's
     * interests or actions.
     * 
* * string keyword = 2; * @param value The keyword to set. * @return This builder for chaining. */ public Builder setKeyword( java.lang.String value) { if (value == null) { throw new NullPointerException(); } valueCase_ = 2; value_ = value; onChanged(); return this; } /** *
     * A keyword or keyword phrase — at most 10 words and 80 characters.
     * Languages with double-width characters such as Chinese, Japanese,
     * or Korean, are allowed 40 characters, which describes the user's
     * interests or actions.
     * 
* * string keyword = 2; * @return This builder for chaining. */ public Builder clearKeyword() { if (valueCase_ == 2) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** *
     * A keyword or keyword phrase — at most 10 words and 80 characters.
     * Languages with double-width characters such as Chinese, Japanese,
     * or Korean, are allowed 40 characters, which describes the user's
     * interests or actions.
     * 
* * string keyword = 2; * @param value The bytes for keyword to set. * @return This builder for chaining. */ public Builder setKeywordBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); valueCase_ = 2; value_ = value; onChanged(); return this; } /** *
     * An HTTP URL, protocol-included — at most 2048 characters, which includes
     * contents users have interests in.
     * 
* * string url = 3; * @return Whether the url field is set. */ @java.lang.Override public boolean hasUrl() { return valueCase_ == 3; } /** *
     * An HTTP URL, protocol-included — at most 2048 characters, which includes
     * contents users have interests in.
     * 
* * string url = 3; * @return The url. */ @java.lang.Override public java.lang.String getUrl() { java.lang.Object ref = ""; if (valueCase_ == 3) { ref = value_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (valueCase_ == 3) { value_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * An HTTP URL, protocol-included — at most 2048 characters, which includes
     * contents users have interests in.
     * 
* * string url = 3; * @return The bytes for url. */ @java.lang.Override public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = ""; if (valueCase_ == 3) { ref = value_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (valueCase_ == 3) { value_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * An HTTP URL, protocol-included — at most 2048 characters, which includes
     * contents users have interests in.
     * 
* * string url = 3; * @param value The url to set. * @return This builder for chaining. */ public Builder setUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } valueCase_ = 3; value_ = value; onChanged(); return this; } /** *
     * An HTTP URL, protocol-included — at most 2048 characters, which includes
     * contents users have interests in.
     * 
* * string url = 3; * @return This builder for chaining. */ public Builder clearUrl() { if (valueCase_ == 3) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** *
     * An HTTP URL, protocol-included — at most 2048 characters, which includes
     * contents users have interests in.
     * 
* * string url = 3; * @param value The bytes for url to set. * @return This builder for chaining. */ public Builder setUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); valueCase_ = 3; value_ = value; onChanged(); return this; } /** *
     * A place type described by a place category users visit.
     * 
* * int64 place_category = 4; * @return Whether the placeCategory field is set. */ public boolean hasPlaceCategory() { return valueCase_ == 4; } /** *
     * A place type described by a place category users visit.
     * 
* * int64 place_category = 4; * @return The placeCategory. */ public long getPlaceCategory() { if (valueCase_ == 4) { return (java.lang.Long) value_; } return 0L; } /** *
     * A place type described by a place category users visit.
     * 
* * int64 place_category = 4; * @param value The placeCategory to set. * @return This builder for chaining. */ public Builder setPlaceCategory(long value) { valueCase_ = 4; value_ = value; onChanged(); return this; } /** *
     * A place type described by a place category users visit.
     * 
* * int64 place_category = 4; * @return This builder for chaining. */ public Builder clearPlaceCategory() { if (valueCase_ == 4) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** *
     * A package name of Android apps which users installed such as
     * com.google.example.
     * 
* * string app = 5; * @return Whether the app field is set. */ @java.lang.Override public boolean hasApp() { return valueCase_ == 5; } /** *
     * A package name of Android apps which users installed such as
     * com.google.example.
     * 
* * string app = 5; * @return The app. */ @java.lang.Override public java.lang.String getApp() { java.lang.Object ref = ""; if (valueCase_ == 5) { ref = value_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (valueCase_ == 5) { value_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * A package name of Android apps which users installed such as
     * com.google.example.
     * 
* * string app = 5; * @return The bytes for app. */ @java.lang.Override public com.google.protobuf.ByteString getAppBytes() { java.lang.Object ref = ""; if (valueCase_ == 5) { ref = value_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (valueCase_ == 5) { value_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * A package name of Android apps which users installed such as
     * com.google.example.
     * 
* * string app = 5; * @param value The app to set. * @return This builder for chaining. */ public Builder setApp( java.lang.String value) { if (value == null) { throw new NullPointerException(); } valueCase_ = 5; value_ = value; onChanged(); return this; } /** *
     * A package name of Android apps which users installed such as
     * com.google.example.
     * 
* * string app = 5; * @return This builder for chaining. */ public Builder clearApp() { if (valueCase_ == 5) { valueCase_ = 0; value_ = null; onChanged(); } return this; } /** *
     * A package name of Android apps which users installed such as
     * com.google.example.
     * 
* * string app = 5; * @param value The bytes for app to set. * @return This builder for chaining. */ public Builder setAppBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); valueCase_ = 5; value_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.ads.googleads.v10.resources.CustomAudienceMember) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.CustomAudienceMember) private static final com.google.ads.googleads.v10.resources.CustomAudienceMember DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.CustomAudienceMember(); } public static com.google.ads.googleads.v10.resources.CustomAudienceMember getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CustomAudienceMember 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.v10.resources.CustomAudienceMember getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy