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

com.google.ads.googleads.v17.services.AudienceCompositionAttributeCluster 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;

/**
 * 
 * A collection of related attributes, with metadata and metrics, in an audience
 * composition insights report.
 * 
* * Protobuf type {@code google.ads.googleads.v17.services.AudienceCompositionAttributeCluster} */ public final class AudienceCompositionAttributeCluster extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v17.services.AudienceCompositionAttributeCluster) AudienceCompositionAttributeClusterOrBuilder { private static final long serialVersionUID = 0L; // Use AudienceCompositionAttributeCluster.newBuilder() to construct. private AudienceCompositionAttributeCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AudienceCompositionAttributeCluster() { clusterDisplayName_ = ""; attributes_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AudienceCompositionAttributeCluster(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v17_services_AudienceCompositionAttributeCluster_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_AudienceCompositionAttributeCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.services.AudienceCompositionAttributeCluster.class, com.google.ads.googleads.v17.services.AudienceCompositionAttributeCluster.Builder.class); } private int bitField0_; public static final int CLUSTER_DISPLAY_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object clusterDisplayName_ = ""; /** *
   * The name of this cluster of attributes
   * 
* * string cluster_display_name = 1; * @return The clusterDisplayName. */ @java.lang.Override public java.lang.String getClusterDisplayName() { java.lang.Object ref = clusterDisplayName_; 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(); clusterDisplayName_ = s; return s; } } /** *
   * The name of this cluster of attributes
   * 
* * string cluster_display_name = 1; * @return The bytes for clusterDisplayName. */ @java.lang.Override public com.google.protobuf.ByteString getClusterDisplayNameBytes() { java.lang.Object ref = clusterDisplayName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clusterDisplayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CLUSTER_METRICS_FIELD_NUMBER = 3; private com.google.ads.googleads.v17.services.AudienceCompositionMetrics clusterMetrics_; /** *
   * If the dimension associated with this cluster is YOUTUBE_CHANNEL, then
   * cluster_metrics are metrics associated with the cluster as a whole.
   * For other dimensions, this field is unset.
   * 
* * .google.ads.googleads.v17.services.AudienceCompositionMetrics cluster_metrics = 3; * @return Whether the clusterMetrics field is set. */ @java.lang.Override public boolean hasClusterMetrics() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * If the dimension associated with this cluster is YOUTUBE_CHANNEL, then
   * cluster_metrics are metrics associated with the cluster as a whole.
   * For other dimensions, this field is unset.
   * 
* * .google.ads.googleads.v17.services.AudienceCompositionMetrics cluster_metrics = 3; * @return The clusterMetrics. */ @java.lang.Override public com.google.ads.googleads.v17.services.AudienceCompositionMetrics getClusterMetrics() { return clusterMetrics_ == null ? com.google.ads.googleads.v17.services.AudienceCompositionMetrics.getDefaultInstance() : clusterMetrics_; } /** *
   * If the dimension associated with this cluster is YOUTUBE_CHANNEL, then
   * cluster_metrics are metrics associated with the cluster as a whole.
   * For other dimensions, this field is unset.
   * 
* * .google.ads.googleads.v17.services.AudienceCompositionMetrics cluster_metrics = 3; */ @java.lang.Override public com.google.ads.googleads.v17.services.AudienceCompositionMetricsOrBuilder getClusterMetricsOrBuilder() { return clusterMetrics_ == null ? com.google.ads.googleads.v17.services.AudienceCompositionMetrics.getDefaultInstance() : clusterMetrics_; } public static final int ATTRIBUTES_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List attributes_; /** *
   * The individual attributes that make up this cluster, with metadata and
   * metrics.
   * 
* * repeated .google.ads.googleads.v17.services.AudienceCompositionAttribute attributes = 4; */ @java.lang.Override public java.util.List getAttributesList() { return attributes_; } /** *
   * The individual attributes that make up this cluster, with metadata and
   * metrics.
   * 
* * repeated .google.ads.googleads.v17.services.AudienceCompositionAttribute attributes = 4; */ @java.lang.Override public java.util.List getAttributesOrBuilderList() { return attributes_; } /** *
   * The individual attributes that make up this cluster, with metadata and
   * metrics.
   * 
* * repeated .google.ads.googleads.v17.services.AudienceCompositionAttribute attributes = 4; */ @java.lang.Override public int getAttributesCount() { return attributes_.size(); } /** *
   * The individual attributes that make up this cluster, with metadata and
   * metrics.
   * 
* * repeated .google.ads.googleads.v17.services.AudienceCompositionAttribute attributes = 4; */ @java.lang.Override public com.google.ads.googleads.v17.services.AudienceCompositionAttribute getAttributes(int index) { return attributes_.get(index); } /** *
   * The individual attributes that make up this cluster, with metadata and
   * metrics.
   * 
* * repeated .google.ads.googleads.v17.services.AudienceCompositionAttribute attributes = 4; */ @java.lang.Override public com.google.ads.googleads.v17.services.AudienceCompositionAttributeOrBuilder getAttributesOrBuilder( int index) { return attributes_.get(index); } 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(clusterDisplayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterDisplayName_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getClusterMetrics()); } for (int i = 0; i < attributes_.size(); i++) { output.writeMessage(4, attributes_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterDisplayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterDisplayName_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getClusterMetrics()); } for (int i = 0; i < attributes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, attributes_.get(i)); } 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.AudienceCompositionAttributeCluster)) { return super.equals(obj); } com.google.ads.googleads.v17.services.AudienceCompositionAttributeCluster other = (com.google.ads.googleads.v17.services.AudienceCompositionAttributeCluster) obj; if (!getClusterDisplayName() .equals(other.getClusterDisplayName())) return false; if (hasClusterMetrics() != other.hasClusterMetrics()) return false; if (hasClusterMetrics()) { if (!getClusterMetrics() .equals(other.getClusterMetrics())) return false; } if (!getAttributesList() .equals(other.getAttributesList())) 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) + CLUSTER_DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getClusterDisplayName().hashCode(); if (hasClusterMetrics()) { hash = (37 * hash) + CLUSTER_METRICS_FIELD_NUMBER; hash = (53 * hash) + getClusterMetrics().hashCode(); } if (getAttributesCount() > 0) { hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; hash = (53 * hash) + getAttributesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v17.services.AudienceCompositionAttributeCluster parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.AudienceCompositionAttributeCluster 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.AudienceCompositionAttributeCluster parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.AudienceCompositionAttributeCluster 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.AudienceCompositionAttributeCluster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.AudienceCompositionAttributeCluster 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.AudienceCompositionAttributeCluster 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.AudienceCompositionAttributeCluster 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.AudienceCompositionAttributeCluster 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.AudienceCompositionAttributeCluster 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.AudienceCompositionAttributeCluster 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.AudienceCompositionAttributeCluster 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.AudienceCompositionAttributeCluster prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * A collection of related attributes, with metadata and metrics, in an audience
   * composition insights report.
   * 
* * Protobuf type {@code google.ads.googleads.v17.services.AudienceCompositionAttributeCluster} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.services.AudienceCompositionAttributeCluster) com.google.ads.googleads.v17.services.AudienceCompositionAttributeClusterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v17_services_AudienceCompositionAttributeCluster_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_AudienceCompositionAttributeCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.services.AudienceCompositionAttributeCluster.class, com.google.ads.googleads.v17.services.AudienceCompositionAttributeCluster.Builder.class); } // Construct using com.google.ads.googleads.v17.services.AudienceCompositionAttributeCluster.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getClusterMetricsFieldBuilder(); getAttributesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; clusterDisplayName_ = ""; clusterMetrics_ = null; if (clusterMetricsBuilder_ != null) { clusterMetricsBuilder_.dispose(); clusterMetricsBuilder_ = null; } if (attributesBuilder_ == null) { attributes_ = java.util.Collections.emptyList(); } else { attributes_ = null; attributesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); 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_AudienceCompositionAttributeCluster_descriptor; } @java.lang.Override public com.google.ads.googleads.v17.services.AudienceCompositionAttributeCluster getDefaultInstanceForType() { return com.google.ads.googleads.v17.services.AudienceCompositionAttributeCluster.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v17.services.AudienceCompositionAttributeCluster build() { com.google.ads.googleads.v17.services.AudienceCompositionAttributeCluster result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v17.services.AudienceCompositionAttributeCluster buildPartial() { com.google.ads.googleads.v17.services.AudienceCompositionAttributeCluster result = new com.google.ads.googleads.v17.services.AudienceCompositionAttributeCluster(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.ads.googleads.v17.services.AudienceCompositionAttributeCluster result) { if (attributesBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { attributes_ = java.util.Collections.unmodifiableList(attributes_); bitField0_ = (bitField0_ & ~0x00000004); } result.attributes_ = attributes_; } else { result.attributes_ = attributesBuilder_.build(); } } private void buildPartial0(com.google.ads.googleads.v17.services.AudienceCompositionAttributeCluster result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.clusterDisplayName_ = clusterDisplayName_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.clusterMetrics_ = clusterMetricsBuilder_ == null ? clusterMetrics_ : clusterMetricsBuilder_.build(); to_bitField0_ |= 0x00000001; } 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.services.AudienceCompositionAttributeCluster) { return mergeFrom((com.google.ads.googleads.v17.services.AudienceCompositionAttributeCluster)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v17.services.AudienceCompositionAttributeCluster other) { if (other == com.google.ads.googleads.v17.services.AudienceCompositionAttributeCluster.getDefaultInstance()) return this; if (!other.getClusterDisplayName().isEmpty()) { clusterDisplayName_ = other.clusterDisplayName_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasClusterMetrics()) { mergeClusterMetrics(other.getClusterMetrics()); } if (attributesBuilder_ == null) { if (!other.attributes_.isEmpty()) { if (attributes_.isEmpty()) { attributes_ = other.attributes_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureAttributesIsMutable(); attributes_.addAll(other.attributes_); } onChanged(); } } else { if (!other.attributes_.isEmpty()) { if (attributesBuilder_.isEmpty()) { attributesBuilder_.dispose(); attributesBuilder_ = null; attributes_ = other.attributes_; bitField0_ = (bitField0_ & ~0x00000004); attributesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAttributesFieldBuilder() : null; } else { attributesBuilder_.addAllMessages(other.attributes_); } } } 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 10: { clusterDisplayName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 26: { input.readMessage( getClusterMetricsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 26 case 34: { com.google.ads.googleads.v17.services.AudienceCompositionAttribute m = input.readMessage( com.google.ads.googleads.v17.services.AudienceCompositionAttribute.parser(), extensionRegistry); if (attributesBuilder_ == null) { ensureAttributesIsMutable(); attributes_.add(m); } else { attributesBuilder_.addMessage(m); } break; } // case 34 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 clusterDisplayName_ = ""; /** *
     * The name of this cluster of attributes
     * 
* * string cluster_display_name = 1; * @return The clusterDisplayName. */ public java.lang.String getClusterDisplayName() { java.lang.Object ref = clusterDisplayName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterDisplayName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The name of this cluster of attributes
     * 
* * string cluster_display_name = 1; * @return The bytes for clusterDisplayName. */ public com.google.protobuf.ByteString getClusterDisplayNameBytes() { java.lang.Object ref = clusterDisplayName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clusterDisplayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The name of this cluster of attributes
     * 
* * string cluster_display_name = 1; * @param value The clusterDisplayName to set. * @return This builder for chaining. */ public Builder setClusterDisplayName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } clusterDisplayName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The name of this cluster of attributes
     * 
* * string cluster_display_name = 1; * @return This builder for chaining. */ public Builder clearClusterDisplayName() { clusterDisplayName_ = getDefaultInstance().getClusterDisplayName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * The name of this cluster of attributes
     * 
* * string cluster_display_name = 1; * @param value The bytes for clusterDisplayName to set. * @return This builder for chaining. */ public Builder setClusterDisplayNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); clusterDisplayName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.ads.googleads.v17.services.AudienceCompositionMetrics clusterMetrics_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.AudienceCompositionMetrics, com.google.ads.googleads.v17.services.AudienceCompositionMetrics.Builder, com.google.ads.googleads.v17.services.AudienceCompositionMetricsOrBuilder> clusterMetricsBuilder_; /** *
     * If the dimension associated with this cluster is YOUTUBE_CHANNEL, then
     * cluster_metrics are metrics associated with the cluster as a whole.
     * For other dimensions, this field is unset.
     * 
* * .google.ads.googleads.v17.services.AudienceCompositionMetrics cluster_metrics = 3; * @return Whether the clusterMetrics field is set. */ public boolean hasClusterMetrics() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * If the dimension associated with this cluster is YOUTUBE_CHANNEL, then
     * cluster_metrics are metrics associated with the cluster as a whole.
     * For other dimensions, this field is unset.
     * 
* * .google.ads.googleads.v17.services.AudienceCompositionMetrics cluster_metrics = 3; * @return The clusterMetrics. */ public com.google.ads.googleads.v17.services.AudienceCompositionMetrics getClusterMetrics() { if (clusterMetricsBuilder_ == null) { return clusterMetrics_ == null ? com.google.ads.googleads.v17.services.AudienceCompositionMetrics.getDefaultInstance() : clusterMetrics_; } else { return clusterMetricsBuilder_.getMessage(); } } /** *
     * If the dimension associated with this cluster is YOUTUBE_CHANNEL, then
     * cluster_metrics are metrics associated with the cluster as a whole.
     * For other dimensions, this field is unset.
     * 
* * .google.ads.googleads.v17.services.AudienceCompositionMetrics cluster_metrics = 3; */ public Builder setClusterMetrics(com.google.ads.googleads.v17.services.AudienceCompositionMetrics value) { if (clusterMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } clusterMetrics_ = value; } else { clusterMetricsBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * If the dimension associated with this cluster is YOUTUBE_CHANNEL, then
     * cluster_metrics are metrics associated with the cluster as a whole.
     * For other dimensions, this field is unset.
     * 
* * .google.ads.googleads.v17.services.AudienceCompositionMetrics cluster_metrics = 3; */ public Builder setClusterMetrics( com.google.ads.googleads.v17.services.AudienceCompositionMetrics.Builder builderForValue) { if (clusterMetricsBuilder_ == null) { clusterMetrics_ = builderForValue.build(); } else { clusterMetricsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * If the dimension associated with this cluster is YOUTUBE_CHANNEL, then
     * cluster_metrics are metrics associated with the cluster as a whole.
     * For other dimensions, this field is unset.
     * 
* * .google.ads.googleads.v17.services.AudienceCompositionMetrics cluster_metrics = 3; */ public Builder mergeClusterMetrics(com.google.ads.googleads.v17.services.AudienceCompositionMetrics value) { if (clusterMetricsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && clusterMetrics_ != null && clusterMetrics_ != com.google.ads.googleads.v17.services.AudienceCompositionMetrics.getDefaultInstance()) { getClusterMetricsBuilder().mergeFrom(value); } else { clusterMetrics_ = value; } } else { clusterMetricsBuilder_.mergeFrom(value); } if (clusterMetrics_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     * If the dimension associated with this cluster is YOUTUBE_CHANNEL, then
     * cluster_metrics are metrics associated with the cluster as a whole.
     * For other dimensions, this field is unset.
     * 
* * .google.ads.googleads.v17.services.AudienceCompositionMetrics cluster_metrics = 3; */ public Builder clearClusterMetrics() { bitField0_ = (bitField0_ & ~0x00000002); clusterMetrics_ = null; if (clusterMetricsBuilder_ != null) { clusterMetricsBuilder_.dispose(); clusterMetricsBuilder_ = null; } onChanged(); return this; } /** *
     * If the dimension associated with this cluster is YOUTUBE_CHANNEL, then
     * cluster_metrics are metrics associated with the cluster as a whole.
     * For other dimensions, this field is unset.
     * 
* * .google.ads.googleads.v17.services.AudienceCompositionMetrics cluster_metrics = 3; */ public com.google.ads.googleads.v17.services.AudienceCompositionMetrics.Builder getClusterMetricsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getClusterMetricsFieldBuilder().getBuilder(); } /** *
     * If the dimension associated with this cluster is YOUTUBE_CHANNEL, then
     * cluster_metrics are metrics associated with the cluster as a whole.
     * For other dimensions, this field is unset.
     * 
* * .google.ads.googleads.v17.services.AudienceCompositionMetrics cluster_metrics = 3; */ public com.google.ads.googleads.v17.services.AudienceCompositionMetricsOrBuilder getClusterMetricsOrBuilder() { if (clusterMetricsBuilder_ != null) { return clusterMetricsBuilder_.getMessageOrBuilder(); } else { return clusterMetrics_ == null ? com.google.ads.googleads.v17.services.AudienceCompositionMetrics.getDefaultInstance() : clusterMetrics_; } } /** *
     * If the dimension associated with this cluster is YOUTUBE_CHANNEL, then
     * cluster_metrics are metrics associated with the cluster as a whole.
     * For other dimensions, this field is unset.
     * 
* * .google.ads.googleads.v17.services.AudienceCompositionMetrics cluster_metrics = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.AudienceCompositionMetrics, com.google.ads.googleads.v17.services.AudienceCompositionMetrics.Builder, com.google.ads.googleads.v17.services.AudienceCompositionMetricsOrBuilder> getClusterMetricsFieldBuilder() { if (clusterMetricsBuilder_ == null) { clusterMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.AudienceCompositionMetrics, com.google.ads.googleads.v17.services.AudienceCompositionMetrics.Builder, com.google.ads.googleads.v17.services.AudienceCompositionMetricsOrBuilder>( getClusterMetrics(), getParentForChildren(), isClean()); clusterMetrics_ = null; } return clusterMetricsBuilder_; } private java.util.List attributes_ = java.util.Collections.emptyList(); private void ensureAttributesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { attributes_ = new java.util.ArrayList(attributes_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.services.AudienceCompositionAttribute, com.google.ads.googleads.v17.services.AudienceCompositionAttribute.Builder, com.google.ads.googleads.v17.services.AudienceCompositionAttributeOrBuilder> attributesBuilder_; /** *
     * The individual attributes that make up this cluster, with metadata and
     * metrics.
     * 
* * repeated .google.ads.googleads.v17.services.AudienceCompositionAttribute attributes = 4; */ public java.util.List getAttributesList() { if (attributesBuilder_ == null) { return java.util.Collections.unmodifiableList(attributes_); } else { return attributesBuilder_.getMessageList(); } } /** *
     * The individual attributes that make up this cluster, with metadata and
     * metrics.
     * 
* * repeated .google.ads.googleads.v17.services.AudienceCompositionAttribute attributes = 4; */ public int getAttributesCount() { if (attributesBuilder_ == null) { return attributes_.size(); } else { return attributesBuilder_.getCount(); } } /** *
     * The individual attributes that make up this cluster, with metadata and
     * metrics.
     * 
* * repeated .google.ads.googleads.v17.services.AudienceCompositionAttribute attributes = 4; */ public com.google.ads.googleads.v17.services.AudienceCompositionAttribute getAttributes(int index) { if (attributesBuilder_ == null) { return attributes_.get(index); } else { return attributesBuilder_.getMessage(index); } } /** *
     * The individual attributes that make up this cluster, with metadata and
     * metrics.
     * 
* * repeated .google.ads.googleads.v17.services.AudienceCompositionAttribute attributes = 4; */ public Builder setAttributes( int index, com.google.ads.googleads.v17.services.AudienceCompositionAttribute value) { if (attributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributesIsMutable(); attributes_.set(index, value); onChanged(); } else { attributesBuilder_.setMessage(index, value); } return this; } /** *
     * The individual attributes that make up this cluster, with metadata and
     * metrics.
     * 
* * repeated .google.ads.googleads.v17.services.AudienceCompositionAttribute attributes = 4; */ public Builder setAttributes( int index, com.google.ads.googleads.v17.services.AudienceCompositionAttribute.Builder builderForValue) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); attributes_.set(index, builderForValue.build()); onChanged(); } else { attributesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * The individual attributes that make up this cluster, with metadata and
     * metrics.
     * 
* * repeated .google.ads.googleads.v17.services.AudienceCompositionAttribute attributes = 4; */ public Builder addAttributes(com.google.ads.googleads.v17.services.AudienceCompositionAttribute value) { if (attributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributesIsMutable(); attributes_.add(value); onChanged(); } else { attributesBuilder_.addMessage(value); } return this; } /** *
     * The individual attributes that make up this cluster, with metadata and
     * metrics.
     * 
* * repeated .google.ads.googleads.v17.services.AudienceCompositionAttribute attributes = 4; */ public Builder addAttributes( int index, com.google.ads.googleads.v17.services.AudienceCompositionAttribute value) { if (attributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributesIsMutable(); attributes_.add(index, value); onChanged(); } else { attributesBuilder_.addMessage(index, value); } return this; } /** *
     * The individual attributes that make up this cluster, with metadata and
     * metrics.
     * 
* * repeated .google.ads.googleads.v17.services.AudienceCompositionAttribute attributes = 4; */ public Builder addAttributes( com.google.ads.googleads.v17.services.AudienceCompositionAttribute.Builder builderForValue) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); attributes_.add(builderForValue.build()); onChanged(); } else { attributesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * The individual attributes that make up this cluster, with metadata and
     * metrics.
     * 
* * repeated .google.ads.googleads.v17.services.AudienceCompositionAttribute attributes = 4; */ public Builder addAttributes( int index, com.google.ads.googleads.v17.services.AudienceCompositionAttribute.Builder builderForValue) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); attributes_.add(index, builderForValue.build()); onChanged(); } else { attributesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * The individual attributes that make up this cluster, with metadata and
     * metrics.
     * 
* * repeated .google.ads.googleads.v17.services.AudienceCompositionAttribute attributes = 4; */ public Builder addAllAttributes( java.lang.Iterable values) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, attributes_); onChanged(); } else { attributesBuilder_.addAllMessages(values); } return this; } /** *
     * The individual attributes that make up this cluster, with metadata and
     * metrics.
     * 
* * repeated .google.ads.googleads.v17.services.AudienceCompositionAttribute attributes = 4; */ public Builder clearAttributes() { if (attributesBuilder_ == null) { attributes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { attributesBuilder_.clear(); } return this; } /** *
     * The individual attributes that make up this cluster, with metadata and
     * metrics.
     * 
* * repeated .google.ads.googleads.v17.services.AudienceCompositionAttribute attributes = 4; */ public Builder removeAttributes(int index) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); attributes_.remove(index); onChanged(); } else { attributesBuilder_.remove(index); } return this; } /** *
     * The individual attributes that make up this cluster, with metadata and
     * metrics.
     * 
* * repeated .google.ads.googleads.v17.services.AudienceCompositionAttribute attributes = 4; */ public com.google.ads.googleads.v17.services.AudienceCompositionAttribute.Builder getAttributesBuilder( int index) { return getAttributesFieldBuilder().getBuilder(index); } /** *
     * The individual attributes that make up this cluster, with metadata and
     * metrics.
     * 
* * repeated .google.ads.googleads.v17.services.AudienceCompositionAttribute attributes = 4; */ public com.google.ads.googleads.v17.services.AudienceCompositionAttributeOrBuilder getAttributesOrBuilder( int index) { if (attributesBuilder_ == null) { return attributes_.get(index); } else { return attributesBuilder_.getMessageOrBuilder(index); } } /** *
     * The individual attributes that make up this cluster, with metadata and
     * metrics.
     * 
* * repeated .google.ads.googleads.v17.services.AudienceCompositionAttribute attributes = 4; */ public java.util.List getAttributesOrBuilderList() { if (attributesBuilder_ != null) { return attributesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(attributes_); } } /** *
     * The individual attributes that make up this cluster, with metadata and
     * metrics.
     * 
* * repeated .google.ads.googleads.v17.services.AudienceCompositionAttribute attributes = 4; */ public com.google.ads.googleads.v17.services.AudienceCompositionAttribute.Builder addAttributesBuilder() { return getAttributesFieldBuilder().addBuilder( com.google.ads.googleads.v17.services.AudienceCompositionAttribute.getDefaultInstance()); } /** *
     * The individual attributes that make up this cluster, with metadata and
     * metrics.
     * 
* * repeated .google.ads.googleads.v17.services.AudienceCompositionAttribute attributes = 4; */ public com.google.ads.googleads.v17.services.AudienceCompositionAttribute.Builder addAttributesBuilder( int index) { return getAttributesFieldBuilder().addBuilder( index, com.google.ads.googleads.v17.services.AudienceCompositionAttribute.getDefaultInstance()); } /** *
     * The individual attributes that make up this cluster, with metadata and
     * metrics.
     * 
* * repeated .google.ads.googleads.v17.services.AudienceCompositionAttribute attributes = 4; */ public java.util.List getAttributesBuilderList() { return getAttributesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.services.AudienceCompositionAttribute, com.google.ads.googleads.v17.services.AudienceCompositionAttribute.Builder, com.google.ads.googleads.v17.services.AudienceCompositionAttributeOrBuilder> getAttributesFieldBuilder() { if (attributesBuilder_ == null) { attributesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.services.AudienceCompositionAttribute, com.google.ads.googleads.v17.services.AudienceCompositionAttribute.Builder, com.google.ads.googleads.v17.services.AudienceCompositionAttributeOrBuilder>( attributes_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); attributes_ = null; } return attributesBuilder_; } @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.AudienceCompositionAttributeCluster) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v17.services.AudienceCompositionAttributeCluster) private static final com.google.ads.googleads.v17.services.AudienceCompositionAttributeCluster DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v17.services.AudienceCompositionAttributeCluster(); } public static com.google.ads.googleads.v17.services.AudienceCompositionAttributeCluster getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AudienceCompositionAttributeCluster 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.AudienceCompositionAttributeCluster getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy