com.google.ads.googleads.v17.resources.LocalServicesLeadConversation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v17 Show documentation
Show all versions of google-ads-stubs-v17 Show documentation
Stubs for GAAPI version google-ads-stubs-v17
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v17/resources/local_services_lead_conversation.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.resources;
/**
*
* 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 {@code google.ads.googleads.v17.resources.LocalServicesLeadConversation}
*/
public final class LocalServicesLeadConversation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.resources.LocalServicesLeadConversation)
LocalServicesLeadConversationOrBuilder {
private static final long serialVersionUID = 0L;
// Use LocalServicesLeadConversation.newBuilder() to construct.
private LocalServicesLeadConversation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LocalServicesLeadConversation() {
resourceName_ = "";
conversationChannel_ = 0;
participantType_ = 0;
lead_ = "";
eventDateTime_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LocalServicesLeadConversation();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.resources.LocalServicesLeadConversationProto.internal_static_google_ads_googleads_v17_resources_LocalServicesLeadConversation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.resources.LocalServicesLeadConversationProto.internal_static_google_ads_googleads_v17_resources_LocalServicesLeadConversation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.resources.LocalServicesLeadConversation.class, com.google.ads.googleads.v17.resources.LocalServicesLeadConversation.Builder.class);
}
private int bitField0_;
public static final int RESOURCE_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object resourceName_ = "";
/**
*
* 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) = { ... }
* @return The resourceName.
*/
@java.lang.Override
public java.lang.String getResourceName() {
java.lang.Object ref = resourceName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resourceName_ = s;
return s;
}
}
/**
*
* 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) = { ... }
* @return The bytes for resourceName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ID_FIELD_NUMBER = 2;
private long id_ = 0L;
/**
*
* Output only. ID of this Lead Conversation.
*
*
* int64 id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
public static final int CONVERSATION_CHANNEL_FIELD_NUMBER = 3;
private int conversationChannel_ = 0;
/**
*
* Output only. Type of GLS lead conversation, EMAIL, MESSAGE, PHONE_CALL,
* SMS, etc.
*
*
* .google.ads.googleads.v17.enums.LocalServicesLeadConversationTypeEnum.ConversationType conversation_channel = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for conversationChannel.
*/
@java.lang.Override public int getConversationChannelValue() {
return conversationChannel_;
}
/**
*
* Output only. Type of GLS lead conversation, EMAIL, MESSAGE, PHONE_CALL,
* SMS, etc.
*
*
* .google.ads.googleads.v17.enums.LocalServicesLeadConversationTypeEnum.ConversationType conversation_channel = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The conversationChannel.
*/
@java.lang.Override public com.google.ads.googleads.v17.enums.LocalServicesLeadConversationTypeEnum.ConversationType getConversationChannel() {
com.google.ads.googleads.v17.enums.LocalServicesLeadConversationTypeEnum.ConversationType result = com.google.ads.googleads.v17.enums.LocalServicesLeadConversationTypeEnum.ConversationType.forNumber(conversationChannel_);
return result == null ? com.google.ads.googleads.v17.enums.LocalServicesLeadConversationTypeEnum.ConversationType.UNRECOGNIZED : result;
}
public static final int PARTICIPANT_TYPE_FIELD_NUMBER = 4;
private int participantType_ = 0;
/**
*
* Output only. Type of participant in the lead conversation, ADVERTISER or
* CONSUMER.
*
*
* .google.ads.googleads.v17.enums.LocalServicesParticipantTypeEnum.ParticipantType participant_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for participantType.
*/
@java.lang.Override public int getParticipantTypeValue() {
return participantType_;
}
/**
*
* Output only. Type of participant in the lead conversation, ADVERTISER or
* CONSUMER.
*
*
* .google.ads.googleads.v17.enums.LocalServicesParticipantTypeEnum.ParticipantType participant_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The participantType.
*/
@java.lang.Override public com.google.ads.googleads.v17.enums.LocalServicesParticipantTypeEnum.ParticipantType getParticipantType() {
com.google.ads.googleads.v17.enums.LocalServicesParticipantTypeEnum.ParticipantType result = com.google.ads.googleads.v17.enums.LocalServicesParticipantTypeEnum.ParticipantType.forNumber(participantType_);
return result == null ? com.google.ads.googleads.v17.enums.LocalServicesParticipantTypeEnum.ParticipantType.UNRECOGNIZED : result;
}
public static final int LEAD_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object lead_ = "";
/**
*
* Output only. Resource name of Lead associated to the Lead Conversation.
*
*
* string lead = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The lead.
*/
@java.lang.Override
public java.lang.String getLead() {
java.lang.Object ref = lead_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
lead_ = s;
return s;
}
}
/**
*
* Output only. Resource name of Lead associated to the Lead Conversation.
*
*
* string lead = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The bytes for lead.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLeadBytes() {
java.lang.Object ref = lead_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
lead_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EVENT_DATE_TIME_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object eventDateTime_ = "";
/**
*
* 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];
* @return The eventDateTime.
*/
@java.lang.Override
public java.lang.String getEventDateTime() {
java.lang.Object ref = eventDateTime_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
eventDateTime_ = s;
return s;
}
}
/**
*
* 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];
* @return The bytes for eventDateTime.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEventDateTimeBytes() {
java.lang.Object ref = eventDateTime_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
eventDateTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PHONE_CALL_DETAILS_FIELD_NUMBER = 7;
private com.google.ads.googleads.v17.resources.PhoneCallDetails phoneCallDetails_;
/**
*
* Output only. Details of phone call conversation in case of PHONE_CALL.
*
*
* optional .google.ads.googleads.v17.resources.PhoneCallDetails phone_call_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the phoneCallDetails field is set.
*/
@java.lang.Override
public boolean hasPhoneCallDetails() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. Details of phone call conversation in case of PHONE_CALL.
*
*
* optional .google.ads.googleads.v17.resources.PhoneCallDetails phone_call_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The phoneCallDetails.
*/
@java.lang.Override
public com.google.ads.googleads.v17.resources.PhoneCallDetails getPhoneCallDetails() {
return phoneCallDetails_ == null ? com.google.ads.googleads.v17.resources.PhoneCallDetails.getDefaultInstance() : phoneCallDetails_;
}
/**
*
* Output only. Details of phone call conversation in case of PHONE_CALL.
*
*
* optional .google.ads.googleads.v17.resources.PhoneCallDetails phone_call_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v17.resources.PhoneCallDetailsOrBuilder getPhoneCallDetailsOrBuilder() {
return phoneCallDetails_ == null ? com.google.ads.googleads.v17.resources.PhoneCallDetails.getDefaultInstance() : phoneCallDetails_;
}
public static final int MESSAGE_DETAILS_FIELD_NUMBER = 8;
private com.google.ads.googleads.v17.resources.MessageDetails messageDetails_;
/**
*
* Output only. Details of message conversation in case of EMAIL, MESSAGE or
* SMS.
*
*
* optional .google.ads.googleads.v17.resources.MessageDetails message_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the messageDetails field is set.
*/
@java.lang.Override
public boolean hasMessageDetails() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. Details of message conversation in case of EMAIL, MESSAGE or
* SMS.
*
*
* optional .google.ads.googleads.v17.resources.MessageDetails message_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The messageDetails.
*/
@java.lang.Override
public com.google.ads.googleads.v17.resources.MessageDetails getMessageDetails() {
return messageDetails_ == null ? com.google.ads.googleads.v17.resources.MessageDetails.getDefaultInstance() : messageDetails_;
}
/**
*
* Output only. Details of message conversation in case of EMAIL, MESSAGE or
* SMS.
*
*
* optional .google.ads.googleads.v17.resources.MessageDetails message_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v17.resources.MessageDetailsOrBuilder getMessageDetailsOrBuilder() {
return messageDetails_ == null ? com.google.ads.googleads.v17.resources.MessageDetails.getDefaultInstance() : messageDetails_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_);
}
if (id_ != 0L) {
output.writeInt64(2, id_);
}
if (conversationChannel_ != com.google.ads.googleads.v17.enums.LocalServicesLeadConversationTypeEnum.ConversationType.UNSPECIFIED.getNumber()) {
output.writeEnum(3, conversationChannel_);
}
if (participantType_ != com.google.ads.googleads.v17.enums.LocalServicesParticipantTypeEnum.ParticipantType.UNSPECIFIED.getNumber()) {
output.writeEnum(4, participantType_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lead_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, lead_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventDateTime_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, eventDateTime_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(7, getPhoneCallDetails());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(8, getMessageDetails());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_);
}
if (id_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, id_);
}
if (conversationChannel_ != com.google.ads.googleads.v17.enums.LocalServicesLeadConversationTypeEnum.ConversationType.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, conversationChannel_);
}
if (participantType_ != com.google.ads.googleads.v17.enums.LocalServicesParticipantTypeEnum.ParticipantType.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, participantType_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lead_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, lead_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventDateTime_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, eventDateTime_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getPhoneCallDetails());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getMessageDetails());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v17.resources.LocalServicesLeadConversation)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.resources.LocalServicesLeadConversation other = (com.google.ads.googleads.v17.resources.LocalServicesLeadConversation) obj;
if (!getResourceName()
.equals(other.getResourceName())) return false;
if (getId()
!= other.getId()) return false;
if (conversationChannel_ != other.conversationChannel_) return false;
if (participantType_ != other.participantType_) return false;
if (!getLead()
.equals(other.getLead())) return false;
if (!getEventDateTime()
.equals(other.getEventDateTime())) return false;
if (hasPhoneCallDetails() != other.hasPhoneCallDetails()) return false;
if (hasPhoneCallDetails()) {
if (!getPhoneCallDetails()
.equals(other.getPhoneCallDetails())) return false;
}
if (hasMessageDetails() != other.hasMessageDetails()) return false;
if (hasMessageDetails()) {
if (!getMessageDetails()
.equals(other.getMessageDetails())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getResourceName().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getId());
hash = (37 * hash) + CONVERSATION_CHANNEL_FIELD_NUMBER;
hash = (53 * hash) + conversationChannel_;
hash = (37 * hash) + PARTICIPANT_TYPE_FIELD_NUMBER;
hash = (53 * hash) + participantType_;
hash = (37 * hash) + LEAD_FIELD_NUMBER;
hash = (53 * hash) + getLead().hashCode();
hash = (37 * hash) + EVENT_DATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getEventDateTime().hashCode();
if (hasPhoneCallDetails()) {
hash = (37 * hash) + PHONE_CALL_DETAILS_FIELD_NUMBER;
hash = (53 * hash) + getPhoneCallDetails().hashCode();
}
if (hasMessageDetails()) {
hash = (37 * hash) + MESSAGE_DETAILS_FIELD_NUMBER;
hash = (53 * hash) + getMessageDetails().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.resources.LocalServicesLeadConversation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.LocalServicesLeadConversation parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.LocalServicesLeadConversation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.LocalServicesLeadConversation parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.LocalServicesLeadConversation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.LocalServicesLeadConversation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.LocalServicesLeadConversation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.LocalServicesLeadConversation parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.LocalServicesLeadConversation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.LocalServicesLeadConversation parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.LocalServicesLeadConversation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.LocalServicesLeadConversation parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.ads.googleads.v17.resources.LocalServicesLeadConversation prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* 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 {@code google.ads.googleads.v17.resources.LocalServicesLeadConversation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.resources.LocalServicesLeadConversation)
com.google.ads.googleads.v17.resources.LocalServicesLeadConversationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.resources.LocalServicesLeadConversationProto.internal_static_google_ads_googleads_v17_resources_LocalServicesLeadConversation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.resources.LocalServicesLeadConversationProto.internal_static_google_ads_googleads_v17_resources_LocalServicesLeadConversation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.resources.LocalServicesLeadConversation.class, com.google.ads.googleads.v17.resources.LocalServicesLeadConversation.Builder.class);
}
// Construct using com.google.ads.googleads.v17.resources.LocalServicesLeadConversation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPhoneCallDetailsFieldBuilder();
getMessageDetailsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
resourceName_ = "";
id_ = 0L;
conversationChannel_ = 0;
participantType_ = 0;
lead_ = "";
eventDateTime_ = "";
phoneCallDetails_ = null;
if (phoneCallDetailsBuilder_ != null) {
phoneCallDetailsBuilder_.dispose();
phoneCallDetailsBuilder_ = null;
}
messageDetails_ = null;
if (messageDetailsBuilder_ != null) {
messageDetailsBuilder_.dispose();
messageDetailsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.resources.LocalServicesLeadConversationProto.internal_static_google_ads_googleads_v17_resources_LocalServicesLeadConversation_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.LocalServicesLeadConversation getDefaultInstanceForType() {
return com.google.ads.googleads.v17.resources.LocalServicesLeadConversation.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.LocalServicesLeadConversation build() {
com.google.ads.googleads.v17.resources.LocalServicesLeadConversation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.LocalServicesLeadConversation buildPartial() {
com.google.ads.googleads.v17.resources.LocalServicesLeadConversation result = new com.google.ads.googleads.v17.resources.LocalServicesLeadConversation(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v17.resources.LocalServicesLeadConversation result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.resourceName_ = resourceName_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.id_ = id_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.conversationChannel_ = conversationChannel_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.participantType_ = participantType_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.lead_ = lead_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.eventDateTime_ = eventDateTime_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000040) != 0)) {
result.phoneCallDetails_ = phoneCallDetailsBuilder_ == null
? phoneCallDetails_
: phoneCallDetailsBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.messageDetails_ = messageDetailsBuilder_ == null
? messageDetails_
: messageDetailsBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v17.resources.LocalServicesLeadConversation) {
return mergeFrom((com.google.ads.googleads.v17.resources.LocalServicesLeadConversation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.resources.LocalServicesLeadConversation other) {
if (other == com.google.ads.googleads.v17.resources.LocalServicesLeadConversation.getDefaultInstance()) return this;
if (!other.getResourceName().isEmpty()) {
resourceName_ = other.resourceName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getId() != 0L) {
setId(other.getId());
}
if (other.conversationChannel_ != 0) {
setConversationChannelValue(other.getConversationChannelValue());
}
if (other.participantType_ != 0) {
setParticipantTypeValue(other.getParticipantTypeValue());
}
if (!other.getLead().isEmpty()) {
lead_ = other.lead_;
bitField0_ |= 0x00000010;
onChanged();
}
if (!other.getEventDateTime().isEmpty()) {
eventDateTime_ = other.eventDateTime_;
bitField0_ |= 0x00000020;
onChanged();
}
if (other.hasPhoneCallDetails()) {
mergePhoneCallDetails(other.getPhoneCallDetails());
}
if (other.hasMessageDetails()) {
mergeMessageDetails(other.getMessageDetails());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
resourceName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
id_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
conversationChannel_ = input.readEnum();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
participantType_ = input.readEnum();
bitField0_ |= 0x00000008;
break;
} // case 32
case 42: {
lead_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
eventDateTime_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
input.readMessage(
getPhoneCallDetailsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 58
case 66: {
input.readMessage(
getMessageDetailsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 66
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object resourceName_ = "";
/**
*
* 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) = { ... }
* @return The resourceName.
*/
public java.lang.String getResourceName() {
java.lang.Object ref = resourceName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resourceName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* 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) = { ... }
* @return The bytes for resourceName.
*/
public com.google.protobuf.ByteString
getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* 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) = { ... }
* @param value The resourceName to set.
* @return This builder for chaining.
*/
public Builder setResourceName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
resourceName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* 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) = { ... }
* @return This builder for chaining.
*/
public Builder clearResourceName() {
resourceName_ = getDefaultInstance().getResourceName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* 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) = { ... }
* @param value The bytes for resourceName to set.
* @return This builder for chaining.
*/
public Builder setResourceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
resourceName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private long id_ ;
/**
*
* Output only. ID of this Lead Conversation.
*
*
* int64 id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
/**
*
* Output only. ID of this Lead Conversation.
*
*
* int64 id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(long value) {
id_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. ID of this Lead Conversation.
*
*
* int64 id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000002);
id_ = 0L;
onChanged();
return this;
}
private int conversationChannel_ = 0;
/**
*
* Output only. Type of GLS lead conversation, EMAIL, MESSAGE, PHONE_CALL,
* SMS, etc.
*
*
* .google.ads.googleads.v17.enums.LocalServicesLeadConversationTypeEnum.ConversationType conversation_channel = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for conversationChannel.
*/
@java.lang.Override public int getConversationChannelValue() {
return conversationChannel_;
}
/**
*
* Output only. Type of GLS lead conversation, EMAIL, MESSAGE, PHONE_CALL,
* SMS, etc.
*
*
* .google.ads.googleads.v17.enums.LocalServicesLeadConversationTypeEnum.ConversationType conversation_channel = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The enum numeric value on the wire for conversationChannel to set.
* @return This builder for chaining.
*/
public Builder setConversationChannelValue(int value) {
conversationChannel_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Output only. Type of GLS lead conversation, EMAIL, MESSAGE, PHONE_CALL,
* SMS, etc.
*
*
* .google.ads.googleads.v17.enums.LocalServicesLeadConversationTypeEnum.ConversationType conversation_channel = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The conversationChannel.
*/
@java.lang.Override
public com.google.ads.googleads.v17.enums.LocalServicesLeadConversationTypeEnum.ConversationType getConversationChannel() {
com.google.ads.googleads.v17.enums.LocalServicesLeadConversationTypeEnum.ConversationType result = com.google.ads.googleads.v17.enums.LocalServicesLeadConversationTypeEnum.ConversationType.forNumber(conversationChannel_);
return result == null ? com.google.ads.googleads.v17.enums.LocalServicesLeadConversationTypeEnum.ConversationType.UNRECOGNIZED : result;
}
/**
*
* Output only. Type of GLS lead conversation, EMAIL, MESSAGE, PHONE_CALL,
* SMS, etc.
*
*
* .google.ads.googleads.v17.enums.LocalServicesLeadConversationTypeEnum.ConversationType conversation_channel = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The conversationChannel to set.
* @return This builder for chaining.
*/
public Builder setConversationChannel(com.google.ads.googleads.v17.enums.LocalServicesLeadConversationTypeEnum.ConversationType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
conversationChannel_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. Type of GLS lead conversation, EMAIL, MESSAGE, PHONE_CALL,
* SMS, etc.
*
*
* .google.ads.googleads.v17.enums.LocalServicesLeadConversationTypeEnum.ConversationType conversation_channel = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearConversationChannel() {
bitField0_ = (bitField0_ & ~0x00000004);
conversationChannel_ = 0;
onChanged();
return this;
}
private int participantType_ = 0;
/**
*
* Output only. Type of participant in the lead conversation, ADVERTISER or
* CONSUMER.
*
*
* .google.ads.googleads.v17.enums.LocalServicesParticipantTypeEnum.ParticipantType participant_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for participantType.
*/
@java.lang.Override public int getParticipantTypeValue() {
return participantType_;
}
/**
*
* Output only. Type of participant in the lead conversation, ADVERTISER or
* CONSUMER.
*
*
* .google.ads.googleads.v17.enums.LocalServicesParticipantTypeEnum.ParticipantType participant_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The enum numeric value on the wire for participantType to set.
* @return This builder for chaining.
*/
public Builder setParticipantTypeValue(int value) {
participantType_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Output only. Type of participant in the lead conversation, ADVERTISER or
* CONSUMER.
*
*
* .google.ads.googleads.v17.enums.LocalServicesParticipantTypeEnum.ParticipantType participant_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The participantType.
*/
@java.lang.Override
public com.google.ads.googleads.v17.enums.LocalServicesParticipantTypeEnum.ParticipantType getParticipantType() {
com.google.ads.googleads.v17.enums.LocalServicesParticipantTypeEnum.ParticipantType result = com.google.ads.googleads.v17.enums.LocalServicesParticipantTypeEnum.ParticipantType.forNumber(participantType_);
return result == null ? com.google.ads.googleads.v17.enums.LocalServicesParticipantTypeEnum.ParticipantType.UNRECOGNIZED : result;
}
/**
*
* Output only. Type of participant in the lead conversation, ADVERTISER or
* CONSUMER.
*
*
* .google.ads.googleads.v17.enums.LocalServicesParticipantTypeEnum.ParticipantType participant_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The participantType to set.
* @return This builder for chaining.
*/
public Builder setParticipantType(com.google.ads.googleads.v17.enums.LocalServicesParticipantTypeEnum.ParticipantType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
participantType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. Type of participant in the lead conversation, ADVERTISER or
* CONSUMER.
*
*
* .google.ads.googleads.v17.enums.LocalServicesParticipantTypeEnum.ParticipantType participant_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearParticipantType() {
bitField0_ = (bitField0_ & ~0x00000008);
participantType_ = 0;
onChanged();
return this;
}
private java.lang.Object lead_ = "";
/**
*
* Output only. Resource name of Lead associated to the Lead Conversation.
*
*
* string lead = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The lead.
*/
public java.lang.String getLead() {
java.lang.Object ref = lead_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
lead_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. Resource name of Lead associated to the Lead Conversation.
*
*
* string lead = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The bytes for lead.
*/
public com.google.protobuf.ByteString
getLeadBytes() {
java.lang.Object ref = lead_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
lead_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. Resource name of Lead associated to the Lead Conversation.
*
*
* string lead = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param value The lead to set.
* @return This builder for chaining.
*/
public Builder setLead(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
lead_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Output only. Resource name of Lead associated to the Lead Conversation.
*
*
* string lead = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearLead() {
lead_ = getDefaultInstance().getLead();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
* Output only. Resource name of Lead associated to the Lead Conversation.
*
*
* string lead = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param value The bytes for lead to set.
* @return This builder for chaining.
*/
public Builder setLeadBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
lead_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private java.lang.Object eventDateTime_ = "";
/**
*
* 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];
* @return The eventDateTime.
*/
public java.lang.String getEventDateTime() {
java.lang.Object ref = eventDateTime_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
eventDateTime_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* 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];
* @return The bytes for eventDateTime.
*/
public com.google.protobuf.ByteString
getEventDateTimeBytes() {
java.lang.Object ref = eventDateTime_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
eventDateTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* 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];
* @param value The eventDateTime to set.
* @return This builder for chaining.
*/
public Builder setEventDateTime(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
eventDateTime_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* 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];
* @return This builder for chaining.
*/
public Builder clearEventDateTime() {
eventDateTime_ = getDefaultInstance().getEventDateTime();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
* 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];
* @param value The bytes for eventDateTime to set.
* @return This builder for chaining.
*/
public Builder setEventDateTimeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
eventDateTime_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private com.google.ads.googleads.v17.resources.PhoneCallDetails phoneCallDetails_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.resources.PhoneCallDetails, com.google.ads.googleads.v17.resources.PhoneCallDetails.Builder, com.google.ads.googleads.v17.resources.PhoneCallDetailsOrBuilder> phoneCallDetailsBuilder_;
/**
*
* Output only. Details of phone call conversation in case of PHONE_CALL.
*
*
* optional .google.ads.googleads.v17.resources.PhoneCallDetails phone_call_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the phoneCallDetails field is set.
*/
public boolean hasPhoneCallDetails() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Output only. Details of phone call conversation in case of PHONE_CALL.
*
*
* optional .google.ads.googleads.v17.resources.PhoneCallDetails phone_call_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The phoneCallDetails.
*/
public com.google.ads.googleads.v17.resources.PhoneCallDetails getPhoneCallDetails() {
if (phoneCallDetailsBuilder_ == null) {
return phoneCallDetails_ == null ? com.google.ads.googleads.v17.resources.PhoneCallDetails.getDefaultInstance() : phoneCallDetails_;
} else {
return phoneCallDetailsBuilder_.getMessage();
}
}
/**
*
* Output only. Details of phone call conversation in case of PHONE_CALL.
*
*
* optional .google.ads.googleads.v17.resources.PhoneCallDetails phone_call_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setPhoneCallDetails(com.google.ads.googleads.v17.resources.PhoneCallDetails value) {
if (phoneCallDetailsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
phoneCallDetails_ = value;
} else {
phoneCallDetailsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Output only. Details of phone call conversation in case of PHONE_CALL.
*
*
* optional .google.ads.googleads.v17.resources.PhoneCallDetails phone_call_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setPhoneCallDetails(
com.google.ads.googleads.v17.resources.PhoneCallDetails.Builder builderForValue) {
if (phoneCallDetailsBuilder_ == null) {
phoneCallDetails_ = builderForValue.build();
} else {
phoneCallDetailsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Output only. Details of phone call conversation in case of PHONE_CALL.
*
*
* optional .google.ads.googleads.v17.resources.PhoneCallDetails phone_call_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergePhoneCallDetails(com.google.ads.googleads.v17.resources.PhoneCallDetails value) {
if (phoneCallDetailsBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0) &&
phoneCallDetails_ != null &&
phoneCallDetails_ != com.google.ads.googleads.v17.resources.PhoneCallDetails.getDefaultInstance()) {
getPhoneCallDetailsBuilder().mergeFrom(value);
} else {
phoneCallDetails_ = value;
}
} else {
phoneCallDetailsBuilder_.mergeFrom(value);
}
if (phoneCallDetails_ != null) {
bitField0_ |= 0x00000040;
onChanged();
}
return this;
}
/**
*
* Output only. Details of phone call conversation in case of PHONE_CALL.
*
*
* optional .google.ads.googleads.v17.resources.PhoneCallDetails phone_call_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearPhoneCallDetails() {
bitField0_ = (bitField0_ & ~0x00000040);
phoneCallDetails_ = null;
if (phoneCallDetailsBuilder_ != null) {
phoneCallDetailsBuilder_.dispose();
phoneCallDetailsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Output only. Details of phone call conversation in case of PHONE_CALL.
*
*
* optional .google.ads.googleads.v17.resources.PhoneCallDetails phone_call_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.resources.PhoneCallDetails.Builder getPhoneCallDetailsBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getPhoneCallDetailsFieldBuilder().getBuilder();
}
/**
*
* Output only. Details of phone call conversation in case of PHONE_CALL.
*
*
* optional .google.ads.googleads.v17.resources.PhoneCallDetails phone_call_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.resources.PhoneCallDetailsOrBuilder getPhoneCallDetailsOrBuilder() {
if (phoneCallDetailsBuilder_ != null) {
return phoneCallDetailsBuilder_.getMessageOrBuilder();
} else {
return phoneCallDetails_ == null ?
com.google.ads.googleads.v17.resources.PhoneCallDetails.getDefaultInstance() : phoneCallDetails_;
}
}
/**
*
* Output only. Details of phone call conversation in case of PHONE_CALL.
*
*
* optional .google.ads.googleads.v17.resources.PhoneCallDetails phone_call_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.resources.PhoneCallDetails, com.google.ads.googleads.v17.resources.PhoneCallDetails.Builder, com.google.ads.googleads.v17.resources.PhoneCallDetailsOrBuilder>
getPhoneCallDetailsFieldBuilder() {
if (phoneCallDetailsBuilder_ == null) {
phoneCallDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.resources.PhoneCallDetails, com.google.ads.googleads.v17.resources.PhoneCallDetails.Builder, com.google.ads.googleads.v17.resources.PhoneCallDetailsOrBuilder>(
getPhoneCallDetails(),
getParentForChildren(),
isClean());
phoneCallDetails_ = null;
}
return phoneCallDetailsBuilder_;
}
private com.google.ads.googleads.v17.resources.MessageDetails messageDetails_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.resources.MessageDetails, com.google.ads.googleads.v17.resources.MessageDetails.Builder, com.google.ads.googleads.v17.resources.MessageDetailsOrBuilder> messageDetailsBuilder_;
/**
*
* Output only. Details of message conversation in case of EMAIL, MESSAGE or
* SMS.
*
*
* optional .google.ads.googleads.v17.resources.MessageDetails message_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the messageDetails field is set.
*/
public boolean hasMessageDetails() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Output only. Details of message conversation in case of EMAIL, MESSAGE or
* SMS.
*
*
* optional .google.ads.googleads.v17.resources.MessageDetails message_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The messageDetails.
*/
public com.google.ads.googleads.v17.resources.MessageDetails getMessageDetails() {
if (messageDetailsBuilder_ == null) {
return messageDetails_ == null ? com.google.ads.googleads.v17.resources.MessageDetails.getDefaultInstance() : messageDetails_;
} else {
return messageDetailsBuilder_.getMessage();
}
}
/**
*
* Output only. Details of message conversation in case of EMAIL, MESSAGE or
* SMS.
*
*
* optional .google.ads.googleads.v17.resources.MessageDetails message_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setMessageDetails(com.google.ads.googleads.v17.resources.MessageDetails value) {
if (messageDetailsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
messageDetails_ = value;
} else {
messageDetailsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* Output only. Details of message conversation in case of EMAIL, MESSAGE or
* SMS.
*
*
* optional .google.ads.googleads.v17.resources.MessageDetails message_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setMessageDetails(
com.google.ads.googleads.v17.resources.MessageDetails.Builder builderForValue) {
if (messageDetailsBuilder_ == null) {
messageDetails_ = builderForValue.build();
} else {
messageDetailsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* Output only. Details of message conversation in case of EMAIL, MESSAGE or
* SMS.
*
*
* optional .google.ads.googleads.v17.resources.MessageDetails message_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeMessageDetails(com.google.ads.googleads.v17.resources.MessageDetails value) {
if (messageDetailsBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0) &&
messageDetails_ != null &&
messageDetails_ != com.google.ads.googleads.v17.resources.MessageDetails.getDefaultInstance()) {
getMessageDetailsBuilder().mergeFrom(value);
} else {
messageDetails_ = value;
}
} else {
messageDetailsBuilder_.mergeFrom(value);
}
if (messageDetails_ != null) {
bitField0_ |= 0x00000080;
onChanged();
}
return this;
}
/**
*
* Output only. Details of message conversation in case of EMAIL, MESSAGE or
* SMS.
*
*
* optional .google.ads.googleads.v17.resources.MessageDetails message_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearMessageDetails() {
bitField0_ = (bitField0_ & ~0x00000080);
messageDetails_ = null;
if (messageDetailsBuilder_ != null) {
messageDetailsBuilder_.dispose();
messageDetailsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Output only. Details of message conversation in case of EMAIL, MESSAGE or
* SMS.
*
*
* optional .google.ads.googleads.v17.resources.MessageDetails message_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.resources.MessageDetails.Builder getMessageDetailsBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getMessageDetailsFieldBuilder().getBuilder();
}
/**
*
* Output only. Details of message conversation in case of EMAIL, MESSAGE or
* SMS.
*
*
* optional .google.ads.googleads.v17.resources.MessageDetails message_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.resources.MessageDetailsOrBuilder getMessageDetailsOrBuilder() {
if (messageDetailsBuilder_ != null) {
return messageDetailsBuilder_.getMessageOrBuilder();
} else {
return messageDetails_ == null ?
com.google.ads.googleads.v17.resources.MessageDetails.getDefaultInstance() : messageDetails_;
}
}
/**
*
* Output only. Details of message conversation in case of EMAIL, MESSAGE or
* SMS.
*
*
* optional .google.ads.googleads.v17.resources.MessageDetails message_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.resources.MessageDetails, com.google.ads.googleads.v17.resources.MessageDetails.Builder, com.google.ads.googleads.v17.resources.MessageDetailsOrBuilder>
getMessageDetailsFieldBuilder() {
if (messageDetailsBuilder_ == null) {
messageDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.resources.MessageDetails, com.google.ads.googleads.v17.resources.MessageDetails.Builder, com.google.ads.googleads.v17.resources.MessageDetailsOrBuilder>(
getMessageDetails(),
getParentForChildren(),
isClean());
messageDetails_ = null;
}
return messageDetailsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v17.resources.LocalServicesLeadConversation)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.resources.LocalServicesLeadConversation)
private static final com.google.ads.googleads.v17.resources.LocalServicesLeadConversation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.resources.LocalServicesLeadConversation();
}
public static com.google.ads.googleads.v17.resources.LocalServicesLeadConversation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LocalServicesLeadConversation parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.LocalServicesLeadConversation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy