Class LocalServicesLeadConversation.Builder

  • All Implemented Interfaces:
    LocalServicesLeadConversationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    LocalServicesLeadConversation

    public static final class LocalServicesLeadConversation.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<LocalServicesLeadConversation.Builder>
    implements LocalServicesLeadConversationOrBuilder
     Data from Local Services Lead Conversation.
     Contains details of Lead Conversation which is generated when user calls,
     messages or books service from advertiser. These are appended to a Lead.
     More info: https://ads.google.com/local-services-ads
     
    Protobuf type google.ads.googleads.v15.resources.LocalServicesLeadConversation
    • Method Detail

      • 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.Builder<LocalServicesLeadConversation.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<LocalServicesLeadConversation.Builder>
      • getDefaultInstanceForType

        public LocalServicesLeadConversation getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public LocalServicesLeadConversation build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public LocalServicesLeadConversation buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • setRepeatedField

        public LocalServicesLeadConversation.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                      int index,
                                                                      java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<LocalServicesLeadConversation.Builder>
      • addRepeatedField

        public LocalServicesLeadConversation.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                      java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<LocalServicesLeadConversation.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<LocalServicesLeadConversation.Builder>
      • mergeFrom

        public LocalServicesLeadConversation.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                        throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<LocalServicesLeadConversation.Builder>
        Throws:
        java.io.IOException
      • getResourceName

        public java.lang.String getResourceName()
         Output only. The resource name of the local services lead conversation
         data. Local Services Lead Conversation resource name have the form
        
         `customers/{customer_id}/localServicesLeadConversation/{local_services_lead_conversation_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceName in interface LocalServicesLeadConversationOrBuilder
        Returns:
        The resourceName.
      • getResourceNameBytes

        public com.google.protobuf.ByteString getResourceNameBytes()
         Output only. The resource name of the local services lead conversation
         data. Local Services Lead Conversation resource name have the form
        
         `customers/{customer_id}/localServicesLeadConversation/{local_services_lead_conversation_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceNameBytes in interface LocalServicesLeadConversationOrBuilder
        Returns:
        The bytes for resourceName.
      • setResourceName

        public LocalServicesLeadConversation.Builder setResourceName​(java.lang.String value)
         Output only. The resource name of the local services lead conversation
         data. Local Services Lead Conversation resource name have the form
        
         `customers/{customer_id}/localServicesLeadConversation/{local_services_lead_conversation_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The resourceName to set.
        Returns:
        This builder for chaining.
      • clearResourceName

        public LocalServicesLeadConversation.Builder clearResourceName()
         Output only. The resource name of the local services lead conversation
         data. Local Services Lead Conversation resource name have the form
        
         `customers/{customer_id}/localServicesLeadConversation/{local_services_lead_conversation_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setResourceNameBytes

        public LocalServicesLeadConversation.Builder setResourceNameBytes​(com.google.protobuf.ByteString value)
         Output only. The resource name of the local services lead conversation
         data. Local Services Lead Conversation resource name have the form
        
         `customers/{customer_id}/localServicesLeadConversation/{local_services_lead_conversation_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for resourceName to set.
        Returns:
        This builder for chaining.
      • getId

        public long getId()
         Output only. ID of this Lead Conversation.
         
        int64 id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getId in interface LocalServicesLeadConversationOrBuilder
        Returns:
        The id.
      • setId

        public LocalServicesLeadConversation.Builder setId​(long value)
         Output only. ID of this Lead Conversation.
         
        int64 id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public LocalServicesLeadConversation.Builder clearId()
         Output only. ID of this Lead Conversation.
         
        int64 id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getConversationChannelValue

        public int getConversationChannelValue()
         Output only. Type of GLS lead conversation, EMAIL, MESSAGE, PHONE_CALL,
         SMS, etc.
         
        .google.ads.googleads.v15.enums.LocalServicesLeadConversationTypeEnum.ConversationType conversation_channel = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getConversationChannelValue in interface LocalServicesLeadConversationOrBuilder
        Returns:
        The enum numeric value on the wire for conversationChannel.
      • setConversationChannelValue

        public LocalServicesLeadConversation.Builder setConversationChannelValue​(int value)
         Output only. Type of GLS lead conversation, EMAIL, MESSAGE, PHONE_CALL,
         SMS, etc.
         
        .google.ads.googleads.v15.enums.LocalServicesLeadConversationTypeEnum.ConversationType conversation_channel = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for conversationChannel to set.
        Returns:
        This builder for chaining.
      • setConversationChannel

        public LocalServicesLeadConversation.Builder setConversationChannel​(LocalServicesLeadConversationTypeEnum.ConversationType value)
         Output only. Type of GLS lead conversation, EMAIL, MESSAGE, PHONE_CALL,
         SMS, etc.
         
        .google.ads.googleads.v15.enums.LocalServicesLeadConversationTypeEnum.ConversationType conversation_channel = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The conversationChannel to set.
        Returns:
        This builder for chaining.
      • clearConversationChannel

        public LocalServicesLeadConversation.Builder clearConversationChannel()
         Output only. Type of GLS lead conversation, EMAIL, MESSAGE, PHONE_CALL,
         SMS, etc.
         
        .google.ads.googleads.v15.enums.LocalServicesLeadConversationTypeEnum.ConversationType conversation_channel = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getParticipantTypeValue

        public int getParticipantTypeValue()
         Output only. Type of participant in the lead conversation, ADVERTISER or
         CONSUMER.
         
        .google.ads.googleads.v15.enums.LocalServicesParticipantTypeEnum.ParticipantType participant_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getParticipantTypeValue in interface LocalServicesLeadConversationOrBuilder
        Returns:
        The enum numeric value on the wire for participantType.
      • setParticipantTypeValue

        public LocalServicesLeadConversation.Builder setParticipantTypeValue​(int value)
         Output only. Type of participant in the lead conversation, ADVERTISER or
         CONSUMER.
         
        .google.ads.googleads.v15.enums.LocalServicesParticipantTypeEnum.ParticipantType participant_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for participantType to set.
        Returns:
        This builder for chaining.
      • setParticipantType

        public LocalServicesLeadConversation.Builder setParticipantType​(LocalServicesParticipantTypeEnum.ParticipantType value)
         Output only. Type of participant in the lead conversation, ADVERTISER or
         CONSUMER.
         
        .google.ads.googleads.v15.enums.LocalServicesParticipantTypeEnum.ParticipantType participant_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The participantType to set.
        Returns:
        This builder for chaining.
      • clearParticipantType

        public LocalServicesLeadConversation.Builder clearParticipantType()
         Output only. Type of participant in the lead conversation, ADVERTISER or
         CONSUMER.
         
        .google.ads.googleads.v15.enums.LocalServicesParticipantTypeEnum.ParticipantType participant_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getLead

        public java.lang.String getLead()
         Output only. Resource name of Lead associated to the Lead Conversation.
         
        string lead = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getLead in interface LocalServicesLeadConversationOrBuilder
        Returns:
        The lead.
      • getLeadBytes

        public com.google.protobuf.ByteString getLeadBytes()
         Output only. Resource name of Lead associated to the Lead Conversation.
         
        string lead = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getLeadBytes in interface LocalServicesLeadConversationOrBuilder
        Returns:
        The bytes for lead.
      • setLead

        public LocalServicesLeadConversation.Builder setLead​(java.lang.String value)
         Output only. Resource name of Lead associated to the Lead Conversation.
         
        string lead = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The lead to set.
        Returns:
        This builder for chaining.
      • clearLead

        public LocalServicesLeadConversation.Builder clearLead()
         Output only. Resource name of Lead associated to the Lead Conversation.
         
        string lead = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setLeadBytes

        public LocalServicesLeadConversation.Builder setLeadBytes​(com.google.protobuf.ByteString value)
         Output only. Resource name of Lead associated to the Lead Conversation.
         
        string lead = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for lead to set.
        Returns:
        This builder for chaining.
      • getEventDateTime

        public java.lang.String getEventDateTime()
         Output only. The date time at which lead conversation 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 event_date_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEventDateTime in interface LocalServicesLeadConversationOrBuilder
        Returns:
        The eventDateTime.
      • getEventDateTimeBytes

        public com.google.protobuf.ByteString getEventDateTimeBytes()
         Output only. The date time at which lead conversation 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 event_date_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEventDateTimeBytes in interface LocalServicesLeadConversationOrBuilder
        Returns:
        The bytes for eventDateTime.
      • setEventDateTime

        public LocalServicesLeadConversation.Builder setEventDateTime​(java.lang.String value)
         Output only. The date time at which lead conversation 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 event_date_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The eventDateTime to set.
        Returns:
        This builder for chaining.
      • clearEventDateTime

        public LocalServicesLeadConversation.Builder clearEventDateTime()
         Output only. The date time at which lead conversation 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 event_date_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setEventDateTimeBytes

        public LocalServicesLeadConversation.Builder setEventDateTimeBytes​(com.google.protobuf.ByteString value)
         Output only. The date time at which lead conversation 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 event_date_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for eventDateTime to set.
        Returns:
        This builder for chaining.
      • hasPhoneCallDetails

        public boolean hasPhoneCallDetails()
         Output only. Details of phone call conversation in case of PHONE_CALL.
         
        optional .google.ads.googleads.v15.resources.PhoneCallDetails phone_call_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasPhoneCallDetails in interface LocalServicesLeadConversationOrBuilder
        Returns:
        Whether the phoneCallDetails field is set.
      • getPhoneCallDetails

        public PhoneCallDetails getPhoneCallDetails()
         Output only. Details of phone call conversation in case of PHONE_CALL.
         
        optional .google.ads.googleads.v15.resources.PhoneCallDetails phone_call_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPhoneCallDetails in interface LocalServicesLeadConversationOrBuilder
        Returns:
        The phoneCallDetails.
      • setPhoneCallDetails

        public LocalServicesLeadConversation.Builder setPhoneCallDetails​(PhoneCallDetails value)
         Output only. Details of phone call conversation in case of PHONE_CALL.
         
        optional .google.ads.googleads.v15.resources.PhoneCallDetails phone_call_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setPhoneCallDetails

        public LocalServicesLeadConversation.Builder setPhoneCallDetails​(PhoneCallDetails.Builder builderForValue)
         Output only. Details of phone call conversation in case of PHONE_CALL.
         
        optional .google.ads.googleads.v15.resources.PhoneCallDetails phone_call_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergePhoneCallDetails

        public LocalServicesLeadConversation.Builder mergePhoneCallDetails​(PhoneCallDetails value)
         Output only. Details of phone call conversation in case of PHONE_CALL.
         
        optional .google.ads.googleads.v15.resources.PhoneCallDetails phone_call_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearPhoneCallDetails

        public LocalServicesLeadConversation.Builder clearPhoneCallDetails()
         Output only. Details of phone call conversation in case of PHONE_CALL.
         
        optional .google.ads.googleads.v15.resources.PhoneCallDetails phone_call_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getPhoneCallDetailsBuilder

        public PhoneCallDetails.Builder getPhoneCallDetailsBuilder()
         Output only. Details of phone call conversation in case of PHONE_CALL.
         
        optional .google.ads.googleads.v15.resources.PhoneCallDetails phone_call_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • hasMessageDetails

        public boolean hasMessageDetails()
         Output only. Details of message conversation in case of EMAIL, MESSAGE or
         SMS.
         
        optional .google.ads.googleads.v15.resources.MessageDetails message_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasMessageDetails in interface LocalServicesLeadConversationOrBuilder
        Returns:
        Whether the messageDetails field is set.
      • getMessageDetails

        public MessageDetails getMessageDetails()
         Output only. Details of message conversation in case of EMAIL, MESSAGE or
         SMS.
         
        optional .google.ads.googleads.v15.resources.MessageDetails message_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getMessageDetails in interface LocalServicesLeadConversationOrBuilder
        Returns:
        The messageDetails.
      • setMessageDetails

        public LocalServicesLeadConversation.Builder setMessageDetails​(MessageDetails value)
         Output only. Details of message conversation in case of EMAIL, MESSAGE or
         SMS.
         
        optional .google.ads.googleads.v15.resources.MessageDetails message_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setMessageDetails

        public LocalServicesLeadConversation.Builder setMessageDetails​(MessageDetails.Builder builderForValue)
         Output only. Details of message conversation in case of EMAIL, MESSAGE or
         SMS.
         
        optional .google.ads.googleads.v15.resources.MessageDetails message_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeMessageDetails

        public LocalServicesLeadConversation.Builder mergeMessageDetails​(MessageDetails value)
         Output only. Details of message conversation in case of EMAIL, MESSAGE or
         SMS.
         
        optional .google.ads.googleads.v15.resources.MessageDetails message_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearMessageDetails

        public LocalServicesLeadConversation.Builder clearMessageDetails()
         Output only. Details of message conversation in case of EMAIL, MESSAGE or
         SMS.
         
        optional .google.ads.googleads.v15.resources.MessageDetails message_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getMessageDetailsBuilder

        public MessageDetails.Builder getMessageDetailsBuilder()
         Output only. Details of message conversation in case of EMAIL, MESSAGE or
         SMS.
         
        optional .google.ads.googleads.v15.resources.MessageDetails message_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];