Class GoogleAdsField.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<GoogleAdsField.Builder>
com.google.ads.googleads.v18.resources.GoogleAdsField.Builder
- All Implemented Interfaces:
GoogleAdsFieldOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GoogleAdsField
public static final class GoogleAdsField.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<GoogleAdsField.Builder>
implements GoogleAdsFieldOrBuilder
A field or resource (artifact) used by GoogleAdsService.Protobuf type
google.ads.googleads.v18.resources.GoogleAdsField-
Method Summary
Modifier and TypeMethodDescriptionaddAllAttributeResources(Iterable<String> values) Output only.addAllEnumValues(Iterable<String> values) Output only.addAllMetrics(Iterable<String> values) Output only.addAllSegments(Iterable<String> values) Output only.addAllSelectableWith(Iterable<String> values) Output only.addAttributeResources(String value) Output only.addAttributeResourcesBytes(com.google.protobuf.ByteString value) Output only.addEnumValues(String value) Output only.addEnumValuesBytes(com.google.protobuf.ByteString value) Output only.addMetrics(String value) Output only.addMetricsBytes(com.google.protobuf.ByteString value) Output only.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addSegments(String value) Output only.addSegmentsBytes(com.google.protobuf.ByteString value) Output only.addSelectableWith(String value) Output only.addSelectableWithBytes(com.google.protobuf.ByteString value) Output only.build()clear()Output only.Output only.Output only.Output only.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Output only.Output only.Output only.Output only.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Output only.Output only.Output only.Output only.Output only.Output only.clone()getAttributeResources(int index) Output only.com.google.protobuf.ByteStringgetAttributeResourcesBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.Output only.intOutput only.Output only.intOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEnumValues(int index) Output only.com.google.protobuf.ByteStringgetEnumValuesBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.booleanOutput only.booleanOutput only.getMetrics(int index) Output only.com.google.protobuf.ByteStringgetMetricsBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.getName()Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.getSegments(int index) Output only.com.google.protobuf.ByteStringgetSegmentsBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.booleanOutput only.getSelectableWith(int index) Output only.com.google.protobuf.ByteStringgetSelectableWithBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.booleanOutput only.Output only.com.google.protobuf.ByteStringOutput only.booleanOutput only.booleanOutput only.booleanhasName()Output only.booleanOutput only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(GoogleAdsField other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final GoogleAdsField.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setAttributeResources(int index, String value) Output only.Output only.setCategoryValue(int value) Output only.Output only.setDataTypeValue(int value) Output only.setEnumValues(int index, String value) Output only.setFilterable(boolean value) Output only.setIsRepeated(boolean value) Output only.setMetrics(int index, String value) Output only.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setResourceName(String value) Output only.setResourceNameBytes(com.google.protobuf.ByteString value) Output only.setSegments(int index, String value) Output only.setSelectable(boolean value) Output only.setSelectableWith(int index, String value) Output only.setSortable(boolean value) Output only.setTypeUrl(String value) Output only.setTypeUrlBytes(com.google.protobuf.ByteString value) Output only.final GoogleAdsField.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<GoogleAdsField.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<GoogleAdsField.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<GoogleAdsField.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<GoogleAdsField.Builder>
-
setField
public GoogleAdsField.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GoogleAdsField.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GoogleAdsField.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<GoogleAdsField.Builder>
-
setRepeatedField
public GoogleAdsField.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GoogleAdsField.Builder>
-
addRepeatedField
public GoogleAdsField.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GoogleAdsField.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GoogleAdsField.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<GoogleAdsField.Builder>
-
mergeFrom
public GoogleAdsField.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GoogleAdsField.Builder>- Throws:
IOException
-
getResourceName
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) = { ... }- Specified by:
getResourceNamein interfaceGoogleAdsFieldOrBuilder- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()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) = { ... }- Specified by:
getResourceNameBytesin interfaceGoogleAdsFieldOrBuilder- Returns:
- The bytes for resourceName.
-
setResourceName
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) = { ... }- Parameters:
value- The resourceName to set.- Returns:
- This builder for chaining.
-
clearResourceName
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) = { ... }- Returns:
- This builder for chaining.
-
setResourceNameBytes
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) = { ... }- Parameters:
value- The bytes for resourceName to set.- Returns:
- This builder for chaining.
-
hasName
public boolean hasName()Output only. The name of the artifact.
optional string name = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasNamein interfaceGoogleAdsFieldOrBuilder- Returns:
- Whether the name field is set.
-
getName
Output only. The name of the artifact.
optional string name = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceGoogleAdsFieldOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Output only. The name of the artifact.
optional string name = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfaceGoogleAdsFieldOrBuilder- Returns:
- The bytes for name.
-
setName
Output only. The name of the artifact.
optional string name = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Output only. The name of the artifact.
optional string name = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setNameBytes
Output only. The name of the artifact.
optional string name = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getCategoryValue
public int getCategoryValue()Output only. The category of the artifact.
.google.ads.googleads.v18.enums.GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategory category = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCategoryValuein interfaceGoogleAdsFieldOrBuilder- Returns:
- The enum numeric value on the wire for category.
-
setCategoryValue
Output only. The category of the artifact.
.google.ads.googleads.v18.enums.GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategory category = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for category to set.- Returns:
- This builder for chaining.
-
getCategory
Output only. The category of the artifact.
.google.ads.googleads.v18.enums.GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategory category = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCategoryin interfaceGoogleAdsFieldOrBuilder- Returns:
- The category.
-
setCategory
Output only. The category of the artifact.
.google.ads.googleads.v18.enums.GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategory category = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The category to set.- Returns:
- This builder for chaining.
-
clearCategory
Output only. The category of the artifact.
.google.ads.googleads.v18.enums.GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategory category = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasSelectable
public boolean hasSelectable()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];- Specified by:
hasSelectablein interfaceGoogleAdsFieldOrBuilder- Returns:
- Whether the selectable field is set.
-
getSelectable
public boolean getSelectable()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];- Specified by:
getSelectablein interfaceGoogleAdsFieldOrBuilder- Returns:
- The selectable.
-
setSelectable
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];- Parameters:
value- The selectable to set.- Returns:
- This builder for chaining.
-
clearSelectable
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];- Returns:
- This builder for chaining.
-
hasFilterable
public boolean hasFilterable()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];- Specified by:
hasFilterablein interfaceGoogleAdsFieldOrBuilder- Returns:
- Whether the filterable field is set.
-
getFilterable
public boolean getFilterable()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];- Specified by:
getFilterablein interfaceGoogleAdsFieldOrBuilder- Returns:
- The filterable.
-
setFilterable
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];- Parameters:
value- The filterable to set.- Returns:
- This builder for chaining.
-
clearFilterable
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];- Returns:
- This builder for chaining.
-
hasSortable
public boolean hasSortable()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];- Specified by:
hasSortablein interfaceGoogleAdsFieldOrBuilder- Returns:
- Whether the sortable field is set.
-
getSortable
public boolean getSortable()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];- Specified by:
getSortablein interfaceGoogleAdsFieldOrBuilder- Returns:
- The sortable.
-
setSortable
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];- Parameters:
value- The sortable to set.- Returns:
- This builder for chaining.
-
clearSortable
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];- Returns:
- This builder for chaining.
-
getSelectableWithList
public com.google.protobuf.ProtocolStringList getSelectableWithList()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];- Specified by:
getSelectableWithListin interfaceGoogleAdsFieldOrBuilder- Returns:
- A list containing the selectableWith.
-
getSelectableWithCount
public int getSelectableWithCount()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];- Specified by:
getSelectableWithCountin interfaceGoogleAdsFieldOrBuilder- Returns:
- The count of selectableWith.
-
getSelectableWith
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];- Specified by:
getSelectableWithin interfaceGoogleAdsFieldOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The selectableWith at the given index.
-
getSelectableWithBytes
public com.google.protobuf.ByteString getSelectableWithBytes(int 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];- Specified by:
getSelectableWithBytesin interfaceGoogleAdsFieldOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the selectableWith at the given index.
-
setSelectableWith
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];- Parameters:
index- The index to set the value at.value- The selectableWith to set.- Returns:
- This builder for chaining.
-
addSelectableWith
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];- Parameters:
value- The selectableWith to add.- Returns:
- This builder for chaining.
-
addAllSelectableWith
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];- Parameters:
values- The selectableWith to add.- Returns:
- This builder for chaining.
-
clearSelectableWith
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];- Returns:
- This builder for chaining.
-
addSelectableWithBytes
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];- Parameters:
value- The bytes of the selectableWith to add.- Returns:
- This builder for chaining.
-
getAttributeResourcesList
public com.google.protobuf.ProtocolStringList getAttributeResourcesList()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];- Specified by:
getAttributeResourcesListin interfaceGoogleAdsFieldOrBuilder- Returns:
- A list containing the attributeResources.
-
getAttributeResourcesCount
public int getAttributeResourcesCount()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];- Specified by:
getAttributeResourcesCountin interfaceGoogleAdsFieldOrBuilder- Returns:
- The count of attributeResources.
-
getAttributeResources
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];- Specified by:
getAttributeResourcesin interfaceGoogleAdsFieldOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The attributeResources at the given index.
-
getAttributeResourcesBytes
public com.google.protobuf.ByteString getAttributeResourcesBytes(int 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];- Specified by:
getAttributeResourcesBytesin interfaceGoogleAdsFieldOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the attributeResources at the given index.
-
setAttributeResources
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];- Parameters:
index- The index to set the value at.value- The attributeResources to set.- Returns:
- This builder for chaining.
-
addAttributeResources
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];- Parameters:
value- The attributeResources to add.- Returns:
- This builder for chaining.
-
addAllAttributeResources
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];- Parameters:
values- The attributeResources to add.- Returns:
- This builder for chaining.
-
clearAttributeResources
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];- Returns:
- This builder for chaining.
-
addAttributeResourcesBytes
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];- Parameters:
value- The bytes of the attributeResources to add.- Returns:
- This builder for chaining.
-
getMetricsList
public com.google.protobuf.ProtocolStringList getMetricsList()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];- Specified by:
getMetricsListin interfaceGoogleAdsFieldOrBuilder- Returns:
- A list containing the metrics.
-
getMetricsCount
public int getMetricsCount()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];- Specified by:
getMetricsCountin interfaceGoogleAdsFieldOrBuilder- Returns:
- The count of metrics.
-
getMetrics
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];- Specified by:
getMetricsin interfaceGoogleAdsFieldOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The metrics at the given index.
-
getMetricsBytes
public com.google.protobuf.ByteString getMetricsBytes(int 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];- Specified by:
getMetricsBytesin interfaceGoogleAdsFieldOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the metrics at the given index.
-
setMetrics
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];- Parameters:
index- The index to set the value at.value- The metrics to set.- Returns:
- This builder for chaining.
-
addMetrics
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];- Parameters:
value- The metrics to add.- Returns:
- This builder for chaining.
-
addAllMetrics
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];- Parameters:
values- The metrics to add.- Returns:
- This builder for chaining.
-
clearMetrics
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];- Returns:
- This builder for chaining.
-
addMetricsBytes
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];- Parameters:
value- The bytes of the metrics to add.- Returns:
- This builder for chaining.
-
getSegmentsList
public com.google.protobuf.ProtocolStringList getSegmentsList()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];- Specified by:
getSegmentsListin interfaceGoogleAdsFieldOrBuilder- Returns:
- A list containing the segments.
-
getSegmentsCount
public int getSegmentsCount()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];- Specified by:
getSegmentsCountin interfaceGoogleAdsFieldOrBuilder- Returns:
- The count of segments.
-
getSegments
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];- Specified by:
getSegmentsin interfaceGoogleAdsFieldOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The segments at the given index.
-
getSegmentsBytes
public com.google.protobuf.ByteString getSegmentsBytes(int 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];- Specified by:
getSegmentsBytesin interfaceGoogleAdsFieldOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the segments at the given index.
-
setSegments
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];- Parameters:
index- The index to set the value at.value- The segments to set.- Returns:
- This builder for chaining.
-
addSegments
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];- Parameters:
value- The segments to add.- Returns:
- This builder for chaining.
-
addAllSegments
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];- Parameters:
values- The segments to add.- Returns:
- This builder for chaining.
-
clearSegments
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];- Returns:
- This builder for chaining.
-
addSegmentsBytes
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];- Parameters:
value- The bytes of the segments to add.- Returns:
- This builder for chaining.
-
getEnumValuesList
public com.google.protobuf.ProtocolStringList getEnumValuesList()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];- Specified by:
getEnumValuesListin interfaceGoogleAdsFieldOrBuilder- Returns:
- A list containing the enumValues.
-
getEnumValuesCount
public int getEnumValuesCount()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];- Specified by:
getEnumValuesCountin interfaceGoogleAdsFieldOrBuilder- Returns:
- The count of enumValues.
-
getEnumValues
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];- Specified by:
getEnumValuesin interfaceGoogleAdsFieldOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The enumValues at the given index.
-
getEnumValuesBytes
public com.google.protobuf.ByteString getEnumValuesBytes(int 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];- Specified by:
getEnumValuesBytesin interfaceGoogleAdsFieldOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the enumValues at the given index.
-
setEnumValues
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];- Parameters:
index- The index to set the value at.value- The enumValues to set.- Returns:
- This builder for chaining.
-
addEnumValues
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];- Parameters:
value- The enumValues to add.- Returns:
- This builder for chaining.
-
addAllEnumValues
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];- Parameters:
values- The enumValues to add.- Returns:
- This builder for chaining.
-
clearEnumValues
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];- Returns:
- This builder for chaining.
-
addEnumValuesBytes
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];- Parameters:
value- The bytes of the enumValues to add.- Returns:
- This builder for chaining.
-
getDataTypeValue
public int getDataTypeValue()Output only. This field determines the operators that can be used with the artifact in WHERE clauses.
.google.ads.googleads.v18.enums.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataType data_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDataTypeValuein interfaceGoogleAdsFieldOrBuilder- Returns:
- The enum numeric value on the wire for dataType.
-
setDataTypeValue
Output only. This field determines the operators that can be used with the artifact in WHERE clauses.
.google.ads.googleads.v18.enums.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataType data_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for dataType to set.- Returns:
- This builder for chaining.
-
getDataType
Output only. This field determines the operators that can be used with the artifact in WHERE clauses.
.google.ads.googleads.v18.enums.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataType data_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDataTypein interfaceGoogleAdsFieldOrBuilder- Returns:
- The dataType.
-
setDataType
Output only. This field determines the operators that can be used with the artifact in WHERE clauses.
.google.ads.googleads.v18.enums.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataType data_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The dataType to set.- Returns:
- This builder for chaining.
-
clearDataType
Output only. This field determines the operators that can be used with the artifact in WHERE clauses.
.google.ads.googleads.v18.enums.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataType data_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasTypeUrl
public boolean hasTypeUrl()Output only. The URL of proto describing the artifact's data type.
optional string type_url = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasTypeUrlin interfaceGoogleAdsFieldOrBuilder- Returns:
- Whether the typeUrl field is set.
-
getTypeUrl
Output only. The URL of proto describing the artifact's data type.
optional string type_url = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTypeUrlin interfaceGoogleAdsFieldOrBuilder- Returns:
- The typeUrl.
-
getTypeUrlBytes
public com.google.protobuf.ByteString getTypeUrlBytes()Output only. The URL of proto describing the artifact's data type.
optional string type_url = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTypeUrlBytesin interfaceGoogleAdsFieldOrBuilder- Returns:
- The bytes for typeUrl.
-
setTypeUrl
Output only. The URL of proto describing the artifact's data type.
optional string type_url = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The typeUrl to set.- Returns:
- This builder for chaining.
-
clearTypeUrl
Output only. The URL of proto describing the artifact's data type.
optional string type_url = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setTypeUrlBytes
Output only. The URL of proto describing the artifact's data type.
optional string type_url = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for typeUrl to set.- Returns:
- This builder for chaining.
-
hasIsRepeated
public boolean hasIsRepeated()Output only. Whether the field artifact is repeated.
optional bool is_repeated = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasIsRepeatedin interfaceGoogleAdsFieldOrBuilder- Returns:
- Whether the isRepeated field is set.
-
getIsRepeated
public boolean getIsRepeated()Output only. Whether the field artifact is repeated.
optional bool is_repeated = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIsRepeatedin interfaceGoogleAdsFieldOrBuilder- Returns:
- The isRepeated.
-
setIsRepeated
Output only. Whether the field artifact is repeated.
optional bool is_repeated = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The isRepeated to set.- Returns:
- This builder for chaining.
-
clearIsRepeated
Output only. Whether the field artifact is repeated.
optional bool is_repeated = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setUnknownFields
public final GoogleAdsField.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GoogleAdsField.Builder>
-
mergeUnknownFields
public final GoogleAdsField.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GoogleAdsField.Builder>
-