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

com.google.ads.googleads.v17.common.WebpageInfo Maven / Gradle / Ivy

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

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

/**
 * 
 * Represents a criterion for targeting webpages of an advertiser's website.
 * 
* * Protobuf type {@code google.ads.googleads.v17.common.WebpageInfo} */ public final class WebpageInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v17.common.WebpageInfo) WebpageInfoOrBuilder { private static final long serialVersionUID = 0L; // Use WebpageInfo.newBuilder() to construct. private WebpageInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WebpageInfo() { criterionName_ = ""; conditions_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new WebpageInfo(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.common.CriteriaProto.internal_static_google_ads_googleads_v17_common_WebpageInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.common.CriteriaProto.internal_static_google_ads_googleads_v17_common_WebpageInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.common.WebpageInfo.class, com.google.ads.googleads.v17.common.WebpageInfo.Builder.class); } private int bitField0_; public static final int CRITERION_NAME_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object criterionName_ = ""; /** *
   * The name of the criterion that is defined by this parameter. The name value
   * will be used for identifying, sorting and filtering criteria with this type
   * of parameters.
   *
   * This field is required for CREATE operations and is prohibited on UPDATE
   * operations.
   * 
* * optional string criterion_name = 3; * @return Whether the criterionName field is set. */ @java.lang.Override public boolean hasCriterionName() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * The name of the criterion that is defined by this parameter. The name value
   * will be used for identifying, sorting and filtering criteria with this type
   * of parameters.
   *
   * This field is required for CREATE operations and is prohibited on UPDATE
   * operations.
   * 
* * optional string criterion_name = 3; * @return The criterionName. */ @java.lang.Override public java.lang.String getCriterionName() { java.lang.Object ref = criterionName_; 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(); criterionName_ = s; return s; } } /** *
   * The name of the criterion that is defined by this parameter. The name value
   * will be used for identifying, sorting and filtering criteria with this type
   * of parameters.
   *
   * This field is required for CREATE operations and is prohibited on UPDATE
   * operations.
   * 
* * optional string criterion_name = 3; * @return The bytes for criterionName. */ @java.lang.Override public com.google.protobuf.ByteString getCriterionNameBytes() { java.lang.Object ref = criterionName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); criterionName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONDITIONS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List conditions_; /** *
   * Conditions, or logical expressions, for webpage targeting. The list of
   * webpage targeting conditions are and-ed together when evaluated
   * for targeting. An empty list of conditions indicates all pages of the
   * campaign's website are targeted.
   *
   * This field is required for CREATE operations and is prohibited on UPDATE
   * operations.
   * 
* * repeated .google.ads.googleads.v17.common.WebpageConditionInfo conditions = 2; */ @java.lang.Override public java.util.List getConditionsList() { return conditions_; } /** *
   * Conditions, or logical expressions, for webpage targeting. The list of
   * webpage targeting conditions are and-ed together when evaluated
   * for targeting. An empty list of conditions indicates all pages of the
   * campaign's website are targeted.
   *
   * This field is required for CREATE operations and is prohibited on UPDATE
   * operations.
   * 
* * repeated .google.ads.googleads.v17.common.WebpageConditionInfo conditions = 2; */ @java.lang.Override public java.util.List getConditionsOrBuilderList() { return conditions_; } /** *
   * Conditions, or logical expressions, for webpage targeting. The list of
   * webpage targeting conditions are and-ed together when evaluated
   * for targeting. An empty list of conditions indicates all pages of the
   * campaign's website are targeted.
   *
   * This field is required for CREATE operations and is prohibited on UPDATE
   * operations.
   * 
* * repeated .google.ads.googleads.v17.common.WebpageConditionInfo conditions = 2; */ @java.lang.Override public int getConditionsCount() { return conditions_.size(); } /** *
   * Conditions, or logical expressions, for webpage targeting. The list of
   * webpage targeting conditions are and-ed together when evaluated
   * for targeting. An empty list of conditions indicates all pages of the
   * campaign's website are targeted.
   *
   * This field is required for CREATE operations and is prohibited on UPDATE
   * operations.
   * 
* * repeated .google.ads.googleads.v17.common.WebpageConditionInfo conditions = 2; */ @java.lang.Override public com.google.ads.googleads.v17.common.WebpageConditionInfo getConditions(int index) { return conditions_.get(index); } /** *
   * Conditions, or logical expressions, for webpage targeting. The list of
   * webpage targeting conditions are and-ed together when evaluated
   * for targeting. An empty list of conditions indicates all pages of the
   * campaign's website are targeted.
   *
   * This field is required for CREATE operations and is prohibited on UPDATE
   * operations.
   * 
* * repeated .google.ads.googleads.v17.common.WebpageConditionInfo conditions = 2; */ @java.lang.Override public com.google.ads.googleads.v17.common.WebpageConditionInfoOrBuilder getConditionsOrBuilder( int index) { return conditions_.get(index); } public static final int COVERAGE_PERCENTAGE_FIELD_NUMBER = 4; private double coveragePercentage_ = 0D; /** *
   * Website criteria coverage percentage. This is the computed percentage
   * of website coverage based on the website target, negative website target
   * and negative keywords in the ad group and campaign. For instance, when
   * coverage returns as 1, it indicates it has 100% coverage. This field is
   * read-only.
   * 
* * double coverage_percentage = 4; * @return The coveragePercentage. */ @java.lang.Override public double getCoveragePercentage() { return coveragePercentage_; } public static final int SAMPLE_FIELD_NUMBER = 5; private com.google.ads.googleads.v17.common.WebpageSampleInfo sample_; /** *
   * List of sample urls that match the website target. This field is read-only.
   * 
* * .google.ads.googleads.v17.common.WebpageSampleInfo sample = 5; * @return Whether the sample field is set. */ @java.lang.Override public boolean hasSample() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * List of sample urls that match the website target. This field is read-only.
   * 
* * .google.ads.googleads.v17.common.WebpageSampleInfo sample = 5; * @return The sample. */ @java.lang.Override public com.google.ads.googleads.v17.common.WebpageSampleInfo getSample() { return sample_ == null ? com.google.ads.googleads.v17.common.WebpageSampleInfo.getDefaultInstance() : sample_; } /** *
   * List of sample urls that match the website target. This field is read-only.
   * 
* * .google.ads.googleads.v17.common.WebpageSampleInfo sample = 5; */ @java.lang.Override public com.google.ads.googleads.v17.common.WebpageSampleInfoOrBuilder getSampleOrBuilder() { return sample_ == null ? com.google.ads.googleads.v17.common.WebpageSampleInfo.getDefaultInstance() : sample_; } 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 { for (int i = 0; i < conditions_.size(); i++) { output.writeMessage(2, conditions_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, criterionName_); } if (java.lang.Double.doubleToRawLongBits(coveragePercentage_) != 0) { output.writeDouble(4, coveragePercentage_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(5, getSample()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < conditions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, conditions_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, criterionName_); } if (java.lang.Double.doubleToRawLongBits(coveragePercentage_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(4, coveragePercentage_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getSample()); } 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.common.WebpageInfo)) { return super.equals(obj); } com.google.ads.googleads.v17.common.WebpageInfo other = (com.google.ads.googleads.v17.common.WebpageInfo) obj; if (hasCriterionName() != other.hasCriterionName()) return false; if (hasCriterionName()) { if (!getCriterionName() .equals(other.getCriterionName())) return false; } if (!getConditionsList() .equals(other.getConditionsList())) return false; if (java.lang.Double.doubleToLongBits(getCoveragePercentage()) != java.lang.Double.doubleToLongBits( other.getCoveragePercentage())) return false; if (hasSample() != other.hasSample()) return false; if (hasSample()) { if (!getSample() .equals(other.getSample())) return false; } 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(); if (hasCriterionName()) { hash = (37 * hash) + CRITERION_NAME_FIELD_NUMBER; hash = (53 * hash) + getCriterionName().hashCode(); } if (getConditionsCount() > 0) { hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; hash = (53 * hash) + getConditionsList().hashCode(); } hash = (37 * hash) + COVERAGE_PERCENTAGE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getCoveragePercentage())); if (hasSample()) { hash = (37 * hash) + SAMPLE_FIELD_NUMBER; hash = (53 * hash) + getSample().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v17.common.WebpageInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.WebpageInfo 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.common.WebpageInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.WebpageInfo 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.common.WebpageInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.WebpageInfo 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.common.WebpageInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.common.WebpageInfo 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.common.WebpageInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.common.WebpageInfo 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.common.WebpageInfo 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.common.WebpageInfo 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.common.WebpageInfo 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; } /** *
   * Represents a criterion for targeting webpages of an advertiser's website.
   * 
* * Protobuf type {@code google.ads.googleads.v17.common.WebpageInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.common.WebpageInfo) com.google.ads.googleads.v17.common.WebpageInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.common.CriteriaProto.internal_static_google_ads_googleads_v17_common_WebpageInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.common.CriteriaProto.internal_static_google_ads_googleads_v17_common_WebpageInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.common.WebpageInfo.class, com.google.ads.googleads.v17.common.WebpageInfo.Builder.class); } // Construct using com.google.ads.googleads.v17.common.WebpageInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getConditionsFieldBuilder(); getSampleFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; criterionName_ = ""; if (conditionsBuilder_ == null) { conditions_ = java.util.Collections.emptyList(); } else { conditions_ = null; conditionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); coveragePercentage_ = 0D; sample_ = null; if (sampleBuilder_ != null) { sampleBuilder_.dispose(); sampleBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v17.common.CriteriaProto.internal_static_google_ads_googleads_v17_common_WebpageInfo_descriptor; } @java.lang.Override public com.google.ads.googleads.v17.common.WebpageInfo getDefaultInstanceForType() { return com.google.ads.googleads.v17.common.WebpageInfo.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v17.common.WebpageInfo build() { com.google.ads.googleads.v17.common.WebpageInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v17.common.WebpageInfo buildPartial() { com.google.ads.googleads.v17.common.WebpageInfo result = new com.google.ads.googleads.v17.common.WebpageInfo(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.ads.googleads.v17.common.WebpageInfo result) { if (conditionsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { conditions_ = java.util.Collections.unmodifiableList(conditions_); bitField0_ = (bitField0_ & ~0x00000002); } result.conditions_ = conditions_; } else { result.conditions_ = conditionsBuilder_.build(); } } private void buildPartial0(com.google.ads.googleads.v17.common.WebpageInfo result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.criterionName_ = criterionName_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.coveragePercentage_ = coveragePercentage_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.sample_ = sampleBuilder_ == null ? sample_ : sampleBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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.common.WebpageInfo) { return mergeFrom((com.google.ads.googleads.v17.common.WebpageInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v17.common.WebpageInfo other) { if (other == com.google.ads.googleads.v17.common.WebpageInfo.getDefaultInstance()) return this; if (other.hasCriterionName()) { criterionName_ = other.criterionName_; bitField0_ |= 0x00000001; onChanged(); } if (conditionsBuilder_ == null) { if (!other.conditions_.isEmpty()) { if (conditions_.isEmpty()) { conditions_ = other.conditions_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureConditionsIsMutable(); conditions_.addAll(other.conditions_); } onChanged(); } } else { if (!other.conditions_.isEmpty()) { if (conditionsBuilder_.isEmpty()) { conditionsBuilder_.dispose(); conditionsBuilder_ = null; conditions_ = other.conditions_; bitField0_ = (bitField0_ & ~0x00000002); conditionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getConditionsFieldBuilder() : null; } else { conditionsBuilder_.addAllMessages(other.conditions_); } } } if (other.getCoveragePercentage() != 0D) { setCoveragePercentage(other.getCoveragePercentage()); } if (other.hasSample()) { mergeSample(other.getSample()); } 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 18: { com.google.ads.googleads.v17.common.WebpageConditionInfo m = input.readMessage( com.google.ads.googleads.v17.common.WebpageConditionInfo.parser(), extensionRegistry); if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(m); } else { conditionsBuilder_.addMessage(m); } break; } // case 18 case 26: { criterionName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 26 case 33: { coveragePercentage_ = input.readDouble(); bitField0_ |= 0x00000004; break; } // case 33 case 42: { input.readMessage( getSampleFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; 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 bitField0_; private java.lang.Object criterionName_ = ""; /** *
     * The name of the criterion that is defined by this parameter. The name value
     * will be used for identifying, sorting and filtering criteria with this type
     * of parameters.
     *
     * This field is required for CREATE operations and is prohibited on UPDATE
     * operations.
     * 
* * optional string criterion_name = 3; * @return Whether the criterionName field is set. */ public boolean hasCriterionName() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The name of the criterion that is defined by this parameter. The name value
     * will be used for identifying, sorting and filtering criteria with this type
     * of parameters.
     *
     * This field is required for CREATE operations and is prohibited on UPDATE
     * operations.
     * 
* * optional string criterion_name = 3; * @return The criterionName. */ public java.lang.String getCriterionName() { java.lang.Object ref = criterionName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); criterionName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The name of the criterion that is defined by this parameter. The name value
     * will be used for identifying, sorting and filtering criteria with this type
     * of parameters.
     *
     * This field is required for CREATE operations and is prohibited on UPDATE
     * operations.
     * 
* * optional string criterion_name = 3; * @return The bytes for criterionName. */ public com.google.protobuf.ByteString getCriterionNameBytes() { java.lang.Object ref = criterionName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); criterionName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The name of the criterion that is defined by this parameter. The name value
     * will be used for identifying, sorting and filtering criteria with this type
     * of parameters.
     *
     * This field is required for CREATE operations and is prohibited on UPDATE
     * operations.
     * 
* * optional string criterion_name = 3; * @param value The criterionName to set. * @return This builder for chaining. */ public Builder setCriterionName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } criterionName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The name of the criterion that is defined by this parameter. The name value
     * will be used for identifying, sorting and filtering criteria with this type
     * of parameters.
     *
     * This field is required for CREATE operations and is prohibited on UPDATE
     * operations.
     * 
* * optional string criterion_name = 3; * @return This builder for chaining. */ public Builder clearCriterionName() { criterionName_ = getDefaultInstance().getCriterionName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * The name of the criterion that is defined by this parameter. The name value
     * will be used for identifying, sorting and filtering criteria with this type
     * of parameters.
     *
     * This field is required for CREATE operations and is prohibited on UPDATE
     * operations.
     * 
* * optional string criterion_name = 3; * @param value The bytes for criterionName to set. * @return This builder for chaining. */ public Builder setCriterionNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); criterionName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.util.List conditions_ = java.util.Collections.emptyList(); private void ensureConditionsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { conditions_ = new java.util.ArrayList(conditions_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.common.WebpageConditionInfo, com.google.ads.googleads.v17.common.WebpageConditionInfo.Builder, com.google.ads.googleads.v17.common.WebpageConditionInfoOrBuilder> conditionsBuilder_; /** *
     * Conditions, or logical expressions, for webpage targeting. The list of
     * webpage targeting conditions are and-ed together when evaluated
     * for targeting. An empty list of conditions indicates all pages of the
     * campaign's website are targeted.
     *
     * This field is required for CREATE operations and is prohibited on UPDATE
     * operations.
     * 
* * repeated .google.ads.googleads.v17.common.WebpageConditionInfo conditions = 2; */ public java.util.List getConditionsList() { if (conditionsBuilder_ == null) { return java.util.Collections.unmodifiableList(conditions_); } else { return conditionsBuilder_.getMessageList(); } } /** *
     * Conditions, or logical expressions, for webpage targeting. The list of
     * webpage targeting conditions are and-ed together when evaluated
     * for targeting. An empty list of conditions indicates all pages of the
     * campaign's website are targeted.
     *
     * This field is required for CREATE operations and is prohibited on UPDATE
     * operations.
     * 
* * repeated .google.ads.googleads.v17.common.WebpageConditionInfo conditions = 2; */ public int getConditionsCount() { if (conditionsBuilder_ == null) { return conditions_.size(); } else { return conditionsBuilder_.getCount(); } } /** *
     * Conditions, or logical expressions, for webpage targeting. The list of
     * webpage targeting conditions are and-ed together when evaluated
     * for targeting. An empty list of conditions indicates all pages of the
     * campaign's website are targeted.
     *
     * This field is required for CREATE operations and is prohibited on UPDATE
     * operations.
     * 
* * repeated .google.ads.googleads.v17.common.WebpageConditionInfo conditions = 2; */ public com.google.ads.googleads.v17.common.WebpageConditionInfo getConditions(int index) { if (conditionsBuilder_ == null) { return conditions_.get(index); } else { return conditionsBuilder_.getMessage(index); } } /** *
     * Conditions, or logical expressions, for webpage targeting. The list of
     * webpage targeting conditions are and-ed together when evaluated
     * for targeting. An empty list of conditions indicates all pages of the
     * campaign's website are targeted.
     *
     * This field is required for CREATE operations and is prohibited on UPDATE
     * operations.
     * 
* * repeated .google.ads.googleads.v17.common.WebpageConditionInfo conditions = 2; */ public Builder setConditions( int index, com.google.ads.googleads.v17.common.WebpageConditionInfo value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConditionsIsMutable(); conditions_.set(index, value); onChanged(); } else { conditionsBuilder_.setMessage(index, value); } return this; } /** *
     * Conditions, or logical expressions, for webpage targeting. The list of
     * webpage targeting conditions are and-ed together when evaluated
     * for targeting. An empty list of conditions indicates all pages of the
     * campaign's website are targeted.
     *
     * This field is required for CREATE operations and is prohibited on UPDATE
     * operations.
     * 
* * repeated .google.ads.googleads.v17.common.WebpageConditionInfo conditions = 2; */ public Builder setConditions( int index, com.google.ads.googleads.v17.common.WebpageConditionInfo.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.set(index, builderForValue.build()); onChanged(); } else { conditionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Conditions, or logical expressions, for webpage targeting. The list of
     * webpage targeting conditions are and-ed together when evaluated
     * for targeting. An empty list of conditions indicates all pages of the
     * campaign's website are targeted.
     *
     * This field is required for CREATE operations and is prohibited on UPDATE
     * operations.
     * 
* * repeated .google.ads.googleads.v17.common.WebpageConditionInfo conditions = 2; */ public Builder addConditions(com.google.ads.googleads.v17.common.WebpageConditionInfo value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConditionsIsMutable(); conditions_.add(value); onChanged(); } else { conditionsBuilder_.addMessage(value); } return this; } /** *
     * Conditions, or logical expressions, for webpage targeting. The list of
     * webpage targeting conditions are and-ed together when evaluated
     * for targeting. An empty list of conditions indicates all pages of the
     * campaign's website are targeted.
     *
     * This field is required for CREATE operations and is prohibited on UPDATE
     * operations.
     * 
* * repeated .google.ads.googleads.v17.common.WebpageConditionInfo conditions = 2; */ public Builder addConditions( int index, com.google.ads.googleads.v17.common.WebpageConditionInfo value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConditionsIsMutable(); conditions_.add(index, value); onChanged(); } else { conditionsBuilder_.addMessage(index, value); } return this; } /** *
     * Conditions, or logical expressions, for webpage targeting. The list of
     * webpage targeting conditions are and-ed together when evaluated
     * for targeting. An empty list of conditions indicates all pages of the
     * campaign's website are targeted.
     *
     * This field is required for CREATE operations and is prohibited on UPDATE
     * operations.
     * 
* * repeated .google.ads.googleads.v17.common.WebpageConditionInfo conditions = 2; */ public Builder addConditions( com.google.ads.googleads.v17.common.WebpageConditionInfo.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(builderForValue.build()); onChanged(); } else { conditionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Conditions, or logical expressions, for webpage targeting. The list of
     * webpage targeting conditions are and-ed together when evaluated
     * for targeting. An empty list of conditions indicates all pages of the
     * campaign's website are targeted.
     *
     * This field is required for CREATE operations and is prohibited on UPDATE
     * operations.
     * 
* * repeated .google.ads.googleads.v17.common.WebpageConditionInfo conditions = 2; */ public Builder addConditions( int index, com.google.ads.googleads.v17.common.WebpageConditionInfo.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(index, builderForValue.build()); onChanged(); } else { conditionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Conditions, or logical expressions, for webpage targeting. The list of
     * webpage targeting conditions are and-ed together when evaluated
     * for targeting. An empty list of conditions indicates all pages of the
     * campaign's website are targeted.
     *
     * This field is required for CREATE operations and is prohibited on UPDATE
     * operations.
     * 
* * repeated .google.ads.googleads.v17.common.WebpageConditionInfo conditions = 2; */ public Builder addAllConditions( java.lang.Iterable values) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, conditions_); onChanged(); } else { conditionsBuilder_.addAllMessages(values); } return this; } /** *
     * Conditions, or logical expressions, for webpage targeting. The list of
     * webpage targeting conditions are and-ed together when evaluated
     * for targeting. An empty list of conditions indicates all pages of the
     * campaign's website are targeted.
     *
     * This field is required for CREATE operations and is prohibited on UPDATE
     * operations.
     * 
* * repeated .google.ads.googleads.v17.common.WebpageConditionInfo conditions = 2; */ public Builder clearConditions() { if (conditionsBuilder_ == null) { conditions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { conditionsBuilder_.clear(); } return this; } /** *
     * Conditions, or logical expressions, for webpage targeting. The list of
     * webpage targeting conditions are and-ed together when evaluated
     * for targeting. An empty list of conditions indicates all pages of the
     * campaign's website are targeted.
     *
     * This field is required for CREATE operations and is prohibited on UPDATE
     * operations.
     * 
* * repeated .google.ads.googleads.v17.common.WebpageConditionInfo conditions = 2; */ public Builder removeConditions(int index) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.remove(index); onChanged(); } else { conditionsBuilder_.remove(index); } return this; } /** *
     * Conditions, or logical expressions, for webpage targeting. The list of
     * webpage targeting conditions are and-ed together when evaluated
     * for targeting. An empty list of conditions indicates all pages of the
     * campaign's website are targeted.
     *
     * This field is required for CREATE operations and is prohibited on UPDATE
     * operations.
     * 
* * repeated .google.ads.googleads.v17.common.WebpageConditionInfo conditions = 2; */ public com.google.ads.googleads.v17.common.WebpageConditionInfo.Builder getConditionsBuilder( int index) { return getConditionsFieldBuilder().getBuilder(index); } /** *
     * Conditions, or logical expressions, for webpage targeting. The list of
     * webpage targeting conditions are and-ed together when evaluated
     * for targeting. An empty list of conditions indicates all pages of the
     * campaign's website are targeted.
     *
     * This field is required for CREATE operations and is prohibited on UPDATE
     * operations.
     * 
* * repeated .google.ads.googleads.v17.common.WebpageConditionInfo conditions = 2; */ public com.google.ads.googleads.v17.common.WebpageConditionInfoOrBuilder getConditionsOrBuilder( int index) { if (conditionsBuilder_ == null) { return conditions_.get(index); } else { return conditionsBuilder_.getMessageOrBuilder(index); } } /** *
     * Conditions, or logical expressions, for webpage targeting. The list of
     * webpage targeting conditions are and-ed together when evaluated
     * for targeting. An empty list of conditions indicates all pages of the
     * campaign's website are targeted.
     *
     * This field is required for CREATE operations and is prohibited on UPDATE
     * operations.
     * 
* * repeated .google.ads.googleads.v17.common.WebpageConditionInfo conditions = 2; */ public java.util.List getConditionsOrBuilderList() { if (conditionsBuilder_ != null) { return conditionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(conditions_); } } /** *
     * Conditions, or logical expressions, for webpage targeting. The list of
     * webpage targeting conditions are and-ed together when evaluated
     * for targeting. An empty list of conditions indicates all pages of the
     * campaign's website are targeted.
     *
     * This field is required for CREATE operations and is prohibited on UPDATE
     * operations.
     * 
* * repeated .google.ads.googleads.v17.common.WebpageConditionInfo conditions = 2; */ public com.google.ads.googleads.v17.common.WebpageConditionInfo.Builder addConditionsBuilder() { return getConditionsFieldBuilder().addBuilder( com.google.ads.googleads.v17.common.WebpageConditionInfo.getDefaultInstance()); } /** *
     * Conditions, or logical expressions, for webpage targeting. The list of
     * webpage targeting conditions are and-ed together when evaluated
     * for targeting. An empty list of conditions indicates all pages of the
     * campaign's website are targeted.
     *
     * This field is required for CREATE operations and is prohibited on UPDATE
     * operations.
     * 
* * repeated .google.ads.googleads.v17.common.WebpageConditionInfo conditions = 2; */ public com.google.ads.googleads.v17.common.WebpageConditionInfo.Builder addConditionsBuilder( int index) { return getConditionsFieldBuilder().addBuilder( index, com.google.ads.googleads.v17.common.WebpageConditionInfo.getDefaultInstance()); } /** *
     * Conditions, or logical expressions, for webpage targeting. The list of
     * webpage targeting conditions are and-ed together when evaluated
     * for targeting. An empty list of conditions indicates all pages of the
     * campaign's website are targeted.
     *
     * This field is required for CREATE operations and is prohibited on UPDATE
     * operations.
     * 
* * repeated .google.ads.googleads.v17.common.WebpageConditionInfo conditions = 2; */ public java.util.List getConditionsBuilderList() { return getConditionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.common.WebpageConditionInfo, com.google.ads.googleads.v17.common.WebpageConditionInfo.Builder, com.google.ads.googleads.v17.common.WebpageConditionInfoOrBuilder> getConditionsFieldBuilder() { if (conditionsBuilder_ == null) { conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.common.WebpageConditionInfo, com.google.ads.googleads.v17.common.WebpageConditionInfo.Builder, com.google.ads.googleads.v17.common.WebpageConditionInfoOrBuilder>( conditions_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); conditions_ = null; } return conditionsBuilder_; } private double coveragePercentage_ ; /** *
     * Website criteria coverage percentage. This is the computed percentage
     * of website coverage based on the website target, negative website target
     * and negative keywords in the ad group and campaign. For instance, when
     * coverage returns as 1, it indicates it has 100% coverage. This field is
     * read-only.
     * 
* * double coverage_percentage = 4; * @return The coveragePercentage. */ @java.lang.Override public double getCoveragePercentage() { return coveragePercentage_; } /** *
     * Website criteria coverage percentage. This is the computed percentage
     * of website coverage based on the website target, negative website target
     * and negative keywords in the ad group and campaign. For instance, when
     * coverage returns as 1, it indicates it has 100% coverage. This field is
     * read-only.
     * 
* * double coverage_percentage = 4; * @param value The coveragePercentage to set. * @return This builder for chaining. */ public Builder setCoveragePercentage(double value) { coveragePercentage_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Website criteria coverage percentage. This is the computed percentage
     * of website coverage based on the website target, negative website target
     * and negative keywords in the ad group and campaign. For instance, when
     * coverage returns as 1, it indicates it has 100% coverage. This field is
     * read-only.
     * 
* * double coverage_percentage = 4; * @return This builder for chaining. */ public Builder clearCoveragePercentage() { bitField0_ = (bitField0_ & ~0x00000004); coveragePercentage_ = 0D; onChanged(); return this; } private com.google.ads.googleads.v17.common.WebpageSampleInfo sample_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.WebpageSampleInfo, com.google.ads.googleads.v17.common.WebpageSampleInfo.Builder, com.google.ads.googleads.v17.common.WebpageSampleInfoOrBuilder> sampleBuilder_; /** *
     * List of sample urls that match the website target. This field is read-only.
     * 
* * .google.ads.googleads.v17.common.WebpageSampleInfo sample = 5; * @return Whether the sample field is set. */ public boolean hasSample() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * List of sample urls that match the website target. This field is read-only.
     * 
* * .google.ads.googleads.v17.common.WebpageSampleInfo sample = 5; * @return The sample. */ public com.google.ads.googleads.v17.common.WebpageSampleInfo getSample() { if (sampleBuilder_ == null) { return sample_ == null ? com.google.ads.googleads.v17.common.WebpageSampleInfo.getDefaultInstance() : sample_; } else { return sampleBuilder_.getMessage(); } } /** *
     * List of sample urls that match the website target. This field is read-only.
     * 
* * .google.ads.googleads.v17.common.WebpageSampleInfo sample = 5; */ public Builder setSample(com.google.ads.googleads.v17.common.WebpageSampleInfo value) { if (sampleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sample_ = value; } else { sampleBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * List of sample urls that match the website target. This field is read-only.
     * 
* * .google.ads.googleads.v17.common.WebpageSampleInfo sample = 5; */ public Builder setSample( com.google.ads.googleads.v17.common.WebpageSampleInfo.Builder builderForValue) { if (sampleBuilder_ == null) { sample_ = builderForValue.build(); } else { sampleBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * List of sample urls that match the website target. This field is read-only.
     * 
* * .google.ads.googleads.v17.common.WebpageSampleInfo sample = 5; */ public Builder mergeSample(com.google.ads.googleads.v17.common.WebpageSampleInfo value) { if (sampleBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && sample_ != null && sample_ != com.google.ads.googleads.v17.common.WebpageSampleInfo.getDefaultInstance()) { getSampleBuilder().mergeFrom(value); } else { sample_ = value; } } else { sampleBuilder_.mergeFrom(value); } if (sample_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
     * List of sample urls that match the website target. This field is read-only.
     * 
* * .google.ads.googleads.v17.common.WebpageSampleInfo sample = 5; */ public Builder clearSample() { bitField0_ = (bitField0_ & ~0x00000008); sample_ = null; if (sampleBuilder_ != null) { sampleBuilder_.dispose(); sampleBuilder_ = null; } onChanged(); return this; } /** *
     * List of sample urls that match the website target. This field is read-only.
     * 
* * .google.ads.googleads.v17.common.WebpageSampleInfo sample = 5; */ public com.google.ads.googleads.v17.common.WebpageSampleInfo.Builder getSampleBuilder() { bitField0_ |= 0x00000008; onChanged(); return getSampleFieldBuilder().getBuilder(); } /** *
     * List of sample urls that match the website target. This field is read-only.
     * 
* * .google.ads.googleads.v17.common.WebpageSampleInfo sample = 5; */ public com.google.ads.googleads.v17.common.WebpageSampleInfoOrBuilder getSampleOrBuilder() { if (sampleBuilder_ != null) { return sampleBuilder_.getMessageOrBuilder(); } else { return sample_ == null ? com.google.ads.googleads.v17.common.WebpageSampleInfo.getDefaultInstance() : sample_; } } /** *
     * List of sample urls that match the website target. This field is read-only.
     * 
* * .google.ads.googleads.v17.common.WebpageSampleInfo sample = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.WebpageSampleInfo, com.google.ads.googleads.v17.common.WebpageSampleInfo.Builder, com.google.ads.googleads.v17.common.WebpageSampleInfoOrBuilder> getSampleFieldBuilder() { if (sampleBuilder_ == null) { sampleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.WebpageSampleInfo, com.google.ads.googleads.v17.common.WebpageSampleInfo.Builder, com.google.ads.googleads.v17.common.WebpageSampleInfoOrBuilder>( getSample(), getParentForChildren(), isClean()); sample_ = null; } return sampleBuilder_; } @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.common.WebpageInfo) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v17.common.WebpageInfo) private static final com.google.ads.googleads.v17.common.WebpageInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v17.common.WebpageInfo(); } public static com.google.ads.googleads.v17.common.WebpageInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public WebpageInfo 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.common.WebpageInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy