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

com.google.ads.googleads.v9.resources.CustomConversionGoal Maven / Gradle / Ivy

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

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

/**
 * 
 * Custom conversion goal that can make arbitrary conversion actions biddable.
 * 
* * Protobuf type {@code google.ads.googleads.v9.resources.CustomConversionGoal} */ public final class CustomConversionGoal extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v9.resources.CustomConversionGoal) CustomConversionGoalOrBuilder { private static final long serialVersionUID = 0L; // Use CustomConversionGoal.newBuilder() to construct. private CustomConversionGoal(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CustomConversionGoal() { resourceName_ = ""; name_ = ""; conversionActions_ = com.google.protobuf.LazyStringArrayList.EMPTY; status_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CustomConversionGoal(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CustomConversionGoal( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); resourceName_ = s; break; } case 16: { id_ = input.readInt64(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { conversionActions_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } conversionActions_.add(s); break; } case 40: { int rawValue = input.readEnum(); status_ = rawValue; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { conversionActions_ = conversionActions_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v9.resources.CustomConversionGoalProto.internal_static_google_ads_googleads_v9_resources_CustomConversionGoal_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v9.resources.CustomConversionGoalProto.internal_static_google_ads_googleads_v9_resources_CustomConversionGoal_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v9.resources.CustomConversionGoal.class, com.google.ads.googleads.v9.resources.CustomConversionGoal.Builder.class); } public static final int RESOURCE_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object resourceName_; /** *
   * Immutable. The resource name of the custom conversion goal.
   * Custom conversion goal resource names have the form:
   * `customers/{customer_id}/customConversionGoals/{goal_id}`
   * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The resourceName. */ @java.lang.Override public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } } /** *
   * Immutable. The resource name of the custom conversion goal.
   * Custom conversion goal resource names have the form:
   * `customers/{customer_id}/customConversionGoals/{goal_id}`
   * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for resourceName. */ @java.lang.Override public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); resourceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ID_FIELD_NUMBER = 2; private long id_; /** *
   * Immutable. The ID for this custom conversion goal.
   * 
* * int64 id = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @return The id. */ @java.lang.Override public long getId() { return id_; } public static final int NAME_FIELD_NUMBER = 3; private volatile java.lang.Object name_; /** *
   * The name for this custom conversion goal.
   * 
* * string name = 3; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** *
   * The name for this custom conversion goal.
   * 
* * string name = 3; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONVERSION_ACTIONS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList conversionActions_; /** *
   * Conversion actions that the custom conversion goal makes biddable.
   * 
* * repeated string conversion_actions = 4 [(.google.api.resource_reference) = { ... } * @return A list containing the conversionActions. */ public com.google.protobuf.ProtocolStringList getConversionActionsList() { return conversionActions_; } /** *
   * Conversion actions that the custom conversion goal makes biddable.
   * 
* * repeated string conversion_actions = 4 [(.google.api.resource_reference) = { ... } * @return The count of conversionActions. */ public int getConversionActionsCount() { return conversionActions_.size(); } /** *
   * Conversion actions that the custom conversion goal makes biddable.
   * 
* * repeated string conversion_actions = 4 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The conversionActions at the given index. */ public java.lang.String getConversionActions(int index) { return conversionActions_.get(index); } /** *
   * Conversion actions that the custom conversion goal makes biddable.
   * 
* * repeated string conversion_actions = 4 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the conversionActions at the given index. */ public com.google.protobuf.ByteString getConversionActionsBytes(int index) { return conversionActions_.getByteString(index); } public static final int STATUS_FIELD_NUMBER = 5; private int status_; /** *
   * The status of the custom conversion goal.
   * 
* * .google.ads.googleads.v9.enums.CustomConversionGoalStatusEnum.CustomConversionGoalStatus status = 5; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
   * The status of the custom conversion goal.
   * 
* * .google.ads.googleads.v9.enums.CustomConversionGoalStatusEnum.CustomConversionGoalStatus status = 5; * @return The status. */ @java.lang.Override public com.google.ads.googleads.v9.enums.CustomConversionGoalStatusEnum.CustomConversionGoalStatus getStatus() { @SuppressWarnings("deprecation") com.google.ads.googleads.v9.enums.CustomConversionGoalStatusEnum.CustomConversionGoalStatus result = com.google.ads.googleads.v9.enums.CustomConversionGoalStatusEnum.CustomConversionGoalStatus.valueOf(status_); return result == null ? com.google.ads.googleads.v9.enums.CustomConversionGoalStatusEnum.CustomConversionGoalStatus.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_); } if (id_ != 0L) { output.writeInt64(2, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } for (int i = 0; i < conversionActions_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, conversionActions_.getRaw(i)); } if (status_ != com.google.ads.googleads.v9.enums.CustomConversionGoalStatusEnum.CustomConversionGoalStatus.UNSPECIFIED.getNumber()) { output.writeEnum(5, status_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_); } if (id_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } { int dataSize = 0; for (int i = 0; i < conversionActions_.size(); i++) { dataSize += computeStringSizeNoTag(conversionActions_.getRaw(i)); } size += dataSize; size += 1 * getConversionActionsList().size(); } if (status_ != com.google.ads.googleads.v9.enums.CustomConversionGoalStatusEnum.CustomConversionGoalStatus.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, status_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.ads.googleads.v9.resources.CustomConversionGoal)) { return super.equals(obj); } com.google.ads.googleads.v9.resources.CustomConversionGoal other = (com.google.ads.googleads.v9.resources.CustomConversionGoal) obj; if (!getResourceName() .equals(other.getResourceName())) return false; if (getId() != other.getId()) return false; if (!getName() .equals(other.getName())) return false; if (!getConversionActionsList() .equals(other.getConversionActionsList())) return false; if (status_ != other.status_) return false; if (!unknownFields.equals(other.unknownFields)) 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) + RESOURCE_NAME_FIELD_NUMBER; hash = (53 * hash) + getResourceName().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getId()); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (getConversionActionsCount() > 0) { hash = (37 * hash) + CONVERSION_ACTIONS_FIELD_NUMBER; hash = (53 * hash) + getConversionActionsList().hashCode(); } hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v9.resources.CustomConversionGoal parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v9.resources.CustomConversionGoal 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.v9.resources.CustomConversionGoal parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v9.resources.CustomConversionGoal 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.v9.resources.CustomConversionGoal parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v9.resources.CustomConversionGoal parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v9.resources.CustomConversionGoal parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v9.resources.CustomConversionGoal 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.v9.resources.CustomConversionGoal parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v9.resources.CustomConversionGoal 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.v9.resources.CustomConversionGoal parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v9.resources.CustomConversionGoal 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.v9.resources.CustomConversionGoal 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; } /** *
   * Custom conversion goal that can make arbitrary conversion actions biddable.
   * 
* * Protobuf type {@code google.ads.googleads.v9.resources.CustomConversionGoal} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v9.resources.CustomConversionGoal) com.google.ads.googleads.v9.resources.CustomConversionGoalOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v9.resources.CustomConversionGoalProto.internal_static_google_ads_googleads_v9_resources_CustomConversionGoal_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v9.resources.CustomConversionGoalProto.internal_static_google_ads_googleads_v9_resources_CustomConversionGoal_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v9.resources.CustomConversionGoal.class, com.google.ads.googleads.v9.resources.CustomConversionGoal.Builder.class); } // Construct using com.google.ads.googleads.v9.resources.CustomConversionGoal.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); resourceName_ = ""; id_ = 0L; name_ = ""; conversionActions_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); status_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v9.resources.CustomConversionGoalProto.internal_static_google_ads_googleads_v9_resources_CustomConversionGoal_descriptor; } @java.lang.Override public com.google.ads.googleads.v9.resources.CustomConversionGoal getDefaultInstanceForType() { return com.google.ads.googleads.v9.resources.CustomConversionGoal.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v9.resources.CustomConversionGoal build() { com.google.ads.googleads.v9.resources.CustomConversionGoal result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v9.resources.CustomConversionGoal buildPartial() { com.google.ads.googleads.v9.resources.CustomConversionGoal result = new com.google.ads.googleads.v9.resources.CustomConversionGoal(this); int from_bitField0_ = bitField0_; result.resourceName_ = resourceName_; result.id_ = id_; result.name_ = name_; if (((bitField0_ & 0x00000001) != 0)) { conversionActions_ = conversionActions_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.conversionActions_ = conversionActions_; result.status_ = status_; 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.v9.resources.CustomConversionGoal) { return mergeFrom((com.google.ads.googleads.v9.resources.CustomConversionGoal)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v9.resources.CustomConversionGoal other) { if (other == com.google.ads.googleads.v9.resources.CustomConversionGoal.getDefaultInstance()) return this; if (!other.getResourceName().isEmpty()) { resourceName_ = other.resourceName_; onChanged(); } if (other.getId() != 0L) { setId(other.getId()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.conversionActions_.isEmpty()) { if (conversionActions_.isEmpty()) { conversionActions_ = other.conversionActions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureConversionActionsIsMutable(); conversionActions_.addAll(other.conversionActions_); } onChanged(); } if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.ads.googleads.v9.resources.CustomConversionGoal parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.ads.googleads.v9.resources.CustomConversionGoal) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object resourceName_ = ""; /** *
     * Immutable. The resource name of the custom conversion goal.
     * Custom conversion goal resource names have the form:
     * `customers/{customer_id}/customConversionGoals/{goal_id}`
     * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Immutable. The resource name of the custom conversion goal.
     * Custom conversion goal resource names have the form:
     * `customers/{customer_id}/customConversionGoals/{goal_id}`
     * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for resourceName. */ public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); resourceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Immutable. The resource name of the custom conversion goal.
     * Custom conversion goal resource names have the form:
     * `customers/{customer_id}/customConversionGoals/{goal_id}`
     * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The resourceName to set. * @return This builder for chaining. */ public Builder setResourceName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } resourceName_ = value; onChanged(); return this; } /** *
     * Immutable. The resource name of the custom conversion goal.
     * Custom conversion goal resource names have the form:
     * `customers/{customer_id}/customConversionGoals/{goal_id}`
     * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearResourceName() { resourceName_ = getDefaultInstance().getResourceName(); onChanged(); return this; } /** *
     * Immutable. The resource name of the custom conversion goal.
     * Custom conversion goal resource names have the form:
     * `customers/{customer_id}/customConversionGoals/{goal_id}`
     * 
* * string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The bytes for resourceName to set. * @return This builder for chaining. */ public Builder setResourceNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); resourceName_ = value; onChanged(); return this; } private long id_ ; /** *
     * Immutable. The ID for this custom conversion goal.
     * 
* * int64 id = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @return The id. */ @java.lang.Override public long getId() { return id_; } /** *
     * Immutable. The ID for this custom conversion goal.
     * 
* * int64 id = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The id to set. * @return This builder for chaining. */ public Builder setId(long value) { id_ = value; onChanged(); return this; } /** *
     * Immutable. The ID for this custom conversion goal.
     * 
* * int64 id = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearId() { id_ = 0L; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
     * The name for this custom conversion goal.
     * 
* * string name = 3; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The name for this custom conversion goal.
     * 
* * string name = 3; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The name for this custom conversion goal.
     * 
* * string name = 3; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
     * The name for this custom conversion goal.
     * 
* * string name = 3; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
     * The name for this custom conversion goal.
     * 
* * string name = 3; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList conversionActions_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureConversionActionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { conversionActions_ = new com.google.protobuf.LazyStringArrayList(conversionActions_); bitField0_ |= 0x00000001; } } /** *
     * Conversion actions that the custom conversion goal makes biddable.
     * 
* * repeated string conversion_actions = 4 [(.google.api.resource_reference) = { ... } * @return A list containing the conversionActions. */ public com.google.protobuf.ProtocolStringList getConversionActionsList() { return conversionActions_.getUnmodifiableView(); } /** *
     * Conversion actions that the custom conversion goal makes biddable.
     * 
* * repeated string conversion_actions = 4 [(.google.api.resource_reference) = { ... } * @return The count of conversionActions. */ public int getConversionActionsCount() { return conversionActions_.size(); } /** *
     * Conversion actions that the custom conversion goal makes biddable.
     * 
* * repeated string conversion_actions = 4 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The conversionActions at the given index. */ public java.lang.String getConversionActions(int index) { return conversionActions_.get(index); } /** *
     * Conversion actions that the custom conversion goal makes biddable.
     * 
* * repeated string conversion_actions = 4 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the conversionActions at the given index. */ public com.google.protobuf.ByteString getConversionActionsBytes(int index) { return conversionActions_.getByteString(index); } /** *
     * Conversion actions that the custom conversion goal makes biddable.
     * 
* * repeated string conversion_actions = 4 [(.google.api.resource_reference) = { ... } * @param index The index to set the value at. * @param value The conversionActions to set. * @return This builder for chaining. */ public Builder setConversionActions( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureConversionActionsIsMutable(); conversionActions_.set(index, value); onChanged(); return this; } /** *
     * Conversion actions that the custom conversion goal makes biddable.
     * 
* * repeated string conversion_actions = 4 [(.google.api.resource_reference) = { ... } * @param value The conversionActions to add. * @return This builder for chaining. */ public Builder addConversionActions( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureConversionActionsIsMutable(); conversionActions_.add(value); onChanged(); return this; } /** *
     * Conversion actions that the custom conversion goal makes biddable.
     * 
* * repeated string conversion_actions = 4 [(.google.api.resource_reference) = { ... } * @param values The conversionActions to add. * @return This builder for chaining. */ public Builder addAllConversionActions( java.lang.Iterable values) { ensureConversionActionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, conversionActions_); onChanged(); return this; } /** *
     * Conversion actions that the custom conversion goal makes biddable.
     * 
* * repeated string conversion_actions = 4 [(.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearConversionActions() { conversionActions_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * Conversion actions that the custom conversion goal makes biddable.
     * 
* * repeated string conversion_actions = 4 [(.google.api.resource_reference) = { ... } * @param value The bytes of the conversionActions to add. * @return This builder for chaining. */ public Builder addConversionActionsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureConversionActionsIsMutable(); conversionActions_.add(value); onChanged(); return this; } private int status_ = 0; /** *
     * The status of the custom conversion goal.
     * 
* * .google.ads.googleads.v9.enums.CustomConversionGoalStatusEnum.CustomConversionGoalStatus status = 5; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
     * The status of the custom conversion goal.
     * 
* * .google.ads.googleads.v9.enums.CustomConversionGoalStatusEnum.CustomConversionGoalStatus status = 5; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { status_ = value; onChanged(); return this; } /** *
     * The status of the custom conversion goal.
     * 
* * .google.ads.googleads.v9.enums.CustomConversionGoalStatusEnum.CustomConversionGoalStatus status = 5; * @return The status. */ @java.lang.Override public com.google.ads.googleads.v9.enums.CustomConversionGoalStatusEnum.CustomConversionGoalStatus getStatus() { @SuppressWarnings("deprecation") com.google.ads.googleads.v9.enums.CustomConversionGoalStatusEnum.CustomConversionGoalStatus result = com.google.ads.googleads.v9.enums.CustomConversionGoalStatusEnum.CustomConversionGoalStatus.valueOf(status_); return result == null ? com.google.ads.googleads.v9.enums.CustomConversionGoalStatusEnum.CustomConversionGoalStatus.UNRECOGNIZED : result; } /** *
     * The status of the custom conversion goal.
     * 
* * .google.ads.googleads.v9.enums.CustomConversionGoalStatusEnum.CustomConversionGoalStatus status = 5; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(com.google.ads.googleads.v9.enums.CustomConversionGoalStatusEnum.CustomConversionGoalStatus value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** *
     * The status of the custom conversion goal.
     * 
* * .google.ads.googleads.v9.enums.CustomConversionGoalStatusEnum.CustomConversionGoalStatus status = 5; * @return This builder for chaining. */ public Builder clearStatus() { status_ = 0; 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.v9.resources.CustomConversionGoal) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v9.resources.CustomConversionGoal) private static final com.google.ads.googleads.v9.resources.CustomConversionGoal DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v9.resources.CustomConversionGoal(); } public static com.google.ads.googleads.v9.resources.CustomConversionGoal getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CustomConversionGoal parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CustomConversionGoal(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.ads.googleads.v9.resources.CustomConversionGoal getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy