Class SmartCampaignSetting
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.ads.googleads.v10.resources.SmartCampaignSetting
-
- All Implemented Interfaces:
SmartCampaignSettingOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.io.Serializable
public final class SmartCampaignSetting extends com.google.protobuf.GeneratedMessageV3 implements SmartCampaignSettingOrBuilder
Settings for configuring Smart campaigns.
Protobuf typegoogle.ads.googleads.v10.resources.SmartCampaignSetting- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSmartCampaignSetting.BuilderSettings for configuring Smart campaigns.static classSmartCampaignSetting.BusinessSettingCasestatic classSmartCampaignSetting.PhoneNumberPhone number and country code in smart campaign settings.static interfaceSmartCampaignSetting.PhoneNumberOrBuilder-
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 intADVERTISING_LANGUAGE_CODE_FIELD_NUMBERstatic intBUSINESS_LOCATION_ID_FIELD_NUMBERstatic intBUSINESS_NAME_FIELD_NUMBERstatic intCAMPAIGN_FIELD_NUMBERstatic intFINAL_URL_FIELD_NUMBERstatic intPHONE_NUMBER_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.StringgetAdvertisingLanguageCode()The ISO-639-1 language code to advertise in.com.google.protobuf.ByteStringgetAdvertisingLanguageCodeBytes()The ISO-639-1 language code to advertise in.longgetBusinessLocationId()The ID of the Business Profile location.java.lang.StringgetBusinessName()The name of the business.com.google.protobuf.ByteStringgetBusinessNameBytes()The name of the business.SmartCampaignSetting.BusinessSettingCasegetBusinessSettingCase()java.lang.StringgetCampaign()Output only.com.google.protobuf.ByteStringgetCampaignBytes()Output only.static SmartCampaignSettinggetDefaultInstance()SmartCampaignSettinggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()java.lang.StringgetFinalUrl()Landing page url given by user for this Campaign.com.google.protobuf.ByteStringgetFinalUrlBytes()Landing page url given by user for this Campaign.com.google.protobuf.Parser<SmartCampaignSetting>getParserForType()SmartCampaignSetting.PhoneNumbergetPhoneNumber()Phone number and country code.SmartCampaignSetting.PhoneNumberOrBuildergetPhoneNumberOrBuilder()Phone number and country code.java.lang.StringgetResourceName()Immutable.com.google.protobuf.ByteStringgetResourceNameBytes()Immutable.intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasBusinessLocationId()The ID of the Business Profile location.booleanhasBusinessName()The name of the business.inthashCode()booleanhasPhoneNumber()Phone number and country code.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static SmartCampaignSetting.BuildernewBuilder()static SmartCampaignSetting.BuildernewBuilder(SmartCampaignSetting prototype)SmartCampaignSetting.BuildernewBuilderForType()protected SmartCampaignSetting.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static SmartCampaignSettingparseDelimitedFrom(java.io.InputStream input)static SmartCampaignSettingparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SmartCampaignSettingparseFrom(byte[] data)static SmartCampaignSettingparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SmartCampaignSettingparseFrom(com.google.protobuf.ByteString data)static SmartCampaignSettingparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SmartCampaignSettingparseFrom(com.google.protobuf.CodedInputStream input)static SmartCampaignSettingparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SmartCampaignSettingparseFrom(java.io.InputStream input)static SmartCampaignSettingparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SmartCampaignSettingparseFrom(java.nio.ByteBuffer data)static SmartCampaignSettingparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<SmartCampaignSetting>parser()SmartCampaignSetting.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
-
PHONE_NUMBER_FIELD_NUMBER
public static final int PHONE_NUMBER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FINAL_URL_FIELD_NUMBER
public static final int FINAL_URL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ADVERTISING_LANGUAGE_CODE_FIELD_NUMBER
public static final int ADVERTISING_LANGUAGE_CODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BUSINESS_NAME_FIELD_NUMBER
public static final int BUSINESS_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BUSINESS_LOCATION_ID_FIELD_NUMBER
public static final int BUSINESS_LOCATION_ID_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
-
getBusinessSettingCase
public SmartCampaignSetting.BusinessSettingCase getBusinessSettingCase()
- Specified by:
getBusinessSettingCasein interfaceSmartCampaignSettingOrBuilder
-
getResourceName
public java.lang.String getResourceName()
Immutable. The resource name of the Smart campaign setting. Smart campaign setting resource names have the form: `customers/{customer_id}/smartCampaignSettings/{campaign_id}`string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNamein interfaceSmartCampaignSettingOrBuilder- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()
Immutable. The resource name of the Smart campaign setting. Smart campaign setting resource names have the form: `customers/{customer_id}/smartCampaignSettings/{campaign_id}`string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNameBytesin interfaceSmartCampaignSettingOrBuilder- Returns:
- The bytes for resourceName.
-
getCampaign
public java.lang.String getCampaign()
Output only. The campaign to which these settings apply.
string campaign = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getCampaignin interfaceSmartCampaignSettingOrBuilder- Returns:
- The campaign.
-
getCampaignBytes
public com.google.protobuf.ByteString getCampaignBytes()
Output only. The campaign to which these settings apply.
string campaign = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getCampaignBytesin interfaceSmartCampaignSettingOrBuilder- Returns:
- The bytes for campaign.
-
hasPhoneNumber
public boolean hasPhoneNumber()
Phone number and country code.
.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber phone_number = 3;- Specified by:
hasPhoneNumberin interfaceSmartCampaignSettingOrBuilder- Returns:
- Whether the phoneNumber field is set.
-
getPhoneNumber
public SmartCampaignSetting.PhoneNumber getPhoneNumber()
Phone number and country code.
.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber phone_number = 3;- Specified by:
getPhoneNumberin interfaceSmartCampaignSettingOrBuilder- Returns:
- The phoneNumber.
-
getPhoneNumberOrBuilder
public SmartCampaignSetting.PhoneNumberOrBuilder getPhoneNumberOrBuilder()
Phone number and country code.
.google.ads.googleads.v10.resources.SmartCampaignSetting.PhoneNumber phone_number = 3;- Specified by:
getPhoneNumberOrBuilderin interfaceSmartCampaignSettingOrBuilder
-
getFinalUrl
public java.lang.String getFinalUrl()
Landing page url given by user for this Campaign.
string final_url = 4;- Specified by:
getFinalUrlin interfaceSmartCampaignSettingOrBuilder- Returns:
- The finalUrl.
-
getFinalUrlBytes
public com.google.protobuf.ByteString getFinalUrlBytes()
Landing page url given by user for this Campaign.
string final_url = 4;- Specified by:
getFinalUrlBytesin interfaceSmartCampaignSettingOrBuilder- Returns:
- The bytes for finalUrl.
-
getAdvertisingLanguageCode
public java.lang.String getAdvertisingLanguageCode()
The ISO-639-1 language code to advertise in.
string advertising_language_code = 7;- Specified by:
getAdvertisingLanguageCodein interfaceSmartCampaignSettingOrBuilder- Returns:
- The advertisingLanguageCode.
-
getAdvertisingLanguageCodeBytes
public com.google.protobuf.ByteString getAdvertisingLanguageCodeBytes()
The ISO-639-1 language code to advertise in.
string advertising_language_code = 7;- Specified by:
getAdvertisingLanguageCodeBytesin interfaceSmartCampaignSettingOrBuilder- Returns:
- The bytes for advertisingLanguageCode.
-
hasBusinessName
public boolean hasBusinessName()
The name of the business.
string business_name = 5;- Specified by:
hasBusinessNamein interfaceSmartCampaignSettingOrBuilder- Returns:
- Whether the businessName field is set.
-
getBusinessName
public java.lang.String getBusinessName()
The name of the business.
string business_name = 5;- Specified by:
getBusinessNamein interfaceSmartCampaignSettingOrBuilder- Returns:
- The businessName.
-
getBusinessNameBytes
public com.google.protobuf.ByteString getBusinessNameBytes()
The name of the business.
string business_name = 5;- Specified by:
getBusinessNameBytesin interfaceSmartCampaignSettingOrBuilder- Returns:
- The bytes for businessName.
-
hasBusinessLocationId
public boolean hasBusinessLocationId()
The ID of the Business Profile location. The location ID can be fetched by Business Profile API with its form: accounts/{accountId}/locations/{locationId}. The last {locationId} component from the Business Profile API represents the business_location_id. See the [Business Profile API] (https://developers.google.com/my-business/reference/rest/v4/accounts.locations)int64 business_location_id = 6;- Specified by:
hasBusinessLocationIdin interfaceSmartCampaignSettingOrBuilder- Returns:
- Whether the businessLocationId field is set.
-
getBusinessLocationId
public long getBusinessLocationId()
The ID of the Business Profile location. The location ID can be fetched by Business Profile API with its form: accounts/{accountId}/locations/{locationId}. The last {locationId} component from the Business Profile API represents the business_location_id. See the [Business Profile API] (https://developers.google.com/my-business/reference/rest/v4/accounts.locations)int64 business_location_id = 6;- Specified by:
getBusinessLocationIdin interfaceSmartCampaignSettingOrBuilder- Returns:
- The businessLocationId.
-
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 SmartCampaignSetting parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SmartCampaignSetting parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SmartCampaignSetting parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SmartCampaignSetting parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SmartCampaignSetting parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SmartCampaignSetting parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SmartCampaignSetting parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static SmartCampaignSetting parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static SmartCampaignSetting parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static SmartCampaignSetting parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static SmartCampaignSetting parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static SmartCampaignSetting parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public SmartCampaignSetting.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static SmartCampaignSetting.Builder newBuilder()
-
newBuilder
public static SmartCampaignSetting.Builder newBuilder(SmartCampaignSetting prototype)
-
toBuilder
public SmartCampaignSetting.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SmartCampaignSetting.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static SmartCampaignSetting getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<SmartCampaignSetting> parser()
-
getParserForType
public com.google.protobuf.Parser<SmartCampaignSetting> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public SmartCampaignSetting getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-