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

com.google.ads.googleads.v10.resources.GoogleAdsField Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v10/resources/google_ads_field.proto

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

/**
 * 
 * A field or resource (artifact) used by GoogleAdsService.
 * 
* * Protobuf type {@code google.ads.googleads.v10.resources.GoogleAdsField} */ public final class GoogleAdsField extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.resources.GoogleAdsField) GoogleAdsFieldOrBuilder { private static final long serialVersionUID = 0L; // Use GoogleAdsField.newBuilder() to construct. private GoogleAdsField(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GoogleAdsField() { resourceName_ = ""; name_ = ""; category_ = 0; selectableWith_ = com.google.protobuf.LazyStringArrayList.EMPTY; attributeResources_ = com.google.protobuf.LazyStringArrayList.EMPTY; metrics_ = com.google.protobuf.LazyStringArrayList.EMPTY; segments_ = com.google.protobuf.LazyStringArrayList.EMPTY; enumValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; dataType_ = 0; typeUrl_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GoogleAdsField(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.GoogleAdsFieldProto.internal_static_google_ads_googleads_v10_resources_GoogleAdsField_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.GoogleAdsFieldProto.internal_static_google_ads_googleads_v10_resources_GoogleAdsField_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.GoogleAdsField.class, com.google.ads.googleads.v10.resources.GoogleAdsField.Builder.class); } private int bitField0_; public static final int RESOURCE_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object resourceName_; /** *
   * Output only. The resource name of the artifact.
   * Artifact resource names have the form:
   * `googleAdsFields/{name}`
   * 
* * string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The resourceName. */ @java.lang.Override public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } } /** *
   * Output only. The resource name of the artifact.
   * Artifact resource names have the form:
   * `googleAdsFields/{name}`
   * 
* * string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for resourceName. */ @java.lang.Override public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); resourceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 21; private volatile java.lang.Object name_; /** *
   * Output only. The name of the artifact.
   * 
* * optional string name = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the name field is set. */ @java.lang.Override public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Output only. The name of the artifact.
   * 
* * optional string name = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
   * Output only. The name of the artifact.
   * 
* * optional string name = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CATEGORY_FIELD_NUMBER = 3; private int category_; /** *
   * Output only. The category of the artifact.
   * 
* * .google.ads.googleads.v10.enums.GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategory category = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for category. */ @java.lang.Override public int getCategoryValue() { return category_; } /** *
   * Output only. The category of the artifact.
   * 
* * .google.ads.googleads.v10.enums.GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategory category = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The category. */ @java.lang.Override public com.google.ads.googleads.v10.enums.GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategory getCategory() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategory result = com.google.ads.googleads.v10.enums.GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategory.valueOf(category_); return result == null ? com.google.ads.googleads.v10.enums.GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategory.UNRECOGNIZED : result; } public static final int SELECTABLE_FIELD_NUMBER = 22; private boolean selectable_; /** *
   * Output only. Whether the artifact can be used in a SELECT clause in search
   * queries.
   * 
* * optional bool selectable = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the selectable field is set. */ @java.lang.Override public boolean hasSelectable() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Output only. Whether the artifact can be used in a SELECT clause in search
   * queries.
   * 
* * optional bool selectable = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The selectable. */ @java.lang.Override public boolean getSelectable() { return selectable_; } public static final int FILTERABLE_FIELD_NUMBER = 23; private boolean filterable_; /** *
   * Output only. Whether the artifact can be used in a WHERE clause in search
   * queries.
   * 
* * optional bool filterable = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the filterable field is set. */ @java.lang.Override public boolean hasFilterable() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * Output only. Whether the artifact can be used in a WHERE clause in search
   * queries.
   * 
* * optional bool filterable = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The filterable. */ @java.lang.Override public boolean getFilterable() { return filterable_; } public static final int SORTABLE_FIELD_NUMBER = 24; private boolean sortable_; /** *
   * Output only. Whether the artifact can be used in a ORDER BY clause in search
   * queries.
   * 
* * optional bool sortable = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the sortable field is set. */ @java.lang.Override public boolean hasSortable() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * Output only. Whether the artifact can be used in a ORDER BY clause in search
   * queries.
   * 
* * optional bool sortable = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The sortable. */ @java.lang.Override public boolean getSortable() { return sortable_; } public static final int SELECTABLE_WITH_FIELD_NUMBER = 25; private com.google.protobuf.LazyStringList selectableWith_; /** *
   * Output only. The names of all resources, segments, and metrics that are selectable with
   * the described artifact.
   * 
* * repeated string selectable_with = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the selectableWith. */ public com.google.protobuf.ProtocolStringList getSelectableWithList() { return selectableWith_; } /** *
   * Output only. The names of all resources, segments, and metrics that are selectable with
   * the described artifact.
   * 
* * repeated string selectable_with = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of selectableWith. */ public int getSelectableWithCount() { return selectableWith_.size(); } /** *
   * Output only. The names of all resources, segments, and metrics that are selectable with
   * the described artifact.
   * 
* * repeated string selectable_with = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The selectableWith at the given index. */ public java.lang.String getSelectableWith(int index) { return selectableWith_.get(index); } /** *
   * Output only. The names of all resources, segments, and metrics that are selectable with
   * the described artifact.
   * 
* * repeated string selectable_with = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the selectableWith at the given index. */ public com.google.protobuf.ByteString getSelectableWithBytes(int index) { return selectableWith_.getByteString(index); } public static final int ATTRIBUTE_RESOURCES_FIELD_NUMBER = 26; private com.google.protobuf.LazyStringList attributeResources_; /** *
   * Output only. The names of all resources that are selectable with the described
   * artifact. Fields from these resources do not segment metrics when included
   * in search queries.
   * This field is only set for artifacts whose category is RESOURCE.
   * 
* * repeated string attribute_resources = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the attributeResources. */ public com.google.protobuf.ProtocolStringList getAttributeResourcesList() { return attributeResources_; } /** *
   * Output only. The names of all resources that are selectable with the described
   * artifact. Fields from these resources do not segment metrics when included
   * in search queries.
   * This field is only set for artifacts whose category is RESOURCE.
   * 
* * repeated string attribute_resources = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of attributeResources. */ public int getAttributeResourcesCount() { return attributeResources_.size(); } /** *
   * Output only. The names of all resources that are selectable with the described
   * artifact. Fields from these resources do not segment metrics when included
   * in search queries.
   * This field is only set for artifacts whose category is RESOURCE.
   * 
* * repeated string attribute_resources = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The attributeResources at the given index. */ public java.lang.String getAttributeResources(int index) { return attributeResources_.get(index); } /** *
   * Output only. The names of all resources that are selectable with the described
   * artifact. Fields from these resources do not segment metrics when included
   * in search queries.
   * This field is only set for artifacts whose category is RESOURCE.
   * 
* * repeated string attribute_resources = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the attributeResources at the given index. */ public com.google.protobuf.ByteString getAttributeResourcesBytes(int index) { return attributeResources_.getByteString(index); } public static final int METRICS_FIELD_NUMBER = 27; private com.google.protobuf.LazyStringList metrics_; /** *
   * Output only. This field lists the names of all metrics that are selectable with the
   * described artifact when it is used in the FROM clause.
   * It is only set for artifacts whose category is RESOURCE.
   * 
* * repeated string metrics = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the metrics. */ public com.google.protobuf.ProtocolStringList getMetricsList() { return metrics_; } /** *
   * Output only. This field lists the names of all metrics that are selectable with the
   * described artifact when it is used in the FROM clause.
   * It is only set for artifacts whose category is RESOURCE.
   * 
* * repeated string metrics = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of metrics. */ public int getMetricsCount() { return metrics_.size(); } /** *
   * Output only. This field lists the names of all metrics that are selectable with the
   * described artifact when it is used in the FROM clause.
   * It is only set for artifacts whose category is RESOURCE.
   * 
* * repeated string metrics = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The metrics at the given index. */ public java.lang.String getMetrics(int index) { return metrics_.get(index); } /** *
   * Output only. This field lists the names of all metrics that are selectable with the
   * described artifact when it is used in the FROM clause.
   * It is only set for artifacts whose category is RESOURCE.
   * 
* * repeated string metrics = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the metrics at the given index. */ public com.google.protobuf.ByteString getMetricsBytes(int index) { return metrics_.getByteString(index); } public static final int SEGMENTS_FIELD_NUMBER = 28; private com.google.protobuf.LazyStringList segments_; /** *
   * Output only. This field lists the names of all artifacts, whether a segment or another
   * resource, that segment metrics when included in search queries and when the
   * described artifact is used in the FROM clause. It is only set for artifacts
   * whose category is RESOURCE.
   * 
* * repeated string segments = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the segments. */ public com.google.protobuf.ProtocolStringList getSegmentsList() { return segments_; } /** *
   * Output only. This field lists the names of all artifacts, whether a segment or another
   * resource, that segment metrics when included in search queries and when the
   * described artifact is used in the FROM clause. It is only set for artifacts
   * whose category is RESOURCE.
   * 
* * repeated string segments = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of segments. */ public int getSegmentsCount() { return segments_.size(); } /** *
   * Output only. This field lists the names of all artifacts, whether a segment or another
   * resource, that segment metrics when included in search queries and when the
   * described artifact is used in the FROM clause. It is only set for artifacts
   * whose category is RESOURCE.
   * 
* * repeated string segments = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The segments at the given index. */ public java.lang.String getSegments(int index) { return segments_.get(index); } /** *
   * Output only. This field lists the names of all artifacts, whether a segment or another
   * resource, that segment metrics when included in search queries and when the
   * described artifact is used in the FROM clause. It is only set for artifacts
   * whose category is RESOURCE.
   * 
* * repeated string segments = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the segments at the given index. */ public com.google.protobuf.ByteString getSegmentsBytes(int index) { return segments_.getByteString(index); } public static final int ENUM_VALUES_FIELD_NUMBER = 29; private com.google.protobuf.LazyStringList enumValues_; /** *
   * Output only. Values the artifact can assume if it is a field of type ENUM.
   * This field is only set for artifacts of category SEGMENT or ATTRIBUTE.
   * 
* * repeated string enum_values = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the enumValues. */ public com.google.protobuf.ProtocolStringList getEnumValuesList() { return enumValues_; } /** *
   * Output only. Values the artifact can assume if it is a field of type ENUM.
   * This field is only set for artifacts of category SEGMENT or ATTRIBUTE.
   * 
* * repeated string enum_values = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of enumValues. */ public int getEnumValuesCount() { return enumValues_.size(); } /** *
   * Output only. Values the artifact can assume if it is a field of type ENUM.
   * This field is only set for artifacts of category SEGMENT or ATTRIBUTE.
   * 
* * repeated string enum_values = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The enumValues at the given index. */ public java.lang.String getEnumValues(int index) { return enumValues_.get(index); } /** *
   * Output only. Values the artifact can assume if it is a field of type ENUM.
   * This field is only set for artifacts of category SEGMENT or ATTRIBUTE.
   * 
* * repeated string enum_values = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the enumValues at the given index. */ public com.google.protobuf.ByteString getEnumValuesBytes(int index) { return enumValues_.getByteString(index); } public static final int DATA_TYPE_FIELD_NUMBER = 12; private int dataType_; /** *
   * Output only. This field determines the operators that can be used with the artifact
   * in WHERE clauses.
   * 
* * .google.ads.googleads.v10.enums.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataType data_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for dataType. */ @java.lang.Override public int getDataTypeValue() { return dataType_; } /** *
   * Output only. This field determines the operators that can be used with the artifact
   * in WHERE clauses.
   * 
* * .google.ads.googleads.v10.enums.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataType data_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The dataType. */ @java.lang.Override public com.google.ads.googleads.v10.enums.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataType getDataType() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataType result = com.google.ads.googleads.v10.enums.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataType.valueOf(dataType_); return result == null ? com.google.ads.googleads.v10.enums.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataType.UNRECOGNIZED : result; } public static final int TYPE_URL_FIELD_NUMBER = 30; private volatile java.lang.Object typeUrl_; /** *
   * Output only. The URL of proto describing the artifact's data type.
   * 
* * optional string type_url = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the typeUrl field is set. */ @java.lang.Override public boolean hasTypeUrl() { return ((bitField0_ & 0x00000010) != 0); } /** *
   * Output only. The URL of proto describing the artifact's data type.
   * 
* * optional string type_url = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The typeUrl. */ @java.lang.Override public java.lang.String getTypeUrl() { java.lang.Object ref = typeUrl_; 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(); typeUrl_ = s; return s; } } /** *
   * Output only. The URL of proto describing the artifact's data type.
   * 
* * optional string type_url = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for typeUrl. */ @java.lang.Override public com.google.protobuf.ByteString getTypeUrlBytes() { java.lang.Object ref = typeUrl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); typeUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int IS_REPEATED_FIELD_NUMBER = 31; private boolean isRepeated_; /** *
   * Output only. Whether the field artifact is repeated.
   * 
* * optional bool is_repeated = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the isRepeated field is set. */ @java.lang.Override public boolean hasIsRepeated() { return ((bitField0_ & 0x00000020) != 0); } /** *
   * Output only. Whether the field artifact is repeated.
   * 
* * optional bool is_repeated = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The isRepeated. */ @java.lang.Override public boolean getIsRepeated() { return isRepeated_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_); } if (category_ != com.google.ads.googleads.v10.enums.GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategory.UNSPECIFIED.getNumber()) { output.writeEnum(3, category_); } if (dataType_ != com.google.ads.googleads.v10.enums.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataType.UNSPECIFIED.getNumber()) { output.writeEnum(12, dataType_); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 21, name_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(22, selectable_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(23, filterable_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(24, sortable_); } for (int i = 0; i < selectableWith_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 25, selectableWith_.getRaw(i)); } for (int i = 0; i < attributeResources_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 26, attributeResources_.getRaw(i)); } for (int i = 0; i < metrics_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 27, metrics_.getRaw(i)); } for (int i = 0; i < segments_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 28, segments_.getRaw(i)); } for (int i = 0; i < enumValues_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 29, enumValues_.getRaw(i)); } if (((bitField0_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 30, typeUrl_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeBool(31, isRepeated_); } 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(resourceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_); } if (category_ != com.google.ads.googleads.v10.enums.GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategory.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, category_); } if (dataType_ != com.google.ads.googleads.v10.enums.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataType.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(12, dataType_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, name_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(22, selectable_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(23, filterable_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(24, sortable_); } { int dataSize = 0; for (int i = 0; i < selectableWith_.size(); i++) { dataSize += computeStringSizeNoTag(selectableWith_.getRaw(i)); } size += dataSize; size += 2 * getSelectableWithList().size(); } { int dataSize = 0; for (int i = 0; i < attributeResources_.size(); i++) { dataSize += computeStringSizeNoTag(attributeResources_.getRaw(i)); } size += dataSize; size += 2 * getAttributeResourcesList().size(); } { int dataSize = 0; for (int i = 0; i < metrics_.size(); i++) { dataSize += computeStringSizeNoTag(metrics_.getRaw(i)); } size += dataSize; size += 2 * getMetricsList().size(); } { int dataSize = 0; for (int i = 0; i < segments_.size(); i++) { dataSize += computeStringSizeNoTag(segments_.getRaw(i)); } size += dataSize; size += 2 * getSegmentsList().size(); } { int dataSize = 0; for (int i = 0; i < enumValues_.size(); i++) { dataSize += computeStringSizeNoTag(enumValues_.getRaw(i)); } size += dataSize; size += 2 * getEnumValuesList().size(); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30, typeUrl_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(31, isRepeated_); } 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.v10.resources.GoogleAdsField)) { return super.equals(obj); } com.google.ads.googleads.v10.resources.GoogleAdsField other = (com.google.ads.googleads.v10.resources.GoogleAdsField) obj; if (!getResourceName() .equals(other.getResourceName())) return false; if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName() .equals(other.getName())) return false; } if (category_ != other.category_) return false; if (hasSelectable() != other.hasSelectable()) return false; if (hasSelectable()) { if (getSelectable() != other.getSelectable()) return false; } if (hasFilterable() != other.hasFilterable()) return false; if (hasFilterable()) { if (getFilterable() != other.getFilterable()) return false; } if (hasSortable() != other.hasSortable()) return false; if (hasSortable()) { if (getSortable() != other.getSortable()) return false; } if (!getSelectableWithList() .equals(other.getSelectableWithList())) return false; if (!getAttributeResourcesList() .equals(other.getAttributeResourcesList())) return false; if (!getMetricsList() .equals(other.getMetricsList())) return false; if (!getSegmentsList() .equals(other.getSegmentsList())) return false; if (!getEnumValuesList() .equals(other.getEnumValuesList())) return false; if (dataType_ != other.dataType_) return false; if (hasTypeUrl() != other.hasTypeUrl()) return false; if (hasTypeUrl()) { if (!getTypeUrl() .equals(other.getTypeUrl())) return false; } if (hasIsRepeated() != other.hasIsRepeated()) return false; if (hasIsRepeated()) { if (getIsRepeated() != other.getIsRepeated()) 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) + RESOURCE_NAME_FIELD_NUMBER; hash = (53 * hash) + getResourceName().hashCode(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } hash = (37 * hash) + CATEGORY_FIELD_NUMBER; hash = (53 * hash) + category_; if (hasSelectable()) { hash = (37 * hash) + SELECTABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSelectable()); } if (hasFilterable()) { hash = (37 * hash) + FILTERABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getFilterable()); } if (hasSortable()) { hash = (37 * hash) + SORTABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSortable()); } if (getSelectableWithCount() > 0) { hash = (37 * hash) + SELECTABLE_WITH_FIELD_NUMBER; hash = (53 * hash) + getSelectableWithList().hashCode(); } if (getAttributeResourcesCount() > 0) { hash = (37 * hash) + ATTRIBUTE_RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getAttributeResourcesList().hashCode(); } if (getMetricsCount() > 0) { hash = (37 * hash) + METRICS_FIELD_NUMBER; hash = (53 * hash) + getMetricsList().hashCode(); } if (getSegmentsCount() > 0) { hash = (37 * hash) + SEGMENTS_FIELD_NUMBER; hash = (53 * hash) + getSegmentsList().hashCode(); } if (getEnumValuesCount() > 0) { hash = (37 * hash) + ENUM_VALUES_FIELD_NUMBER; hash = (53 * hash) + getEnumValuesList().hashCode(); } hash = (37 * hash) + DATA_TYPE_FIELD_NUMBER; hash = (53 * hash) + dataType_; if (hasTypeUrl()) { hash = (37 * hash) + TYPE_URL_FIELD_NUMBER; hash = (53 * hash) + getTypeUrl().hashCode(); } if (hasIsRepeated()) { hash = (37 * hash) + IS_REPEATED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsRepeated()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v10.resources.GoogleAdsField parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.resources.GoogleAdsField 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.v10.resources.GoogleAdsField parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.resources.GoogleAdsField 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.v10.resources.GoogleAdsField parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.resources.GoogleAdsField parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v10.resources.GoogleAdsField parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.resources.GoogleAdsField 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.v10.resources.GoogleAdsField parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.resources.GoogleAdsField 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.v10.resources.GoogleAdsField parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.resources.GoogleAdsField 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.v10.resources.GoogleAdsField 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 field or resource (artifact) used by GoogleAdsService.
   * 
* * Protobuf type {@code google.ads.googleads.v10.resources.GoogleAdsField} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.GoogleAdsField) com.google.ads.googleads.v10.resources.GoogleAdsFieldOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.resources.GoogleAdsFieldProto.internal_static_google_ads_googleads_v10_resources_GoogleAdsField_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.resources.GoogleAdsFieldProto.internal_static_google_ads_googleads_v10_resources_GoogleAdsField_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.resources.GoogleAdsField.class, com.google.ads.googleads.v10.resources.GoogleAdsField.Builder.class); } // Construct using com.google.ads.googleads.v10.resources.GoogleAdsField.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); resourceName_ = ""; name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); category_ = 0; selectable_ = false; bitField0_ = (bitField0_ & ~0x00000002); filterable_ = false; bitField0_ = (bitField0_ & ~0x00000004); sortable_ = false; bitField0_ = (bitField0_ & ~0x00000008); selectableWith_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); attributeResources_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); metrics_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); segments_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000080); enumValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000100); dataType_ = 0; typeUrl_ = ""; bitField0_ = (bitField0_ & ~0x00000200); isRepeated_ = false; bitField0_ = (bitField0_ & ~0x00000400); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.resources.GoogleAdsFieldProto.internal_static_google_ads_googleads_v10_resources_GoogleAdsField_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.resources.GoogleAdsField getDefaultInstanceForType() { return com.google.ads.googleads.v10.resources.GoogleAdsField.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.resources.GoogleAdsField build() { com.google.ads.googleads.v10.resources.GoogleAdsField result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.resources.GoogleAdsField buildPartial() { com.google.ads.googleads.v10.resources.GoogleAdsField result = new com.google.ads.googleads.v10.resources.GoogleAdsField(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.resourceName_ = resourceName_; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; result.category_ = category_; if (((from_bitField0_ & 0x00000002) != 0)) { result.selectable_ = selectable_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.filterable_ = filterable_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.sortable_ = sortable_; to_bitField0_ |= 0x00000008; } if (((bitField0_ & 0x00000010) != 0)) { selectableWith_ = selectableWith_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000010); } result.selectableWith_ = selectableWith_; if (((bitField0_ & 0x00000020) != 0)) { attributeResources_ = attributeResources_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000020); } result.attributeResources_ = attributeResources_; if (((bitField0_ & 0x00000040) != 0)) { metrics_ = metrics_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000040); } result.metrics_ = metrics_; if (((bitField0_ & 0x00000080) != 0)) { segments_ = segments_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000080); } result.segments_ = segments_; if (((bitField0_ & 0x00000100) != 0)) { enumValues_ = enumValues_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000100); } result.enumValues_ = enumValues_; result.dataType_ = dataType_; if (((from_bitField0_ & 0x00000200) != 0)) { to_bitField0_ |= 0x00000010; } result.typeUrl_ = typeUrl_; if (((from_bitField0_ & 0x00000400) != 0)) { result.isRepeated_ = isRepeated_; to_bitField0_ |= 0x00000020; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v10.resources.GoogleAdsField) { return mergeFrom((com.google.ads.googleads.v10.resources.GoogleAdsField)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.resources.GoogleAdsField other) { if (other == com.google.ads.googleads.v10.resources.GoogleAdsField.getDefaultInstance()) return this; if (!other.getResourceName().isEmpty()) { resourceName_ = other.resourceName_; onChanged(); } if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.category_ != 0) { setCategoryValue(other.getCategoryValue()); } if (other.hasSelectable()) { setSelectable(other.getSelectable()); } if (other.hasFilterable()) { setFilterable(other.getFilterable()); } if (other.hasSortable()) { setSortable(other.getSortable()); } if (!other.selectableWith_.isEmpty()) { if (selectableWith_.isEmpty()) { selectableWith_ = other.selectableWith_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureSelectableWithIsMutable(); selectableWith_.addAll(other.selectableWith_); } onChanged(); } if (!other.attributeResources_.isEmpty()) { if (attributeResources_.isEmpty()) { attributeResources_ = other.attributeResources_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureAttributeResourcesIsMutable(); attributeResources_.addAll(other.attributeResources_); } onChanged(); } if (!other.metrics_.isEmpty()) { if (metrics_.isEmpty()) { metrics_ = other.metrics_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureMetricsIsMutable(); metrics_.addAll(other.metrics_); } onChanged(); } if (!other.segments_.isEmpty()) { if (segments_.isEmpty()) { segments_ = other.segments_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureSegmentsIsMutable(); segments_.addAll(other.segments_); } onChanged(); } if (!other.enumValues_.isEmpty()) { if (enumValues_.isEmpty()) { enumValues_ = other.enumValues_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureEnumValuesIsMutable(); enumValues_.addAll(other.enumValues_); } onChanged(); } if (other.dataType_ != 0) { setDataTypeValue(other.getDataTypeValue()); } if (other.hasTypeUrl()) { bitField0_ |= 0x00000200; typeUrl_ = other.typeUrl_; onChanged(); } if (other.hasIsRepeated()) { setIsRepeated(other.getIsRepeated()); } 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: { resourceName_ = input.readStringRequireUtf8(); break; } // case 10 case 24: { category_ = input.readEnum(); break; } // case 24 case 96: { dataType_ = input.readEnum(); break; } // case 96 case 170: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 170 case 176: { selectable_ = input.readBool(); bitField0_ |= 0x00000002; break; } // case 176 case 184: { filterable_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 184 case 192: { sortable_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 192 case 202: { java.lang.String s = input.readStringRequireUtf8(); ensureSelectableWithIsMutable(); selectableWith_.add(s); break; } // case 202 case 210: { java.lang.String s = input.readStringRequireUtf8(); ensureAttributeResourcesIsMutable(); attributeResources_.add(s); break; } // case 210 case 218: { java.lang.String s = input.readStringRequireUtf8(); ensureMetricsIsMutable(); metrics_.add(s); break; } // case 218 case 226: { java.lang.String s = input.readStringRequireUtf8(); ensureSegmentsIsMutable(); segments_.add(s); break; } // case 226 case 234: { java.lang.String s = input.readStringRequireUtf8(); ensureEnumValuesIsMutable(); enumValues_.add(s); break; } // case 234 case 242: { typeUrl_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000200; break; } // case 242 case 248: { isRepeated_ = input.readBool(); bitField0_ |= 0x00000400; break; } // case 248 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 resourceName_ = ""; /** *
     * Output only. The resource name of the artifact.
     * Artifact resource names have the form:
     * `googleAdsFields/{name}`
     * 
* * string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Output only. The resource name of the artifact.
     * Artifact resource names have the form:
     * `googleAdsFields/{name}`
     * 
* * string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for resourceName. */ public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); resourceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Output only. The resource name of the artifact.
     * Artifact resource names have the form:
     * `googleAdsFields/{name}`
     * 
* * string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The resourceName to set. * @return This builder for chaining. */ public Builder setResourceName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } resourceName_ = value; onChanged(); return this; } /** *
     * Output only. The resource name of the artifact.
     * Artifact resource names have the form:
     * `googleAdsFields/{name}`
     * 
* * string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearResourceName() { resourceName_ = getDefaultInstance().getResourceName(); onChanged(); return this; } /** *
     * Output only. The resource name of the artifact.
     * Artifact resource names have the form:
     * `googleAdsFields/{name}`
     * 
* * string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for resourceName to set. * @return This builder for chaining. */ public Builder setResourceNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); resourceName_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
     * Output only. The name of the artifact.
     * 
* * optional string name = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the name field is set. */ public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Output only. The name of the artifact.
     * 
* * optional string name = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Output only. The name of the artifact.
     * 
* * optional string name = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Output only. The name of the artifact.
     * 
* * optional string name = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** *
     * Output only. The name of the artifact.
     * 
* * optional string name = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
     * Output only. The name of the artifact.
     * 
* * optional string name = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } private int category_ = 0; /** *
     * Output only. The category of the artifact.
     * 
* * .google.ads.googleads.v10.enums.GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategory category = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for category. */ @java.lang.Override public int getCategoryValue() { return category_; } /** *
     * Output only. The category of the artifact.
     * 
* * .google.ads.googleads.v10.enums.GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategory category = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for category to set. * @return This builder for chaining. */ public Builder setCategoryValue(int value) { category_ = value; onChanged(); return this; } /** *
     * Output only. The category of the artifact.
     * 
* * .google.ads.googleads.v10.enums.GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategory category = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The category. */ @java.lang.Override public com.google.ads.googleads.v10.enums.GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategory getCategory() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategory result = com.google.ads.googleads.v10.enums.GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategory.valueOf(category_); return result == null ? com.google.ads.googleads.v10.enums.GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategory.UNRECOGNIZED : result; } /** *
     * Output only. The category of the artifact.
     * 
* * .google.ads.googleads.v10.enums.GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategory category = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The category to set. * @return This builder for chaining. */ public Builder setCategory(com.google.ads.googleads.v10.enums.GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategory value) { if (value == null) { throw new NullPointerException(); } category_ = value.getNumber(); onChanged(); return this; } /** *
     * Output only. The category of the artifact.
     * 
* * .google.ads.googleads.v10.enums.GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategory category = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearCategory() { category_ = 0; onChanged(); return this; } private boolean selectable_ ; /** *
     * Output only. Whether the artifact can be used in a SELECT clause in search
     * queries.
     * 
* * optional bool selectable = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the selectable field is set. */ @java.lang.Override public boolean hasSelectable() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Output only. Whether the artifact can be used in a SELECT clause in search
     * queries.
     * 
* * optional bool selectable = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The selectable. */ @java.lang.Override public boolean getSelectable() { return selectable_; } /** *
     * Output only. Whether the artifact can be used in a SELECT clause in search
     * queries.
     * 
* * optional bool selectable = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The selectable to set. * @return This builder for chaining. */ public Builder setSelectable(boolean value) { bitField0_ |= 0x00000002; selectable_ = value; onChanged(); return this; } /** *
     * Output only. Whether the artifact can be used in a SELECT clause in search
     * queries.
     * 
* * optional bool selectable = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearSelectable() { bitField0_ = (bitField0_ & ~0x00000002); selectable_ = false; onChanged(); return this; } private boolean filterable_ ; /** *
     * Output only. Whether the artifact can be used in a WHERE clause in search
     * queries.
     * 
* * optional bool filterable = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the filterable field is set. */ @java.lang.Override public boolean hasFilterable() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Output only. Whether the artifact can be used in a WHERE clause in search
     * queries.
     * 
* * optional bool filterable = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The filterable. */ @java.lang.Override public boolean getFilterable() { return filterable_; } /** *
     * Output only. Whether the artifact can be used in a WHERE clause in search
     * queries.
     * 
* * optional bool filterable = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The filterable to set. * @return This builder for chaining. */ public Builder setFilterable(boolean value) { bitField0_ |= 0x00000004; filterable_ = value; onChanged(); return this; } /** *
     * Output only. Whether the artifact can be used in a WHERE clause in search
     * queries.
     * 
* * optional bool filterable = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearFilterable() { bitField0_ = (bitField0_ & ~0x00000004); filterable_ = false; onChanged(); return this; } private boolean sortable_ ; /** *
     * Output only. Whether the artifact can be used in a ORDER BY clause in search
     * queries.
     * 
* * optional bool sortable = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the sortable field is set. */ @java.lang.Override public boolean hasSortable() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Output only. Whether the artifact can be used in a ORDER BY clause in search
     * queries.
     * 
* * optional bool sortable = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The sortable. */ @java.lang.Override public boolean getSortable() { return sortable_; } /** *
     * Output only. Whether the artifact can be used in a ORDER BY clause in search
     * queries.
     * 
* * optional bool sortable = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The sortable to set. * @return This builder for chaining. */ public Builder setSortable(boolean value) { bitField0_ |= 0x00000008; sortable_ = value; onChanged(); return this; } /** *
     * Output only. Whether the artifact can be used in a ORDER BY clause in search
     * queries.
     * 
* * optional bool sortable = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearSortable() { bitField0_ = (bitField0_ & ~0x00000008); sortable_ = false; onChanged(); return this; } private com.google.protobuf.LazyStringList selectableWith_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSelectableWithIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { selectableWith_ = new com.google.protobuf.LazyStringArrayList(selectableWith_); bitField0_ |= 0x00000010; } } /** *
     * Output only. The names of all resources, segments, and metrics that are selectable with
     * the described artifact.
     * 
* * repeated string selectable_with = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the selectableWith. */ public com.google.protobuf.ProtocolStringList getSelectableWithList() { return selectableWith_.getUnmodifiableView(); } /** *
     * Output only. The names of all resources, segments, and metrics that are selectable with
     * the described artifact.
     * 
* * repeated string selectable_with = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of selectableWith. */ public int getSelectableWithCount() { return selectableWith_.size(); } /** *
     * Output only. The names of all resources, segments, and metrics that are selectable with
     * the described artifact.
     * 
* * repeated string selectable_with = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The selectableWith at the given index. */ public java.lang.String getSelectableWith(int index) { return selectableWith_.get(index); } /** *
     * Output only. The names of all resources, segments, and metrics that are selectable with
     * the described artifact.
     * 
* * repeated string selectable_with = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the selectableWith at the given index. */ public com.google.protobuf.ByteString getSelectableWithBytes(int index) { return selectableWith_.getByteString(index); } /** *
     * Output only. The names of all resources, segments, and metrics that are selectable with
     * the described artifact.
     * 
* * repeated string selectable_with = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index to set the value at. * @param value The selectableWith to set. * @return This builder for chaining. */ public Builder setSelectableWith( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSelectableWithIsMutable(); selectableWith_.set(index, value); onChanged(); return this; } /** *
     * Output only. The names of all resources, segments, and metrics that are selectable with
     * the described artifact.
     * 
* * repeated string selectable_with = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The selectableWith to add. * @return This builder for chaining. */ public Builder addSelectableWith( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSelectableWithIsMutable(); selectableWith_.add(value); onChanged(); return this; } /** *
     * Output only. The names of all resources, segments, and metrics that are selectable with
     * the described artifact.
     * 
* * repeated string selectable_with = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param values The selectableWith to add. * @return This builder for chaining. */ public Builder addAllSelectableWith( java.lang.Iterable values) { ensureSelectableWithIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, selectableWith_); onChanged(); return this; } /** *
     * Output only. The names of all resources, segments, and metrics that are selectable with
     * the described artifact.
     * 
* * repeated string selectable_with = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearSelectableWith() { selectableWith_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
     * Output only. The names of all resources, segments, and metrics that are selectable with
     * the described artifact.
     * 
* * repeated string selectable_with = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes of the selectableWith to add. * @return This builder for chaining. */ public Builder addSelectableWithBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSelectableWithIsMutable(); selectableWith_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList attributeResources_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAttributeResourcesIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { attributeResources_ = new com.google.protobuf.LazyStringArrayList(attributeResources_); bitField0_ |= 0x00000020; } } /** *
     * Output only. The names of all resources that are selectable with the described
     * artifact. Fields from these resources do not segment metrics when included
     * in search queries.
     * This field is only set for artifacts whose category is RESOURCE.
     * 
* * repeated string attribute_resources = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the attributeResources. */ public com.google.protobuf.ProtocolStringList getAttributeResourcesList() { return attributeResources_.getUnmodifiableView(); } /** *
     * Output only. The names of all resources that are selectable with the described
     * artifact. Fields from these resources do not segment metrics when included
     * in search queries.
     * This field is only set for artifacts whose category is RESOURCE.
     * 
* * repeated string attribute_resources = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of attributeResources. */ public int getAttributeResourcesCount() { return attributeResources_.size(); } /** *
     * Output only. The names of all resources that are selectable with the described
     * artifact. Fields from these resources do not segment metrics when included
     * in search queries.
     * This field is only set for artifacts whose category is RESOURCE.
     * 
* * repeated string attribute_resources = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The attributeResources at the given index. */ public java.lang.String getAttributeResources(int index) { return attributeResources_.get(index); } /** *
     * Output only. The names of all resources that are selectable with the described
     * artifact. Fields from these resources do not segment metrics when included
     * in search queries.
     * This field is only set for artifacts whose category is RESOURCE.
     * 
* * repeated string attribute_resources = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the attributeResources at the given index. */ public com.google.protobuf.ByteString getAttributeResourcesBytes(int index) { return attributeResources_.getByteString(index); } /** *
     * Output only. The names of all resources that are selectable with the described
     * artifact. Fields from these resources do not segment metrics when included
     * in search queries.
     * This field is only set for artifacts whose category is RESOURCE.
     * 
* * repeated string attribute_resources = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index to set the value at. * @param value The attributeResources to set. * @return This builder for chaining. */ public Builder setAttributeResources( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAttributeResourcesIsMutable(); attributeResources_.set(index, value); onChanged(); return this; } /** *
     * Output only. The names of all resources that are selectable with the described
     * artifact. Fields from these resources do not segment metrics when included
     * in search queries.
     * This field is only set for artifacts whose category is RESOURCE.
     * 
* * repeated string attribute_resources = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The attributeResources to add. * @return This builder for chaining. */ public Builder addAttributeResources( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAttributeResourcesIsMutable(); attributeResources_.add(value); onChanged(); return this; } /** *
     * Output only. The names of all resources that are selectable with the described
     * artifact. Fields from these resources do not segment metrics when included
     * in search queries.
     * This field is only set for artifacts whose category is RESOURCE.
     * 
* * repeated string attribute_resources = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param values The attributeResources to add. * @return This builder for chaining. */ public Builder addAllAttributeResources( java.lang.Iterable values) { ensureAttributeResourcesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, attributeResources_); onChanged(); return this; } /** *
     * Output only. The names of all resources that are selectable with the described
     * artifact. Fields from these resources do not segment metrics when included
     * in search queries.
     * This field is only set for artifacts whose category is RESOURCE.
     * 
* * repeated string attribute_resources = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearAttributeResources() { attributeResources_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** *
     * Output only. The names of all resources that are selectable with the described
     * artifact. Fields from these resources do not segment metrics when included
     * in search queries.
     * This field is only set for artifacts whose category is RESOURCE.
     * 
* * repeated string attribute_resources = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes of the attributeResources to add. * @return This builder for chaining. */ public Builder addAttributeResourcesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureAttributeResourcesIsMutable(); attributeResources_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList metrics_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureMetricsIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { metrics_ = new com.google.protobuf.LazyStringArrayList(metrics_); bitField0_ |= 0x00000040; } } /** *
     * Output only. This field lists the names of all metrics that are selectable with the
     * described artifact when it is used in the FROM clause.
     * It is only set for artifacts whose category is RESOURCE.
     * 
* * repeated string metrics = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the metrics. */ public com.google.protobuf.ProtocolStringList getMetricsList() { return metrics_.getUnmodifiableView(); } /** *
     * Output only. This field lists the names of all metrics that are selectable with the
     * described artifact when it is used in the FROM clause.
     * It is only set for artifacts whose category is RESOURCE.
     * 
* * repeated string metrics = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of metrics. */ public int getMetricsCount() { return metrics_.size(); } /** *
     * Output only. This field lists the names of all metrics that are selectable with the
     * described artifact when it is used in the FROM clause.
     * It is only set for artifacts whose category is RESOURCE.
     * 
* * repeated string metrics = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The metrics at the given index. */ public java.lang.String getMetrics(int index) { return metrics_.get(index); } /** *
     * Output only. This field lists the names of all metrics that are selectable with the
     * described artifact when it is used in the FROM clause.
     * It is only set for artifacts whose category is RESOURCE.
     * 
* * repeated string metrics = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the metrics at the given index. */ public com.google.protobuf.ByteString getMetricsBytes(int index) { return metrics_.getByteString(index); } /** *
     * Output only. This field lists the names of all metrics that are selectable with the
     * described artifact when it is used in the FROM clause.
     * It is only set for artifacts whose category is RESOURCE.
     * 
* * repeated string metrics = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index to set the value at. * @param value The metrics to set. * @return This builder for chaining. */ public Builder setMetrics( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureMetricsIsMutable(); metrics_.set(index, value); onChanged(); return this; } /** *
     * Output only. This field lists the names of all metrics that are selectable with the
     * described artifact when it is used in the FROM clause.
     * It is only set for artifacts whose category is RESOURCE.
     * 
* * repeated string metrics = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The metrics to add. * @return This builder for chaining. */ public Builder addMetrics( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureMetricsIsMutable(); metrics_.add(value); onChanged(); return this; } /** *
     * Output only. This field lists the names of all metrics that are selectable with the
     * described artifact when it is used in the FROM clause.
     * It is only set for artifacts whose category is RESOURCE.
     * 
* * repeated string metrics = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param values The metrics to add. * @return This builder for chaining. */ public Builder addAllMetrics( java.lang.Iterable values) { ensureMetricsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, metrics_); onChanged(); return this; } /** *
     * Output only. This field lists the names of all metrics that are selectable with the
     * described artifact when it is used in the FROM clause.
     * It is only set for artifacts whose category is RESOURCE.
     * 
* * repeated string metrics = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearMetrics() { metrics_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** *
     * Output only. This field lists the names of all metrics that are selectable with the
     * described artifact when it is used in the FROM clause.
     * It is only set for artifacts whose category is RESOURCE.
     * 
* * repeated string metrics = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes of the metrics to add. * @return This builder for chaining. */ public Builder addMetricsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureMetricsIsMutable(); metrics_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList segments_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSegmentsIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { segments_ = new com.google.protobuf.LazyStringArrayList(segments_); bitField0_ |= 0x00000080; } } /** *
     * Output only. This field lists the names of all artifacts, whether a segment or another
     * resource, that segment metrics when included in search queries and when the
     * described artifact is used in the FROM clause. It is only set for artifacts
     * whose category is RESOURCE.
     * 
* * repeated string segments = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the segments. */ public com.google.protobuf.ProtocolStringList getSegmentsList() { return segments_.getUnmodifiableView(); } /** *
     * Output only. This field lists the names of all artifacts, whether a segment or another
     * resource, that segment metrics when included in search queries and when the
     * described artifact is used in the FROM clause. It is only set for artifacts
     * whose category is RESOURCE.
     * 
* * repeated string segments = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of segments. */ public int getSegmentsCount() { return segments_.size(); } /** *
     * Output only. This field lists the names of all artifacts, whether a segment or another
     * resource, that segment metrics when included in search queries and when the
     * described artifact is used in the FROM clause. It is only set for artifacts
     * whose category is RESOURCE.
     * 
* * repeated string segments = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The segments at the given index. */ public java.lang.String getSegments(int index) { return segments_.get(index); } /** *
     * Output only. This field lists the names of all artifacts, whether a segment or another
     * resource, that segment metrics when included in search queries and when the
     * described artifact is used in the FROM clause. It is only set for artifacts
     * whose category is RESOURCE.
     * 
* * repeated string segments = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the segments at the given index. */ public com.google.protobuf.ByteString getSegmentsBytes(int index) { return segments_.getByteString(index); } /** *
     * Output only. This field lists the names of all artifacts, whether a segment or another
     * resource, that segment metrics when included in search queries and when the
     * described artifact is used in the FROM clause. It is only set for artifacts
     * whose category is RESOURCE.
     * 
* * repeated string segments = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index to set the value at. * @param value The segments to set. * @return This builder for chaining. */ public Builder setSegments( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSegmentsIsMutable(); segments_.set(index, value); onChanged(); return this; } /** *
     * Output only. This field lists the names of all artifacts, whether a segment or another
     * resource, that segment metrics when included in search queries and when the
     * described artifact is used in the FROM clause. It is only set for artifacts
     * whose category is RESOURCE.
     * 
* * repeated string segments = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The segments to add. * @return This builder for chaining. */ public Builder addSegments( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSegmentsIsMutable(); segments_.add(value); onChanged(); return this; } /** *
     * Output only. This field lists the names of all artifacts, whether a segment or another
     * resource, that segment metrics when included in search queries and when the
     * described artifact is used in the FROM clause. It is only set for artifacts
     * whose category is RESOURCE.
     * 
* * repeated string segments = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param values The segments to add. * @return This builder for chaining. */ public Builder addAllSegments( java.lang.Iterable values) { ensureSegmentsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, segments_); onChanged(); return this; } /** *
     * Output only. This field lists the names of all artifacts, whether a segment or another
     * resource, that segment metrics when included in search queries and when the
     * described artifact is used in the FROM clause. It is only set for artifacts
     * whose category is RESOURCE.
     * 
* * repeated string segments = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearSegments() { segments_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** *
     * Output only. This field lists the names of all artifacts, whether a segment or another
     * resource, that segment metrics when included in search queries and when the
     * described artifact is used in the FROM clause. It is only set for artifacts
     * whose category is RESOURCE.
     * 
* * repeated string segments = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes of the segments to add. * @return This builder for chaining. */ public Builder addSegmentsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSegmentsIsMutable(); segments_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList enumValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureEnumValuesIsMutable() { if (!((bitField0_ & 0x00000100) != 0)) { enumValues_ = new com.google.protobuf.LazyStringArrayList(enumValues_); bitField0_ |= 0x00000100; } } /** *
     * Output only. Values the artifact can assume if it is a field of type ENUM.
     * This field is only set for artifacts of category SEGMENT or ATTRIBUTE.
     * 
* * repeated string enum_values = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the enumValues. */ public com.google.protobuf.ProtocolStringList getEnumValuesList() { return enumValues_.getUnmodifiableView(); } /** *
     * Output only. Values the artifact can assume if it is a field of type ENUM.
     * This field is only set for artifacts of category SEGMENT or ATTRIBUTE.
     * 
* * repeated string enum_values = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of enumValues. */ public int getEnumValuesCount() { return enumValues_.size(); } /** *
     * Output only. Values the artifact can assume if it is a field of type ENUM.
     * This field is only set for artifacts of category SEGMENT or ATTRIBUTE.
     * 
* * repeated string enum_values = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The enumValues at the given index. */ public java.lang.String getEnumValues(int index) { return enumValues_.get(index); } /** *
     * Output only. Values the artifact can assume if it is a field of type ENUM.
     * This field is only set for artifacts of category SEGMENT or ATTRIBUTE.
     * 
* * repeated string enum_values = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the enumValues at the given index. */ public com.google.protobuf.ByteString getEnumValuesBytes(int index) { return enumValues_.getByteString(index); } /** *
     * Output only. Values the artifact can assume if it is a field of type ENUM.
     * This field is only set for artifacts of category SEGMENT or ATTRIBUTE.
     * 
* * repeated string enum_values = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index to set the value at. * @param value The enumValues to set. * @return This builder for chaining. */ public Builder setEnumValues( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureEnumValuesIsMutable(); enumValues_.set(index, value); onChanged(); return this; } /** *
     * Output only. Values the artifact can assume if it is a field of type ENUM.
     * This field is only set for artifacts of category SEGMENT or ATTRIBUTE.
     * 
* * repeated string enum_values = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enumValues to add. * @return This builder for chaining. */ public Builder addEnumValues( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureEnumValuesIsMutable(); enumValues_.add(value); onChanged(); return this; } /** *
     * Output only. Values the artifact can assume if it is a field of type ENUM.
     * This field is only set for artifacts of category SEGMENT or ATTRIBUTE.
     * 
* * repeated string enum_values = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param values The enumValues to add. * @return This builder for chaining. */ public Builder addAllEnumValues( java.lang.Iterable values) { ensureEnumValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, enumValues_); onChanged(); return this; } /** *
     * Output only. Values the artifact can assume if it is a field of type ENUM.
     * This field is only set for artifacts of category SEGMENT or ATTRIBUTE.
     * 
* * repeated string enum_values = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearEnumValues() { enumValues_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } /** *
     * Output only. Values the artifact can assume if it is a field of type ENUM.
     * This field is only set for artifacts of category SEGMENT or ATTRIBUTE.
     * 
* * repeated string enum_values = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes of the enumValues to add. * @return This builder for chaining. */ public Builder addEnumValuesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureEnumValuesIsMutable(); enumValues_.add(value); onChanged(); return this; } private int dataType_ = 0; /** *
     * Output only. This field determines the operators that can be used with the artifact
     * in WHERE clauses.
     * 
* * .google.ads.googleads.v10.enums.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataType data_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for dataType. */ @java.lang.Override public int getDataTypeValue() { return dataType_; } /** *
     * Output only. This field determines the operators that can be used with the artifact
     * in WHERE clauses.
     * 
* * .google.ads.googleads.v10.enums.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataType data_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for dataType to set. * @return This builder for chaining. */ public Builder setDataTypeValue(int value) { dataType_ = value; onChanged(); return this; } /** *
     * Output only. This field determines the operators that can be used with the artifact
     * in WHERE clauses.
     * 
* * .google.ads.googleads.v10.enums.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataType data_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The dataType. */ @java.lang.Override public com.google.ads.googleads.v10.enums.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataType getDataType() { @SuppressWarnings("deprecation") com.google.ads.googleads.v10.enums.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataType result = com.google.ads.googleads.v10.enums.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataType.valueOf(dataType_); return result == null ? com.google.ads.googleads.v10.enums.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataType.UNRECOGNIZED : result; } /** *
     * Output only. This field determines the operators that can be used with the artifact
     * in WHERE clauses.
     * 
* * .google.ads.googleads.v10.enums.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataType data_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The dataType to set. * @return This builder for chaining. */ public Builder setDataType(com.google.ads.googleads.v10.enums.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataType value) { if (value == null) { throw new NullPointerException(); } dataType_ = value.getNumber(); onChanged(); return this; } /** *
     * Output only. This field determines the operators that can be used with the artifact
     * in WHERE clauses.
     * 
* * .google.ads.googleads.v10.enums.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataType data_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearDataType() { dataType_ = 0; onChanged(); return this; } private java.lang.Object typeUrl_ = ""; /** *
     * Output only. The URL of proto describing the artifact's data type.
     * 
* * optional string type_url = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the typeUrl field is set. */ public boolean hasTypeUrl() { return ((bitField0_ & 0x00000200) != 0); } /** *
     * Output only. The URL of proto describing the artifact's data type.
     * 
* * optional string type_url = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The typeUrl. */ public java.lang.String getTypeUrl() { java.lang.Object ref = typeUrl_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); typeUrl_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Output only. The URL of proto describing the artifact's data type.
     * 
* * optional string type_url = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for typeUrl. */ public com.google.protobuf.ByteString getTypeUrlBytes() { java.lang.Object ref = typeUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); typeUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Output only. The URL of proto describing the artifact's data type.
     * 
* * optional string type_url = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The typeUrl to set. * @return This builder for chaining. */ public Builder setTypeUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; typeUrl_ = value; onChanged(); return this; } /** *
     * Output only. The URL of proto describing the artifact's data type.
     * 
* * optional string type_url = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearTypeUrl() { bitField0_ = (bitField0_ & ~0x00000200); typeUrl_ = getDefaultInstance().getTypeUrl(); onChanged(); return this; } /** *
     * Output only. The URL of proto describing the artifact's data type.
     * 
* * optional string type_url = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for typeUrl to set. * @return This builder for chaining. */ public Builder setTypeUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00000200; typeUrl_ = value; onChanged(); return this; } private boolean isRepeated_ ; /** *
     * Output only. Whether the field artifact is repeated.
     * 
* * optional bool is_repeated = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the isRepeated field is set. */ @java.lang.Override public boolean hasIsRepeated() { return ((bitField0_ & 0x00000400) != 0); } /** *
     * Output only. Whether the field artifact is repeated.
     * 
* * optional bool is_repeated = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The isRepeated. */ @java.lang.Override public boolean getIsRepeated() { return isRepeated_; } /** *
     * Output only. Whether the field artifact is repeated.
     * 
* * optional bool is_repeated = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The isRepeated to set. * @return This builder for chaining. */ public Builder setIsRepeated(boolean value) { bitField0_ |= 0x00000400; isRepeated_ = value; onChanged(); return this; } /** *
     * Output only. Whether the field artifact is repeated.
     * 
* * optional bool is_repeated = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearIsRepeated() { bitField0_ = (bitField0_ & ~0x00000400); isRepeated_ = false; 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.v10.resources.GoogleAdsField) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.GoogleAdsField) private static final com.google.ads.googleads.v10.resources.GoogleAdsField DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.GoogleAdsField(); } public static com.google.ads.googleads.v10.resources.GoogleAdsField getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GoogleAdsField 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.v10.resources.GoogleAdsField getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy