Class DomainCategory
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.ads.googleads.v10.resources.DomainCategory
-
- All Implemented Interfaces:
DomainCategoryOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.io.Serializable
public final class DomainCategory extends com.google.protobuf.GeneratedMessageV3 implements DomainCategoryOrBuilder
A category generated automatically by crawling a domain. If a campaign uses the DynamicSearchAdsSetting, then domain categories will be generated for the domain. The categories can be targeted using WebpageConditionInfo. See: https://support.google.com/google-ads/answer/2471185
Protobuf typegoogle.ads.googleads.v10.resources.DomainCategory- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDomainCategory.BuilderA category generated automatically by crawling a domain.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCAMPAIGN_FIELD_NUMBERstatic intCATEGORY_FIELD_NUMBERstatic intCATEGORY_RANK_FIELD_NUMBERstatic intCOVERAGE_FRACTION_FIELD_NUMBERstatic intDOMAIN_FIELD_NUMBERstatic intHAS_CHILDREN_FIELD_NUMBERstatic intLANGUAGE_CODE_FIELD_NUMBERstatic intRECOMMENDED_CPC_BID_MICROS_FIELD_NUMBERstatic intRESOURCE_NAME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetCampaign()Output only.com.google.protobuf.ByteStringgetCampaignBytes()Output only.java.lang.StringgetCategory()Output only.com.google.protobuf.ByteStringgetCategoryBytes()Output only.longgetCategoryRank()Output only.doublegetCoverageFraction()Output only.static DomainCategorygetDefaultInstance()DomainCategorygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()java.lang.StringgetDomain()Output only.com.google.protobuf.ByteStringgetDomainBytes()Output only.booleangetHasChildren()Output only.java.lang.StringgetLanguageCode()Output only.com.google.protobuf.ByteStringgetLanguageCodeBytes()Output only.com.google.protobuf.Parser<DomainCategory>getParserForType()longgetRecommendedCpcBidMicros()Output only.java.lang.StringgetResourceName()Output only.com.google.protobuf.ByteStringgetResourceNameBytes()Output only.intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasCampaign()Output only.booleanhasCategory()Output only.booleanhasCategoryRank()Output only.booleanhasCoverageFraction()Output only.booleanhasDomain()Output only.booleanhasHasChildren()Output only.inthashCode()booleanhasLanguageCode()Output only.booleanhasRecommendedCpcBidMicros()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static DomainCategory.BuildernewBuilder()static DomainCategory.BuildernewBuilder(DomainCategory prototype)DomainCategory.BuildernewBuilderForType()protected DomainCategory.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static DomainCategoryparseDelimitedFrom(java.io.InputStream input)static DomainCategoryparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DomainCategoryparseFrom(byte[] data)static DomainCategoryparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DomainCategoryparseFrom(com.google.protobuf.ByteString data)static DomainCategoryparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DomainCategoryparseFrom(com.google.protobuf.CodedInputStream input)static DomainCategoryparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DomainCategoryparseFrom(java.io.InputStream input)static DomainCategoryparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DomainCategoryparseFrom(java.nio.ByteBuffer data)static DomainCategoryparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<DomainCategory>parser()DomainCategory.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
RESOURCE_NAME_FIELD_NUMBER
public static final int RESOURCE_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CAMPAIGN_FIELD_NUMBER
public static final int CAMPAIGN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CATEGORY_FIELD_NUMBER
public static final int CATEGORY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LANGUAGE_CODE_FIELD_NUMBER
public static final int LANGUAGE_CODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DOMAIN_FIELD_NUMBER
public static final int DOMAIN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
COVERAGE_FRACTION_FIELD_NUMBER
public static final int COVERAGE_FRACTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CATEGORY_RANK_FIELD_NUMBER
public static final int CATEGORY_RANK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HAS_CHILDREN_FIELD_NUMBER
public static final int HAS_CHILDREN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RECOMMENDED_CPC_BID_MICROS_FIELD_NUMBER
public static final int RECOMMENDED_CPC_BID_MICROS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
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
-
getResourceName
public java.lang.String getResourceName()
Output only. The resource name of the domain category. Domain category resource names have the form: `customers/{customer_id}/domainCategories/{campaign_id}~{category_base64}~{language_code}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNamein interfaceDomainCategoryOrBuilder- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()
Output only. The resource name of the domain category. Domain category resource names have the form: `customers/{customer_id}/domainCategories/{campaign_id}~{category_base64}~{language_code}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNameBytesin interfaceDomainCategoryOrBuilder- Returns:
- The bytes for resourceName.
-
hasCampaign
public boolean hasCampaign()
Output only. The campaign this category is recommended for.
optional string campaign = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
hasCampaignin interfaceDomainCategoryOrBuilder- Returns:
- Whether the campaign field is set.
-
getCampaign
public java.lang.String getCampaign()
Output only. The campaign this category is recommended for.
optional string campaign = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getCampaignin interfaceDomainCategoryOrBuilder- Returns:
- The campaign.
-
getCampaignBytes
public com.google.protobuf.ByteString getCampaignBytes()
Output only. The campaign this category is recommended for.
optional string campaign = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getCampaignBytesin interfaceDomainCategoryOrBuilder- Returns:
- The bytes for campaign.
-
hasCategory
public boolean hasCategory()
Output only. Recommended category for the website domain. e.g. if you have a website about electronics, the categories could be "cameras", "televisions", etc.
optional string category = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCategoryin interfaceDomainCategoryOrBuilder- Returns:
- Whether the category field is set.
-
getCategory
public java.lang.String getCategory()
Output only. Recommended category for the website domain. e.g. if you have a website about electronics, the categories could be "cameras", "televisions", etc.
optional string category = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCategoryin interfaceDomainCategoryOrBuilder- Returns:
- The category.
-
getCategoryBytes
public com.google.protobuf.ByteString getCategoryBytes()
Output only. Recommended category for the website domain. e.g. if you have a website about electronics, the categories could be "cameras", "televisions", etc.
optional string category = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCategoryBytesin interfaceDomainCategoryOrBuilder- Returns:
- The bytes for category.
-
hasLanguageCode
public boolean hasLanguageCode()
Output only. The language code specifying the language of the website. e.g. "en" for English. The language can be specified in the DynamicSearchAdsSetting required for dynamic search ads. This is the language of the pages from your website that you want Google Ads to find, create ads for, and match searches with.
optional string language_code = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasLanguageCodein interfaceDomainCategoryOrBuilder- Returns:
- Whether the languageCode field is set.
-
getLanguageCode
public java.lang.String getLanguageCode()
Output only. The language code specifying the language of the website. e.g. "en" for English. The language can be specified in the DynamicSearchAdsSetting required for dynamic search ads. This is the language of the pages from your website that you want Google Ads to find, create ads for, and match searches with.
optional string language_code = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLanguageCodein interfaceDomainCategoryOrBuilder- Returns:
- The languageCode.
-
getLanguageCodeBytes
public com.google.protobuf.ByteString getLanguageCodeBytes()
Output only. The language code specifying the language of the website. e.g. "en" for English. The language can be specified in the DynamicSearchAdsSetting required for dynamic search ads. This is the language of the pages from your website that you want Google Ads to find, create ads for, and match searches with.
optional string language_code = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLanguageCodeBytesin interfaceDomainCategoryOrBuilder- Returns:
- The bytes for languageCode.
-
hasDomain
public boolean hasDomain()
Output only. The domain for the website. The domain can be specified in the DynamicSearchAdsSetting required for dynamic search ads.
optional string domain = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasDomainin interfaceDomainCategoryOrBuilder- Returns:
- Whether the domain field is set.
-
getDomain
public java.lang.String getDomain()
Output only. The domain for the website. The domain can be specified in the DynamicSearchAdsSetting required for dynamic search ads.
optional string domain = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDomainin interfaceDomainCategoryOrBuilder- Returns:
- The domain.
-
getDomainBytes
public com.google.protobuf.ByteString getDomainBytes()
Output only. The domain for the website. The domain can be specified in the DynamicSearchAdsSetting required for dynamic search ads.
optional string domain = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDomainBytesin interfaceDomainCategoryOrBuilder- Returns:
- The bytes for domain.
-
hasCoverageFraction
public boolean hasCoverageFraction()
Output only. Fraction of pages on your site that this category matches.
optional double coverage_fraction = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCoverageFractionin interfaceDomainCategoryOrBuilder- Returns:
- Whether the coverageFraction field is set.
-
getCoverageFraction
public double getCoverageFraction()
Output only. Fraction of pages on your site that this category matches.
optional double coverage_fraction = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCoverageFractionin interfaceDomainCategoryOrBuilder- Returns:
- The coverageFraction.
-
hasCategoryRank
public boolean hasCategoryRank()
Output only. The position of this category in the set of categories. Lower numbers indicate a better match for the domain. null indicates not recommended.
optional int64 category_rank = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCategoryRankin interfaceDomainCategoryOrBuilder- Returns:
- Whether the categoryRank field is set.
-
getCategoryRank
public long getCategoryRank()
Output only. The position of this category in the set of categories. Lower numbers indicate a better match for the domain. null indicates not recommended.
optional int64 category_rank = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCategoryRankin interfaceDomainCategoryOrBuilder- Returns:
- The categoryRank.
-
hasHasChildren
public boolean hasHasChildren()
Output only. Indicates whether this category has sub-categories.
optional bool has_children = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasHasChildrenin interfaceDomainCategoryOrBuilder- Returns:
- Whether the hasChildren field is set.
-
getHasChildren
public boolean getHasChildren()
Output only. Indicates whether this category has sub-categories.
optional bool has_children = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getHasChildrenin interfaceDomainCategoryOrBuilder- Returns:
- The hasChildren.
-
hasRecommendedCpcBidMicros
public boolean hasRecommendedCpcBidMicros()
Output only. The recommended cost per click for the category.
optional int64 recommended_cpc_bid_micros = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasRecommendedCpcBidMicrosin interfaceDomainCategoryOrBuilder- Returns:
- Whether the recommendedCpcBidMicros field is set.
-
getRecommendedCpcBidMicros
public long getRecommendedCpcBidMicros()
Output only. The recommended cost per click for the category.
optional int64 recommended_cpc_bid_micros = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRecommendedCpcBidMicrosin interfaceDomainCategoryOrBuilder- Returns:
- The recommendedCpcBidMicros.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static DomainCategory parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DomainCategory parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DomainCategory parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DomainCategory parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DomainCategory parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DomainCategory parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DomainCategory parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DomainCategory parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static DomainCategory parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static DomainCategory parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DomainCategory parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DomainCategory parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public DomainCategory.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static DomainCategory.Builder newBuilder()
-
newBuilder
public static DomainCategory.Builder newBuilder(DomainCategory prototype)
-
toBuilder
public DomainCategory.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected DomainCategory.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static DomainCategory getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<DomainCategory> parser()
-
getParserForType
public com.google.protobuf.Parser<DomainCategory> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public DomainCategory getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-