com.google.ads.googleads.v17.services.AudienceCompositionAttribute Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v17 Show documentation
Show all versions of google-ads-stubs-v17 Show documentation
Stubs for GAAPI version google-ads-stubs-v17
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;
/**
*
* An audience attribute with metadata and metrics.
*
*
* Protobuf type {@code google.ads.googleads.v17.services.AudienceCompositionAttribute}
*/
public final class AudienceCompositionAttribute extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.services.AudienceCompositionAttribute)
AudienceCompositionAttributeOrBuilder {
private static final long serialVersionUID = 0L;
// Use AudienceCompositionAttribute.newBuilder() to construct.
private AudienceCompositionAttribute(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AudienceCompositionAttribute() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AudienceCompositionAttribute();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v17_services_AudienceCompositionAttribute_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_AudienceCompositionAttribute_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.services.AudienceCompositionAttribute.class, com.google.ads.googleads.v17.services.AudienceCompositionAttribute.Builder.class);
}
private int bitField0_;
public static final int ATTRIBUTE_METADATA_FIELD_NUMBER = 1;
private com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata attributeMetadata_;
/**
*
* The attribute with its metadata.
*
*
* .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata attribute_metadata = 1;
* @return Whether the attributeMetadata field is set.
*/
@java.lang.Override
public boolean hasAttributeMetadata() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The attribute with its metadata.
*
*
* .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata attribute_metadata = 1;
* @return The attributeMetadata.
*/
@java.lang.Override
public com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata getAttributeMetadata() {
return attributeMetadata_ == null ? com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata.getDefaultInstance() : attributeMetadata_;
}
/**
*
* The attribute with its metadata.
*
*
* .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata attribute_metadata = 1;
*/
@java.lang.Override
public com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadataOrBuilder getAttributeMetadataOrBuilder() {
return attributeMetadata_ == null ? com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata.getDefaultInstance() : attributeMetadata_;
}
public static final int METRICS_FIELD_NUMBER = 2;
private com.google.ads.googleads.v17.services.AudienceCompositionMetrics metrics_;
/**
*
* Share and index metrics for the attribute.
*
*
* .google.ads.googleads.v17.services.AudienceCompositionMetrics metrics = 2;
* @return Whether the metrics field is set.
*/
@java.lang.Override
public boolean hasMetrics() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Share and index metrics for the attribute.
*
*
* .google.ads.googleads.v17.services.AudienceCompositionMetrics metrics = 2;
* @return The metrics.
*/
@java.lang.Override
public com.google.ads.googleads.v17.services.AudienceCompositionMetrics getMetrics() {
return metrics_ == null ? com.google.ads.googleads.v17.services.AudienceCompositionMetrics.getDefaultInstance() : metrics_;
}
/**
*
* Share and index metrics for the attribute.
*
*
* .google.ads.googleads.v17.services.AudienceCompositionMetrics metrics = 2;
*/
@java.lang.Override
public com.google.ads.googleads.v17.services.AudienceCompositionMetricsOrBuilder getMetricsOrBuilder() {
return metrics_ == null ? com.google.ads.googleads.v17.services.AudienceCompositionMetrics.getDefaultInstance() : metrics_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getAttributeMetadata());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getMetrics());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getAttributeMetadata());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getMetrics());
}
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.AudienceCompositionAttribute)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.services.AudienceCompositionAttribute other = (com.google.ads.googleads.v17.services.AudienceCompositionAttribute) obj;
if (hasAttributeMetadata() != other.hasAttributeMetadata()) return false;
if (hasAttributeMetadata()) {
if (!getAttributeMetadata()
.equals(other.getAttributeMetadata())) return false;
}
if (hasMetrics() != other.hasMetrics()) return false;
if (hasMetrics()) {
if (!getMetrics()
.equals(other.getMetrics())) 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 (hasAttributeMetadata()) {
hash = (37 * hash) + ATTRIBUTE_METADATA_FIELD_NUMBER;
hash = (53 * hash) + getAttributeMetadata().hashCode();
}
if (hasMetrics()) {
hash = (37 * hash) + METRICS_FIELD_NUMBER;
hash = (53 * hash) + getMetrics().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.services.AudienceCompositionAttribute parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.services.AudienceCompositionAttribute 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.AudienceCompositionAttribute parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.services.AudienceCompositionAttribute 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.AudienceCompositionAttribute parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.services.AudienceCompositionAttribute 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.AudienceCompositionAttribute 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.AudienceCompositionAttribute 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.AudienceCompositionAttribute 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.AudienceCompositionAttribute 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.AudienceCompositionAttribute 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.AudienceCompositionAttribute 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.AudienceCompositionAttribute 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;
}
/**
*
* An audience attribute with metadata and metrics.
*
*
* Protobuf type {@code google.ads.googleads.v17.services.AudienceCompositionAttribute}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.services.AudienceCompositionAttribute)
com.google.ads.googleads.v17.services.AudienceCompositionAttributeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v17_services_AudienceCompositionAttribute_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_AudienceCompositionAttribute_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.services.AudienceCompositionAttribute.class, com.google.ads.googleads.v17.services.AudienceCompositionAttribute.Builder.class);
}
// Construct using com.google.ads.googleads.v17.services.AudienceCompositionAttribute.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAttributeMetadataFieldBuilder();
getMetricsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
attributeMetadata_ = null;
if (attributeMetadataBuilder_ != null) {
attributeMetadataBuilder_.dispose();
attributeMetadataBuilder_ = null;
}
metrics_ = null;
if (metricsBuilder_ != null) {
metricsBuilder_.dispose();
metricsBuilder_ = null;
}
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_AudienceCompositionAttribute_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.services.AudienceCompositionAttribute getDefaultInstanceForType() {
return com.google.ads.googleads.v17.services.AudienceCompositionAttribute.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.services.AudienceCompositionAttribute build() {
com.google.ads.googleads.v17.services.AudienceCompositionAttribute result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.services.AudienceCompositionAttribute buildPartial() {
com.google.ads.googleads.v17.services.AudienceCompositionAttribute result = new com.google.ads.googleads.v17.services.AudienceCompositionAttribute(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v17.services.AudienceCompositionAttribute result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.attributeMetadata_ = attributeMetadataBuilder_ == null
? attributeMetadata_
: attributeMetadataBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.metrics_ = metricsBuilder_ == null
? metrics_
: metricsBuilder_.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.services.AudienceCompositionAttribute) {
return mergeFrom((com.google.ads.googleads.v17.services.AudienceCompositionAttribute)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.services.AudienceCompositionAttribute other) {
if (other == com.google.ads.googleads.v17.services.AudienceCompositionAttribute.getDefaultInstance()) return this;
if (other.hasAttributeMetadata()) {
mergeAttributeMetadata(other.getAttributeMetadata());
}
if (other.hasMetrics()) {
mergeMetrics(other.getMetrics());
}
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: {
input.readMessage(
getAttributeMetadataFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getMetricsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
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 com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata attributeMetadata_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata, com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata.Builder, com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadataOrBuilder> attributeMetadataBuilder_;
/**
*
* The attribute with its metadata.
*
*
* .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata attribute_metadata = 1;
* @return Whether the attributeMetadata field is set.
*/
public boolean hasAttributeMetadata() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The attribute with its metadata.
*
*
* .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata attribute_metadata = 1;
* @return The attributeMetadata.
*/
public com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata getAttributeMetadata() {
if (attributeMetadataBuilder_ == null) {
return attributeMetadata_ == null ? com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata.getDefaultInstance() : attributeMetadata_;
} else {
return attributeMetadataBuilder_.getMessage();
}
}
/**
*
* The attribute with its metadata.
*
*
* .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata attribute_metadata = 1;
*/
public Builder setAttributeMetadata(com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata value) {
if (attributeMetadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
attributeMetadata_ = value;
} else {
attributeMetadataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The attribute with its metadata.
*
*
* .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata attribute_metadata = 1;
*/
public Builder setAttributeMetadata(
com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata.Builder builderForValue) {
if (attributeMetadataBuilder_ == null) {
attributeMetadata_ = builderForValue.build();
} else {
attributeMetadataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The attribute with its metadata.
*
*
* .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata attribute_metadata = 1;
*/
public Builder mergeAttributeMetadata(com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata value) {
if (attributeMetadataBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
attributeMetadata_ != null &&
attributeMetadata_ != com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata.getDefaultInstance()) {
getAttributeMetadataBuilder().mergeFrom(value);
} else {
attributeMetadata_ = value;
}
} else {
attributeMetadataBuilder_.mergeFrom(value);
}
if (attributeMetadata_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* The attribute with its metadata.
*
*
* .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata attribute_metadata = 1;
*/
public Builder clearAttributeMetadata() {
bitField0_ = (bitField0_ & ~0x00000001);
attributeMetadata_ = null;
if (attributeMetadataBuilder_ != null) {
attributeMetadataBuilder_.dispose();
attributeMetadataBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The attribute with its metadata.
*
*
* .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata attribute_metadata = 1;
*/
public com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata.Builder getAttributeMetadataBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getAttributeMetadataFieldBuilder().getBuilder();
}
/**
*
* The attribute with its metadata.
*
*
* .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata attribute_metadata = 1;
*/
public com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadataOrBuilder getAttributeMetadataOrBuilder() {
if (attributeMetadataBuilder_ != null) {
return attributeMetadataBuilder_.getMessageOrBuilder();
} else {
return attributeMetadata_ == null ?
com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata.getDefaultInstance() : attributeMetadata_;
}
}
/**
*
* The attribute with its metadata.
*
*
* .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata attribute_metadata = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata, com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata.Builder, com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadataOrBuilder>
getAttributeMetadataFieldBuilder() {
if (attributeMetadataBuilder_ == null) {
attributeMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata, com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata.Builder, com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadataOrBuilder>(
getAttributeMetadata(),
getParentForChildren(),
isClean());
attributeMetadata_ = null;
}
return attributeMetadataBuilder_;
}
private com.google.ads.googleads.v17.services.AudienceCompositionMetrics metrics_;
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> metricsBuilder_;
/**
*
* Share and index metrics for the attribute.
*
*
* .google.ads.googleads.v17.services.AudienceCompositionMetrics metrics = 2;
* @return Whether the metrics field is set.
*/
public boolean hasMetrics() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Share and index metrics for the attribute.
*
*
* .google.ads.googleads.v17.services.AudienceCompositionMetrics metrics = 2;
* @return The metrics.
*/
public com.google.ads.googleads.v17.services.AudienceCompositionMetrics getMetrics() {
if (metricsBuilder_ == null) {
return metrics_ == null ? com.google.ads.googleads.v17.services.AudienceCompositionMetrics.getDefaultInstance() : metrics_;
} else {
return metricsBuilder_.getMessage();
}
}
/**
*
* Share and index metrics for the attribute.
*
*
* .google.ads.googleads.v17.services.AudienceCompositionMetrics metrics = 2;
*/
public Builder setMetrics(com.google.ads.googleads.v17.services.AudienceCompositionMetrics value) {
if (metricsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metrics_ = value;
} else {
metricsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Share and index metrics for the attribute.
*
*
* .google.ads.googleads.v17.services.AudienceCompositionMetrics metrics = 2;
*/
public Builder setMetrics(
com.google.ads.googleads.v17.services.AudienceCompositionMetrics.Builder builderForValue) {
if (metricsBuilder_ == null) {
metrics_ = builderForValue.build();
} else {
metricsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Share and index metrics for the attribute.
*
*
* .google.ads.googleads.v17.services.AudienceCompositionMetrics metrics = 2;
*/
public Builder mergeMetrics(com.google.ads.googleads.v17.services.AudienceCompositionMetrics value) {
if (metricsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
metrics_ != null &&
metrics_ != com.google.ads.googleads.v17.services.AudienceCompositionMetrics.getDefaultInstance()) {
getMetricsBuilder().mergeFrom(value);
} else {
metrics_ = value;
}
} else {
metricsBuilder_.mergeFrom(value);
}
if (metrics_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* Share and index metrics for the attribute.
*
*
* .google.ads.googleads.v17.services.AudienceCompositionMetrics metrics = 2;
*/
public Builder clearMetrics() {
bitField0_ = (bitField0_ & ~0x00000002);
metrics_ = null;
if (metricsBuilder_ != null) {
metricsBuilder_.dispose();
metricsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Share and index metrics for the attribute.
*
*
* .google.ads.googleads.v17.services.AudienceCompositionMetrics metrics = 2;
*/
public com.google.ads.googleads.v17.services.AudienceCompositionMetrics.Builder getMetricsBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getMetricsFieldBuilder().getBuilder();
}
/**
*
* Share and index metrics for the attribute.
*
*
* .google.ads.googleads.v17.services.AudienceCompositionMetrics metrics = 2;
*/
public com.google.ads.googleads.v17.services.AudienceCompositionMetricsOrBuilder getMetricsOrBuilder() {
if (metricsBuilder_ != null) {
return metricsBuilder_.getMessageOrBuilder();
} else {
return metrics_ == null ?
com.google.ads.googleads.v17.services.AudienceCompositionMetrics.getDefaultInstance() : metrics_;
}
}
/**
*
* Share and index metrics for the attribute.
*
*
* .google.ads.googleads.v17.services.AudienceCompositionMetrics metrics = 2;
*/
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>
getMetricsFieldBuilder() {
if (metricsBuilder_ == null) {
metricsBuilder_ = 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>(
getMetrics(),
getParentForChildren(),
isClean());
metrics_ = null;
}
return metricsBuilder_;
}
@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.AudienceCompositionAttribute)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.services.AudienceCompositionAttribute)
private static final com.google.ads.googleads.v17.services.AudienceCompositionAttribute DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.services.AudienceCompositionAttribute();
}
public static com.google.ads.googleads.v17.services.AudienceCompositionAttribute getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AudienceCompositionAttribute 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.AudienceCompositionAttribute getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy