Class Campaign.ShoppingSetting
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.ads.googleads.v10.resources.Campaign.ShoppingSetting
-
- All Implemented Interfaces:
Campaign.ShoppingSettingOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.io.Serializable
- Enclosing class:
- Campaign
public static final class Campaign.ShoppingSetting extends com.google.protobuf.GeneratedMessageV3 implements Campaign.ShoppingSettingOrBuilder
The setting for Shopping campaigns. Defines the universe of products that can be advertised by the campaign, and how this campaign interacts with other Shopping campaigns.
Protobuf typegoogle.ads.googleads.v10.resources.Campaign.ShoppingSetting- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCampaign.ShoppingSetting.BuilderThe setting for Shopping campaigns.-
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_PRIORITY_FIELD_NUMBERstatic intENABLE_LOCAL_FIELD_NUMBERstatic intMERCHANT_ID_FIELD_NUMBERstatic intSALES_COUNTRY_FIELD_NUMBERstatic intUSE_VEHICLE_INVENTORY_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)intgetCampaignPriority()Priority of the campaign.static Campaign.ShoppingSettinggetDefaultInstance()Campaign.ShoppingSettinggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()booleangetEnableLocal()Whether to include local products.longgetMerchantId()Immutable.com.google.protobuf.Parser<Campaign.ShoppingSetting>getParserForType()java.lang.StringgetSalesCountry()Sales country of products to include in the campaign.com.google.protobuf.ByteStringgetSalesCountryBytes()Sales country of products to include in the campaign.intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()booleangetUseVehicleInventory()Immutable.booleanhasCampaignPriority()Priority of the campaign.booleanhasEnableLocal()Whether to include local products.inthashCode()booleanhasMerchantId()Immutable.booleanhasSalesCountry()Sales country of products to include in the campaign.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Campaign.ShoppingSetting.BuildernewBuilder()static Campaign.ShoppingSetting.BuildernewBuilder(Campaign.ShoppingSetting prototype)Campaign.ShoppingSetting.BuildernewBuilderForType()protected Campaign.ShoppingSetting.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Campaign.ShoppingSettingparseDelimitedFrom(java.io.InputStream input)static Campaign.ShoppingSettingparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Campaign.ShoppingSettingparseFrom(byte[] data)static Campaign.ShoppingSettingparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Campaign.ShoppingSettingparseFrom(com.google.protobuf.ByteString data)static Campaign.ShoppingSettingparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Campaign.ShoppingSettingparseFrom(com.google.protobuf.CodedInputStream input)static Campaign.ShoppingSettingparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Campaign.ShoppingSettingparseFrom(java.io.InputStream input)static Campaign.ShoppingSettingparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Campaign.ShoppingSettingparseFrom(java.nio.ByteBuffer data)static Campaign.ShoppingSettingparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Campaign.ShoppingSetting>parser()Campaign.ShoppingSetting.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
-
MERCHANT_ID_FIELD_NUMBER
public static final int MERCHANT_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SALES_COUNTRY_FIELD_NUMBER
public static final int SALES_COUNTRY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CAMPAIGN_PRIORITY_FIELD_NUMBER
public static final int CAMPAIGN_PRIORITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENABLE_LOCAL_FIELD_NUMBER
public static final int ENABLE_LOCAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
USE_VEHICLE_INVENTORY_FIELD_NUMBER
public static final int USE_VEHICLE_INVENTORY_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
-
hasMerchantId
public boolean hasMerchantId()
Immutable. ID of the Merchant Center account. This field is required for create operations. This field is immutable for Shopping campaigns.
optional int64 merchant_id = 5 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
hasMerchantIdin interfaceCampaign.ShoppingSettingOrBuilder- Returns:
- Whether the merchantId field is set.
-
getMerchantId
public long getMerchantId()
Immutable. ID of the Merchant Center account. This field is required for create operations. This field is immutable for Shopping campaigns.
optional int64 merchant_id = 5 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getMerchantIdin interfaceCampaign.ShoppingSettingOrBuilder- Returns:
- The merchantId.
-
hasSalesCountry
public boolean hasSalesCountry()
Sales country of products to include in the campaign. This field is required for Shopping campaigns. This field is optional for non-Shopping campaigns, but it must be equal to 'ZZ' if set.
optional string sales_country = 6;- Specified by:
hasSalesCountryin interfaceCampaign.ShoppingSettingOrBuilder- Returns:
- Whether the salesCountry field is set.
-
getSalesCountry
public java.lang.String getSalesCountry()
Sales country of products to include in the campaign. This field is required for Shopping campaigns. This field is optional for non-Shopping campaigns, but it must be equal to 'ZZ' if set.
optional string sales_country = 6;- Specified by:
getSalesCountryin interfaceCampaign.ShoppingSettingOrBuilder- Returns:
- The salesCountry.
-
getSalesCountryBytes
public com.google.protobuf.ByteString getSalesCountryBytes()
Sales country of products to include in the campaign. This field is required for Shopping campaigns. This field is optional for non-Shopping campaigns, but it must be equal to 'ZZ' if set.
optional string sales_country = 6;- Specified by:
getSalesCountryBytesin interfaceCampaign.ShoppingSettingOrBuilder- Returns:
- The bytes for salesCountry.
-
hasCampaignPriority
public boolean hasCampaignPriority()
Priority of the campaign. Campaigns with numerically higher priorities take precedence over those with lower priorities. This field is required for Shopping campaigns, with values between 0 and 2, inclusive. This field is optional for Smart Shopping campaigns, but must be equal to 3 if set.
optional int32 campaign_priority = 7;- Specified by:
hasCampaignPriorityin interfaceCampaign.ShoppingSettingOrBuilder- Returns:
- Whether the campaignPriority field is set.
-
getCampaignPriority
public int getCampaignPriority()
Priority of the campaign. Campaigns with numerically higher priorities take precedence over those with lower priorities. This field is required for Shopping campaigns, with values between 0 and 2, inclusive. This field is optional for Smart Shopping campaigns, but must be equal to 3 if set.
optional int32 campaign_priority = 7;- Specified by:
getCampaignPriorityin interfaceCampaign.ShoppingSettingOrBuilder- Returns:
- The campaignPriority.
-
hasEnableLocal
public boolean hasEnableLocal()
Whether to include local products.
optional bool enable_local = 8;- Specified by:
hasEnableLocalin interfaceCampaign.ShoppingSettingOrBuilder- Returns:
- Whether the enableLocal field is set.
-
getEnableLocal
public boolean getEnableLocal()
Whether to include local products.
optional bool enable_local = 8;- Specified by:
getEnableLocalin interfaceCampaign.ShoppingSettingOrBuilder- Returns:
- The enableLocal.
-
getUseVehicleInventory
public boolean getUseVehicleInventory()
Immutable. Whether to target Vehicle Listing inventory.
bool use_vehicle_inventory = 9 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getUseVehicleInventoryin interfaceCampaign.ShoppingSettingOrBuilder- Returns:
- The useVehicleInventory.
-
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 Campaign.ShoppingSetting parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Campaign.ShoppingSetting parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Campaign.ShoppingSetting parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Campaign.ShoppingSetting parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Campaign.ShoppingSetting parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Campaign.ShoppingSetting parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Campaign.ShoppingSetting parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Campaign.ShoppingSetting parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Campaign.ShoppingSetting parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Campaign.ShoppingSetting parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Campaign.ShoppingSetting parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Campaign.ShoppingSetting parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public Campaign.ShoppingSetting.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Campaign.ShoppingSetting.Builder newBuilder()
-
newBuilder
public static Campaign.ShoppingSetting.Builder newBuilder(Campaign.ShoppingSetting prototype)
-
toBuilder
public Campaign.ShoppingSetting.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Campaign.ShoppingSetting.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Campaign.ShoppingSetting getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Campaign.ShoppingSetting> parser()
-
getParserForType
public com.google.protobuf.Parser<Campaign.ShoppingSetting> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Campaign.ShoppingSetting getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-