Class LocalServicesLead

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.ads.googleads.v18.resources.LocalServicesLead
All Implemented Interfaces:
LocalServicesLeadOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, 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 type google.ads.googleads.v18.resources.LocalServicesLead
See Also:
  • Field Details

    • RESOURCE_NAME_FIELD_NUMBER

      public static final int RESOURCE_NAME_FIELD_NUMBER
      See Also:
    • ID_FIELD_NUMBER

      public static final int ID_FIELD_NUMBER
      See Also:
    • CATEGORY_ID_FIELD_NUMBER

      public static final int CATEGORY_ID_FIELD_NUMBER
      See Also:
    • SERVICE_ID_FIELD_NUMBER

      public static final int SERVICE_ID_FIELD_NUMBER
      See Also:
    • CONTACT_DETAILS_FIELD_NUMBER

      public static final int CONTACT_DETAILS_FIELD_NUMBER
      See Also:
    • LEAD_TYPE_FIELD_NUMBER

      public static final int LEAD_TYPE_FIELD_NUMBER
      See Also:
    • LEAD_STATUS_FIELD_NUMBER

      public static final int LEAD_STATUS_FIELD_NUMBER
      See Also:
    • CREATION_DATE_TIME_FIELD_NUMBER

      public static final int CREATION_DATE_TIME_FIELD_NUMBER
      See Also:
    • LOCALE_FIELD_NUMBER

      public static final int LOCALE_FIELD_NUMBER
      See Also:
    • NOTE_FIELD_NUMBER

      public static final int NOTE_FIELD_NUMBER
      See Also:
    • LEAD_CHARGED_FIELD_NUMBER

      public static final int LEAD_CHARGED_FIELD_NUMBER
      See Also:
    • CREDIT_DETAILS_FIELD_NUMBER

      public static final int CREDIT_DETAILS_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getResourceName

      public 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:
      getResourceName in interface LocalServicesLeadOrBuilder
      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:
      getResourceNameBytes in interface LocalServicesLeadOrBuilder
      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:
      getId in interface LocalServicesLeadOrBuilder
      Returns:
      The id.
    • getCategoryId

      public 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:
      getCategoryId in interface LocalServicesLeadOrBuilder
      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:
      getCategoryIdBytes in interface LocalServicesLeadOrBuilder
      Returns:
      The bytes for categoryId.
    • getServiceId

      public 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:
      getServiceId in interface LocalServicesLeadOrBuilder
      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:
      getServiceIdBytes in interface LocalServicesLeadOrBuilder
      Returns:
      The bytes for serviceId.
    • hasContactDetails

      public boolean hasContactDetails()
       Output only. Lead's contact details.
       
      .google.ads.googleads.v18.resources.ContactDetails contact_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasContactDetails in interface LocalServicesLeadOrBuilder
      Returns:
      Whether the contactDetails field is set.
    • getContactDetails

      public ContactDetails getContactDetails()
       Output only. Lead's contact details.
       
      .google.ads.googleads.v18.resources.ContactDetails contact_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getContactDetails in interface LocalServicesLeadOrBuilder
      Returns:
      The contactDetails.
    • getContactDetailsOrBuilder

      public ContactDetailsOrBuilder getContactDetailsOrBuilder()
       Output only. Lead's contact details.
       
      .google.ads.googleads.v18.resources.ContactDetails contact_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getContactDetailsOrBuilder in interface LocalServicesLeadOrBuilder
    • getLeadTypeValue

      public int getLeadTypeValue()
       Output only. Type of Local Services lead: phone, message, booking, etc.
       
      .google.ads.googleads.v18.enums.LocalServicesLeadTypeEnum.LeadType lead_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLeadTypeValue in interface LocalServicesLeadOrBuilder
      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.v18.enums.LocalServicesLeadTypeEnum.LeadType lead_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLeadType in interface LocalServicesLeadOrBuilder
      Returns:
      The leadType.
    • getLeadStatusValue

      public int getLeadStatusValue()
       Output only. Current status of lead.
       
      .google.ads.googleads.v18.enums.LocalServicesLeadStatusEnum.LeadStatus lead_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLeadStatusValue in interface LocalServicesLeadOrBuilder
      Returns:
      The enum numeric value on the wire for leadStatus.
    • getLeadStatus

       Output only. Current status of lead.
       
      .google.ads.googleads.v18.enums.LocalServicesLeadStatusEnum.LeadStatus lead_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLeadStatus in interface LocalServicesLeadOrBuilder
      Returns:
      The leadStatus.
    • getCreationDateTime

      public 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:
      getCreationDateTime in interface LocalServicesLeadOrBuilder
      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:
      getCreationDateTimeBytes in interface LocalServicesLeadOrBuilder
      Returns:
      The bytes for creationDateTime.
    • getLocale

      public 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:
      getLocale in interface LocalServicesLeadOrBuilder
      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:
      getLocaleBytes in interface LocalServicesLeadOrBuilder
      Returns:
      The bytes for locale.
    • hasNote

      public boolean hasNote()
       Output only. Note added by advertiser for the lead.
       
      optional .google.ads.googleads.v18.resources.Note note = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasNote in interface LocalServicesLeadOrBuilder
      Returns:
      Whether the note field is set.
    • getNote

      public Note getNote()
       Output only. Note added by advertiser for the lead.
       
      optional .google.ads.googleads.v18.resources.Note note = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNote in interface LocalServicesLeadOrBuilder
      Returns:
      The note.
    • getNoteOrBuilder

      public NoteOrBuilder getNoteOrBuilder()
       Output only. Note added by advertiser for the lead.
       
      optional .google.ads.googleads.v18.resources.Note note = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNoteOrBuilder in interface LocalServicesLeadOrBuilder
    • 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:
      getLeadCharged in interface LocalServicesLeadOrBuilder
      Returns:
      The leadCharged.
    • hasCreditDetails

      public boolean hasCreditDetails()
       Output only. Credit details of the lead.
       
      optional .google.ads.googleads.v18.resources.CreditDetails credit_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreditDetails in interface LocalServicesLeadOrBuilder
      Returns:
      Whether the creditDetails field is set.
    • getCreditDetails

      public CreditDetails getCreditDetails()
       Output only. Credit details of the lead.
       
      optional .google.ads.googleads.v18.resources.CreditDetails credit_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreditDetails in interface LocalServicesLeadOrBuilder
      Returns:
      The creditDetails.
    • getCreditDetailsOrBuilder

      public CreditDetailsOrBuilder getCreditDetailsOrBuilder()
       Output only. Credit details of the lead.
       
      optional .google.ads.googleads.v18.resources.CreditDetails credit_details = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreditDetailsOrBuilder in interface LocalServicesLeadOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static LocalServicesLead parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static LocalServicesLead parseFrom(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(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static LocalServicesLead parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static LocalServicesLead parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static LocalServicesLead parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static LocalServicesLead parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static LocalServicesLead parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public LocalServicesLead.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static LocalServicesLead.Builder newBuilder()
    • newBuilder

      public static LocalServicesLead.Builder newBuilder(LocalServicesLead prototype)
    • toBuilder

      public LocalServicesLead.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected LocalServicesLead.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.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:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public LocalServicesLead getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder