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

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

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

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

/**
 * 
 * The share and index metrics associated with an attribute in an audience
 * composition insights report.
 * 
* * Protobuf type {@code google.ads.googleads.v17.services.AudienceCompositionMetrics} */ public final class AudienceCompositionMetrics extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v17.services.AudienceCompositionMetrics) AudienceCompositionMetricsOrBuilder { private static final long serialVersionUID = 0L; // Use AudienceCompositionMetrics.newBuilder() to construct. private AudienceCompositionMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AudienceCompositionMetrics() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AudienceCompositionMetrics(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v17_services_AudienceCompositionMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v17_services_AudienceCompositionMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.services.AudienceCompositionMetrics.class, com.google.ads.googleads.v17.services.AudienceCompositionMetrics.Builder.class); } public static final int BASELINE_AUDIENCE_SHARE_FIELD_NUMBER = 1; private double baselineAudienceShare_ = 0D; /** *
   * The fraction (from 0 to 1 inclusive) of the baseline audience that match
   * the attribute.
   * 
* * double baseline_audience_share = 1; * @return The baselineAudienceShare. */ @java.lang.Override public double getBaselineAudienceShare() { return baselineAudienceShare_; } public static final int AUDIENCE_SHARE_FIELD_NUMBER = 2; private double audienceShare_ = 0D; /** *
   * The fraction (from 0 to 1 inclusive) of the specific audience that match
   * the attribute.
   * 
* * double audience_share = 2; * @return The audienceShare. */ @java.lang.Override public double getAudienceShare() { return audienceShare_; } public static final int INDEX_FIELD_NUMBER = 3; private double index_ = 0D; /** *
   * The ratio of audience_share to baseline_audience_share, or zero if this
   * ratio is undefined or is not meaningful.
   * 
* * double index = 3; * @return The index. */ @java.lang.Override public double getIndex() { return index_; } public static final int SCORE_FIELD_NUMBER = 4; private double score_ = 0D; /** *
   * A relevance score from 0 to 1 inclusive.
   * 
* * double score = 4; * @return The score. */ @java.lang.Override public double getScore() { return score_; } 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 (java.lang.Double.doubleToRawLongBits(baselineAudienceShare_) != 0) { output.writeDouble(1, baselineAudienceShare_); } if (java.lang.Double.doubleToRawLongBits(audienceShare_) != 0) { output.writeDouble(2, audienceShare_); } if (java.lang.Double.doubleToRawLongBits(index_) != 0) { output.writeDouble(3, index_); } if (java.lang.Double.doubleToRawLongBits(score_) != 0) { output.writeDouble(4, score_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (java.lang.Double.doubleToRawLongBits(baselineAudienceShare_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(1, baselineAudienceShare_); } if (java.lang.Double.doubleToRawLongBits(audienceShare_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, audienceShare_); } if (java.lang.Double.doubleToRawLongBits(index_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(3, index_); } if (java.lang.Double.doubleToRawLongBits(score_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(4, score_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.ads.googleads.v17.services.AudienceCompositionMetrics)) { return super.equals(obj); } com.google.ads.googleads.v17.services.AudienceCompositionMetrics other = (com.google.ads.googleads.v17.services.AudienceCompositionMetrics) obj; if (java.lang.Double.doubleToLongBits(getBaselineAudienceShare()) != java.lang.Double.doubleToLongBits( other.getBaselineAudienceShare())) return false; if (java.lang.Double.doubleToLongBits(getAudienceShare()) != java.lang.Double.doubleToLongBits( other.getAudienceShare())) return false; if (java.lang.Double.doubleToLongBits(getIndex()) != java.lang.Double.doubleToLongBits( other.getIndex())) return false; if (java.lang.Double.doubleToLongBits(getScore()) != java.lang.Double.doubleToLongBits( other.getScore())) 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(); hash = (37 * hash) + BASELINE_AUDIENCE_SHARE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getBaselineAudienceShare())); hash = (37 * hash) + AUDIENCE_SHARE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getAudienceShare())); hash = (37 * hash) + INDEX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getIndex())); hash = (37 * hash) + SCORE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getScore())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v17.services.AudienceCompositionMetrics parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.AudienceCompositionMetrics parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v17.services.AudienceCompositionMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.AudienceCompositionMetrics parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v17.services.AudienceCompositionMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.AudienceCompositionMetrics parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v17.services.AudienceCompositionMetrics parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.services.AudienceCompositionMetrics parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v17.services.AudienceCompositionMetrics parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.services.AudienceCompositionMetrics parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v17.services.AudienceCompositionMetrics parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.services.AudienceCompositionMetrics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.ads.googleads.v17.services.AudienceCompositionMetrics 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; } /** *
   * The share and index metrics associated with an attribute in an audience
   * composition insights report.
   * 
* * Protobuf type {@code google.ads.googleads.v17.services.AudienceCompositionMetrics} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.services.AudienceCompositionMetrics) com.google.ads.googleads.v17.services.AudienceCompositionMetricsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v17_services_AudienceCompositionMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v17_services_AudienceCompositionMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.services.AudienceCompositionMetrics.class, com.google.ads.googleads.v17.services.AudienceCompositionMetrics.Builder.class); } // Construct using com.google.ads.googleads.v17.services.AudienceCompositionMetrics.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; baselineAudienceShare_ = 0D; audienceShare_ = 0D; index_ = 0D; score_ = 0D; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v17.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v17_services_AudienceCompositionMetrics_descriptor; } @java.lang.Override public com.google.ads.googleads.v17.services.AudienceCompositionMetrics getDefaultInstanceForType() { return com.google.ads.googleads.v17.services.AudienceCompositionMetrics.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v17.services.AudienceCompositionMetrics build() { com.google.ads.googleads.v17.services.AudienceCompositionMetrics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v17.services.AudienceCompositionMetrics buildPartial() { com.google.ads.googleads.v17.services.AudienceCompositionMetrics result = new com.google.ads.googleads.v17.services.AudienceCompositionMetrics(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v17.services.AudienceCompositionMetrics result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.baselineAudienceShare_ = baselineAudienceShare_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.audienceShare_ = audienceShare_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.index_ = index_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.score_ = score_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v17.services.AudienceCompositionMetrics) { return mergeFrom((com.google.ads.googleads.v17.services.AudienceCompositionMetrics)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v17.services.AudienceCompositionMetrics other) { if (other == com.google.ads.googleads.v17.services.AudienceCompositionMetrics.getDefaultInstance()) return this; if (other.getBaselineAudienceShare() != 0D) { setBaselineAudienceShare(other.getBaselineAudienceShare()); } if (other.getAudienceShare() != 0D) { setAudienceShare(other.getAudienceShare()); } if (other.getIndex() != 0D) { setIndex(other.getIndex()); } if (other.getScore() != 0D) { setScore(other.getScore()); } 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 9: { baselineAudienceShare_ = input.readDouble(); bitField0_ |= 0x00000001; break; } // case 9 case 17: { audienceShare_ = input.readDouble(); bitField0_ |= 0x00000002; break; } // case 17 case 25: { index_ = input.readDouble(); bitField0_ |= 0x00000004; break; } // case 25 case 33: { score_ = input.readDouble(); bitField0_ |= 0x00000008; break; } // case 33 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 double baselineAudienceShare_ ; /** *
     * The fraction (from 0 to 1 inclusive) of the baseline audience that match
     * the attribute.
     * 
* * double baseline_audience_share = 1; * @return The baselineAudienceShare. */ @java.lang.Override public double getBaselineAudienceShare() { return baselineAudienceShare_; } /** *
     * The fraction (from 0 to 1 inclusive) of the baseline audience that match
     * the attribute.
     * 
* * double baseline_audience_share = 1; * @param value The baselineAudienceShare to set. * @return This builder for chaining. */ public Builder setBaselineAudienceShare(double value) { baselineAudienceShare_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The fraction (from 0 to 1 inclusive) of the baseline audience that match
     * the attribute.
     * 
* * double baseline_audience_share = 1; * @return This builder for chaining. */ public Builder clearBaselineAudienceShare() { bitField0_ = (bitField0_ & ~0x00000001); baselineAudienceShare_ = 0D; onChanged(); return this; } private double audienceShare_ ; /** *
     * The fraction (from 0 to 1 inclusive) of the specific audience that match
     * the attribute.
     * 
* * double audience_share = 2; * @return The audienceShare. */ @java.lang.Override public double getAudienceShare() { return audienceShare_; } /** *
     * The fraction (from 0 to 1 inclusive) of the specific audience that match
     * the attribute.
     * 
* * double audience_share = 2; * @param value The audienceShare to set. * @return This builder for chaining. */ public Builder setAudienceShare(double value) { audienceShare_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The fraction (from 0 to 1 inclusive) of the specific audience that match
     * the attribute.
     * 
* * double audience_share = 2; * @return This builder for chaining. */ public Builder clearAudienceShare() { bitField0_ = (bitField0_ & ~0x00000002); audienceShare_ = 0D; onChanged(); return this; } private double index_ ; /** *
     * The ratio of audience_share to baseline_audience_share, or zero if this
     * ratio is undefined or is not meaningful.
     * 
* * double index = 3; * @return The index. */ @java.lang.Override public double getIndex() { return index_; } /** *
     * The ratio of audience_share to baseline_audience_share, or zero if this
     * ratio is undefined or is not meaningful.
     * 
* * double index = 3; * @param value The index to set. * @return This builder for chaining. */ public Builder setIndex(double value) { index_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The ratio of audience_share to baseline_audience_share, or zero if this
     * ratio is undefined or is not meaningful.
     * 
* * double index = 3; * @return This builder for chaining. */ public Builder clearIndex() { bitField0_ = (bitField0_ & ~0x00000004); index_ = 0D; onChanged(); return this; } private double score_ ; /** *
     * A relevance score from 0 to 1 inclusive.
     * 
* * double score = 4; * @return The score. */ @java.lang.Override public double getScore() { return score_; } /** *
     * A relevance score from 0 to 1 inclusive.
     * 
* * double score = 4; * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(double value) { score_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * A relevance score from 0 to 1 inclusive.
     * 
* * double score = 4; * @return This builder for chaining. */ public Builder clearScore() { bitField0_ = (bitField0_ & ~0x00000008); score_ = 0D; 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.v17.services.AudienceCompositionMetrics) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v17.services.AudienceCompositionMetrics) private static final com.google.ads.googleads.v17.services.AudienceCompositionMetrics DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v17.services.AudienceCompositionMetrics(); } public static com.google.ads.googleads.v17.services.AudienceCompositionMetrics getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AudienceCompositionMetrics parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.ads.googleads.v17.services.AudienceCompositionMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy