Class LocalServicesLead
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.ads.googleads.v15.resources.LocalServicesLead
-
- All Implemented Interfaces:
LocalServicesLeadOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.io.Serializable
public final class LocalServicesLead extends com.google.protobuf.GeneratedMessageV3 implements LocalServicesLeadOrBuilder
Data from Local Services Lead. Contains details of Lead which is generated when user calls, messages or books service from advertiser. More info: https://ads.google.com/local-services-ads
Protobuf typegoogle.ads.googleads.v15.resources.LocalServicesLead- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLocalServicesLead.BuilderData from Local Services Lead.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCATEGORY_ID_FIELD_NUMBERstatic intCONTACT_DETAILS_FIELD_NUMBERstatic intCREATION_DATE_TIME_FIELD_NUMBERstatic intID_FIELD_NUMBERstatic intLEAD_CHARGED_FIELD_NUMBERstatic intLEAD_STATUS_FIELD_NUMBERstatic intLEAD_TYPE_FIELD_NUMBERstatic intLOCALE_FIELD_NUMBERstatic intNOTE_FIELD_NUMBERstatic intRESOURCE_NAME_FIELD_NUMBERstatic intSERVICE_ID_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetCategoryId()Output only.com.google.protobuf.ByteStringgetCategoryIdBytes()Output only.ContactDetailsgetContactDetails()Output only.ContactDetailsOrBuildergetContactDetailsOrBuilder()Output only.java.lang.StringgetCreationDateTime()Output only.com.google.protobuf.ByteStringgetCreationDateTimeBytes()Output only.static LocalServicesLeadgetDefaultInstance()LocalServicesLeadgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()longgetId()Output only.booleangetLeadCharged()Output only.LocalServicesLeadStatusEnum.LeadStatusgetLeadStatus()Output only.intgetLeadStatusValue()Output only.LocalServicesLeadTypeEnum.LeadTypegetLeadType()Output only.intgetLeadTypeValue()Output only.java.lang.StringgetLocale()Output only.com.google.protobuf.ByteStringgetLocaleBytes()Output only.NotegetNote()Output only.NoteOrBuildergetNoteOrBuilder()Output only.com.google.protobuf.Parser<LocalServicesLead>getParserForType()java.lang.StringgetResourceName()Output only.com.google.protobuf.ByteStringgetResourceNameBytes()Output only.intgetSerializedSize()java.lang.StringgetServiceId()Output only.com.google.protobuf.ByteStringgetServiceIdBytes()Output only.booleanhasContactDetails()Output only.inthashCode()booleanhasNote()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static LocalServicesLead.BuildernewBuilder()static LocalServicesLead.BuildernewBuilder(LocalServicesLead prototype)LocalServicesLead.BuildernewBuilderForType()protected LocalServicesLead.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static LocalServicesLeadparseDelimitedFrom(java.io.InputStream input)static LocalServicesLeadparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static LocalServicesLeadparseFrom(byte[] data)static LocalServicesLeadparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static LocalServicesLeadparseFrom(com.google.protobuf.ByteString data)static LocalServicesLeadparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static LocalServicesLeadparseFrom(com.google.protobuf.CodedInputStream input)static LocalServicesLeadparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static LocalServicesLeadparseFrom(java.io.InputStream input)static LocalServicesLeadparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static LocalServicesLeadparseFrom(java.nio.ByteBuffer data)static LocalServicesLeadparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<LocalServicesLead>parser()LocalServicesLead.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, 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
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CATEGORY_ID_FIELD_NUMBER
public static final int CATEGORY_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SERVICE_ID_FIELD_NUMBER
public static final int SERVICE_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONTACT_DETAILS_FIELD_NUMBER
public static final int CONTACT_DETAILS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LEAD_TYPE_FIELD_NUMBER
public static final int LEAD_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LEAD_STATUS_FIELD_NUMBER
public static final int LEAD_STATUS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CREATION_DATE_TIME_FIELD_NUMBER
public static final int CREATION_DATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LOCALE_FIELD_NUMBER
public static final int LOCALE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NOTE_FIELD_NUMBER
public static final int NOTE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LEAD_CHARGED_FIELD_NUMBER
public static final int LEAD_CHARGED_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
-
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 local services lead data. Local Services Lead resource name have the form `customers/{customer_id}/localServicesLead/{local_services_lead_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNamein interfaceLocalServicesLeadOrBuilder- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()
Output only. The resource name of the local services lead data. Local Services Lead resource name have the form `customers/{customer_id}/localServicesLead/{local_services_lead_id}`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNameBytesin interfaceLocalServicesLeadOrBuilder- Returns:
- The bytes for resourceName.
-
getId
public long getId()
Output only. ID of this Lead.
int64 id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIdin interfaceLocalServicesLeadOrBuilder- Returns:
- The id.
-
getCategoryId
public java.lang.String getCategoryId()
Output only. Service category of the lead. For example: `xcat:service_area_business_hvac`, `xcat:service_area_business_real_estate_agent`, etc. For more details see: https://developers.google.com/google-ads/api/data/codes-formats#local_services_ids
string category_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCategoryIdin interfaceLocalServicesLeadOrBuilder- Returns:
- The categoryId.
-
getCategoryIdBytes
public com.google.protobuf.ByteString getCategoryIdBytes()
Output only. Service category of the lead. For example: `xcat:service_area_business_hvac`, `xcat:service_area_business_real_estate_agent`, etc. For more details see: https://developers.google.com/google-ads/api/data/codes-formats#local_services_ids
string category_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCategoryIdBytesin interfaceLocalServicesLeadOrBuilder- Returns:
- The bytes for categoryId.
-
getServiceId
public java.lang.String getServiceId()
Output only. Service for the category. For example: `buyer_agent`, `seller_agent` for the category of `xcat:service_area_business_real_estate_agent`.
string service_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getServiceIdin interfaceLocalServicesLeadOrBuilder- Returns:
- The serviceId.
-
getServiceIdBytes
public com.google.protobuf.ByteString getServiceIdBytes()
Output only. Service for the category. For example: `buyer_agent`, `seller_agent` for the category of `xcat:service_area_business_real_estate_agent`.
string service_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getServiceIdBytesin interfaceLocalServicesLeadOrBuilder- Returns:
- The bytes for serviceId.
-
hasContactDetails
public boolean hasContactDetails()
Output only. Lead's contact details.
.google.ads.googleads.v15.resources.ContactDetails contact_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasContactDetailsin interfaceLocalServicesLeadOrBuilder- Returns:
- Whether the contactDetails field is set.
-
getContactDetails
public ContactDetails getContactDetails()
Output only. Lead's contact details.
.google.ads.googleads.v15.resources.ContactDetails contact_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getContactDetailsin interfaceLocalServicesLeadOrBuilder- Returns:
- The contactDetails.
-
getContactDetailsOrBuilder
public ContactDetailsOrBuilder getContactDetailsOrBuilder()
Output only. Lead's contact details.
.google.ads.googleads.v15.resources.ContactDetails contact_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getContactDetailsOrBuilderin interfaceLocalServicesLeadOrBuilder
-
getLeadTypeValue
public int getLeadTypeValue()
Output only. Type of Local Services lead: phone, message, booking, etc.
.google.ads.googleads.v15.enums.LocalServicesLeadTypeEnum.LeadType lead_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLeadTypeValuein interfaceLocalServicesLeadOrBuilder- Returns:
- The enum numeric value on the wire for leadType.
-
getLeadType
public LocalServicesLeadTypeEnum.LeadType getLeadType()
Output only. Type of Local Services lead: phone, message, booking, etc.
.google.ads.googleads.v15.enums.LocalServicesLeadTypeEnum.LeadType lead_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLeadTypein interfaceLocalServicesLeadOrBuilder- Returns:
- The leadType.
-
getLeadStatusValue
public int getLeadStatusValue()
Output only. Current status of lead.
.google.ads.googleads.v15.enums.LocalServicesLeadStatusEnum.LeadStatus lead_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLeadStatusValuein interfaceLocalServicesLeadOrBuilder- Returns:
- The enum numeric value on the wire for leadStatus.
-
getLeadStatus
public LocalServicesLeadStatusEnum.LeadStatus getLeadStatus()
Output only. Current status of lead.
.google.ads.googleads.v15.enums.LocalServicesLeadStatusEnum.LeadStatus lead_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLeadStatusin interfaceLocalServicesLeadOrBuilder- Returns:
- The leadStatus.
-
getCreationDateTime
public java.lang.String getCreationDateTime()
Output only. The date time at which lead was created by Local Services Ads. The format is "YYYY-MM-DD HH:MM:SS" in the Google Ads account's timezone. Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
string creation_date_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreationDateTimein interfaceLocalServicesLeadOrBuilder- Returns:
- The creationDateTime.
-
getCreationDateTimeBytes
public com.google.protobuf.ByteString getCreationDateTimeBytes()
Output only. The date time at which lead was created by Local Services Ads. The format is "YYYY-MM-DD HH:MM:SS" in the Google Ads account's timezone. Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
string creation_date_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreationDateTimeBytesin interfaceLocalServicesLeadOrBuilder- Returns:
- The bytes for creationDateTime.
-
getLocale
public java.lang.String getLocale()
Output only. Language used by the Local Services provider linked to lead. See https://developers.google.com/google-ads/api/data/codes-formats#locales
string locale = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLocalein interfaceLocalServicesLeadOrBuilder- Returns:
- The locale.
-
getLocaleBytes
public com.google.protobuf.ByteString getLocaleBytes()
Output only. Language used by the Local Services provider linked to lead. See https://developers.google.com/google-ads/api/data/codes-formats#locales
string locale = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLocaleBytesin interfaceLocalServicesLeadOrBuilder- Returns:
- The bytes for locale.
-
hasNote
public boolean hasNote()
Output only. Note added by advertiser for the lead.
optional .google.ads.googleads.v15.resources.Note note = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasNotein interfaceLocalServicesLeadOrBuilder- Returns:
- Whether the note field is set.
-
getNote
public Note getNote()
Output only. Note added by advertiser for the lead.
optional .google.ads.googleads.v15.resources.Note note = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNotein interfaceLocalServicesLeadOrBuilder- Returns:
- The note.
-
getNoteOrBuilder
public NoteOrBuilder getNoteOrBuilder()
Output only. Note added by advertiser for the lead.
optional .google.ads.googleads.v15.resources.Note note = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNoteOrBuilderin interfaceLocalServicesLeadOrBuilder
-
getLeadCharged
public boolean getLeadCharged()
Output only. True if the advertiser was charged for the lead.
bool lead_charged = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLeadChargedin interfaceLocalServicesLeadOrBuilder- Returns:
- The leadCharged.
-
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 LocalServicesLead parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LocalServicesLead parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LocalServicesLead parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LocalServicesLead parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LocalServicesLead parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LocalServicesLead parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LocalServicesLead parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static LocalServicesLead parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static LocalServicesLead parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static LocalServicesLead parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static LocalServicesLead parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static LocalServicesLead parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public LocalServicesLead.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static LocalServicesLead.Builder newBuilder()
-
newBuilder
public static LocalServicesLead.Builder newBuilder(LocalServicesLead prototype)
-
toBuilder
public LocalServicesLead.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected LocalServicesLead.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static LocalServicesLead getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<LocalServicesLead> parser()
-
getParserForType
public com.google.protobuf.Parser<LocalServicesLead> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public LocalServicesLead getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-