Class 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 type google.ads.googleads.v15.resources.LocalServicesLead
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected java.lang.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 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:
        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 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:
        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 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:
        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.v15.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.v15.resources.ContactDetails contact_details = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getContactDetails in interface LocalServicesLeadOrBuilder
        Returns:
        The contactDetails.
      • 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:
        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.v15.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.v15.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.
      • 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:
        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 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:
        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.v15.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.v15.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.v15.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.
      • 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 java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        java.io.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​(java.lang.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​(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:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • 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
      • 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